/* Large desktop navigation: @media (min-width: 1200px) */
@media (min-width: 1200px) {
    .modern-nav-list>.nav-item {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .modern-nav-list>.nav-item>.nav-link {
        height: 34px;
        min-height: 34px;
        border-radius: 3px;
        padding-right: 13px !important;
        padding-left: 13px !important;
        transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
    }

    .modern-nav-list>.nav-item>.nav-link:hover {
        color: var(--hospital-green-dark);
        background: var(--hospital-mint);
        box-shadow: 0 5px 14px rgba(11, 107, 97, .1);
        transform: translateY(-1px);
    }

    .modern-nav-list>.nav-item>.nav-link.active,
    .modern-dropdown.show>.nav-dropdown-toggle {
        color: var(--theme-white);
        background: var(--hospital-green);
        box-shadow: inset 0 -3px 0 var(--hospital-coral), 0 7px 18px rgba(11, 107, 97, .2);
        transform: translateY(-1px);
    }

    .modern-dropdown>.modern-dropdown-menu {
        display: block;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(10px) scale(.98);
        transform-origin: top left;
        transition: opacity .2s ease, transform .24s cubic-bezier(.2, .8, .2, 1), visibility .2s ease;
    }

    .modern-dropdown>.modern-dropdown-menu::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -10px;
        height: 10px;
    }

    .modern-dropdown:hover>.modern-dropdown-menu,
    .modern-dropdown.show>.modern-dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .dropdown-submenu>.submenu-menu {
        min-width: 220px;
        position: absolute;
        top: -7px;
        left: calc(100% + 9px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(-8px);
        transition: opacity .2s ease, transform .22s ease, visibility .2s ease;
    }

    .dropdown-submenu>.submenu-menu::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: -11px;
        width: 11px;
    }

    .dropdown-submenu:hover>.submenu-menu,
    .dropdown-submenu.show>.submenu-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
    }

}

/* Laptop and compact desktop: @media (max-width: 1199.98px) */
@media (max-width: 1199.98px) {
    body.mobile-nav-open {
        overflow: hidden;
    }

    .hospital-navbar {
        height: auto;
        min-height: 49px;
    }

    .menu-container {
        min-height: 49px;
        position: relative;
    }

    .mobile-menu-label {
        max-width: calc(100% - 58px);
        display: inline-flex;
    }

    .is-scrolled .mobile-menu-label {
        display: none;
    }

    .hospital-navbar .navbar-toggler {
        position: absolute;
        z-index: 2;
        top: 50%;
        right: 0;
        display: block;
        background: var(--hospital-mint-light);
        border-radius: 13px;
        margin: 0;
        transform: translateY(-50%);
    }

    .hospital-navbar .navbar-toggler span {
        background: var(--hospital-green-dark);
    }

    .navbar-toggler span {
        transition: transform .22s ease, opacity .18s ease;
    }

    .navbar-toggler.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .navbar-toggler.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggler.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .mobile-menu-backdrop {
        position: fixed;
        z-index: 1055;
        inset: 0;
        display: block;
        border: 0;
        background: rgba(5, 35, 33, .55);
        backdrop-filter: blur(3px);
        animation: navBackdropIn .2s ease both;
    }

    .hospital-navbar .navbar-collapse {
        width: min(390px, 100vw);
        max-width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        display: block !important;
        position: fixed;
        z-index: 1060;
        left: auto;
        right: 0;
        top: 0;
        overflow-x: hidden;
        overflow-y: auto;
        background: var(--theme-white);
        border: 0;
        box-shadow: -24px 0 70px rgba(5, 38, 35, .25);
        padding: 0 18px 26px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate3d(100%, 0, 0);
        transition: transform .32s cubic-bezier(.2, .8, .2, 1), opacity .22s ease, visibility .32s ease;
    }

    .hospital-navbar .navbar-collapse.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
    }

    .mobile-drawer-head {
        min-height: 76px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid var(--hospital-border);
        position: sticky;
        z-index: 3;
        top: 0;
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(10px);
    }

    .mobile-drawer-head .hospital-brand strong {
        font-size: .88rem;
    }

    .mobile-drawer-head .hospital-brand small {
        font-size: .49rem;
    }

    .mobile-drawer-head .brand-mark {
        width: 33px;
        height: 33px;
    }

    .mobile-drawer-head>button {
        width: 36px;
        height: 36px;
        color: var(--hospital-ink);
        border: 0;
        border-radius: 50%;
        background: var(--hospital-mint-light);
    }

    .mobile-menu-quick {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
        margin: 16px 0 12px;
    }

    .mobile-menu-quick>a {
        min-width: 0;
        color: var(--theme-white);
        background: linear-gradient(145deg, var(--hospital-green), #118579);
        border-radius: 11px;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 10px;
    }

    .mobile-menu-quick>a:last-child {
        color: var(--hospital-green-dark);
        background: var(--hospital-mint);
    }

    .mobile-menu-quick>a>i {
        width: 27px;
        height: 27px;
        flex: 0 0 auto;
        background: rgba(255, 255, 255, .16);
        border-radius: 8px;
        display: grid;
        place-items: center;
    }

    .mobile-menu-quick>a>span {
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    .mobile-menu-quick small {
        color: inherit;
        opacity: .72;
        font-size: .46rem;
    }

    .mobile-menu-quick strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: .61rem;
        margin-top: 2px;
    }

    .hospital-navbar .navbar-nav {
        height: auto;
        gap: 3px;
    }

    .modern-nav-list .menu-icon {
        width: 31px;
        height: 31px;
        flex: 0 0 auto;
        color: var(--hospital-green);
        background: var(--hospital-mint-light);
        border-radius: 9px;
        display: grid;
        place-items: center;
        font-size: .75rem;
        margin-right: 0;
    }

    .hospital-navbar .nav-link,
    .is-scrolled .hospital-navbar .nav-link {
        width: 100%;
        min-height: 48px;
        color: #314c49;
        border-radius: 9px;
        font-size: .78rem;
        text-align: left;
        padding: 7px 8px !important;
        gap: 11px;
    }

    .hospital-navbar .nav-link:hover,
    .hospital-navbar .nav-link.active {
        color: var(--theme-white);
        background: var(--hospital-green);
    }

    .hospital-navbar .nav-link:hover .menu-icon,
    .hospital-navbar .nav-link.active .menu-icon {
        color: var(--hospital-green-dark);
        background: var(--theme-white);
    }

    .hospital-navbar .nav-link.active::after {
        display: none;
    }

    .nav-dropdown-toggle .menu-chevron {
        margin-left: auto;
        margin-right: 4px;
    }

    .hospital-navbar .modern-dropdown-menu {
        display: block !important;
        position: static;
        min-width: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        background: #f4f9f8;
        border: 0;
        border-radius: 10px;
        box-shadow: none;
        padding: 0 7px;
        transition: max-height .32s ease, opacity .22s ease, padding .25s ease, margin .25s ease;
    }

    .hospital-navbar .modern-dropdown-menu.show {
        max-height: 760px;
        opacity: 1;
        padding-top: 7px;
        padding-bottom: 7px;
        margin: 3px 0 7px;
    }

    .dropdown-intro {
        padding-left: 5px;
    }

    .modern-dropdown-menu .dropdown-item {
        min-height: 42px;
        font-size: .7rem;
        padding: 9px 8px;
    }

    .submenu-menu {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        background: #eaf4f2;
        border: 0;
        border-radius: 9px;
        box-shadow: none;
        padding: 0 8px;
        margin: 0 0 0 10px;
        transition: max-height .3s ease, opacity .2s ease, padding .25s ease, margin .25s ease;
    }

    .submenu-menu.show {
        max-height: 240px;
        opacity: 1;
        padding-top: 6px;
        padding-bottom: 6px;
        margin-top: 3px;
        margin-bottom: 5px;
    }

    .submenu-menu a {
        min-height: 38px;
        display: flex;
        align-items: center;
        white-space: normal;
    }

    .dropdown-submenu.show>.submenu-toggle>i {
        transform: rotate(90deg);
    }

    .sticky-actions {
        border-top: 1px solid var(--hospital-border);
        justify-content: flex-end;
        margin-top: 12px;
        padding-top: 14px;
    }

    .is-scrolled .sticky-actions {
        display: flex;
    }

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

    .home-about-grid {
        gap: 48px;
    }

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

    .testimonial-shell {
        gap: 42px;
        padding: 55px 48px;
    }

    .appointment-form-wrap {
        padding: 42px 38px 34px;
    }

    .service-directory-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

/* Tablet: @media (max-width: 991.98px) */
@media (max-width: 991.98px) {
    .department-directory-hero>.container {
        min-height: 300px;
        gap: 30px;
    }

    .department-directory-hero aside {
        min-width: 285px;
    }

    .department-directory-grid,
    .department-loading-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .department-detail-layout {
        grid-template-columns: 1fr;
    }

    .department-detail-sidebar {
        grid-template-columns: 1fr 1fr;
        position: static;
    }

    .department-back-link {
        grid-column: 1 / -1;
    }

    .hospital-hero,
    .min-vh-hero {
        min-height: 500px;
    }

    .hero-image {
        background-position: 62% center;
    }

    .hero-overlay {
        background: linear-gradient(90deg, rgba(3, 48, 43, .97), rgba(4, 61, 54, .87) 55%, rgba(4, 61, 54, .22));
    }

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

    .feature-item:nth-of-type(2)::after {
        display: none;
    }

    .feature-item:nth-of-type(-n+2) {
        border-bottom: 1px solid var(--hospital-border);
    }

    .feature-item:nth-of-type(1)::after,
    .feature-item:nth-of-type(3)::after {
        height: 100%;
        top: 0;
    }

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

    .appointment-shell {
        grid-template-columns: 1fr;
    }

    .appointment-aside {
        padding: 40px;
    }

    .appointment-aside h2 {
        max-width: 480px;
    }

    .appointment-benefits {
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 25px;
    }

    .need-help {
        position: static;
        margin-top: 30px;
    }

    .patient-login-card {
        grid-template-columns: 42% 58%;
    }

    .patient-login-aside {
        padding: 32px;
    }

    .login-aside-copy {
        margin-top: 75px;
    }

    .login-aside-copy h1 {
        font-size: 2rem;
    }

    .patient-login-form {
        padding: 60px 42px;
    }

    .register-form {
        padding: 38px;
    }

    .patient-login-shell {
        grid-template-columns: 43% 57%;
        gap: 32px;
    }

    .patient-login-page-aside {
        padding: 35px 0;
    }

    .patient-login-page-aside .login-aside-copy {
        margin: 0;
    }

    .patient-login-page-aside .login-aside-copy h1 {
        font-size: 3.4rem;
    }

    .patient-login-page-aside .login-aside-copy p {
        font-size: .86rem;
    }

    .login-feature-list {
        gap: 20px;
        margin-top: 34px;
    }

    .portal-layout {
        grid-template-columns: 1fr;
    }

    .portal-sidebar {
        display: flex;
        overflow-x: auto;
    }

    .portal-sidebar a {
        flex: 0 0 auto;
    }

    .contact-main-grid {
        grid-template-columns: 1fr;
    }

    .contact-side-column {
        grid-template-columns: 1fr 1fr;
    }

    .contact-map {
        height: auto;
        min-height: 310px;
    }

    .contact-form-card {
        grid-row: 1;
    }

    .contact-side-column {
        grid-row: 2;
    }

    .gallery-page-hero {
        min-height: 315px;
    }

    .gallery-page-hero>.container {
        align-items: flex-start;
        flex-direction: column;
        gap: 28px;
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .gallery-page-hero h1 {
        font-size: 3.5rem;
    }

    .gallery-hero-stats {
        width: min(470px, 100%);
        min-width: 0;
    }

    .gallery-page-grid,
    .gallery-loading-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 165px;
    }

    .gallery-media-card.gallery-card-8 {
        grid-row: auto;
    }

    .portal-navigation {
        display: block;
        overflow: visible;
    }

    .portal-sidebar-head,
    .portal-sidebar-future {
        display: none;
    }

    .portal-navigation nav {
        display: flex;
        gap: 4px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        padding: 7px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
    }

    .portal-navigation nav::-webkit-scrollbar {
        display: none;
    }

    .portal-navigation nav a {
        min-width: max-content;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .portal-navigation .portal-nav-arrow {
        display: none;
    }

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

    .doctor-directory-hero>.container {
        min-height: 300px;
    }

    .doctor-directory-hero-note {
        min-width: 235px;
    }

    .doctor-directory-grid,
    .doctor-directory-loading {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .doctor-profile-layout {
        grid-template-columns: 1fr;
    }

    .doctor-profile-sidebar {
        grid-template-columns: 1fr 1fr;
        position: static;
    }

    .doctor-profile-social {
        grid-column: 1 / -1;
    }

    .about-hero-inner {
        min-height: 360px;
        gap: 35px;
    }

    .about-hero-mark {
        width: 185px;
        min-height: 185px;
        flex-basis: 185px;
    }

    .about-section-nav a {
        padding-right: 15px;
        padding-left: 15px;
    }

    .about-story-layout {
        gap: 35px;
    }

    .about-story-visual,
    .about-story-visual>img {
        min-height: 390px;
        height: 390px;
    }

    .about-highlight-grid {
        grid-template-columns: 1fr;
    }

    .about-leader-layout {
        grid-template-columns: minmax(245px, .7fr) minmax(0, 1.3fr);
        gap: 38px;
    }

    .about-leader-photo {
        height: 285px;
    }

    .about-cta-card {
        padding: 32px;
    }

    .about-simple-extra-grid {
        grid-template-columns: 1fr;
    }

    .about-values-strip {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .service-directory-hero>.container {
        gap: 30px;
    }

    .service-directory-hero aside {
        min-width: 285px;
    }

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

    .service-detail-layout {
        grid-template-columns: 1fr;
    }

    .service-detail-sidebar {
        grid-template-columns: 1fr 1fr;
        position: static;
    }

    .service-all-link {
        grid-column: 1 / -1;
    }

    .service-related {
        grid-template-columns: 1fr;
    }

}

/* Short laptop viewport: @media (min-width: 768px) and (max-height: 850px) */
@media (min-width: 768px) and (max-height: 850px) {
    .patient-auth-layout .patient-login-section {
        min-height: calc(100dvh - 159px);
        padding: 70px 0;
    }

    .patient-auth-layout .patient-login-reference {
        padding: 70px 0;
    }

    .patient-auth-layout .patient-login-shell {
        min-height: min(570px, calc(100dvh - 156px));
        gap: 42px;
    }

    .patient-auth-layout .patient-login-page-aside {
        padding: 20px 0;
    }

    .patient-auth-layout .patient-login-page-aside .login-aside-copy h1 {
        font-size: clamp(3rem, 4.6vw, 4.2rem);
        margin: 16px 0 12px;
    }

    .patient-auth-layout .patient-login-page-aside .login-aside-copy p {
        font-size: .84rem;
        line-height: 1.55;
    }

    .patient-auth-layout .login-feature-list {
        gap: 13px;
        margin-top: 22px;
    }

    .patient-auth-layout .login-feature-list>div>span {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 11px;
    }

    .patient-auth-layout .login-feature-list small {
        margin-top: 2px;
    }

    .patient-auth-layout .patient-login-original-form {
        min-height: 0;
        padding: 30px 40px;
    }

    .patient-auth-layout .patient-login-form>p {
        margin-bottom: 18px;
    }

    .patient-auth-layout .patient-login-help {
        margin-top: 16px;
        padding-top: 14px;
    }

    .patient-auth-layout .patient-auth-switch {
        margin-top: 11px !important;
    }

    .patient-auth-layout .register-form {
        padding: 20px 34px;
    }

    .patient-auth-layout .register-form>p {
        margin-bottom: 12px;
    }

    .patient-auth-layout .register-form .row {
        --bs-gutter-y: .58rem;
    }

    .patient-auth-layout .register-form .patient-login-submit {
        margin-top: 12px;
    }

}

/* Mobile: @media (max-width: 767.98px) */
@media (max-width: 767.98px) {
    .page-hero {
        min-height: 285px;
    }

    .page-hero-inner {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .page-hero h1 {
        font-size: clamp(2.35rem, 12vw, 3.25rem);
    }

    .page-hero-copy>p {
        font-size: .76rem;
    }

    .legal-section {
        padding: 40px 0 55px;
    }

    .legal-document-header {
        padding: 22px 20px;
    }

    .legal-content {
        font-size: .75rem;
        padding: 27px 21px 35px;
    }

    .legal-empty {
        min-height: 280px;
        padding: 35px 22px;
    }

    .department-directory-hero>.container {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 27px;
        padding-top: 45px;
        padding-bottom: 45px;
    }

    .department-directory-hero h1 {
        font-size: clamp(2.45rem, 12vw, 3.35rem);
    }

    .department-directory-hero p {
        font-size: .76rem;
    }

    .department-directory-hero aside {
        width: 100%;
        min-width: 0;
    }

    .department-directory-content {
        padding-top: 52px;
        padding-bottom: 58px;
    }

    .department-browser-head {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
    }

    .department-browser-head h2 {
        font-size: 1.48rem;
    }

    .department-browser-head form {
        width: 100%;
    }

    .department-category-tabs {
        margin-right: -14px;
        padding-right: 14px;
    }

    .department-directory-grid,
    .department-loading-grid {
        grid-template-columns: 1fr;
    }

    .public-department-card {
        min-height: 285px;
    }

    .department-detail-hero>.container {
        min-height: 260px;
        padding-top: 34px;
        padding-bottom: 72px;
    }

    .department-detail-breadcrumb {
        margin-bottom: 23px;
    }

    .department-detail-hero-main {
        align-items: flex-start;
        gap: 16px;
    }

    .department-detail-hero-main>span {
        width: 62px;
        height: 62px;
        border-radius: 14px;
        font-size: 1.35rem;
    }

    .department-detail-hero-main h1 {
        font-size: 2.05rem;
        line-height: 1.12;
    }

    .department-detail-layout {
        gap: 14px;
        margin-top: -36px;
    }

    .department-detail-section {
        padding: 20px 17px;
    }

    .department-core-services {
        grid-template-columns: 1fr;
    }

    .department-care-path>div:last-child {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 15px 18px;
    }

    .department-care-path article {
        padding: 13px 0;
    }

    .department-care-path article:not(:last-child) {
        border-right: 0;
        border-bottom: 1px solid var(--hospital-border);
    }

    .department-detail-sidebar {
        grid-template-columns: 1fr;
    }

    .department-back-link {
        grid-column: auto;
    }

    .department-detail-content {
        padding-bottom: 55px;
    }

    #header-app {
        min-height: 143px;
    }

    #frontend-app {
        min-height: calc(100vh - 143px);
    }

    .patient-login-section {
        min-height: calc(100vh - 143px);
    }

    .site-header,
    .hospital-topbar,
    .hospital-brandbar,
    .hospital-navbar,
    .hospital-hero,
    .hospital-footer {
        width: 100%;
        max-width: 100%;
    }

    .topbar-info {
        flex: 1 1 auto;
        overflow: hidden;
    }

    .topbar-emergency {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .topbar-actions {
        flex: 0 0 auto;
    }

    .brandbar-inner>.hospital-brand {
        min-width: 0;
        max-width: calc(100% - 90px);
    }

    .hospital-brand>span:last-child {
        min-width: 0;
    }

    .hospital-brand strong,
    .hospital-brand small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hero-carousel-controls,
    .footer-bottom,
    .footer-bottom>div {
        max-width: 100%;
    }

    .section-space {
        padding: 68px 0;
    }

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

    .section-heading-row {
        align-items: center;
    }

    .hospital-topbar {
        height: 32px;
    }

    .topbar-info {
        gap: 10px;
    }

    .topbar-emergency {
        font-size: .59rem;
    }

    .hospital-brandbar {
        height: 64px;
    }

    .brandbar-inner {
        gap: 12px;
    }

    .hospital-brand strong {
        font-size: .94rem;
    }

    .hospital-brand small {
        max-width: 130px;
        font-size: .47rem;
    }

    .brand-mark {
        width: 31px;
        height: 31px;
    }

    .brandbar-actions {
        gap: 7px;
    }

    .brandbar-book-btn {
        width: 40px;
        height: 40px;
        min-height: 40px;
        justify-content: center;
        padding: 0;
        border-radius: 10px;
    }

    .brandbar-book-btn span {
        display: none;
    }

    .brandbar-book-btn i {
        margin: 0;
    }

    .header-login-btn span,
    .patient-account-copy {
        display: none;
    }

    .header-login-btn {
        width: 40px;
        height: 40px;
        min-height: 40px;
        color: var(--hospital-green);
        background: var(--hospital-mint-light);
        border: 1px solid #dcebe8;
        border-radius: 10px;
        justify-content: center;
        padding: 0;
    }

    .patient-account-trigger {
        min-height: 35px;
        padding: 2px 4px;
    }

    .patient-account-trigger>i {
        display: none;
    }

    .patient-account-menu {
        top: calc(100% + 10px);
        right: -42px;
    }

    .hospital-navbar {
        min-height: 47px;
    }

    .menu-container {
        min-height: 47px;
    }

    .hospital-navbar .navbar-collapse {
        top: 0;
        padding-left: 16px;
        padding-right: 16px;
    }

    .sticky-menu-spacer {
        height: 47px;
    }

    .is-scrolled .hospital-menu-bar {
        height: 47px;
    }

    .is-scrolled .hospital-navbar .navbar-collapse {
        top: 0;
    }

    .is-scrolled .sticky-book-btn span {
        display: inline;
    }

    .hospital-hero:not(.hero-banner-mode),
    .hospital-hero:not(.hero-banner-mode) .min-vh-hero {
        min-height: 550px;
    }

    .hero-banner-mode {
        min-height: 460px;
    }

    .hero-image {
        background-position: 68% center;
    }

    .hero-overlay {
        background: linear-gradient(90deg, rgba(3, 48, 43, .98) 0%, rgba(4, 61, 54, .91) 65%, rgba(4, 61, 54, .46));
    }

    .hospital-hero h1 {
        font-size: clamp(2.2rem, 10vw, 3.25rem);
    }

    .hospital-hero p {
        font-size: .88rem;
        max-width: 95%;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        margin-top: 22px;
    }

    .hero-contact-link>span {
        width: 36px;
        height: 36px;
    }

    .hero-carousel-controls {
        width: auto;
        right: 15px;
        bottom: 20px;
        left: 15px;
        padding-right: 0;
        padding-left: 0;
    }

    .hero-banner-mode .hero-carousel-controls {
        bottom: 16px;
    }

    .hero-dots,
    .hero-arrows {
        min-height: 42px;
        background: rgba(5, 48, 45, .68);
        border-radius: 24px;
        padding: 7px 11px;
        backdrop-filter: blur(7px);
    }

    .hero-arrows button {
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, .16);
    }

    .feature-strip {
        margin-top: 0;
        padding-top: 32px;
    }

    .feature-panel {
        min-height: 0;
    }

    .quick-care-label {
        top: -13px;
    }

    .feature-item {
        padding: 18px 15px;
    }

    .feature-icon {
        width: 36px;
        height: 36px;
    }

    .feature-item strong {
        font-size: .76rem;
    }

    .feature-item small {
        display: none;
    }

    .notice-label span {
        display: none;
    }

    .notice-label {
        padding-right: 12px;
    }

    .notice-copy a {
        display: none;
    }

    .notice-controls {
        margin-left: 7px;
    }

    .home-about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .home-about-visual {
        min-height: 380px;
    }

    .home-about-visual img {
        height: 380px;
    }

    .home-about-badge {
        right: 10px;
        bottom: 20px;
    }

    .home-about-copy h2 {
        font-size: 2.15rem;
    }

    .home-about-points {
        grid-template-columns: 1fr;
    }

    .department-grid {
        grid-template-columns: 1fr;
    }

    .department-card {
        min-height: 120px;
    }

    .departments-section {
        padding-top: 60px;
    }

    .appointment-section {
        padding-left: 0;
        padding-right: 0;
    }

    .appointment-section .container {
        padding: 0;
    }

    .appointment-shell {
        border-radius: 0;
        box-shadow: none;
    }

    .appointment-aside {
        padding: 38px 22px;
    }

    .appointment-aside h2 {
        font-size: 2.25rem;
    }

    .appointment-aside>p {
        font-size: .85rem;
    }

    .appointment-benefits {
        flex-direction: column;
        gap: 11px;
    }

    .appointment-form-wrap {
        padding: 29px 18px;
    }

    .appointment-head h3 {
        font-size: 1.25rem;
    }

    .appointment-actions {
        position: sticky;
        bottom: 0;
        z-index: 5;
        background: var(--theme-white);
        margin-left: -18px;
        margin-right: -18px;
        padding: 12px 18px 4px;
        box-shadow: 0 -10px 25px rgba(11, 54, 51, .07);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 0;
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }

    .stat-item span {
        font-size: .61rem;
    }

    .doctor-card-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 12px;
    }

    .doctor-card {
        min-width: 82%;
        scroll-snap-align: start;
    }

    .doctor-photo {
        height: 220px;
    }

    .home-service-grid {
        grid-template-columns: 1fr;
    }

    .home-service-card {
        min-height: 175px;
        padding: 22px 18px;
    }

    .testimonial-shell {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 32px;
        border-radius: 0;
        padding: 45px 21px;
    }

    .testimonial-intro h2 {
        font-size: 2.2rem;
    }

    .testimonial-card {
        padding: 33px 24px;
    }

    .testimonial-card blockquote {
        font-size: .94rem;
    }

    .testimonial-quote {
        right: 22px;
        top: 28px;
    }

    .gallery-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 220px 150px 150px;
    }

    .tile-1 {
        grid-column: 1 / 3;
        grid-row: auto;
    }

    .tile-4 {
        grid-column: 1 / 3;
    }

    .footer-main {
        padding-top: 55px;
        padding-bottom: 45px;
    }

    .footer-bottom {
        align-items: center;
        flex-direction: column;
        justify-content: center;
        gap: 9px;
        padding: 15px 0;
        text-align: center;
    }

    .footer-bottom>div {
        width: 100%;
        justify-content: center;
    }

    .footer-bottom>div>span {
        border-left: 0 !important;
        padding-left: 0 !important;
    }

    .back-to-top {
        width: 42px;
        height: 42px;
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
        font-size: .82rem;
    }

    .appointment-page-head {
        padding: 38px 16px 78px;
    }

    .appointment-page .appointment-section {
        margin-top: -36px;
    }

    .patient-login-section {
        padding: 35px 0;
    }

    .patient-login-card {
        display: block;
        min-height: 0;
        border-radius: 12px;
    }

    .patient-login-aside {
        display: none;
    }

    .patient-login-form {
        padding: 38px 24px;
    }

    .mobile-login-brand {
        color: var(--hospital-ink);
        display: flex;
        align-items: center;
        gap: 10px;
        font: 800 .95rem var(--frontend-heading-font-family);
        margin-bottom: 35px;
    }

    .mobile-login-brand .brand-mark {
        color: var(--theme-white);
    }

    .patient-login-form h2 {
        font-size: 1.55rem;
    }

    .register-form {
        padding: 32px 21px;
    }

    .patient-login-reference {
        padding: 24px 0;
    }

    .patient-login-shell {
        overflow: visible;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .patient-login-original-form {
        min-height: 0;
        border-radius: 12px;
    }

    .portal-section {
        padding: 35px 0 60px;
    }

    .portal-welcome {
        align-items: flex-start;
        padding: 22px;
    }

    .portal-welcome h1 {
        font-size: 1.25rem;
    }

    .portal-welcome p {
        display: none;
    }

    .portal-welcome .btn {
        position: absolute;
        left: 16px;
        right: 16px;
        margin-top: 80px;
    }

    .portal-welcome {
        margin-bottom: 70px;
    }

    .portal-stats {
        grid-template-columns: 1fr;
    }

    .portal-stats article {
        padding: 13px 15px;
    }

    .appointment-list {
        padding: 5px 14px;
    }

    .portal-appointment-card {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 14px 0;
    }

    .appointment-doctor-avatar {
        display: none;
    }

    .appointment-date-badge {
        width: 42px;
        height: 49px;
    }

    .appointment-record-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .appointment-record-meta {
        flex-direction: column;
        gap: 4px;
    }

    .appointment-record-meta span:last-child {
        word-break: break-all;
    }

    .portal-profile-form {
        padding: 18px;
    }

    .profile-avatar-editor>div:last-child {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .profile-avatar-editor .btn {
        margin-top: 5px;
    }

    .profile-avatar-error {
        margin-left: 0;
    }

    .portal-panel-head {
        padding: 16px;
    }

    .contact-hero {
        min-height: 275px;
    }

    .contact-hero>.container {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .contact-hero h1 {
        font-size: 2.45rem;
    }

    .contact-hero p {
        font-size: .78rem;
    }

    .contact-emergency-cta {
        width: 100%;
        min-width: 0;
        padding: 12px 14px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        margin-top: -25px;
        margin-bottom: 28px;
    }

    .contact-info-grid article {
        min-height: 93px;
        padding: 17px 19px;
    }

    .contact-info-grid article:not(:last-child)::after {
        width: auto;
        height: 1px;
        top: auto;
        right: 19px;
        bottom: 0;
        left: 19px;
        transform: none;
    }

    .contact-content {
        padding-bottom: 55px;
    }

    .contact-form-card {
        min-height: 0;
        border-radius: 12px;
        padding: 27px 20px;
    }

    .contact-form-card h2 {
        font-size: 1.4rem;
    }

    .contact-form-card textarea.form-control {
        min-height: 105px;
    }

    .contact-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-form-footer .btn {
        width: 100%;
        min-height: 48px;
    }

    .contact-side-column {
        grid-template-columns: 1fr;
    }

    .contact-directory-card {
        padding: 25px 20px;
    }

    .contact-map {
        min-height: 260px;
    }

    .contact-verification {
        grid-template-columns: minmax(0, 1fr) 32px 78px;
        padding: 9px;
    }

    .contact-success-state {
        min-height: 410px;
        padding: 25px 0;
    }

    .contact-success-note {
        width: 100%;
    }

    .contact-success-actions {
        width: 100%;
    }

    .contact-success-actions .btn {
        flex: 1 1 190px;
    }

    .gallery-page-hero {
        min-height: 0;
    }

    .gallery-page-hero>.container {
        gap: 24px;
        padding-top: 46px;
        padding-bottom: 40px;
    }

    .gallery-page-hero h1 {
        font-size: clamp(2.7rem, 14vw, 3.5rem);
        margin: 12px 0 14px;
    }

    .gallery-page-hero p {
        font-size: .74rem;
        line-height: 1.6;
    }

    .gallery-hero-stats {
        width: 100%;
    }

    .gallery-hero-stats article {
        min-height: 72px;
    }

    .gallery-hero-stats strong {
        font-size: 1.08rem;
    }

    .gallery-browser {
        padding-top: 45px;
    }

    .gallery-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 18px;
    }

    .gallery-toolbar h2 {
        font-size: 1.65rem;
    }

    .gallery-type-tabs {
        width: 100%;
        position: sticky;
        z-index: 4;
        top: 50px;
    }

    .gallery-type-tabs button {
        min-width: 0;
        flex: 1;
        padding: 0 7px;
    }

    .gallery-type-tabs button i {
        margin-right: 4px;
    }

    .gallery-album-browser {
        display: none;
    }

    .gallery-mobile-album-select {
        color: var(--hospital-ink);
        background: var(--theme-white);
        border: 1px solid var(--hospital-border);
        border-radius: 10px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        padding: 7px 8px 7px 13px;
        margin-bottom: 22px;
    }

    .gallery-mobile-album-select>span {
        color: var(--hospital-green);
        font-size: .61rem;
        font-weight: 800;
        white-space: nowrap;
    }

    .gallery-mobile-album-select>span i {
        margin-right: 5px;
    }

    .gallery-mobile-album-select select {
        width: 100%;
        min-width: 0;
        min-height: 38px;
        color: #405a56;
        background: var(--hospital-mint-light);
        border: 0;
        border-radius: 7px;
        outline: 0;
        font-size: .65rem;
        font-weight: 650;
        padding: 0 28px 0 10px;
    }

    .gallery-page-grid,
    .gallery-loading-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 145px;
        gap: 8px;
    }

    .gallery-media-card {
        border-radius: 8px;
    }

    .gallery-media-card.gallery-card-1 {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery-media-card.gallery-card-6 {
        grid-column: auto;
    }

    .gallery-media-card.gallery-card-8 {
        grid-row: auto;
    }

    .gallery-media-caption {
        right: 10px;
        bottom: 10px;
        left: 10px;
    }

    .gallery-media-caption strong {
        font-size: .67rem;
    }

    .gallery-play-button {
        width: 37px;
        height: 37px;
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    .gallery-view-button {
        width: 30px;
        height: 30px;
        top: 9px;
        right: 9px;
        opacity: 1;
        transform: none;
    }

    .gallery-empty-state {
        min-height: 280px;
    }

    .public-gallery-lightbox {
        align-items: center;
        padding: 58px 12px 18px;
    }

    .gallery-lightbox-content {
        max-height: calc(100dvh - 76px);
    }

    .gallery-lightbox-content>img {
        max-height: calc(100dvh - 154px);
    }

    .gallery-lightbox-caption {
        min-height: 60px;
        padding: 10px 12px;
    }

    .gallery-lightbox-close {
        width: 38px;
        height: 38px;
        top: 10px;
        right: 12px;
    }

    .gallery-lightbox-nav {
        width: 39px;
        height: 39px;
        top: auto;
        bottom: 86px;
        background: rgba(4, 48, 44, .82);
    }

    .gallery-lightbox-nav.previous {
        left: 20px;
    }

    .gallery-lightbox-nav.next {
        right: 20px;
    }

    .lightbox-fallback {
        min-height: 46vh;
    }

    .home-gallery-loading span {
        min-height: 100%;
        border-radius: 10px;
        background: #dfecea;
    }

    .portal-section {
        padding-top: 24px;
    }

    .portal-dashboard-hero {
        min-height: 0;
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
        padding: 22px 19px;
        margin-bottom: 14px;
    }

    .portal-dashboard-hero .portal-avatar {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }

    .portal-welcome-copy h1 {
        overflow-wrap: anywhere;
        font-size: 1.18rem;
        line-height: 1.3;
    }

    .portal-patient-meta small {
        font-size: .68rem;
    }

    .portal-hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .portal-dashboard-hero .btn {
        width: auto;
        min-width: 0;
        position: static;
        justify-content: center;
        margin: 0;
        text-align: center;
    }

    .portal-navigation {
        border-radius: 11px;
        margin-bottom: 14px;
    }

    .portal-navigation nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        overflow: visible;
        padding: 7px;
        touch-action: auto;
    }

    .portal-navigation nav a {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        gap: 8px;
        overflow: hidden;
        font-size: .69rem;
        padding: 9px 10px;
        white-space: normal;
    }

    .portal-navigation nav a:first-child {
        grid-column: 1 / -1;
    }

    .portal-navigation nav a>i:first-child {
        flex: 0 0 15px;
    }

    .portal-navigation nav a span {
        overflow-wrap: anywhere;
        line-height: 1.25;
    }

    .portal-page-heading {
        min-height: 0;
        gap: 14px;
        padding: 18px;
        margin-bottom: 14px;
    }

    .portal-page-heading h2 {
        font-size: 1.12rem;
        line-height: 1.3;
    }

    .portal-page-heading p {
        font-size: .72rem;
        line-height: 1.6;
    }

    .portal-page-icon {
        width: 42px;
        height: 42px;
    }

    .portal-stat-links {
        gap: 9px;
        margin-bottom: 14px;
    }

    .portal-stat-links>a,
    .portal-stat-links>.portal-stat-future {
        min-height: 72px;
        padding: 14px 15px;
    }

    .portal-stat-links strong {
        font-size: 1.32rem;
    }

    .portal-stat-links small {
        overflow: visible;
        font-size: .69rem;
        line-height: 1.35;
        text-overflow: clip;
        white-space: normal;
    }

    .portal-stat-future em {
        font-size: .48rem;
    }

    .portal-panel-head {
        align-items: flex-start;
        gap: 12px;
    }

    .portal-panel-head>div {
        min-width: 0;
    }

    .portal-panel-head h2 {
        font-size: .9rem;
        line-height: 1.35;
    }

    .portal-panel-head p {
        font-size: .68rem;
        line-height: 1.5;
    }

    .portal-panel-head>a,
    .patient-code,
    .portal-security-badge {
        flex: 0 0 auto;
    }

    .appointment-list {
        padding: 5px 14px;
    }

    .appointment-record-title h3 {
        font-size: .82rem;
    }

    .appointment-record-main>p {
        font-size: .67rem;
        line-height: 1.45;
    }

    .appointment-record-meta {
        font-size: .64rem;
        line-height: 1.4;
    }

    .appointment-record-meta span:last-child {
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .portal-future-section {
        padding: 19px 16px;
    }

    .portal-future-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .portal-future-heading h2 {
        font-size: 1rem;
        line-height: 1.4;
    }

    .portal-future-heading>small {
        max-width: none;
        font-size: .65rem;
        line-height: 1.55;
        text-align: left;
    }

    .portal-future-grid {
        grid-template-columns: 1fr;
    }

    .portal-future-grid article {
        gap: 12px;
        padding: 14px;
    }

    .portal-future-grid small {
        font-size: .5rem;
    }

    .portal-future-grid h3 {
        font-size: .78rem;
        line-height: 1.35;
    }

    .portal-future-grid p {
        font-size: .66rem;
        line-height: 1.55;
    }

    .portal-password-form {
        max-width: none;
        padding: 21px 18px;
    }

    .portal-security-note strong {
        font-size: .74rem;
    }

    .portal-security-note p {
        font-size: .65rem;
        line-height: 1.5;
    }

    .doctor-directory-hero>.container {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 28px;
        padding-top: 45px;
        padding-bottom: 45px;
    }

    .doctor-directory-hero h1 {
        font-size: clamp(2.45rem, 12vw, 3.35rem);
    }

    .doctor-directory-hero p {
        font-size: .76rem;
    }

    .doctor-directory-hero-note {
        width: 100%;
        min-width: 0;
    }

    .doctor-directory-browser {
        padding-top: 52px;
        padding-bottom: 58px;
    }

    .doctor-directory-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
    }

    .doctor-directory-toolbar h2 {
        font-size: 1.48rem;
    }

    .doctor-directory-toolbar p {
        font-size: .68rem;
        line-height: 1.5;
    }

    .doctor-directory-toolbar form {
        width: 100%;
    }

    .doctor-department-filter {
        margin-right: -14px;
        padding-right: 14px;
    }

    .doctor-directory-grid,
    .doctor-directory-loading {
        grid-template-columns: 1fr;
    }

    .public-doctor-photo,
    .doctor-directory-loading article>span {
        height: 285px;
    }

    .public-doctor-title h3 {
        font-size: 1rem;
    }

    .public-doctor-body>p {
        font-size: .68rem;
    }

    .public-doctor-actions .btn {
        min-height: 42px;
        font-size: .64rem;
    }

    .doctor-directory-pagination {
        overflow: hidden;
    }

    .doctor-directory-pagination>div {
        gap: 8px;
    }

    .doctor-directory-pagination nav {
        width: 100%;
        overflow-x: auto;
    }

    .doctor-directory-pagination .pagination {
        min-width: max-content;
    }

    .doctor-profile-hero {
        min-height: 220px;
    }

    .doctor-profile-hero>.container {
        min-height: 220px;
        padding-top: 30px;
        padding-bottom: 64px;
    }

    .doctor-profile-hero h1 {
        font-size: 2rem;
        line-height: 1.15;
    }

    .doctor-profile-layout {
        gap: 14px;
        margin-top: -35px;
    }

    .doctor-profile-identity-body {
        align-items: center;
        gap: 14px;
        padding: 0 16px 18px;
    }

    .doctor-profile-photo {
        width: 100px;
        height: 112px;
    }

    .doctor-profile-name h2 {
        font-size: 1.08rem;
    }

    .doctor-profile-name>p {
        font-size: .65rem;
    }

    .doctor-profile-section {
        padding: 19px 16px;
    }

    .doctor-profile-about {
        font-size: .68rem;
    }

    .doctor-profile-sidebar {
        grid-template-columns: 1fr;
    }

    .doctor-profile-social {
        grid-column: auto;
    }

    .doctor-profile-content {
        padding-bottom: 55px;
    }

    .header-patient-account .patient-account-trigger {
        min-height: 40px;
        gap: 6px;
        padding: 2px 0;
    }

    .header-patient-account .patient-account-avatar {
        width: 28px;
        height: 28px;
    }

    .header-patient-account .patient-account-copy {
        max-width: 82px;
        display: flex;
    }

    .header-patient-account .patient-account-copy small {
        font-size: .48rem;
    }

    .header-patient-account .patient-account-copy strong {
        font-size: .64rem;
    }

    .header-patient-account .patient-account-trigger>i {
        display: inline-block;
    }

    .header-patient-account .patient-account-menu {
        right: 0;
    }

    .patient-booking-profile {
        align-items: flex-start;
        padding: 13px 15px;
    }

    .patient-booking-profile>a {
        flex: 0 0 auto;
    }

    .patient-appointment-form {
        padding: 19px 15px 15px;
    }

    .patient-booking-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .patient-booking-actions .btn {
        width: 100%;
        min-height: 46px;
    }

    .patient-booking-success {
        min-height: 400px;
        padding: 28px 15px;
    }

    .patient-booking-numbers {
        grid-template-columns: 1fr;
    }

    .patient-booking-success-actions {
        width: 100%;
        flex-direction: column-reverse;
    }

    .patient-booking-success-actions .btn {
        width: 100%;
    }

    .portal-appointment-head {
        align-items: center;
    }

    .portal-appointment-head .portal-book-new {
        min-height: 34px;
    }

    .portal-appointment-filters {
        padding: 10px 14px;
    }

    .portal-filter-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 38px;
        gap: 6px;
    }

    .portal-filter-input {
        grid-column: 1 / -1;
    }

    .portal-filter-date {
        grid-column: 1;
    }

    .portal-filter-status {
        grid-column: 2 / 4;
    }

    .portal-filter-submit {
        grid-column: 1 / 3;
        min-height: 39px;
    }

    .portal-filter-clear {
        grid-column: 3;
        grid-row: 3;
    }

    .portal-history-filter-row {
        grid-template-columns: minmax(0, 1fr) auto 38px;
    }

    .portal-history-filter-row .portal-filter-date {
        grid-column: 1;
    }

    .portal-history-filter-row .portal-filter-submit {
        grid-column: 2;
        grid-row: 2;
    }

    .portal-history-filter-row .portal-filter-clear {
        grid-column: 3;
        grid-row: 2;
    }

    .portal-appointment-filters .form-control,
    .portal-appointment-filters .form-select {
        font-size: .72rem;
    }

    .portal-list-alert {
        margin: 14px;
    }

    .portal-appointment-footer {
        align-items: center;
        flex-wrap: wrap;
        padding: 10px 14px;
    }

    .portal-appointment-pagination {
        width: 100%;
        flex-basis: 100%;
        overflow: hidden;
    }

    .portal-appointment-pagination>div {
        justify-content: flex-start !important;
    }

    .portal-appointment-pagination nav {
        width: 100%;
        overflow-x: auto;
    }

    .portal-appointment-pagination .pagination {
        min-width: max-content;
        justify-content: flex-start !important;
    }

    .appointment-page-head {
        padding: 42px 18px 82px;
    }

    .appointment-page-head h1 {
        font-size: 2.15rem;
        line-height: 1.08;
        margin-top: 12px;
    }

    .appointment-page-head p {
        max-width: 330px;
        font-size: .78rem;
    }

    .appointment-page .appointment-section {
        margin-top: -38px;
    }

    .public-appointment-section {
        padding: 0 14px 58px;
    }

    .public-appointment-shell {
        gap: 14px;
    }

    .public-appointment-shell .appointment-aside,
    .public-appointment-form-wrap {
        border-radius: 16px;
    }

    .public-appointment-shell .appointment-aside h2 {
        font-size: 2.05rem;
    }

    .public-appointment-shell .need-help {
        margin-top: 24px;
    }

    .public-appointment-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .public-appointment-actions .btn {
        width: 100%;
        min-height: 48px;
    }

    .appointment-success-section {
        padding: 35px 0 55px;
    }

    .appointment-success-card {
        border-radius: 12px;
        padding: 26px 18px;
    }

    .appointment-success-heading h1 {
        font-size: 1.45rem;
    }

    .appointment-number-grid {
        grid-template-columns: 1fr;
    }

    .appointment-success-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .appointment-success-actions .btn {
        width: 100%;
    }

    .about-anchor-section {
        scroll-margin-top: 100px;
    }

    .about-hero-inner {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 30px;
        padding-top: 45px;
        padding-bottom: 45px;
    }

    .about-breadcrumb {
        margin-bottom: 22px;
    }

    .about-hero h1 {
        font-size: clamp(2.45rem, 12vw, 3.45rem);
    }

    .about-hero-copy>p {
        font-size: .76rem;
    }

    .about-hero-mark {
        width: 100%;
        min-height: 95px;
        flex: 0 0 auto;
        border-radius: 14px;
        display: grid;
        grid-template-columns: 50px auto 1fr;
        justify-content: start;
        gap: 11px;
        padding: 16px;
    }

    .about-hero-mark>span {
        width: 46px;
        height: 46px;
        grid-row: 1 / 3;
    }

    .about-hero-mark strong {
        align-self: end;
        font-size: 1.2rem;
        margin: 0;
    }

    .about-hero-mark small {
        align-self: start;
    }

    .about-section-nav-wrap {
        min-height: 56px;
        top: 47px;
    }

    .about-section-nav {
        min-height: 56px;
        justify-content: flex-start;
        padding-right: 4px;
        padding-left: 4px;
    }

    .about-section-nav a {
        font-size: .57rem;
        padding-right: 13px;
        padding-left: 13px;
    }

    .about-story-section {
        padding: 52px 0 62px;
    }

    .about-stat-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 48px;
    }

    .about-stat-grid article {
        min-height: 88px;
    }

    .about-stat-grid article:nth-child(2)::after {
        display: none;
    }

    .about-stat-grid article:nth-child(-n+2) {
        border-bottom: 1px solid var(--hospital-border);
    }

    .about-story-layout {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .about-story-visual,
    .about-story-visual>img {
        min-height: 330px;
        height: 330px;
    }

    .about-story-copy h2,
    .about-section-heading h2 {
        font-size: 2rem;
    }

    .about-highlight-grid {
        margin-top: 38px;
    }

    .about-purpose-section {
        padding: 62px 0;
    }

    .about-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 27px;
    }

    .about-section-heading>p {
        max-width: none;
    }

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

    .about-purpose-cards article {
        min-height: 245px;
        padding: 24px 22px;
    }

    .about-objective-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        margin-top: 36px;
    }

    .about-objective-grid {
        grid-template-columns: 1fr;
    }

    .about-leader-section {
        padding: 62px 0;
    }

    .about-leader-layout {
        grid-template-columns: 1fr;
        gap: 37px;
    }

    .about-leader-profile {
        width: min(390px, 100%);
        justify-self: center;
    }

    .about-leader-photo {
        height: 310px;
    }

    .about-leader-message>h2 {
        font-size: 2rem;
    }

    .about-cta-section {
        padding: 50px 0;
    }

    .about-cta-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 28px 22px;
    }

    .about-cta-card>div:last-child {
        width: 100%;
    }

    .about-cta-card .btn {
        flex: 1;
        justify-content: center;
    }

    .about-subpage-hero .about-hero-inner {
        min-height: 0;
    }

    .about-subpage-hero h1 {
        font-size: clamp(2.35rem, 11.5vw, 3.25rem);
    }

    .about-view-stage {
        scroll-margin-top: 99px;
    }

    .about-simple-extra-grid {
        margin-top: 38px;
    }

    .about-facility-panel,
    .about-promise-panel {
        padding: 19px 16px;
    }

    .about-values-strip {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 19px 16px;
    }

    .about-values-strip>div:first-child {
        border-right: 0;
        border-bottom: 1px solid var(--hospital-border);
        padding-right: 0;
        padding-bottom: 15px;
    }

    .about-goal-note {
        align-items: flex-start;
        padding: 17px;
    }

    .about-view-pagination {
        padding-top: 22px;
        padding-bottom: 32px;
    }

    .about-view-pagination>a {
        min-width: 0;
        flex: 1;
    }

    .service-directory-hero>.container {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 27px;
        padding-top: 45px;
        padding-bottom: 45px;
    }

    .service-directory-hero h1 {
        font-size: clamp(2.45rem, 12vw, 3.35rem);
    }

    .service-directory-hero p {
        font-size: .76rem;
    }

    .service-directory-hero aside {
        width: 100%;
        min-width: 0;
    }

    .service-directory-content {
        padding-top: 52px;
        padding-bottom: 58px;
    }

    .service-directory-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .service-directory-heading h2 {
        font-size: 1.48rem;
    }

    .service-directory-grid {
        grid-template-columns: 1fr;
    }

    .public-service-card {
        min-height: 290px;
    }

    .service-care-flow {
        grid-template-columns: 1fr;
    }

    .service-care-flow>div:last-child {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 14px 18px;
    }

    .service-care-flow article {
        padding: 12px 0;
    }

    .service-care-flow article:not(:last-child) {
        border-right: 0;
        border-bottom: 1px solid var(--hospital-border);
    }

    .service-detail-hero>.container {
        min-height: 270px;
        padding-top: 34px;
        padding-bottom: 45px;
    }

    .service-detail-breadcrumb {
        margin-bottom: 23px;
    }

    .service-detail-hero-main {
        align-items: flex-start;
        gap: 15px;
    }

    .service-detail-hero-main>span {
        width: 60px;
        height: 60px;
        border-radius: 14px;
        font-size: 1.3rem;
    }

    .service-detail-hero-main h1 {
        overflow-wrap: anywhere;
        font-size: 2.05rem;
    }

    .service-detail-hero-main p {
        font-size: .69rem;
    }

    .service-detail-nav-wrap {
        min-height: 56px;
        top: 47px;
    }

    .service-detail-nav {
        min-height: 56px;
        padding-right: 4px;
        padding-left: 4px;
    }

    .service-detail-nav a {
        padding-right: 12px;
        padding-left: 12px;
    }

    .service-detail-content {
        padding-top: 35px;
        padding-bottom: 55px;
    }

    .service-rich-content,
    .service-feature-section {
        padding: 19px 16px;
    }

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

    .service-guidance-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px 18px;
    }

    .service-guidance-card .btn {
        width: 100%;
    }

    .service-detail-sidebar {
        grid-template-columns: 1fr;
    }

    .service-all-link {
        grid-column: auto;
    }

    .service-related {
        gap: 15px;
        margin-top: 35px;
    }

    .service-related>div:last-child {
        grid-template-columns: 1fr;
    }

}

/* Small mobile: @media (max-width: 420px) */
@media (max-width: 420px) {
    .department-directory-hero aside {
        grid-template-columns: 44px 1fr 1fr;
        gap: 9px;
        padding: 13px;
    }

    .department-directory-hero aside>span {
        width: 42px;
        height: 42px;
    }

    .department-directory-hero aside strong {
        font-size: .9rem;
    }

    .department-search-box {
        grid-template-columns: 32px minmax(0, 1fr) auto;
    }

    .department-search-box button {
        padding: 0 11px;
    }

    .department-results-summary {
        align-items: flex-start;
    }

    .department-detail-hero-main {
        flex-direction: column;
    }

    .department-detail-hero-main h1 {
        font-size: 1.85rem;
    }

    .department-detail-section-head {
        align-items: flex-start;
    }

    .department-detail-quick {
        padding-right: 17px;
        padding-left: 17px;
    }

    .hospital-brand small {
        display: none;
    }

    .hospital-brand {
        gap: 8px;
    }

    .brandbar-inner {
        gap: 7px;
    }

    .brandbar-actions {
        flex: 0 0 auto;
        display: flex !important;
    }

    .header-login-btn {
        display: inline-flex;
    }

    .brandbar-actions .brandbar-book-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .hospital-hero h1 {
        font-size: 2.42rem;
        line-height: 1.06;
    }

    .hospital-hero h1 em {
        display: block;
        font-size: .9em;
    }

    .hospital-hero p {
        max-width: 100%;
    }

    .hero-actions {
        width: 100%;
    }

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

    .hero-carousel-controls {
        right: 12px;
        left: 12px;
    }

    .hero-dots {
        gap: 6px;
        padding-right: 9px;
        padding-left: 9px;
    }

    .hero-dots button.active {
        width: 22px;
    }

    .hero-arrows {
        gap: 7px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .hero-arrows>span {
        display: none;
    }

    .feature-item {
        gap: 8px;
    }

    .feature-item strong {
        font-size: .69rem;
    }

    .gallery-page-grid,
    .gallery-loading-grid {
        grid-auto-rows: 128px;
    }

    .gallery-media-card.gallery-card-1 {
        grid-row: span 2;
    }

    .gallery-media-caption small {
        font-size: .48rem;
    }

    .gallery-media-caption strong {
        font-size: .62rem;
    }

    .gallery-lightbox-caption>span {
        display: none;
    }

    .contact-hero h1 {
        font-size: 2.05rem;
    }

    .contact-emergency-cta strong {
        font-size: 1rem;
    }

    .contact-info-grid article {
        align-items: flex-start;
    }

    .contact-form-card {
        padding-right: 17px;
        padding-left: 17px;
    }

    .contact-verification {
        grid-template-columns: minmax(0, 1fr) 32px;
    }

    .contact-verification .form-control {
        width: 100%;
        grid-column: 1 / -1;
    }

    .contact-number-list>a {
        grid-template-columns: 36px minmax(0, 1fr) 26px;
        gap: 9px;
    }

    .portal-identity {
        align-items: flex-start;
    }

    .portal-patient-meta {
        flex-direction: column;
        gap: 3px;
    }

    .portal-hero-actions {
        grid-template-columns: 1fr;
    }

    .portal-navigation nav a {
        min-height: 42px;
        font-size: .66rem;
        padding: 8px 9px;
    }

    .portal-page-heading p {
        font-size: .69rem;
    }

    .portal-page-icon {
        display: none;
    }

    .portal-future-grid article {
        padding: 13px;
    }

    .portal-appointment-card {
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: start;
        gap: 10px;
        padding: 15px 0;
    }

    .appointment-date-badge {
        grid-row: 1 / 3;
    }

    .appointment-record-main {
        grid-column: 2;
    }

    .appointment-slip-link {
        min-width: 0;
        grid-column: 2;
        width: max-content;
        flex-direction: row;
        gap: 6px;
        padding: 6px 10px;
    }

    .appointment-record-title h3 {
        overflow: visible;
        white-space: normal;
    }

    .appointment-record-meta {
        gap: 5px;
    }

    .profile-actions .btn {
        width: 100%;
    }

    .portal-security-note {
        align-items: flex-start;
    }

    .doctor-directory-search {
        grid-template-columns: 32px minmax(0, 1fr) auto;
    }

    .doctor-directory-search button {
        padding: 0 11px;
    }

    .public-doctor-photo,
    .doctor-directory-loading article>span {
        height: 240px;
    }

    .doctor-results-head {
        align-items: flex-start;
    }

    .doctor-profile-identity-body {
        align-items: flex-start;
        flex-direction: column;
    }

    .doctor-profile-photo {
        margin-top: -58px;
    }

    .doctor-profile-name {
        width: 100%;
        padding-top: 0;
    }

    .doctor-schedule-list article {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .doctor-schedule-list article>p {
        grid-column: 2;
    }

    .doctor-profile-book-card {
        padding-right: 17px;
        padding-left: 17px;
    }

    .header-patient-account .patient-account-copy {
        max-width: 68px;
    }

    .portal-appointment-pagination .page-item.first,
    .portal-appointment-pagination .page-item.last {
        display: none;
    }

    .about-hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .about-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .about-section-nav a {
        min-height: 56px;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .about-section-nav a i {
        font-size: .63rem;
    }

    .about-story-visual,
    .about-story-visual>img {
        min-height: 285px;
        height: 285px;
    }

    .about-story-visual>div {
        right: 15px;
        bottom: 15px;
        left: 15px;
    }

    .about-objective-grid article {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .about-objective-grid article>i {
        display: none;
    }

    .about-leader-profile {
        padding: 18px 18px 0;
    }

    .about-leader-photo {
        height: 270px;
    }

    .about-leader-message blockquote {
        padding-left: 15px;
    }

    .about-cta-card>div:last-child {
        flex-direction: column;
    }

    .about-cta-card .btn {
        width: 100%;
    }

    .about-subpage-hero h1 {
        font-size: 2.05rem;
        line-height: 1.08;
    }

    .about-facility-list,
    .about-values-strip>div:last-child {
        grid-template-columns: 1fr;
    }

    .about-view-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .about-view-pagination>span {
        display: none;
    }

    .about-view-pagination>a,
    .about-view-pagination>a.next {
        width: 100%;
        justify-content: flex-start;
        margin: 0;
        text-align: left;
    }

    .about-view-pagination>a.next {
        flex-direction: row-reverse;
        justify-content: space-between;
    }

    .about-view-pagination>a.next span {
        text-align: right;
    }

    .service-directory-hero aside {
        grid-template-columns: 44px 1fr 1fr;
        gap: 9px;
        padding: 13px;
    }

    .service-directory-hero aside>span {
        width: 42px;
        height: 42px;
    }

    .service-detail-hero-main {
        flex-direction: column;
    }

    .service-detail-hero-main h1 {
        font-size: 1.8rem;
    }

    .service-rich-text table {
        display: block;
        overflow-x: auto;
    }

}

/* Reduced motion accessibility: @media (prefers-reduced-motion: reduce) */
@media (prefers-reduced-motion: reduce) {

    .hospital-navbar *,
    .mobile-menu-backdrop,
    .back-to-top {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

}

/* Print: @media print */
@media print {

    .site-header,
    .hospital-home>section:not(.appointment-section),
    .appointment-aside,
    .hospital-footer,
    .appointment-actions,
    .back-to-top {
        display: none !important;
    }

    .appointment-section {
        padding: 0;
        background: var(--theme-white);
    }

    .appointment-shell {
        display: block;
        box-shadow: none;
    }

    .appointment-form-wrap {
        padding: 30px;
    }

    .booking-success {
        min-height: auto;
    }

    .appointment-success-body .site-header,
    .appointment-success-body .hospital-footer,
    .appointment-success-heading,
    .appointment-success-actions {
        display: none !important;
    }

    .appointment-success-page,
    .appointment-success-section {
        min-height: 0;
        background: var(--theme-white);
        padding: 0;
    }

    .appointment-success-card {
        max-width: none;
        border: 0;
        box-shadow: none;
        padding: 0;
    }

    .appointment-number-grid {
        margin-top: 0;
    }

}