/* Responsive styling for Design 03 Aapulki Eye Care */

@media (max-width: 1199px) {

    .inner-hero-shell-d5,
    .contact-action-grid-d5 {
        grid-template-columns: 1fr;
    }

    .inner-hero-shell-d5 {
        align-items: start;
    }

    .hero-score-card-d5,
    .contact-hero-call-d5 {
        min-width: 0;
        width: min(100%, 420px);
    }

    .testimonial-video-grid-d5,
    .testimonial-quote-grid-d5,
    .contact-info-grid-d5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-map-panel-d5 {
        min-height: 360px;
    }

    .contact-hours-full-d5 {
        grid-template-columns: 1fr;
    }

    .contact-hours-full-d5 h3 {
        padding: 0 0 16px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.34);
    }

    .contact-mini-d5 {
        padding: 18px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.34);
    }

    .about-page-hero-d4 {
        padding-top: 120px;
    }

    .about-page-d4 .about-page-shell-d4 {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 28px;
        padding: 56px clamp(24px, 5vw, 60px) 40px;
        text-align: center;
    }

    .about-page-d4 .about-hero-copy-d4 {
        padding: 0;
    }

    .about-page-d4 .about-hero-copy-d4 h1 {
        font-size: clamp(50px, 7vw, 72px);
    }

    .about-page-d4 .about-hero-copy-d4 p {
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
    }

    .about-page-d4 .about-hero-copy-d4::after {
        left: 50%;
        top: 48%;
        width: 430px;
        height: 110px;
        transform: translateX(-50%) rotate(-10deg);
    }

    .about-page-d4 .about-hero-collage-d4 {
        width: min(100%, 580px);
        height: clamp(330px, 44vw, 440px);
        margin: 0 auto;
        transform: scale(0.9);
        transform-origin: center top;
    }

    .about-page-hero-d4::before {
        left: 10%;
        top: 7%;
        opacity: 0.48;
    }

    .about-page-hero-d4::after {
        left: auto;
        right: 4%;
        bottom: 26%;
        opacity: 0.46;
    }

    .about-stats-shell-d4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 24px;
        gap: 24px;
    }

    .about-intro-shell-d4 {
        grid-template-columns: 1fr;
        padding: 40px 24px;
        gap: 28px;
        text-align: center;
    }

    .about-intro-copy-d4 p {
        margin-left: auto;
        margin-right: auto;
    }

    .about-booking-shell-d4 {
        grid-template-columns: 1fr 1fr;
    }

    .about-consult-form-d4 {
        grid-column: 1 / -1;
        padding: 34px 24px;
    }

    .about-hours-d4,
    .about-why-d4 {
        padding: 34px 24px;
    }

    .about-bottom-shell-d4 {
        padding: 18px 24px;
        grid-template-columns: 1fr 1fr auto;
        gap: 24px;
    }

    body {
        overflow-x: hidden;
    }

    .site-header {
        min-height: 80px;
        padding: 10px 24px;
    }

    .menu-toggle {
        display: flex;
        z-index: 60;
    }

    /* Mobile Navigation Drawer */
    .site-nav {
        position: fixed;
        top: 0;
        right: -320px;
        width: 280px;
        height: 100vh;
        background: var(--white);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 30px;
        gap: 20px;
        transition: right 0.3s ease-out;
        z-index: 55;
    }

    .site-nav.is-open {
        right: 0;
    }

    .site-nav>a,
    .site-nav .mega-menu-trigger-d3,
    .site-nav .testimonial-menu-trigger-d3 {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
        font-size: 1.15rem;
    }

    .site-nav a::after {
        display: none;
    }

    .treatment-nav-item-d3,
    .testimonial-nav-item-d3 {
        width: 100%;
    }

    .mega-menu-trigger-d3,
    .testimonial-menu-trigger-d3 {
        justify-content: space-between;
    }

    .treatment-mega-d3 {
        position: static;
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
        width: 100%;
        margin-top: 12px;
        padding: 18px;
        border-radius: 10px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
    }

    .treatment-mega-col-d3 {
        gap: 10px;
    }

    .treatment-mega-col-d3 h3 {
        font-size: 1.1rem;
        margin-bottom: 2px;
    }

    .site-nav .treatment-mega-col-d3 a {
        border-bottom: 0;
        color: #ffffff;
        font-size: 1.05rem;
        line-height: 1.35;
        padding: 0;
    }

    .header-actions-d3 {
        display: none;
        /* Hide desktop action buttons, we will handle them in menu or drawer if needed */
    }

    /* Adjust header for mobile to keep call number or action button */
    .site-header .menu-toggle {
        order: 3;
    }

    /* Re-introduce a simplified action panel inside the header for mobile */
    .site-header::after {
        display: none;
    }

    /* Grid Adjustments */
    .hero-d3-container {
        grid-template-columns: 1fr;
        padding-top: 40px;
        text-align: center;
        gap: 40px;
    }

    .hero-d3-content {
        margin: 0 auto;
        max-width: 100%;
        background: rgba(255, 255, 255, 0.85);
        padding: 32px;
        border-radius: 12px;
        backdrop-filter: blur(8px);
    }

    .hero-d3-actions {
        justify-content: center;
    }

    .metrics-d3-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    .specialties-grid-d3 {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .specialty-feature-d3 {
        min-height: 300px;
    }

    .about-us-container-d3 {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .about-collage-d3 {
        max-width: 560px;
        margin: 0 auto;
    }

    .why-choose-row-d3 {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .why-choose-image-d3 {
        height: 520px;
    }

    .why-choose-content-d3 {
        padding-bottom: 88px;
    }

    .infrastructure-container-d3 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .infrastructure-visual-d3 {
        order: -1;
    }

    .services-circular-grid-d3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 20px;
    }

    .research-grid-d3 {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    /* .patient-stories-grid-d3 styles are defined later in media queries */

    .before-after-grid-d3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faq-booking-container-d3 {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .d3-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 24px;
    }

    .footer-brand-col-d3 {
        grid-column: 1 / -1;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 884px) {
    .services-box-d3 {
        padding-left: 34px;
        padding-right: 34px;
    }

    .pre-footer-banner-d6 {
        min-height: 420px;
        align-items: center;
        background:
            linear-gradient(90deg, rgba(237, 244, 229, 0.98) 0%, rgba(255, 255, 255, 0.94) 52%, rgba(245, 221, 221, 0.38) 82%, rgba(140, 28, 39, 0.14) 100%),
            url('../images/banner.webp') 88% center / cover no-repeat;
    }

    .pre-footer-banner-content-d6 {
        width: 100%;
        padding: 42px 22px;
        text-align: center;
    }

    .pre-footer-banner-content-d6 h3 {
        margin-bottom: 14px;
        font-size: 22px;
    }

    .pre-footer-banner-content-d6 h5 {
        margin-bottom: 26px;
        font-size: clamp(38px, 12vw, 56px);
    }

    .pre-footer-banner-content-d6 a {
        width: auto;
        min-height: 46px;
        padding: 11px 24px;
        font-size: 13px;
    }

    .inner-hero-d5 {
        padding: 126px 20px 54px;
    }

    .inner-hero-shell-d5 {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .inner-hero-d5 h1 {
        font-size: 40px;
    }

    .testimonial-video-grid-d5,
    .testimonial-quote-grid-d5,
    .contact-info-grid-d5,
    .contact-form-grid-d5,
    .hours-list-d5 {
        grid-template-columns: 1fr;
    }

    .testimonial-cta-shell-d5,
    .contact-form-stat-d5 {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-info-card-d5 {
        min-height: 0;
    }

    .hours-list-d5 p {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .hours-list-d5 p span::after {
        display: none;
    }

    .contact-map-panel-d5 {
        height: 300px;
        min-height: 300px;
    }

    .about-hero-copy-d4 h1 {
        font-size: 46px;
    }

    .about-hero-copy-d4 p {
        font-size: 18px;
    }

    .about-hero-collage-d4 {
        width: 360px;
        height: 280px;
        transform: none;
    }

    .about-main-photo-d4 {
        width: 250px;
        height: 250px;
        top: 18px;
    }

    .about-bubble-one-d4 {
        width: 105px;
        height: 105px;
        right: 30px;
        top: 26px;
    }

    .about-bubble-two-d4 {
        width: 92px;
        height: 92px;
        right: 70px;
        bottom: 20px;
    }

    .about-bubble-three-d4 {
        width: 110px;
        height: 110px;
        right: 0;
        bottom: 18px;
    }

    .about-booking-shell-d4,
    .about-bottom-shell-d4 {
        grid-template-columns: 1fr;
    }

    .about-bottom-shell-d4 {
        justify-items: start;
    }

    .section {
        padding: 64px clamp(16px, 4vw, 24px);
    }

    .section-divider {
        margin-bottom: 32px;
    }

    .metrics-d3-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .specialties-grid-d3 {
        grid-template-columns: 1fr;
    }

    .specialty-feature-d3 {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .specialty-image-d3 {
        min-height: 230px;
        max-height: 280px;
    }

    .specialty-copy-d3 {
        min-height: 240px;
        padding: 30px 26px;
    }

    .specialty-copy-d3::before {
        top: 0;
        left: 26px;
        width: 64px;
        height: 4px;
        transform: none;
    }

    .why-choose-row-d3 {
        grid-template-columns: 1fr;
    }

    .why-choose-image-d3 {
        width: 100% !important;
        height: auto !important;
        max-width: 50%;
    }

    .why-choose-content-d3 h2 {
        text-align: center;
    }

    .why-choose-details-d3 {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 18px;
    }

    .why-choose-round-image-d3 {
        width: 96px;
        height: 96px;
    }

    .why-choose-stat-d3 {
        position: relative;
        bottom: auto;
        margin-top: 30px;
        min-width: 0;
        width: 100%;
    }

    .services-circular-grid-d3 {
        grid-template-columns: 1fr;
    }

    /* .patient-stories-grid-d3 default styles are defined in media queries (max-width:1100px and max-width:768px) */

    .before-after-grid-d3 {
        grid-template-columns: 1fr;
    }

    .d3-footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .about-collage-d3 {
        min-height: 430px;
    }

    .about-collage-main-d3 {
        left: 8%;
        width: 84%;
        height: 355px;
    }

    .about-collage-secondary-d3 {
        width: 58%;
        height: 175px;
        border-width: 5px;
    }

    .about-collage-experience-d3 {
        top: 35px;
        width: 118px;
        height: 118px;
    }

    .about-collage-experience-d3 strong {
        font-size: 32px;
    }

    .about-collage-experience-d3 span {
        margin-top: 5px;
        font-size: 12px;
    }

    .inner-hero-d5 h1 {
        font-size: 34px;
    }

    .testimonial-quote-card-d5,
    .contact-form-panel-d5,
    .contact-hours-panel-d5 {
        padding: 24px;
    }

    .contact-form-panel-d5 h3 {
        font-size: 30px;
    }

    .contact-form-grid-d5 input {
        height: 50px;
    }

    .about-page-shell-d4 {
        padding: 40px 16px 30px;
    }

    .about-hero-copy-d4 h1 {
        font-size: 38px;
    }

    .about-hero-collage-d4 {
        width: 300px;
        height: 238px;
    }

    .about-main-photo-d4 {
        width: 210px;
        height: 210px;
    }

    .about-bubble-one-d4 {
        width: 88px;
        height: 88px;
        right: 24px;
    }

    .about-bubble-two-d4 {
        width: 76px;
        height: 76px;
        right: 56px;
    }

    .about-bubble-three-d4 {
        width: 92px;
        height: 92px;
    }

    .about-stats-shell-d4,
    .about-form-grid-d4 {
        grid-template-columns: 1fr;
    }

    .about-intro-image-d4 {
        height: 170px;
    }

    .metrics-d3-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .why-choose-row-d3 {
        grid-template-columns: 1fr;
    }

    .why-choose-image-d3 {
        width: 100% !important;
        height: auto !important;
        max-width: 90%;
    }

    .why-choose-play-d3 {
        width: 72px;
        height: 72px;
    }

    .why-choose-tabs-d3 {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .why-choose-tabs-d3 button {
        border: 1px solid rgba(46, 77, 59, 0.2);
    }

    .why-choose-details-d3 {
        grid-template-columns: 1fr;
    }

    .why-choose-round-image-d3 {
        width: 110px;
        height: 110px;
        margin: 0 auto;
    }

    .why-choose-content-d3 {
        padding-bottom: 0;
    }

    .why-choose-stat-d3 {
        padding: 22px;
    }

    .hero-d3-actions .btn {
        width: 100%;
    }

    .booking-body-d3 {
        padding: 20px;
    }
}

/* Mobile Nav Toggle Icon Transformation */
.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 1100px) {

    .infrastructure-container-d3,
    .faq-booking-container-d3,
    .about-us-container-d3,
    .treatments-section-grid-d3,
    .hero-d3-container {
        grid-template-columns: 1fr;
    }

    .about-us-container-d3 {
        gap: 40px;
        text-align: center;
    }

    .about-us-content-d3 {
        align-items: center;
    }

    .about-collage-d3 {
        max-width: 540px;
    }

    .patient-stories-grid-d3,
    .before-after-grid-d3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card-rect-d3 {
        flex: 0 0 calc(50% - 8px);
    }

    .research-grid-d3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 884px) {
    .metrics-d3-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .patient-stories-grid-d3,
    .before-after-grid-d3,
    .research-grid-d3 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    @media (max-width: 884px) {

        .patient-quotes-grid-d3,
        .reviews-grid-d3 {
            display: grid !important;
            grid-template-columns: repeat(2, 1fr) !important;
            gap: 24px !important;
        }
    }

    .reviews-slider-controls-d3 {
        display: none;
    }

    /* Journey Timeline Mobile Layout */
    .journey-vision-section-d3 {
        padding: 32px 16px;
    }

    .journey-card-d3 {
        min-height: auto;
        padding: 20px 18px 24px;
        border-radius: 10px;
    }

    .journey-card-title-d3 {
        margin-bottom: 24px;
    }

    .journey-timeline-container-d3 {
        width: 100%;
        padding: 0;
        margin-left: auto;
        margin-right: auto;
    }

    .journey-vision-container-d3 {
        width: 100%;
    }

    /* Re-orient the connector lines vertically for mobile */
    .journey-step-d3:not(:last-child)::after {
        top: 56px;
        left: 27px;
        width: 1px;
        height: 36px;
        background: #5c5a58;
        right: auto;
    }

    /* Re-orient the tiny ring vertically for mobile */
    .journey-step-d3:not(:last-child)::before {
        display: block;
        top: 72px;
        left: 24px;
        width: 6px;
        height: 6px;
        border: 0;
        border-radius: 50%;
        background: var(--maroon-dark);
        right: auto;
    }

    .journey-steps-d3 {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .journey-step-d3 {
        flex-direction: row;
        text-align: left;
        margin-bottom: 28px;
        width: 100%;
        padding: 0;
    }

    .journey-step-d3:last-child {
        margin-bottom: 0;
    }

    .journey-icon-d3 {
        width: 56px;
        height: 56px;
        margin-bottom: 0;
        margin-right: 18px;
        flex-shrink: 0;
        z-index: 2;
    }

    .journey-icon-d3 svg {
        width: 32px;
        height: 32px;
    }

    .journey-content-d3 {
        align-items: flex-start;
        padding-top: 5px;
    }

    .journey-year-d3 {
        font-size: 1rem;
    }

    .journey-title-d3 {
        min-height: auto;
    }

    /* Vision/Mission Card */
    .vision-mission-card-d3 {
        flex-direction: column;
        padding: 32px 20px;
        gap: 32px;
    }

    .vm-center-graphic-d3 {
        flex: 0 0 auto;
        width: 150px;
        margin: 0 auto;
    }

    .service-card-rect-d3 {
        flex: 0 0 calc(100% - 16px);
    }

    .services-highlights-d3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .infrastructure-content-d3 {
        padding: 48px 4%;
    }

    .faq-booking-section-d3 {
        padding: 64px clamp(16px, 4vw, 24px);
    }

    .doctor-profile-container-d3 {
        padding: 24px;
    }

    .dp-tab-headers {
        flex-direction: column;
        gap: 0;
    }

    .dp-tab-btn {
        width: 100%;
        text-align: left;
    }

    .about-us-d3 {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .wheel-diagram-container-d3 {
        transform: scale(1);
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .service-card-rect-d3 {
        flex: 0 0 calc(100% - 16px);
    }

    .services-highlights-d3 {
        grid-template-columns: 1fr;
    }

    .laurel-wreath-d3 {
        width: 45px;
        height: 90px;
    }

    .laurel-left-d3 {
        left: -40px;
    }

    .laurel-right-d3 {
        right: -40px;
    }

    .wheel-diagram-container-d3 {
        max-width: 280px;
    }
}

/* ==========================================================
   Site-wide responsive consolidation
   Breakpoints: large desktop, desktop, 1220/tablet, mobile
   ========================================================== */

html,
body {
    width: 100%;
    max-width: 100%;
}

body {
    overflow-x: hidden;
}

main,
section,
footer,
.site-header {
    min-width: 0;
}

img,
video,
iframe,
svg {
    max-width: 100%;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

.hero-d3-container,
.about-us-container-d3,
.why-choose-row-d3,
.infrastructure-container-d3,
.journey-vision-container-d3,
.treatments-section-grid-d3,
.research-grid-d3,
.patient-stories-grid-d3,
.before-after-grid-d3,
.faq-booking-container-d3,
.footer-top-container,
.d3-footer-grid,
.about-page-shell-d4,
.about-stats-shell-d4,
.about-intro-shell-d4,
.about-booking-shell-d4,
.about-bottom-shell-d4,
.inner-hero-shell-d5,
.testimonial-cta-shell-d5,
.contact-info-grid-d5,
.contact-action-heading-d5,
.contact-action-grid-d5,
.contact-hours-full-d5 {
    min-width: 0;
}

/* 1920px and larger */
@media (min-width: 1920px) {

    .hero-d3-container,
    .about-us-container-d3,
    .why-choose-row-d3,
    .journey-vision-container-d3,
    .treatments-section-grid-d3,
    .research-grid-d3,
    .patient-stories-grid-d3,
    .before-after-grid-d3,
    .faq-booking-container-d3,
    .footer-top-container,
    .d3-footer-grid {
        max-width: 1760px;
        margin-left: auto;
        margin-right: auto;
    }

    .site-header {
        padding-left: max(64px, calc((100vw - 1760px) / 2));
        padding-right: max(64px, calc((100vw - 1760px) / 2));
    }

    .hero-d3 {
        min-height: 820px;
    }

    .hero-d3-content {
        max-width: 760px;
    }

    .about-page-d4 .about-page-shell-d4,
    .about-page-d4 .about-booking-shell-d4 {
        max-width: 1920px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* 1440px desktop */
@media (min-width: 1200px) and (max-width: 1919px) {
    .site-header {
        min-height: 104px;
        padding: 12px clamp(24px, 3vw, 48px);
    }

    .site-header.is-scrolled {
        min-height: 96px;
        padding: 10px clamp(24px, 3vw, 48px);
    }

    .brand img,
    .site-header.is-scrolled .brand img {
        height: 76px;
    }

    .site-nav {
        gap: clamp(12px, 1.45vw, 22px);
    }

    .site-nav a,
    .site-nav .testimonial-menu-trigger-d3 {
        font-size: 1.02rem;
    }

    .header-actions-d3 {
        gap: 14px;
    }

    .call-expert-d3 {
        font-size: 0.94rem;
    }

    .d3-btn-green-nav {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .section {
        padding-left: clamp(32px, 5vw, 72px);
        padding-right: clamp(32px, 5vw, 72px);
    }

    .about-page-d4 .about-page-shell-d4 {
        grid-template-columns: minmax(330px, 0.82fr) minmax(560px, 1.18fr);
        gap: clamp(30px, 4vw, 64px);
        padding-left: clamp(40px, 5vw, 80px);
        padding-right: clamp(40px, 5vw, 80px);
    }

    .about-page-d4 .about-hero-collage-d4 {
        width: min(100%, 680px);
    }

    .patient-quote-panel-d3 {
        padding-left: clamp(28px, 3vw, 48px);
        padding-right: clamp(28px, 3vw, 48px);
    }
}

/* 1220px screens and landscape tablets */
@media (max-width: 1279px) {
    .section {
        padding: 72px clamp(24px, 4vw, 48px);
    }

    .section-divider {
        margin-bottom: 38px;
    }

    .d3-footer-grid {
        grid-template-columns: 1.2fr 1fr 1.2fr;
        gap: 38px 24px;
    }

    .footer-border-left::before {
        left: -12px;
    }
}

@media (max-width: 1199px) {

    .site-header,
    .site-header.is-scrolled {
        min-height: 88px;
        padding: 10px clamp(20px, 3vw, 36px);
    }

    .brand img,
    .site-header.is-scrolled .brand img {
        height: 68px;
    }

    .menu-toggle {
        display: flex;
        z-index: 60;
    }

    .header-actions-d3 {
        display: none;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 55;
        width: min(88vw, 360px);
        height: 100dvh;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
        padding: 104px 24px 32px;
        background: #ffffff;
        box-shadow: -10px 0 32px rgba(35, 53, 20, 0.16);
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .mobile-nav-header-d3 {
        position: absolute;
        top: 10px;
        left: 24px;
        right: 78px;
        height: 78px;
        display: flex;
        align-items: center;
    }

    .mobile-nav-logo-d3 {
        display: inline-flex;
        align-items: center;
    }

    .mobile-nav-logo-d3 img {
        width: auto;
        height: 62px;
        object-fit: contain;
    }

    .site-nav.is-open {
        transform: translateX(0);
    }

    .site-nav>a,
    .site-nav .mega-menu-trigger-d3,
    .site-nav .testimonial-menu-trigger-d3 {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
        font-size: 1.15rem;
    }

    .site-nav a::after {
        display: none;
    }

    .treatment-nav-item-d3 {
        width: 100%;
    }

    .testimonial-nav-item-d3 {
        width: 100%;
    }

    .testimonial-menu-trigger-d3 {
        justify-content: space-between;
    }

    .testimonial-dropdown-d3 {
        position: static;
        inset: auto;
        left: auto;
        right: auto;
        top: auto;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        max-height: 0;
        margin: 0;
        padding: 0 8px;
        overflow: hidden;
        border-radius: 10px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: none;
        box-shadow: none;
        transition: max-height 0.32s ease, margin 0.32s ease, padding 0.32s ease, opacity 0.24s ease, visibility 0.24s ease;
    }

    .testimonial-nav-item-d3.is-open .testimonial-dropdown-d3 {
        position: static;
        inset: auto;
        left: auto;
        right: auto;
        top: auto;
        width: 100%;
        max-height: 350px;
        margin: 8px 0 4px;
        padding: 10px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .testimonial-nav-item-d3:hover .testimonial-dropdown-d3,
    .testimonial-nav-item-d3:focus-within .testimonial-dropdown-d3 {
        transform: none;
    }

    .testimonial-dropdown-d3::before {
        display: none;
    }

    .testimonial-nav-item-d3:not(.is-open) .testimonial-dropdown-d3 {
        max-height: 0;
        margin: 0;
        padding-top: 0;
        padding-bottom: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: none;
    }

    .site-nav .testimonial-dropdown-d3 a {
        padding: 11px;
        border-bottom: 0;
        border-radius: 10px;
        transform: none;
    }

    .site-nav .testimonial-dropdown-d3 strong {
        font-size: 1.1rem;
    }

    .site-nav .testimonial-dropdown-d3 small {
        font-size: 0.78rem;
    }


    .treatment-nav-item-d3::after {
        display: none;
    }

    .mega-menu-trigger-d3 {
        justify-content: space-between;
    }

    .treatment-mega-d3 {
        position: static;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        max-height: 0;
        margin-top: 0;
        padding: 0 12px;
        overflow: hidden;
        border-radius: 14px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: none;
        box-shadow: none;
        transition: max-height 0.42s ease, margin 0.32s ease, padding 0.32s ease, opacity 0.25s ease, visibility 0.25s ease;
    }

    .treatment-nav-item-d3.is-open .treatment-mega-d3 {
        max-height: 2000px;
        margin-top: 10px;
        padding: 12px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .treatment-nav-item-d3:not(.is-open) .treatment-mega-d3 {
        max-height: 0;
        margin-top: 0;
        padding-top: 0;
        padding-bottom: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: none;
    }

    .treatment-nav-item-d3:not(.is-open) .mega-menu-caret-d3,
    .testimonial-nav-item-d3:not(.is-open) .testimonial-menu-caret-d3 {
        transform: rotate(45deg) translateY(-2px);
    }

    .treatment-nav-item-d3.is-open .mega-menu-caret-d3,
    .testimonial-nav-item-d3.is-open .testimonial-menu-caret-d3 {
        transform: rotate(225deg) translateY(-1px);
    }

    .treatment-mega-col-d3 {
        gap: 3px;
        padding: 15px;
        border-radius: 11px;
    }

    .treatment-mega-col-d3 h3 {
        margin-bottom: 7px;
        padding-bottom: 10px;
        font-size: 1.1rem;
    }

    .site-nav .treatment-mega-col-d3 a {
        padding: 7px 8px 7px 20px;
        font-size: 1.05rem;
        line-height: 1.4;
    }

    .site-nav .treatment-mega-col-d3 h3>a {
        padding: 0;
        font-size: inherit;
        font-weight: 800;
    }
}

@media (max-width: 1279px) {
    .hero-d3 {
        min-height: 720px;
        padding-top: 120px;
        background-position: 62% center;
    }

    .hero-d3-content {
        max-width: 62%;
    }

    .infrastructure-container-d3,
    .treatments-section-grid-d3,
    .faq-booking-container-d3,
    .contact-action-grid-d5 {
        grid-template-columns: 1fr;
    }

    .infrastructure-content-d3 {
        padding: 56px clamp(24px, 5vw, 56px);
    }

    .infrastructure-visual-d3 {
        min-height: 500px;
    }

    .research-achievements-d3 .research-grid-d3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .research-achievements-d3 .research-col-d3:first-child {
        grid-column: 1 / -1;
    }

    .d3-footer-grid {
        grid-template-columns: 1.2fr 1.1fr 1.2fr;
        gap: 38px 24px;
    }

    .footer-border-left::before {
        left: -12px;
    }

    .footer-brand-col-d3 {
        grid-column: auto;
        align-items: flex-start;
        text-align: left;
    }

    .footer-top-container {
        align-items: center;
        gap: 10px;
    }

    .footer-top-text {
        font-size: 10px;
        flex-shrink: 0;
    }

    .footer-top-info {
        gap: 10px;
    }

    .top-info-item {
        font-size: 0.78rem;
        gap: 4px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .top-info-item span {
        white-space: nowrap;
    }

    .top-info-item svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    .top-divider {
        font-size: 0.75rem;
    }

    .d3-btn-footer-top {
        font-size: 0.8rem;
        padding: 7px 12px;
        gap: 5px;
        white-space: nowrap;
    }



    .about-page-d4 .about-booking-shell-d4 {
        grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    }

    .about-page-d4 .about-consult-form-d4,
    .about-page-d4 .about-hours-d4 {
        padding-left: clamp(28px, 5vw, 58px);
        padding-right: clamp(28px, 5vw, 58px);
    }

    .inner-hero-d5 {
        padding-top: 130px;
    }

    .contact-map-panel-d5 {
        min-height: 420px;
    }

    .about-page-d4 .vision-wrapper {
        padding-left: 28px;
        padding-right: 28px;
    }

    .about-page-d4 .side-box,
    .about-page-d4 .center-box {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* Tablet view */
@media (max-width: 991px) {
    .section {
        padding: 64px clamp(20px, 4vw, 36px);
    }

    .hero-d3 {
        min-height: 680px;
        align-items: flex-end;
        padding-bottom: 56px;
        background-position: 66% center;
    }

    .hero-d3-content {
        max-width: 72%;
        padding: 28px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(6px);
    }

    .metrics-d3-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 0 20px;
        gap: 16px;
    }

    .metric-d3-item strong {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .specialties-grid-d3,
    .research-achievements-d3 .research-grid-d3,
    .patient-stories-grid-d3,
    .before-after-grid-d3,
    .testimonial-video-grid-d5,
    .testimonial-quote-grid-d5,
    .contact-info-grid-d5 {
        grid-template-columns: 1fr;
    }

    .research-achievements-d3 .research-col-d3:first-child {
        grid-column: auto;
    }

    .specialty-feature-d3 {
        min-height: 300px;
    }

    .services-circular-grid-d3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .journey-card-d3 {
        min-height: auto;
        padding-left: 24px;
        padding-right: 24px;
    }

    .journey-steps-d3 {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .journey-step-d3 {
        flex-direction: row;
        align-items: flex-start;
        width: 100%;
        padding: 0;
        text-align: left;
    }

    .journey-icon-d3 {
        width: 72px;
        height: 72px;
        margin: 0 20px 0 0;
        flex: 0 0 72px;
    }

    .journey-icon-d3 svg {
        width: 38px;
        height: 38px;
    }

    .journey-content-d3 {
        align-items: flex-start;
    }

    .journey-title-d3 {
        min-height: 0;
    }

    .journey-step-d3:not(:last-child)::after {
        top: 72px;
        left: 35px;
        right: auto;
        width: 2px;
        height: 24px;
    }

    .journey-step-d3:not(:last-child)::before {
        display: none;
    }

    .faq-booking-container-d3 {
        gap: 42px;
    }

    .about-stats-shell-d4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
        padding: 28px;
    }

    .about-intro-shell-d4,
    .about-page-d4 .about-booking-shell-d4 {
        grid-template-columns: 1fr;
    }

    .about-intro-shell-d4 {
        padding: 40px clamp(24px, 5vw, 48px);
        gap: 30px;
        text-align: center;
    }

    .about-intro-copy-d4 p {
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
    }

    .about-intro-image-d4 {
        height: clamp(220px, 42vw, 360px);
    }

    .about-bottom-shell-d4 {
        grid-template-columns: 1fr 1fr;
    }

    .about-bottom-strong-d4 {
        grid-column: 1 / -1;
    }

    .inner-hero-shell-d5 {
        grid-template-columns: 1fr;
    }

    .testimonials-hero-d5,
    .contact-hero-d5 {
        min-height: 500px;
    }

    .contact-info-grid-d5 {
        max-width: 620px;
    }

    .contact-hours-full-d5 {
        grid-template-columns: 1fr;
    }

    .d3-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-map-frame-d3 {
        height: 220px;
    }

    .footer-top-container,
    .footer-top-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-top-info {
        width: 100%;
    }

    .top-divider {
        display: none;
    }

    .about-page-d4 .vision-mission-section {
        padding: 64px 24px;
    }

    .about-page-d4 .vision-wrapper {
        grid-template-columns: 1fr;
        gap: 44px;
        padding: 44px 28px;
        border-radius: 22px;
    }

    .about-page-d4 .side-box,
    .about-page-d4 .center-box {
        padding: 0;
        border: 0;
    }

    .slider-arrow-btn-d3.left-arrow,
    .written-testimonials-prev-d3 {
        left: 8px !important;
    }

    .slider-arrow-btn-d3.right-arrow,
    .written-testimonials-next-d3 {
        right: 8px !important;
    }
}

/* Mobile view */
@media (max-width: 884px) {

    /* Reduce all button sizes in the entire website */
    .btn,
    .read-more-btn-d3,
    .booking-submit-btn-d3,
    .about-pill-btn-d4,
    .about-outline-btn-d4,
    .contact-quote-btn-d5,
    .d3-btn-footer-top {
        min-height: 50px !important;
        padding: 6px 14px !important;
        font-size: 0.85rem !important;
    }

    .read-more-btn-d3 {
        gap: 8px !important;
    }

    .home-page-d3 main,
    .home-page-d3 section,
    .home-page-d3 .section {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .section {
        padding: 52px 18px;
    }

    .home-page-d3 #gallery-grid {
        padding-top: 28px !important;
        padding-bottom: 28px !important;
    }

    h2 {
        font-size: clamp(1.75rem, 8vw, 2.35rem);
    }

    .section-divider::before {
        margin-right: 14px;
    }

    .section-divider::after {
        margin-left: 14px;
    }

    .section-divider h2 {
        min-width: 0;
        max-width: 100%;
        font-size: clamp(1rem, 4.6vw, 1.3rem);
        letter-spacing: 0.06em;
        overflow-wrap: anywhere;
    }

    .site-header,
    .site-header.is-scrolled {
        min-height: 76px;
        padding: 8px 18px;
    }

    .brand img,
    .site-header.is-scrolled .brand img {
        height: 58px;
    }

    .site-nav {
        width: min(92vw, 340px);
        padding: 92px 20px 28px;
    }

    .hero-d3 {
        min-height: 640px;
        padding: 104px 0 38px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.94) 64%, #ffffff 100%),
            url('../images/hero-doctor.webp') 64% top / cover no-repeat;
    }

    .hero-d3-container {
        padding: 0 18px;
    }

    .hero-d3-content {
        max-width: 100%;
        margin-top: auto;
        padding: 24px 18px;
        text-align: center;
        background: rgba(255, 255, 255, 0.86);
    }

    .hero-d3-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero-d3-subtext br {
        display: none;
    }

    .hero-d3-actions {
        justify-content: center;
    }

    .hero-d3-actions .btn {
        width: 100%;
    }

    .metrics-strip-d3 {
        padding: 30px 0;
    }

    .metrics-d3-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-us-d3 {
        padding-top: 58px;
        padding-bottom: 58px;
    }

    .about-us-container-d3 {
        padding: 0;
        gap: 30px;
        text-align: center;
    }

    .about-collage-d3 {
        min-height: 430px;
    }

    .about-us-content-d3 {
        align-items: center;
    }

    .read-more-btn-d3 {
        width: 60%;
        min-width: 0;
        font-size: 1.05rem;
    }

    .specialty-feature-d3 {
        grid-template-columns: 1fr;
    }

    .specialty-image-d3 {
        min-height: 240px;
        max-height: 300px;
    }

    .specialty-copy-d3 {
        min-height: 0;
        padding: 32px 24px;
    }

    .specialty-copy-d3::before {
        top: 0;
        left: 24px;
        width: 64px;
        height: 4px;
        transform: none;
    }

    .why-choose-image-d3 {
        height: 300px;
    }

    .why-choose-tabs-d3,
    .why-choose-details-d3 {
        grid-template-columns: 1fr;
    }

    .why-choose-tabs-d3 {
        gap: 6px;
    }

    .why-choose-round-image-d3 {
        margin: 0 auto;
    }

    .why-choose-details-d3 ul {
        text-align: left;
    }

    .why-choose-stat-d3 {
        padding: 20px;
    }

    .infrastructure-content-d3 {
        padding: 42px 18px;
    }

    .infrastructure-wheel-d3 {
        max-width: 360px;
    }

    .infrastructure-visual-d3 {
        min-height: 320px;
    }

    .services-box-d3 {
        padding-left: 18px;
        padding-right: 18px;
    }

    .services-slider-wrapper-d3 {
        max-width: 100%;
        overflow: hidden;
    }

    .services-cards-grid-d3 {
        max-width: 100%;
    }

    .slider-arrow-btn-d3.left-arrow {
        left: 8px !important;
    }

    .slider-arrow-btn-d3.right-arrow {
        right: 8px !important;
    }

    .services-circular-grid-d3 {
        grid-template-columns: 1fr;
    }

    .circle-image-wrapper {
        width: min(200px, 62vw);
        height: min(200px, 62vw);
    }

    .services-highlights-d3 {
        grid-template-columns: 1fr;
    }

    .research-achievements-d3 .research-col-d3,
    .testimonial-quote-card-d5,
    .contact-form-panel-d5,
    .contact-hours-panel-d5 {
        padding: 24px 20px;
    }

    .patient-quote-panel-d3 {
        height: auto;
        min-height: 350px;
        padding: 48px 24px 84px;
    }

    .ba-images-container-d3 {
        height: 300px;
    }

    .accordion-trigger-d3,
    .accordion-panel-d3 p {
        padding-left: 18px;
        padding-right: 18px;
    }

    .accordion-trigger-d3 {
        gap: 14px;
        font-size: 0.96rem;
    }

    .pre-footer-banner-d6 {
        min-height: 390px;
    }

    .footer-top-bar {
        padding: 26px 18px;
    }

    .footer-top-text {
        font-size: clamp(0.98rem, 4.3vw, 1.18rem);
        line-height: 1.35;
    }

    .top-info-item {
        align-items: flex-start;
        overflow-wrap: anywhere;
    }

    .d3-btn-footer-top {
        width: auto;
        max-width: 230px;
        padding: 8px 14px;
        justify-content: center;
    }

    .d3-footer-grid {
        grid-template-columns: 1fr;
        padding-left: 18px;
        padding-right: 18px;
    }

    .footer-brand-col-d3 {
        grid-column: auto;
    }

    .footer-map-frame-d3 {
        height: 240px;
    }

    .footer-border-left {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding-top: 24px;
    }

    .about-page-hero-d4 {
        padding-top: 64px;
    }

    .about-page-d4 .about-page-shell-d4 {
        padding: 28px 18px 22px;
    }

    .about-page-d4 .vision-mission-section {
        padding: 48px 18px;
    }

    .about-page-d4 .vision-wrapper {
        gap: 34px;
        padding: 34px 20px;
        border-radius: 16px;
    }

    .about-page-d4 .eye-image-wrapper img {
        max-width: min(260px, 80vw);
    }

    .about-page-d4 .vision-wrapper h2 {
        font-size: 26px;
    }

    .about-page-d4 .vision-wrapper p {
        font-size: 16px;
        line-height: 1.65;
    }

    .about-page-d4 .about-hero-copy-d4 h1 {
        font-size: clamp(38px, 12vw, 54px);
    }

    .about-page-d4 .about-hero-copy-d4::after {
        top: 50%;
        width: 300px;
        height: 86px;
    }

    .about-page-d4 .about-hero-collage-d4 {
        width: min(100%, 420px);
        height: 280px;
    }

    .about-page-hero-d4::before {
        left: -8%;
        top: 16%;
        width: 105px;
        height: 210px;
        opacity: 0.34;
    }

    .about-page-hero-d4::after {
        right: -12%;
        bottom: 17%;
        width: 170px;
        opacity: 0.38;
    }

    .about-hero-collage-d4::before {
        left: -4%;
        top: -4%;
        opacity: 0.58;
    }

    .about-hero-collage-d4::after {
        left: -5%;
        bottom: 3%;
        opacity: 0.5;
    }

    .about-page-d4 .about-main-photo-d4 {
        width: 74%;
        height: auto;
        aspect-ratio: 1;
    }

    .about-page-d4 .about-bubble-one-d4 {
        width: 30%;
        height: auto;
        aspect-ratio: 1;
        left: 55%;
        right: auto;
    }

    .about-page-d4 .about-bubble-two-d4 {
        width: 25%;
        height: auto;
        aspect-ratio: 1;
        left: 48%;
        right: auto;
    }

    .about-page-d4 .about-bubble-three-d4 {
        width: 31%;
        height: auto;
        aspect-ratio: 1;
        left: 67%;
        right: auto;
    }

    .about-stats-shell-d4,
    .about-form-grid-d4,
    .about-bottom-shell-d4 {
        grid-template-columns: 1fr;
    }

    .about-bottom-strong-d4 {
        grid-column: auto;
    }

    .about-stat-d4 {
        grid-template-columns: 44px auto 1fr;
    }

    .about-intro-shell-d4,
    .about-consult-form-d4,
    .about-hours-d4,
    .about-why-d4,
    .about-bottom-shell-d4 {
        padding-left: 20px;
        padding-right: 20px;
    }

    .inner-hero-d5 {
        padding: 108px 18px 44px;
    }

    .inner-hero-d5 h1 {
        font-size: clamp(34px, 10vw, 46px);
    }

    .testimonials-hero-d5,
    .contact-hero-d5 {
        min-height: 450px;
        background-position: center;
    }

    .testimonial-cta-shell-d5 {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-info-band-d5 {
        padding: 42px 18px;
    }

    .contact-info-card-d5 {
        min-height: 0;
        padding: 28px 20px;
        overflow-wrap: anywhere;
    }

    .contact-form-grid-d5,
    .hours-list-d5 {
        grid-template-columns: 1fr;
    }

    .contact-map-panel-d5 {
        min-height: 320px;
    }

    .hours-list-d5 p {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .hours-list-d5 p span::after {
        display: none;
    }

    .hours-list-d5 p span {
        display: block;
    }

    .back-to-top-d5 {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }

    .floating-call-d5,
    .floating-whatsapp-d5,
    .floating-appointment-d5 {
        right: 16px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        transition: none;
    }

    .floating-call-d5 {
        bottom: 128px;
        padding: 0 11px;
    }

    .floating-whatsapp-d5 {
        bottom: 184px;
        padding: 0 10px;
    }

    .floating-appointment-d5 {
        bottom: 72px;
        padding: 0 11px;
    }

    .floating-whatsapp-d5:hover,
    .floating-whatsapp-d5:focus-visible {
        width: 44px;
        padding: 0 10px;
    }

    .floating-call-d5:hover,
    .floating-call-d5:focus-visible {
        width: 44px;
        padding: 0 11px;
    }

    .floating-appointment-d5:hover,
    .floating-appointment-d5:focus-visible {
        width: 44px;
        padding: 0 11px;
    }

    .floating-whatsapp-d5 .hover-text,
    .floating-call-d5 .hover-text,
    .floating-appointment-d5 .hover-text {
        display: none !important;
    }
}

/* Small mobile screens */
@media (max-width: 479px) {
    .hero-slider-d3 .hero-slide-media-d3 {
        background-size: auto 260%;
        background-position: var(--hero-slide-position, 88% center);
    }

    .hero-d3 {
        min-height: 600px;
    }

    .hero-d3-content {
        width: 100%;
        padding: 22px 14px;
        overflow: hidden;
    }

    .hero-d3-title {
        font-size: clamp(1.85rem, 9vw, 2.35rem);
    }

    .hero-title-line-d3 {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .about-collage-d3 {
        min-height: 360px;
    }

    .about-collage-main-d3 {
        left: 7%;
        width: 86%;
        height: 310px;
    }

    .about-collage-secondary-d3 {
        width: 56%;
        height: 155px;
    }

    .about-collage-experience-d3 {
        width: 104px;
        height: 104px;
    }

    .about-collage-experience-d3 strong {
        font-size: 30px;
    }

    .about-collage-experience-d3 span {
        font-size: 11px;
    }

    .why-choose-image-d3,
    .contact-map-panel-d5 {
        min-height: 260px;
        height: 260px;
    }

    .journey-card-d3 {
        padding-left: 16px;
        padding-right: 16px;
    }

    .journey-icon-d3 {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        margin-right: 14px;
    }

    .journey-step-d3:not(:last-child)::after {
        top: 58px;
        left: 28px;
        height: 28px;
    }

    .patient-quote-panel-d3 {
        min-height: 330px;
        padding: 44px 20px 78px;
    }

    .about-page-d4 .about-hero-collage-d4 {
        height: 252px;
    }

    .about-stat-d4 {
        grid-template-columns: 40px 1fr;
    }

    .about-stat-d4 span:last-child {
        grid-column: 2;
    }

    .contact-form-panel-d5 h3 {
        font-size: 28px;
    }
}

@media (min-width: 410px) and (max-width: 430px) {
    .about-page-d4 .about-page-shell-d4 {
        gap: 18px;
        padding-bottom: 30px;
    }

    .about-page-d4 .about-hero-collage-d4 {
        width: min(100%, 390px);
        height: 270px;
        transform: scale(0.93);
        transform-origin: center top;
    }

    .about-page-d4 .about-main-photo-d4 {
        width: 70%;
    }

    .about-page-d4 .about-bubble-one-d4 {
        width: 28%;
        left: 56%;
    }

    .about-page-d4 .about-bubble-two-d4 {
        width: 23%;
        left: 50%;
        bottom: 28px;
    }
}

/* Treatments page responsive */
@media (max-width: 1100px) {
    .pattern-page-hero-d11 {
        min-height: 500px;
        padding-top: 100px;
    }

    .pattern-page-hero-shell-d11 {
        grid-template-columns: minmax(0, 1fr) minmax(410px, 0.85fr);
    }

    .pattern-page-hero-visual-d11 {
        width: min(500px, 44vw);
        margin-right: -120px;
    }

    .testimonial-pattern-hero-d11 .pattern-page-hero-visual-d11,
    .treatment-pattern-hero-d11 .pattern-page-hero-visual-d11,
    .treatment-detail-hero-d12 .pattern-page-hero-visual-d11,
    .contact-pattern-hero-d11 .pattern-page-hero-visual-d11 {
        width: min(500px, 44vw);
    }

    .treatment-category-shell-d10 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .treatment-category-shell-d10 a:nth-child(3) {
        border-right: 0;
    }

    .treatment-category-shell-d10 a:nth-child(n + 4) {
        border-top: 1px solid rgba(53, 70, 33, 0.1);
    }

    .treatment-detail-shell-d10 {
        grid-template-columns: minmax(380px, 0.82fr) minmax(0, 1fr);
        gap: 45px;
    }

    .treatment-card-grid-d10 {
        grid-template-columns: 1fr;
    }

    .treatment-service-card-d10 {
        min-height: 0;
    }
}

@media (max-width: 884px) {
    .pattern-page-hero-d11 {
        min-height: 650px;
        padding: 100px 28px 48px;
    }

    .pattern-page-hero-shell-d11 {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pattern-page-hero-copy-d11 {
        z-index: 3;
        width: min(100%, 640px);
        margin: 0 auto;
        padding-left: 0;
        text-align: center;
    }

    .pattern-page-hero-copy-d11 .treatments-eyebrow-d10 {
        justify-content: center;
    }

    .pattern-page-hero-copy-d11 p {
        margin-left: auto;
        margin-right: auto;
    }

    .pattern-page-hero-visual-d11 {
        width: min(350px, 60vw);
        margin: 0 auto -82px;
        justify-self: center;
    }

    .testimonial-pattern-hero-d11 .pattern-page-hero-visual-d11,
    .treatment-pattern-hero-d11 .pattern-page-hero-visual-d11,
    .treatment-detail-hero-d12 .pattern-page-hero-visual-d11,
    .contact-pattern-hero-d11 .pattern-page-hero-visual-d11 {
        width: min(300px, 60vw);
        margin: 0 auto -82px;
        justify-self: center;
    }

    .contact-pattern-hero-d11 .treatments-hero-image-d10 img {
        transform: scale(1.18);
        object-position: 68% center;
    }

    .treatment-intro-shell-d10,
    .treatment-detail-shell-d10,
    .treatments-cta-shell-d10 {
        grid-template-columns: 1fr;
    }

    .treatment-hero-dots-top-d10 {
        left: 72%;
    }

    .treatment-category-shell-d10 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .treatment-category-shell-d10 a,
    .treatment-category-shell-d10 a:nth-child(3) {
        border-right: 1px solid rgba(53, 70, 33, 0.1);
        border-top: 1px solid rgba(53, 70, 33, 0.1);
    }

    .treatment-category-shell-d10 a:nth-child(-n + 2) {
        border-top: 0;
    }

    .treatment-category-shell-d10 a:nth-child(even) {
        border-right: 0;
    }

    .treatment-category-shell-d10 a:last-child {
        grid-column: 1 / -1;
        border-right: 0;
    }

    .treatment-intro-d10 {
        padding-top: 90px;
        padding-bottom: 75px;
    }

    .treatment-intro-shell-d10 {
        gap: 30px;
    }

    .treatment-detail-d10 {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .treatment-detail-alt-d10 .treatment-detail-image-d10 {
        order: 0;
    }

    .treatment-detail-image-d10 {
        width: min(540px, 100%);
        height: clamp(320px, 62vw, 430px);
        margin: 0 auto;
    }

    .treatments-cta-actions-d10 {
        width: min(300px, 100%);
    }
}

@media (max-width: 560px) {
    .pattern-page-hero-d11 {
        min-height: 580px;
        padding: 92px 18px 38px;
    }

    .pattern-page-hero-copy-d11 h1 {
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
        font-size: clamp(2.25rem, 10.5vw, 3.2rem);
    }

    .pattern-page-hero-visual-d11 {
        width: min(270px, 78vw);
        margin-bottom: -55px;
    }

    .testimonial-pattern-hero-d11 .pattern-page-hero-visual-d11,
    .treatment-pattern-hero-d11 .pattern-page-hero-visual-d11,
    .treatment-detail-hero-d12 .pattern-page-hero-visual-d11,
    .contact-pattern-hero-d11 .pattern-page-hero-visual-d11 {
        width: min(270px, 78vw);
        margin-bottom: -30px;
    }

    .contact-pattern-hero-d11 .treatments-hero-image-d10 img {
        transform: scale(1.26);
        object-position: 70% center;
    }

    .treatment-hero-stripes-d10 {
        width: 180px;
        height: 120px;
    }

    .treatment-hero-dots-top-d10 {
        top: 85px;
        left: 70%;
        transform: scale(0.72);
    }

    .treatment-hero-dots-bottom-d10 {
        transform: scale(0.72);
        transform-origin: left bottom;
    }

    .treatment-category-band-d10 {
        padding: 0 18px;
    }

    .treatment-category-shell-d10 a {
        min-height: 126px;
        padding: 20px 16px;
    }

    .treatment-category-shell-d10 small {
        display: none;
    }

    .treatment-intro-d10,
    .treatment-detail-d10,
    .treatments-cta-d10 {
        padding-left: 18px;
        padding-right: 18px;
    }

    .treatment-intro-d10 h2,
    .treatment-detail-content-d10>h2 {
        font-size: clamp(2.15rem, 10vw, 3rem);
    }

    .treatment-intro-d10 p {
        padding-left: 20px;
    }

    .treatment-detail-image-d10 {
        height: 300px;
        border-radius: 18px;
    }

    .treatment-card-grid-d10 {
        grid-template-columns: 1fr;
    }

    .treatment-service-card-d10 {
        padding: 22px 20px;
    }

    .treatments-cta-shell-d10 {
        gap: 34px;
        padding: 38px 24px;
        border-radius: 20px;
        text-align: center;
    }

    .treatments-cta-d10 .treatments-eyebrow-d10 {
        justify-content: center;
    }

    .treatments-cta-actions-d10 {
        margin: 0 auto;
    }
}

/* Homepage hero slider responsive overrides removed as requested to maintain desktop layout on mobile */

@media (max-width: 991px) {
    .home-reviews-showcase-d13 {
        grid-template-columns: 1fr;
        max-width: 760px;
    }

    .home-reviews-collage-d13 {
        height: 360px;
    }
}

@media (max-width: 884px) {
    .home-reviews-carousel-d13 .reviews-grid-d3 {
        display: flex !important;
        grid-template-columns: none !important;
        flex-wrap: nowrap !important;
        gap: 18px !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 0 12px !important;
        overflow-x: auto !important;
    }

    .home-reviews-carousel-d13 .patient-quote-card-d3 {
        flex: 0 0 calc((100% - 18px) / 2) !important;
        scroll-snap-align: start !important;
    }

    .home-reviews-collage-d13 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        height: auto !important;
        aspect-ratio: auto !important;
        width: 100% !important;
        padding: 0 !important;
        border-radius: 0 !important;
        margin-bottom: 24px !important;
    }

    .home-reviews-collage-d13 img {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        border: 4px solid #ffffff !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
        border-radius: 12px !important;
        animation: none !important;
    }

    .home-reviews-collage-d13 img:nth-child(2) {
        grid-column: span 2 !important;
        order: -1 !important;
    }
}

@media (min-width: 641px) and (max-width: 884px) {
    .reviews-slider-container-d3.home-reviews-carousel-d13 {
        padding-top: 320px !important;
    }

    .patient-quotes-section-d3 .section-divider {
        padding-top: 0 !important;
    }
}

@media (max-width: 640px) {
    .home-reviews-showcase-d13 {
        padding: 0 16px;
    }

    .home-reviews-collage-d13 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        height: auto !important;
        aspect-ratio: auto !important;
        width: 100% !important;
        padding: 0 !important;
        border-radius: 0 !important;
        margin-bottom: 24px !important;
    }

    .home-reviews-collage-d13 img {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        border: 4px solid #ffffff !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
        border-radius: 12px !important;
        animation: none !important;
    }

    .home-reviews-collage-d13 img:nth-child(2) {
        grid-column: span 2 !important;
        order: -1 !important;
    }

    .home-reviews-carousel-d13 .patient-quote-card-d3 {
        flex-basis: 88% !important;
    }

    .home-reviews-carousel-d13 .reviews-slider-dots-d3 {
        gap: 5px;
    }
}

/* Gallery page responsive */
@media (max-width: 1279px) {
    .gallery-hero-d7 {
        min-height: 460px;
        padding-top: 88px;
        padding-bottom: 34px;
    }

    .gallery-hero-d7::before {
        background-position: 56% center;
    }

    .gallery-hero-shell-d7 {
        display: block;
    }

    .gallery-hero-collage-d7 {
        height: 480px;
    }
}

@media (max-width: 991px) {
    .gallery-hero-d7 {
        min-height: 450px;
        padding: 84px 28px 32px;
    }

    .gallery-hero-d7::before {
        background-position: 58% center;
    }

    .gallery-hero-d7::after {
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.85) 48%, rgba(255, 255, 255, 0.22) 100%);
    }

    .gallery-hero-shell-d7 {
        display: block;
        width: 100%;
        min-width: 0;
        text-align: left;
    }

    .gallery-hero-copy-d7 {
        width: 100%;
        min-width: 0;
        max-width: 590px;
    }

    .gallery-hero-copy-d7 p {
        margin-left: 0;
        margin-right: 0;
    }

    .gallery-eyebrow-d7,
    .gallery-hero-tags-d7 {
        justify-content: flex-start;
    }

    .gallery-hero-collage-d7 {
        width: min(100%, 680px);
        height: 500px;
        margin: 0 auto;
    }

    .gallery-scroll-cue-d7 {
        display: none;
    }

    .gallery-mosaic-d7 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-cta-d7 {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 884px) {

    .gallery-page-d7 main,
    .gallery-page-d7 .gallery-hero-d7,
    .gallery-page-d7 .gallery-tabs-d7,
    .education-videos-page-d7 .gallery-tabs-d7,
    .gallery-page-d7 .gallery-showcase-d7,
    .gallery-page-d7 .gallery-cta-d7 {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .gallery-hero-d7 {
        align-items: center;
        min-height: 400px;
        padding: 86px 20px 32px;
    }

    .gallery-hero-d7::before {
        background-position: 65% center;
    }

    .gallery-hero-d7::after {
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 42%, rgba(255, 255, 255, 0.62) 65%, rgba(255, 255, 255, 0.06) 100%);
    }

    .gallery-hero-shell-d7 {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .gallery-hero-copy-d7 {
        width: min(100%, 480px);
        max-width: 480px;
        padding: 0;
        border-radius: 0;
        background: transparent;
        text-align: left;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .gallery-eyebrow-d7,
    .gallery-hero-tags-d7 {
        justify-content: flex-start;
    }

    .gallery-hero-copy-d7 p {
        margin-left: 0;
        margin-right: 0;
    }

    .gallery-hero-copy-d7 h1 {
        width: 100%;
        max-width: 100%;
        font-size: clamp(2rem, 8.5vw, 3rem);
        overflow-wrap: anywhere;
    }

    .gallery-hero-copy-d7 p {
        width: 100%;
        max-width: 100%;
        font-size: clamp(0.88rem, 3.4vw, 1rem);
        overflow-wrap: anywhere;
    }

    .gallery-hero-tags-d7 {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
    }

    .gallery-hero-collage-d7 {
        width: 100%;
        max-width: calc(100vw - 36px);
        height: 380px;
    }

    .gallery-tabs-d7 {
        padding: 18px 18px 6px;
    }

    .gallery-tabs-shell-d7 {
        justify-content: flex-start;
        width: 100%;
        max-width: calc(100vw - 36px);
        border-radius: 18px;
        gap: 8px;
    }

    .gallery-tab-d7 {
        min-height: 42px;
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    .gallery-hero-main-d7 {
        left: 1%;
        width: 71%;
    }

    .gallery-hero-top-d7 {
        width: 34%;
    }

    .gallery-hero-bottom-d7 {
        width: 41%;
    }

    .gallery-heading-d7 {
        display: block;
        width: 100%;
        max-width: calc(100vw - 36px);
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 30px;
        text-align: center;
    }

    .gallery-heading-d7 h2,
    .gallery-heading-d7>p {
        width: 100%;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .gallery-heading-d7>p {
        margin-top: 12px;
    }

    .gallery-mosaic-d7 {
        width: 100%;
        max-width: calc(100vw - 36px);
        margin-left: auto;
        margin-right: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .gallery-card-wide-d7,
    .gallery-card-tall-d7 {
        grid-column: auto;
        grid-row: auto;
    }

    .gallery-card-d7 {
        border-width: 2px;
        border-radius: 12px;
    }

    .gallery-card-caption-d7 {
        padding: 12px 10px;
    }

    .gallery-card-caption-d7 strong {
        font-size: 0.82rem;
    }

    .gallery-card-caption-d7 small {
        display: none;
    }

    .gallery-cta-d7 {
        padding: 42px 18px;
        text-align: center;
        align-items: center;
    }

    .gallery-cta-d7 a {
        width: 100%;
        text-align: center;
    }

    .gallery-lightbox-d7 {
        padding: 18px;
    }

    .gallery-lightbox-close-d7 {
        right: 14px;
        top: 14px;
    }

    .gallery-more-btn-wrap-d7 {
        margin-top: 24px;
        padding: 0 18px;
    }

    .gallery-more-btn-d7 {
        /* width: 100%; */
        justify-content: center;
        padding: 12px 24px;
        font-size: 0.94rem;
    }

    .read-more-btn-d3 {
        align-self: unset;
        /* or initial */
    }
}

@media (max-width: 479px) {
    .gallery-hero-collage-d7 {
        height: 310px;
    }

    .gallery-hero-copy-d7 h1 {
        font-size: clamp(1.7rem, 8vw, 2.4rem);
    }

    .gallery-hero-tags-d7 span {
        flex: 0 1 auto;
        padding: 8px 12px;
        font-size: 0.7rem;
    }

}

@media (prefers-reduced-motion: reduce) {

    .gallery-hero-photo-d7,
    .gallery-scroll-cue-d7 span::after {
        animation: none !important;
    }

    .gallery-hero-d7::before,
    .gallery-hero-copy-d7 {
        animation: none !important;
        clip-path: none;
        transform: none;
        opacity: 1;
    }

    body.scroll-reveal-ready .why-choose-row-d3 .why-choose-image-d3,
    body.scroll-reveal-ready .why-choose-row-d3 .why-choose-content-d3 {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Modern patient story cards responsive */
@media (max-width: 991px) {
    .patient-quotes-grid-d3 {
        max-width: 640px;
        gap: 30px;
    }

    .patient-quote-panel-d3 {
        min-height: 280px;
        padding: 54px 34px 70px;
    }
}

.reviews-slider-controls-d3 {
    display: none;
}

@media (max-width: 480px) {

    /* Infrastructure Gallery Grid */
    .infrastructure-gallery-d3 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .infrastructure-gallery-img-d3 img {
        height: clamp(130px, 32vw, 170px) !important;
    }

    /* Reviews (Patient Stories) Grid Slider */
    .patient-quotes-grid-d3 {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 16px !important;
        padding: 10px 24px 28px !important;
        margin: 0 -24px !important;
        -webkit-overflow-scrolling: touch !important;
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }

    .patient-quotes-grid-d3::-webkit-scrollbar {
        display: none !important;
    }

    .patient-quote-card-d3 {
        flex: 0 0 86% !important;
        scroll-snap-align: center !important;
        border-radius: 18px;
    }

    /* Reviews Slider Controls */
    .reviews-slider-controls-d3 {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 16px;
        margin-top: 16px;
        margin-bottom: 8px;
    }

    .reviews-slider-arrow-d3 {
        background: var(--white);
        border: 1px solid rgba(140, 28, 39, 0.2);
        color: var(--maroon);
        width: 42px;
        height: 42px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        transition: all 0.25s ease;
        padding: 0;
    }

    .reviews-slider-arrow-d3:hover,
    .reviews-slider-arrow-d3:focus {
        background: var(--maroon);
        color: var(--white);
        border-color: var(--maroon);
        outline: none;
    }

    .reviews-slider-dots-d3 {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .reviews-dot-d3 {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(140, 28, 39, 0.25);
        cursor: pointer;
        transition: all 0.25s ease;
        border: none;
        padding: 0;
    }

    .reviews-dot-d3.active {
        background: var(--maroon);
        transform: scale(1.2);
    }

    .patient-quote-panel-d3 {
        min-height: 220px;
        padding: 36px 20px 50px;
    }

    .patient-quote-panel-d3 p {
        font-size: 0.88rem;
        line-height: 1.55;
    }

    .patient-quote-mark-d3 {
        left: 15px;
        top: 15px;
        font-size: 5rem;
    }

    .patient-avatar-d3 {
        width: 54px;
        height: 54px;
        margin-top: 16px;
    }
}


@media (max-width: 1100px) {
    .research-achievements-d3 .research-grid-d3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .research-achievements-d3 .research-col-d3:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 884px) {

    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .home-page-d3 main,
    .home-page-d3 section,
    .home-page-d3 .section {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .about-page-d4 .journey-timeline-container-d3 {
        width: min(100%, 520px);
        margin-left: auto;
        margin-right: auto;
    }

    .about-page-d4 .journey-steps-d3 {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }

    .about-page-d4 .journey-step-d3 {
        width: min(100%, 360px);
        flex-direction: column;
        align-items: center;
        margin-bottom: 0;
        padding: 0;
        text-align: center;
    }

    .about-page-d4 .journey-content-d3 {
        align-items: center;
        text-align: center;
    }

    .about-page-d4 .journey-icon-d3 {
        margin: 0 0 14px;
        flex: 0 0 auto;
    }

    .about-page-d4 .journey-step-d3:not(:last-child)::after,
    .about-page-d4 .journey-step-d3:not(:last-child)::before {
        display: none;
    }

    .research-achievements-d3 .research-grid-d3 {
        grid-template-columns: 1fr;
    }

    .research-achievements-d3 .research-col-d3:first-child {
        grid-column: auto;
    }

    .research-achievements-d3 .research-col-d3 {
        padding: 26px 22px;
        border-radius: 14px;
    }
}


@media(max-width:991px) {

    .vision-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .side-box:first-child,
    .side-box:last-child {
        border: none;
    }

    .eye-image-wrapper {
        margin-top: 0;
    }

    .eye-image-wrapper img {
        max-width: 280px;
    }

    h2 {
        font-size: 28px;
    }
}

@media (max-width: 991px) {
    .patient-shorts-grid-d8 {
        grid-template-columns: repeat(2, minmax(0, 380px));
    }
}

@media (max-width: 884px) {
    .patient-shorts-grid-d8 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
        padding: 0 20px !important;
        margin-bottom: 48px !important;
    }
}

@media (max-width: 479px) {
    .section-divider {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        margin-bottom: 0 !important;
    }

    .patient-quotes-section-d3 {
        padding-top: 0 !important;
    }

    #written-testimonials.patient-quotes-section-d3 {
        padding-top: 60px !important;
    }

    .patient-shorts-grid-d8 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        padding: 0 20px !important;
        margin-bottom: 48px !important;
    }

    .patient-short-card-d8 {
        border-radius: 16px;
    }
}

@media (min-width: 768px) and (max-width: 884px) {
    .read-more-btn-d3 {
        width: auto;
        min-width: 160px;
    }
}

/* Corneal transplant page responsive */
@media (max-width: 1100px) {
    .corneal-reason-grid-d12 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .corneal-type-grid-d12 {
        grid-template-columns: 1fr;
        max-width: 720px;
    }

    .corneal-type-card-d12.featured {
        transform: none;
    }
}

@media (max-width: 884px) {
    .corneal-page-nav-d12 {
        top: 82px;
        overflow-x: auto;
    }

    .corneal-page-nav-shell-d12 {
        width: max-content;
        min-width: 100%;
        justify-content: flex-start;
        gap: 28px;
    }

    .corneal-overview-shell-d12,
    .corneal-recovery-shell-d12,
    .corneal-journey-shell-d12,
    .corneal-cta-shell-d12 {
        grid-template-columns: 1fr;
    }

    .corneal-overview-image-d12,
    .corneal-recovery-image-d12 {
        width: min(600px, 100%);
        height: 390px;
        margin: 0 auto;
    }

    .corneal-journey-shell-d12 {
        gap: 42px;
    }

    .corneal-cta-actions-d12 {
        width: min(300px, 100%);
    }
}

@media (max-width: 560px) {
    .corneal-page-nav-d12 {
        padding: 0 18px;
    }

    .corneal-page-nav-d12 a {
        padding: 15px 0;
        font-size: 0.68rem;
    }

    .corneal-overview-d12,
    .corneal-reasons-d12,
    .corneal-types-d12,
    .corneal-journey-d12,
    .corneal-recovery-d12,
    .corneal-faq-d12,
    .corneal-cta-d12 {
        padding-left: 18px;
        padding-right: 18px;
    }

    .corneal-overview-d12,
    .corneal-reasons-d12,
    .corneal-types-d12,
    .corneal-journey-d12,
    .corneal-recovery-d12,
    .corneal-faq-d12 {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .corneal-overview-image-d12,
    .corneal-recovery-image-d12 {
        height: 300px;
        border-radius: 18px;
    }

    .corneal-reason-grid-d12 {
        grid-template-columns: 1fr;
    }

    .corneal-reason-card-d12 {
        min-height: 0;
    }

    .corneal-type-card-d12 {
        padding: 26px 22px;
    }

    .corneal-step-d12 {
        grid-template-columns: 46px 1fr;
        gap: 14px;
        padding: 18px;
    }

    .corneal-step-d12>span {
        width: 42px;
        height: 42px;
        font-size: 0.78rem;
    }

    .corneal-cta-d12 {
        padding-top: 30px;
        padding-bottom: 72px;
    }

    .corneal-cta-shell-d12 {
        padding: 34px 22px;
        text-align: center;
    }

    .corneal-cta-d12 .corneal-kicker-d12 {
        justify-content: center;
    }

    .corneal-cta-actions-d12 {
        margin: 0 auto;
    }

}

/* Homepage Hero Mobile Split Layout (320px to 1199px) */
@media (max-width: 1199px) {
    .home-page-d3 .hero-slider-d3 {
        min-height: 520px !important;
        height: 520px !important;
    }

    .home-page-d3 .hero-slide-d3 {
        background: #fff3f4 !important;
        min-height: 100% !important;
        height: 100% !important;
        padding: 0 !important;
    }

    .home-page-d3 .hero-slide-d3::after,
    .home-page-d3 .hero-slide-d3::before {
        display: none !important;
    }

    .home-page-d3 .hero-slide-media-d3 {
        position: absolute !important;
        top: -20px !important;
        bottom: -20px !important;
        right: -25% !important;
        left: 48% !important;
        width: auto !important;
        height: auto !important;
        z-index: 1 !important;
        background-image: none !important;
        transform: skewX(-10deg) !important;
        transform-origin: center;
        overflow: hidden;
        /* border-left: 5px solid var(--green-dark, #354621) !important; */
        /* box-shadow: -10px 0 0 -5px var(--maroon, #8c1c27) !important; */
        clip-path: none !important;
        display: block !important;
    }

    .home-page-d3 .hero-slide-media-d3::after {
        content: "" !important;
        position: absolute !important;
        inset: 0 !important;
        background-image: var(--hero-slide-image) !important;
        background-position: var(--hero-slide-position, center center) !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        transform: skewX(10deg) scale(1.25) translate(var(--hero-slide-shift-x, 0px), var(--hero-slide-shift-y, 0px)) !important;
        transform-origin: center;
        transition: transform 6.8s cubic-bezier(0.25, 1, 0.5, 1) !important;
        z-index: 1;
        display: block !important;
    }

    .home-page-d3 .hero-slide-d3.active .hero-slide-media-d3::after {
        transform: skewX(10deg) scale(1.32) translate(var(--hero-slide-shift-x, 0px), var(--hero-slide-shift-y, 0px)) !important;
    }

    .home-page-d3 .hero-slide-d3 .hero-d3-container {
        max-width: 100% !important;
        padding: 0 24px !important;
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        height: 100% !important;
        z-index: 4 !important;
        text-align: left !important;
    }

    .home-page-d3 .hero-slide-d3 .hero-d3-content {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
        max-width: 48% !important;
        margin: 0 !important;
        transform: translateX(-15px) !important;
        text-align: left !important;
        display: block !important;
    }

    .home-page-d3 .hero-slide-d3.active .hero-d3-content {
        transform: translateX(0) !important;
        opacity: 1 !important;
    }

    /* Reduce Font Sizes & Spacings for smaller screens */
    .home-page-d3 .hero-slide-kicker-d3 {
        font-size: clamp(0.55rem, 1.8vw, 0.7rem) !important;
        margin-bottom: 24px !important;
    }

    .home-page-d3 .hero-d3-title {
        font-size: clamp(0.95rem, 3.8vw, 2rem) !important;
        line-height: 1.12 !important;
        margin-bottom: 24px !important;
    }

    .home-page-d3 .hero-slide-byline-d14 {
        font-size: clamp(0.65rem, 2.2vw, 0.9rem) !important;
        margin: 24px 0 0 !important;
    }

    .home-page-d3 .hero-d3-subtext {
        font-size: clamp(0.65rem, 2.2vw, 0.85rem) !important;
        line-height: 1.35 !important;
        margin-top: 24px !important;
        margin-bottom: 32px !important;
    }

    .home-page-d3 .hero-d3-actions {
        justify-content: flex-start !important;
        margin-top: 12px !important;
    }

    .home-page-d3 .hero-d3-actions .btn {
        width: auto !important;
        font-size: clamp(0.65rem, 2.2vw, 0.8rem) !important;
        padding: 8px 16px !important;
    }
}

@media (max-width: 884px) {
    .home-page-d3 .hero-slider-d3 {
        min-height: 370px !important;
        height: 370px !important;
    }

    .home-page-d3 .hero-slide-d3 {
        padding: 85px 0 0 !important;
        min-height: 100% !important;
        height: 100% !important;
    }

    .home-page-d3 .hero-slide-media-d3 {
        position: absolute !important;
        top: -15px !important;
        bottom: -15px !important;
        right: -30% !important;
        left: 48% !important;
        width: auto !important;
        height: auto !important;
        transform: skewX(-14deg) !important;
        clip-path: none !important;
        display: block !important;
        z-index: 1 !important;
        background-image: none !important;
    }

    .home-page-d3 .hero-slide-media-d3::before {
        display: none !important;
    }

    .home-page-d3 .hero-slide-media-d3::after {
        content: "" !important;
        position: absolute !important;
        inset: 0 !important;
        background-image: var(--hero-slide-image) !important;
        background-position: var(--hero-slide-position, center center) !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        transform: skewX(14deg) scale(1.15) translate(var(--hero-slide-shift-x, 0px), var(--hero-slide-shift-y, 0px)) !important;
        transform-origin: center;
        z-index: 1;
        display: block !important;
    }

    /* Specific adjustments for slide 1 (Dr. Arushi Goyal Deshmukh) */
    .home-page-d3 .hero-slide-d3[data-hero-panel="0"] .hero-slide-media-d3::after {
        background-position: right top !important;
        transform: skewX(14deg) scale(1.3) translate(-4%, 0) !important;
    }

    /* Specific adjustments for slide 2 (Cataract Surgery) */
    .home-page-d3 .hero-slide-d3[data-hero-panel="1"] .hero-slide-media-d3::after {
        background-position: 55% 15% !important;
        transform: skewX(14deg) scale(1.3) translate(-15%, 0) !important;
    }

    /* Specific adjustments for slide 3 (LASIK Surgery Room) */
    .home-page-d3 .hero-slide-d3[data-hero-panel="2"] .hero-slide-media-d3::after {
        background-position: 48% 10% !important;
        transform: skewX(14deg) scale(1.35) translate(0, 0) !important;
    }

    .home-page-d3 .hero-slide-d3 .hero-d3-container {
        padding: 0 16px !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        z-index: 2 !important;
    }

    .home-page-d3 .hero-slide-d3 .hero-d3-content {
        max-width: 47% !important;
        transform: translateX(-10px) !important;
        padding-right: 8px !important;
        text-align: left !important;
        display: block !important;
    }

    .home-page-d3 .hero-slide-d3.active .hero-d3-content {
        transform: translateX(0) !important;
    }

    .home-page-d3 .hero-slide-kicker-d3 {
        font-size: 8.5px !important;
        margin-bottom: 10px !important;
    }

    .home-page-d3 .hero-d3-title {
        font-size: clamp(11px, 3.8vw, 15.5px) !important;
        line-height: 1.15 !important;
        margin-bottom: 10px !important;
    }

    .home-page-d3 .hero-slide-byline-d14 {
        font-size: 9.5px !important;
        margin: 8px 0 0 !important;
    }

    .home-page-d3 .hero-d3-subtext {
        font-size: 9.5px !important;
        line-height: 1.3 !important;
        margin-top: 8px !important;
        margin-bottom: 16px !important;
    }

    .home-page-d3 .hero-d3-actions {
        margin-top: 6px !important;
        justify-content: flex-start !important;
    }

    .home-page-d3 .hero-d3-actions .btn {
        font-size: 8.5px !important;
        padding: 4px 8px !important;
        width: auto !important;
    }

    .home-page-d3 .hero-d3-actions .btn .btn-icon {
        width: 11px !important;
        height: 11px !important;
        margin-right: 4px !important;
    }

    .home-page-d3 .hero-slider-nav-d3 {
        bottom: 12px !important;
    }
}

@media (min-width: 768px) and (max-width: 884px) {
    .home-page-d3 .hero-slide-d3[data-hero-panel="0"] .hero-slide-media-d3::after {
        transform: skewX(14deg) scale(1.3) translate(-30%, 0) !important;
    }

    .home-page-d3 #treatments .service-card-rect-d3 {
        min-height: 380px;
    }
}

@media (min-width: 600px) and (max-width: 884px) {
    .home-page-d3 .hero-slider-d3 {
        min-height: 520px !important;
        height: 520px !important;
        overflow: hidden !important;
    }

    .home-page-d3 .hero-slide-d3 {
        min-height: 100% !important;
        height: 100% !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .home-page-d3 .hero-slide-d3 .hero-d3-container {
        max-width: 100% !important;
        padding: 0 24px !important;
        align-items: center !important;
    }

    .home-page-d3 .hero-slide-d3 .hero-d3-content {
        max-width: 48% !important;
        padding-right: 0 !important;
        transform: translateX(-15px) !important;
    }

    .home-page-d3 .hero-slide-d3.active .hero-d3-content {
        transform: translateX(0) !important;
    }

    .home-page-d3 .hero-slide-media-d3 {
        top: -20px !important;
        bottom: -20px !important;
        left: 44% !important;
        right: -18vw !important;
        transform: skewX(-12deg) !important;
        overflow: hidden !important;
    }

    .home-page-d3 .hero-slide-media-d3::after,
    .home-page-d3 .hero-slide-d3[data-hero-panel="0"] .hero-slide-media-d3::after,
    .home-page-d3 .hero-slide-d3[data-hero-panel="1"] .hero-slide-media-d3::after,
    .home-page-d3 .hero-slide-d3[data-hero-panel="2"] .hero-slide-media-d3::after {
        background-position: var(--hero-slide-position, center center) !important;
        transform: skewX(12deg) scale(1.18) translate(var(--hero-slide-shift-x, 0px), var(--hero-slide-shift-y, 0px)) !important;
    }

    .home-page-d3 .hero-slide-d3.active .hero-slide-media-d3::after {
        transform: skewX(12deg) scale(1.24) translate(var(--hero-slide-shift-x, 0px), var(--hero-slide-shift-y, 0px)) !important;
    }

    .home-page-d3 .hero-slide-kicker-d3 {
        font-size: clamp(0.55rem, 1.8vw, 0.7rem) !important;
        margin-bottom: 24px !important;
    }

    .home-page-d3 .hero-d3-title {
        font-size: clamp(0.95rem, 3.8vw, 2rem) !important;
        line-height: 1.12 !important;
        margin-bottom: 24px !important;
    }

    .home-page-d3 .hero-slide-byline-d14 {
        font-size: clamp(0.65rem, 2.2vw, 0.9rem) !important;
        margin: 24px 0 0 !important;
    }

    .home-page-d3 .hero-d3-subtext {
        font-size: clamp(0.65rem, 2.2vw, 0.85rem) !important;
        line-height: 1.35 !important;
        margin-top: 24px !important;
        margin-bottom: 32px !important;
    }

    .home-page-d3 .hero-d3-actions {
        margin-top: 12px !important;
    }

    .home-page-d3 .hero-d3-actions .btn {
        font-size: clamp(0.65rem, 2.2vw, 0.8rem) !important;
        padding: 8px 16px !important;
    }
}

@media (min-width: 885px) and (max-width: 1416px) {
    html,
    body,
    main {
        max-width: 100%;
        overflow-x: hidden;
    }

    .home-page-d3 .hero-slider-d3,
    .home-page-d3 .hero-slide-d3 {
        width: 100%;
        max-width: 100%;
        overflow: hidden !important;
    }

    .home-page-d3 .hero-slide-d3 .hero-d3-container {
        width: 100%;
        max-width: 1300px !important;
        padding-left: clamp(28px, 3vw, 42px) !important;
        padding-right: clamp(18px, 2vw, 30px) !important;
    }

    .home-page-d3 .hero-slide-media-d3 {
        left: 44% !important;
        right: -18vw !important;
        transform: skewX(-12deg) !important;
        overflow: hidden !important;
    }

    .home-page-d3 .hero-slide-media-d3::after {
        transform: skewX(12deg) scale(1.18) translate(var(--hero-slide-shift-x, 0px), var(--hero-slide-shift-y, 0px)) !important;
    }

    .home-page-d3 .hero-slide-d3.active .hero-slide-media-d3::after {
        transform: skewX(12deg) scale(1.24) translate(var(--hero-slide-shift-x, 0px), var(--hero-slide-shift-y, 0px)) !important;
    }
}

@media (min-width: 320px) and (max-width: 340px) {
    .home-page-d3 .hero-slide-d3[data-hero-panel="0"] .hero-slide-media-d3::after {
        transform: skewX(14deg) scale(1.3) translate(5%, 0) !important;
    }
}
