/*
 Theme Name:   Sde
 Template:     astra
 Version:      1.0.0
*/

div.otgs-development-site-front-end{
  display: none !important;
}


header.site-header span.site-logo-img a img{
    height: 100px;
    width: 100px;
    max-width: 100px;
    margin-top: -10px;
    margin-bottom: -10px;
}


body.home header.site-header span.site-logo-img a img{
    position: relative;
    top: 73px;
    height: 130px;
    width: 130px;
    max-width: 130px;
    margin-top: -40px;
}



.ast-primary-header-bar {
  background-color: #F0F7FA;
}


.ask-question-banner{
  display: none;
}

.custom-tag-buttons{
  display: none;
}

/* Ini page title */
.entry-title,
body.home h3,
body.home h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  position: relative;
  font-weight: 600;
  color: var(--ast-global-color-1); /* inherits Astra heading color */
  margin-top: 0px; /* spacing above and below */
  margin-bottom: 0px !important; /* spacing above and below */
  font-family: "Cormorant";
  text-transform: uppercase
}

body.home h3,
body.home h2{
  font-size: 32px;
}

.entry-title::before,
.entry-title::after,
body.home h3::before,
body.home h3::after,
body.home h2::before,
body.home h2::after
{
  content: "";
  flex: 1;
  border-bottom: 2px solid #194756; /* thicker line */
}

.entry-title::before,
body.home h3::before,
body.home h2::before

{ margin-right: 1rem; }
.entry-title::after,
body.home h3::after,
body.home h2::after
{ margin-left: 1rem; }


body.home div.wp-block-cover h2,
body.home div.wp-block-cover h3{
 font-size: 26px;
 display: block;
}


/* End page title*/

/* ini home block headers */

/* end home block headers */

#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link,
#mega-menu-wrap-primary #mega-menu-primary a.mega-menu-link{
  font-weight: 500 !important;
}


div.site  > header.entry-header {
  background: #fff;  /*radial-gradient(79.75% 134.25% at 95.71% 100%, #e4eff5 0%, #e4eff5 100%);*/
  background-size: auto;
/*  border-bottom: 1px solid #CBDDE8;
  border-top: 1px solid #CBDDE8;*/
  padding-top: 24px;
  padding-bottom: 0px;
  margin-bottom: 0px;
}


p#breadcrumbs{
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 10px;
}


.ask-question-banner a{
  font-size: 14px;
color:rgb(51, 65, 85);
font-weight: 500;
}
.ask-question-banner a i{
    font-size: 18px;
    display: block;
    height: 23px;
    float: left;  
    padding-top: 5px;
    padding-right: 10px;
}
header.entry-header .entry-title{
  margin-bottom:5px;
}
header.entry-header hr{

background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.95), transparent);

}



body.home .wp-block-cover__inner-container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 3px;}



.tag-button {
  display: inline-block;
  padding: 0.4em 0.9em;
  background-color: rgba(255, 255, 255, 0.75); 
  color: #1e293b;
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
  border-radius: 2em;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
      margin-top: 5px;
    margin-bottom: 10px;
}

.tag-button:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.tag-button.active {
  background-color: #ffffff;
  color: #002f6c;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/*parte the tag en page */

.on-this-page-nav {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 0rem 2rem;
    background-color: transparent;
    padding-bottom: 0px !important;
    margin-top: -25px;
}

.on-this-page-title {
  font-weight: 400;
  margin-bottom: 0.5rem;
  display: block;
  color: #f0079a;
  font-size: 16px;
  max-width: 1440px;
  margin: 0px auto;
  justify-content: flex-start;
}

.on-this-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  /*padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);*/
  max-width: 1440px;
  margin: 10px auto;
  margin-bottom: 0px;
  justify-content: flex-start;
  margin-top: 2px;
}

.on-this-page-links a {
  color: #979797;
  text-decoration: none;
  font-weight: 400;
  font-size: 15px;
}

.on-this-page-links a:hover {
  text-decoration: underline;
}


/*  Footer Styles  */

.custom-footer {
  background-color: #000000;
  padding: 2rem 1.5rem;
  font-size: 14px;
  color: #ffffff;
  text-align: center;
}

.custom-footer-links a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: 500;
}

.custom-footer-links a:hover {
  text-decoration: underline;
}

.custom-footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 1rem auto;
  width: 100%;
  max-width: 1440px;
}

.custom-footer-copy {
  color: #dddddd;
}

.sde-top-footer {
  background: linear-gradient(to bottom, #f2f0e1 0%, #d9d6c6 100%);
  padding: 3rem 1.5rem 2rem;
  font-size: 15px;
  color: #1e293b;
}

.sde-footer-column h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1e293b;
}

.sde-footer-column a {
  color: #1e293b;
  text-decoration: none;
  opacity: 0.9;
}

.sde-footer-column a:hover {
  text-decoration: underline;
  opacity: 1;
}




/* Footer Before section */


/* FOOTER CONTAINER */
.sde-footer-top {
  background: #F0F7FA;
  padding: 3rem 2rem 2rem;
  font-family: inherit;
  margin-top: 50px;
}

/* GRID SYSTEM */
.sde-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  max-width: 1440px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

/* SECTION HEADINGS */
.sde-footer-column h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #202530;
  margin-bottom: 1rem;
}

/* LINKS */
.sde-footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sde-footer-column ul li {
  margin-bottom: 0.6rem;
}

.sde-footer-column ul li a {
  text-decoration: none;
  color: #202530;
  font-size: 15px;
  font-weight: 500;
}

.sde-footer-column ul li a:hover {
  text-decoration: underline;
}

/* CTA BOXES */
.sde-footer-cta-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sde-footer-cta-box {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  background-color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #202530;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.sde-footer-cta-box:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.sde-footer-cta-icon {
  font-size: 1.2rem;
  margin-right: 0.6rem;
}

.sde-footer-cta-label {
  font-size: 0.95rem;
}

/* SOCIAL SECTION */
/* SOCIAL SECTION */
.sde-footer-social {
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid #ccc;
}

.sde-footer-social h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #202530;
}

/* SOCIAL ICONS */
.sde-social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.sde-social-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #202530;
  background-color: transparent;
  color: #202530;
  font-size: 1rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.sde-social-icon:hover {
  background-color: #202530;
  color: #ffffff;
}




/* === Diagnostic Card Styling === */
.diagnostic-card,
.patient-card {
  background-color: #ffffff;
  padding: 24px;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.diagnostic-card:hover,
.patient-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* === Icon to the Left of Heading === */
.diagnostic-card h5[class*="icon-"]::before,
.patient-card h5[class*="icon-"]::before

{
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1em;
  content: "\f085"; /* fallback icon */
  color: #f0079a;
  display: inline-block;
  margin-right: 0.5em;
  vertical-align: middle;
  content: "•"; /* info-circle */
}

/* === Align Icon and Text Inline === */
.diagnostic-card h5[class*="icon-"],
.patient-card h5[class*="icon-"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: #f0079a;
}

/* === Paragraph Text === */
.diagnostic-card p,
.patient-card p {
  font-size: 16px;
  line-height: 1.6;
}

/* === Specific Icon Assignments === */
.diagnostic-card h5.icon-intro::before   { content: "\f085"; } /* cog */
.diagnostic-card h5.icon-nibut::before   { content: "\f1fb"; } /* eye-dropper */
.diagnostic-card h5.icon-tmh::before     { content: "\f043"; } /* droplet */
.diagnostic-card h5.icon-lipid::before   { content: "\f5b0"; } /* adjust */
.diagnostic-card h5.icon-redness::before { content: "\f06e"; } /* fire */
.diagnostic-card h5.icon-meibom::before  { content: "\f03e"; } /* image */



@media (min-width: 769px) {

    :root {
    --wp--custom--ast-default-block-top-padding: 5px;
    --wp--custom--ast-default-block-left-padding: 5px;
    --wp--custom--ast-default-block-right-padding: 5px; /* Optional */
  }
  .sidebar-main,
  .patient-widget-right.sidebar  {
    position: sticky;
    top: 100px; /* adjust for your header height */
    align-self: flex-start;
    /* max-width: 250px; adjust as needed */
    width: 100%;
  }

    .content-area {
    padding-right: 10px !important; /* Reduce or set to 0 if needed */
    padding-left: 10px !important; /* Reduce or set to 0 if needed */
  }

  /* Or specifically target the inner wrapper if used */
  .content-area .site-main {
    padding-right: 0;
  }
}




/* Style the sidebar menu widget container */
/* Sidebar box styling */
.sidebar-main .widget_nav_menu,
.patient-widget-right.sidebar  .widget_nav_menu,
.partner-widget-right.sidebar  .widget_nav_menu
{
  background-color: #ffffff;
  padding: 24px;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
}

/* Clean list */
  .sidebar-main .widget_nav_menu ul.menu,
   .patient-widget-right.sidebar  .widget_nav_menu ul.menu,
   .partner-widget-right.sidebar  .widget_nav_menu ul.menu
{
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Align icon and text */
.sidebar-main .widget_nav_menu li.menu-item,
.patient-widget-right.sidebar  .widget_nav_menu li.menu-item,
.partner-widget-right.sidebar  .widget_nav_menu li.menu-item
{
  margin-bottom: 16px;
}

.sidebar-main .widget_nav_menu li.menu-item a,
.patient-widget-right.sidebar .widget_nav_menu li.menu-item a,
.partner-widget-right.sidebar .widget_nav_menu li.menu-item a
{
  display: flex;
  align-items: center;
  color: rgb(51, 65, 85);
  font-weight: 500;
  font-size: 15px;
  padding-top: 5px;
  text-decoration: none;
  transition: color 0.2s ease;
  overflow-wrap: break-word;
    hyphens: auto;
}

/* Hover effect */
.sidebar-main .widget_nav_menu li.menu-item a:hover,
.patient-widget-right.sidebar .widget_nav_menu li.menu-item a:hover,
.partner-widget-right.sidebar .widget_nav_menu li.menu-item a:hover
{
  color: rgb(51, 65, 85);
}

/* Icon style using Font Awesome (light/regular icons) */
.sidebar-main .widget_nav_menu li.menu-item a::before,
.patient-widget-right.sidebar .widget_nav_menu li.menu-item a::before,
.partner-widget-right.sidebar .widget_nav_menu li.menu-item a::before
{
  content: "\f105"; /* fa-angle-right */
  font-family: "Font Awesome 6 Free"; /* or 5 Free if you're using v5 */
  font-weight: 900; /* 900 for solid, 400 for regular, 300 for light (Pro) */
  display: inline-block;
  margin-right: 10px;
  font-size: 13px;
  color: #0073aa;
}


@media (min-width: 993px) {
  .ast-right-sidebar #secondary {
    padding-left: 0px !important; /* or 15px, or even 0 */
  }
  .ast-right-sidebar #secondary  .sidebar-main .widget_nav_menu{
    padding-left: 25px !important;
    padding-right: 5px !important;
  }

  .ast-right-sidebar #secondary{
    border-left: 0px  !important;
  }
  .ast-right-sidebar #primary{
    border-right: 0px !important  ;
  }




.sidebar-main{
  min-width: 100%;
}


body.home .wp-block-cover__inner-container {
    width: 550px !important;
    max-width: 80% !important;
    left: 20%;
}

}


/**/


/* Make archive content match page layout */
body.archive .site-content,
body.blog .site-content
 {
    background-color: #ffffff;
    padding: 3rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Optional: If your page template uses narrower width */
body.archive .ast-container {
    max-width: 1140px;
    margin: 0 auto;
}

/* Optional: Make sure footer stays beige */
body.archive .site {
    background-color: #f4f0dc; /* your current beige */
}

/* -- Archive Pages -- */

/* Archive header style matching single page look */
.archive-header {
    background-color: #ffffff;
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.archive-header .entry-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Style for Ask Us a Question button */
.ast-archive-description {
    display: none !important;
}



body.archive .site-content{
  padding-top: 15px;;
}



.site-content .ast-single-post-featured-section img {
    border-radius: 3px;
    /* width: 100%; */
    max-width: 96%;
    margin-right: auto;
    margin-left: auto;
}


/* Limit dropdown width */
/* Narrow down the WPML language switcher flyout submenu */
.mega-menu-item-type-wpml_ls_menu_item > ul.mega-sub-menu {
    width: 60px !important; /* Force override */
    min-width: unset !important;
    max-width: 80px;
    padding: 0 !important;
    text-align: center;
}



 ul.mega-sub-menu li.mega-wpml-ls-menu-item a.mega-menu-link{
  text-align: center !important;
}




.patient-right-widget-layout .ast-row,
.partner-right-widget-layout .ast-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
}

.patient-right-widget-layout #primary,
.partner-right-widget-layout #primary
 {
    width: 75%;
}

.patient-right-widget-layout .patient-widget-right,
.partner-right-widget-layout .patient-widget-right
 {
    width: 25%;
}

/* Responsive stacking */
@media (max-width: 768px) {
    .patient-right-widget-layout .ast-row,
    .partner-right-widget-layout .ast-row
    {
        flex-direction: column;
    }

    .patient-right-widget-layout #primary,
    .patient-right-widget-layout .patient-widget-right,
    .partner-right-widget-layout #primary,
    .partner-right-widget-layout .patient-widget-right    
    {
        width: 100%;
    }

    body.home .wp-block-cover__inner-container{
      width: 90% !important;
      max-width: 90% !important;
      left: 5%;
    }
}

#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu{
  border: 1px solid #f2f0e1 !important;
  }

body.home #mega-menu-wrap-primary #mega-menu-primary li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-menu-row,
body.home #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item a.mega-menu-link{
  background-color: #fff;
}


/* some resets */

@media (min-width: 1200px) {
    .ast-plain-container.ast-no-sidebar #primary {
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }
}


p{
  color: #3C2A11;
}


h2.heroTitle{
  color: #083335;
  font-weight: 300;
  font-size: 26px;
}

h2.heroTitle span{font-weight: 600;}

p.cormorant.heroLocations{
  font-family: "Cormorant";
  font-size: 24px !important;
  color: #083335;
  font-weight: 600;
  margin-bottom: 20px !important;
  margin-top: 20px !important;
}
.heroEmail{
  margin-bottom: 0px !important;
  font-size: 17px !important;
}

.whatsapp-contact{
  margin-top: 5px !important;
  text-align: center;
}

.whatsapp-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none !important;
  font-size: 17px;
  color: inherit;
  font-weight: 500;
}

.whatsapp-contact i {
  color: #25D366; /* official WhatsApp green */
  font-size: 1.4em;
}

.whatsapp-contact .label {
  color: #25D366;
  font-weight: 600;
}

.whatsapp-contact .number {
  color: #333; /* you can adjust this to match your text color */
}

.whatsapp-contact a:hover i {
  transform: scale(1.1);
}
