/*-------------------------------------------------------
Theme Name: JSI.org
Theme URI: 
Description: JSI child theme template for Divi
Author: JSI, Inc.
Author URI: https://jsi.org/
Template: Divi
Version: 1.0.0
----------------- ADDITIONAL CSS HERE ------------------*/

/** overall **/

body {
  flex-grow: 1;
  font-family: Roboto;
  font-size: 18px;
  font-weight: 400;
  font-stretch: normal;
  font-style: normal;
  line-height: 28px;
  letter-spacing: normal;
}



/* Force the back-to-top icon to be an upward arrow */
.et_pb_scroll_top:before {
    font-family: 'ETmodules' !important;
    content: "\36" !important; 
}

a {
  font-weight: 500;
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: 600;
}

h1 {
  flex-grow: 1;
  font-family: Roboto;
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.25;
}

h2 {
  flex-grow: 1;
  font-family: Roboto;
  font-size: 1.875rem;
  font-weight: 600;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.27;
  margin-bottom: 1rem;
}

h3 {
  flex-grow: 1;
  font-family: Roboto;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.33;
  margin-bottom: 1rem;
}

.et_pb_text ul li {
  margin-top: .25rem !important;
  line-height: 1.4rem;
}

body .et_pb_button,
body.et-db #page-container #et-boc .et-l .et_pb_section .et_pb_button_1_tb_footer, 
body.et-db #page-container #et-boc .et-l .et_pb_section .et_pb_button_1_tb_footer:hover,
body.et-db #page-container #et-boc .et-l .et_pb_section .et_pb_button_0_tb_header,
body.et-db #page-container #et-boc .et-l .et_pb_section .et_pb_button_0_tb_header:hover,
#partner-button a
{
  padding: .625rem 1rem !important;
  box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05) !important;
}

.secondary_button {
  background: #2962c3 !important;
  border: 1px solid #2962c3 !important;
}

.secondary_button:hover {
  color: #2962c3 !important;
  background: #ffffff !important;
}

.et_pb_text_inner a:hover,
.et_pb_post_content a:hover,
.flex-post-content a:hover,
.card-body a:hover,
.text-box a:hover,
.textwidget a:hover,
.sol_title a:hover {
  text-decoration: underline !important;
}

.border-shadow {
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

blockquote {
    border-color: #f58220 !important;
}

blockquote p {
    color: #192b74;
    font-size: 1.2rem;
    font-weight: 500;
    font-style: normal;
    line-height: 1.27;
}

.wp-caption {
    margin-bottom: 20px;
}

.et_pb_row.et_pb_row_1,
.et-db #et-boc .et-l .et_pb_row_1.et_pb_row {
    padding-top: .75rem !important;
}

/** page footer menu stacked **/
.et_pb_menu .et_pb_menu__menu>nav>ul {
    display: block !important;
}

@media (max-width: 767px) {
  .side-by-side-mobile .et_pb_column {
    width: 45% !important; /* Adjust percentage for 4+ columns */
    margin-bottom: 0px !important;
  }
}


/** menu animation off **/
et_pb_menu, .et_pb_menu * {
    animation: none !important;
    transition: none !important;
}

/** menu styles **/

.menu_right_column {
    background: #fafafa !important;
    padding: 1.25rem !important;
}

#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li.mega-menu-item > a.mega-menu-link,
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li.mega-menu-megamenu > ul.mega-sub-menu li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item li.mega-menu-item > a.mega-menu-link {
    font-weight: 600 !important;
}

.mega-current-menu-item > a {
  color: #2962c3 !important;
}

.menu_title {
    display: inline-block;
    margin-bottom: 10px;
    font-weight: 500 !important;
    color: #717680 !important;
}

#mega-menu-wrap-primary-menu #mega-menu-primary-menu .mega-description-group .mega-menu-description {
  font-size: 0.875rem !important;
  font-weight: normal !important;
  font-style: normal !important;
  line-height: 1.43 !important;
  color: #535862 !important;
}

/** insights menu **/
/* Container for the 3 rows */
.flex-posts-container {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between rows */
    max-width: 600px; /* Adjust based on your layout */
}

/* Individual Post Row */
.flex-post-row {
    display: flex;
    align-items: flex-start; /* Aligns items to the top */
    gap: 15px; /* Space between image and text */
}

/* The Image Side */
.flex-post-image {
    flex: 0 0 120px; /* Fixes the image width at 100px */
}

.flex-post-image img {
    width: 120px;
    height: auto;
    border-radius: 6px;
    display: block;
}

/* The Text Side */
.flex-post-content {
    flex: 1; /* Takes up remaining space */
    font-size: 0.875rem;
}

.flex-post-content h3 {
    margin: 0 0 0 0; /* Tightens up the title spacing */
    font-size: 1rem !important;
    line-height: 1.5;
}

.flex-post-content h3 a:hover {
    color: #2962c3 !important;
}

.flex-post-content p {
    margin: 0;
    line-height: 1.4;
}

.insights_link {
    font-weight: 600;
}

.insights_link:after {
    font-family: FontAwesome;
    font: var(--fa-font-solid);
    content: '\f061'; 
    margin-left: 0.5em;
}

.card {
  display: flex;
  flex-direction: column; 
  width: 100%;           
  overflow: hidden;       
}

.card-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px; 
  margin-bottom: 10px; 
}

.card-body {
  padding: 0px;
  display: flex;
  flex-direction: column;
  gap: 8px;               
}

.card-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.custom-html-widget .card-title a {
  font-size: 1rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.5;
  color: #181d27 !important;
}

.custom-html-widget .card-title a:hover {
   color: #2962c3 !important;  
}

/* Base Container Styles */
.card-container {
  min-width: 0;
  display: flex !important;
  margin: 0px auto;
  background: #ffffff;
  overflow: hidden;
  width: 1280px;
  height: auto;
  /*max-height: 580px;*/
  padding: 0 50px;
  background-position: center;
  background-size: cover;
  color: #181d27;  
}

.card-container.yellow {
    background-image: url('/wp-content/themes/JSI/images/EiA-Golden-background.png');
    background-color: #f6b438;
}

.card-container.blue {
    background-image: url('/wp-content/themes/JSI/images/EiA-Blue-background.png');
    color: #ffffff;
    background-color: #314183;
}

.card-container.white {
    background-image: url('/wp-content/themes/JSI/images/EiA-White-background.png');
    background-color: #ffffff;
}

/* 1/3 Profile Section */
.profile-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.profile-img {
  width: 280px;
  height: 280px;
  border-radius: 50% !important;
  object-fit: cover;
  margin-bottom: 15px;
  border: 4px solid #c6ceee;
}

/* 2/3 Content Section */
.content-side {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: start;
  padding: 80px 10px;

}

.content-side .quote {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.22;
  margin-bottom: 1.25rem;
  
}

.profile-side .name {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.33;
    margin-bottom: 0px;
}

.card-container.blue .profile-side .name {
    color: #ffffff !important;
}

.profile-side .title {
    text-align: center;
    width: 250px;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.56;   
}

.content-side .description {
  font-size: 1.25rem;
  font-weight: normal;
  line-height: 1.5;
}

.content-side blockquote {
    margin: 20px 0 30px;
    border-left: none !important;
    padding-left: 0px !important;  
}


/* Responsive Breakpoints */

/* Tablet View */
@media (max-width: 1100px) {
  .card-container {
    width: 700px;
  }
}

/* Mobile View */
@media (max-width: 768px) {
  .card-container {
    width: 95%; /* Better for mobile edges */
    height: auto !important;
    max-height: 100%;
    flex-direction: column; /* Stacks everything */
    padding: 0 20px !important;
  }
  
  .profile-side, .content-side {
    flex: none;
    width: 100%;
    padding: 20px;
  }

  .profile-img {
    width: 150px !important;
    height: 150px !important;
  }  

  .content-side .quote {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
  }

  .content-side .description,
  .profile-side .name,
  .profile-side .title {
    font-size: 1rem !important;
    line-height: 1.5 !important;
  }    

}

/** no hamburger on mobile **/
@media (max-width: 980px) {
  .pa-open-mobile-menu .et_pb_menu__menu { display: block !important; }
  .pa-open-mobile-menu .et_mobile_nav_menu { display: none !important; }
}

/* progress bar */

#progress-bar {
  height: 100%;
  background: linear-gradient(to right, #2962c3, #a9c0e7); /* Optional gradient for style */
  width: 0%;
  /* This makes the movement fluid */
  transition: width 0.2s ease-out; 
}

#progress-container {
  position: fixed;
  top: 100;
  left: 0;
  width: 100%;
  height: 5px;
  background: rgba(0, 0, 0, 0.1); /* Subtle background */
  z-index: 9999;
  opacity: 0; /* Use opacity for a fade-in effect */
  transition: opacity 0.3s ease;
  pointer-events: none; /* Prevents the bar from interfering with clicks */
}

/* Updated visibility class */
.visible {
  opacity: 1 !important;
}

/* slick dots */

.slick-dots {
    bottom: 0px;
    padding: 20px 0 !important;
}

.slick-dots li button {
  font-size: 0; 
  border: 0;
  background: none;
  width: 20px; 
  height: 20px;
  padding: 0;
  position: relative;
}


.slick-dots li button::before {
  content: "\f111"; 
  font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free"; 
  font-weight: 900; 
  font-size: 16px; 
  color: #d9d9d9; 
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Style the active dot */
.slick-dots li.slick-active button::before {
  color: #333333; 
}

.slick-dots li:only-child {
    display: none !important;
}


.quote a {
  font-weight: 500;
  text-decoration: underline;
}

.quote a:hover {
  font-weight: 600;
}

.blue .quote a {
  color: #ffffff !important;
}

.white .quote {
  color: #2962c3 !important;
}

.expert-slider,
.impact-slider {
  overflow: hidden;
}


/*** impact spotlight ***/

.impact-slider .slick-list {
    padding:0 10% 0 0 !important;
    background-color: #fafafa;
}

.impact-container {
  display: flex !important;
  width: 100%;
  min-height: 450px; /* Adjust height as needed */
  background-color: #fafafa;
  overflow: hidden; /* Ensures image corners don't bleed out if container has radius */
  margin-top: 0px;
}

.image-box {
  flex: 1; /* This represents the 1/3 */
  background-size: cover;
  background-position: center;
  min-width: 500px;
}

.text-box {
  flex: 2; /* This represents the 2/3 */
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.impact_title {
    font-size: 1.875rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
  .impact-container {
    flex-direction: column;
  }
  .image-box {
    height: 250px;
    width: 100%;
    display: none;
  }

    .we-partner .image-box {
      display: flex !important;
    }

   .text-box {
    flex: 1; 
    padding: 30px 20px;
    font-size: 1rem;
    line-height: 1.5rem;
  }

.impact_title {
    font-size: 1.5rem !important;
}  
  
    .impact-slider .slick-list{
        padding:0 0 0 0 !important;
    }  
}

/** we partner mods **/

.we-partner.impact-slider .slick-list {
  background-color: transparent !important;
}

.we-partner .impact-container {
  background-color: #f5f7ff !important;
}

.we-partner .impact-container {
  margin-right: 60px;
  border-radius: 8px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  background-color: #f5f7ff;  
}

.we-partner .image-box {
    background-size: contain;
    background-repeat: no-repeat !important;
}

.we-partner .text-box {
  background: #f5f7ff;
  font-size: 2rem;
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.22;  
}

.we-partner .partner {
  font-size: 1.5rem;
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.33;
  margin-top: 40px;
}

.we-partner .image-box {
  min-width: 350px;
}

/*** image caption ***/

.pac_dih__image_details {
    position: absolute;
    bottom: 0px;
    left: 0px;
    display: block;
    padding: 10px;
    background: rgb(0, 0, 0, .5);
    color: #fff;
    font-size: .75rem;
}

.pac_dih__image_details:empty, 
.wp-caption-text:empty {
    display: none !important;
}

/*** post styles ***/

.blog_grid {
    margin-bottom: 20px !important;
}

.post_cat {
  color: #192b74;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.post_title,
.post_title a {
  font-size: 1.5rem !important;
  font-weight: 600;
  line-height: 1.33;
  padding-right: 2.5rem;
  color: #181d27;
}

.post_title:hover {
  text-decoration: underline;
}

.post_title a:before {
  content: url('/wp-content/themes/JSI/images/icon-wrap.png');;
  position: absolute;
  right: 0;
}


.custom-divi-loop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 5.5%; /* Matches Divi's standard row gutter spacing */
    width: 100%;
}
.custom-grid-item {
    margin-bottom: 0 !important; /* Prevents Divi's bottom margin overlap */
}
/* Responsive adjustments for tablets and mobile */
@media (max-width: 980px) {
    .custom-divi-loop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 4%;
    }
}
@media (max-width: 767px) {
    .custom-divi-loop-grid {
        grid-template-columns: 1fr;
        gap: 30px 0;
    }
}


/*** search styles ***/

.search-query-term {
  background-color: #fad388;
  padding: 2px 0;
  font-weight: 600;
}

.hide-row {
    display: none;
}

.et_pb_searchsubmit {
  padding: .625rem 1rem !important;
  box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05) !important;
  background-color: #192b74 !important;
  border: 2px solid #192b74 !important;
  border-radius: 8px !important;
  color: #ffffff !important;    
}

.et_pb_searchsubmit:hover {
  color: #192b74 !important;
  background: #ffffff !important;
  border: 2px solid #192b74 !important;
}

.et-db #et-boc .et-l .et_pb_search_0_tb_header.et_pb_search {
    border-width: 0px !important;
}

.et-db #et-boc .et-l .et_pb_search_0_tb_header form input.et_pb_s {
  border: 2px solid #d5d7da !important;
  padding: 20px !important;
  margin-right: 10px !important;
  border-radius: 2px !important;
}

.search_box {
    display: none;
    width: 100%;
    z-index: 1000;
}

.search_open, .search_close {
    cursor: pointer;
    font-weight: 500 !important;
}

.search_open .et-pb-icon,
.search_close .et-pb-icon,
.et_pb_icon_0_tb_header .et_pb_icon_wrap .et-pb-icon {
  font-weight: 500 !important;
}

#my-custom-icon.et_pb_icon .et-pb-icon:before,
#my-custom-icon .et-pb-icon {
    font-weight: 500 !important;
}

.et-pb-icon {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 400 !important; /* 400 changes it to standard outline weight */
}

.entry-title a {
  color: #2962c3 !important;
}

.entry-title a:hover {
  text-decoration: underline !important;
}


/* insights featured posts */

.tw-column-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.grid-col-main, .grid-col-side {
    flex: 1;
    min-width: 300px;
}

.post-content {
  position: relative;
}

.post-excerpt {
  font-size: 1rem !important;
  line-height: 1.5rem !important;
}

/* Left Column Styling (Stacked) */

/* First Column Image Constraints */
.large-layout .post-thumb {
    width: 100%;
    height: 190px; /* Forced height */
    overflow: hidden; /* Hide anything outside the box */
    margin-bottom: 15px;
}

.large-layout .post-thumb img {
    width: 100%;
    height: 100% !important; /* Forces image to fill the 190px container */
    object-fit: cover;      /* Crops the image to fit without distortion */
    object-position: center; /* Centers the crop */
}

/* Right Column Styling (Small thumb on left) */
.small-layout {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.small-layout .post-thumb {
    flex: 0 0 240px; /* Fixed small thumbnail width */
}

.small-layout .post_title {
    font-size: 1.25rem !important;
    line-height: 1.75rem !important;
    padding: 0px 10px 10px 0px !important;
}

.small-layout .post_title:before {
    content: none !important;
}

.post-cats {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #888;
}

img.related-post {
  max-height: 150px;
  width: auto;
  border-radius: 2px;
}

/* search and filter styles */

ul.search-filter-component-combobox-base__listbox-list {
  padding: 0px !important;
}

.searchandfilter {
    z-index: 9999;
    position: relative;
}


/** blog page styles **/

.custom-toc {
  padding: 20px 0px !important;
  display: inline-block;
  border-bottom: 1px solid #e3e3e3;
}

.custom-toc li {
  list-style: none;
  font-size: 1rem;
  line-height: 1.5rem;
  margin-bottom: 10px;
}

.custom-toc li a {
  color: #192b74;
  
}

.wpb_wrapper p:last-child {
  margin-bottom: 20px;
}

.wpb_wrapper ul li {
  margin-bottom: 10px;
}

/** share buttons **/

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #2962c3 !important;
    text-decoration: none !important;
    transition: opacity 0.3s ease;
    border: 2px #2962c3 solid;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}
.share-btn:hover { opacity: 0.8; }
.bg-fb { background-color: #ffffff; }
.bg-li { background-color: #ffffff; }
.bg-copy { background-color: #ffffff; }
.bg-success { background-color: #28a745 !important; color: #ffffff !important; }

/** resource search styles **/

.resources-results {
  padding: 20px 0px;
}

.resources-results h5 {
  font-size: 1.25rem;
  line-height: 1.5rem;
}

.resources-results h5 a {
  color: #2962c3 !important;
}

/** contact form styles **/

.contact-container {
  display: flex;      
  align-items: flex-start; 
  gap: 15px;          
}

.contact-container i {
  font-size: 1.25rem;
}

.contact-container .icon-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    line-height: 1.875rem; 
    background: #ffffff;
}

.contact-container .content h4 {
  margin: 0;
  padding: 0;
  font-size: 1.25rem;           
  line-height: 1.875rem; 
}

.contact-container .content p {
  margin-top: 8px;     
}

/** gravity forms styles **/

#gform_submit_button_1,
#gform_submit_button_2,
#gform_submit_button_3 {
  background: #192b74 !important;
  border: 1px solid #192b74 !important;
  padding: .625rem 1rem !important;
  border-radius: 8px;
  box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05);
  font-size: 0.875rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.43;    
}

#gform_submit_button_1:hover,
#gform_submit_button_2:hover,
#gform_submit_button_3:hover {
  background: #ffffff !important;
  color: #192b74
}

#gform_submit_button_4 {
  background: #2962c3 !important;
  border: 1px solid #2962c3 !important;
  padding: .625rem 1rem !important;
  border-radius: 8px;
  box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05);
  font-size: 0.875rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.43;   
}

#gform_submit_button_4:hover {
  background: #ffffff !important;
  color: #2962c3 !important;
}

.gform_required_legend {
  display: none !important;
}

#gform_2 .ginput_container_email #input_2_2_1_container {
  min-width: 100% !important;
  padding-right: 0 !important;
  margin-bottom: 7px !important;
}

#gform_2 .ginput_container_email #input_2_2_2_container {
  padding-left: 0 !important;
}

/** solicitations **/

.sol-content {
  position: relative;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 2px;
  box-shadow: 0 4px 6px -2px rgba(10, 13, 18, 0.03), 0 12px 16px -4px rgba(10, 13, 18, 0.08);
  border: solid 1px #f5f5f5;
  background: #ffffff;
}

.sol_cat {
  color: #192b74;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.sol_title {
  font-size: 1.5rem !important;
  font-weight: 600;
  line-height: 1.33;
  padding-right: 2.5rem;
  color: #181d27;
}

.sol_title a:before {
  content: url('/wp-content/themes/JSI/images/icon-wrap.png');;
  position: absolute;
  right: 36px;
}

.sol_date {
  font-size: 0.875rem;
  line-height: 1.43;
}

.sol_date span.date_title {
  font-weight: 500;
}

/** leadership/board page **/

.profile-card {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    border: solid 1px var(--gray-100);
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    padding: 30px;
    max-width: 100%;
    width: 100%;
    margin-bottom: 30px;
    
    /* Flexbox Magic */
    display: flex;
    align-items: center; /* Vertically aligns image and text */
    gap: 30px; /* Space between image and text */
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50% !important;
    object-fit: cover; /* Ensures image doesn't stretch */
    border: 4px solid #c6ceee;
    flex-shrink: 0; /* Prevents image from shrinking if text is long */
}

.profile-content {
    flex: 1; /* Takes up remaining space */
}

.profile-name {
  font-size: 1.5rem;
  line-height: 1.33;
  color: #181D27;
  font-weight: 600;
  padding-bottom: 5px;
}

.profile-title {
  margin: 0 0 5px 0;
  font-size: 1.25rem;
  line-height: 1.33;
  color: #535862;
  font-weight: 600;
  letter-spacing: normal;
  padding-bottom: 8px;
}

.profile-position {
    margin: 0 0 5px 0;
    font-size: 1.25rem;
    line-height: 1.875rem;
    color: #535862;
    font-weight: 600;
}

.profile-bio {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.56;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 600px) {
    .profile-card {
        flex-direction: column; /* Stacks items vertically */
        text-align: center; /* Centers text for mobile look */
    }

    .profile-image {
        margin-bottom: 10px; /* Adds space below image when stacked */
        width: 150px;
        height: 150px;
    }
}

.w-image img {
  transition: width 0.5s ease-in-out !important;
}

/* world education */

.icon_number {
  font-size: 4rem;
  font-weight: bold;
  line-height: 1.25;
  text-align: center;
  color: #181d27;
}

/** homepage slider **/

/** Old Slider 

.hero-slider {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 650px;
  overflow: hidden;
  color: white;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: flex-start;
  padding: 0 10% 10% 0;
}

.slide.active { opacity: 1; z-index: 1; }

.slide .content { 
  width: 60%;
  max-width: 100%;
  padding: 50px 50px 50px 100px;
  margin-top: 100px;
  background-color: rgba(28, 37, 76, 0.85);
  border-radius: 2px; 
}
.label { 
  font-weight: 500; 
  font-size: 1rem; 
  color: #ffffff; 
}

.content h1 { 
  font-size: 3rem; 
  margin: 20px 0; 
  line-height: 3.938rem; 
  color: #ffffff !important; 
}

.content .btn {
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid white;
  color: white;
  text-decoration: none;
  font-weight: normal;
  font-size: 1.25rem;
  transition: 0.3s;
  border-radius: 8px;
}

.btn:hover { 
  background: white; 
  color: black; 
}

*/

/** new slider **/

/* Slider Container */
    .slider-container {
      width: 100%;
      height: 500px;
      min-height: 500px;
      overflow: hidden;
      position: relative;
    }

    /* Individual Slide Frame */
    .slide {
      width: 100%;
      height: 100%;
      display: flex;
      position: absolute;
      flex-direction: column; /* Stacked layout by default on mobile */
      opacity: 0;
      transition: opacity 0.8s ease-in-out;
    }

    .slide.active { opacity: 1 !important; z-index: 1 !important; }

  /* Desktop layout: Switch to horizontal row */
    @media (min-width: 1000px) {
      .slide {
        flex-direction: row; 
      }
    }


    /* 1/3 Content Box */
    .slide-content {
      /*background-color: rgba(28, 37, 76, 0.85);*/
      background-color: #192b74;
      padding: 40px;
      flex-direction: column;
      justify-content: flex-start !important; 
      align-items: flex-start; /* Aligns text/button to the left */
      flex: 1; /* Default allocation */
      z-index: 2;
      height: auto;
      flex-shrink: 0 !important;      
    }

    @media (min-width: 768px) {
      .slide-content {
        flex: 1; /* Takes up 1 out of 3 total parts */
      }   
    }

    @media (max-width: 1000px) {

      .slider-container {
        height: 700px;
      }      
    }    
    
    .slide-content .label { 
      font-weight: 600; 
      font-size: 1rem; 
      color: #ffffff; 
    }


    .slide-content h1 { 
      font-size: 2.5rem; 
      margin: .75rem 0 0 0; 
      line-height: 3rem; 
      color: #ffffff !important;
      height: auto;               /* Ensures height fits the content strictly */
      min-height: 0;       
    }

    /* Call to Action Button */
    .slide-content .btn {
      display: inline-block;
      padding: 12px 30px;
      border: 1px solid white;
      color: white;
      text-decoration: none;
      font-weight: normal;
      font-size: 1rem;
      transition: 0.3s;
      border-radius: 8px;
      margin-top: 1.75rem;
    }

    .slide-content .btn:hover { 
      background: white; 
      color: black; 
    }

    /* 2/3 Full Bleed Image Box */
    .slide-image {
      width: 100%;
      height: 50vh; /* Fixed height for mobile view */
    }

  /* Desktop Sizing for 2/3 */
    @media (min-width: 768px) {
      .slide-image {
        height: 100%; /* Spans full slider height on desktop */
        flex: 2; /* Takes up 2 out of 3 total parts */
      }
    }

    /* Actual Image Styling */
    .slide-image img {
      width: 100%;
      height: 100%;
      object-fit: cover; /* Keeps image full bleed and un-distorted */
      object-position: center;
    }

/* Navigation & Progress Bars */
.slider-nav {
  position: absolute;
  bottom: 40px;
  left: 10%;
  right: 10%;
  display: flex;
  gap: 20px;
  z-index: 10;
}

.nav-item {
  flex: 1;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.3s;
}

.nav-item.active { opacity: 1; }

.nav-label { font-size: 0.8rem; display: block; margin-bottom: 8px; }

.progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.3);
  position: relative;
}

.fill {
  height: 100%;
  background: white;
  width: 0%;
}

.nav-item.active .fill {
  animation: progress 5s linear forwards;
}

@keyframes progress {
  from { width: 0%; }
  to { width: 100%; }
}

@media (max-width: 1100px) {

  .slide .content {
    width: 100% !important;
    padding: 20px 20px 20px 20px;
    margin-top: 40px;    
  }

  .content h1 { 
    font-size: 2rem; 
    margin: 10px 0; 
    line-height: 2.5rem; 
  }
  
  .content .btn {
    font-size: 1rem;
    padding: 10px 20px;
  }

}

.image_treatment {
  border-radius: 2px;
}

.image_treatment.resource {
  border: solid 1px #d9d9d9;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.et_pb_image_wrap img {
  border-radius: 2px !important;
}

.et_pb_post_content img {
  margin: 20px auto !important;
  border-radius: 2px;
}

/* type writer*/

#type-text,
.writer-class,
.writer_text {
  font-size: 2.5rem;
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.36;
  letter-spacing: 0.4px;  
}

@media only screen and (max-width: 960px) {
  #type-text,
  .writer_text {
     font-size: 1.5rem !important;
     line-height: 1.36 !important;
  }
}

/*homepage experts*/

  /* Main Container */
.flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  padding: 0;
  border-radius: 8px;
}

/* Responsive Columns */
.column {
  flex: 1 1 calc(33.333% - 20px); /* 3 columns on desktop */
  min-width: 250px; /* Forces stacking when space is tight */
}

/* Author Layout (Image left, Text right) */
.author-profile {
  display: flex;
  align-items: center;
  gap: 15px;
}

.avatar {
  width: 97px;
  height: 97px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info .name {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.33;
}

.author-info .title, 
.author-info .position {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.56;  
}

/* responsive */

@media only screen and (max-width: 960px) {
  .author-info .name {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.33;
  }

  .action-btn{
    font-size: 14px !important;
  }

  .author-info .title, 
  .author-info .position {
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.56;  
  } 

}

/* Button Centering (3rd Column) */
.btn-col {
  display: flex;
  justify-content: center; /* Horizontal center */
  align-items: center;     /* Vertical center */
}

.action-btn {
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05);
  border: solid 1px #192b74;
  background-color: #192b74;
  color: #ffffff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

/* Mobile Stacking */
@media (max-width: 768px) {
  .column {
    flex: 1 1 100%; /* Spans full width on mobile */
  }
}

.post_contents,
.insight_content {
  color: #181d27 !important;
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.5;
}

/* form styles */

.gform_fields .gfield_select,
.gform_fields input[type="text"],
.gform_fields input[type="email"],
.gform_fields .textarea {
  font-size: 1rem !important;
  color: #717680 !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05) !important;
  border: solid 1px #a4a7ae !important;
}

.gform_fields .gfield_label {
  font-size: 0.875rem;
  font-weight: 500;
  font-style: normal;
  line-height: 1.43;
}

/** project page **/

.info-box {
  padding: 2rem 1.5rem;
  border-radius: 2px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  border: solid 1px #f5f5f5;
  background-color: rgba(255, 255, 255, 0.4);
  margin-bottom: 2rem;  
}

.box-header {
  display: flex;
  align-items: baseline;
  gap: 10px; 
  margin-bottom: 12px; 
}

.icon {
  font-size: 1.2rem;
  color: #2962c3; 
}

.heading {
  font-size: 1.5rem !important;
  font-weight: 600;
  font-style: normal;
  line-height: 1.33;
  margin: 0;
  padding: 0 !important;
}

.content {
  font-size: 1.125rem;
  font-weight: normal;
  font-style: normal;
  line-height: 1.56;
}

/** paging styles **/

.post_pagination {
  width: 100%;
  border-top: solid 1px #e9eaeb;
  padding: 1.25rem 0 0;
  margin-top: 4rem;
}

.wp-pagenavi {
    float: right;
}

.wp-pagenavi a, .wp-pagenavi span,
.page-numbers {
  border: none;
  color: #717680;
  font-size: .875rem;
  padding: .75rem;
  margin: .125rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.43;    
}

.wp-pagenavi span.current,
.page-numbers.current {
  color: #192b74;
  font-weight: normal;
  border-radius: 8px;
  background: #f5f7ff;
}

.relevanssi-pagination {
  width: 100% !important;
  text-align: right;
  border-top: solid 1px #e9eaeb;
  padding: 1.25rem 0 0;
  margin-top: 4rem;  
}

/** responsive styles **/

/* tablet view */
@media (max-width: 1100px) {
  .card-container {
    width: 700px;
  }
  .menu_button {
      font-size: 14px !important;
  }  
}


@media only screen and (max-width: 960px) {
    #mega-menu-wrap-primary-menu .mega-menu-toggle + #mega-menu-primary-menu {
      padding: 20px 0px 20px 0px;
    }
}

/* mobile view */
@media (max-width: 767px) {

}

@media (max-width: 980px) {
    .et_pb_menu--style-left_aligned .et_pb_menu__wrap {
        -webkit-box-pack: end;
        -ms-flex-pack: end;
        justify-content: flex-start;
    }
}

@media screen and (max-width: 959px) {
    /* Center the container element */
    .mega-menu li.mobile-cta-button {
        display: flex !important;
        justify-content: center; /* Centers the button horizontally */
        margin: 20px 0 !important; /* Adds space above and below the button */
        width: 100% !important;
    }
    
    /* Style and size the actual button link */
    .mega-menu li.mobile-cta-button > a.mega-menu-link {
        background-color: #0073aa !important; /* Replace with your brand color */
        color: #ffffff !important;
        border-radius: 4px;
        padding: 12px 30px !important; /* Generous padding for a clean look */
        font-weight: bold;
        text-align: center;
        display: inline-block !important; 
        width: auto !important; /* Prevents it from stretching full-width */
    }
}

