* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #1e293b;
    background: #f8fafc;
    line-height: 1.6;
}

main {
    background: #ffffff;
}

.container {
    width: min(1140px, 92%);
    margin: 0 auto;
}

.container-wide {
    width: min(1280px, 94%);
    margin: 0 auto;
}

a {
    color: #1d4ed8;
}

.content-prose h1,
.content-prose h2,
.content-prose h3,
.content-prose h4 {
    color: #0b3a5b;
    margin-top: 0;
}

.content-prose p {
    margin: 0 0 0.85rem;
}

.content-prose ul {
    padding-left: 1.2rem;
}

.flash-wrap {
    margin-top: 1rem;
}

.flash {
    padding: 0.7rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.6rem;
    background: #dcfce7;
    border: 1px solid #86efac;
}

.flash.error {
    background: #fee2e2;
    border-color: #fca5a5;
}

.top-bar {
    background: #047a78;
    color: #e2e8f0;
    font-size: 0.82rem;
}

.top-bar-wrap {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #dbe5ef;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-wrap {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 62px;
    gap: 1.2rem;
}

.brand a {
    color: #0b3a5b;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
}

.brand p,
.brand h1,
.brand h2,
.brand h3 {
    display: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 180px;
    flex-shrink: 0;
}

.brand img {
    display: block;
    height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.brand-fallback {
    white-space: nowrap;
}

.main-nav {
    margin-left: 0.45rem;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    padding: 0.55rem 0.6rem;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 0.28rem;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #0f766e;
    border-radius: 2px;
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Robust menu reset for django CMS output in edit/preview/live modes */
.site-header .main-nav ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-header .main-nav > ul,
.site-header .main-nav > ul.menu-root,
.site-header .main-nav > div > ul,
.site-header .main-nav > div > div > ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem;
}

.site-header .main-nav li {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.main-nav a {
    color: #0f172a;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    padding: 0.45rem 0.5rem;
    border-radius: 4px;
    text-decoration: none;
}

.main-nav a:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.site-header .main-nav > ul > li > a,
.site-header .main-nav > ul.menu-root > li > a,
.site-header .main-nav > div > ul > li > a,
.site-header .main-nav > div > div > ul > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
}

.site-header .main-nav li.selected > a,
.site-header .main-nav li.ancestor > a {
    background: #0f766e;
    color: #ffffff;
}

/* Dropdown styling for children pages if used */
.site-header .main-nav li ul {
    display: none !important;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 210px;
    background: #ffffff;
    border: 1px solid #dbe5ef;
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    padding: 0.35rem !important;
    margin: 0 !important;
    z-index: 20;
}

.site-header .main-nav li:hover > ul {
    display: block !important;
}

.site-header .main-nav li ul ul {
    left: calc(100% + 8px);
    top: 0;
}

.site-header .main-nav li ul li {
    list-style: none !important;
}

.site-header .main-nav li ul a {
    display: block;
    border-radius: 4px;
}

.hero {
    padding: 0;
}

.hero-copy h1,
.hero-copy h2 {
    color: #ffffff;
    margin-top: 0;
}

.hero-media img,
.hero-media iframe,
.hero-media video {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    min-height: 420px;
    max-height: 520px;
    object-fit: cover;
}

.hero-cta p {
    margin: 0.8rem 0 0;
}

.hero-media.has-slider {
    position: relative;
}

.hero-media-slides > :not(script):not(template) {
    margin: 0;
}

.hero-media-wrap {
    position: relative;
    background: #0f172a;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.58) 0%, rgba(15, 23, 42, 0.36) 35%, rgba(15, 23, 42, 0.15) 100%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding-bottom: 2.2rem;
    z-index: 2;
}

.hero-copy {
    max-width: 540px;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
}

.hero-copy .content-prose p,
.hero-copy .content-prose li,
.hero-copy .content-prose a {
    color: #ecfeff;
}

.hero-copy .content-prose h1,
.hero-copy .content-prose h2,
.hero-copy .content-prose h3 {
    color: #ffffff !important;
    text-shadow: none;
}

.hero-copy .btn-primary {
    background: #0f766e;
    border: 1px solid rgba(236, 254, 255, 0.6);
}

.hero-slider-controls {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.15rem;
    pointer-events: none;
    z-index: 4;
}

.hero-slider-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #0b2948;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
}

.hero-slider-btn svg {
    width: 1.05rem;
    height: 1.05rem;
    display: block;
}

.hero-slider-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    z-index: 3;
}

.hero-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.hero-slider-dot.active {
    background: #ffffff;
}

/* Ensure header always stays above hero slider overlays */
.site-header {
    position: sticky;
    top: 0 !important;
    z-index: 10000 !important;
    background: #ffffff !important;
}

.hero-media-wrap {
    position: relative;
    z-index: 0;
}

/* Inner pages: rich page banner */
.page-banner {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: #ffffff;
    border-bottom: none;
}

.page-banner--rich {
    background: linear-gradient(105deg, #ecfdf5 0%, #f8fafc 45%, #e0f2fe 100%);
}

.page-banner-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 40%, rgba(15, 118, 110, 0.14), transparent 42%),
        radial-gradient(circle at 88% 25%, rgba(37, 99, 235, 0.12), transparent 38%);
}

.page-banner-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(10rem, 0.8fr);
    gap: 1.5rem;
    align-items: center;
    padding: 2rem 0 2.25rem;
}

.page-banner-content {
    padding-left: 1rem;
    border-left: 5px solid #0f766e;
}

.page-banner-decor {
    display: none;
}

.page-banner-bc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin: 0 0 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.page-banner-bc a {
    color: #0f766e;
    text-decoration: none;
}

.page-banner-bc a:hover {
    color: #0b5e58;
    text-decoration: underline;
}

.page-banner-bc-sep {
    color: #94a3b8;
}

.page-banner-bc-current {
    color: #64748b;
}

.page-banner-visual {
    position: relative;
    min-height: 9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-banner-orb {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    color: #0f766e;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    font-size: 1.35rem;
}

.page-banner-orb--1 {
    width: 4.5rem;
    height: 4.5rem;
    left: 18%;
    top: 8%;
    color: #2563eb;
}

.page-banner-orb--2 {
    width: 3.5rem;
    height: 3.5rem;
    right: 12%;
    top: 22%;
    color: #0f766e;
    font-size: 1.1rem;
}

.page-banner-orb--3 {
    width: 5rem;
    height: 5rem;
    left: 42%;
    bottom: 0;
    color: #7c3aed;
    font-size: 1.5rem;
}

body.has-page-motion .page-banner-orb {
    animation:
        banner-orb-float 4.5s ease-in-out infinite alternate,
        banner-orb-glow 6s ease-in-out infinite alternate;
}

body.has-page-motion .page-banner-orb--1 {
    animation-delay: 0s, 0s;
}

body.has-page-motion .page-banner-orb--2 {
    animation-delay: 0.5s, 1s;
}

body.has-page-motion .page-banner-orb--3 {
    animation-delay: 1s, 2s;
}

@keyframes banner-orb-float {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(0, -10px, 0) scale(1.04);
    }
}

@keyframes banner-orb-glow {
    0% {
        box-shadow: 0 12px 28px rgba(37, 99, 235, 0.15);
    }
    50% {
        box-shadow: 0 16px 36px rgba(15, 118, 110, 0.28);
    }
    100% {
        box-shadow: 0 12px 28px rgba(124, 58, 237, 0.18);
    }
}

.page-banner-bc,
.page-banner-title,
.page-banner-lead {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition:
        opacity 0.55s ease,
        transform 0.55s ease;
}

.page-banner.is-visible .page-banner-bc {
    opacity: 1;
    transform: none;
    transition-delay: 0.05s;
}

.page-banner.is-visible .page-banner-title {
    opacity: 1;
    transform: none;
    transition-delay: 0.15s;
}

.page-banner.is-visible .page-banner-lead {
    opacity: 1;
    transform: none;
    transition-delay: 0.28s;
}

.page-banner-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.85rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.12;
    color: var(--brand-heading, #0b2948);
}

.page-banner-lead {
    max-width: 40rem;
}

.page-banner-lead p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.6;
    color: #475569;
}

.page-banner-lead h1,
.page-banner-lead h2,
.page-banner-lead h3 {
    display: none;
}

.page-banner-lead p + p {
    margin-top: 0.45rem;
}

.page-banner-wave {
    position: relative;
    z-index: 1;
    height: 2.5rem;
    margin-top: -1px;
    background: url("/static/images/page-banner-wave.svg") no-repeat center bottom / 100% 100%;
}

.page-inner .page-banner + .section,
.page-contact .page-banner + .section {
    padding-top: 2.25rem;
}

.page-facilities .inner-content-section,
.page-doctors .doctors-page-section {
    padding-top: 2.25rem;
}


.section-tight .content-prose p:last-child {
    margin-bottom: 0;
}

.section {
    padding: 4rem 0;
}

.section-tight {
    padding: 2rem 0;
}

.section.alt {
    background: #f8fafc;
}

.section-head h1,
.section-head h2,
.section-head h3 {
    margin-top: 0;
    color: #ffffff;
}

.stats-band {
    background: #0b3a5b;
    color: #f8fafc;
}

.departments {
    background: #ffffff;
}

.choose-us {
    background: #ffffff;
}

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

.appointment-box {
    background: #0f766e;
    color: #ecfeff;
    border-radius: 16px;
    padding: 1.5rem 2rem;
}

.appointment-box > :not(script):not(template) {
    max-width: 720px;
}

.appointment-box h2,
.appointment-box h3,
.appointment-box h4,
.appointment-box p,
.appointment-box li,
.appointment-box a {
    color: #ecfeff !important;
}

.appointment-box div,
.appointment-box span,
.appointment-box p,
.appointment-box li,
.appointment-box h1,
.appointment-box h2,
.appointment-box h3,
.appointment-box h4,
.appointment-box h5,
.appointment-box h6 {
    background: transparent !important;
    border-color: transparent !important;
    color: #ecfeff !important;
}

.appointment-box h2,
.appointment-box h3,
.appointment-box h4 {
    margin: 0 0 0.55rem;
}

.appointment-box p {
    margin: 0 0 0.7rem;
    font-size: 0.95rem;
}

/* Normalize pasted/inline editor styles inside CTA block */
.appointment-box span,
.appointment-box strong,
.appointment-box em {
    background: transparent !important;
    color: inherit !important;
}

.appointment-box .btn-primary {
    background: #ffffff;
    color: #0f766e !important;
    font-weight: 600;
}

.appointment-box .btn-primary:hover {
    background: #e6fffb;
}

.site-footer {
    background: #047a78;
    color: #e5f8f7;
    padding: 2.2rem 0 1rem;
}

.footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
    gap: 1.6rem;
    margin-bottom: 1rem;
}

.footer-grid h1,
.footer-grid h2,
.footer-grid h3,
.footer-grid h4 {
    color: #ffffff;
    font-size: 0.95rem;
    margin: 0 0 0.65rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid rgba(125, 211, 252, 0.45);
    display: inline-block;
}

.footer-grid p,
.footer-grid li,
.footer-grid a {
    color: #eaf8f7;
    font-size: 0.78rem;
    line-height: 1.7;
    text-decoration: none;
}

.footer-grid ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.footer-menu-auto ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu-auto li {
    list-style: none;
}

.footer-menu-list a {
    display: inline-block;
    padding: 0.05rem 0;
}

.footer-hours-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.32rem 0;
    border-bottom: 1px solid rgba(224, 255, 252, 0.2);
    font-size: 0.78rem;
}

.footer-hours-list li:last-child {
    border-bottom: 0;
}

.footer-hours-list .hours-value {
    color: #a5f3fc;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.footer-contact-line {
    margin: 0 0 0.55rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.55;
}

.footer-contact-line i {
    color: #a5f3fc;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.footer-contact-line a {
    color: #eaf8f7;
}

.footer-contact-line a:hover {
    color: #ffffff;
}

.social-links,
.footer-social-icons,
.footer-col-social {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-social-column h4 {
    margin-bottom: 0.35rem;
}

.social-links a,
.footer-social-link {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.social-links a:hover,
.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.14);
    text-decoration: none;
}

.footer-grid a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(224, 255, 252, 0.45);
    padding-top: 1rem;
    font-size: 0.75rem;
    color: #d7f3f1;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom > :not(script):not(template) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.auto-grid {
    display: grid;
    gap: 1.25rem;
}

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

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

.auto-grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.auto-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.85rem;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.05);
}

.auto-card img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 0.55rem;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Stat cards: default for light backgrounds (inner pages, alt sections) */
.stat-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 1.7rem;
    font-weight: 700;
    color: #0f766e;
}

.stat-card .stat-label {
    font-size: 0.95rem;
    color: #334155;
}

/* Homepage stats strip only: light text on dark band */
.stats-band .stat-card {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #f8fafc;
}

.stats-band .stat-card .stat-value {
    color: #f8fafc;
}

.stats-band .stat-card .stat-label {
    color: rgba(248, 250, 252, 0.92);
}

.department-card h3,
.doctor-card h3,
.news-card h3 {
    margin: 0.1rem 0 0.2rem;
    color: #0b3a5b;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.testimonial-card blockquote {
    margin: 0 0 1rem;
    font-style: italic;
    color: #0f172a;
}

.testimonial-card h4 {
    margin: 0;
}

.news-card .meta {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.muted {
    color: #64748b;
}

.btn-link {
    font-weight: 600;
    text-decoration: none;
}

/* Card footer links (news, departments, doctors) */
.card-action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: auto;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    color: #0f766e !important;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.card-action-link:hover {
    background: #ccfbf1;
    border-color: #5eead4;
    color: #0b5e58 !important;
}

.card-action-link i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

body.has-page-motion .card-action-link:hover i {
    transform: translateX(3px);
}

/* Interactive cards: hover colour reveal (doctors, departments, news) */
.interactive-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.interactive-card-hit {
    position: absolute;
    inset: 0;
    z-index: 5;
    border-radius: inherit;
    text-indent: -9999px;
    overflow: hidden;
}

.interactive-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem 1.1rem;
    background: linear-gradient(
        180deg,
        rgba(15, 118, 110, 0.05) 0%,
        rgba(11, 41, 72, 0.88) 48%,
        rgba(15, 118, 110, 0.95) 100%
    );
    color: #ecfeff;
    pointer-events: none;
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.interactive-card-overlay .doctor-bio,
.interactive-card-overlay .department-summary,
.interactive-card-overlay .news-summary {
    margin: 0 0 0.65rem;
    color: rgba(236, 254, 255, 0.95);
    font-size: 0.86rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.interactive-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
    font-size: 0.85rem;
    align-self: flex-start;
    transition: transform 0.25s ease, background 0.25s ease;
}

.interactive-card .doctor-card-media img,
.interactive-card .department-card-media img,
.interactive-card .news-card-media img {
    transition: transform 0.45s ease;
}

@media (hover: hover) {
    .interactive-card-overlay {
        opacity: 0;
        transform: translateY(12%);
    }

    .interactive-card:hover,
    .interactive-card:focus-within {
        transform: translateY(-6px);
        border-color: #5eead4 !important;
        box-shadow: 0 18px 40px rgba(15, 118, 110, 0.22);
    }

    .interactive-card:hover .interactive-card-overlay,
    .interactive-card:focus-within .interactive-card-overlay {
        opacity: 1;
        transform: translateY(0);
    }

    .interactive-card:hover .doctor-card-media img,
    .interactive-card:hover .department-card-media img,
    .interactive-card:hover .news-card-media img,
    .interactive-card:focus-within .doctor-card-media img,
    .interactive-card:focus-within .department-card-media img,
    .interactive-card:focus-within .news-card-media img {
        transform: scale(1.06);
    }

    .interactive-card:hover .interactive-card-arrow,
    .interactive-card:focus-within .interactive-card-arrow {
        transform: translateX(4px);
        background: rgba(255, 255, 255, 0.32);
    }
}

@media (hover: none) {
    .interactive-card-overlay {
        position: relative;
        opacity: 1;
        transform: none;
        background: linear-gradient(180deg, #f0fdfa, #e0f2fe);
        color: #334155;
        padding: 0.75rem 1rem 1rem;
    }

    .interactive-card-overlay .doctor-bio,
    .interactive-card-overlay .department-summary,
    .interactive-card-overlay .news-summary {
        color: #475569;
    }

    .interactive-card-arrow {
        background: #ccfbf1;
        border-color: #99f6e4;
        color: #0f766e;
    }
}

/* Doctors listing page */
.doctors-page-section {
    padding: 2.5rem 0 3.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ecfdf5 100%);
}

.doctors-page-intro {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2rem;
    color: #64748b;
    font-size: 0.95rem;
}

.doctors-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.35rem;
}

.doctors-page-grid .doctor-card.interactive-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.doctors-page-grid .doctor-card-media {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(160deg, #e0f2fe, #ccfbf1);
}

.doctors-page-grid .doctor-card-media img {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
    min-height: 100%;
}

.doctors-page-grid .doctor-card-body {
    position: relative;
    z-index: 2;
    padding: 0.9rem 1rem 1rem;
    background: #ffffff;
}

.doctors-page-grid .doctor-card h3 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.3;
    color: var(--brand-heading);
}

.doctors-page-grid .doctor-designation {
    margin: 0;
    font-size: 0.82rem;
}

/* Homepage & grids: vertical department/news cards */
.department-card.interactive-card .department-card-body,
.news-card.interactive-card .news-card-body {
    position: relative;
    z-index: 2;
    padding: 0.85rem 1rem 1rem;
    background: #ffffff;
}

.department-card.interactive-card .department-card-body h3,
.news-card.interactive-card .news-card-body h3 {
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    font-size: 1rem;
}

.page-home .stats-band .stat-card {
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.page-home .stats-band .stat-card:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #99f6e4;
    transform: translateY(-3px);
}

.page-home .home-departments .department-card.interactive-card:hover,
.page-home .home-news .news-card.interactive-card:hover {
    border-color: #38bdf8 !important;
}

.btn-primary {
    display: inline-block;
    background: #0f766e;
    color: #ffffff;
    padding: 0.62rem 1rem;
    border-radius: 4px;
    border: 0;
    text-decoration: none;
    cursor: pointer;
}

aside .auto-card,
aside .content-prose {
    margin-bottom: 1rem;
}

.hospital-contact-form {
    display: grid;
    gap: 0.45rem;
}

.hospital-contact-form input,
.hospital-contact-form textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    padding: 0.5rem 0.6rem;
    font: inherit;
}

.hospital-contact-form label {
    font-size: 0.86rem;
    font-weight: 600;
    color: #334155;
}

.contact-layout aside {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
}

.doctor-profile-grid {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 1.8rem;
    align-items: start;
}

.doctor-profile-photo img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
    border-radius: 16px;
    border: 3px solid #0f766e;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.25);
}

.doctor-card--showcase:has(.doctor-card-hit) {
    cursor: pointer;
}

.doctor-extra-section:not(:has(p)):not(:has(li)):not(:has(h2)):not(:has(h3)) {
    display: none;
}

.doctor-profile-content h2,
.doctor-profile-content h3 {
    margin-top: 0;
}

/* Modern theme refresh + inner banner polish */
:root {
    --brand-primary: #0f766e;
    --brand-primary-dark: #0b5e58;
    --brand-accent: #2563eb;
    --brand-ink: #0f172a;
    --brand-heading: #0b2948;
    --surface-soft: #f3f8ff;
    --surface-soft-2: #eef5ff;
    --home-warm: #fff7ed;
    --home-mint: #ecfdf5;
    --home-sky: #e0f2fe;
    --home-coral: #fff1f2;
    --home-violet: #ede9fe;
}

body {
    color: #1e293b;
    background: #f8fbff;
}

a {
    color: var(--brand-accent);
}

.top-bar {
    background: linear-gradient(90deg, #0d9488, #0f766e);
    color: #ecfeff;
}

.site-header {
    border-bottom: 1px solid #d6e3f5;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.brand a,
.brand p,
.brand h1,
.brand h2,
.brand h3 {
    color: var(--brand-heading);
}

.main-nav a:hover {
    background: #e8f1ff;
    color: #1d4ed8;
}

.site-header .main-nav li.selected > a,
.site-header .main-nav li.ancestor > a {
    background: var(--brand-primary);
    color: #ffffff;
}

/* inner-hero removed — use .page-banner */


.section.alt {
    background: linear-gradient(180deg, var(--surface-soft), var(--surface-soft-2));
}

.section-head h1,
.section-head h2,
.section-head h3,
.content-prose h1,
.content-prose h2,
.content-prose h3,
.content-prose h4 {
    color: var(--brand-heading);
}

.stats-band {
    background: linear-gradient(90deg, #0b2948, #0f3f6b);
}

.appointment-box {
    background: linear-gradient(120deg, var(--brand-primary-dark), var(--brand-primary));
}

.btn-primary {
    background: var(--brand-primary);
}

.btn-primary:hover {
    background: var(--brand-primary-dark);
}

.auto-card {
    border: 1px solid #d7e4f5;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.site-footer {
    background: linear-gradient(120deg, #0b2948, #0f766e);
    color: #e6fffb;
}

/* Homepage: colourful, image-forward layout */
.page-home {
    overflow-x: hidden;
}

.page-home > section {
    position: relative;
}

.section-bg-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.55;
    background: url("/static/images/home-dots.svg") repeat;
    background-size: 120px 120px;
}

.section-bg-decor-warm {
    background-color: var(--home-warm);
    background-image:
        url("/static/images/home-dots.svg"),
        radial-gradient(ellipse 70% 55% at 100% 0%, rgba(251, 191, 36, 0.18), transparent 55%),
        radial-gradient(ellipse 55% 45% at 0% 100%, rgba(15, 118, 110, 0.12), transparent 50%);
    background-size: 120px 120px, auto, auto;
}

.section-bg-decor-teal {
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(94, 234, 212, 0.35), transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 80%, rgba(56, 189, 248, 0.25), transparent 50%),
        linear-gradient(180deg, #f0fdfa 0%, #e0f2fe 100%);
}

.section-bg-decor-sky {
    background:
        url("/static/images/home-dots.svg"),
        linear-gradient(135deg, #e0f2fe 0%, #ecfdf5 45%, #fff7ed 100%);
    background-size: 120px 120px, auto;
}

.section-bg-decor-mint {
    background:
        radial-gradient(ellipse 60% 50% at 85% 15%, rgba(167, 243, 208, 0.45), transparent 55%),
        linear-gradient(180deg, #ecfdf5, #f8fafc);
}

.section-eyebrow {
    display: inline-block;
    margin: 0 0 0.35rem;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #ccfbf1, #dbeafe);
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-head-home {
    text-align: center;
    margin-bottom: 1.75rem;
    max-width: 44rem;
    margin-left: auto;
    margin-right: auto;
}

.section-head-home h2 {
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    margin: 0;
    position: relative;
    padding-bottom: 0.65rem;
}

.section-head-home h2::after {
    content: "";
    display: block;
    width: 4rem;
    height: 4px;
    margin: 0.55rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-primary), #38bdf8, #a78bfa);
}

.section-home {
    padding: 3rem 0;
}

.section-home .section-head {
    text-align: center;
    margin-bottom: 1.5rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.section-home .section-head h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 800;
    letter-spacing: 0.02em;
}

/* Hero overlay — detailed styles in home-hero.css for .home-hero--showcase */

/* Hero title size — see home-hero.css */

.page-home .hero-cta .btn-primary {
    padding: 0.75rem 1.35rem;
    font-size: 1rem;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Stats strip — overlaps hero (fine-tuned in home-hero.css) */
.page-home .home-stats {
    margin-top: -5.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 4;
    padding: 0 0 2rem;
    background: transparent;
}

.page-home .home-stats .container {
    background: linear-gradient(120deg, #0b2948 0%, #0f766e 50%, #2563eb 100%);
    border-radius: 18px;
    padding: 1.35rem 1.25rem 1.2rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22);
}

.page-home .home-stats .auto-grid.cols-4 {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1rem;
}

.page-home .home-stats .auto-grid.cols-4 > :not(script):not(template) {
    flex: 1 1 calc(25% - 0.75rem);
    max-width: calc(25% - 1rem);
    min-width: min(100%, 220px);
    display: flex;
}

.page-home .home-stats .auto-grid.cols-4 .stat-card {
    width: 100%;
}

.page-home .home-stats .section-bg-decor {
    display: none;
}

.page-home .stats-band .stat-card {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    backdrop-filter: blur(4px);
}

.page-home .stat-icon {
    display: block;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.35rem;
    color: #99f6e4;
    margin-bottom: 0.35rem;
    line-height: 1;
}

.page-home .stats-band .stat-card:nth-child(1) .stat-icon::before {
    content: "\f0f9";
}

.page-home .stats-band .stat-card:nth-child(2) .stat-icon::before {
    content: "\f0fa";
}

.page-home .stats-band .stat-card:nth-child(3) .stat-icon::before {
    content: "\f0f0";
}

.page-home .stats-band .stat-card:nth-child(4) .stat-icon::before {
    content: "\f004";
}

.page-home .stats-band .stat-card .stat-value {
    font-size: 1.85rem;
}

/* About */
.page-home .home-about {
    background: var(--home-warm);
    padding: 4rem 0 3.25rem;
}

.page-home .home-about .container {
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.page-home .about-panel {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem 1.65rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    height: 100%;
}

.page-home .about-panel-primary {
    border-top: 4px solid var(--brand-primary);
}

.page-home .about-panel-media {
    background: linear-gradient(160deg, #ffffff 0%, #ecfdf5 100%);
    border-top: 4px solid #38bdf8;
    padding: 1rem;
    overflow: hidden;
}

.page-home .about-panel-media img,
.page-home .about-panel-media picture img {
    display: block;
    width: 100%;
    margin: 0 0 1rem;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.page-home .about-panel h2,
.page-home .about-panel h3 {
    color: var(--brand-heading);
}

/* Departments band */
.page-home .home-departments {
    padding: 3.5rem 0;
    background: #ffffff;
}

.page-home .home-departments .container {
    position: relative;
    z-index: 1;
}

.page-home .home-departments .auto-grid {
    gap: 1.35rem;
}

.page-home .home-departments .department-card {
    border: 1px solid #bae6fd;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
}

/* Directors */
.page-home .home-directors {
    background: linear-gradient(180deg, #ffffff, var(--home-violet));
    padding: 3.25rem 0;
}

.page-home .home-directors .doctor-card {
    border: 1px solid #c4b5fd;
    box-shadow: 0 14px 30px rgba(91, 33, 182, 0.1);
}

.page-home .home-directors .doctor-card-media {
    background: linear-gradient(160deg, #ede9fe, #e0f2fe);
}

/* Why choose us */
.page-home .home-choose-us {
    padding: 3.5rem 0;
    background: #ffffff;
}

.page-home .home-choose-us .container {
    position: relative;
    z-index: 1;
}

.page-home .home-choose-media {
    background: linear-gradient(145deg, #ccfbf1 0%, #bae6fd 50%, #fde68a 100%);
    border-radius: 18px;
    padding: 0.75rem;
    border: 2px solid rgba(15, 118, 110, 0.2);
    box-shadow: 0 18px 40px rgba(15, 118, 110, 0.15);
    min-height: 16rem;
    overflow: hidden;
}

.page-home .home-choose-media img,
.page-home .home-choose-media picture img,
.page-home .home-choose-media video,
.page-home .home-choose-media iframe {
    display: block;
    width: 100%;
    max-height: none;
    min-height: 14rem;
    margin: 0;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.page-home .choose-us-copy {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.35rem 1.5rem;
    border: 1px solid #d1fae5;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.page-home .choose-us-copy li::before {
    color: #2563eb;
}

/* Mission / vision */
.page-home .home-mission-vision {
    background: var(--home-sky);
    padding: 3rem 0;
}

.page-home .mission-panel {
    background: linear-gradient(145deg, #ffffff, #ecfdf5);
    border-color: #99f6e4;
}

.page-home .vision-panel {
    background: linear-gradient(145deg, #ffffff, #ede9fe);
    border-color: #c4b5fd;
}

.page-home .vision-panel::before {
    background: linear-gradient(90deg, #7c3aed, #2563eb);
}

/* Testimonials */
.page-home .home-testimonials {
    padding: 3.5rem 0;
    background: #ffffff;
}

.page-home .home-testimonials .container {
    position: relative;
    z-index: 1;
}

.page-home .testimonial-card:nth-child(odd) {
    background: linear-gradient(145deg, #ffffff, #ecfdf5);
    border-color: #6ee7b7;
}

.page-home .testimonial-card:nth-child(even) {
    background: linear-gradient(145deg, #ffffff, #e0f2fe);
    border-color: #7dd3fc;
}

.page-home .testimonial-card:nth-child(odd) .testimonial-quote-mark {
    color: #0f766e;
}

.page-home .testimonial-card:nth-child(even) .testimonial-quote-mark {
    color: #2563eb;
}

/* News */
.page-home .home-news {
    padding: 3.5rem 0 4rem;
    background: linear-gradient(180deg, var(--home-coral) 0%, #fff7ed 40%, #f8fafc 100%);
}

.page-home .home-news .news-card {
    border-color: #fecdd3;
    box-shadow: 0 14px 32px rgba(225, 29, 72, 0.08);
}

.page-home .home-news .news-card-media {
    background: linear-gradient(135deg, #ffe4e6, #e0f2fe);
}

.page-contact .contact-layout .auto-card {
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.page-contact .inner-map-panel {
    min-height: 12rem;
    background: linear-gradient(135deg, #ecfdf5, #e0f2fe);
}

.page-home .home-departments .department-card h3 {
    text-transform: none;
    letter-spacing: 0;
    font-size: 1.02rem;
}

@media (max-width: 900px) {
    .page-home .home-stats {
        margin-top: -2rem;
        margin-bottom: 0.25rem;
    }

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

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

/* Two-column blocks: short text + tall media — align center, cap image height */
.section-home .grid-2 {
    align-items: center;
    gap: 1.35rem;
}

.choose-us-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1.35rem;
    align-items: center;
}

.choose-us-copy ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.choose-us-copy li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.65rem;
    font-size: 0.95rem;
    line-height: 1.45;
}

.choose-us-copy li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #0f766e;
    position: absolute;
    left: 0;
    top: 0.48rem;
    font-size: 0.75rem;
}

.choose-us-copy li + li {
    border-top: 1px solid #e8f0f8;
}

.choose-us-media {
    background: linear-gradient(145deg, #f0fdfa 0%, #e0f2fe 100%);
    border: 1px solid #b8e8df;
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.choose-us-media p {
    margin: 0 0 0.5rem;
}

.choose-us-media p:last-child {
    margin-bottom: 0;
}

.choose-us-media strong {
    color: var(--brand-heading);
    font-size: 1.02rem;
}

.choose-us-media img,
.choose-us-media picture img,
.choose-us-media video,
.choose-us-media iframe {
    display: block;
    width: 100%;
    max-height: 13.5rem;
    margin-top: 0.65rem;
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

/* Directors: flex so 1 profile does not leave a huge empty column */
.directors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.directors-grid .doctor-card {
    flex: 1 1 min(100%, 22rem);
    max-width: 36rem;
    padding: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(9.5rem, 11.5rem) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
}

.directors-grid .doctor-card:only-child {
    max-width: 40rem;
    margin: 0 auto;
}

.directors-grid .doctor-card-media {
    background: linear-gradient(160deg, #e0f2fe, #ccfbf1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.directors-grid .doctor-card-media img {
    margin: 0;
    width: 100%;
    height: 100%;
    min-height: 11rem;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 0;
}

.doctor-card-photo-placeholder {
    width: 100%;
    min-height: 11rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f766e;
    font-size: 2.5rem;
    opacity: 0.55;
}

.directors-grid .doctor-card-body {
    position: relative;
    z-index: 2;
    padding: 1.15rem 1.25rem 1.1rem;
    background: #ffffff;
}

.directors-grid .doctor-card.interactive-card .interactive-card-overlay {
    left: min(11.5rem, 38%);
}

@media (max-width: 900px) {
    .directors-grid .doctor-card.interactive-card .interactive-card-overlay {
        left: 0;
    }
}

.directors-grid .doctor-card h3 {
    font-size: 1.05rem;
    text-transform: none;
    letter-spacing: 0;
    margin: 0 0 0.35rem;
}

.doctor-designation {
    margin: 0;
    color: #0f766e;
    font-weight: 600;
    font-size: 0.88rem;
}

/* Mission & vision panels (TextPlugin content) — height follows text only */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
}

.mission-panel,
.vision-panel {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.2rem 1.35rem 1.1rem;
    border: 1px solid #d7e4f5;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    position: relative;
    overflow: hidden;
    height: auto;
    align-self: start;
}

.mission-panel::before,
.vision-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0f766e, #38bdf8);
}

.vision-panel::before {
    background: linear-gradient(90deg, #2563eb, #0f766e);
}

.mission-panel::after,
.vision-panel::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    font-size: 1.35rem;
    color: rgba(15, 118, 110, 0.18);
}

.mission-panel::after {
    content: "\f0f1";
}

.vision-panel::after {
    content: "\f06e";
}

.mission-panel h3,
.vision-panel h3,
.mission-panel h2,
.vision-panel h2 {
    margin: 0 0 0.65rem;
    padding-right: 2rem;
    font-size: 1.15rem;
    color: var(--brand-heading);
}

.mission-panel p,
.vision-panel p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.testimonial-card {
    position: relative;
    padding: 1.5rem 1.35rem 1.25rem 1.5rem;
    background: linear-gradient(145deg, #ffffff 0%, #f0fdfa 100%);
    border-color: #b8e8df;
    min-height: 10rem;
    display: flex;
    flex-direction: column;
}

.testimonial-quote-mark {
    display: block;
    font-size: 2.75rem;
    line-height: 1;
    color: #0f766e;
    opacity: 0.35;
    font-family: Georgia, "Times New Roman", serif;
    margin-bottom: 0.15rem;
}

.testimonial-card blockquote {
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
    font-style: normal;
    font-size: 0.98rem;
    line-height: 1.65;
    color: #334155;
    flex: 1;
}

.testimonial-author {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid #d1fae5;
}

.testimonial-author h4 {
    margin: 0 0 0.15rem;
    font-size: 0.95rem;
    color: var(--brand-heading);
}

.testimonial-author .muted {
    margin: 0;
    font-size: 0.82rem;
}

/* News & events */
.news-carousel {
    position: relative;
}

.news-carousel.is-paged {
    padding: 0 3.1rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: 1.25rem;
}

.news-carousel.is-paged .news-grid {
    grid-template-columns: repeat(var(--news-cols, 3), minmax(0, 1fr));
}

.news-carousel .is-news-hidden {
    display: none !important;
}

.news-carousel-btn {
    position: absolute;
    top: 42%;
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #0b2948;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.news-carousel-btn.prev {
    left: 0;
}

.news-carousel-btn.next {
    right: 0;
}

.news-carousel-btn svg {
    width: 1.05rem;
    height: 1.05rem;
    display: block;
}

.news-carousel-btn:disabled {
    opacity: 0.38;
    cursor: default;
}

.news-carousel-btn[hidden],
.news-carousel-status[hidden] {
    display: none;
}

.news-carousel-status {
    margin: 0.85rem 0 0;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #64748b;
}

.news-card,
.department-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover,
.department-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.news-card-media,
.department-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
}

.news-card-media img,
.department-card-media img {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    aspect-ratio: auto;
    object-fit: cover;
}

.news-card-media-placeholder,
.department-card-media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #0f766e;
    font-size: 2.2rem;
    opacity: 0.55;
}

.news-date-badge {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    display: inline-block;
    background: rgba(255, 255, 255, 0.94);
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.news-card-body,
.department-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem 1rem 1.1rem;
}

.news-card h3,
.department-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.35;
}

.news-summary,
.department-summary {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.55;
    flex: 1;
}

/* Legacy card-action-link kept for text blocks (about panels, etc.) */

@media (max-width: 900px) {
    .page-inner .inner-story-section .inner-side-media {
        position: static;
    }

    .site-header {
        top: 0;
    }

    .top-bar {
        display: none;
    }

    .grid-2,
    .doctor-profile-grid,
    .auto-grid.cols-2,
    .auto-grid.cols-3,
    .auto-grid.cols-4 {
        grid-template-columns: 1fr;
    }

    .directors-grid .doctor-card {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .directors-grid .doctor-card-media img,
    .doctor-card-photo-placeholder {
        min-height: 14rem;
        aspect-ratio: 16 / 10;
    }

    .choose-us-layout,
    .mission-vision-grid,
    .testimonials-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .about-pillars .intro-cols-3,
    .about-pillars {
        grid-template-columns: 1fr;
    }

    .doctors-page-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .choose-us-media img,
    .choose-us-media picture img {
        max-height: 16rem;
    }

    .hero-media img,
    .hero-media iframe,
    .hero-media video {
        min-height: 320px;
    }

    .hero-overlay {
        align-items: flex-end;
        padding-bottom: 1.2rem;
    }

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

    .nav-toggle {
        display: inline-flex;
    }

    .site-header .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 0.35rem);
        left: 0.75rem;
        right: 0.75rem;
        z-index: 40;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
        padding: 0.75rem;
    }

    .site-header.nav-open .main-nav {
        display: block;
    }

    .site-header .nav-wrap {
        position: relative;
        flex-wrap: nowrap;
    }

    .site-header .main-nav > ul,
    .site-header .main-nav > ul.menu-root,
    .site-header .main-nav > div > ul,
    .site-header .main-nav > div > div > ul {
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start;
        gap: 0.15rem;
    }

    .site-header .main-nav li ul {
        position: static;
        box-shadow: none;
        border: 1px dashed #cbd5e1;
        margin-top: 0.25rem !important;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom > :not(script):not(template) {
        justify-content: center;
        text-align: center;
    }
}

/* --- Page motion & inner page polish --- */

@keyframes hero-drift {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-12px, 8px, 0);
    }
}

/* Scroll reveal: only hide when motion JS has initialized */
.reveal,
.reveal-from-top {
    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
    transition-delay: var(--reveal-delay, 0s);
}

body.has-page-motion .reveal:not(.is-visible):not(.motion-visible),
body.has-page-motion .reveal-from-top:not(.is-visible):not(.motion-visible) {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
}

.reveal-from-top {
    transform: translate3d(0, -18px, 0);
}

.reveal.is-visible,
.reveal-from-top.is-visible {
    opacity: 1;
    transform: none;
}

body.has-page-motion .site-header {
    animation: header-enter 0.55s ease both;
}

@keyframes header-enter {
    from {
        opacity: 0;
        transform: translate3d(0, -10px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

body.has-page-motion .auto-card,
body.has-page-motion .mission-panel,
body.has-page-motion .vision-panel,
body.has-page-motion .appointment-box {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

body.has-page-motion .auto-card:hover,
body.has-page-motion .mission-panel:hover,
body.has-page-motion .vision-panel:hover {
    transform: translate3d(0, -4px, 0);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

/* Inner pages: full-width featured image */
.inner-feature-section {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}

.inner-feature-media {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
    line-height: 0;
}

.inner-feature-media img,
.inner-feature-media picture,
.inner-feature-media picture img,
.inner-feature-media figure,
.inner-feature-media .cms-plugin img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    margin: 0 !important;
    float: none !important;
    border-radius: 16px;
    aspect-ratio: 21 / 8;
    object-fit: cover;
}

/* About hospital: three narrative columns */
.inner-about-section {
    padding: 2.75rem 0;
}

.about-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.about-pillars .intro-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    grid-column: 1 / -1;
}

.about-pillars > p,
.about-pillars .intro-cols-3 > p,
.about-pillars > div > p {
    margin: 0;
    padding: 1.35rem 1.25rem 1.35rem 1.4rem;
    background: #ffffff;
    border-radius: 12px;
    border-left: 4px solid var(--brand-primary, #0f766e);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
    line-height: 1.65;
    color: #334155;
}

.about-pillars > p strong,
.about-pillars .intro-cols-3 > p strong {
    display: block;
    color: var(--brand-heading, #0b2948);
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.about-pillars .stat-card {
    text-align: center;
    border-left: none;
    padding: 1.25rem 1rem;
}

/* Key highlights + side image */
.inner-highlights-section {
    padding: 2.75rem 0;
}

.inner-highlights-layout {
    align-items: start;
    gap: 2rem;
}

.highlights-panel,
.page-facilities .inner-side-media,
.page-inner .inner-side-media {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.15rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    max-width: 100%;
}

.page-inner .inner-story-section .inner-side-media {
    position: sticky;
    top: 5.5rem;
}

.inner-side-media img,
.inner-side-media picture,
.inner-side-media figure {
    display: block;
    width: 100%;
    margin: 0 0 0.9rem;
    border-radius: 12px;
    overflow: hidden;
}

.inner-side-media img,
.inner-side-media picture img {
    aspect-ratio: 16 / 10;
    height: 13.5rem;
    object-fit: cover;
    object-position: center 40%;
    box-shadow: none;
}

.highlights-panel h2,
.highlights-panel h3 {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 800;
    color: var(--brand-heading, #0b2948);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.highlights-panel h2::after,
.highlights-panel h3:first-of-type::after {
    content: "";
    display: block;
    width: 3rem;
    height: 3px;
    margin-top: 0.4rem;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand-primary, #0f766e), #5eead4);
}

.inner-side-media h2,
.inner-side-media h3 {
    margin: 0.15rem 0 0.45rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand-heading, #0b2948);
    line-height: 1.3;
}

.inner-side-media ul + h2,
.inner-side-media ul + h3 {
    margin-top: 1.15rem;
}

.highlights-panel.content-prose ul,
.highlights-panel ul,
.inner-side-media ul,
.inner-side-media .content-prose ul {
    list-style: none;
    margin: 0 0 0.2rem;
    padding: 0;
    max-width: 100%;
}

.highlights-panel.content-prose ul li,
.highlights-panel ul li,
.inner-side-media ul li,
.inner-side-media .content-prose ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    position: relative;
    padding: 0.72rem 0.1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.highlights-panel.content-prose ul li:last-child,
.highlights-panel ul li:last-child,
.inner-side-media ul li:last-child,
.inner-side-media .content-prose ul li:last-child {
    border-bottom: none;
}

.highlights-panel.content-prose ul li::before,
.highlights-panel ul li::before,
.inner-side-media ul li::before,
.inner-side-media .content-prose ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: static;
    flex: 0 0 1rem;
    width: 1rem;
    height: 1rem;
    margin-top: 0.22rem;
    line-height: 1rem;
    text-align: center;
    color: var(--brand-primary, #0f766e);
    font-size: 0.72rem;
}

/* Services / extra lists at bottom of inner pages */
.inner-cards-section {
    padding: 2.5rem 0 3rem;
}

.inner-cards-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.75rem 2rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.inner-cards-wrap .auto-grid {
    gap: 1rem;
}

.inner-cards-wrap > h2,
.inner-cards-wrap > h3,
.inner-cards-wrap .content-prose > h2,
.inner-cards-wrap .content-prose > h3 {
    margin: 1.35rem 0 0.55rem;
    color: var(--brand-heading, #0b2948);
}

.inner-cards-wrap > h2:first-child,
.inner-cards-wrap > h3:first-child,
.inner-cards-wrap .content-prose > h2:first-child,
.inner-cards-wrap .content-prose > h3:first-child {
    margin-top: 0;
}

.inner-cards-wrap .content-prose > ul,
.inner-cards-wrap > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.25rem;
    row-gap: 0.15rem;
    margin: 0 0 0.35rem;
    padding: 0;
    list-style: none;
}

.inner-cards-wrap .content-prose > ul li,
.inner-cards-wrap > ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0;
    padding: 0.38rem 0;
    color: #334155;
    line-height: 1.45;
    list-style: none;
}

.inner-cards-wrap .content-prose > ul li::before,
.inner-cards-wrap > ul li::before {
    content: "";
    flex: 0 0 0.42rem;
    width: 0.42rem;
    height: 0.42rem;
    margin-top: 0.42rem;
    border-radius: 50%;
    background: var(--brand-primary, #0f766e);
}

@media (max-width: 700px) {
    .inner-cards-wrap .content-prose > ul,
    .inner-cards-wrap > ul {
        grid-template-columns: 1fr;
    }
}

.inner-intro-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

@media (min-width: 900px) {
    .inner-intro-panel.intro-cols-3,
    .content-prose.intro-cols-3 {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
        align-items: start;
    }

    .inner-intro-panel.intro-cols-3 > :not(script):not(template),
    .content-prose.intro-cols-3 > :not(script):not(template) {
        margin: 0;
    }
}

.inner-media-frame {
    position: relative;
    min-height: 16rem;
    border-radius: 12px;
    padding: 0.75rem;
    background:
        linear-gradient(145deg, rgba(240, 253, 250, 0.95), rgba(248, 250, 252, 0.98)),
        url("/static/images/care-accent.svg") no-repeat center 18% / 96px auto;
    border: 1px solid #cbd5e1;
}

.inner-media-frame img,
.inner-media-frame picture img,
.inner-map-panel img,
.inner-map-panel picture img,
.choose-us-media img,
.choose-us-media picture img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
    object-fit: cover;
}

body.has-page-motion .inner-media-frame img,
body.has-page-motion .choose-us-media img {
    transition: transform 0.35s ease;
}

body.has-page-motion .inner-media-frame:hover img,
body.has-page-motion .choose-us-media:hover img {
    transform: scale(1.02);
}

.inner-map-panel {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.inner-split-layout {
    align-items: start;
    gap: 2rem;
}

/* Sitewide polish */
.content-prose h2 {
    letter-spacing: 0.01em;
}

.section:not(.inner-hero):not(.hero):not(.stats-band) {
    position: relative;
}

.btn-primary {
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.has-page-motion .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15, 118, 110, 0.35);
}

.site-header {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.96);
}

.content-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
    .interactive-card:hover,
    .interactive-card:focus-within {
        transform: none;
    }

    .interactive-card-overlay {
        opacity: 1;
        transform: none;
    }

    .reveal,
    .reveal-from-top,
    .page-banner-title,
    .page-banner-lead {
        opacity: 1;
        transform: none;
        transition: none;
    }

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

    .page-banner-visual {
        min-height: 6rem;
        display: none;
    }

    body.has-page-motion .page-banner-decor,
    body.has-page-motion .site-header {
        animation: none;
    }

    body.has-page-motion .auto-card:hover,
    body.has-page-motion .mission-panel:hover,
    body.has-page-motion .vision-panel:hover {
        transform: none;
    }
}
