/*
 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
------------------------------------------------------- */
@media (min-width: 980px) {
  .menu_cta {
    background-color: #e8823c;
    color: #fff;
    padding: 0 !important;
  }

  .menu_cta a {
    color: #fff !important;
    padding: 10px 8px 10px 26px !important;
  }

  .menu_cta a:before {
    content: '\e090';
    color: #fff;
    font-family: 'ETmodules';
    font-size: 14px;
    line-height: 1;
    position: absolute;
    left: 5px;
  }
}

/* Hide image titles on hover */ img { pointer-events: none; }
@media (max-width: 980px) {
  .reverse-mode { 
    display: flex;
    	flex-direction: column-reverse;
  }
}

@media (min-width: 768px) and (max-width: 980px) {
  .five-columns-slider .et_pb_column {
    width: 20% !important; /* Ensure each column takes up 20% width */
    	float: left;
    	clear: none;
  }
}

@media (max-width: 767px) {
  .five-columns-slider-mobile .et_pb_column {
    width: 20% !important; /* Full width on mobile devices */
    	margin-bottom: 10px; /* Add spacing between elements */
  }
}

/*add icon to the opened accordion*/
.pa-add-accordion-icon .et_pb_accordion_item.et_pb_toggle_open .et_pb_toggle_title:before {
  display: block;
	content: "\e04f"
}
header{
	box-shadow: none !important;
}
@media (min-width: 768px){
	#page-container{
		padding-top: 112px !important;
	}
}
@media (max-width: 767px){
	#page-container{
		padding-top: 80px !important;
	}
}

/*make the Divi mobile dropdown menu scrollable*/
.et_mobile_menu {
overflow: scroll !important;
max-height: 80vh;
}

/*set the Divi menu dropdown auto width*/
@media only screen and (min-width: 981px) {
	.nav li ul {
		width: fit-content;
		display: flex;
		flex-direction: column;
	}
	.nav li li {
		white-space: nowrap;
	}
	.nav li li a {
		width: auto !important;
	}
}

.case-studies {
  display: flex;
  flex-wrap: nowrap;
}

/* Column 1 */
.case-studies .et_pb_column:nth-child(1) {
  width: 25%;
}

/* Column 2 */
.case-studies .et_pb_column:nth-child(2) {
  width: 40%;
}

/* Column 3 */
.case-studies .et_pb_column:nth-child(3) {
  width: 35%;
}

/* Force 3 columns side by side on mobile & full width */
@media (max-width: 767px) {
  .mobile-header {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* prevent stacking */
    gap: 5px; /* optional spacing between columns */
    width: 100% !important; /* full width */
    max-width: 100% !important; /* remove Divi max-width */
    padding-left: 0 !important; /* remove row padding */
    padding-right: 0 !important; /* remove row padding */
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .mobile-header .et_pb_column {
    width: 33.33% !important; /* 3 equal columns */
    margin: 0 !important;
    float: none !important;
  }
}