/* Neue Haas Grotesk Display font-face (local and woff2 fallback) */
@font-face {
    font-family: 'NeueHaasDisplay';
    src: url('../fonts/NeueHaasDisplayLight.woff2') format('woff2'),
         url('../fonts/NeueHaasDisplayLight.woff') format('woff'),
         url('../fonts/NeueHaasDisplayLight.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'NeueHaasDisplay';
    src: url('../fonts/NeueHaasDisplayMediu.woff2') format('woff2'),
         url('../fonts/NeueHaasDisplayMediu.woff') format('woff'),
         url('../fonts/NeueHaasDisplayMediu.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'NeueHaasDisplay';
    src: url('../fonts/NeueHaasDisplayBold.woff2') format('woff2'),
         url('../fonts/NeueHaasDisplayBold.woff') format('woff'),
         url('../fonts/NeueHaasDisplayBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'NeueHaasDisplay', Arial, sans-serif;
    font-weight: 300;
    background: #f7faff;
    color: #222;
}

h1, h2, h3, h4, h5, h6, .fw-bold {
    font-family: 'NeueHaasDisplay', Arial, sans-serif;
    font-weight: 700;
}
.fw-semibold, .fw-medium {
    font-family: 'NeueHaasDisplay', Arial, sans-serif;
    font-weight: 500;
}


.bg-primary {
    background-color: #1b2a49 !important;
}
.text-primary {
    color: #1b2a49 !important;
}
.btn-primary, .btn-outline-primary:hover {
    background-color: #1b2a49 !important;
    border-color: #1b2a49 !important;
    color: #fff !important;
}
.btn-outline-primary {
    border-color: #1b2a49 !important;
    color: #1b2a49 !important;
    background: #fff;
}
.btn-light {
    background: #fff !important;
    color: #1b2a49 !important;
    border: none;
}

.navbar {
    box-shadow: 0 2px 8px rgba(27,42,73,0.06);
}

/* Smooth dropdown animation for navbar */
@media (min-width: 992px) {
  .navbar .dropdown-menu {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s cubic-bezier(.4,0,.2,1), transform 0.25s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 8px 32px rgba(27,42,73,0.12);
    margin-top: 0.3rem;
  }
  .navbar .dropdown.show .dropdown-menu,
  .navbar .dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: 1px;
}
.nav-link {
    color: white;
}
.hero-section {
    background-position: center;
    background-size: cover;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero-section h1 {
    font-size: 64px;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.doctor-img {
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(27,42,73,0.13);
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.service-tile-bg {
    min-height: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.service-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}
.service-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27,42,73,0.55);
    z-index: 2;
}
.service-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
}
.service-content h4 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
}
.service-arrow-btn {
    background: #fff;
    color: #1b2a49;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(27,42,73,0.17);
    transition: background 0.2s, color 0.2s;
}
.service-arrow-btn:hover {
    background: #3bb0b1;
    color: #fff;
}
.btn-dark.bg-navy {
    background: #050e2d !important;
}
.btn-dark.btn-sm {
    background: #061e3b !important;
    border: none;
    color: #fff;
    font-size: 0.95rem;
    padding: 2px 18px;
    border-radius: 4px;
    margin-top: 0.3rem;
}
@media (max-width: 991px) {
    .service-tile-bg {
        min-height: 200px;
        height: 200px;
    }
    .service-content h4 {
        font-size: 1.1rem;
    }
}
@media (max-width: 767px) {
    .service-tile-bg {
        min-height: 140px;
        height: 140px;
    }
    .service-content h4 {
        font-size: 1rem;
    }
    .service-arrow-btn {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
}

/* Back to Top Button */
.back-to-top-btn {
    background: #050e2d;
    color: #fff;
    border: none;
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    box-shadow: 0 4px 24px rgba(27,42,73,0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    opacity: 0.94;
}
.back-to-top-btn:hover, .back-to-top-btn:focus {
    background: #3bb0b1;
    color: #fff;
    opacity: 1;
    box-shadow: 0 6px 32px rgba(59,176,177,0.19);
}

.awards-row img {
    filter: drop-shadow(0 2px 6px rgba(27,42,73,0.15));
    margin: 0 10px;
}

.testimonial-section {
    background: linear-gradient(120deg, #1b2a49 60%, #3bb0b1 100%);
    border-radius: 0;
    position: relative;
    min-height: 340px;
    overflow: hidden;
}
.testimonial-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 2px;
    font-size: 0.92rem;
    opacity: 0.6;
    margin-bottom: 0;
}
.testimonial-section h3 {
    color: #fff;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin-bottom: 1.6rem;
}
.testimonial-item {
    margin-bottom: 0.5rem;
}
.testimonial-item .bi-quote {
    font-size: 2.4rem;
    color: #3bb0b1;
    margin-bottom: 0.6rem;
    display: block;
}
.testimonial-text {
    font-size: 1.07rem;
    color: #fff;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}
.testimonial-carousel-dots button {
    width: 7px;
    height: 7px;
    background: #fff;
    opacity: 0.4;
    border: none;
    margin: 3px 0;
    transition: opacity 0.2s;
}
.testimonial-carousel-dots button.active {
    opacity: 0.7;
}
.testimonial-arrows .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    border-width: 2px;
    font-size: 1.2rem;
}
@media (max-width: 991px) {
    .testimonial-label {
        display: none !important;
    }
    .testimonial-section h3 {
        font-size: 1.17rem;
    }
}
@media (max-width: 767px) {
    .testimonial-section {
        padding-top: 2.2rem !important;
        padding-bottom: 2.2rem !important;
    }
    .testimonial-carousel-dots {
        display: none !important;
    }
    .testimonial-arrows {
        margin-top: 1.2rem;
    }
}

/* Centered Info Section (Patients at the Center) */
.section-centered-info {
    background: #050e2d;
    color: #fff;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    position: relative;
    overflow: hidden;
}
.section-centered-info h2 {
    color: #fff;
    font-weight: 400;
    font-size: 1.4rem;
    margin-bottom: 1.1rem;
    letter-spacing: 0.01em;
}
.section-centered-info svg {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.section-centered-info p {
    color: #e7eaf3;
    font-size: 0.96rem;
    line-height: 1.5;
    margin-bottom: 0;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 767px) {
    .section-centered-info {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .section-centered-info h2 {
        font-size: 1.08rem;
    }
    .section-centered-info svg {
        width: 32px;
        height: 32px;
    }
    .section-centered-info p {
        font-size: 0.90rem;
    }
}

/* Conditions/Procedures Accordion Section */
#conditions {
    background: #fff;
    border-bottom: 1px solid #e5e9f2;
}
#conditions .text-primary {
    color: #3bb0b1 !important;
    font-weight: 600;
    letter-spacing: 2px;
}
#conditions .accordion {
    margin-top: 1.2rem;
    border-left: 2px solid #e5e9f2;
    padding-left: 1.3rem;
}
#conditions .accordion-item {
    border: none;
    background: transparent;
}
#conditions .accordion-button {
    background: transparent;
    color: #1b2a49;
    font-weight: 500;
    font-size: 1.01rem;
    border-radius: 0;
    box-shadow: none;
    padding-left: 0.2rem;
}
#conditions .accordion-button:not(.collapsed) {
    color: #3bb0b1;
    background: #f8fafc;
}
#conditions .accordion-body {
    color: #2c3e50;
    font-size: 0.96rem;
    padding-left: 0.8rem;
    border-left: 2px solid #3bb0b1;
    background: #f8fafc;
}
.accordion-body ul {
    padding-left: 15px;
}
.accordion-body ul li {
    list-style: disc;
    font-size: 22px;
    line-height: 1.3;
}
.testimonial-carousel-dots button.rounded-circle {
    padding: 10px;
}
#conditions .fw-normal {
    font-weight: 400 !important;
}
#conditions .d-flex.align-items-start {
    margin-bottom: 0.8rem;
}
.location-card:hover {
    border-color: #3bb0b1 !important;
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 176, 177, 0.15);
}

.location-card:hover .location-arrow i {
    color: #3bb0b1 !important;
    transform: translateX(3px);
}

.location-arrow i {
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    #conditions .d-flex.align-items-start {
        flex-direction: column;
        align-items: flex-start !important;
    }
    #conditions .text-primary[style*="writing-mode"] {
        margin-bottom: 0.7rem !important;
        margin-right: 0 !important;
    }
    .about-svg-bg { display: none !important; }
    #about .ratio { min-height: 220px; }
    #about h2 { font-size: 1.5rem !important; text-align: center !important; }
    #about p { font-size: 1rem; text-align: center; }
    #about .text-lg-start { text-align: center !important; }
}
@media (max-width: 767px) {
    #conditions .accordion {
        padding-left: 0.2rem;
        margin-top: 0.5rem;
    }
    #conditions .col-lg-6 img {
        margin-top: 2rem;
    }
    .testimonial-carousel-wrap { padding-left: 0 !important; padding-right: 0 !important; }
    .testimonial-carousel-dots { display: none !important; }
    #about .col-lg-6, #about .col-lg-5, #about .col-lg-7 { flex: 0 0 100%; max-width: 100%; }
    #about h2 { font-size: 1.15rem !important; }
    #about p { font-size: 0.98rem; }
    .footer-main .row > div { flex: 0 0 50%; max-width: 50%; }
    .footer-main .row > div:last-child { flex: 0 0 100%; max-width: 100%; }
    .footer-social { justify-content: center !important; }
    .footer-main .row { row-gap: 1.5rem; }
    .footer-main h6 { margin-bottom: 0.5rem; }
}
@media (max-width: 575px) {
    #about .ratio { min-height: 160px; }
    #about h2 { font-size: 1rem !important; }
    #about p { font-size: 0.93rem; }
    .footer-main .row > div { flex: 0 0 100%; max-width: 100%; margin-bottom: 1.2rem; }
    .footer-main .row { row-gap: 0.7rem; }
    .footer-social { margin-bottom: 0.7rem; }
    .footer-main h6 { font-size: 1rem; }
}

/* Contact Section Responsive */
@media (max-width: 991px) {
    #contact .col-lg-7, #contact .col-lg-5 { flex: 0 0 100%; max-width: 100%; }
    #contact .row > .col-md-6 { flex: 0 0 100%; max-width: 100%; }
    #contact .card { margin-bottom: 1.5rem; }
}
@media (max-width: 767px) {
    #contact .card { margin-bottom: 1.2rem; }
    #contact .card-body { padding: 1.2rem; }
}

/* General fixes */
img, iframe { max-width: 100%; }
.top-doctor-award {
    margin: 10px;
    max-height: 200px;
}
.ratio iframe { border-radius: 0.5rem; }

footer {
    background: #1b2a49;
}
footer a {
    opacity: 0.8;
    transition: opacity 0.2s;
}
footer a:hover {
    opacity: 1;
}
footer h6 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
}
footer ul li a {
    color: #b7c3d9;
    text-decoration: none;
}
footer ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

#mobileMenuModal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 14, 45, 0.98);
  z-index: 2000;
  display: none;
  transition: opacity 0.2s;
  opacity: 0;
}
#mobileMenuModal.show {
  display: block;
  opacity: 1;
}
.mobile-menu-modal-content {
  min-height: 100vh;
  width: 100vw;
  background: transparent;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
}

/* Make the menu area scrollable if content exceeds viewport */
.mobile-menu-modal-content .mobile-nav-menu {
  flex: 1 1 auto;
  /* overflow-y: auto; */
  /* max-height: calc(100vh - 180px); adjust for header/footer height */
}

.mobile-nav-menu {
  min-height: unset;
  max-height: unset;
  overflow: unset;
}
.mobile-menu-close {
  color: #fff;
  font-size: 2.2rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2100;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #3bb0b1;
}
body.mobile-menu-open {
  overflow: hidden;
}
/* Smooth image transitions for accordion */
.procedures-image {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.procedures-image.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.procedures-image.fade-in {
    opacity: 1;
    transform: scale(1);
}
@media (max-width: 991.98px) {
  .mobile-nav-menu .mobile-dropdown-toggle {
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
    color: inherit;
    width: 100%;
    text-align: left;
    padding: 0;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: color 0.2s;
  }
  .mobile-nav-menu .mobile-dropdown-toggle:focus {
    color: #3bb0b1;
  }
  .mobile-nav-menu .mobile-dropdown-menu {
    background: none;
    padding-left: 0.5rem;
    margin-bottom: 0.5rem;
    transition: max-height 0.25s cubic-bezier(0.4,0,0.2,1);
    overflow: hidden;
  }
  .mobile-nav-menu .mobile-dropdown-menu.show {
    display: block !important;
    /* max-height: 300px; */
    animation: fadeInMenu 0.18s;
  }
  .mobile-nav-menu .mobile-dropdown-menu:not(.show) {
    display: none !important;
    max-height: 0;
  }
  .mobile-nav-menu .mobile-dropdown-toggle .bi {
    font-size: 1.1em;
    transition: transform 0.2s;
  }
  .mobile-nav-menu .mobile-dropdown-toggle[aria-expanded="true"] .bi {
    transform: rotate(180deg);
  }
}

@keyframes fadeInMenu {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-menu-bx{
    max-height: 52vh;
    overflow: auto;
}
  .mobile-nav-menu {
    /* min-height: 100vh; */
    /* background: #050e2d; */
    padding: 0;
    margin: 0;
    position: relative;
    /* width: 100vw; */
    /* left: -26px; fix for container padding */
    box-shadow: 0 0 24px rgba(0,0,0,0.07);
  }

  .mobile-nav-menu .nav-link {
    font-size: 2rem;
    color: #fff;
    font-weight: 400;
    letter-spacing: 0.5px;
    padding: 0.8rem 0;
    transition: color 0.2s;
  }
  .mobile-nav-menu .nav-link.text-info {
    color: white !important;
    font-weight: 400;
  }
  .mobile-nav-menu .nav-link:active, .mobile-nav-menu .nav-link:focus {
    color: #3bb0b1 !important;
  }
  .mobile-nav-menu .nav-item {
    margin-bottom: 0.3rem;
  }
  .mobile-nav-menu .text-white.fs-4.fw-bold {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
  }
  .mobile-nav-menu .fw-normal {
    font-weight: 400 !important;
  }
  .mobile-nav-menu .bi {
    font-size: 1.35rem;
    opacity: 0.92;
    transition: color 0.2s;
  }
  .mobile-nav-menu .bi:hover {
    color: #3bb0b1;
  }
  .mobile-nav-menu .d-flex.justify-content-center.gap-3.mb-4 {
    gap: 1.6rem !important;
    margin-bottom: 2.5rem !important;
  }
  .mobile-nav-menu img {
    margin-bottom: 1.2rem;
  }
}

/* Testimonial carousel dots */
.testimonial-carousel-dots button {
  background: #fff;
  opacity: 0.4;
  transition: background 0.3s, opacity 0.3s;
}
.testimonial-carousel-dots button.active {
  background: #007bff; /* Change to your highlight color if needed */
  opacity: 0.9;
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
}
.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}
.contact-menu{
    position: absolute;
    bottom: 10vh;
    width: max-content;
    left: 50%;
    transform: translateX(-50%);
}

/* Responsive tweaks */
@media (max-width: 767px) {
    .doctor-img {
        width: 70px;
        height: 70px;
    }
    .hero-section h1 {
        font-size: 1.5rem;
    }
}
