/*
 Theme Name: Divi Child
 Theme URI: https://www.elegantthemes.com/gallery/divi/
 Description: Divi Child Theme
 Author: Elegant Themes
 Author URI: https://www.elegantthemes.com
 Template: Divi
 Version: 1.0.0
*/

/* =Theme customization starts here
------------------------------------------------------- */

/***************************** COLOR VARIABLES *****************************/

:root {
  --white: #ffffff;
  --black: #000000;
  --maingrey: #606060;
  --darkgrey: #505050;
  --lightgrey: #959595;
  --yellow: #ffd86c;
  --purple: #9e8dff;
  --green: #ceffe2;
}

body {
  background-color: var(--maingrey);
}

/***************************** HEADLINES & PARAGRAPHS *****************************/

@font-face {
  font-family: "Bodoni Moda";
  src: url('/wp-content/themes/divi-child/fonts/BodoniModa_72pt-Black.ttf') format('truetype');
}

@font-face {
  font-family: "Ubuntu Regular";
  src: url('/wp-content/themes/divi-child/fonts/UbuntuSansMono-Regular.ttf') format('truetype');
}

@font-face {
  font-family: "Ubuntu Bold";
  src: url('/wp-content/themes/divi-child/fonts/UbuntuSansMono-Bold.ttf') format('truetype');
}

h1 {
  font-family: "Bodoni Moda", 'Times New Roman', Times, serif;
  font-size: 64px;
  line-height: 64px;
}

h2 {
  font-family: "Bodoni Moda", 'Times New Roman', Times, serif;
  font-size: 48px;
  line-height: 48px;
}

h3 {
  font-family: "Ubuntu Regular", Arial, Helvetica, sans-serif;
  font-size: 32px;
  line-height: 140%;
  letter-spacing: 3px;
}

h4 {
  font-family: "Ubuntu Regular", Arial, Helvetica, sans-serif;
  font-size: 24px;
  line-height: 140%;
  letter-spacing: 2px;
}

h5 {
  font-family: "Ubuntu Bold", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: 1.12px;
}

h6 {
  font-family: "Ubuntu Bold", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 140%;
  letter-spacing: 0.98px;
}


p, ul, th, td {
  font-family: "Ubuntu Regular", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: 1.12px;
}

a {
  font-family: "Ubuntu Bold", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: 1.12px;
}

.link {
  font-family: "Ubuntu Bold", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: 1.12px;
}

.small {
  font-family: "Ubuntu Regular", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 140%;
  letter-spacing: 0.98px;
}

.small-link {
  font-family: "Ubuntu Bold", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 140%;
  letter-spacing: 0.98px;
}

.small-link:hover {
  padding: 2px;
}

.custom-list ul {
  list-style-type: disc; /* Other options: circle, square, none */
  padding-left: 20px; /* Adds spacing from the left */
}

.custom-list li {
  margin-bottom: 5px; /* Adds spacing between list items */
}

/* Hyphenate text using the class: */

.hyphenate p, 
.hyphenate h1, 
.hyphenate h2, 
.hyphenate h3, 
.hyphenate h4, 
.hyphenate h5, 
.hyphenate h6 {
    white-space: break-word;
    hyphens: auto; 
    word-wrap: normal;
    overflow-wrap: break-word;
}

/***************************** SIDEBAR *****************************/

/* Sidebar: Remove sidebar */
#sidebar {
  display: none;
}

/* Sidebar: Remove thin line of sidebar */
#main-content .container:before {
  background: none;
}

/* Sidebar: Make content 100% width */
@media (min-width: 981px) {
  #left-area {
    width: 100%;
    padding-right: 0px !important;
  }
}

/***************************** NAVIGATION *****************************/

/*Make all nav bar backgrounds transparent*/

#main-header {
  background-color: transparent !important;
  box-shadow: none !important;
  /* Remove any shadows */
}

/* Custom burger icon */

.mobile_menu_bar:before {
  content: url('/wp-content/themes/divi-child/assets/burger.svg');
}

/* Custom coloring of menu items */

.et-menu a {
  color: var(--white);
}

/* Line beneath active menu item */

.current_page_item {
  position: relative;
}

.current_page_item::after {
  content: "";
  position: absolute;
  bottom: 3px; /* Adjust as needed */
  left: 50%;
  transform: translateX(-50%);
  width: calc(40%);
  height: 8px;
  border-radius: 20px;
  background-color: var(--yellow);
}

/***************************** FOOTER ******************************/

/* Hide footer */

#main-footer {
  height: 0 !important;
  overflow: hidden;
}

/***************************** BUTTONS & SHAPES ******************************/

/* Default Divi button modified */

.et_pb_button {
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-size: 16px !important;
  font-weight: 600;
  line-height: 18.88px;
  letter-spacing: 0.16px;
  max-width: none !important;
}

/* Custom button */

.button {
  display: inline-flex;
  padding-top: 8px;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 8px;
  background: var(--green);
  border-radius: 999px; /* Ensures a pill shape no matter the size */
  margin: 0px 8px 12px 0px; 
}

.button:hover {
  color: white;
  background: var(--purple);
}

/* Label */

.label {
  display: inline-flex;
  padding-top: 8px;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 8px;
  color: var(--white);
  background: var(--darkgrey);
  border-radius: 999px; /* Ensures a pill shape no matter the size */
  margin: 0px 8px 12px 0px; 
}

.label:hover {
  color: var(--maingrey);
  background-color: var(--green);
}

.label-active {
  display: inline-flex;
  padding-top: 8px;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 8px;
  color: var(--maingrey);
  background: var(--yellow);
  border-radius: 999px; /* Ensures a pill shape no matter the size */
  margin: 0px 8px 12px 0px; 
}

.dark {
  color: var(--yellow)
}

/***************************** DIVI COMPONENT MODIFICATIONS ******************************/

/* All modules within a row are vertically center aligned */

.centered-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.bottom-row {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  flex-wrap: wrap;
}

/* Custom breaking of multi-column rows on mobile */
  
@media only screen and (max-width: 320px) {
  .two-columns .et_pb_column {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
  }
}

  .full-height-text {
    display: flex;
    justify-content: flex-end; /* Pushes content to the bottom */
    height: 100%; /* Inherits the full height of the parent */
}

/* Accordion modifications */

/* Remove default background and borders on accordion items */
.et_pb_accordion_item {
  border: none !important;
  background-color: var(--green);
  border-radius: 12px;
}

/* Override the default Divi accordion icon */
.et_pb_accordion .et_pb_accordion_item .et_pb_toggle_title:before {
  color: var(--purple) !important; /* Icon color */
  font-size: 20px !important;
}

/* Change the icon color when the accordion is open */
.et_pb_accordion .et_pb_accordion_item.et_pb_accordion_item_open .et_pb_toggle_title:before {
  color: var(--purple) !important;
}

/* Ensure the accordion icon is always visible */
.et_pb_accordion .et_pb_toggle_title:before {
  display: inline-block !important;
  font-size: 20px !important;
}

/* Fix the icon visibility when opened */
.et_pb_accordion .et_pb_accordion_item.et_pb_accordion_item_open .et_pb_toggle_title:before {
  content: "\e04f" !important; /* Divi open/close icon */
}

/* Smooth closing */
.et_pb_toggle {
  transition: all 8s ease-in-out;
}

/***************************** PROJECT BOXES ******************************/

.box-container {
  display: flex;
  justify-content: center;
}

.box {
  position: relative;
  background-color: var(--maingrey);
  border-radius: 15px;
  box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
  overflow: hidden;
  width: 30%;
  height: 400px;
  margin: 0 10px;
  z-index: 0;
  transition: transform 0.3s ease;
 }

.box:hover {
  box-shadow: 0px 50px 100px rgba(0, 0, 0, 0.4);
  z-index: 10;
  transform: scale(1.05);
 }

 .box-logo {
  position: absolute;
  top: 16px;
  left: 16px;
}

 .box-text {
  position: absolute;
  bottom: 16px;
  left: 16px;
}

.box-project {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

 @media (max-width: 1024px) {
  .box-container {
    flex-direction: column;
    margin: 0 0 0 0px !important;
  }
 }

  @media (max-width: 1024px) {
  .box {
    width: 100% !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    margin-left: 0px !important;
    margin-right: 0px !important;
    justify-content: center;
  }
 }

/***************************** DESIGN DISCIPLINES ******************************/

.highlight {
  position: relative;
  display: inline-block;
  font-family: "Ubuntu Bold", Arial, Helvetica, sans-serif;
  color: var(--white);
  background: url('') no-repeat;
  background-size: contain;
  background-position: 100% 100%;
  padding: 6px;
  transition: transform 0.1s ease;
}

.highlight:hover {
  transform: scale(1.05);
  background: url('/wp-content/themes/divi-child/assets/hl1.svg') no-repeat;
  background-size: contain;
  background-position: 100% 100%;
}

.highlight--hl2:hover {
  background-image: url('/wp-content/themes/divi-child/assets/hl2.svg');
}

.highlight--hl3:hover {
  background-image: url('/wp-content/themes/divi-child/assets/hl3.svg');
}

.highlight--hl4:hover {
  background-image: url('/wp-content/themes/divi-child/assets/hl4.svg');
}

.highlight--hl5:hover {
  background-image: url('/wp-content/themes/divi-child/assets/hl5.svg');
}

.highlight--hl6:hover {
  background-image: url('/wp-content/themes/divi-child/assets/hl6.svg');
}

.highlight--hl7:hover {
  background-image: url('/wp-content/themes/divi-child/assets/hl7.svg');
}

/***************************** LOGO GRID ******************************/

.logo-highlight {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;    /* vertical centering */
  justify-content: center; /* horizontal centering */
  background: url('') no-repeat;
  background-size: contain;
  background-position: 100% 100%;
  transition: transform 0.3s ease;
}

.logo-highlight--yellow:hover {
  transform: scale(1.1);
  background: url('/wp-content/themes/divi-child/assets/hl_circle_yellow.svg') no-repeat;
  /*box-shadow: 0px 0px 200px 100px rgba(255, 216, 108, 0.2);*/
  border-radius: 100%;
  background-size: contain;
  background-position: 100% 100%;
}

.logo-highlight--purple:hover {
  transform: scale(1.1);
  background: url('/wp-content/themes/divi-child/assets/hl_circle_purple.svg') no-repeat;
  /*box-shadow: 0px 0px 200px 100px rgba(158, 141, 255, 0.2);*/
  border-radius: 100%;
  background-size: contain;
  background-position: 100% 100%;
}

.logo-highlight--green:hover {
  transform: scale(1.1);
  background: url('/wp-content/themes/divi-child/assets/hl_circle_green.svg') no-repeat;
  /*box-shadow: 0px 0px 200px 100px rgba(206, 255, 226, 0.2);*/
  border-radius: 100%;
  background-size: contain;
  background-position: 100% 100%;
}

.logo-highlight:hover .logo {
  filter: brightness(0) saturate(100%) sepia(100%) hue-rotate(45deg);
}

/* Center everything within code module */
.center-everything {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}