/* Shared layout constraints for the hospital pages. */
img,
iframe {
    max-width: 100%;
}

.main-page-wrapper,
.brand-text-group,
.footer-brand .d-flex>div,
.contact-line>div {
    min-width: 0;
}

.footer-brand-title,
.footer-contact-block,
.services-modal-item {
    overflow-wrap: anywhere;
}

.footer-alert-icon {
    flex-shrink: 0;
}

.btn-view-all-services {
    max-width: 100%;
    white-space: normal;
}

.btn-view-all-services>span {
    min-width: 0;
}

.btn-view-all-services i {
    flex-shrink: 0;
}

/* Keep desktop navigation on one row with the longer diagnostics label. */
@media (min-width: 1440px) {
    .modern-navbar .navbar-nav {
        gap: 4px;
    }

    .modern-navbar .nav-link {
        padding-inline: 0.5rem !important;
    }

    .modern-navbar .nav-link.specialities-page-link,
    .modern-navbar .nav-link.facilities-page-link {
        padding-right: 0 !important;
    }

    .modern-navbar .nav-link.specialities-menu-toggle,
    .modern-navbar .nav-link.facilities-menu-toggle {
        padding-left: 5px !important;
        padding-right: 0.5rem !important;
        width: auto !important;
    }
}

@media (min-width: 1200px) and (max-width: 1439.98px) {
    .main-site-header {
        padding-inline: 12px;
    }

    .modern-navbar {
        padding-inline: 12px;
    }

    .modern-navbar .navbar-brand {
        margin-right: 12px;
        flex-shrink: 0;
    }

    .brand-logo-frame {
        width: 56px;
        height: 56px;
    }

    .brand-title,
    .brand-subtitle {
        font-size: 1rem;
        letter-spacing: 0.01em;
    }

    .brand-tagline {
        font-size: 0.6rem;
    }

    .modern-navbar .navbar-nav {
        gap: 1px;
        /* Anchor the Specialities menu to the full header container. */
        position: static;
    }

    .modern-navbar .nav-link {
        font-size: 0.8125rem;
        padding-inline: 0.35rem !important;
        white-space: nowrap;
    }

    .modern-navbar .nav-link.specialities-page-link,
    .modern-navbar .nav-link.facilities-page-link {
        padding-right: 0 !important;
    }

    .modern-navbar .nav-link.specialities-menu-toggle,
    .modern-navbar .nav-link.facilities-menu-toggle {
        padding-left: 4px !important;
        padding-right: 0.35rem !important;
        width: auto !important;
    }

    .specialists-mega-menu {
        padding: 1rem 1.25rem;
    }

    .specialists-mega-menu-grid {
        gap: 1rem;
    }

    .specialists-mega-menu .dropdown-item {
        padding-block: 0.35rem;
    }

    .header-cta-pocket {
        flex-shrink: 0;
        padding-left: 8px;
    }

    .btn-header-pill {
        padding: 10px 14px;
        font-size: 0.8125rem;
        gap: 6px;
    }
}

@media (max-width: 1199.98px) {
    .navbar-nav .nav-link.active::before {
        display: none !important;
    }

    .modern-navbar {
        padding-inline: 20px;
    }

    .hospital-navigation {
        --bs-offcanvas-width: min(380px, 90vw);
        --bs-offcanvas-zindex: 1055;
        top: 0;
        bottom: 0;
        height: 100dvh;
        background: #ffffff;
        border-left: 1px solid var(--border-color);
    }

    body:has(.hospital-navigation.show, .hospital-navigation.showing, .hospital-navigation.hiding) .floating-quick-actions {
        visibility: hidden;
    }

    .hospital-navigation .mobile-menu-brand {
        display: flex;
        align-items: center;
        gap: 2px;
        min-width: 0;
        max-width: none;
        margin: 0;
        padding: 0;
        white-space: normal;
        text-decoration: none;
    }

    .hospital-navigation .offcanvas-header .btn-close {
        flex-shrink: 0;
    }

    .hospital-navigation .offcanvas-header {
        gap: 8px;
        padding: 20px 12px;
        background: linear-gradient(120deg, #fff1f2, #eef2ff);
        border-bottom: 1px solid var(--border-color);
    }

    .hospital-navigation .offcanvas-body {
        min-height: 0;
        scroll-behavior: auto;
        overflow-anchor: none;
        padding: 16px 20px max(24px, env(safe-area-inset-bottom));
        overscroll-behavior-y: contain;
    }

    .hospital-navigation .navbar-nav {
        gap: 4px;
    }

    .hospital-navigation .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 48px;
        padding: 12px !important;
        text-align: left;
        border-radius: 12px;
    }

    .hospital-navigation .nav-link.dropdown-toggle::after {
        display: none;
    }

    .hospital-navigation .specialities-page-link,
    .hospital-navigation .facilities-page-link {
        flex: 1;
        width: auto;
    }

    .hospital-navigation .specialities-menu-toggle,
    .hospital-navigation .facilities-menu-toggle {
        flex: 0 0 48px;
        width: 48px;
        justify-content: flex-end;
        padding: 12px !important;
    }

    .hospital-navigation .dropdown-item {
        white-space: normal;
    }

    .hospital-navigation .header-cta-pocket {
        padding-left: 0;
        margin-top: 24px !important;
    }

    .hero-banner-overlay {
        padding-inline: 32px;
    }

    .hero-content-card {
        width: 52%;
    }

    .hero-reference .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .floating-quick-actions {
        display: grid;
        grid-auto-flow: row;
        justify-items: end;
        row-gap: 16px;
        bottom: max(16px, env(safe-area-inset-bottom));
        right: max(16px, env(safe-area-inset-right));
    }

    .floating-quick-actions .floating-fab {
        flex: none;
        margin: 0;
    }
}

@media (max-width: 767.98px) and (hover: none) {
    .floating-quick-actions .floating-fab:hover {
        transform: none;
    }

    .floating-quick-actions .floating-fab.fab-extended:hover {
        width: var(--fab-size);
    }

    .floating-quick-actions .floating-fab.fab-extended:hover .fab-label {
        max-width: 0;
        margin-left: 0;
        opacity: 0;
    }
}

@media (min-width: 1200px) {
    .hospital-navigation {
        display: flex;
        flex-basis: auto;
        flex-grow: 1;
        align-items: center;
        min-width: 0;
    }

    /* Keep links and CTA as direct flex items, matching the original header.
       Bootstrap's offcanvas body otherwise shrinks to its content on desktop. */
    .hospital-navigation>.offcanvas-body {
        display: contents;
    }
}

@media (max-width: 991.98px) {
    .hero-reference .hero-desc {
        font-size: 0.875rem;
    }

    .hero-actions .btn {
        padding-inline: 16px;
    }

    .top-utility-bar .container-fluid>div {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 767.98px) {
    #galleryGrid.media-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    #testimonialsGrid {
        --bs-gutter-x: 12px;
        --bs-gutter-y: 12px;
    }

    :is(#testimonialsGrid, #patientStoriesSlider) .testimonial-grid-card {
        padding: 14px 10px;
        border-radius: 14px;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    :is(#testimonialsGrid, #patientStoriesSlider) .testimonial-grid-header>.d-flex {
        flex-wrap: wrap;
    }

    :is(#testimonialsGrid, #patientStoriesSlider) .testimonial-grid-footer,
    :is(#testimonialsGrid, #patientStoriesSlider) .author-meta-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    #patientStoriesSlider .author-meta-wrap {
        flex-direction: row;
        align-items: center;
        min-width: 0;
    }

    #patientStoriesSlider .author-meta-wrap>div:last-child {
        min-width: 0;
    }

    :is(#testimonialsGrid, #patientStoriesSlider) .testimonial-grid-text {
        font-size: 0.8125rem;
    }

    .main-site-header {
        padding: 12px;
    }

    .main-site-header.home-header {
        margin-bottom: -96px;
    }

    .hero-reference {
        padding: 0;
    }

    .hero-banner-wrapper {
        height: auto;
        min-height: 0;
        padding-bottom: 190px;
    }

    .hero-main-banner-img {
        width: 100%;
        height: 236px;
        object-position: 62% 47%;
    }

    .hero-banner-wrapper::before {
        width: 100%;
        height: calc(100% - 190px);
        border-radius: 0 0 40px 0;
        clip-path: none;
    }

    .hero-banner-overlay {
        padding: 126px 24px 28px;
        height: auto;
    }

    .hero-content-card {
        width: 100%;
        max-width: 540px;
        margin: 0 auto;
    }

    .hero-reference .hero-title {
        font-size: 2.25rem;
    }

    .hero-reference .hero-desc {
        max-width: 460px;
    }

    .hero-service-strip-items {
        gap: 12px 28px;
        font-size: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .home-about-highlights {
        gap: 14px 10px;
    }

    .home-about-highlights li {
        gap: 8px;
        font-size: 0.75rem;
    }

    .home-about-photo {
        padding: 8px;
        border-radius: 22px;
    }

    .modern-navbar {
        padding-inline: 12px;
    }

    .navbar-brand {
        gap: 2px !important;
        margin-right: 8px;
        max-width: calc(100% - 54px);
        white-space: normal;
    }

    .brand-logo-frame {
        width: 48px;
        height: 48px;
    }

    .brand-title {
        font-size: 0.9375rem;
        letter-spacing: 0;
    }

    .brand-title-sub {
        display: block;
    }

    .brand-subtitle {
        font-size: 0.9375rem;
        letter-spacing: 0;
    }

    .brand-tagline {
        display: block;
        font-size: 0.6rem;
    }

    .hero-banner-overlay {
        padding: 116px 24px 26px;
    }

    .hero-content-card {
        padding: 0 !important;
    }

    .hero-trust-pill {
        white-space: normal;
    }

    .hero-reference .hero-title {
        font-size: 2rem;
    }

    .hero-location {
        margin-bottom: 12px;
        font-size: 0.75rem;
    }

    .hero-subheading {
        font-size: 1.125rem;
        margin-bottom: 12px;
    }

    .hero-reference .hero-desc {
        margin-bottom: 22px;
        line-height: 1.7;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
        gap: 8px;
    }

    .hero-actions .btn {
        padding: 12px 8px;
        gap: 8px;
        font-size: 0.75rem;
    }

    .hero-care-note {
        margin-top: 22px;
    }

    .hero-care-note span span {
        display: none;
    }

    .hero-service-strip-items {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding-left: 12px;
    }

    .hero-service-strip-items>span {
        justify-content: center;
    }

    .service-card-body {
        padding: 18px 22px 22px;
    }

    .service-card-title {
        font-size: 1.5rem;
    }

    .service-card-body::after {
        right: 12px;
        width: 48px;
    }

    .btn-view-all-services {
        padding: 14px 18px;
        font-size: 0.9375rem;
    }

    .footer-main-body {
        padding-block: 40px;
    }

    .footer-brand-title {
        font-size: 1.125rem;
    }

    .footer-logo-box {
        flex-shrink: 0;
        width: 70px;
        height: 70px;
    }

    .footer-emergency-strip .btn {
        max-width: 100%;
        white-space: normal;
    }

    .services-modal-header {
        padding: 20px;
    }

    .services-modal-header .modal-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 359.98px) {
    .home-about-highlights {
        grid-template-columns: 1fr;
    }

    .hero-reference .hero-title {
        font-size: 1.75rem;
    }

    .service-card-title {
        font-size: 1.25rem;
    }

    .service-card-icon {
        width: 72px;
        height: 72px;
        top: -72px;
        font-size: 1.75rem;
    }
}

@media (max-width: 767.98px) and (max-height: 740px) {
    .hero-banner-wrapper {
        padding-bottom: 100px;
    }

    .hero-main-banner-img {
        height: 146px;
    }

    .hero-banner-wrapper::before {
        height: calc(100% - 100px);
    }

    .hero-banner-overlay {
        padding-top: 108px;
        padding-bottom: 20px;
    }

    .hero-reference .hero-title {
        margin-bottom: 10px;
    }

    .hero-reference .hero-desc {
        margin-bottom: 16px;
    }

    .hero-care-note {
        margin-top: 16px;
    }
}

/* ==========================================================================
   HOSPITAL HERO SECTION & REVIEW FOLLOWUP BANNER - RESPONSIVE STYLES
   ========================================================================== */
@media (min-width: 1440px) {

    /* Keep the large-screen crop close to the 1200px image proportions. */
    .hospital-hero-image {
        width: clamp(55%, calc(25vw + 576px), 65%);
        object-position: center;
    }

    .hospital-hero-image-1 {
        object-position: center;
    }
}

@media (max-width: 1200px) {
    .hospital-hero-container {
        height: min(660px, calc(100vh - 40px));
    }

    .hospital-hero-content {
        padding-left: 55px;
        max-width: 560px;
    }

    .hospital-hero-title {
        font-size: 46px;
    }

    .hospital-hero-subtitle {
        font-size: 21px;
    }

    .hospital-hero-desc {
        font-size: 14.5px;
        margin-bottom: 22px;
    }
}

@media (max-width: 992px) {
    .hospital-hero-container {
        height: auto;
        min-height: 580px;
        padding: 40px 0;
    }

    .hospital-hero-content {
        padding-left: 36px;
        max-width: 520px;
    }

    .hospital-hero-title {
        font-size: 40px;
    }

    .hospital-hero-subtitle {
        font-size: 20px;
    }
}

@media (min-width: 1440px) and (max-width: 1550px) {
    .hospital-hero-image-1 {
        width: 46%;
        object-position: left center;
    }

    .hospital-hero-image {
        width: 60%;
        object-position: left center;
    }
}


@media (min-width: 1551px) and (max-width: 1920px) {
    .hospital-hero-image-1 {
        width: 40%;
        object-position: left center;
    }
}


@media (max-width: 768px) {
    .main-site-header.home-header {
        padding-bottom: 0 !important;
    }
}

/* Keep the same hero layout from mobile through small tablets. */
@media (max-width: 850px) {
    .hospital-hero-section {
        padding: 0 0 20px;
    }

    .hospital-hero-container {
        flex-direction: column;
        height: auto;
        min-height: auto;
        padding: 0;
    }

    .hospital-hero-media,
    .hospital-hero-media-1 {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        overflow: hidden;
    }

    .hospital-hero-image,
    .hospital-hero-image-1 {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .hospital-hero-image-1 {
        left: 0;
        right: auto;
        object-position: center;
    }

    .hospital-hero-slide[data-hero-slide="2"] .hospital-hero-image {
        object-position: 70% center;
    }

    .hospital-hero-image-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg,
                rgba(255, 255, 255, 0.92) 0%,
                rgba(255, 255, 255, 0.84) 55%,
                rgba(247, 246, 255, 0.78) 100%),
            linear-gradient(135deg,
                rgba(38, 23, 148, 0.22) 0%,
                rgba(112, 96, 230, 0.08) 50%,
                rgba(30, 19, 115, 0.16) 100%);
        pointer-events: none;
        z-index: 2;
    }

    .hospital-hero-svg {
        display: none;
    }

    .hospital-hero-content {
        position: relative;
        z-index: 10;
        padding: 26px 42px;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hospital-hero-title {
        font-size: clamp(24px, 6.5vw, 32px);
        line-height: 1.18;
        text-align: center;
        width: 100%;
    }

    .hospital-hero-title .text-gradient-shimmer,
    .hospital-hero-title .hero-title-nowrap,
    .hospital-hero-title .hero-title-sub {
        max-width: 100%;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .hospital-hero-badge,
    .ph-hero-greeting {
        max-width: 100%;
        white-space: normal;
        padding: 6px 14px;
        font-size: 11.5px;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 14px !important;
        align-self: center !important;
        text-align: center !important;
        justify-content: center !important;
        display: inline-flex !important;
    }

    .hospital-hero-actions .ph-hero-btn {
        max-width: 100%;
        white-space: normal;
    }

    .hospital-hero-subtitle {
        font-size: 18px;
        text-align: center;
    }

    .hospital-hero-desc,
    .ph-hero-tagline {
        font-size: 14px;
        margin-bottom: 20px;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hospital-hero-actions {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        width: 100%;
    }

    .hospital-hero-care-note {
        margin-left: auto;
        margin-right: auto;
    }

    .hospital-btn {
        height: 44px;
        padding: 0 24px;
        font-size: 14px;
    }

    .hospital-hero-slider {
        position: relative;
        width: 100%;
        height: auto;
    }

    .hospital-hero-slide {
        position: relative;
        inset: auto;
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .hospital-hero-slide:not(.is-active) {
        display: none !important;
    }

    .hospital-hero-slide.is-active {
        display: flex !important;
    }

    .hospital-hero-slide .hospital-hero-content {
        transform: none !important;
    }


    .hospital-hero-img-badge {
        bottom: 12px;
        right: 15px;
        font-size: 11px;
        padding: 6px 14px;
    }
}

@media (max-width: 850px) {
    .hospital-hero-container {
        padding-bottom: 72px;
    }

    .hospital-hero-container .hero-slider-arrow {
        top: auto;
        bottom: 12px;
        width: 44px;
        height: 44px;
        transform: none;
    }

    .hospital-hero-container .hero-slider-arrow:hover {
        transform: scale(1.05);
    }

    .hospital-hero-container .hero-slider-prev {
        left: calc(50% - 50px);
        right: auto;
    }

    .hospital-hero-container .hero-slider-next {
        left: calc(50% + 6px);
        right: auto;
    }

    .hero-slider-dots {
        bottom: 66px;
        gap: 8px;
        padding: 5px 12px;
    }

    .hero-slider-dot {
        width: 9px;
        height: 9px;
    }

    .hero-slider-dot.is-active {
        width: 24px;
    }
}

@media (min-width: 768px) and (max-width: 850px) {
    .hospital-hero-image-1 {
        object-position: center top;
    }
}

@media (max-width: 767.98px) {
    .hospital-hero-content {
        align-items: center !important;
        text-align: center !important;
    }

    .hospital-hero-badge,
    .ph-hero-greeting {
        margin-left: auto !important;
        margin-right: auto !important;
        align-self: center !important;
        text-align: center !important;
        justify-content: center !important;
        display: inline-flex !important;
    }

    .hospital-hero-title,
    .ph-hero-name,
    .hospital-hero-content .ph-hero-tagline {
        text-align: center !important;
    }

    .hospital-hero-actions {
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    .review-followup-card {
        min-height: 420px;
        background-image: linear-gradient(180deg, rgba(225, 220, 245, 0.97) 0%, rgba(225, 220, 245, 0.92) 56%, rgba(225, 220, 245, 0.5) 100%),
            url('../images/banner.png');
        background-position: center bottom;
    }

    .review-followup-content {
        align-self: flex-start;
        padding: 30px 0;
    }

    .review-followup-actions {
        justify-content: center;
    }

    .review-followup-btn {
        width: auto;
        min-height: 44px;
        padding: 0 22px;
        font-size: 0.875rem;
    }

    .review-followup-phone {
        width: 100%;
    }

    .review-followup-phone {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .contact-form-container {
        padding: 24px 18px !important;
    }

    .contact-quick-card {
        padding: 20px 16px !important;
    }

    .map-iframe-ratio {
        min-height: 320px;
    }

    .btn-submit-inquiry,
    .btn-whatsapp-inquiry {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   FACILITIES OVERVIEW CARDS - RESPONSIVE LAYOUT
   ========================================================================== */
@media (max-width: 1199.98px) and (min-width: 992px) {
    .facility-card-content {
        width: 68%;
        padding: 26px;
    }

    .facility-card-heading {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 16px;
    }

    .facility-card-icon {
        width: 50px;
        height: 50px;
        font-size: 23px;
    }

    .facility-card-media {
        width: 34%;
    }

    .facility-card-highlights li {
        padding-inline: 10px;
    }
}

@media (max-width: 991.98px) {
    .facility-card {
        display: flex;
        flex-direction: column;
    }

    .facility-card-content {
        width: 100%;
        padding: 28px;
    }

    .facility-card-media {
        position: relative;
        inset: auto;
        width: 100%;
        height: 260px;
        order: -1;
    }

    .facility-card-media::before {
        display: none;
    }

    .facility-card-media img {
        clip-path: none;
        object-position: center 45%;
    }

    .facility-card-media::after {
        clip-path: none;
    }
}

@media (max-width: 575.98px) {
    .facility-card-list {
        gap: 22px;
    }

    .facility-card {
        border-radius: 22px;
    }

    .facility-card-content {
        padding: 22px;
    }

    .facility-card-media {
        height: 210px;
    }

    .facility-card-heading {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 14px;
    }

    .facility-card-icon {
        width: 44px;
        height: 44px;
        border-radius: 13px;
        font-size: 21px;
    }

    .facility-card-heading p {
        margin-left: -58px;
        margin-top: 18px;
        font-size: 0.875rem;
    }

    .facility-card-highlights {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-block: 22px;
    }

    .facility-card-highlights li {
        flex-direction: row;
        text-align: left;
        padding: 0;
        gap: 14px;
    }

    .facility-card-highlights li+li::before {
        display: none;
    }

    .facility-card-highlight-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 20px;
    }

    .facility-card-actions .facility-button {
        font-size: 0.8rem;
        padding: 12px 18px;
    }
}

/* ==========================================================================
   SPECIALITIES ILLUSTRATED CARDS - RESPONSIVE LAYOUT
   ========================================================================== */
@media (max-width: 1199.98px) and (min-width: 992px) {
    #specialitiesContent .spec-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 991.98px) {
    #specialitiesContent .spec-cards-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    #specialitiesContent .spec-card-media {
        aspect-ratio: 2 / 1;
    }
}

@media (max-width: 575.98px) {
    #specialitiesContent .spec-card {
        border-radius: 18px;
        padding: 16px 16px 14px;
    }

    #specialitiesContent .spec-card-media {
        width: calc(100% + 32px);
        margin: -16px -16px 0;
        aspect-ratio: 16 / 9;
    }

    #specialitiesContent .spec-card-head {
        margin-top: -68px;
        margin-bottom: 8px;
    }

    #specialitiesContent .spec-card-icon-frame {
        width: 62px;
        height: 62px;
        font-size: 24px;
        border-width: 5px;
    }

    #specialitiesContent .spec-card-title {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }

    #specialitiesContent .spec-card-body-text {
        font-size: 0.83rem;
        margin-bottom: 10px;
    }

    #specialitiesContent .spec-card-foot {
        padding-top: 10px;
    }

    #specialitiesContent .spec-card-link-act,
    #specialitiesContent .spec-card-promo-btn {
        padding: 9px 16px;
        font-size: 0.78rem;
    }
}

/* ==========================================================================
   HEADER, NAVIGATION & MEGA MENU RESPONSIVE RULES
   ========================================================================== */
@media (min-width: 1200px) {
    .navbar-nav {
        gap: 6px;
    }
}

@media (max-width: 1199.98px) {
    .modern-navbar {
        border-radius: 28px;
        padding: 8px 16px;
    }

    .decor-pocket-right {
        display: none;
    }

    .decor-wave-left {
        width: 280px;
        opacity: 0.7;
    }

    .header-cta-pocket {
        margin-top: 14px;
        width: 100%;
    }

    .btn-header-pill {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 1199.98px) {
    .about-menu .about-menu-line-wrap {
        border-top-left-radius: 14px;
        border-top-right-radius: 14px;
    }

    .doctor-submenu {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        min-width: 0;
        margin: 4px 0 8px;
        padding: 4px;
        background: var(--indigo-50);
        box-shadow: none;
        border: 1px solid var(--indigo-100);
        border-radius: 14px;
    }

    .navbar-nav .doctor-submenu .dropdown-item {
        white-space: normal;
    }

    .navbar-nav .about-menu .doctor-submenu-toggle[aria-expanded="true"] i.doctor-submenu-chevron {
        transform: rotate(90deg);
    }
}

@media (min-width: 1200px) {
    .main-site-header>.container-fluid {
        position: relative;
    }

    .main-site-header .modern-navbar,
    .modern-navbar .navbar-nav,
    .specialists-dropdown {
        position: static;
    }

    .modern-navbar .nav-link {
        white-space: nowrap;
    }

    /* ==========================================================================
       DESKTOP DROPDOWN MENUS (REFERENCE: DR. NITIN AGRAWAL SMOOTH ACCORDION ROLL-DOWN)
       Always rendered (display: block), smoothly folded up to scale(1, 0) when closed,
       and rolls down to scale(1, 1) when hovered or active, smoothly rolling back up on exit.
       ========================================================================== */

    /* Standard Positioning & Hidden State */
    .hospital-navigation .specialists-mega-menu,
    .hospital-navigation .diagnostics-menu,
    .hospital-navigation .about-menu,
    .hospital-navigation .navbar-nav .dropdown-menu {
        display: block !important;
        position: absolute !important;
        left: 50% !important;
        margin: 0 !important;
        z-index: 1060;

        /* Closed Initial State: scaled to 0 at top edge, invisible */
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateX(-50%) scale(1, 0) !important;
        transform-origin: top center !important;

        /* Smooth 60fps hardware-accelerated transition for BOTH open and close */
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                    opacity 0.25s ease,
                    visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        will-change: transform, opacity;
    }

    /* Specialities Mega Menu Top Placement & Scroll */
    .main-site-header .specialists-mega-menu {
        top: calc(100% - 14px) !important;
        max-height: calc(100vh - 110px);
        max-height: calc(100dvh - 110px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
    }

    /* Standard Dropdown Menus Top Placement */
    .about-dropdown,
    .diagnostics-dropdown {
        position: relative !important;
    }

    .main-site-header .diagnostics-menu,
    .main-site-header .about-menu,
    .navbar-nav .dropdown-menu:not(.specialists-mega-menu) {
        top: calc(100% + 14px) !important;
    }

    /* Hover Bridges (seamless mouse passage from nav-link to menu) */
    .specialists-mega-menu::after {
        content: '';
        position: absolute;
        top: -24px;
        left: 0;
        width: 100%;
        height: 26px;
        background: transparent;
    }

    .diagnostics-menu::after,
    .navbar-nav .dropdown-menu:not(.specialists-mega-menu)::after {
        content: '';
        position: absolute;
        top: -20px;
        left: 0;
        width: 100%;
        height: 22px;
        background: transparent;
    }

    /* Open State: Triggered on pure CSS :hover OR Bootstrap .show OR aria-expanded */
    .hospital-navigation .dropdown:hover > .dropdown-menu,
    .hospital-navigation .specialists-dropdown:hover > .specialists-mega-menu,
    .hospital-navigation .about-dropdown:hover > .about-menu,
    .hospital-navigation .diagnostics-dropdown:hover > .diagnostics-menu,
    .hospital-navigation .dropdown-menu.show,
    .hospital-navigation .dropdown.show > .dropdown-menu,
    .hospital-navigation .dropdown-toggle[aria-expanded="true"] ~ .dropdown-menu,
    .hospital-navigation .dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateX(-50%) scale(1, 1) !important;
        transform-origin: top center !important;
    }

    /* Desktop Doctor Submenu Flyout (unfolds smoothly from top left) */
    .doctor-submenu {
        position: absolute !important;
        top: 0 !important;
        left: calc(100% + 8px) !important;
        display: block !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: scale(0.85, 0) translateY(-6px) !important;
        transform-origin: top left !important;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                    opacity 0.22s ease,
                    visibility 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
        will-change: transform, opacity;
    }

    .doctor-submenu.opens-left {
        left: auto !important;
        right: calc(100% + 8px) !important;
        transform-origin: top right !important;
    }

    .doctor-submenu::before {
        content: '';
        position: absolute;
        top: 0;
        left: -16px;
        width: 18px;
        height: 100%;
        background: transparent;
    }

    .doctor-submenu.opens-left::before {
        left: auto;
        right: -16px;
    }

    .doctor-submenu-item:hover > .doctor-submenu,
    .doctor-submenu-toggle[aria-expanded="true"] ~ .doctor-submenu,
    .doctor-submenu:not([hidden]) {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: scale(1, 1) translateY(0) !important;
    }

    /* Desktop Cascade / Staggered Dropdown Item Reveal */
    .hospital-navigation .dropdown:hover .dropdown-item,
    .hospital-navigation .dropdown.show .dropdown-item,
    .hospital-navigation .dropdown-menu.show .dropdown-item,
    .hospital-navigation .dropdown-menu.show .specialists-mega-menu-column {
        animation: dropdownItemReveal 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .hospital-navigation .dropdown:hover li:nth-child(1) .dropdown-item,
    .dropdown-menu.show li:nth-child(1) .dropdown-item { animation-delay: 0.03s; }
    .hospital-navigation .dropdown:hover li:nth-child(2) .dropdown-item,
    .dropdown-menu.show li:nth-child(2) .dropdown-item { animation-delay: 0.06s; }
    .hospital-navigation .dropdown:hover li:nth-child(3) .dropdown-item,
    .dropdown-menu.show li:nth-child(3) .dropdown-item { animation-delay: 0.09s; }
    .hospital-navigation .dropdown:hover li:nth-child(4) .dropdown-item,
    .dropdown-menu.show li:nth-child(4) .dropdown-item { animation-delay: 0.12s; }
    .hospital-navigation .dropdown:hover li:nth-child(5) .dropdown-item,
    .dropdown-menu.show li:nth-child(5) .dropdown-item { animation-delay: 0.15s; }
    .hospital-navigation .dropdown:hover li:nth-child(6) .dropdown-item,
    .dropdown-menu.show li:nth-child(6) .dropdown-item { animation-delay: 0.18s; }
    .hospital-navigation .dropdown:hover li:nth-child(7) .dropdown-item,
    .dropdown-menu.show li:nth-child(7) .dropdown-item { animation-delay: 0.21s; }

    .dropdown-menu.show .specialists-mega-menu-column:nth-child(1) { animation-delay: 0.04s; }
    .dropdown-menu.show .specialists-mega-menu-column:nth-child(2) { animation-delay: 0.09s; }

    .doctor-submenu-item:hover li:nth-child(2) .dropdown-item,
    .doctor-submenu:not([hidden]) li:nth-child(2) .dropdown-item {
        animation: dropdownItemReveal 0.28s cubic-bezier(0.16, 1, 0.3, 1) 0.03s both;
    }

    .doctor-submenu-item:hover li:nth-child(3) .dropdown-item,
    .doctor-submenu:not([hidden]) li:nth-child(3) .dropdown-item {
        animation: dropdownItemReveal 0.28s cubic-bezier(0.16, 1, 0.3, 1) 0.06s both;
    }
}

@media (max-width: 1199.98px) {
    .hospital-navigation .navbar-nav > .dropdown {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .hospital-navigation .navbar-nav > .dropdown > .dropdown-menu {
        flex: 0 0 100%;
    }

    /* Use the same compact, bordered accordion treatment for every mobile menu. */
    .hospital-navigation .navbar-nav > .dropdown > .dropdown-menu {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0 !important;
        margin: 4px 0 8px !important;
        padding: 8px !important;
        border: 1px solid rgba(112, 96, 230, 0.14) !important;
        border-radius: 14px !important;
        background: #fff !important;
        box-shadow: 0 8px 22px rgba(38, 23, 148, 0.06) !important;
        overflow: hidden;
    }

    .hospital-navigation .navbar-nav > .dropdown > .dropdown-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #7060e6, #f37c80, #00b4d8);
        pointer-events: none;
    }

    .hospital-navigation .navbar-nav > .dropdown > .dropdown-menu > li:first-child.about-menu-line-wrap {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        border-radius: 14px 14px 0 0;
    }

    .hospital-navigation .navbar-nav > .dropdown > .dropdown-menu > li:first-child.about-menu-line-wrap .about-menu-top-line {
        height: 3px;
    }

    .hospital-navigation .navbar-nav > .dropdown > .dropdown-menu .dropdown-item {
        min-height: 40px;
        margin: 0 0 2px;
        padding: 9px 10px;
        border-radius: 9px;
        font-size: 0.84rem;
    }

    .hospital-navigation .navbar-nav > .dropdown > .dropdown-menu .dropdown-header {
        margin: 4px 0 6px;
        padding: 8px 10px;
        border-radius: 9px;
        font-size: 0.84rem;
    }

    .hospital-navigation .navbar-nav > .dropdown > .dropdown-menu .dropdown-item:hover,
    .hospital-navigation .navbar-nav > .dropdown > .dropdown-menu .dropdown-item:focus {
        transform: none;
        padding-left: 10px;
    }

    /* Closed chevrons point down; an expanded dropdown points up. */
    .hospital-navigation .nav-chevron,
    .hospital-navigation .dropdown-toggle[aria-expanded="false"] .nav-chevron {
        transform: rotate(0deg) !important;
        transition: transform 0.25s ease, color 0.2s ease;
    }

    .hospital-navigation .dropdown-toggle[aria-expanded="true"] .nav-chevron,
    .hospital-navigation .dropdown.show .nav-chevron {
        transform: rotate(180deg) !important;
        color: #261794 !important;
    }

    .hospital-navigation .dropdown-menu {
        display: none !important;
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transition: none !important;
    }

    .specialists-mega-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: none !important;
        padding: 1rem;
        box-shadow: none !important;
        border-radius: 16px !important;
        margin-top: 8px !important;
    }

    .specialists-mega-menu.show,
    .diagnostics-menu.show,
    .navbar-nav .dropdown-menu:not(.specialists-mega-menu).show,
    .hospital-navigation .dropdown-menu.show {
        display: block !important;
        animation: mobileDropdownAccordion 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
        transform-origin: top center !important;
    }

    .hospital-navigation .about-menu .doctor-submenu-toggle[aria-expanded="true"] i.doctor-submenu-chevron {
        transform: rotate(90deg) !important;
        color: #261794 !important;
    }

    .specialists-mega-menu::after {
        display: none !important;
    }

    .specialists-mega-menu-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }

    .specialists-mega-menu-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .specialists-mega-menu-footer .mega-footer-link {
        justify-content: center;
        width: 100%;
    }

    .about-dropdown,
    .diagnostics-dropdown {
        position: static;
        width: 100%;
    }

    .diagnostics-menu,
    .navbar-nav .dropdown-menu:not(.specialists-mega-menu) {
        position: static !important;
        transform: none !important;
        min-width: 100% !important;
        width: 100% !important;
        border-radius: 14px !important;
        box-shadow: none !important;
        margin-top: 8px !important;
    }

    .diagnostics-menu::after,
    .navbar-nav .dropdown-menu:not(.specialists-mega-menu)::after {
        display: none !important;
    }
}


/* ==========================================================================
   HOSPITAL HERO, TRUST BADGE & SLIDER RESPONSIVE RULES
   ========================================================================== */
@media (max-width: 767.98px) {

    .specialist-doctor-card,
    .specialist-doctor-card-vision {
        padding: 0;
        border-radius: 24px;
        max-width: none;
    }

    .specialist-portrait-frame {
        max-width: 200px;
        margin-bottom: 18px;
    }
}

@media (max-width: 1199.98px) {

    .specialist-details,
    .specialist-appointments {
        padding: 24px;
    }
}

@media (max-width: 991.98px) {
    .specialists-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .specialists-heading>p {
        max-width: 620px;
    }

    .specialist-profile {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    }

    .specialist-appointments {
        grid-column: 1 / -1;
        border-left: 0;
        border-top: 1px solid #e3e9e5;
    }

    .specialist-hours {
        display: flex;
        flex-wrap: wrap;
        gap: 24px;
    }

    .specialist-hours>div+div {
        margin: 0;
        padding: 0;
        border: 0;
    }

    .specialist-booking {
        width: auto;
        align-self: flex-start;
    }
}

@media (max-width: 575.98px) {
    .specialists-heading h2 {
        font-size: 1.75rem;
    }

    .specialist-profile {
        grid-template-columns: minmax(0, 1fr);
    }

    .specialist-photo {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .specialist-booking {
        width: 100%;
    }
}

@media (max-width: 991px) {

    .hospital-hero-content,
    .ph-hero-content {
        padding-left: clamp(24px, 5vw, 60px);
    }

    .hero-slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .hero-slider-prev {
        left: 12px;
    }

    .hero-slider-next {
        right: 12px;
    }
}


/* ==========================================================================
   FOOTER & FLOATING ACTIONS RESPONSIVE RULES
   ========================================================================== */
@media (max-width: 1199.98px) {
    .navbar-collapse {
        background: #ffffff;
        padding: 1rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        margin-top: 1rem;
    }

    .hero-main-img {
        height: 380px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-main-img {
        height: 280px;
    }

    .floating-hero-card {
        display: none;
    }

    .about-landmark-tag {
        position: static;
        margin-top: 1rem;
    }

    .floating-quick-actions {
        bottom: 16px;
        right: 16px;
    }

    .floating-fab {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .floating-fab.fab-extended {
        --fab-size: 44px;
        --fab-expanded-width: 152px;
    }

    .fab-label {
        font-size: 15px;
    }
}


/* ==========================================================================
   BREADCRUMBS & SECTION HERO BANNERS RESPONSIVE RULES
   ========================================================================== */
@media (max-width: 991.98px) {
    .media-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .media-page-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .gallery-page-viewer {
        width: calc(100% - 20px);
        max-height: 96vh;
    }

    .gallery-page-toolbar {
        padding: 0 0 8px 0;
    }

    .gallery-page-stage>img {
        max-height: 72vh;
        border-radius: 12px;
    }

    .gallery-page-stage .gallery-photo-arrow {
        width: 40px;
        height: 40px;
        font-size: 26px;
    }

    .gallery-page-stage .gallery-photo-prev {
        left: 6px;
    }

    .gallery-page-stage .gallery-photo-next {
        right: 6px;
    }
}


/* ==========================================================================
   GALLERY CARDS & VIEWER RESPONSIVE RULES
   ========================================================================== */
@media (max-width: 767.98px) {
    .gallery-expand-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

@media (hover: none) {
    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(160deg,
                rgba(24, 39, 61, 0.08) 0%,
                rgba(24, 39, 61, 0.5) 100%);
    }

    .gallery-expand-icon {
        transform: translateY(0) scale(1);
    }

    .gallery-img-wrapper>.gallery-expand-icon {
        opacity: 1;
    }
}


/* ==========================================================================
   TESTIMONIALS & REVIEWS CAROUSEL RESPONSIVE RULES
   ========================================================================== */
@media (max-width: 991px) {
    .testimonial-carousel:not(.is-initialized) .splide__slide {
        flex: 0 0 calc((100% - 1rem) / 2);
        max-width: calc((100% - 1rem) / 2);
        margin-right: 1rem;
    }

    .testimonial-carousel:not(.is-initialized) .splide__slide:nth-child(n+3) {
        display: none;
    }
}

@media (max-width: 767px) {
    .testimonial-carousel:not(.is-initialized) .splide__slide {
        flex: 0 0 100%;
        max-width: 100%;
        margin-right: 0.75rem;
    }

    .testimonial-carousel:not(.is-initialized) .splide__slide:nth-child(n+2) {
        display: none;
    }
}


/* ==========================================================================
   ABOUT HOSPITAL, VALUES & INFRASTRUCTURE RESPONSIVE RULES
   ========================================================================== */
@media (max-width: 991px) {
    .trust-ref-bar {
        padding: 1.25rem 2rem;
        gap: 1rem;
        border-radius: 30px;
    }

    .trust-ref-value {
        font-size: 1.45rem;
    }

    .trust-ref-label {
        font-size: 0.68rem;
        letter-spacing: 0.06em;
    }
}

@media (max-width: 767px) {
    .trust-ref-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem 1.5rem;
        border-radius: 26px;
        gap: 1.25rem;
    }

    .trust-ref-item {
        width: 100%;
        gap: 1rem;
    }

    .trust-ref-divider {
        width: 100%;
        height: 1px;
        background-color: var(--border-color, #e4e0fb);
    }
}

@media (min-width: 1400px) {
    .about-hero-header {
        padding-top: 60px;
    }

    .about-hero-title {
        font-size: 44px;
    }

    .about-hero-description {
        font-size: 16px;
    }
}

@media (max-width: 991.98px) {
    .about-hero-header {
        min-height: 340px;
        padding: 36px 0 100px;
    }

    .about-hero-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .about-hero-appointment {
        justify-self: start;
        margin-top: 0;
    }

    .about-hero-description {
        max-width: 680px;
        line-height: 1.5;
    }

    .about-hero-copy {
        max-width: 75%;
    }

    .about-hero-title {
        font-size: 36px;
    }

    .about-hero-visual {
        top: 0;
        right: 0;
        width: auto;
        max-width: 52%;
        height: 100%;
    }
}

@media (max-width: 767.98px) {
    .about-hero-header {
        min-height: 0;
        padding: 36px 0 64px;
    }

    .about-hero-copy {
        max-width: 100%;
    }

    .about-hero-visual {
        display: none;
    }

    .about-hero-waves {
        top: auto;
        bottom: 0;
        height: 90px;
    }
}

@media (max-width: 575.98px) {
    .about-hero-header {
        min-height: 0;
        padding: 28px 0 56px;
    }

    .about-hero-inner {
        width: calc(100% - 40px);
    }

    .about-hero-copy {
        max-width: 100%;
    }

    .about-breadcrumb {
        font-size: 13px;
        margin-bottom: 18px;
        padding: 4px;
        max-width: 100%;
        border-radius: 20px;
    }

    .about-breadcrumb-list {
        flex-wrap: wrap;
        gap: 6px 4px;
        min-width: 0;
    }

    .about-breadcrumb-home {
        max-width: 100%;
    }

    .about-breadcrumb-label {
        white-space: nowrap;
    }

    .about-breadcrumb-separator {
        flex-shrink: 0;
        padding: 0 1px;
    }

    .about-breadcrumb-link {
        min-height: 32px;
        height: auto;
        gap: 5px;
        padding: 3px 8px 3px 4px;
        font-size: 12px;
    }

    .about-breadcrumb-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .about-breadcrumb-current {
        min-height: 32px;
        height: auto;
        max-width: 100%;
        padding: 6px 10px;
        font-size: 12px;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .about-hero-title {
        font-size: 30px;
    }

    .about-hero-description {
        font-size: 14px;
    }

    .about-hero-appointment {
        min-height: 56px;
        padding: 14px 24px;
        font-size: 16px;
    }

    .about-hero-waves {
        top: auto;
        bottom: 0;
        height: 80px;
    }

}


/* ==========================================================================
   DOCTORS & SPOTLIGHT PROFILES RESPONSIVE RULES
   ========================================================================== */
@media (max-width: 991px) {
    .brochure-vertical-text {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        letter-spacing: 0.1em;
        padding: 8px 18px;
        margin: 1.5rem 0;
    }

    .brochure-facility-list {
        grid-template-columns: 1fr;
    }

    .brochure-circles-row {
        gap: 1rem;
    }

    .brochure-circle-frame {
        width: 82px;
        height: 82px;
    }
}


/* ==========================================================================
   SERVICES FEATURE GRID RESPONSIVE RULES
   ========================================================================== */
@media (min-width: 1400px) {
    .service-card-body {
        margin-top: -24px;
        padding: 22px 36px 26px;
    }

    .service-card-title {
        font-size: 1.625rem;
    }

    .service-card-icon {
        width: 100px;
        height: 100px;
        top: -100px;
        left: 22px;
        font-size: 2.5rem;
        border-width: 10px;
    }

    .service-card-link {
        padding: 12px 26px;
        min-height: 54px;
        font-size: 1.125rem;
    }
}

@media (min-width: 1600px) {
    .service-card-title {
        font-size: 1.875rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .services-feature-grid {
        --bs-gutter-x: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .services-feature-grid {
        max-width: 540px;
        margin-inline: auto;
    }

    .services-feature-grid>div {
        padding-inline: 0;
    }
}


/* ==========================================================================
   CONTACT US PAGE RESPONSIVE RULES
   ========================================================================== */
@media (max-width: 575.98px) {
    .clinical-pathway-item {
        padding: 18px 16px;
    }

    .pathway-icon {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }
}


/* ==========================================================================
   FACILITY DETAIL & CARE SPECIMEN RESPONSIVE RULES
   ========================================================================== */
@media (max-width: 991.98px) {
    .facility-section {
        padding-block: 40px;
    }

    .facility-feature {
        padding: 24px;
    }

    .facility-ot-path {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 0;
    }

    .facility-contact-strip {
        align-items: flex-start;
        flex-direction: column;
        padding: 32px;
    }
}

@media (max-width: 575.98px) {
    .facility-section {
        padding-block: 32px;
    }

    .facility-navigation-list {
        gap: 4px 16px;
    }

    .facility-navigation a {
        font-size: .75rem;
    }

    .facility-title {
        font-size: 1.9rem;
    }

    .facility-copy {
        font-size: .9375rem;
    }

    .facility-feature-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .facility-feature {
        padding: 24px;
    }

    .facility-icon {
        margin-bottom: 18px;
    }

    .facility-photo {
        border-radius: 20px 20px 48px 20px;
    }

    .facility-photo>img {
        height: 260px;
    }

    .facility-photo-caption {
        inset: auto 12px 12px;
        padding: 14px;
        gap: 10px;
    }

    .facility-dark-panel {
        padding: 28px;
    }

    .facility-contact-strip {
        padding: 28px 24px;
        border-radius: 20px;
    }

    .facility-contact-strip>a {
        max-width: 100%;
        white-space: normal;
    }

    .facility-ot-path {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .facility-ot-step {
        display: grid;
        grid-template-columns: 44px 1fr;
        gap: 0 16px;
        padding: 0;
    }

    .facility-ot-step::before {
        display: none;
    }

    .facility-ot-step .facility-step-number {
        grid-row: 1 / 3;
        margin: 0;
    }

    .facility-theatre-visual {
        padding: 18px;
    }

    .facility-speciality-card,
    .facility-prep-card {
        padding: 24px;
    }

    .facility-lab-visual {
        padding: 24px;
    }

    .facility-specimen-display {
        gap: 16px;
    }
}


/* ==========================================================================
   MEDICLAIM & CASHLESS PARTNERS RESPONSIVE RULES
   ========================================================================== */
@media (max-width: 991.98px) {
    .mediclaim-partner-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .mediclaim-logo-slider:not(.is-initialized) .splide__slide {
        flex: 0 0 calc((100% - 3 * 1rem) / 4);
        max-width: calc((100% - 3 * 1rem) / 4);
        margin-right: 1rem;
    }

    .mediclaim-logo-slider:not(.is-initialized) .splide__slide:nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .mediclaim-partner-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .mediclaim-partner-card {
        padding: 16px 10px;
        border-radius: 14px;
    }

    .mediclaim-logo-frame {
        height: 64px;
        margin-bottom: 12px;
    }

    .mediclaim-partner-name {
        font-size: .75rem;
    }

    .mediclaim-help-card {
        padding: 24px;
    }

    .mediclaim-category-nav {
        gap: 8px;
    }

    .mediclaim-category-nav a {
        padding: 9px 12px;
        font-size: .75rem;
    }

    .mediclaim-logo-slider:not(.is-initialized) .splide__slide {
        flex: 0 0 calc((100% - 12px) / 2);
        max-width: calc((100% - 12px) / 2);
        margin-right: 12px;
    }

    .mediclaim-logo-slider:not(.is-initialized) .splide__slide:nth-child(n+3) {
        display: none;
    }

    .mediclaim-group {
        scroll-margin-top: 110px;
    }
}


/* ==========================================================================
   SPECIALITIES CLINICS & SHOWCASE CARDS RESPONSIVE RULES
   ========================================================================== */
@media (max-width: 991.98px) {
    .specialities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 575.98px) {
    .specialities-clinic {
        padding: 32px 0;
    }

    .specialities-clinic-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .specialities-clinic-intro h2 {
        font-size: 25px;
    }

    .specialities-clinic-photo {
        flex-basis: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .specialities-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .speciality-card {
        padding: 22px;
    }

    .speciality-target,
    .specialities-clinic {
        scroll-margin-top: 110px;
    }
}

@media (max-width: 991px) {
    .lung-sidebar-sticky {
        position: static;
        margin-bottom: 1.5rem;
    }

    .lung-specialities-list {
        max-height: 300px;
    }

    .lung-hero-split {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .lung-showcase-card {
        padding: 1.4rem;
    }

    .lung-facts-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .lung-fact-card {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 8px;
    }

    .lung-fact-card:nth-child(3),
    .lung-fact-card:nth-child(4) {
        border-bottom: none;
    }

    .lung-simple-list {
        grid-template-columns: 1fr;
    }

    .lung-stepper-flow {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .lung-stepper-flow::before {
        display: none;
    }

    .lung-why-light-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .lung-stepper-flow {
        grid-template-columns: 1fr;
    }

    .lung-pn-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .lung-pn-btn {
        justify-content: center;
    }
}

@media (max-width: 1199.98px) {
    .spec-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .spec-banner-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 991.98px) {
    .specialities-clinic-nav {
        padding: 12px 0;
    }

    .specialities-clinic-nav a {
        padding: 8px 18px;
        font-size: 0.875rem;
    }

    .spec-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .spec-showcase-banner {
        padding: 32px 24px;
    }

    .spec-cta-banner {
        padding: 36px 28px;
    }
}

@media (max-width: 575.98px) {
    .specialities-clinic-nav>.container {
        gap: 10px;
    }

    .specialities-clinic-nav a {
        width: 100%;
        justify-content: center;
    }

    .spec-cards-grid {
        grid-template-columns: 1fr;
    }

    .spec-why-grid {
        grid-template-columns: 1fr;
    }

    .spec-card {
        padding: 22px;
    }

    .spec-banner-grid {
        gap: 24px;
    }

    .spec-doc-header {
        flex-direction: column;
        text-align: center;
    }

    .spec-doc-actions {
        flex-direction: column;
    }

    .spec-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .spec-cta-btn-light,
    .spec-cta-btn-outline {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   PREFERS-REDUCED-MOTION (ACCESSIBILITY FIRST)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .site-body *,
    .site-body *::before,
    .site-body *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .page-reveal {
        opacity: 1 !important;
        translate: none !important;
        transition: none !important;
    }

    .fab-call>i {
        animation: none !important;
    }

    .floating-fab.fab-extended,
    .fab-label {
        transition: none !important;
    }

    .site-scroll-progress,
    .text-gradient-shimmer,
    .pulse-heartbeat,
    .live-dot::after,
    .motto-shine::after,
    .float-slow,
    .is-revealed .service-card-icon {
        animation: none !important;
    }

    .text-gradient-shimmer {
        background-position: 0% 50% !important;
        -webkit-text-fill-color: var(--hosp-color-primary, #7060E6) !important;
    }

    .hero-anim,
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .reveal {
        visibility: visible !important;
    }

    .image-anime::after {
        display: none !important;
    }

    .section-title-underline .underline-line,
    .section-title-underline .underline-dot {
        transform: none !important;
        transition: none !important;
    }

    .facility-card,
    .facility-card-media img,
    .facility-card-actions .facility-button,
    #specialitiesContent .spec-card,
    #specialitiesContent .spec-card-icon-frame,
    #specialitiesContent .spec-card-title,
    #specialitiesContent .spec-card-link-act,
    #specialitiesContent .spec-card-promo-btn,
    .gallery-card,
    .gallery-img,
    .gallery-overlay,
    .gallery-expand-icon,
    .service-feature-card,
    .service-card-img,
    .service-card-link,
    .about-photo-slide,
    .about-hero-appointment,
    .mediclaim-partner-card,
    .speciality-card,
    .facility-feature,
    .facility-button {
        transition: none !important;
        transform: none !important;
    }

    .facility-card:hover,
    .facility-card:hover .facility-card-media img,
    .facility-card-actions .facility-button:hover,
    #specialitiesContent .spec-card:hover,
    #specialitiesContent .spec-card:hover .spec-card-icon-frame,
    #specialitiesContent .spec-card-link-act:hover,
    #specialitiesContent .spec-card-promo-btn:hover,
    .gallery-card:hover,
    .gallery-card:hover .gallery-img,
    .gallery-card:focus-visible .gallery-img,
    .gallery-card:hover .gallery-expand-icon,
    .gallery-card:focus-visible .gallery-expand-icon,
    .service-feature-card:hover,
    .service-feature-card:hover .service-card-img {
        transform: none !important;
    }

    .facility-ecg path,
    .facility-theatre-lamp {
        animation: none !important;
    }

    .facility-ecg path {
        stroke-dashoffset: 0 !important;
    }
}

/* ==========================================================================
   MOBILE PERFORMANCE & SMOOTH SCROLL ACCELERATION
   ========================================================================== */
@media (max-width: 991.98px) {
    /* 0. Mobile preloader sizing & presentation */
    .site-preloader-content {
        padding: 20px;
    }

    .site-preloader-logo-wrapper {
        width: 96px;
        height: 96px;
        margin-bottom: 14px;
    }

    .site-preloader-logo {
        width: 70px;
        height: 70px;
    }

    .site-preloader-name {
        font-size: 1.15rem;
    }

    .site-preloader-subtitle {
        font-size: 0.775rem;
    }

    .site-preloader-progress {
        width: 140px;
        margin-top: 14px;
    }

    /* 0b. Smooth mobile hero entrance visibility upon site-entered */
    .site-body.site-entered .hospital-hero-slide.is-active .hospital-hero-content,
    .site-body.site-entered .hospital-hero-slide.is-active .hospital-hero-badge,
    .site-body.site-entered .hospital-hero-slide.is-active .hospital-hero-title,
    .site-body.site-entered .hospital-hero-slide.is-active .ph-hero-tagline,
    .site-body.site-entered .hospital-hero-slide.is-active .hospital-hero-actions,
    .site-body.site-entered .hospital-hero-slide.is-active .hospital-hero-care-note {
        opacity: 1;
        visibility: visible;
    }

    /* 1. Eliminate heavy GPU backdrop-filter Gaussian blurs on mobile */
    .main-site-header,
    .main-site-header.scrolled-header,
    .site-preloader,
    .specialists-mega-menu,
    .diagnostics-menu,
    .about-menu,
    .about-image-badge,
    .service-feature-card,
    .doctor-card,
    .facility-card,
    .modal-content,
    .hospital-offcanvas {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    .main-site-header.scrolled-header {
        background: #ffffff !important;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08) !important;
    }

    /* 2. Prevent GPU compositor layer thrashing on mobile */
    *,
    *::before,
    *::after {
        will-change: auto !important;
    }

    /* 3. Disable continuous CPU/GPU keyframe shimmer on mobile */
    .text-gradient-shimmer {
        animation: none !important;
        background-position: 50% 50% !important;
    }

    .site-scroll-progress {
        animation: none !important;
        box-shadow: 0 0 6px rgba(112, 96, 230, 0.6) !important;
    }

    /* 4. Streamline card shadows to reduce mobile rasterization cost */
    .service-feature-card,
    .doctor-card,
    .facility-card,
    .testimonial-card,
    .mediclaim-partner-card {
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06) !important;
    }

    /* 5. Native hardware touch scrolling */
    html, body {
        -webkit-overflow-scrolling: touch;
    }

    /* 6. Content visibility for below-the-fold sections on mobile for near-zero initial CPU load */
    .mediclaim-showcase-section,
    .patient-reviews-section,
    .hospital-gallery-section,
    .site-footer {
        content-visibility: auto;
        contain-intrinsic-size: 1px 600px;
    }
}

/* ==========================================================================
   ABOUT PAGE MOBILE PERFORMANCE OPTIMIZATION
   ========================================================================== */
@media (max-width: 767.98px) {
    /* Prevent heavy 3000px background graphic & mask filters on mobile */
    .about-hero-visual {
        display: none !important;
    }

    /* Ensure immediate FCP for headings without waiting for JS animation libraries */
    .about-hero-title,
    .about-hero-description {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }

    /* Prevent CLS on primary image */
    .about-hospital-img {
        aspect-ratio: 1448 / 1086;
        height: auto;
        width: 100%;
    }
}

