/* ============================================================
   SREE RENGA HOSPITAL — "CLINICAL PREMIUM" DESIGN SYSTEM
   Modern, trustworthy, brand-aligned.
   NOTE: legacy class + variable names are preserved so every
   existing Blade template keeps working while looking upgraded.
   ============================================================ */

/* ===================== DESIGN TOKENS ===================== */
:root {
    /* Brand palette from the current Sree Renga Hospital site */
    --primary: #8A2E83;
    --primary-dark: #5B245B;
    --primary-darker: #211832;
    --primary-light: #A8559D;
    --primary-050: #FBF1F8;
    --primary-100: #F1D7EA;

    --secondary: #B1123A;
    --secondary-dark: #8F0F30;
    --accent: #E6392E;
    --accent-dark: #C02D25;
    --gold: #C59A3D;

    /* Ink & neutrals */
    --ink: #111827;
    --navy-900: #211832;
    --text-dark: #111827;
    --text: #111827;
    --text-muted: #64748B;
    --white: #ffffff;

    --surface: #ffffff;
    --surface-2: #F8FAFC;
    --surface-3: #F1F5F9;
    --bg-light: #F8FAFC;
    --bg-section: #F8F1F6;
    --border-color: #E2E8F0;
    --border-strong: #D7CBE4;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #B1123A 0%, #8A2E83 100%);
    --grad-primary-soft: linear-gradient(135deg, #A8559D, #8A2E83);
    --grad-hero: radial-gradient(120% 120% at 85% 10%, #8A2E83 0%, #2B1833 52%, #111827 100%);
    --grad-emergency: linear-gradient(135deg, #E6392E 0%, #B1123A 58%, #8F0F30 100%);
    --grad-teal: linear-gradient(135deg, #0F766E, #6B3FA0);

    /* Shadows (soft, layered, ink-tinted) */
    --shadow-xs: 0 1px 2px rgba(17,24,39,.06);
    --shadow-sm: 0 2px 8px rgba(17,24,39,.06), 0 1px 2px rgba(17,24,39,.04);
    --shadow-md: 0 10px 30px -8px rgba(17,24,39,.12), 0 4px 10px -4px rgba(17,24,39,.06);
    --shadow-lg: 0 30px 70px -18px rgba(17,24,39,.22), 0 10px 24px -12px rgba(17,24,39,.12);
    --shadow-primary: 0 12px 28px -8px rgba(138,46,131,.42);
    --shadow-emergency: 0 12px 28px -8px rgba(177,18,58,.45);

    /* Radius scale */
    --r-xs: 8px;
    --r-sm: 12px;
    --r: 16px;
    --r-lg: 22px;
    --r-xl: 30px;
    --r-pill: 999px;
    --radius: 16px;            /* legacy alias -> upgraded */
    --radius-lg: 22px;         /* legacy alias -> upgraded */

    /* Spacing scale (4px base) */
    --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
    --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
    --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;
    --section-pad: clamp(56px, 8vw, 104px);

    /* Motion */
    --t-fast: .18s cubic-bezier(.4,0,.2,1);
    --t: .28s cubic-bezier(.4,0,.2,1);
    --ease-spring: cubic-bezier(.34,1.56,.64,1);
    --transition: all .28s cubic-bezier(.4,0,.2,1); /* legacy alias */

    /* Type */
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;

    --fs-hero: clamp(2.4rem, 1.4rem + 3.4vw, 3.8rem);
    --fs-h2: clamp(1.85rem, 1.2rem + 2vw, 2.6rem);
    --fs-h3: clamp(1.3rem, 1rem + 1vw, 1.6rem);
}

/* ===================== BASE / RESET ===================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--surface);
    line-height: 1.7;
    font-size: 1rem;
    overflow-x: hidden;
    padding-top: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.18;
    letter-spacing: -0.02em;
    font-weight: 800;
}
h4, h5, h6 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }

p { margin-bottom: 1rem; }

a { color: var(--primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--primary-light); }

img { max-width: 100%; height: auto; display: block; }

::selection { background: rgba(107,63,160,.16); }

/* Accessibility: skip link */
.skip-link {
    position: fixed;
    top: -80px; left: 16px;
    z-index: 2000;
    background: var(--primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 12px 12px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    transition: top var(--t);
}
.skip-link:focus { top: 0; color: #fff; outline: 3px solid #E9DDF4; }

/* Accessibility: visible keyboard focus */
:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
    border-radius: 4px;
}
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }

/* Section rhythm */
.section-padding { padding: var(--section-pad) 0; }
.section-py-sm { padding: clamp(40px,6vw,72px) 0; }

/* ===================== BUTTON SYSTEM ===================== */
/* One coherent look across every legacy button name. */
.btn,
.btn-appointment, .btn-hero-primary, .btn-hero-secondary,
.btn-emergency-call, .btn-primary-custom, .btn-submit-appt,
.btn-doc-profile, .btn-doc-appt {
    --btn-py: 12px; --btn-px: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .95rem;
    line-height: 1;
    letter-spacing: .01em;
    border: none;
    border-radius: var(--r-pill);
    padding: var(--btn-py) var(--btn-px);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
    will-change: transform;
}
.btn { font-weight: 600; }
.btn:active,
.btn-appointment:active, .btn-hero-primary:active, .btn-submit-appt:active { transform: translateY(0) scale(.99); }

/* Primary (gradient) */
.btn-primary,
.btn-appointment,
.btn-primary-custom,
.btn-submit-appt {
    background: var(--grad-primary);
    color: #fff !important;
    box-shadow: var(--shadow-primary);
}
.btn-primary:hover,
.btn-appointment:hover,
.btn-primary-custom:hover,
.btn-submit-appt:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -10px rgba(107,63,160,.55);
}
.btn-appointment { padding: 11px 24px !important; border-radius: var(--r-pill) !important; font-size: .9rem; }
.btn-submit-appt { padding: 15px 44px; font-size: 1rem; }

/* Outline / secondary */
.btn-outline-primary,
.btn-doc-profile {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--border-strong);
    box-shadow: var(--shadow-xs);
}
.btn-outline-primary:hover,
.btn-doc-profile:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}
.btn-outline-secondary {
    background: #fff; color: var(--text-dark);
    border: 1.5px solid var(--border-strong);
}
.btn-outline-secondary:hover { background: var(--surface-3); color: var(--primary); border-color: var(--border-strong); }

/* Doctor card buttons */
.btn-doc-profile, .btn-doc-appt { flex: 1; --btn-px: 10px; font-size: .82rem; border-radius: var(--r-sm); }
.btn-doc-appt { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-xs); }
.btn-doc-appt:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-primary); }

/* Hero buttons */
.btn-hero-primary {
    background: #fff;
    color: var(--primary) !important;
    padding: 15px 30px;
    box-shadow: 0 14px 30px -10px rgba(0,0,0,.4);
}
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -10px rgba(0,0,0,.5); color: var(--primary-dark) !important; }
.btn-hero-secondary {
    background: rgba(255,255,255,.08);
    color: #fff !important;
    padding: 15px 30px;
    border: 1.5px solid rgba(255,255,255,.45);
    backdrop-filter: blur(6px);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.16); border-color: #fff; color: #fff !important; transform: translateY(-3px); }

/* Emergency */
.btn-emergency-call {
    background: #fff; color: var(--secondary) !important;
    padding: 16px 38px; font-size: 1.05rem;
    box-shadow: 0 14px 34px -10px rgba(0,0,0,.35);
}
.btn-emergency-call:hover { transform: translateY(-3px) scale(1.02); color: var(--secondary-dark) !important; }

.btn-lg { --btn-py: 15px; --btn-px: 34px; font-size: 1rem; }
.btn-sm { --btn-py: 8px; --btn-px: 18px; font-size: .82rem; }
.rounded-pill { border-radius: var(--r-pill) !important; }
.section-cta {
    display: flex;
    justify-content: center;
    padding-inline: 12px;
}
.btn-responsive {
    max-width: 100%;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
}

/* ===================== TOP BAR ===================== */
.top-bar {
    background: var(--ink);
    color: rgba(255,255,255,.82);
    padding: 9px 0;
    font-size: .82rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.top-bar a { color: rgba(255,255,255,.82); font-size: .82rem; transition: color var(--t-fast); }
.top-bar a:hover { color: #fff; }
.top-bar .divider { margin: 0 12px; opacity: .35; }
.top-bar-left i, .top-bar-right i { color: var(--accent); }
.top-bar-right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }

.emergency-link {
    background: var(--secondary);
    color: #fff !important;
    padding: 5px 14px;
    border-radius: var(--r-pill);
    font-weight: 700;
    animation: pulse-emergency 2.4s infinite;
}
.emergency-link i { color: #fff !important; }
@keyframes pulse-emergency {
    0%, 100% { box-shadow: 0 0 0 0 rgba(214,69,65,.5); }
    50% { box-shadow: 0 0 0 7px rgba(214,69,65,0); }
}

.social-links { display: flex; gap: 8px; }
.social-links a {
    color: rgba(255,255,255,.75);
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,.09);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    transition: var(--t);
}
.social-links a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* ===================== NAVBAR ===================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    box-shadow: var(--shadow-sm);
}

.main-navbar {
    background: rgba(255,255,255,.9) !important;
    backdrop-filter: saturate(180%) blur(12px);
    box-shadow: none;
    padding: 10px 0;
    transition: padding var(--t), box-shadow var(--t), background var(--t);
    border-bottom: 1px solid var(--border-color);
}
.main-navbar.scrolled { padding: 7px 0; background: rgba(255,255,255,.96) !important; }

.navbar-brand {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 0;
    margin: 0;
}

.logo-wrap { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-icon { display: flex; filter: drop-shadow(0 6px 14px rgba(107,63,160,.28)); }
.site-logo-img {
    height: 46px;
    width: auto;
    max-width: min(240px, 62vw);
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(107,63,160,.18));
}
.site-logo-img-footer {
    height: 54px;
    padding: 7px 10px;
    background: #fff;
    border-radius: 10px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name { font-family: var(--font-heading); font-size: 1.32rem; font-weight: 800; color: var(--primary); letter-spacing: -.02em; }
.logo-tagline { font-size: .68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 3px; font-weight: 600; }

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: .9rem;
    padding: 9px 15px !important;
    border-radius: 10px;
    position: relative;
    transition: var(--t);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--primary) !important; background: var(--primary-050); }
.navbar-nav .nav-link.active::after {
    content: ''; position: absolute; left: 15px; right: 15px; bottom: 2px;
    height: 2px; border-radius: 2px; background: var(--primary);
}
.navbar-toggler { border: none; padding: 6px 8px; }
.navbar-toggler:focus { box-shadow: none; }

.dropdown-menu {
    border: none;
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    margin-top: 10px !important;
    animation: dropFade .2s ease;
    border-top: 3px solid var(--primary);
    min-width: 260px;
}
@keyframes dropFade { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.dropdown-item {
    border-radius: 10px;
    padding: 10px 14px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--t-fast);
}
.dropdown-item:hover { background: var(--primary-050); color: var(--primary); transform: translateX(3px); }
.dropdown-divider { border-color: var(--border-color); }

/* ===================== HERO (redesigned, photo-free) ===================== */
.hero-section {
    background: var(--grad-hero);
    position: relative;
    overflow: hidden;
    padding: clamp(70px, 9vw, 120px) 0 clamp(80px, 9vw, 120px);
    color: #fff;
}
.hero-section::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        radial-gradient(40% 40% at 12% 18%, rgba(177,18,58,.18), transparent 70%),
        radial-gradient(35% 45% at 95% 80%, rgba(107,63,160,.2), transparent 70%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.035'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-section .container { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(255,255,255,.12);
    color: #fff;
    padding: 8px 18px;
    border-radius: var(--r-pill);
    font-size: .8rem; font-weight: 700; letter-spacing: .3px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.22);
    margin-bottom: 24px;
}
.hero-badge i { color: var(--gold); }

.hero-title {
    font-family: var(--font-heading);
    font-size: var(--fs-hero);
    font-weight: 800;
    color: #fff;
    line-height: 1.08;
    letter-spacing: -.03em;
    margin-bottom: 22px;
}
.hero-title .highlight { color: #F8B8C8; position: relative; white-space: nowrap; }
.hero-title .highlight::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -.08em; height: .1em;
    background: linear-gradient(90deg, #F8B8C8, transparent); border-radius: 4px;
}
.hero-subtitle { color: rgba(255,255,255,.82); font-size: 1.1rem; margin-bottom: 34px; max-width: 540px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }

.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stat { position: relative; }
.hero-stat::after { content: ''; position: absolute; right: -17px; top: 12%; height: 76%; width: 1px; background: rgba(255,255,255,.18); }
.hero-stat:last-child::after { display: none; }
.hero-stat-number { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.02em; }
.hero-stat-label { font-size: .76rem; color: rgba(255,255,255,.7); margin-top: 6px; letter-spacing: .3px; }

/* Hero visual composition */
.hero-image-wrap, .hero-visual { position: relative; min-height: 440px; display: flex; align-items: center; justify-content: center; }
.hero-panel {
    position: relative;
    width: 100%; max-width: 460px;
    border-radius: var(--r-xl);
    padding: 40px 34px;
    background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.55);
    backdrop-filter: blur(14px);
    overflow: hidden;
}
.hero-panel-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 26px; }
.hero-tag {
    font-size: .72rem; font-weight: 700; letter-spacing: .4px;
    color: #eaf6ff; padding: 6px 13px; border-radius: var(--r-pill);
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
}
.hero-emblem {
    width: 200px; height: 200px; margin: 0 auto;
    border-radius: 50%;
    display: grid; place-items: center; text-align: center;
    background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.14), rgba(255,255,255,.04));
    position: relative;
}
.hero-emblem::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from 210deg, #F8B8C8, #E6392E, #8B64BD, #F8B8C8);
    -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%, #000 100%);
    mask: radial-gradient(circle, transparent 62%, #000 63%, #000 100%);
    animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-emblem-num { font-family: var(--font-heading); font-size: 3rem; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.03em; }
.hero-emblem-sub { font-size: .78rem; color: rgba(255,255,255,.82); margin-top: 6px; max-width: 130px; }
.hero-pulse { margin-top: 26px; opacity: .9; }
.hero-pulse path { stroke: #F8B8C8; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 8px rgba(248,184,200,.45)); }

.hero-card-float {
    position: absolute;
    background: #fff;
    border-radius: var(--r);
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 12px;
    animation: float 4s ease-in-out infinite;
    z-index: 3;
    color: var(--text-dark);
}
.hero-card-float.card-1 { top: 6%; left: -6%; }
.hero-card-float.card-2 { bottom: 8%; right: -6%; animation-delay: 2s; }
.hero-card-float .hcf-title { font-weight: 800; font-size: .85rem; color: var(--text-dark); }
.hero-card-float .hcf-sub { font-size: .74rem; color: var(--text-muted); }
.hero-card-float .card-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ===================== QUICK ACCESS ===================== */
.quick-access-shell {
    position: relative;
    z-index: 11;
    margin-bottom: clamp(28px, 4vw, 46px);
}

.quick-access {
    background: #fff;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 10;
    margin-top: -34px;
    border-radius: var(--r-lg);
}
.quick-access .container-fluid { padding: 0; }
.quick-access .row { border-radius: var(--r-lg); overflow: hidden; }
.quick-access-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 26px 16px; text-align: center;
    transition: var(--t);
    border-right: 1px solid var(--border-color);
    text-decoration: none; color: var(--text-dark);
}
.quick-access-item:last-child { border-right: none; }
.quick-access-item:hover { background: var(--primary-050); transform: translateY(-4px); color: var(--primary); }
.quick-icon {
    width: 58px; height: 58px; border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-050), var(--primary-100));
    display: grid; place-items: center; margin-bottom: 12px;
    font-size: 1.4rem; color: var(--primary);
    transition: var(--t);
}
.quick-access-item:hover .quick-icon { background: var(--grad-primary); color: #fff; transform: scale(1.08) rotate(-4deg); box-shadow: var(--shadow-primary); }
.quick-label { font-size: .84rem; font-weight: 700; color: var(--text-dark); }
.quick-access-item:hover .quick-label { color: var(--primary); }

/* ===================== SECTION HEADERS ===================== */
.section-header { text-align: center; max-width: 720px; margin: 0 auto clamp(40px,5vw,60px); }
.section-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--primary);
    font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2.5px;
    margin-bottom: 14px;
    position: relative;
    padding: 0;
}
.section-tag::before, .section-tag::after {
    content: '';
    flex: 0 0 26px;
    width: 26px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}
.section-tag-left {
    justify-content: flex-start;
}
.section-tag-left::before {
    display: none;
}
.section-title { font-size: var(--fs-h2); color: var(--text-dark); margin-bottom: 14px; }
.section-subtitle, .section-desc { color: var(--text-muted); font-size: 1.02rem; max-width: 640px; margin: 0 auto; }
.page-subtitle { color: rgba(255,255,255,.82); font-size: 1.05rem; max-width: 640px; margin-top: 10px; position: relative; z-index: 2; }

/* ===================== STATS SECTION ===================== */
.stats-section {
    background: var(--grad-primary);
    padding: clamp(56px,7vw,80px) 0;
    position: relative; overflow: hidden;
}
.stats-section::before { content: ''; position: absolute; top: -50%; right: -8%; width: 480px; height: 480px; background: rgba(255,255,255,.04); border-radius: 50%; }
.stats-section::after { content: ''; position: absolute; bottom: -40%; left: -6%; width: 360px; height: 360px; background: rgba(230,57,46,.1); border-radius: 50%; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: clamp(16px, 2vw, 26px);
    align-items: stretch;
    position: relative;
    z-index: 2;
}
.stat-card {
    text-align: center;
    padding: 20px 14px;
    color: #fff;
    position: relative;
    min-width: 0;
    border-radius: var(--r);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
}
.stat-icon { font-size: 1.9rem; margin-bottom: 12px; color: rgba(255,255,255,.6); }
.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 2.55vw, 2.7rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.05;
    letter-spacing: 0;
    white-space: nowrap;
}
.stat-number-long {
    font-size: clamp(1.75rem, 2.05vw, 2.2rem);
}
.stat-label { font-size: .9rem; color: rgba(255,255,255,.72); margin-top: 10px; font-weight: 500; }

/* ===================== CARD BASE (shared feel) ===================== */
.card { border-radius: var(--r); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.rounded-3 { border-radius: var(--r) !important; }
.rounded-4 { border-radius: var(--r-lg) !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow, .shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* ===================== DEPARTMENT CARDS ===================== */
.dept-card {
    background: #fff; border-radius: var(--r-lg); padding: 28px;
    box-shadow: var(--shadow-sm); transition: var(--t); height: 100%;
    border: 1px solid var(--border-color); position: relative; overflow: hidden;
    text-decoration: none; color: inherit; display: block;
}
.dept-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--grad-primary); transform: scaleX(0); transform-origin: left; transition: transform var(--t);
}
.dept-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary-100); color: inherit; }
.dept-card:hover::before { transform: scaleX(1); }
.dept-icon-wrap {
    width: 62px; height: 62px; border-radius: 16px;
    display: grid; place-items: center; font-size: 1.55rem;
    margin-bottom: 18px; transition: var(--t);
    background: var(--primary-050); color: var(--primary);
}
.dept-card:hover .dept-icon-wrap { transform: scale(1.08) rotate(-5deg); }
.dept-name { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.dept-desc { font-size: .86rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.dept-link { font-size: .82rem; color: var(--primary); font-weight: 700; display: flex; align-items: center; gap: 7px; }
.dept-link i { transition: transform var(--t); }
.dept-card:hover .dept-link i { transform: translateX(5px); }

/* ===================== DOCTOR CARDS ===================== */
.doctor-card {
    background: #fff; border-radius: var(--r-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: var(--t);
    border: 1px solid var(--border-color); height: 100%;
}
.doctor-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary-100); }

.doctor-img-wrap, .doctor-img { position: relative; padding-top: 88%; overflow: hidden; background: linear-gradient(150deg, var(--primary-100), var(--surface-2)); }
.doctor-img-wrap img, .doctor-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform var(--t); }
.doctor-card:hover .doctor-img-wrap img, .doctor-card:hover .doctor-img img { transform: scale(1.06); }
.home-doctor-card .doctor-img-wrap {
    padding-top: 105%;
    background: #121218;
}
.home-doctor-card .doctor-img-wrap img {
    object-fit: contain;
    object-position: center bottom;
}
.doctor-placeholder { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 4.5rem; color: rgba(107,63,160,.22); }
.doctor-dept-badge {
    position: absolute; bottom: 12px; left: 12px;
    background: rgba(255,255,255,.92); color: var(--primary);
    padding: 5px 13px; border-radius: var(--r-pill); font-size: .72rem; font-weight: 700;
    box-shadow: var(--shadow-xs); backdrop-filter: blur(4px);
}
.doctor-body, .doctor-info { padding: 20px; }
.doctor-info { text-align: center; }
.doctor-name { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.doctor-spec { color: var(--primary-light); font-size: .84rem; font-weight: 700; margin-bottom: 6px; }
.doctor-qual { color: var(--text-muted); font-size: .8rem; margin-bottom: 12px; }
.doctor-exp { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--text-muted); margin-bottom: 16px; }
.doctor-exp i { color: var(--accent); }
.doctor-actions { display: flex; gap: 8px; }
.doctor-card .doctor-actions { margin-top: auto; }
.doctor-info .btn { margin-top: 6px; }
.doctor-info .doctor-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 12px;
}
.doctor-info .doctor-actions .btn.me-2 {
    margin-right: 0 !important;
}

.doctor-body {
    display: flex;
    flex-direction: column;
    min-height: 206px;
}

/* Doctor listing filter bar */
.doctor-filter-bar {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: 16px;
}
.doctor-search-section {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 26px -22px rgba(17,24,39,.3);
    padding: 24px 0;
    position: relative;
    z-index: 3;
}
.doctor-search-form {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: 16px;
}
.doctor-search-form .form-control,
.doctor-search-form .form-select,
.doctor-search-btn {
    min-height: 48px;
}
.doctor-pagination-wrap {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-top: 44px;
}
.srh-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.srh-page-link {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--primary);
    font-size: .86rem;
    font-weight: 800;
    line-height: 1;
    padding: 0 14px;
    text-decoration: none;
    box-shadow: var(--shadow-xs);
}
.srh-page-link:hover {
    background: var(--primary-050);
    border-color: var(--primary-100);
    color: var(--primary-dark);
}
.srh-page-link.is-active {
    background: var(--grad-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-primary);
}
.srh-page-link.is-disabled {
    color: var(--text-muted);
    opacity: .55;
    pointer-events: none;
}
.doctor-pagination-summary {
    margin: 0;
    color: var(--text-muted);
    font-size: .84rem;
}
.doctor-consult-cta {
    background: var(--grad-primary);
    padding: clamp(48px,7vw,72px) 0;
}
.doctor-consult-cta h2 {
    color: #fff;
    font-family: var(--font-heading);
}

/* ===================== TESTIMONIALS ===================== */
.testimonial-section { background: var(--bg-section); }
.testimonial-showcase {
    display: grid;
    grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
    gap: clamp(26px, 5vw, 72px);
    align-items: stretch;
}
.testimonial-list {
    display: grid;
    gap: 18px;
}
.testimonial-card {
    background: #fff; border-radius: var(--r-lg); padding: 34px 30px;
    box-shadow: var(--shadow-sm); height: 100%;
    border: 1px solid var(--border-color); transition: var(--t); position: relative; overflow: hidden;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.testimonial-card::before {
    content: '\201C'; font-family: Georgia, serif; font-size: 6rem; line-height: 1;
    color: var(--primary-100); position: absolute; top: -6px; right: 22px; z-index: 0;
}
.testimonial-card > * { position: relative; z-index: 1; }
.stars { color: #F6A623; font-size: .92rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text { color: var(--text); font-size: .95rem; line-height: 1.75; margin-bottom: 22px; }
.testimonial-author { display: flex; align-items: center; gap: 13px; }
.author-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--grad-primary); display: grid; place-items: center;
    color: #fff; font-weight: 800; font-size: 1.05rem; flex-shrink: 0;
    box-shadow: var(--shadow-xs);
}
.author-name { font-weight: 800; font-size: .92rem; color: var(--text-dark); }
.author-treat { font-size: .78rem; color: var(--text-muted); }
.author-treat i { color: var(--accent); }
.testimonial-trust-panel {
    background:
        linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,255,255,.82)),
        radial-gradient(90% 120% at 100% 0%, rgba(177,18,58,.12), transparent 60%);
    border: 1px solid var(--border-color);
    border-radius: var(--r-lg);
    padding: clamp(28px, 4vw, 44px);
    box-shadow: var(--shadow-sm);
    min-height: 100%;
}
.testimonial-trust-panel h3 {
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    margin-bottom: 12px;
}
.testimonial-trust-panel p {
    color: var(--text-muted);
    max-width: 620px;
}
.trust-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0;
}
.trust-metrics div {
    border-radius: var(--r-sm);
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 16px;
    min-width: 0;
}
.trust-metrics strong {
    display: block;
    color: var(--secondary);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1;
    margin-bottom: 8px;
}
.trust-metrics span {
    display: block;
    color: var(--text-muted);
    font-size: .82rem;
    line-height: 1.35;
}

/* ===================== ACCREDITATION BADGES ===================== */
.accred-section { padding: 50px 0; background: var(--bg-light); }
.accred-badge {
    background: #fff; border-radius: var(--r); padding: 14px 22px;
    box-shadow: var(--shadow-xs); display: flex; align-items: center; gap: 12px;
    border: 1px solid var(--border-color); transition: var(--t);
}
.accred-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-100); }
.accred-badge-name { font-weight: 800; font-size: .9rem; }
.accred-badge-desc { font-size: .74rem; color: var(--text-muted); }
.accreditation-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--t);
}
.accreditation-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-100);
}
.accreditation-logo-panel {
    min-height: 180px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #fff, var(--primary-050));
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
}
.accreditation-logo-panel > img,
.accreditation-logo-grid img {
    max-width: min(180px, 78%);
    max-height: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.accreditation-logo-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: center;
    justify-items: center;
}

/* ===================== ABOUT PAGE MEDIA ===================== */
.about-photo-card {
    overflow: hidden;
    border-radius: var(--r-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    background: #fff;
}
.about-photo-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-story-photo { aspect-ratio: 4 / 3; }
.about-team-photo { aspect-ratio: 812 / 424; }
.about-milestone-card {
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: var(--r-lg);
    border: 1px solid var(--border-color);
    background: #fff;
    box-shadow: var(--shadow-md);
    padding: clamp(14px, 2vw, 24px);
}
.about-milestone-card img {
    display: block;
    width: 100%;
    min-width: 880px;
    height: auto;
}

/* ===================== EMERGENCY SECTION ===================== */
.emergency-section { background: var(--grad-emergency); padding: clamp(52px,7vw,72px) 0; text-align: center; position: relative; overflow: hidden; }
.emergency-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 0%, rgba(255,255,255,.1), transparent 70%); }
.emergency-section .container { position: relative; z-index: 2; }
.emergency-section .section-title { color: #fff; font-family: var(--font-heading); font-size: clamp(1.7rem,3vw,2.3rem); margin-bottom: 12px; }
.emergency-section p { color: rgba(255,255,255,.9); margin-bottom: 28px; }
.emergency-icon-badge {
    width: 78px; height: 78px; margin: 0 auto 18px; border-radius: 50%;
    display: grid; place-items: center; font-size: 2.1rem; color: #fff;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
    animation: pulse-emergency 2.4s infinite;
}

/* ===================== PAGE HEADER ===================== */
.page-header { background: var(--grad-hero); padding: clamp(56px,7vw,84px) 0 clamp(70px,8vw,96px); position: relative; overflow: hidden; }
.page-header::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(40% 60% at 90% 10%, rgba(20,184,166,.16), transparent 70%);
}
.page-header::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 56px; background: var(--surface); clip-path: ellipse(60% 100% at 50% 100%); }
.page-header-content { position: relative; z-index: 2; }
.page-title { font-family: var(--font-heading); font-size: clamp(2rem,4vw,2.9rem); color: #fff; margin-bottom: 12px; position: relative; z-index: 2; }
.page-header .lead, .page-header p { color: rgba(255,255,255,.82); position: relative; z-index: 2; }
.breadcrumb { background: none; padding: 0; margin: 0; position: relative; z-index: 2; }
.breadcrumb-item { color: rgba(255,255,255,.7); font-size: .86rem; }
.breadcrumb-item.active { color: #fff; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.45); }
.breadcrumb-item a { color: rgba(255,255,255,.8); }
.breadcrumb-item a:hover { color: #fff; }

/* ===================== APPOINTMENT FORM ===================== */
.appt-form-wrap { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--border-color); }
.appt-form-header { background: var(--grad-primary); padding: 28px 32px; color: #fff; }
.appt-form-header h3 { color: #fff; }
.appt-form-body { padding: 32px; }

/* ===================== FORMS ===================== */
.form-label { font-weight: 700; font-size: .84rem; color: var(--text-dark); margin-bottom: 7px; letter-spacing: .01em; }
.form-control, .form-select {
    border: 1.5px solid var(--border-strong);
    border-radius: var(--r-sm);
    padding: 11px 16px;
    font-size: .92rem;
    transition: var(--t-fast);
    color: var(--text-dark);
    background-color: #fff;
}
.form-control::placeholder { color: #9aa8b6; }
.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(46,125,178,.14);
}
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--secondary); }
.invalid-feedback { font-size: .8rem; font-weight: 500; }
.input-group-text { border: 1.5px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface-2); color: var(--text-muted); }

/* Small icon box helper (used on doctor detail etc.) */
.icon-box-sm { width: 40px; height: 40px; display: grid; place-items: center; flex-shrink: 0; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.72); }
.footer-top { padding: clamp(56px,7vw,76px) 0 40px; }
.footer-title { color: #fff; font-family: var(--font-heading); font-size: 1rem; font-weight: 700; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--accent); border-radius: 2px; }
.footer-about { font-size: .88rem; line-height: 1.7; color: rgba(255,255,255,.62); }
.badge-accred { background: rgba(255,255,255,.1); color: #fff; padding: 5px 11px; border-radius: 7px; font-size: .72rem; font-weight: 800; letter-spacing: .5px; border: 1px solid rgba(255,255,255,.16); }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: rgba(255,255,255,.62); font-size: .88rem; display: flex; align-items: center; gap: 8px; transition: var(--t-fast); }
.footer-links a::before { content: '\2192'; font-size: .72rem; color: var(--accent); transition: transform var(--t-fast); }
.footer-links a:hover { color: #fff; }
.footer-links a:hover::before { transform: translateX(3px); }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 13px; font-size: .88rem; align-items: flex-start; }
.footer-contact li i { color: var(--accent); margin-top: 3px; width: 16px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,.72); }
.footer-contact a:hover { color: #fff; }
.footer-social { display: flex; gap: 9px; }
.social-btn { width: 38px; height: 38px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.72); border-radius: 10px; display: grid; place-items: center; font-size: .92rem; transition: var(--t); text-decoration: none; }
.social-btn:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: .84rem; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: #fff; }

/* ===================== FLOATING ELEMENTS ===================== */
.whatsapp-float {
    position: fixed; bottom: 26px; right: 24px;
    width: 56px; height: 56px; background: #25D366; color: #fff;
    border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem;
    box-shadow: 0 8px 26px rgba(37,211,102,.45); z-index: 999; transition: var(--t); text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; box-shadow: 0 12px 32px rgba(37,211,102,.55); }
.whatsapp-tooltip { position: absolute; right: 66px; background: var(--ink); color: #fff; padding: 7px 13px; border-radius: 8px; font-size: .78rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: var(--t); box-shadow: var(--shadow-md); }
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

.scroll-top { position: fixed; bottom: 92px; right: 26px; width: 44px; height: 44px; background: var(--primary); color: #fff; border: none; border-radius: 12px; display: grid; place-items: center; cursor: pointer; z-index: 998; opacity: 0; visibility: hidden; transition: var(--t); box-shadow: var(--shadow-md); }
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ===================== STICKY MOBILE ACTION BAR ===================== */
.mobile-action-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    display: none;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 1px;
    background: var(--border-color);
    box-shadow: 0 -8px 24px -8px rgba(17,24,39,.22);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-action-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    background: #fff; color: var(--text-dark); padding: 10px 6px;
    font-size: .72rem; font-weight: 700; text-decoration: none;
}
.mobile-action-bar a i { font-size: 1.1rem; }
.mobile-action-bar .mab-call { color: var(--primary); }
.mobile-action-bar .mab-wa { color: #128C4B; }
.mobile-action-bar .mab-book { background: var(--grad-primary); color: #fff; }

/* ===================== ADMIN ===================== */
.admin-body { background: #EEF3F8; font-family: var(--font-body); }
.admin-sidebar { width: 260px; background: linear-gradient(180deg, var(--ink) 0%, var(--primary) 100%); min-height: 100vh; position: fixed; left: 0; top: 0; z-index: 100; overflow-y: auto; transition: transform var(--t); }
.admin-sidebar-logo { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-logo-text { color: #fff; font-weight: 800; font-size: 1.1rem; }
.sidebar-logo-sub { color: rgba(255,255,255,.5); font-size: .72rem; }
.admin-nav { padding: 16px 12px; }
.admin-nav-section { font-size: .68rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,.35); padding: 14px 12px 6px; font-weight: 800; }
.admin-nav-item { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 10px; color: rgba(255,255,255,.72); font-size: .88rem; font-weight: 600; text-decoration: none; transition: var(--t); margin-bottom: 2px; }
.admin-nav-item:hover, .admin-nav-item.active { background: rgba(255,255,255,.12); color: #fff; }
.admin-nav-item.active { background: rgba(255,255,255,.18); box-shadow: inset 3px 0 0 var(--accent); }
.admin-nav-item i { width: 18px; text-align: center; opacity: .85; }
.admin-main { margin-left: 260px; min-height: 100vh; }
.admin-topbar { background: #fff; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 50; }
.admin-content { padding: 28px; }
.admin-card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); padding: 24px; }
.stat-widget { background: #fff; border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); display: flex; align-items: center; gap: 16px; transition: var(--t); }
.stat-widget:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-widget-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0; }
.stat-widget-number { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; color: var(--text-dark); line-height: 1; }
.stat-widget-label { font-size: .82rem; color: var(--text-muted); margin-top: 4px; }

/* Status badges */
.badge-pending   { background: #FFF3CD; color: #856404; }
.badge-confirmed { background: #D1E7DD; color: #0F5132; }
.badge-completed { background: #CFE2FF; color: #084298; }
.badge-cancelled { background: #F8D7DA; color: #842029; }

/* ===================== UTILITIES ===================== */
.text-primary, .text-primary-custom { color: var(--primary) !important; }
.text-pink { color: #D6336C !important; }
.bg-primary { background: var(--grad-primary) !important; }
.bg-primary-subtle { background: var(--primary-050) !important; }
.bg-primary-custom { background: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-tint { background: var(--primary-050) !important; }
.lh-lg { line-height: 1.85 !important; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 991.98px) {
    body { padding-top: 0; }
    .top-bar .top-bar-left span:not(.emergency-link) { display: none; }
    .hero-section { padding: 56px 0 64px; text-align: center; }
    .hero-actions, .hero-stats, .hero-panel-tags { justify-content: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-image-wrap, .hero-visual { display: none; }
    .quick-access-shell { max-width: none; padding-inline: 0; margin-bottom: 28px; }
    .quick-access { margin-top: 0; border-radius: 0; }
    .quick-access .row { border-radius: 0; }
    .testimonial-showcase { grid-template-columns: 1fr; }
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .navbar-nav { padding: 10px 0; gap: 2px; }
    .navbar-nav .nav-link.active::after { display: none; }
    .mobile-action-bar { display: grid; }
    body { padding-bottom: 62px; }
    .whatsapp-float { bottom: 74px; width: 50px; height: 50px; font-size: 1.4rem; }
    .scroll-top { bottom: 132px; }
}

@media (max-width: 767.98px) {
    html,
    body {
        width: 100dvw;
        min-width: 100dvw;
        max-width: 100dvw;
    }

    .site-header,
    main,
    section,
    .site-footer,
    .mobile-action-bar {
        width: 100dvw;
        max-width: 100dvw;
    }

    .container,
    .container-sm,
    .container-fluid {
        max-width: 100% !important;
    }

    .container > .row,
    .container-fluid > .row,
    section .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    [data-aos],
    [data-aos].aos-init,
    [data-aos].aos-animate {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .hero-title { font-size: 2.1rem; }
    .hero-badge { font-size: .72rem; padding: 7px 14px; white-space: normal; text-align: center; }
    .hero-subtitle { font-size: 1rem; }
    .hero-stats { gap: 22px; }
    .hero-stat::after { display: none; }
    .quick-access-item { padding: 18px 8px; border-bottom: 1px solid var(--border-color); }
    .quick-label { font-size: .74rem; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .stat-card { padding: 18px 10px; }
    .stat-number, .stat-number-long { font-size: clamp(1.55rem, 8vw, 2.1rem); }
    .section-header { margin-bottom: 36px; }
    .dept-card, .testimonial-card { padding: 22px; }
    .trust-metrics { grid-template-columns: 1fr; }
    .appt-form-body { padding: 22px; }
    .doctor-search-section { padding: 18px 0; }
    .doctor-search-form { padding: 14px; }
    .doctor-consult-cta .btn {
        width: 100%;
        margin: 0 0 12px !important;
    }
}

@media (max-width: 575.98px) {
    body { padding-top: 0; }
    .top-bar .top-bar-left { display: none; }
    .top-bar-right { justify-content: center; }
    .top-bar .social-links { display: none; }
    .emergency-link { white-space: normal; text-align: center; }
    .site-logo-img { height: 40px; max-width: min(210px, 64vw); }
    .hero-section { padding-inline: 0; }
    .hero-section .container {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        overflow: hidden;
    }
    .hero-badge {
        width: 100%;
        max-width: min(100%, 340px);
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
        line-height: 1.35;
    }
    .hero-title {
        font-size: clamp(1.85rem, 8.5vw, 2.15rem);
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.12;
    }
    .hero-title .highlight { white-space: normal; }
    .hero-subtitle {
        max-width: 340px;
        overflow-wrap: break-word;
    }
    .hero-actions { flex-direction: column; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; }
    .hero-actions,
    .hero-stats {
        width: 100%;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-stats { gap: 14px; justify-content: center; }
    .hero-stat-number { font-size: 1.6rem; }
    .quick-access .row { margin-left: 0; margin-right: 0; }
    .quick-access-item { min-height: 126px; }
    .quick-label {
        line-height: 1.2;
        max-width: 100%;
        overflow-wrap: anywhere;
    }
    .section-tag { letter-spacing: 1.8px; gap: 9px; }
    .section-tag::before, .section-tag::after { flex-basis: 18px; width: 18px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .doctor-search-form {
        border-radius: var(--r);
        box-shadow: none;
    }
    .doctor-actions {
        flex-direction: column;
    }
    .doctor-info .doctor-actions .btn {
        width: 100%;
    }
    .srh-page-link {
        min-width: 38px;
        height: 38px;
        padding-inline: 11px;
    }
    .accreditation-logo-panel {
        min-height: 150px;
    }
    .accreditation-logo-grid {
        gap: 12px;
    }
    .about-milestone-card img {
        min-width: 720px;
    }
    .mobile-action-bar a {
        line-height: 1.15;
        text-align: center;
        min-width: 0;
        overflow-wrap: anywhere;
    }
}

/* Global overflow safety for narrow screens */
.hero-title, .section-title, .page-title { overflow-wrap: break-word; }
[class*="col-"] { min-width: 0; }

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    [data-aos] { opacity: 1 !important; transform: none !important; }
}
