/* ============================================================
   PAEDIATRIC ENDO-LAPAROSCOPY CENTER — DESIGN SYSTEM
   Matches the main website: deep "scrub" green + brass accent
   Display: Fraunces (serif)  |  UI/body: Manrope + Hind Siliguri (Bangla)
   ============================================================ */
:root {
    --brand-teal:        #0b3b34;
    --brand-teal-dark:   #072c27;
    --brand-teal-darker: #041a16;
    --brand-teal-light:  #e8f0ec;
    --brand-gold:        #b8893f;
    --brand-gold-dark:   #9a7030;
    --brand-ink:         #10241f;
    --brand-muted:       #5b6f69;
    --brand-bg:          #f6f4ee;
    --brand-card:        #FFFFFF;

    /* Override Bootstrap's own variables so every default component
       (buttons, badges, links, focus rings, accordions...) picks up
       the brand palette automatically, without hand-editing every page. */
    --bs-primary: var(--brand-teal);
    --bs-primary-rgb: 11, 59, 52;
    --bs-link-color: var(--brand-teal);
    --bs-link-hover-color: var(--brand-teal-dark);
    --bs-body-font-family: 'Manrope', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, sans-serif;
    --bs-body-color: var(--brand-ink);
    --bs-body-bg: var(--brand-bg);
}

body {
    background: var(--brand-bg);
    font-family: 'Manrope', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--brand-ink);
}

/* Sticky footer: on short pages (like the login screens) the footer should
   sit at the bottom of the viewport instead of leaving a big blank gap
   below it when there isn't enough content to fill the screen. */
html { height: 100%; }
.page-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.page-body > .container.page-fade-in {
    flex: 1 0 auto;
}
.page-body > .app-footer {
    flex-shrink: 0;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand, .card-header, .btn, .accordion-button, .stat-card .fs-2 {
    font-family: 'Manrope', 'Hind Siliguri', sans-serif;
}

/* ---------- Bootstrap component overrides for brand consistency ---------- */
.btn-primary, .btn-primary:focus {
    background-color: var(--brand-teal);
    border-color: var(--brand-teal);
}
.btn-primary:hover, .btn-primary:active {
    background-color: var(--brand-teal-dark) !important;
    border-color: var(--brand-teal-dark) !important;
}
.btn-outline-primary {
    color: var(--brand-teal);
    border-color: var(--brand-teal);
}
.btn-outline-primary:hover {
    background-color: var(--brand-teal);
    border-color: var(--brand-teal);
}
.text-primary { color: var(--brand-teal) !important; }
.bg-primary { background-color: var(--brand-teal) !important; }
.border-primary { border-color: var(--brand-teal) !important; }
.badge.bg-primary { background-color: var(--brand-teal) !important; }
.form-control:focus, .form-select:focus {
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 0.2rem rgba(11, 59, 52, 0.15);
}
.form-check-input:checked {
    background-color: var(--brand-teal);
    border-color: var(--brand-teal);
}
.accordion-button:not(.collapsed) {
    background-color: var(--brand-teal-light);
    color: var(--brand-teal-dark);
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(11, 59, 52, 0.15);
}
.nav-link, a { color: var(--brand-teal); }

/* Gold accent button - for the one or two moments per page that should stand out */
.btn-accent {
    background-color: var(--brand-gold);
    border-color: var(--brand-gold);
    color: #ffffff;
    font-weight: 700;
}
.btn-accent:hover {
    background-color: var(--brand-gold-dark);
    border-color: var(--brand-gold-dark);
    color: #fff;
}

/* ---------- Buttons: consistent premium shape + subtle lift ---------- */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.5rem 1.15rem;
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn-lg { border-radius: 12px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary:hover, .btn-accent:hover {
    box-shadow: 0 8px 20px -8px rgba(11, 59, 52, 0.45);
}

/* ---------- Navbar ---------- */
.app-navbar {
    background: linear-gradient(120deg, var(--brand-teal) 0%, var(--brand-teal-darker) 100%);
    border-bottom: 3px solid var(--brand-gold);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}
.app-navbar .navbar-brand {
    font-weight: 700;
    letter-spacing: 0.2px;
}
.navbar-brand, .dash-sidebar-brand a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}
.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    flex-shrink: 0;
}
.app-navbar .nav-link {
    color: rgba(255,255,255,0.88) !important;
    font-weight: 500;
}
.app-navbar .nav-link:hover {
    color: #fff !important;
}

.app-footer {
    background: var(--brand-teal-light);
    color: var(--brand-muted);
}

/* ---------- Hero panel (home page) — split layout with an animated,
   drifting-orb background and a floating illustration on larger screens ---------- */
.hero-panel {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 15% 20%, rgba(184, 137, 63,0.18), transparent 45%),
                linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-teal-darker) 100%);
    color: #fff;
    border-radius: 24px;
    padding: 3.25rem 2.5rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 20px 45px -20px rgba(7, 44, 39, 0.55);
}
.hero-split {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    text-align: left;
}
.hero-text { flex: 1 1 440px; min-width: 0; }
.hero-visual {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
}
.hero-panel h1 {
    font-size: 2.4rem;
    margin-bottom: 0.75rem;
}
.hero-panel .lead {
    color: rgba(255,255,255,0.88);
    max-width: 480px;
    margin-bottom: 1.5rem;
}
.hero-kicker {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-gold);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(184, 137, 63,0.4);
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    margin-bottom: 1rem;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Drifting blurred orbs behind the hero content - the "live animation" /
   premium ambient background, entirely CSS, no image weight. */
.hero-bg-orbs {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    border-radius: inherit;
}
@keyframes heroOrbDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(18px, -16px) scale(1.08); }
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.45;
    animation: heroOrbDrift 11s ease-in-out infinite;
}
.hero-orb.orb-1 { width: 260px; height: 260px; background: var(--brand-gold); top: -70px; left: -50px; }
.hero-orb.orb-2 { width: 220px; height: 220px; background: #2F9E58; bottom: -80px; right: 12%; animation-delay: 2.5s; }
.hero-orb.orb-3 { width: 190px; height: 190px; background: #3B7CE9; top: 15%; right: -60px; animation-delay: 5s; }

@media (max-width: 991.98px) {
    .hero-split { flex-direction: column; text-align: center; }
    .hero-panel .lead { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-visual { max-width: 280px; }
}
@media (max-width: 575.98px) {
    .hero-visual { max-width: 220px; }
    .trust-strip { gap: 0.9rem 1.25rem; padding: 1rem; }
    .trust-item { font-size: 0.85rem; }
    .trust-item i { width: 30px; height: 30px; font-size: 0.85rem; }
}

/* Trust-badge strip beneath the hero - quick, scannable reassurance */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    justify-content: center;
    padding: 1.1rem 1rem;
    margin-bottom: 1.75rem;
    background: var(--brand-card);
    border-radius: 16px;
    box-shadow: 0 10px 28px -18px rgba(11, 59, 52, 0.2);
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--brand-ink);
}
.trust-item i {
    color: var(--brand-teal);
    background: var(--brand-teal-light);
    width: 34px; height: 34px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* Gentle scroll-reveal for sections below the fold */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .hero-orb, .reveal-on-scroll { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ---------- Cards ---------- */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 28px -16px rgba(11, 59, 52, 0.18);
    background: var(--brand-card);
}
.card-header {
    border-radius: 16px 16px 0 0 !important;
    font-weight: 600;
    border-bottom: 1px solid rgba(11, 59, 52, 0.08);
}
.hospital-card {
    transition: transform .18s ease, box-shadow .18s ease;
}
.hospital-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 34px -18px rgba(11, 59, 52, 0.35);
}

/* Public schedule/slot picker on the home page - a soft gold top accent
   ties it visually to the booking flow without shouting for attention. */
.schedule-picker-card {
    border-top: 3px solid var(--brand-gold);
    overflow: hidden;
}
.schedule-picker-card .card-header {
    background: var(--brand-teal-light);
    color: var(--brand-teal-dark);
}

/* Subtle "open" pill badge instead of a flat solid-green badge */
.badge-open {
    background: var(--brand-teal-light);
    color: var(--brand-teal-dark);
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
}

.slot-btn.selected {
    background-color: var(--brand-teal) !important;
    border-color: var(--brand-teal) !important;
    color: #fff !important;
}
.badge-status-Pending { background: var(--brand-gold); color: #ffffff; }
.badge-status-Confirmed { background: var(--brand-teal); }
.badge-status-Completed { background: #2F9E58; }
.badge-status-Cancelled { background: #D64550; }
.stat-card {
    border-radius: 16px;
    color: #fff;
    padding: 22px;
    box-shadow: 0 14px 30px -16px rgba(11, 59, 52, 0.4);
}

/* Admin-only surfaces: a deeper shade of the brand teal instead of plain Bootstrap "dark" */
.bg-brand-dark { background-color: var(--brand-teal-darker) !important; }
.btn-brand-dark {
    background-color: var(--brand-teal-darker);
    border-color: var(--brand-teal-darker);
    color: #fff;
}
.btn-brand-dark:hover {
    background-color: #000;
    border-color: #000;
    color: #fff;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS - mobile / tablet / laptop
   ============================================================ */

/* Prevent any accidental horizontal scroll on the whole page */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Long emails/addresses/notes should wrap instead of forcing table/card overflow */
.card-body, table td, table th {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Tables: comfortable horizontal scroll with a visible scrollbar hint on touch devices */
.table-responsive {
    -webkit-overflow-scrolling: touch;
}

/* Bigger, easier-to-tap buttons and form controls on touch screens */
@media (max-width: 767.98px) {
    .btn {
        min-height: 42px;
    }
    .form-control, .form-select {
        font-size: 16px; /* prevents iOS Safari from auto-zooming on focus */
    }
    .navbar-brand {
        font-size: 1rem;
    }
    .brand-logo {
        width: 30px;
        height: 30px;
    }
    .card-header {
        font-size: 0.95rem;
    }
}

/* Hero panel: shrink padding on phones/tablets so it doesn't dominate the screen */
@media (max-width: 991.98px) {
    .hero-panel {
        padding: 2.25rem 1.5rem;
    }
}
@media (max-width: 575.98px) {
    .hero-panel {
        padding: 1.75rem 1.1rem;
        border-radius: 16px;
    }
    .hero-panel h1 {
        font-size: 1.6rem;
    }
    .hero-panel .lead {
        font-size: 1rem;
    }
}

/* Slot picker: comfortable tap targets, wraps naturally on any width */
.slot-btn {
    min-width: 84px;
    min-height: 40px;
}

/* Stat cards stack cleanly and keep readable numbers on small screens */
@media (max-width: 575.98px) {
    .stat-card .fs-2 {
        font-size: 1.5rem !important;
    }
}

/* Status-update row (select + button) on doctor appointment cards - the
   button must never wrap its own label at any viewport width, and the
   select should flex to fill whatever space is left beside it. */
.status-update-form {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}
.status-update-form select {
    flex: 1 1 auto;
    min-width: 0;
}
.status-update-form button {
    flex: 0 0 auto;
    white-space: nowrap;
}
@media (max-width: 420px) {
    .status-update-form {
        flex-direction: column;
    }
    .status-update-form select,
    .status-update-form button {
        width: 100%;
    }
}

/* Buttons never wrap their own label mid-word; if there's not enough room
   the button itself drops to a new line (handled by flex-wrap on its
   parent) instead of breaking the text awkwardly. */
.btn { white-space: nowrap; }

/* Accordion schedule tables: allow horizontal scroll instead of squeezing time inputs */
.accordion-body input[type="time"] {
    min-width: 110px;
}

/* Navbar: comfortable spacing for nav links once collapsed into the mobile menu */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

/* Container padding tightens slightly on very small phones */
@media (max-width: 400px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Images/icons inside cards never overflow their container */
.card img, .card svg {
    max-width: 100%;
    height: auto;
}

/* Doctor diagnosis form: stack the Yes/No button-group vertically on phones
   so both labels stay fully readable instead of squeezing side-by-side */
@media (max-width: 575.98px) {
    #diagnosisForm .btn-group {
        flex-direction: column;
    }
    #diagnosisForm .btn-group .btn {
        width: 100%;
        border-radius: 0.375rem !important;
        margin-bottom: 6px;
    }
}

/* ============================================================
   PREMIUM AUTH SCREENS — split layout, tabs, original illustration
   ============================================================ */

/* One quiet, orchestrated entrance for the whole auth card - not scattered
   effects on every element. Respects reduced-motion preference. */
@keyframes authRise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.auth-shell {
    position: relative;
    display: flex;
    align-items: center;
    gap: 3rem;
    background: var(--brand-card);
    border-radius: 24px;
    box-shadow: 0 24px 60px -28px rgba(11, 59, 52, 0.35);
    padding: 3rem;
    animation: authRise .5s ease both;
    z-index: 1;
}

/* Soft ambient glow drifting behind the auth card - the "premium" backdrop */
@keyframes authGlow {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(14px, -10px) scale(1.06); }
    100% { transform: translate(-10px, 8px) scale(1); }
}
.auth-shell::before {
    content: "";
    position: absolute;
    inset: -70px;
    z-index: -1;
    background:
        radial-gradient(circle at 18% 22%, rgba(184, 137, 63,0.22), transparent 52%),
        radial-gradient(circle at 82% 78%, rgba(11, 59, 52,0.28), transparent 55%);
    filter: blur(6px);
    animation: authGlow 9s ease-in-out infinite alternate;
    pointer-events: none;
}

/* Gentle staggered entrance for the sign-in form itself, layered on top of
   the whole-card rise so the page feels considered rather than static. */
.auth-tabs      { animation: authRise .5s ease both; animation-delay: .06s; }
.auth-title     { animation: authRise .5s ease both; animation-delay: .12s; }
.auth-subtitle  { animation: authRise .5s ease both; animation-delay: .18s; }
.auth-form-col form { animation: authRise .5s ease both; animation-delay: .24s; }
.auth-footnote, .auth-role-switch { animation: authRise .5s ease both; animation-delay: .34s; }

@media (prefers-reduced-motion: reduce) {
    .auth-shell, .auth-shell::before, .auth-tabs, .auth-title, .auth-subtitle,
    .auth-form-col form, .auth-footnote, .auth-role-switch,
    .floating-badge, .auth-mock-card, .hero-panel { animation: none !important; }
}

/* A subtle shine sweep across the primary call-to-action button on hover -
   a small, tasteful "premium" flourish rather than a loud effect. */
.btn-accent {
    position: relative;
    overflow: hidden;
}
.btn-accent::after {
    content: "";
    position: absolute;
    top: 0; left: -75%;
    width: 45%; height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: skewX(-20deg);
    transition: left .55s ease;
}
.btn-accent:hover::after { left: 130%; }

.auth-form-col {
    flex: 1 1 380px;
    max-width: 420px;
    margin: 0 auto;
}
.auth-illustration-col {
    flex: 1 1 380px;
    display: flex;
    justify-content: center;
}

.auth-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.auth-subtitle {
    color: var(--brand-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ---------- Tab bar (Patient / Admin, and similar) ---------- */
.auth-tabs {
    display: flex;
    gap: 1.5rem;
    border-bottom: 2px solid var(--brand-teal-light);
    margin-bottom: 1.75rem;
}
.auth-tab {
    padding: 0.6rem 0.1rem;
    font-weight: 600;
    color: var(--brand-muted);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color .15s ease, border-color .15s ease;
}
.auth-tab:hover { color: var(--brand-teal); }
.auth-tab.active {
    color: var(--brand-teal);
    border-bottom-color: var(--brand-gold);
}
.auth-tab.disabled {
    color: #c3cfce;
    pointer-events: none;
    cursor: not-allowed;
}
.auth-tab .badge { font-size: 0.65rem; vertical-align: middle; }

.auth-footnote {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--brand-muted);
}
.auth-role-switch {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

/* ---------- Original illustration: an appointment-card mockup
   with gently floating status badges around it ---------- */
.auth-illustration {
    position: relative;
    width: 100%;
    max-width: 340px;
    padding: 2rem 0;
}
@keyframes cardBreathe {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}
.auth-mock-card {
    background: linear-gradient(160deg, #ffffff, var(--brand-teal-light));
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 45px -18px rgba(11, 59, 52, 0.35);
    position: relative;
    z-index: 2;
    animation: cardBreathe 6s ease-in-out infinite;
}
.auth-mock-header { display: flex; gap: 6px; margin-bottom: 1.1rem; }
.auth-mock-header .dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: rgba(11, 59, 52,0.18);
}
.auth-mock-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #fff;
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.65rem;
    box-shadow: 0 6px 16px -10px rgba(11, 59, 52,0.25);
}
.auth-mock-row i {
    color: var(--brand-teal);
    background: var(--brand-teal-light);
    width: 34px; height: 34px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.mock-line {
    height: 8px;
    border-radius: 4px;
    background: #E4EAE9;
    margin-bottom: 6px;
}
.mock-line:last-child { margin-bottom: 0; }
.mock-line.w-70 { width: 70%; }
.mock-line.w-80 { width: 80%; }
.mock-line.w-50 { width: 50%; }
.mock-line.w-40 { width: 40%; }
.auth-mock-pill {
    display: inline-block;
    margin-top: 0.4rem;
    background: var(--brand-gold);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.floating-badge {
    position: absolute;
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 14px 28px -12px rgba(11, 59, 52,0.45);
    z-index: 3;
    animation: floatBadge 4.5s ease-in-out infinite;
}
.badge-1 { top: -6px; right: 10%; background: var(--brand-teal); animation-delay: 0s; }
.badge-2 { bottom: 18%; left: -18px; background: var(--brand-gold); color: #ffffff; animation-delay: 1.2s; }
.badge-3 { bottom: -10px; right: 18%; background: #D64550; animation-delay: 2.1s; }

@media (max-width: 991.98px) {
    .auth-shell {
        flex-direction: column-reverse;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }
    .auth-illustration { max-width: 260px; padding: 1rem 0; }
    .auth-form-col { max-width: 100%; width: 100%; }
}

/* ---------- Doctor profile card (photo, name, qualification, designation, specialty) ---------- */
.doctor-profile-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--brand-card);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 14px 34px -18px rgba(11, 59, 52, 0.25);
    width: 100%;
}
.doctor-profile-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--brand-teal-light);
    flex-shrink: 0;
}
.doctor-profile-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-teal-light);
    color: var(--brand-teal);
    font-size: 2.1rem;
}
.doctor-profile-info { min-width: 0; }
.doctor-profile-name {
    font-family: 'Manrope', 'Hind Siliguri', sans-serif;
    font-weight: 700;
    margin-bottom: 0.2rem;
    font-size: 1.35rem;
}
.doctor-profile-qualification {
    color: var(--brand-muted);
    font-size: 0.92rem;
    margin-bottom: 0;
}
.doctor-profile-divider {
    border-top: 1px solid var(--brand-bg);
    margin: 0.75rem 0;
}
.doctor-profile-designation,
.doctor-profile-specialty {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.92rem;
    margin-bottom: 0.5rem;
}
.doctor-profile-designation:last-child,
.doctor-profile-specialty:last-child { margin-bottom: 0; }
.doctor-profile-designation i {
    color: var(--brand-teal);
    width: 16px;
    text-align: center;
}
.doctor-profile-specialty {
    font-weight: 600;
    color: var(--brand-teal-dark);
}
.doctor-profile-specialty i { color: var(--brand-gold-dark); width: 16px; text-align: center; }

@media (max-width: 575.98px) {
    .doctor-profile-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    .doctor-profile-designation,
    .doctor-profile-specialty {
        justify-content: center;
    }
}

/* ---------- Doctor card + hospital list stacked on the login page ---------- */
.auth-doctor-stack {
    width: 100%;
    max-width: 380px;
}
.auth-hospital-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.25rem;
}
.auth-hospital-item {
    background: var(--brand-card);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    box-shadow: 0 8px 20px -14px rgba(11, 59, 52, 0.25);
}
.auth-hospital-item h6 {
    font-family: 'Manrope', 'Hind Siliguri', sans-serif;
    font-weight: 700;
    margin-bottom: 0.3rem;
    font-size: 0.98rem;
}
.auth-hospital-item h6 i { color: var(--brand-teal); margin-right: 0.3rem; }
.auth-hospital-item p {
    color: var(--brand-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* One quiet fade-up for the main content area of every page - not scattered
   per-card effects, just a single settling motion as the page appears. */
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.page-fade-in {
    animation: pageFadeIn .4s ease both;
}
@media (prefers-reduced-motion: reduce) {
    .page-fade-in { animation: none !important; }
}

/* ============================================================
   DASHBOARD SHELL — premium sidebar layout for Admin & Doctor
   ============================================================ */
:root {
    --dash-sidebar-w: 264px;
    --dash-topbar-h: 64px;
}

.dash-body {
    background: var(--brand-bg);
}

.dash-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.dash-sidebar {
    width: var(--dash-sidebar-w);
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--brand-teal-darker) 0%, var(--brand-teal-dark) 55%, var(--brand-teal) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    box-shadow: 0 0 40px -12px rgba(0, 0, 0, 0.35);
    transition: transform .25s ease;
}

.dash-sidebar-brand {
    padding: 1.4rem 1.4rem 0.6rem;
}
.dash-sidebar-brand a {
    color: #fff !important;
    font-family: 'Manrope', 'Hind Siliguri', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    letter-spacing: 0.2px;
}
.dash-sidebar-brand a i { color: var(--brand-gold); margin-right: 0.35rem; }

.dash-sidebar-role {
    padding: 0 1.4rem 1.2rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(255,255,255,0.55);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 1rem;
    padding-bottom: 1.1rem;
}
.dash-sidebar-role i { color: var(--brand-gold); margin-right: 0.3rem; }

.dash-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dash-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    color: rgba(255,255,255,0.82) !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.94rem;
    transition: background-color .15s ease, color .15s ease, transform .12s ease;
}
.dash-nav-link i { width: 20px; text-align: center; color: rgba(255,255,255,0.6); transition: color .15s ease; }
.dash-nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff !important;
    transform: translateX(2px);
}
.dash-nav-link:hover i { color: var(--brand-gold); }
.dash-nav-link.active {
    background: rgba(184, 137, 63,0.16);
    color: #fff !important;
    box-shadow: inset 3px 0 0 var(--brand-gold);
}
.dash-nav-link.active i { color: var(--brand-gold); }

.dash-sidebar-footer {
    padding: 1rem 1.1rem 1.3rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 0.5rem;
}
.dash-sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.4rem 0.3rem 0.9rem;
}
.dash-user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
    color: #ffffff;
    font-family: 'Manrope', 'Hind Siliguri', sans-serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 14px -6px rgba(184, 137, 63,0.6);
}
.dash-avatar-sm { width: 32px; height: 32px; font-size: 0.85rem; }

.dash-logout {
    color: rgba(255,255,255,0.75) !important;
}
.dash-logout:hover {
    background: rgba(214, 69, 80, 0.18);
    color: #ffb4ba !important;
}
.dash-logout i { color: #ff8f97; }

/* ---------- Overlay (mobile/tablet off-canvas backdrop) ---------- */
.dash-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(4, 26, 22, 0.55);
    z-index: 1035;
    opacity: 0;
    transition: opacity .2s ease;
}
.dash-overlay.show {
    display: block;
    opacity: 1;
}

/* ---------- Main content area ---------- */
.dash-main {
    flex: 1 1 auto;
    margin-left: var(--dash-sidebar-w);
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dash-topbar {
    height: var(--dash-topbar-h);
    background: #fff;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem;
    box-shadow: 0 6px 18px -14px rgba(11, 59, 52, 0.35);
    position: sticky;
    top: 0;
    z-index: 1020;
}
.dash-toggle {
    display: none;
    border: none;
    background: var(--brand-teal-light);
    color: var(--brand-teal-dark);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.dash-toggle:hover { background: var(--brand-gold); color: #ffffff; }

.dash-topbar-title {
    font-family: 'Manrope', 'Hind Siliguri', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--brand-ink);
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash-topbar-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}
.dash-topbar-user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brand-ink);
}
.dash-topbar .dash-avatar-sm {
    background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-dark));
    color: #fff;
    box-shadow: 0 6px 14px -6px rgba(11, 59, 52,0.5);
}

.dash-content {
    padding: 1.75rem;
    flex: 1 1 auto;
    max-width: 100%;
}

/* ---------- Filter bar used on admin/doctor list pages ---------- */
.dash-filter-bar {
    background: var(--brand-card);
    border-radius: 16px;
    box-shadow: 0 10px 28px -18px rgba(11, 59, 52, 0.22);
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.5rem;
}
.dash-filter-bar .form-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--brand-muted);
    margin-bottom: 0.3rem;
}

/* ---------- Responsive breakpoints for the dashboard shell ---------- */
/* Laptop & desktop (>=992px): sidebar always visible, no toggle, content offset */
@media (min-width: 992px) {
    .dash-sidebar { transform: none !important; }
}

/* Tablet & mobile (<992px): sidebar becomes an off-canvas drawer */
@media (max-width: 991.98px) {
    .dash-sidebar {
        transform: translateX(-100%);
        width: 82vw;
        max-width: 300px;
    }
    .dash-sidebar.show {
        transform: translateX(0);
    }
    .dash-main {
        margin-left: 0;
    }
    .dash-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .dash-content {
        padding: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .dash-topbar {
        padding: 0 1rem;
        gap: 0.75rem;
    }
    .dash-topbar-title {
        font-size: 1rem;
    }
    .dash-content {
        padding: 1rem;
    }
    .dash-filter-bar {
        padding: 1rem;
    }
}

/* ===================================================================
   Doctor dashboard v2 - richer "CarePlus"-style analytics layout
   =================================================================== */

/* Sidebar deepened slightly for a more premium, app-like feel */
.dash-sidebar {
    background: linear-gradient(180deg, #072B29 0%, var(--brand-teal-darker) 45%, var(--brand-teal-dark) 100%);
}
.dash-nav-badge {
    margin-left: auto;
    background: var(--brand-gold);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    line-height: 1.4;
}

/* Topbar: search field + notification bell + user dropdown */
.dash-search {
    position: relative;
    flex: 1 1 340px;
    max-width: 420px;
}
.dash-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-muted);
}
.dash-search input {
    width: 100%;
    border: 1px solid #E4E9E8;
    background: var(--brand-bg);
    border-radius: 999px;
    padding: 0.55rem 1rem 0.55rem 2.4rem;
    font-size: 0.9rem;
}
.dash-search input:focus {
    outline: none;
    border-color: var(--brand-teal);
    background: #fff;
}
.dash-bell {
    position: relative;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--brand-teal-light);
    color: var(--brand-teal-dark);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1.05rem;
}
.dash-bell .bell-badge {
    position: absolute;
    top: -3px; right: -3px;
    background: #D64550;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 3px;
    border: 2px solid #fff;
}
.dash-topbar-user-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: none;
    background: transparent;
    padding: 0.25rem 0.5rem 0.25rem 0.25rem;
    border-radius: 999px;
}
.dash-topbar-user-btn:hover { background: var(--brand-bg); }
.dash-topbar-user-role {
    font-size: 0.76rem;
    color: var(--brand-muted);
    display: block;
    margin-top: -2px;
}

/* Greeting hero */
.doc-greeting-card {
    background: var(--brand-card);
    border-radius: 20px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 12px 30px -20px rgba(11, 59, 52,0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.doc-greeting-left { display: flex; align-items: center; gap: 1.1rem; }
.doc-greeting-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-dark));
    color: #fff;
    font-family: 'Manrope', 'Hind Siliguri', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 22px -8px rgba(11, 59, 52,0.5);
}
.doc-greeting-left h2 { font-family:'Manrope','Hind Siliguri',sans-serif; font-weight:700; margin-bottom: 0.15rem; }
.doc-greeting-meta {
    display: flex; gap: 1.1rem; flex-wrap: wrap;
    margin-top: 0.5rem;
    font-size: 0.88rem;
    color: var(--brand-muted);
}
.doc-greeting-meta span i { color: var(--brand-teal); margin-right: 0.3rem; }
.doc-greeting-right { text-align: right; }
.doc-greeting-clock { font-family:'Manrope','Hind Siliguri',sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--brand-ink); }
.doc-greeting-date { font-size: 0.85rem; color: var(--brand-muted); }
.doc-quote-card {
    background: linear-gradient(135deg, var(--brand-teal-light), #fff);
    border: 1px solid var(--brand-teal-light);
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--brand-teal-dark);
    max-width: 220px;
    margin-top: 0.6rem;
}

/* Stat cards v2 - white card, colored icon badge */
.stat-card-v2 {
    background: var(--brand-card);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 10px 26px -20px rgba(11, 59, 52,0.25);
    height: 100%;
}
.stat-card-v2 .icon-badge {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
}
.stat-card-v2 .stat-label { font-size: 0.85rem; color: var(--brand-muted); margin-bottom: 0.1rem; }
.stat-card-v2 .stat-value { font-family:'Manrope','Hind Siliguri',sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--brand-ink); }
.stat-card-v2 a { font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.icon-badge.badge-blue   { background: #DCEBFF; color: #2563EB; }
.icon-badge.badge-green  { background: #DCFCE7; color: #16A34A; }
.icon-badge.badge-purple { background: #EDE4FF; color: #7C3AED; }
.icon-badge.badge-orange { background: #FFEBD1; color: #D97706; }

/* Quick actions */
.quick-actions-card { background: var(--brand-card); border-radius: 16px; padding: 1.25rem; box-shadow: 0 10px 26px -20px rgba(11, 59, 52,0.25); }
.quick-action-item {
    display: flex; align-items: center; gap: 0.75rem;
    background: var(--brand-bg);
    border-radius: 12px;
    padding: 0.65rem 0.8rem;
    text-decoration: none !important;
    color: var(--brand-ink) !important;
    font-weight: 600;
    font-size: 0.86rem;
    margin-bottom: 0.6rem;
    transition: transform .12s ease, box-shadow .12s ease;
}
.quick-action-item:last-child { margin-bottom: 0; }
.quick-action-item:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(11, 59, 52,0.3); }
.quick-action-item .icon-badge { width: 36px; height: 36px; border-radius: 10px; font-size: 0.95rem; margin-bottom: 0; flex-shrink: 0; }

/* Dashboard panel (table/list containers) */
.dash-panel {
    background: var(--brand-card);
    border-radius: 16px;
    box-shadow: 0 10px 26px -20px rgba(11, 59, 52,0.25);
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.dash-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--brand-bg);
    flex-wrap: wrap;
    gap: 0.5rem;
}
.dash-panel-header h6 { margin: 0; font-family:'Manrope','Hind Siliguri',sans-serif; font-weight: 700; }
.dash-panel-header .view-all { font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.dash-panel-body { padding: 1.1rem 1.25rem; }

/* Today's appointments table */
.appt-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.appt-table th {
    text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.4px;
    color: var(--brand-muted); padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--brand-bg);
}
.appt-table td { padding: 0.65rem 0.6rem; border-bottom: 1px solid var(--brand-bg); vertical-align: middle; }
.appt-patient { display: flex; align-items: center; gap: 0.6rem; }
.appt-patient .mini-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
    color: #ffffff; font-weight: 700; font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.appt-patient small { display: block; color: var(--brand-muted); }

/* Timeline (Today's Schedule) */
.schedule-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.schedule-timeline::before {
    content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--brand-bg);
}
.schedule-timeline li { position: relative; padding-left: 26px; padding-bottom: 1.25rem; }
.schedule-timeline li:last-child { padding-bottom: 0; }
.schedule-timeline .dot {
    position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%;
    background: var(--brand-teal); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--brand-teal);
}
.schedule-timeline .t-time { font-size: 0.78rem; color: var(--brand-muted); }
.schedule-timeline .t-name { font-weight: 600; font-size: 0.9rem; }
.schedule-timeline .t-reason { font-size: 0.8rem; color: var(--brand-muted); }

/* Recent list (patients / prescriptions) */
.recent-list { list-style: none; margin: 0; padding: 0; }
.recent-list li {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    padding: 0.6rem 0; border-bottom: 1px solid var(--brand-bg);
}
.recent-list li:last-child { border-bottom: none; padding-bottom: 0; }
.recent-list .left { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.recent-list .left div { min-width: 0; }
.recent-list .left strong { display: block; font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-list .left small { color: var(--brand-muted); font-size: 0.78rem; }
.recent-list .right { font-size: 0.78rem; color: var(--brand-muted); white-space: nowrap; flex-shrink: 0; }
.recent-list .rx-icon {
    width: 34px; height: 34px; border-radius: 10px; background: var(--brand-teal-light); color: var(--brand-teal-dark);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Health tip mini card */
.health-tip-card {
    background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-dark));
    color: #fff;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.health-tip-card h6 { font-family:'Manrope','Hind Siliguri',sans-serif; font-weight: 700; }
.health-tip-card .btn-light-outline {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(255,255,255,0.14);
    color: #fff; border: 1px solid rgba(255,255,255,0.35);
    border-radius: 10px; padding: 0.5rem 0.9rem; font-size: 0.85rem; font-weight: 600;
    text-decoration: none !important; margin-top: 0.5rem;
}
.health-tip-card .btn-light-outline:hover { background: rgba(255,255,255,0.24); }

@media (max-width: 767.98px) {
    .doc-greeting-card { flex-direction: column; align-items: flex-start; }
    .doc-greeting-right { text-align: left; width: 100%; }
    .dash-search { display: none; }
    .appt-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ============================================================
   BRAND LAYER — matches the main website
   (scrub green #0b3b34 + brass #b8893f, Fraunces + Manrope + Bangla fonts)
   ============================================================ */
:root {
    --brand-brass-light: #e2c38a;
    --brand-soft: #9fb8ae;
    --font-display: 'Fraunces', Georgia, serif;
    --font-bn: 'Hind Siliguri', 'Noto Serif Bengali', sans-serif;
    --font-bn-display: 'Noto Serif Bengali', 'Hind Siliguri', serif;
}
.bn, [lang="bn"] { font-family: var(--font-bn); }

/* --- Top info bar --- */
.app-topbar {
    background: #041a16;
    color: var(--brand-soft);
    font-size: 0.82rem;
    padding: 0.4rem 0;
}
.app-topbar i { color: var(--brand-brass-light); margin-right: 0.25rem; }
.app-topbar a { color: #dfe9e5; text-decoration: none; font-weight: 600; }
.app-topbar a:hover { color: #fff; }

/* --- Navbar / brand --- */
.app-navbar {
    background: #0b3b34;
    border-bottom: 1px solid rgba(226, 195, 138, 0.25);
}
.brand-logo {
    width: 46px;
    height: 46px;
    background: transparent;
    box-shadow: 0 0 0 2px rgba(226, 195, 138, 0.55);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text b {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: #fff;
    letter-spacing: -0.2px;
}
.brand-text small {
    font-family: var(--font-bn-display);
    font-weight: 600;
    font-size: 0.74rem;
    color: var(--brand-brass-light);
}
.app-navbar .navbar-brand { white-space: normal; }
.btn-nav { padding: 0.45rem 1rem; font-size: 0.9rem; border-radius: 999px; }
.app-navbar .btn-nav { color: #fff !important; }
@media (max-width: 575.98px) {
    .brand-text b { font-size: 0.92rem; }
    .brand-text small { font-size: 0.68rem; }
    .brand-logo { width: 40px; height: 40px; }
}
@media (max-width: 991.98px) {
    .app-navbar .navbar-nav { padding-top: 0.75rem; }
    .app-navbar .btn-nav { margin-top: 0.4rem; display: inline-block; }
}

/* --- Buttons --- */
.btn-accent, .btn-accent:focus { color: #fff; background-color: #b8893f; border-color: #b8893f; }
.btn-accent:hover { color: #fff; background-color: #9a7030; border-color: #9a7030; }
.btn-lg { border-radius: 999px; padding: 0.7rem 1.5rem; font-size: 1rem; }
.btn-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.04);
}
.btn-ghost:hover { color: #0b3b34; background: #fff; border-color: #fff; }

/* --- Doctor hero (home page) --- */
.hero-doctor {
    background:
        radial-gradient(circle at 78% 30%, rgba(29, 107, 92, 0.65), transparent 55%),
        radial-gradient(circle at 10% 90%, rgba(184, 137, 63, 0.14), transparent 45%),
        linear-gradient(160deg, #0b3b34 0%, #072c27 60%, #041a16 100%);
    padding: 3rem 3rem 0;
    margin-top: 0.25rem;
}
.hero-doctor .hero-split { align-items: flex-end; }
.hero-doctor .hero-text { padding-bottom: 3rem; }
.hero-doctor .hero-kicker {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: #dfe9e5; border-color: rgba(226, 195, 138, 0.35);
}
.hero-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-brass-light); }
.hero-pre {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--brand-brass-light);
    font-size: 1.25rem;
    margin: 0.4rem 0 0.15rem;
}
.hero-doctor h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.8px;
    margin-bottom: 0.6rem;
}
.hero-name-bn {
    font-family: var(--font-bn-display);
    font-weight: 700;
    color: var(--brand-brass-light);
    font-size: 1.35rem;
    margin-bottom: 0.9rem;
}
.hero-degrees {
    display: inline-block;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    color: #fff;
    border-left: 2px solid var(--brand-gold);
    padding-left: 0.75rem;
    margin-bottom: 0.6rem;
}
.hero-tagline {
    font-family: var(--font-bn);
    color: rgba(255, 255, 255, 0.78);
    max-width: 520px;
    margin-bottom: 1.6rem;
    font-size: 1rem;
}
.hero-bn-note {
    font-family: var(--font-bn);
    color: var(--brand-soft);
    font-size: 0.88rem;
    margin: 1rem 0 0;
}
.hero-doctor .hero-visual { position: relative; align-self: flex-end; flex: 0 1 400px; }
.hero-arch {
    position: relative;
    width: min(360px, 100%);
    aspect-ratio: 4 / 4.6;
    border-radius: 999px 999px 0 0;
    background:
        radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.16), transparent 60%),
        linear-gradient(180deg, #1d6b5c 0%, #145449 100%);
    border: 1px solid rgba(226, 195, 138, 0.35);
    border-bottom: 0;
    overflow: hidden;
    margin: 0 auto;
}
.hero-arch img {
    position: absolute;
    left: 50%; bottom: 0;
    transform: translateX(-50%);
    width: 96%;
    height: auto;
    object-fit: contain;
}
.hero-seal {
    position: absolute;
    top: 18%; left: -6px;
    width: 96px; height: 96px;
    border-radius: 50%;
    background: #041a16;
    border: 1px solid rgba(226, 195, 138, 0.5);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.5);
}
.hero-seal b { font-family: var(--font-display); font-size: 1.7rem; color: var(--brand-brass-light); line-height: 1; }
.hero-seal small { font-size: 0.66rem; color: #dfe9e5; line-height: 1.15; margin-top: 0.2rem; max-width: 70px; }
.hero-callcard {
    position: absolute;
    right: -10px; bottom: 26px;
    display: flex; flex-direction: column; gap: 0.35rem;
    background: rgba(4, 26, 22, 0.82);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 195, 138, 0.3);
    border-radius: 16px;
    padding: 0.7rem 0.85rem;
}
.hero-callcard a { display: flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; }
.hero-callcard i {
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-gold); color: #fff; font-size: 0.8rem;
}
.hero-callcard b { display: block; font-size: 0.9rem; }
.hero-callcard small { display: block; font-size: 0.72rem; color: var(--brand-soft); }
.hero-orb.orb-2 { background: #1d6b5c; }
@media (max-width: 991.98px) {
    .hero-doctor { padding: 2.25rem 1.25rem 0; }
    .hero-doctor .hero-split { align-items: center; gap: 1.25rem; }
    .hero-doctor .hero-text { padding-bottom: 0; }
    .hero-tagline { margin-left: auto; margin-right: auto; }
    .hero-doctor .hero-visual { max-width: 340px; width: 100%; flex-basis: auto; }
    .hero-degrees { border-left: 0; padding-left: 0; }
}
@media (max-width: 575.98px) {
    .hero-doctor { border-radius: 20px; }
    .hero-doctor .hero-visual { max-width: 300px; }
    .hero-seal { width: 78px; height: 78px; left: -4px; }
    .hero-seal b { font-size: 1.35rem; }
    .hero-callcard { right: -4px; bottom: 14px; padding: 0.55rem 0.65rem; }
    .hero-callcard b { font-size: 0.8rem; }
    .hero-cta .btn { flex: 1 1 100%; }
}

/* --- About strip + section heads --- */
.about-strip {
    display: flex; gap: 1.5rem; align-items: baseline;
    background: var(--brand-card);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 28px -18px rgba(11, 59, 52, 0.2);
}
.about-strip-label {
    flex-shrink: 0;
    font-size: 0.75rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
    color: var(--brand-gold-dark);
}
.about-strip p { margin: 0; color: var(--brand-muted); font-family: var(--font-bn); }
@media (max-width: 767.98px) { .about-strip { flex-direction: column; gap: 0.4rem; } }

.section-head { margin: 0.5rem 0 1.25rem; scroll-margin-top: 1rem; }
.section-head .eyebrow {
    font-size: 0.75rem; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
    color: var(--brand-gold-dark);
}
.section-head h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.9rem;
    letter-spacing: -0.4px;
    margin: 0.15rem 0 0.1rem;
}
.section-head p { color: var(--brand-muted); margin: 0; }

/* --- Hospital / chamber cards --- */
.hospital-card .card-body { padding: 1.4rem; }
.hospital-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-teal-light); color: var(--brand-teal);
    margin-bottom: 0.85rem;
}
.hospital-card .card-title { font-weight: 700; font-size: 1.08rem; }
.hospital-card .card-text { font-size: 0.88rem; }
.hospital-card .card-text i { color: var(--brand-gold-dark); margin-right: 0.2rem; }
.hospital-actions {
    display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
    margin-top: 1rem; padding-top: 0.85rem;
    border-top: 1px dashed #dfe5e2;
}
.hospital-actions a { font-size: 0.88rem; font-weight: 700; text-decoration: none; }
.hospital-actions i { color: var(--brand-gold-dark); margin-right: 0.25rem; }

/* --- Display font on key headings --- */
.auth-title, .doctor-profile-name { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.3px; }
.doctor-profile-photo { object-position: top; background: var(--brand-teal-light); }

/* --- Footer --- */
.app-footer {
    background: #041a16;
    color: var(--brand-soft);
    padding: 2.75rem 0 1.25rem;
    margin-top: 3rem;
    font-size: 0.9rem;
}
.app-footer a { color: #dfe9e5; text-decoration: none; }
.app-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1rem; }
.footer-brand img { border-radius: 50%; box-shadow: 0 0 0 2px rgba(226, 195, 138, 0.45); }
.footer-brand b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: #fff; }
.footer-brand small { display: block; font-family: var(--font-bn-display); color: var(--brand-brass-light); font-size: 0.8rem; }
.footer-doctor { color: #dfe9e5; font-weight: 700; margin-bottom: 0.75rem; }
.footer-doctor span { color: var(--brand-soft); font-weight: 500; font-size: 0.85rem; }
.footer-site { font-weight: 700; color: var(--brand-brass-light) !important; }
.footer-chamber h6 {
    color: var(--brand-brass-light);
    font-size: 0.78rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.footer-chamber p { margin-bottom: 0.6rem; line-height: 1.55; }
.footer-chamber p span { font-size: 0.82rem; }
.footer-chamber i { color: var(--brand-brass-light); width: 16px; }
.footer-chamber a { font-weight: 700; }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 2rem; padding-top: 1rem;
    font-size: 0.8rem;
}

/* --- Dashboard sidebar brand --- */
.dash-sidebar-brand a { gap: 0.65rem; }
.dash-sidebar-brand .brand-text b { font-size: 0.95rem; }
.dash-sidebar-brand .brand-text small { font-size: 0.68rem; }
.dash-sidebar { background: linear-gradient(180deg, #041a16 0%, #072c27 55%, #0b3b34 100%); }
.dash-nav-link.active { box-shadow: inset 3px 0 0 var(--brand-brass-light); }

/* Doctor card inside the narrow login/register side column: stack it */
.auth-doctor-stack .doctor-profile-card { flex-direction: column; text-align: center; gap: 0.9rem; }
.auth-doctor-stack .doctor-profile-photo { width: 110px; height: 110px; }
.auth-doctor-stack .doctor-profile-designation,
.auth-doctor-stack .doctor-profile-specialty { justify-content: center; }
.auth-hospital-item h6 { font-size: 0.95rem; }
/* Blend the bottom edge of the hero photo into the arch */
.hero-arch::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%;
    background: linear-gradient(180deg, transparent, rgba(4, 26, 22, 0.55));
    pointer-events: none;
}
