/* ====================================================================
   HIBA HOSPITAL — Calm Editorial UI
   Light palette · Generous whitespace · Subtle motion
   ==================================================================== */

/* ====== Design Tokens ====== */
:root {
    /* Blue (primary — healthcare) */
    --blue-50:  #F4F8FC;
    --blue-100: #E0EBF5;
    --blue-200: #C4DAEA;
    --blue-300: #93B8D5;
    --blue-400: #5E91B8;
    --blue-500: #2E6E96;
    --blue-600: #1E5278;
    --blue-700: #103A56;
    --blue-800: #0A2638;

    /* Gold (accent only) */
    --gold-50:  #FAF4E4;
    --gold-100: #F2E6C2;
    --gold-200: #E5CE91;
    --gold-300: #D4B265;
    --gold-400: #B89446;
    --gold-500: #8E6F2D;
    --gold-600: #5F4A1B;

    --gold: var(--gold-400);
    --gold-deep: var(--gold-500);

    /* Surface (cool light) */
    --paper:    #FFFFFF;
    --ivory:    #F4F8FC;
    --cream:    #E6EFF8;
    --cream-2:  #D6E3EF;
    --line:     #D6E3EF;
    --line-soft:#EAF1F8;

    /* Text (cool, blue-tinted) */
    --ink:      #103A56;
    --text:     #0F2436;
    --text-2:   #3D5A75;
    --text-3:   #7A93AB;
    --text-4:   #B0C2D4;

    /* Type */
    --f-sans:    'Tajawal', system-ui, -apple-system, sans-serif;

    /* Motion */
    --ease:     cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --t-1: 220ms;
    --t-2: 440ms;
    --t-3: 700ms;

    /* Shadow (very subtle) */
    --sh-1: 0 1px 2px rgba(42,35,23,0.04);
    --sh-2: 0 4px 16px rgba(42,35,23,0.05);
    --sh-3: 0 14px 40px rgba(42,35,23,0.08);
    --sh-gold: 0 14px 40px rgba(184,148,70,0.20);

    /* Layout */
    --container: 1280px;
    --gutter: clamp(20px, 4vw, 48px);
    --nav-h: 80px;
    --topbar-h: 38px;

    /* Radii */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ====== Reset ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--f-sans);
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-2);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-1) var(--ease); }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--gold-200); color: var(--ink); }

/* Focus */
:focus-visible {
    outline: 2px solid var(--gold-400);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ====== Typography ====== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-sans);
    color: var(--text);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.75rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); }
h3 { font-size: clamp(1.375rem, 2.2vw, 1.875rem); }
h4 { font-size: 1.1875rem; }
h5 { font-size: 1.0625rem; }

p { color: var(--text-2); }

.italic-accent {
    font-weight: 700;
    color: var(--gold-deep);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-deep);
}
.eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: currentColor;
}
.eyebrow--center {
    justify-content: center;
}
.eyebrow--center::after {
    content: '';
    width: 32px;
    height: 1px;
    background: currentColor;
}

.lead {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-2);
    max-width: 58ch;
}

/* ====== Layout ====== */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--paper { background: var(--paper); }
.section--ivory { background: var(--ivory); }
.section--cream { background: var(--cream); }

.section-head {
    max-width: 700px;
    margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 { margin-bottom: 16px; }

/* ====== Buttons ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all var(--t-2) var(--ease);
    white-space: nowrap;
    line-height: 1;
    min-height: 48px;
}
.btn i { font-size: 1.05em; }
.btn-sm { padding: 10px 20px; font-size: 0.8125rem; min-height: 40px; }
.btn-lg { padding: 17px 34px; font-size: 1rem; min-height: 54px; }

.btn-primary {
    background: var(--ink);
    color: var(--ivory);
}
.btn-primary:hover {
    background: var(--gold-deep);
    transform: translateY(-2px);
    box-shadow: var(--sh-gold);
    color: var(--ivory);
}

.btn-gold {
    background: var(--gold);
    color: var(--ink);
}
.btn-gold:hover {
    background: var(--gold-deep);
    color: var(--ivory);
    transform: translateY(-2px);
    box-shadow: var(--sh-gold);
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn-outline:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--ivory);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    padding-inline: 8px;
}
.btn-ghost:hover { color: var(--gold-deep); }

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--ink);
    font-size: 0.9375rem;
    padding-block: 8px;
    position: relative;
}
.btn-link::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    inset-inline-end: 100%;
    bottom: 2px;
    height: 1px;
    background: currentColor;
    transition: inset-inline-end var(--t-2) var(--ease);
}
.btn-link:hover::after { inset-inline-end: 0; }
.btn-link i { transition: transform var(--t-2) var(--ease); }
.btn-link:hover i { transform: translateX(-6px); }

/* ====== Topbar (slim, subtle) ====== */
.topbar {
    background: var(--cream);
    color: var(--text-2);
    font-size: 0.8125rem;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line-soft);
}
.topbar a { color: var(--text); }
.topbar a:hover { color: var(--gold-deep); }
.topbar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.topbar-info { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.topbar-info > * { display: inline-flex; align-items: center; gap: 8px; }
.topbar-info i { color: var(--gold-deep); font-size: 0.875rem; }
.topbar-social { display: flex; gap: 4px; }
.topbar-social a {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition: all var(--t-1) var(--ease);
}
.topbar-social a:hover { background: var(--ink); color: var(--ivory); }

/* ====== Navbar (light, refined) ====== */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 248, 240, 0.92);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: all var(--t-2) var(--ease);
}
.nav.is-scrolled {
    background: rgba(255,255,255,0.95);
    border-bottom-color: var(--line-soft);
    box-shadow: var(--sh-1);
}
.nav-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    height: var(--nav-h);
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-brand img {
    height: 50px;
    width: auto;
    object-fit: contain;
}
.nav-brand-fallback {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gold);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
}
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-brand-name { font-size: 1rem; font-weight: 800; color: var(--text); }
.nav-brand-tag  { font-size: 0.6875rem; color: var(--text-3); font-weight: 500; margin-top: 2px; }

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    list-style: none;
}
.nav-menu li { position: relative; }
.nav-menu .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-2);
    transition: all var(--t-1) var(--ease);
}
.nav-menu .nav-link:hover { color: var(--blue-600); background: var(--blue-50); }
.nav-menu .nav-link.is-active { color: var(--ink); }
.nav-menu .nav-link.is-active::after {
    content: '';
    position: absolute;
    inset-inline-start: 50%;
    bottom: 0;
    transform: translateX(50%);
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--gold);
}
[dir="ltr"] .nav-menu .nav-link.is-active::after { transform: translateX(-50%); }

.dropdown-icon {
    font-size: 0.65em;
    opacity: 0.55;
    transition: transform var(--t-2) var(--ease);
}
.has-dropdown:hover .dropdown-icon,
.has-dropdown.is-open .dropdown-icon { transform: rotate(180deg); opacity: 1; }

/* ====== Dropdown panel ====== */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    inset-inline-end: 0;
    min-width: 260px;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    padding: 10px;
    box-shadow: var(--sh-3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--t-2) var(--ease), transform var(--t-2) var(--ease), visibility 0s var(--t-2);
    z-index: 100;
}
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    inset-inline: 0;
    height: 10px;
}
.has-dropdown:hover > .nav-dropdown,
.has-dropdown:focus-within > .nav-dropdown,
.has-dropdown.is-open > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity var(--t-2) var(--ease), transform var(--t-2) var(--ease), visibility 0s;
}
.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-2);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all var(--t-1) var(--ease);
    white-space: nowrap;
}
.nav-dropdown a:hover {
    background: var(--blue-50);
    color: var(--blue-700);
}
.nav-dropdown a i {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--blue-50);
    color: var(--blue-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all var(--t-1) var(--ease);
}
.nav-dropdown a:hover i {
    background: var(--blue-600);
    color: var(--paper);
}

/* Mega menu (Departments) */
.nav-dropdown.nav-mega {
    min-width: 560px;
    padding: 16px;
}
.nav-mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}
.nav-mega-footer {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
}
.nav-mega-footer a {
    justify-content: center;
    color: var(--blue-600);
    font-weight: 700;
    background: var(--blue-50);
}
.nav-mega-footer a i {
    background: transparent;
    color: var(--blue-600);
    width: auto;
    height: auto;
}
.nav-mega-footer a:hover { background: var(--blue-600); color: var(--paper); }
.nav-mega-footer a:hover i { color: var(--paper); background: transparent; }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--ivory);
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* ====== HERO (calm split + image carousel) ====== */
/* ====== HERO — Full-width carousel ====== */
.hero {
    position: relative;
    width: 100%;
    padding: 0;
    overflow: hidden;
    background: var(--ivory);
}
.hero-carousel {
    position: relative;
    width: 100%;
    height: clamp(520px, 70vh, 720px);
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1000ms var(--ease), visibility 0s 1000ms;
}
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 1000ms var(--ease), visibility 0s;
    z-index: 2;
}
.hero-slide__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.hero-slide__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}
.hero-slide__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.15) 45%, transparent 70%);
}
[dir="rtl"] .hero-slide__media::after {
    background: linear-gradient(270deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.15) 45%, transparent 70%);
}

.hero-slide__content {
    position: absolute;
    z-index: 3;
    inset-inline-start: max(32px, 5vw);
    bottom: 90px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--r-md);
    padding: clamp(28px, 3.5vw, 44px);
    max-width: 560px;
    box-shadow: var(--sh-3);
}
.hero-slide__content .eyebrow { margin-bottom: 18px; }
.hero-slide__content h1 {
    font-size: clamp(1.75rem, 3.2vw, 2.625rem);
    color: var(--text);
    margin-bottom: 14px;
    line-height: 1.15;
}
.hero-slide__content h1 em {
    color: var(--gold-deep);
    font-weight: 800;
    font-style: normal;
}
.hero-slide__lead {
    color: var(--text-2);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 26px;
}
.hero-slide__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Dots */
.hero-dots {
    position: absolute;
    bottom: 28px;
    inset-inline-end: max(32px, 5vw);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
    padding: 10px 14px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 999px;
    box-shadow: var(--sh-2);
}
.hero-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--text-3);
    opacity: 0.4;
    transition: all var(--t-2) var(--ease);
    padding: 0;
}
.hero-dot:hover { opacity: 0.8; }
.hero-dot.is-active {
    background: var(--ink);
    opacity: 1;
    width: 28px;
}

/* Arrows */
.hero-arrows {
    position: absolute;
    top: 50%;
    inset-inline: max(24px, 3vw);
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 5;
    pointer-events: none;
}
.hero-arrow {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1875rem;
    pointer-events: auto;
    transition: all var(--t-2) var(--ease);
    box-shadow: var(--sh-2);
}
.hero-arrow:hover {
    background: var(--ink);
    color: var(--paper);
}

/* Progress bar */
.hero-progress {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    height: 3px;
    background: rgba(16,58,86,0.08);
    z-index: 4;
}
.hero-progress-fill {
    height: 100%;
    background: var(--gold);
    width: 0%;
    will-change: width;
}

/* Hero stats strip — below carousel */
.hero-stats {
    background: var(--paper);
    border-bottom: 1px solid var(--line-soft);
    padding-block: clamp(28px, 3vw, 40px);
}
.hero-stats .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(20px, 3vw, 40px);
    align-items: center;
}
.hero-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-inline-start: clamp(16px, 2vw, 28px);
    border-inline-start: 1px solid var(--line-soft);
}
.hero-stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.hero-stat i {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--blue-50);
    color: var(--blue-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}
.hero-stat .num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.015em;
}
.hero-stat .num sup {
    color: var(--gold-deep);
    font-size: 0.6em;
    font-weight: 700;
    top: -0.4em;
}
.hero-stat .label {
    font-size: 0.8125rem;
    color: var(--text-3);
    margin-top: 4px;
}

/* ====== ABOUT — Rich editorial section ====== */
.about-editorial {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
    margin-bottom: clamp(56px, 7vw, 96px);
}

/* Visual stack */
.about-visual {
    position: relative;
    padding-bottom: 60px;
    padding-inline-end: 60px;
}
.about-visual__main {
    width: 100%;
    aspect-ratio: 4/4.6;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-2);
}
.about-visual__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-visual__sub {
    position: absolute;
    bottom: 0;
    inset-inline-end: 0;
    width: 55%;
    aspect-ratio: 4/4;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 8px solid var(--paper);
    box-shadow: var(--sh-3);
}
.about-visual__sub img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-visual__stamp {
    position: absolute;
    top: 24px;
    inset-inline-end: 0;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--sh-3);
    z-index: 2;
}
.about-visual__stamp .big {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}
.about-visual__stamp .small {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-top: 6px;
    line-height: 1.3;
    padding-inline: 14px;
}

/* Body */
.about-body .eyebrow { margin-bottom: 18px; }
.about-body h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 22px;
}
.about-body p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-2);
    margin-bottom: 16px;
}

/* Features grid 2x2 */
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-block: 32px;
    padding-block: 28px;
    border-block: 1px solid var(--line-soft);
}
.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.about-feature > i {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--blue-50);
    color: var(--blue-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
    transition: all var(--t-2) var(--ease);
}
.about-feature:hover > i {
    background: var(--blue-600);
    color: var(--paper);
}
.about-feature h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.3;
}
.about-feature p {
    font-size: 0.8125rem;
    color: var(--text-3);
    line-height: 1.5;
    margin: 0;
}

.about-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Accreditations strip */
.about-creds {
    display: flex;
    align-items: center;
    gap: clamp(24px, 3vw, 40px);
    padding: 28px clamp(24px, 3vw, 40px);
    background: var(--ivory);
    border-radius: var(--r-md);
    border: 1px solid var(--line-soft);
    flex-wrap: wrap;
}
.creds-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-3);
    font-weight: 700;
    flex-shrink: 0;
}
.creds-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(20px, 3vw, 40px);
    flex: 1;
    align-items: center;
}
.cred-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.cred-item > i {
    color: var(--gold-deep);
    font-size: 1.5rem;
    flex-shrink: 0;
}
.cred-item strong {
    display: block;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
}
.cred-item small {
    display: block;
    color: var(--text-3);
    font-size: 0.75rem;
    margin-top: 2px;
}

/* ====== NUMBERS (light band, gold accents) ====== */
.numbers {
    background: var(--cream);
    padding-block: clamp(56px, 7vw, 96px);
    border-block: 1px solid var(--line-soft);
}
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(24px, 4vw, 56px);
}
.numbers-item {
    text-align: center;
}
.numbers-item__value {
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.025em;
    color: var(--text);
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}
.numbers-item__value sup {
    font-size: 0.55em;
    color: var(--gold-deep);
    font-weight: 700;
    top: -0.4em;
}
.numbers-item__label {
    font-size: 0.875rem;
    color: var(--text-3);
    margin-top: 12px;
    line-height: 1.5;
}

/* ====== BENTO Departments (kept, lightened) ====== */
.bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 230px;
    gap: 14px;
}
.bento-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-md);
    background: var(--ink);
    color: var(--ivory);
    cursor: pointer;
    isolation: isolate;
}
.bento-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1100ms var(--ease);
    z-index: 0;
}
.bento-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(42,35,23,0.05) 0%, rgba(42,35,23,0.85) 100%);
    z-index: 1;
    transition: background var(--t-2) var(--ease);
}
.bento-card:hover img { transform: scale(1.06); }
.bento-card:hover::after {
    background: linear-gradient(180deg, rgba(42,35,23,0.1) 0%, rgba(42,35,23,0.9) 100%);
}
.bento-card__content {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 24px;
    z-index: 2;
    transition: transform var(--t-3) var(--ease);
}
.bento-card:hover .bento-card__content { transform: translateY(-6px); }
.bento-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.0625rem;
    margin-bottom: 14px;
}
.bento-card__title {
    font-size: clamp(1.0625rem, 1.4vw, 1.375rem);
    font-weight: 700;
    color: var(--ivory);
    margin-bottom: 6px;
    line-height: 1.2;
}
.bento-card__desc {
    font-size: 0.8125rem;
    color: rgba(251,248,240,0.72);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all var(--t-3) var(--ease);
}
.bento-card:hover .bento-card__desc { max-height: 60px; opacity: 1; margin-top: 4px; }
.bento-card__arrow {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(251,248,240,0.12);
    backdrop-filter: blur(8px);
    color: var(--ivory);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-2) var(--ease);
    z-index: 2;
}
.bento-card:hover .bento-card__arrow {
    background: var(--gold);
    color: var(--ink);
    transform: rotate(-45deg);
}

.bento .b1 { grid-column: span 5; grid-row: span 2; }
.bento .b2 { grid-column: span 4; grid-row: span 1; }
.bento .b3 { grid-column: span 3; grid-row: span 2; }
.bento .b4 { grid-column: span 4; grid-row: span 1; }
.bento .b5 { grid-column: span 3; grid-row: span 1; }
.bento .b6 { grid-column: span 6; grid-row: span 1; }
.bento .b7 { grid-column: span 3; grid-row: span 1; }
.bento .b8 { grid-column: span 6; grid-row: span 1; }
.bento .b9 { grid-column: span 3; grid-row: span 1; }

/* ====== DOCTORS Slider (kept) ====== */
.doctors-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: clamp(32px, 4vw, 56px);
    flex-wrap: wrap;
}
.doctors-head .left { max-width: 560px; }
.doctors-head h2 { margin-top: 16px; }
.doctors-head .lead { margin-top: 16px; }
.doctors-nav { display: flex; gap: 10px; }
.doctors-nav button {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--sh-1);
    border: 1px solid var(--line-soft);
    transition: all var(--t-2) var(--ease);
}
.doctors-nav button:hover {
    background: var(--ink);
    color: var(--ivory);
    border-color: var(--ink);
}

.swiper.doctors-swiper { overflow: visible; }
.doctor {
    background: var(--paper);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: all var(--t-3) var(--ease);
    border: 1px solid var(--line-soft);
}
.doctor:hover {
    box-shadow: var(--sh-2);
    border-color: var(--line);
}
.doctor-photo {
    aspect-ratio: 4/4.6;
    overflow: hidden;
    position: relative;
    background: var(--cream);
}
.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1000ms var(--ease);
}
.doctor:hover .doctor-photo img { transform: scale(1.05); }
.doctor-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(42,35,23,0.55) 100%);
}
.doctor-photo .specialty {
    position: absolute;
    z-index: 2;
    inset-inline: 18px;
    bottom: 14px;
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-200);
    font-weight: 700;
}
.doctor-body {
    padding: 18px 22px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.doctor-body h4 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}
.doctor-body i {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--ivory);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    transition: all var(--t-2) var(--ease);
    flex-shrink: 0;
}
.doctor:hover .doctor-body i {
    background: var(--gold);
    transform: rotate(-45deg);
}

/* ====== ARTICLES & NEWS ====== */
.articles-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: clamp(40px, 5vw, 64px);
    flex-wrap: wrap;
}
.articles-head .eyebrow { margin-bottom: 16px; }
.articles-head h2 { line-height: 1.15; }

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article {
    background: var(--paper);
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--line-soft);
    transition: all var(--t-3) var(--ease);
}
.article:hover {
    box-shadow: var(--sh-3);
    border-color: var(--line);
    transform: translateY(-4px);
}
.article-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.article-media {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}
.article-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 900ms var(--ease);
}
.article:hover .article-media img { transform: scale(1.06); }

.article-tag {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: var(--sh-1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.article-tag--blue {
    background: rgba(255,255,255,0.95);
    color: var(--blue-700);
}
.article-tag--gold {
    background: var(--gold);
    color: var(--ink);
}

.article-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.article-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    color: var(--text-3);
    flex-wrap: wrap;
}
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta i { color: var(--gold-deep); font-size: 0.875rem; }
.article-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: var(--text-4);
}

.article h3 {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article p {
    font-size: 0.9375rem;
    color: var(--text-2);
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue-600);
    font-weight: 700;
    font-size: 0.875rem;
    margin-top: auto;
    padding-top: 6px;
}
.article-read i { transition: transform var(--t-2) var(--ease); }
.article:hover .article-read { color: var(--blue-700); }
.article:hover .article-read i { transform: translateX(-4px); }

/* ====== TESTIMONIAL (light, calm) ====== */
.testi {
    background: var(--paper);
    border-radius: var(--r-lg);
    padding: clamp(32px, 5vw, 64px);
    border: 1px solid var(--line-soft);
    position: relative;
}
.testi::before {
    content: '"';
    position: absolute;
    top: -30px;
    inset-inline-end: 40px;
    font-size: 9rem;
    color: var(--gold-200);
    line-height: 1;
    font-weight: 800;
    pointer-events: none;
}
.testi-stars {
    display: flex;
    gap: 3px;
    color: var(--gold);
    font-size: 0.9375rem;
    margin-bottom: 20px;
}
.testi-quote {
    font-size: clamp(1.125rem, 1.7vw, 1.5rem);
    line-height: 1.65;
    color: var(--text);
    margin-bottom: 32px;
    font-weight: 500;
    max-width: 800px;
}
.testi-author {
    display: flex;
    align-items: center;
    gap: 16px;
}
.testi-author .avatar {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    font-weight: 800;
    flex-shrink: 0;
}
.testi-author h5 { color: var(--text); font-size: 0.9375rem; margin-bottom: 2px; }
.testi-author p { color: var(--text-3); font-size: 0.8125rem; }

.testi-nav {
    display: flex;
    gap: 10px;
    margin-top: 32px;
}
.testi-nav button {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--sh-1);
    border: 1px solid var(--line-soft);
    transition: all var(--t-2) var(--ease);
}
.testi-nav button:hover {
    background: var(--ink);
    color: var(--ivory);
    border-color: var(--ink);
}

/* ====== CTA Editorial (soft) ====== */
.cta-editorial {
    background: var(--gold);
    color: var(--ink);
    border-radius: var(--r-lg);
    padding: clamp(40px, 6vw, 72px);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.cta-editorial::before {
    content: '';
    position: absolute;
    top: -50%;
    inset-inline-end: -10%;
    width: 500px;
    height: 500px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255,255,255,0.22) 0%, transparent 60%);
    pointer-events: none;
}
.cta-editorial h2 {
    color: var(--ink);
    margin-bottom: 10px;
}
.cta-editorial p {
    color: rgba(42,35,23,0.72);
    font-size: 1rem;
    max-width: 520px;
}
.cta-editorial em {
    font-weight: 800;
    font-style: normal;
    color: var(--gold-deep);
}
.cta-editorial .actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.cta-editorial .btn-primary { background: var(--ink); color: var(--ivory); }
.cta-editorial .btn-primary:hover { background: var(--paper); color: var(--ink); }
.cta-editorial .btn-outline { border-color: var(--ink); color: var(--ink); }
.cta-editorial .btn-outline:hover { background: var(--ink); color: var(--ivory); }

/* ====== Footer (soft cream, dark text) ====== */
.footer {
    background: var(--cream);
    color: var(--text-2);
    padding-top: clamp(64px, 8vw, 96px);
    border-top: 1px solid var(--line);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: clamp(32px, 5vw, 64px);
    padding-bottom: clamp(48px, 6vw, 72px);
}
.footer h5 {
    color: var(--ink);
    font-size: 0.8125rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 24px;
    font-weight: 700;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.footer-brand img { height: 54px; }
.footer-brand-text {
    color: var(--ink);
    font-weight: 800;
    font-size: 1.0625rem;
    line-height: 1.15;
}
.footer-brand-text small {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-3);
    margin-top: 4px;
}
.footer-about {
    font-size: 0.9375rem;
    line-height: 1.75;
    margin-bottom: 24px;
}
.footer-links a {
    display: block;
    padding: 5px 0;
    font-size: 0.9375rem;
    color: var(--text-2);
    transition: all var(--t-1) var(--ease);
}
.footer-links a:hover { color: var(--gold-deep); padding-inline-start: 6px; }
.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.875rem;
    line-height: 1.6;
}
.footer-contact li i { color: var(--gold-deep); font-size: 1rem; margin-top: 3px; flex-shrink: 0; }
.footer-contact a:hover { color: var(--gold-deep); }
.footer-social {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}
.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--paper);
    color: var(--text-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-2) var(--ease);
    border: 1px solid var(--line-soft);
}
.footer-social a:hover {
    background: var(--gold);
    color: var(--ink);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-block: 20px;
    font-size: 0.8125rem;
    color: var(--text-3);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom strong { color: var(--ink); font-weight: 700; }
.footer-bottom .heart { color: var(--gold-deep); }
.footer-legal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.footer-legal a {
    color: var(--text-2);
    font-weight: 600;
    transition: color var(--t-1) var(--ease);
}
.footer-legal a:hover { color: var(--blue-600); }
.footer-legal .sep { color: var(--text-4); }

/* ====== Floating buttons ====== */
.fab {
    position: fixed;
    bottom: 22px;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    box-shadow: var(--sh-3);
    z-index: 50;
    transition: all var(--t-2) var(--ease);
}
.fab:hover { transform: translateY(-3px); }
.fab-whatsapp { inset-inline-start: 22px; background: #25D366; color: #fff; }
.fab-top {
    inset-inline-end: 22px;
    background: var(--ink);
    color: var(--ivory);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}
.fab-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ====== Reveal Animations (gentle) ====== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
    will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ====== Responsive ====== */
@media (max-width: 1100px) {
    .bento { grid-auto-rows: 200px; }
    .bento .b1 { grid-column: span 6; }
    .bento .b2 { grid-column: span 6; }
    .bento .b3 { grid-column: span 6; grid-row: span 1; }
    .bento .b4 { grid-column: span 6; }
    .bento .b5 { grid-column: span 6; }
    .bento .b6 { grid-column: span 6; }
    .bento .b7 { grid-column: span 6; }
    .bento .b8 { grid-column: span 6; }
    .bento .b9 { grid-column: span 6; }

    .numbers-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-grid  { grid-template-columns: 1fr 1fr; }
    .articles-grid { grid-template-columns: 1fr 1fr; }
    .creds-items { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
    :root { --nav-h: 70px; }
    body { font-size: 16px; }

    .topbar { display: none; }

    .nav-menu, .nav-cta .btn { display: none; }
    .nav-toggle { display: inline-flex; }
    .nav-menu.is-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: var(--nav-h);
        inset-inline: 0;
        background: var(--paper);
        padding: 16px;
        border-block: 1px solid var(--line-soft);
        box-shadow: var(--sh-2);
        gap: 2px;
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
    }
    .nav-menu.is-open li { width: 100%; }
    .nav-menu.is-open .nav-link {
        width: 100%;
        padding: 14px 16px;
        border-radius: 10px;
        font-size: 1rem;
        justify-content: space-between;
    }
    .nav-menu.is-open .nav-link.is-active::after { display: none; }

    /* Mobile dropdown = accordion */
    .nav-menu.is-open .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        background: var(--ivory);
        padding: 6px;
        margin: 4px 0 8px;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--t-3) var(--ease);
        min-width: 0;
    }
    .nav-menu.is-open .has-dropdown.is-open .nav-dropdown {
        max-height: 1000px;
    }
    .nav-menu.is-open .nav-dropdown a {
        padding: 12px;
        font-size: 0.9375rem;
    }
    .nav-menu.is-open .nav-dropdown.nav-mega { min-width: 0; }
    .nav-menu.is-open .nav-mega-grid { grid-template-columns: 1fr; }
    .nav-menu.is-open .has-dropdown:hover > .nav-dropdown {
        /* Disable hover open on mobile, use click only */
        max-height: 0;
    }
    .nav-menu.is-open .has-dropdown.is-open:hover > .nav-dropdown {
        max-height: 1000px;
    }

    .hero-carousel { height: clamp(460px, 75vh, 600px); }
    .hero-slide__content {
        inset-inline: 20px;
        bottom: 80px;
        max-width: none;
        padding: 24px 22px;
    }
    .hero-slide__content h1 { font-size: 1.5rem; }
    .hero-slide__lead { font-size: 0.9375rem; margin-bottom: 18px; }
    .hero-arrows { display: none; }
    .hero-dots { bottom: 18px; inset-inline-end: 50%; transform: translateX(50%); }
    [dir="rtl"] .hero-dots { transform: translateX(-50%); }

    .hero-stats .container { grid-template-columns: 1fr 1fr; gap: 16px; }
    .hero-stat { padding-inline-start: 12px; border-inline-start-width: 1px; }
    .hero-stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
    .hero-stat .num { font-size: 1.25rem; }
    .hero-stat i { width: 38px; height: 38px; font-size: 1rem; }
    .hero-stat .label { font-size: 0.75rem; }

    .articles-grid { grid-template-columns: 1fr; gap: 18px; }
    .articles-head { flex-direction: column; align-items: flex-start; gap: 16px; }

    .about-editorial { grid-template-columns: 1fr; gap: 56px; }
    .about-visual { padding-bottom: 40px; padding-inline-end: 40px; max-width: 480px; margin-inline: auto; }
    .about-visual__sub { width: 50%; }
    .about-visual__stamp { width: 100px; height: 100px; top: 12px; }
    .about-visual__stamp .big { font-size: 1.75rem; }
    .about-visual__stamp .small { font-size: 0.625rem; padding-inline: 10px; }
    .about-features { grid-template-columns: 1fr; gap: 16px; }
    .about-creds { flex-direction: column; align-items: flex-start; padding: 22px; gap: 18px; }
    .creds-items { grid-template-columns: 1fr 1fr; gap: 18px; width: 100%; }

    .bento { grid-auto-rows: 180px; }
    .bento .b1, .bento .b2, .bento .b3, .bento .b4,
    .bento .b5, .bento .b6, .bento .b7, .bento .b8, .bento .b9 {
        grid-column: span 12;
    }

    .numbers-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-grid  { grid-template-columns: 1fr; }
    .footer-bottom { justify-content: center; text-align: center; }

    .cta-editorial { grid-template-columns: 1fr; text-align: center; }
    .cta-editorial .actions { justify-content: center; }

    .testi::before { font-size: 8rem; top: -32px; }
}

/* ====================================================================
   INNER PAGES — Shared components
   ==================================================================== */

/* ====== Page Header (consistent banner for all inner pages) ====== */
.page-head {
    padding-block: clamp(56px, 7vw, 96px);
    background: var(--ivory);
    border-bottom: 1px solid var(--line-soft);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-head::before {
    content: '';
    position: absolute;
    top: -200px;
    inset-inline-end: -200px;
    width: 500px;
    height: 500px;
    border-radius: 999px;
    background: radial-gradient(circle, var(--blue-100), transparent 65%);
    opacity: 0.6;
    pointer-events: none;
}
.page-head::after {
    content: '';
    position: absolute;
    bottom: -150px;
    inset-inline-start: -180px;
    width: 400px;
    height: 400px;
    border-radius: 999px;
    background: radial-gradient(circle, var(--gold-50), transparent 65%);
    opacity: 0.4;
    pointer-events: none;
}
.page-head .container { position: relative; z-index: 1; }
.page-head .eyebrow {
    margin-bottom: 18px;
    justify-content: center;
}
.page-head .eyebrow::after {
    content: '';
    width: 32px;
    height: 1px;
    background: currentColor;
}
.page-head h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin-bottom: 20px;
    color: var(--text);
}
.page-head .page-lead {
    font-size: 1.0625rem;
    color: var(--text-2);
    max-width: 640px;
    margin: 0 auto 24px;
    line-height: 1.7;
}
.breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-3);
    background: var(--paper);
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
}
.breadcrumbs a {
    color: var(--text-2);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.breadcrumbs a:hover { color: var(--blue-600); }
.breadcrumbs .sep { color: var(--text-4); font-size: 0.75em; }
.breadcrumbs .current { color: var(--blue-700); font-weight: 700; }

/* ====== Department cards (departments page) ====== */
.depts-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.dept-card {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: all var(--t-2) var(--ease);
    display: flex;
    flex-direction: column;
}
.dept-card:hover {
    box-shadow: var(--sh-3);
    border-color: var(--line);
    transform: translateY(-4px);
}
.dept-card__media {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}
.dept-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 900ms var(--ease);
}
.dept-card:hover .dept-card__media img { transform: scale(1.06); }
.dept-card__icon {
    position: absolute;
    bottom: -22px;
    inset-inline-start: 24px;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gold);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--sh-2);
    z-index: 2;
}
.dept-card__body {
    padding: 36px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.dept-card__body h3 {
    font-size: 1.1875rem;
    margin-bottom: 10px;
    line-height: 1.3;
    font-weight: 700;
}
.dept-card__body p {
    font-size: 0.9375rem;
    color: var(--text-2);
    line-height: 1.65;
    margin-bottom: 18px;
    flex: 1;
}
.dept-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue-600);
    font-weight: 700;
    font-size: 0.9375rem;
    transition: all var(--t-1) var(--ease);
}
.dept-card__link i { transition: transform var(--t-2) var(--ease); }
.dept-card:hover .dept-card__link { color: var(--blue-700); }
.dept-card:hover .dept-card__link i { transform: translateX(-4px); }

/* ====== Doctors grid (static, doctors page) ====== */
.doctors-grid-static {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

/* ====== Mission/Vision cards (about page) ====== */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.mv-card {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    padding: clamp(28px, 4vw, 44px);
    transition: all var(--t-2) var(--ease);
}
.mv-card:hover {
    box-shadow: var(--sh-2);
    border-color: var(--blue-200);
    transform: translateY(-3px);
}
.mv-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--blue-50);
    color: var(--blue-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 22px;
}
.mv-card--vision .mv-card__icon { background: var(--gold-50); color: var(--gold-deep); }
.mv-card h3 { font-size: 1.5rem; margin-bottom: 14px; }
.mv-card p { font-size: 1rem; line-height: 1.8; color: var(--text-2); }

/* ====== Values grid (4 cards, about page) ====== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.value-card {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    padding: 28px 24px;
    text-align: center;
    transition: all var(--t-2) var(--ease);
}
.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-2);
    border-color: var(--blue-200);
}
.value-card__icon {
    width: 60px;
    height: 60px;
    border-radius: 999px;
    background: var(--blue-50);
    color: var(--blue-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 18px;
    transition: all var(--t-2) var(--ease);
}
.value-card:hover .value-card__icon { background: var(--blue-600); color: var(--paper); }
.value-card h4 { font-size: 1.0625rem; margin-bottom: 8px; }
.value-card p { font-size: 0.875rem; color: var(--text-3); line-height: 1.6; }

/* ====== Story cards (about, narrative blocks) ====== */
.story-block {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    padding: clamp(28px, 4vw, 40px);
    display: flex;
    gap: 22px;
    align-items: flex-start;
    margin-bottom: 18px;
    border-inline-start: 4px solid var(--blue-500);
}
.story-block:nth-child(2) { border-inline-start-color: var(--gold); }
.story-block:nth-child(3) { border-inline-start-color: var(--blue-300); }
.story-block__icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--blue-50);
    color: var(--blue-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.story-block:nth-child(2) .story-block__icon { background: var(--gold-50); color: var(--gold-deep); }
.story-block p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-2);
    margin: 0;
}

/* ====== Contact: info cards + form + map ====== */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: clamp(48px, 6vw, 72px);
}
.contact-info-card {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    padding: 28px 24px;
    text-align: center;
    transition: all var(--t-2) var(--ease);
}
.contact-info-card:hover {
    box-shadow: var(--sh-2);
    border-color: var(--blue-200);
    transform: translateY(-3px);
}
.contact-info-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--blue-50);
    color: var(--blue-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    margin: 0 auto 18px;
    transition: all var(--t-2) var(--ease);
}
.contact-info-card:hover .contact-info-card__icon { background: var(--blue-600); color: var(--paper); }
.contact-info-card h5 { font-size: 0.9375rem; margin-bottom: 10px; color: var(--text); }
.contact-info-card p { font-size: 0.875rem; color: var(--text-2); line-height: 1.6; margin: 0; }
.contact-info-card a { color: var(--blue-600); font-weight: 600; }
.contact-info-card a:hover { color: var(--blue-700); }

.contact-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(32px, 4vw, 56px);
    align-items: start;
}
.contact-form {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    padding: clamp(28px, 4vw, 40px);
}
.contact-form h3 { font-size: 1.5rem; margin-bottom: 8px; }
.contact-form p.muted { font-size: 0.9375rem; color: var(--text-3); margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { margin-bottom: 14px; }
.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}
.form-label .req { color: var(--blue-600); }
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--paper);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9375rem;
    transition: all var(--t-1) var(--ease);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(46,110,150,0.12);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-4); }
.form-textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

.contact-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-map {
    aspect-ratio: 4/3;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--line-soft);
    background: var(--cream);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; }
.contact-hours {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    padding: 24px;
}
.contact-hours h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    margin-bottom: 14px;
}
.contact-hours h4 i { color: var(--gold-deep); font-size: 1.1em; }
.contact-hours-list { display: grid; gap: 8px; }
.contact-hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.875rem;
    color: var(--text-2);
    border-bottom: 1px dashed var(--line-soft);
}
.contact-hours-list li:last-child { border-bottom: 0; }
.contact-hours-list li strong { color: var(--text); font-weight: 600; }
.contact-hours-list li span { color: var(--blue-600); font-weight: 600; }

/* Department contact (HR/PR) */
.dept-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ====== 404 ====== */
.error-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-block: clamp(60px, 9vw, 128px);
    background: var(--ivory);
}
.error-page .num {
    font-size: clamp(6rem, 18vw, 14rem);
    font-weight: 900;
    line-height: 0.9;
    color: var(--blue-700);
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}
.error-page .num span { color: var(--gold); }
.error-page h1 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 14px; }
.error-page p {
    font-size: 1.0625rem;
    color: var(--text-3);
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.7;
}
.error-actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ====== Responsive — inner pages ====== */
@media (max-width: 1100px) {
    .depts-list { grid-template-columns: 1fr 1fr; }
    .doctors-grid-static { grid-template-columns: 1fr 1fr 1fr; }
    .values-grid { grid-template-columns: 1fr 1fr; }
    .contact-info-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
    .depts-list { grid-template-columns: 1fr; }
    .doctors-grid-static { grid-template-columns: 1fr 1fr; }
    .mv-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr 1fr; }
    .contact-info-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .contact-split { grid-template-columns: 1fr; }
    .dept-contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .doctors-grid-static { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
}

/* ====================================================================
   LEGAL PAGES (Privacy, Terms)
   ==================================================================== */
.legal-grid {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

/* Table of Contents (sidebar) */
.legal-toc {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
    background: var(--ivory);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    padding: 22px;
}
.legal-toc h4 {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-soft);
    font-weight: 700;
}
.legal-toc ol {
    list-style: none;
    counter-reset: toc;
    display: grid;
    gap: 2px;
}
.legal-toc ol li { counter-increment: toc; }
.legal-toc ol li a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 8px;
    color: var(--text-2);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    transition: all var(--t-1) var(--ease);
}
.legal-toc ol li a::before {
    content: counter(toc);
    color: var(--gold-deep);
    font-weight: 800;
    min-width: 20px;
    text-align: center;
}
.legal-toc ol li a:hover,
.legal-toc ol li a.is-active {
    background: var(--blue-50);
    color: var(--blue-700);
}
.legal-updated {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
    font-size: 0.8125rem;
    color: var(--text-3);
    line-height: 1.6;
}
.legal-updated strong {
    display: block;
    color: var(--text);
    font-weight: 700;
    font-size: 0.9375rem;
    margin-top: 4px;
}

/* Main content */
.legal-content { counter-reset: section; }
.legal-content section {
    margin-bottom: 44px;
    scroll-margin-top: calc(var(--nav-h) + 20px);
}
.legal-content section:last-child { margin-bottom: 0; }
.legal-content h2 {
    font-size: clamp(1.25rem, 1.8vw, 1.625rem);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--text);
    display: flex;
    align-items: baseline;
    gap: 14px;
    line-height: 1.3;
}
.legal-content h2::before {
    content: counter(section, decimal);
    counter-increment: section;
    color: var(--gold-deep);
    font-weight: 800;
    font-size: 0.85em;
    min-width: 32px;
}
.legal-content h3 {
    font-size: 1.0625rem;
    margin: 22px 0 10px;
    color: var(--text);
    font-weight: 700;
}
.legal-content p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-2);
    margin-bottom: 14px;
}
.legal-content ul,
.legal-content ol {
    padding-inline-start: 24px;
    margin-bottom: 18px;
}
.legal-content ul li,
.legal-content ol li {
    font-size: 0.9875rem;
    line-height: 1.85;
    color: var(--text-2);
    margin-bottom: 8px;
    padding-inline-start: 6px;
}
.legal-content ul li::marker { color: var(--gold-deep); font-size: 1.1em; }
.legal-content ol { list-style: decimal; }
.legal-content a {
    color: var(--blue-600);
    font-weight: 600;
    border-bottom: 1px solid var(--blue-200);
    transition: all var(--t-1) var(--ease);
}
.legal-content a:hover {
    color: var(--blue-700);
    border-bottom-color: var(--blue-600);
}

/* Callout box */
.legal-callout {
    background: var(--blue-50);
    border-inline-start: 4px solid var(--blue-500);
    border-radius: var(--r-sm);
    padding: 18px 22px;
    margin: 20px 0;
}
.legal-callout--gold {
    background: var(--gold-50);
    border-inline-start-color: var(--gold);
}
.legal-callout strong {
    color: var(--blue-700);
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}
.legal-callout--gold strong { color: var(--gold-600); }
.legal-callout p:last-child { margin-bottom: 0; }

@media (max-width: 1100px) {
    .legal-grid { grid-template-columns: 220px 1fr; gap: 32px; }
}
@media (max-width: 820px) {
    .legal-grid { grid-template-columns: 1fr; gap: 24px; }
    .legal-toc { position: static; padding: 18px; }
}

/* ====== Language switcher (topbar) ====== */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(16,58,86,0.06);
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all var(--t-1) var(--ease);
    cursor: pointer;
}
.lang-switch i { font-size: 0.95em; color: var(--gold-deep); }
.lang-switch:hover {
    background: var(--ink);
    color: var(--ivory);
    border-color: var(--ink);
}
.lang-switch:hover i { color: var(--gold-300); }

/* ====== Footer: Kayan Core credit ====== */
.footer-bottom {
    flex-wrap: wrap;
}
.footer-credit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
}
.footer-credit__brand {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--gold-50);
    color: var(--gold-deep);
    font-weight: 700;
    transition: all var(--t-1) var(--ease);
}
.footer-credit__brand:hover {
    background: var(--gold);
    color: var(--ink);
}
.footer-credit__brand em {
    font-style: normal;
    font-weight: 500;
    font-size: 0.85em;
    opacity: 0.85;
}

@media (max-width: 820px) {
    .topbar-actions { gap: 8px; }
    .lang-switch span { display: none; }
    .lang-switch { padding: 5px 8px; }
}

/* ====================================================================
   ARTICLES — index page + single article
   ==================================================================== */

/* Filter chips */
.article-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding-block: 16px 0;
}
.article-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-2);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--t-1) var(--ease);
}
.article-chip:hover {
    border-color: var(--blue-500);
    color: var(--blue-700);
}
.article-chip.is-active {
    background: var(--ink);
    color: var(--ivory);
    border-color: var(--ink);
}
.article-chip i { font-size: 0.85em; }

/* Media placeholder */
.article-media__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--cream);
    color: var(--text-4);
    font-size: 3rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: clamp(40px, 5vw, 64px);
    flex-wrap: wrap;
}
.pagination-num,
.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    color: var(--text-2);
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all var(--t-1) var(--ease);
}
.pagination-num { min-width: 42px; justify-content: center; }
.pagination-num:hover,
.pagination-btn:hover {
    border-color: var(--ink);
    color: var(--ink);
}
.pagination-num.is-active {
    background: var(--ink);
    color: var(--ivory);
    border-color: var(--ink);
}

/* Empty state */
.empty-state-large {
    text-align: center;
    padding: 64px 24px;
    color: var(--text-3);
}
.empty-state-large i {
    font-size: 4rem;
    color: var(--text-4);
    margin-bottom: 20px;
    display: block;
}
.empty-state-large h3 { color: var(--text); margin-bottom: 8px; }
.empty-state-large p { margin-bottom: 20px; }

/* ───────────────────────────────────────────────────
   Single Article — Hero
   ─────────────────────────────────────────────────── */
.article-hero {
    position: relative;
    min-height: 360px;
    background: var(--cream);
    overflow: hidden;
}
.article-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.article-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55);
}
.article-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,36,54,0.3) 0%, rgba(15,36,54,0.85) 100%);
}
.article-hero__overlay {
    position: relative;
    z-index: 2;
    padding-block: clamp(56px, 7vw, 96px);
    color: var(--ivory);
}
.article-hero__overlay .container { color: var(--ivory); }
.article-hero__crumbs {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(255,255,255,0.18);
    margin-bottom: 24px;
}
.article-hero__crumbs a { color: var(--ivory); }
.article-hero__crumbs .sep,
.article-hero__crumbs .current { color: rgba(244,236,218,0.7); }
.article-hero__tag {
    margin-bottom: 16px;
    position: relative;
}
.article-hero__title {
    color: var(--ivory);
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.18;
    margin-bottom: 18px;
    max-width: 760px;
}
.article-hero__lead {
    color: rgba(244,236,218,0.85);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 720px;
}
.article-hero__meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8125rem;
    color: rgba(244,236,218,0.85);
}
.article-hero__meta i { color: var(--gold-300); margin-inline-end: 4px; }
.article-hero__meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: rgba(244,236,218,0.5);
}

/* Article without cover image */
.article-hero:not(:has(.article-hero__media)) {
    background: linear-gradient(135deg, var(--blue-50) 0%, var(--cream) 100%);
}
.article-hero:not(:has(.article-hero__media)) .article-hero__overlay { color: var(--text); }
.article-hero:not(:has(.article-hero__media)) .article-hero__overlay .container { color: var(--text); }
.article-hero:not(:has(.article-hero__media)) .article-hero__title { color: var(--text); }
.article-hero:not(:has(.article-hero__media)) .article-hero__lead { color: var(--text-2); }
.article-hero:not(:has(.article-hero__media)) .article-hero__meta { color: var(--text-3); }
.article-hero:not(:has(.article-hero__media)) .article-hero__crumbs {
    background: var(--paper);
    border-color: var(--line-soft);
}
.article-hero:not(:has(.article-hero__media)) .article-hero__crumbs a { color: var(--text-2); }
.article-hero:not(:has(.article-hero__media)) .article-hero__crumbs .sep,
.article-hero:not(:has(.article-hero__media)) .article-hero__crumbs .current { color: var(--text-4); }

/* ───────────────────────────────────────────────────
   Article body (rendered HTML from TinyMCE)
   ─────────────────────────────────────────────────── */
.article-body-section .container--narrow {
    max-width: 800px;
}

.article-content {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--text-2);
}
.article-content > *:first-child { margin-top: 0; }
.article-content > *:last-child  { margin-bottom: 0; }

.article-content h2 {
    font-size: clamp(1.375rem, 2vw, 1.75rem);
    color: var(--text);
    margin: 36px 0 16px;
    line-height: 1.3;
    font-weight: 800;
}
.article-content h3 {
    font-size: clamp(1.1875rem, 1.5vw, 1.375rem);
    color: var(--text);
    margin: 28px 0 12px;
    font-weight: 700;
}
.article-content h4 {
    font-size: 1.125rem;
    color: var(--text);
    margin: 22px 0 10px;
    font-weight: 700;
}
.article-content p {
    margin-bottom: 18px;
}
.article-content a {
    color: var(--blue-600);
    text-decoration: underline;
    text-decoration-color: var(--blue-200);
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    transition: all var(--t-1) var(--ease);
}
.article-content a:hover {
    color: var(--blue-700);
    text-decoration-color: var(--blue-600);
}
.article-content strong { color: var(--text); font-weight: 700; }
.article-content em { font-style: italic; }
.article-content ul,
.article-content ol {
    margin: 0 0 20px;
    padding-inline-start: 26px;
}
.article-content ul li,
.article-content ol li {
    margin-bottom: 8px;
}
.article-content ul li::marker { color: var(--gold-deep); }
.article-content blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    background: var(--ivory);
    border-inline-start: 4px solid var(--gold);
    border-radius: var(--r-sm);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text);
    font-style: italic;
}
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content img {
    width: 100%;
    height: auto;
    border-radius: var(--r-md);
    margin: 28px 0;
    display: block;
}
.article-content figure {
    margin: 28px 0;
}
.article-content figure img { margin: 0; }
.article-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-3);
    margin-top: 10px;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.9375rem;
}
.article-content th,
.article-content td {
    border: 1px solid var(--line-soft);
    padding: 12px 14px;
    text-align: start;
}
.article-content th {
    background: var(--ivory);
    color: var(--text);
    font-weight: 700;
}
.article-content hr {
    border: 0;
    border-top: 1px solid var(--line-soft);
    margin: 36px 0;
}
.article-content pre,
.article-content code {
    background: var(--ivory);
    border-radius: var(--r-sm);
    font-family: 'Fira Code', monospace;
    font-size: 0.9375rem;
}
.article-content code { padding: 2px 6px; color: var(--blue-700); }
.article-content pre {
    padding: 16px;
    overflow-x: auto;
    margin: 20px 0;
}

/* ───────────────────────────────────────────────────
   Share + Related
   ─────────────────────────────────────────────────── */
.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--line-soft);
}
.article-share__label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    margin-inline-end: 4px;
}
.article-share a {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--ivory);
    color: var(--text-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--t-2) var(--ease);
}
.article-share a:hover {
    background: var(--ink);
    color: var(--ivory);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .article-hero__overlay { padding-block: 48px; }
    .article-content { font-size: 1rem; line-height: 1.8; }
    .article-content h2 { font-size: 1.375rem; margin: 28px 0 14px; }
    .article-content h3 { font-size: 1.1875rem; margin: 22px 0 10px; }
    .pagination-num,
    .pagination-btn { padding: 8px 12px; font-size: 0.875rem; }
}

/* ====================================================================
   SINGLE DEPARTMENT page
   ==================================================================== */
.dept-single-hero {
    position: relative;
    min-height: 420px;
    background: linear-gradient(135deg, var(--blue-50) 0%, var(--cream) 100%);
    overflow: hidden;
}
.dept-single-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.dept-single-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55);
}
.dept-single-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,36,54,0.3) 0%, rgba(15,36,54,0.85) 100%);
}
.dept-single-hero__overlay {
    position: relative;
    z-index: 2;
    padding-block: clamp(56px, 7vw, 96px);
    color: var(--ivory);
}
.dept-single-hero__crumbs {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(255,255,255,0.18);
    margin-bottom: 28px;
}
.dept-single-hero__crumbs a { color: var(--ivory); }
.dept-single-hero__crumbs .sep,
.dept-single-hero__crumbs .current { color: rgba(244,236,218,0.7); }

.dept-single-hero__icon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    background: var(--gold);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    box-shadow: var(--sh-3);
}
.dept-single-hero__title {
    color: var(--ivory);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.15;
    margin-bottom: 18px;
    max-width: 760px;
}
.dept-single-hero__lead {
    color: rgba(244,236,218,0.9);
    font-size: 1.125rem;
    line-height: 1.65;
    margin-bottom: 28px;
    max-width: 720px;
}
.dept-single-hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Single dept without image */
.dept-single-hero:not(:has(.dept-single-hero__media)) .dept-single-hero__overlay { color: var(--text); }
.dept-single-hero:not(:has(.dept-single-hero__media)) .dept-single-hero__title { color: var(--text); }
.dept-single-hero:not(:has(.dept-single-hero__media)) .dept-single-hero__lead { color: var(--text-2); }
.dept-single-hero:not(:has(.dept-single-hero__media)) .dept-single-hero__crumbs {
    background: var(--paper);
    border-color: var(--line-soft);
}
.dept-single-hero:not(:has(.dept-single-hero__media)) .dept-single-hero__crumbs a { color: var(--text-2); }
.dept-single-hero:not(:has(.dept-single-hero__media)) .dept-single-hero__crumbs .sep,
.dept-single-hero:not(:has(.dept-single-hero__media)) .dept-single-hero__crumbs .current { color: var(--text-4); }
.dept-single-hero:not(:has(.dept-single-hero__media)) .dept-single-hero__actions .btn-ghost-light {
    border-color: var(--line);
    color: var(--ink);
}

/* ====================================================================
   SINGLE DOCTOR page
   ==================================================================== */
.doctor-hero {
    background: linear-gradient(135deg, var(--ivory) 0%, var(--blue-50) 100%);
    padding-block: clamp(48px, 6vw, 80px);
    position: relative;
    overflow: hidden;
}
.doctor-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    inset-inline-end: -200px;
    width: 500px;
    height: 500px;
    border-radius: 999px;
    background: radial-gradient(circle, var(--blue-100), transparent 65%);
    opacity: 0.6;
    pointer-events: none;
}

.doctor-hero .breadcrumbs { margin-bottom: 32px; }

.doctor-hero__grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: clamp(32px, 5vw, 56px);
    align-items: start;
    position: relative;
    z-index: 1;
}

.doctor-hero__photo {
    aspect-ratio: 4/4.6;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-3);
    background: var(--cream);
    position: relative;
}
.doctor-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.doctor-hero__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-4);
    font-size: 5rem;
}

.doctor-hero__info { padding-top: 8px; }
.doctor-hero__dept-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: var(--paper);
    color: var(--blue-700);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    border: 1px solid var(--line-soft);
    margin-bottom: 18px;
    transition: all var(--t-1) var(--ease);
}
.doctor-hero__dept-tag:hover {
    background: var(--blue-700);
    color: var(--ivory);
    border-color: var(--blue-700);
}
.doctor-hero__dept-tag i { color: var(--gold-deep); }
.doctor-hero__dept-tag:hover i { color: var(--gold-300); }

.doctor-hero__info h1 {
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    line-height: 1.15;
    margin-bottom: 8px;
}
.doctor-hero__specialty {
    font-size: 1.125rem;
    color: var(--blue-600);
    font-weight: 600;
    margin-bottom: 28px;
}

.doctor-hero__details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    margin-bottom: 32px;
    padding: 22px 24px;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
}
.doctor-hero__details li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.doctor-hero__details li > i {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--blue-50);
    color: var(--blue-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.doctor-hero__details li > div { flex: 1; min-width: 0; }
.doctor-hero__details li strong {
    display: block;
    font-size: 0.875rem;
    color: var(--text);
    font-weight: 700;
    line-height: 1.2;
}
.doctor-hero__details li span {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-3);
    margin-top: 2px;
    word-break: break-word;
}
.doctor-hero__details li a { color: var(--blue-600); font-weight: 600; }
.doctor-hero__details li a:hover { color: var(--blue-700); }

.doctor-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.doctor-photo__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-4);
    font-size: 3rem;
    background: var(--cream);
}

/* Make doctor cards proper links */
a.doctor.doctor--link,
.doctor.doctor--link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* ====================================================================
   Responsive
   ==================================================================== */
@media (max-width: 900px) {
    .doctor-hero__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .doctor-hero__photo {
        max-width: 320px;
        margin-inline: auto;
    }
    .doctor-hero__details {
        grid-template-columns: 1fr;
    }
    .dept-single-hero { min-height: 320px; }
    .dept-single-hero__icon { width: 64px; height: 64px; font-size: 1.625rem; }
}

/* ====================================================================
   MOBILE RESPONSIVE FIXES — consolidated
   ==================================================================== */

/* ─── Universal mobile (≤ 768px) ───────────────────── */
@media (max-width: 768px) {

    /* Container padding */
    .container { padding-inline: 16px; }

    /* Body font size — slightly smaller on phones */
    body { font-size: 16px; line-height: 1.7; }

    /* Section padding tighter */
    .section { padding-block: clamp(48px, 9vw, 72px); }
    .section--tight { padding-block: 40px; }

    /* Headings */
    h1 { font-size: clamp(1.625rem, 6vw, 2rem); line-height: 1.2; }
    h2 { font-size: clamp(1.375rem, 5vw, 1.75rem); line-height: 1.25; }
    h3 { font-size: clamp(1.125rem, 4vw, 1.375rem); }

    /* Topbar — keep clock + phone only */
    .topbar { font-size: 0.7rem; padding-block: 6px; }
    .topbar-info > * { font-size: 0.7rem; }
    .topbar-info > *:nth-child(n+3) { display: none; }
    .topbar-actions { gap: 4px; }
    .lang-switch span { display: none; }

    /* Hero carousel */
    .hero { padding: 0; }
    .hero-carousel { height: 70vh; min-height: 480px; }
    .hero-slide__content {
        inset-inline: 12px;
        bottom: 70px;
        padding: 20px 18px;
        max-width: none;
    }
    .hero-slide__content h1 { font-size: 1.5rem; line-height: 1.2; margin-bottom: 10px; }
    .hero-slide__lead { font-size: 0.9375rem; margin-bottom: 16px; }
    .hero-slide__actions { gap: 8px; }
    .hero-slide__actions .btn { padding: 12px 18px; font-size: 0.875rem; flex: 1; min-width: 0; justify-content: center; }
    .hero-arrows { display: none; }
    .hero-dots {
        inset-inline-end: 50%;
        transform: translateX(50%);
        bottom: 18px;
    }
    [dir="rtl"] .hero-dots { transform: translateX(-50%); }

    /* Hero stats strip */
    .hero-stats .container { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
    .hero-stat { padding-inline-start: 10px; }
    .hero-stat:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
    .hero-stat:nth-child(even) { border-inline-start: 1px solid var(--line-soft); }
    .hero-stat .num { font-size: 1.125rem; }
    .hero-stat i { width: 34px; height: 34px; font-size: 0.95rem; }

    /* About editorial — visual stack */
    .about-editorial { grid-template-columns: 1fr; gap: 40px; }
    .about-visual { padding: 0; max-width: 380px; margin-inline: auto; }
    .about-visual__sub { width: 50%; bottom: -16px; inset-inline-end: -10px; }
    .about-visual__stamp {
        width: 84px; height: 84px;
        top: 8px; inset-inline-end: -8px;
    }
    .about-visual__stamp .big { font-size: 1.5rem; }
    .about-visual__stamp .small { font-size: 0.55rem; padding-inline: 8px; }
    .about-features { grid-template-columns: 1fr; gap: 14px; margin-block: 24px; padding-block: 22px; }
    .about-feature > i { width: 40px; height: 40px; font-size: 1rem; }
    .about-actions { flex-direction: column; }
    .about-actions .btn { width: 100%; justify-content: center; }

    /* Accreditations */
    .about-creds { flex-direction: column; align-items: flex-start; padding: 18px; gap: 14px; }
    .creds-items { grid-template-columns: 1fr 1fr; gap: 14px; }
    .cred-item > i { font-size: 1.25rem; }
    .cred-item strong { font-size: 0.8125rem; }
    .cred-item small { font-size: 0.6875rem; }

    /* Bento — full stack */
    .bento { grid-auto-rows: 200px; gap: 12px; }
    .bento > * { grid-column: span 12 !important; grid-row: span 1 !important; }
    .bento-card__content { padding: 18px; }
    .bento-card__title { font-size: 1rem; }
    .bento-card__icon { width: 36px; height: 36px; font-size: 0.95rem; margin-bottom: 10px; }

    /* Doctors swiper / grid */
    .doctors-head { flex-direction: column; align-items: flex-start; gap: 16px; }
    .doctors-head h2 { font-size: 1.5rem; }
    .doctors-head .left { max-width: 100%; }
    .doctors-grid-static { grid-template-columns: 1fr 1fr; gap: 14px; }
    .doctor-body { padding: 12px 14px 14px; gap: 6px; }
    .doctor-body h4 { font-size: 0.875rem; line-height: 1.25; }
    .doctor-body i { width: 30px; height: 30px; font-size: 0.7rem; }
    .doctor-photo .specialty { font-size: 0.6rem; inset-inline: 10px; bottom: 8px; letter-spacing: 0.1em; }

    /* Articles grid */
    .articles-grid { grid-template-columns: 1fr; gap: 18px; }
    .articles-head { flex-direction: column; align-items: flex-start; gap: 14px; }
    .article-body { padding: 18px 18px 22px; }
    .article-body h3 { font-size: 1rem; }
    .article-meta { font-size: 0.75rem; gap: 6px; }

    /* Testimonials */
    .testi { padding: 24px 20px; }
    .testi-quote { font-size: 1rem; line-height: 1.6; margin-bottom: 20px; }
    .testi-author .avatar { width: 44px; height: 44px; font-size: 1.125rem; }
    .testi::before { font-size: 6rem; top: -16px; inset-inline-end: 16px; }
    .testi-nav { margin-top: 20px; }
    .testi-nav button { width: 40px; height: 40px; font-size: 0.875rem; }

    /* CTA editorial */
    .cta-editorial { grid-template-columns: 1fr; padding: 28px 22px; text-align: center; gap: 22px; }
    .cta-editorial h2 { font-size: 1.375rem; }
    .cta-editorial p { font-size: 0.9375rem; }
    .cta-editorial .actions { justify-content: center; flex-direction: column; width: 100%; }
    .cta-editorial .actions .btn { width: 100%; justify-content: center; }

    /* Footer */
    .footer { padding-top: 56px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
    .footer h5 { margin-bottom: 14px; }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        font-size: 0.7rem;
    }
    .footer-credit { justify-content: center; }
    .footer-legal { justify-content: center; }

    /* Floating buttons — smaller */
    .fab { width: 46px; height: 46px; font-size: 1.25rem; bottom: 18px; }

    /* Page header (inner pages) */
    .page-head { padding-block: 48px; }
    .page-head h1 { font-size: clamp(1.625rem, 6vw, 2.125rem); }
    .page-head .page-lead { font-size: 0.9375rem; }
    .breadcrumbs { padding: 6px 12px; font-size: 0.75rem; flex-wrap: wrap; }

    /* Departments cards */
    .depts-list { grid-template-columns: 1fr; gap: 18px; }
    .dept-card__body { padding: 30px 20px 22px; }
    .dept-card__body h3 { font-size: 1.0625rem; }
    .dept-card__body p { font-size: 0.875rem; }

    /* Values grid */
    .values-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .value-card { padding: 22px 16px; }
    .value-card__icon { width: 48px; height: 48px; font-size: 1.25rem; margin-bottom: 14px; }
    .value-card h4 { font-size: 0.9375rem; }
    .value-card p { font-size: 0.8125rem; }

    /* Mission-Vision */
    .mv-grid { grid-template-columns: 1fr; gap: 16px; }
    .mv-card { padding: 24px 20px; }

    /* Contact info cards */
    .contact-info-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .contact-info-card { padding: 20px 14px; }
    .contact-info-card h5 { font-size: 0.8125rem; }
    .contact-info-card p { font-size: 0.75rem; }

    .contact-split { grid-template-columns: 1fr; gap: 24px; }
    .contact-form { padding: 22px 18px; }
    .form-row { grid-template-columns: 1fr; gap: 10px; }
    .form-input, .form-select, .form-textarea { padding: 12px 14px; font-size: 0.9375rem; }

    .dept-contact-grid { grid-template-columns: 1fr; gap: 12px; }

    /* Single article */
    .article-hero__overlay { padding-block: 40px; }
    .article-hero__title { font-size: 1.5rem; line-height: 1.25; }
    .article-hero__lead { font-size: 0.9375rem; line-height: 1.55; }
    .article-hero__meta { font-size: 0.75rem; }

    .article-content { font-size: 0.9375rem; line-height: 1.75; }
    .article-content h2 { font-size: 1.25rem; margin: 24px 0 12px; }
    .article-content h3 { font-size: 1.0625rem; margin: 18px 0 8px; }
    .article-content img { margin: 18px 0; }
    .article-content blockquote { padding: 16px 18px; font-size: 0.9375rem; }
    .article-share { gap: 8px; margin-top: 32px; padding-top: 20px; }
    .article-share__label { width: 100%; margin-bottom: 4px; }
    .article-share a { width: 36px; height: 36px; font-size: 0.875rem; }

    /* Single department */
    .dept-single-hero { min-height: 280px; }
    .dept-single-hero__overlay { padding-block: 36px; }
    .dept-single-hero__icon { width: 56px; height: 56px; font-size: 1.5rem; margin-bottom: 14px; }
    .dept-single-hero__title { font-size: 1.625rem; line-height: 1.2; margin-bottom: 12px; }
    .dept-single-hero__lead { font-size: 0.9375rem; margin-bottom: 18px; }
    .dept-single-hero__actions { flex-direction: column; }
    .dept-single-hero__actions .btn { width: 100%; justify-content: center; }

    /* Single doctor */
    .doctor-hero { padding-block: 36px; }
    .doctor-hero__grid { grid-template-columns: 1fr; gap: 24px; }
    .doctor-hero__photo {
        max-width: 240px;
        margin-inline: auto;
        aspect-ratio: 4/4.6;
    }
    .doctor-hero__info { padding-top: 0; text-align: center; }
    .doctor-hero__info h1 { font-size: 1.5rem; }
    .doctor-hero__specialty { font-size: 1rem; margin-bottom: 20px; }
    .doctor-hero__details {
        grid-template-columns: 1fr;
        padding: 18px;
        gap: 14px;
        text-align: start;
    }
    .doctor-hero__details li > i { width: 34px; height: 34px; font-size: 0.875rem; }
    .doctor-hero__details li strong { font-size: 0.8125rem; }
    .doctor-hero__details li span { font-size: 0.75rem; }
    .doctor-hero__actions { flex-direction: column; }
    .doctor-hero__actions .btn { width: 100%; justify-content: center; }

    /* Buttons everywhere */
    .btn { padding: 12px 20px; font-size: 0.875rem; min-height: 44px; }
    .btn-lg { padding: 14px 24px; font-size: 0.9375rem; min-height: 48px; }
    .btn-sm { padding: 8px 14px; font-size: 0.75rem; min-height: 36px; }

    /* Eyebrow */
    .eyebrow { font-size: 0.7rem; letter-spacing: 0.18em; }
    .eyebrow::before { width: 24px; }

    /* Section heads */
    .section-head { margin-bottom: 32px; }
    .section-head h2 { margin-bottom: 12px; }
    .section-head .lead { font-size: 0.9375rem; }
}

/* ─── Extra small (≤ 420px) ───────────────────────── */
@media (max-width: 420px) {
    .doctors-grid-static { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .contact-info-grid { grid-template-columns: 1fr; }
    .hero-stats .container { grid-template-columns: 1fr; }
    .hero-stat { border-inline-start: 0 !important; padding-inline-start: 0 !important; }
    .creds-items { grid-template-columns: 1fr; }
    .hero-slide__content { padding: 16px; }
    .hero-slide__content h1 { font-size: 1.25rem; }
    .article-hero__title { font-size: 1.25rem; }
    .dept-single-hero__title { font-size: 1.375rem; }
    .doctor-hero__info h1 { font-size: 1.25rem; }
}

/* ─── Prevent horizontal overflow ─────────────────── */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}
img, video, iframe { max-width: 100%; height: auto; }
table { max-width: 100%; }
pre { overflow-x: auto; }

/* ====================================================================
   Mobile language toggle (inside hamburger drawer)
   ==================================================================== */

/* Hidden on desktop — topbar handles it there */
.nav-menu__lang { display: none; }

@media (max-width: 820px) {
    /* Visible inside opened mobile drawer */
    .nav-menu.is-open .nav-menu__lang {
        display: block;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--line-soft);
    }

    .nav-link--lang {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 18px;
        background: var(--gold-50);
        color: var(--gold-deep);
        border: 1px solid var(--gold-200);
        border-radius: 10px;
        font-size: 1rem;
        font-weight: 700;
        cursor: pointer;
        font-family: inherit;
        transition: all var(--t-1) var(--ease);
    }
    .nav-link--lang i {
        color: var(--gold-deep);
        font-size: 1.1rem;
    }
    .nav-link--lang:hover,
    .nav-link--lang:active {
        background: var(--gold);
        color: var(--ink);
        border-color: var(--gold);
    }
    .nav-link--lang:hover i { color: var(--ink); }
}

/* ====================================================================
   Direction-specific tweaks (handled by [dir="rtl"] when needed)
   Most layout already uses inset-inline / margin-inline / padding-inline
   ==================================================================== */

/* Number digits stay LTR-direction even when wrapping RTL Arabic */
.num, .counter, [dir="ltr"] { unicode-bidi: isolate; }

/* Phone / email links always render LTR */
a[href^="tel:"], a[href^="mailto:"] {
    unicode-bidi: isolate;
}

/* ====================================================================
   POLISH: Navbar + badges/tags — better proportions & responsive
   ==================================================================== */

/* ─── Navbar refinements ─────────────────────────── */
.nav-brand {
    min-width: 0; /* prevent flex overflow */
    flex-shrink: 0;
}
.nav-brand img,
.nav-brand-fallback {
    flex-shrink: 0;
    object-fit: contain;
}
.nav-brand-text {
    min-width: 0;
    overflow: hidden;
}
.nav-brand-name,
.nav-brand-tag {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-row {
    min-width: 0;
    gap: 16px;
}

.nav-menu {
    min-width: 0;
    overflow: hidden;
}

/* ─── Topbar refinements ─────────────────────────── */
.topbar {
    overflow: hidden;
}
.topbar-row {
    min-width: 0;
    flex-wrap: nowrap;
}
.topbar-info {
    min-width: 0;
    overflow: hidden;
    flex-wrap: nowrap;
}
.topbar-info > * {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.topbar-actions { flex-shrink: 0; }

/* ─── Article tag polish ─────────────────────────── */
.article-tag {
    max-width: calc(100% - 28px); /* don't overflow card */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 6px rgba(15,36,54,0.10);
    line-height: 1.4;
}
.article-tag--blue {
    background: rgba(255,255,255,0.95);
    color: var(--blue-700);
    border: 1px solid rgba(255,255,255,0.5);
}
.article-tag--gold {
    background: var(--gold);
    color: var(--ink);
    border: 1px solid var(--gold-deep);
}

/* ─── Doctor specialty badge polish ───────────────── */
.doctor-photo .specialty {
    background: rgba(15,36,54,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 5px 10px;
    border-radius: 6px;
    line-height: 1.2;
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ─── Department card icon ───────────────────────── */
.dept-card__icon,
.bento-card__icon {
    transition: transform var(--t-2) var(--ease);
}
.dept-card:hover .dept-card__icon { transform: scale(1.08) rotate(-3deg); }
.bento-card:hover .bento-card__icon { transform: scale(1.06); }

/* ─── Department single hero icon ────────────────── */
.dept-single-hero__icon {
    transition: transform var(--t-3) var(--ease);
}
.dept-single-hero__icon:hover {
    transform: scale(1.05) rotate(-5deg);
}

/* ─── Doctor hero dept tag ───────────────────────── */
.doctor-hero__dept-tag {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ─── Footer credit polish ───────────────────────── */
.footer-credit__brand {
    flex-shrink: 0;
}

/* ====================================================================
   Responsive — Navbar + badges on mobile
   ==================================================================== */
@media (max-width: 1024px) {
    /* On medium screens, hide the brand tagline to free space */
    .nav-brand-tag { display: none; }
    .nav-brand-name { font-size: 0.9375rem; }
}

@media (max-width: 820px) {
    /* Navbar more compact */
    .nav-row { gap: 10px; }
    .nav-brand img,
    .nav-brand-fallback {
        height: 42px;
        width: 42px;
    }
    .nav-brand-name { font-size: 0.9375rem; }

    /* Bento icon smaller */
    .bento-card__icon { width: 34px; height: 34px; font-size: 0.9rem; }

    /* Article tag smaller */
    .article-tag {
        padding: 5px 10px;
        font-size: 0.6875rem;
    }

    /* Doctor specialty smaller */
    .doctor-photo .specialty {
        font-size: 0.625rem;
        padding: 4px 8px;
        letter-spacing: 0.08em;
    }
}

@media (max-width: 600px) {
    /* Navbar gets tighter */
    .nav-row { gap: 8px; }
    .nav-brand img,
    .nav-brand-fallback {
        height: 38px;
        width: 38px;
    }
    .nav-brand-name { font-size: 0.875rem; }

    /* Department card icon smaller */
    .dept-card__icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        inset-inline-start: 18px;
        bottom: -18px;
    }
    .dept-card__body { padding-top: 30px; }

    /* Doctor hero dept tag smaller */
    .doctor-hero__dept-tag {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

@media (max-width: 420px) {
    /* Brand text fits */
    .nav-brand img,
    .nav-brand-fallback {
        height: 34px;
        width: 34px;
    }
    .nav-brand-name { font-size: 0.8125rem; }

    /* CTA button compact */
    .nav-cta { gap: 6px; }
    .nav-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }
}

/* ====================================================================
   Better focus states for accessibility
   ==================================================================== */
.nav-link:focus-visible,
.nav-link--lang:focus-visible,
.btn:focus-visible,
.lang-switch:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 999px;
}
