/*
 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;
  ---darkgreen: #1B3E56;
  --midgreen: #9BBBC2;
  --lightgreen: #DBE8EA;
  --whitegreen: #F3F6F6;
  --orange: #FF7F76;
}

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

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

@font-face {
  font-family: "DM Sans";
  src: url('/wp-content/themes/divi-child/fonts/DMSans-VariableFont_opsz,wght.ttf') format('truetype');
}

.light {
  font-weight: 200;
}

.bold {
  font-weight: 600;
}

h1 {
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  font-size: 64px;
  letter-spacing: 2.4px;
}

h2 {
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  font-size: 48px;
  letter-spacing: 2.4px;
}

h3 {
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  font-size: 32px;
  letter-spacing: 2.4px;
  line-height: 110%;
}

h4 {
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  font-size: 24px;
  letter-spacing: 2.4px;
}

h5 {
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 137%; /* 21.92px */
  letter-spacing: 1.12px;
}

h6 {
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 137%; /* 21.92px */
  letter-spacing: 1.12px;
}


p, ul, th, td {
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 137%; /* 21.92px */
  letter-spacing: 1.12px;
}

a {
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 137%; /* 21.92px */
  letter-spacing: 1.12px;
}

.link {
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 137%; /* 21.92px */
  letter-spacing: 1.12px;
}

.small {
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 137%; /* 21.92px */
  letter-spacing: 1.12px;
}

.small-link {
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 137%; /* 21.92px */
  letter-spacing: 1.12px;
}

.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(---darkgreen);
}

/* Line beneath active menu item */

.current_page_item a {
  position: relative;
  display: inline-block;
}

/*@media (min-width: 981px) {
  .current_page_item a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    margin-top: 20px;
    background-color: var(--orange);
  }
}*/

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

/* Hide footer */

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

/* Footer text align right/left depending on breakpoint */

.right-desktop-left-mobile {
  float: left;
}

/* Desktop only */
@media (min-width: 981px) {
  .right-desktop-left-mobile {
    float: right;
  }
}

/* Footer nav in one line / stacked depending on breakpoint */

.nav-container {
  display: flex;
  justify-content: center;
  gap: 24px;
  text-transform: uppercase;
  margin-bottom: 24px;
  flex-direction: row;
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

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

/* Default Divi button modified */

.et_pb_module .et_pb_button {
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  font-size: 14px !important;
  text-transform: uppercase;
  font-weight: 600;
  padding: 16px 24px !important; 
  border: none !important;
  border-top: 2px solid var(--orange) !important;
  color: var(--darkgreen);
  background-color: var(--white);
}

.et_pb_module:hover .et_pb_button:hover {
  padding: 16px 24px !important; 
  color: var(--darkgreen) !important;
  background-color: var(--orange) !important;
}

.custom-width .et_pb_module .et_pb_button {
  display: inline-block;   /* or block if you want full control */
  max-width: 20px;        /* your desired width */
  width: 20%;
}

/***************************** 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;
  min-height: 100%;
}

.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: 720px) {
  .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 */
}

/* IMG takes up full half of a viewport */

.right-half-image {
  top: 0;
  right: 0;
  width: 50vw;           /* half the viewport width */
  object-fit: cover;     /* prevents distortion */
  z-index: 1;
}

.right-half-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.width-50 {
  max-width: 50%;
}

/* Slider modifications */

.et_pb_slider .et_pb_slide_title,
.et_pb_slider .et_pb_slide_content {
  text-shadow: none !important;
}

.styled-slider-div {
  text-align: left;
  padding: 40px;
  background-color: var(--whitegreen);
  border-top: 2px solid var(--orange) !important;
}