/* ============================================================
   ডক্টরপাড়া — global.css
   Site-wide chrome only: design tokens, base resets, scrollbar,
   header (topbar + navbar + mobile-header + side-drawer),
   footer, and bottom-nav. Loaded BEFORE index.css so its
   :root variables are available to page-specific styles.
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --primary:      #0B5563;
    --primary-lt:   #0e6e80;
    --secondary:    #17A2B8;
    --accent:       #FF6B35;
    --accent-lt:    #ff824f;
    --success:      #27AE60;
    --danger:       #E74C3C;
    --warning:      #F39C12;
    --dark:         #1A2332;
    --text:         #3D4D5C;
    --text-muted:   #7A8FA6;
    --bg-light:     #F4F8FB;
    --white:        #FFFFFF;
    --border:       #E0ECF0;
    --shadow-sm:    0 2px 12px rgba(11,85,99,.08);
    --shadow-md:    0 6px 24px rgba(11,85,99,.13);
    --shadow-lg:    0 14px 40px rgba(11,85,99,.18);
    --radius-sm:    10px;
    --radius-md:    16px;
    --radius-lg:    24px;
    --transition:   all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Hind Siliguri', sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

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

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 3px; }

/* ============================================================
   TOP CONTACT BAR (above Navbar)
   ============================================================ */
.topbar {
    background: #0F2730;
    color: rgba(255,255,255,0.92);
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 7px 1.5rem;
}
.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 18px;
}
.topbar-item {
    color: rgba(255,255,255,0.92) !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: color .2s ease;
}
.topbar-item i { color: #7FECF7; }
.topbar-item:hover { color: #7FECF7 !important; }

/* ============================================================
   NAVBAR (Desktop)
   ============================================================ */
.navbar {
    background: #fff;
    /* background: rgba(11, 85, 99, 0.97); */
    backdrop-filter: blur(12px);
    padding: 0;
    box-shadow: 0 2px 20px rgba(11,85,99,.25);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 68px;
}

.navbar-brand {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}

.navbar-brand i {
    color: #7FECF7;
    font-size: 1.8rem;
    animation: pulse-icon 2.5s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.navbar-nav {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.25rem;
}

.navbar-nav .nav-link {
    color: #333!important;
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    padding: 0.45rem 0.85rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: #333 !important;
    background: rgba(255,255,255,0.12);
}

/* ── Auth buttons (Login + Register) ───────────────────────── */
.nav-auth-btns { align-items: center; }
.nav-btn {
    display: inline-flex; align-items: center; gap: 6px;
    height: 38px; padding: 0 16px;
    border-radius: 50px; font-size: .85rem; font-weight: 600;
    text-decoration: none; white-space: nowrap;
    line-height: 1; transition: all .2s ease;
    font-family: 'Hind Siliguri', sans-serif;
}
.nav-btn i { font-size: .95rem; }
.nav-btn-login {
    background: #0d6d7e;
    color: #ffffff !important;
    border: 2px solid rgba(255,255,255,.6);
}
.nav-btn-login:hover {
    background: #ffffff;
    color: var(--primary, #0B5563) !important;
    border-color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,255,255,.25);
}
.nav-btn-register {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: #ffffff !important;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(255,107,53,.35);
}
.nav-btn-register:hover {
    background: linear-gradient(135deg, #F7931E, #FF6B35);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255,107,53,.5);
}
/* Primary call-to-action: book an appointment */
.nav-btn-appoint {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff !important;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(220,38,38,.35);
}
.nav-btn-appoint:hover {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(220,38,38,.5);
}

.navbar-nav .btn-nav-login {
    background: var(--accent);
    color: var(--white) !important;
    padding: 0.45rem 1.2rem !important;
    border-radius: 50px;
    font-weight: 600;
    margin-left: 0.5rem;
    transition: var(--transition);
}

.navbar-nav .btn-nav-login:hover {
    background: var(--accent-lt);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255,107,53,.4);
}

/* ── Navbar Toggler ──────────────────────────────────────────── */
.navbar-toggler {
    background: rgba(255,255,255,0.15) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.4rem 0.6rem !important;
}

.navbar-toggler:focus { box-shadow: none !important; }

/* ============================================================
   MOBILE HEADER
   ============================================================ */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 0 1rem;
    height: 58px;
    z-index: 1000;
    box-shadow: 0 2px 14px rgba(11,85,99,.25);
    align-items: center;
    justify-content: space-between;
}

.mobile-logo {
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-logo i { font-size: 1.6rem; color: #7FECF7; }

.mobile-actions { display: flex; align-items: center; gap: 8px; }

.mobile-icon-btn {
    background: rgba(255,255,255,.18);
    border: none;
    color: var(--white);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-icon-btn:hover { background: rgba(255,255,255,.28); }

/* ============================================================
   SIDE DRAWER
   ============================================================ */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.52);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(3px);
}

.drawer-overlay.active { display: block; }

.side-drawer {
    position: fixed;
    top: 0;
    right: -110%;
    width: 82%;
    max-width: 340px;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.side-drawer.active { right: 0; }

.drawer-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.drawer-header-logo {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-close {
    background: rgba(255,255,255,.2);
    border: none;
    color: var(--white);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.drawer-close:hover { background: rgba(255,255,255,.3); }

.drawer-body { flex: 1; overflow-y: auto; padding: 8px 0; }

.drawer-section { padding: 8px 20px 4px; }

.drawer-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    padding: 8px 0 6px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    color: var(--text);
    font-size: 0.93rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    margin-bottom: 2px;
}

.drawer-link i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary);
    flex-shrink: 0;
    transition: var(--transition);
}

.drawer-link:hover {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 16px;
}

.drawer-link:hover i {
    background: var(--primary);
    color: var(--white);
}

.drawer-link.emergency i { color: var(--danger); }
.drawer-link.emergency:hover i { background: var(--danger); color: var(--white); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,.8);
    padding: 60px 0 0;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-brand i { color: #7FECF7; }

.footer-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,.55);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social { display: flex; gap: 10px; }

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-btn:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 18px;
}

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

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: rgba(255,255,255,.55);
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i { font-size: 0.75rem; }

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--secondary);
    flex-shrink: 0;
}

.footer-contact-text {
    font-size: 0.88rem;
    color: rgba(255,255,255,.6);
}

.footer-divider {
    border-color: rgba(255,255,255,.1);
    margin: 40px 0 0;
}

.footer-bottom {
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255,255,255,.45);
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.07);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 0.8rem;
    color: rgba(255,255,255,.5);
}

/* ============================================================
   BOTTOM NAV (Mobile)
   ============================================================ */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0,0,0,.1);
    z-index: 998;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
}

.bottom-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.bottom-nav-item {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 0.7rem;
    font-weight: 500;
    position: relative;
}

.bottom-nav-item i {
    font-size: 1.35rem;
    transition: var(--transition);
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active i {
    transform: scale(1.1);
}

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 4px 4px;
}

.bottom-nav-item:hover { color: var(--primary); }

.bottom-nav-center {
    position: relative;
}

.bottom-nav-fab {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 14px rgba(11,85,99,.35);
    margin-bottom: 3px;
    margin-top: -10px;
    transition: var(--transition);
    text-decoration: none;
}

.bottom-nav-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(11,85,99,.45);
    color: var(--white);
}

/* ============================================================
   RESPONSIVE — chrome only (header/footer/bottom-nav swap)
   ============================================================ */
@media (max-width: 768px) {
    .navbar { display: none !important; }
    .mobile-header { display: flex !important; }
    .footer { display: none !important; }
    .bottom-nav { display: block !important; }

    body {
        padding-top: 58px;
        padding-bottom: calc(68px + env(safe-area-inset-bottom));
    }
}

/* ══════════════════════════════════════════════════════════════
   Institutional header — utility strip → identity band → nav bar
   (classic medical-college / hospital site layout)
   ══════════════════════════════════════════════════════════════ */
:root {
    --kc-deep:   #0F5132;
    --kc-nav:    #14532D;
    --kc-strip:  #0B3D26;
    --kc-accent: #16A34A;
}

/* ── 1. Utility strip ─────────────────────────────────────── */
.kc-topstrip {
    background: var(--kc-strip);
    color: #fff;
    font-size: .82rem;
}
.kc-topstrip-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; min-height: 38px;
}
.kc-topstrip-left { display: flex; align-items: center; gap: 10px; }
.kc-topstrip-left a {
    color: rgba(255,255,255,.9); text-decoration: none; font-weight: 600;
    transition: color .2s;
}
.kc-topstrip-left a:hover { color: #fff; text-decoration: underline; }
.kc-topstrip-left a.is-active { color: #FDE047; }
.kc-sep { color: rgba(255,255,255,.35); }
.kc-topstrip-right { font-weight: 700; letter-spacing: .01em; }

/* ── 2. Identity band ─────────────────────────────────────── */
.kc-header { background: #fff; border-bottom: 3px solid var(--kc-accent); }
.kc-header-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; padding: 14px 0;
}
.kc-brand {
    display: flex; align-items: center; gap: 16px;
    text-decoration: none; color: inherit; min-width: 0;
}
.kc-logo { max-height: 68px; width: auto; flex-shrink: 0; }
.kc-brand-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kc-brand-text strong {
    font-size: 1.6rem; font-weight: 800; color: var(--kc-deep); line-height: 1.25;
}
.kc-brand-text small { font-size: .88rem; color: #6B7280; }

.kc-header-contact { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.kc-phone-icon {
    display: grid; place-items: center;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--kc-accent); color: #fff; font-size: 1.15rem;
}
.kc-phone-nums { display: flex; flex-direction: column; line-height: 1.45; }
.kc-phone-nums a {
    color: var(--kc-deep); text-decoration: none;
    font-weight: 700; font-size: 1.02rem;
}
.kc-phone-nums a:hover { color: var(--kc-accent); }

/* ── 3. Navigation bar ────────────────────────────────────── */
.kc-navbar {
    background: var(--kc-nav);
    padding: 0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .12);
}
.kc-navbar .navbar-nav { margin: 0 !important; gap: 0 !important; }
.kc-navbar .nav-link,
.kc-navbar .nav-link.nav-pill {
    color: rgba(255,255,255,.94) !important;
    padding: 14px 15px !important;
    border-radius: 0 !important;
    font-size: .88rem; font-weight: 600; white-space: nowrap;
    background: transparent !important;
    border-bottom: 3px solid transparent;
    transition: background .2s, border-color .2s;
}
.kc-navbar .nav-link:hover,
.kc-navbar .nav-link.nav-pill:hover,
.kc-navbar .nav-item.show > .nav-link {
    background: rgba(255,255,255,.12) !important;
    color: #fff !important;
}
.kc-navbar .nav-link.active,
.kc-navbar .nav-link.nav-pill.active {
    background: rgba(0,0,0,.22) !important;
    color: #fff !important;
    border-bottom-color: #FDE047;
}
.kc-navbar .nav-link i { opacity: .85; margin-right: 5px; }

/* Dropdowns */
.kc-navbar .nav-dropdown-menu {
    border: 0; border-top: 3px solid var(--kc-accent);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
    padding: 8px 0; margin-top: 0; min-width: 250px;
}
.kc-navbar .nav-drop-item {
    padding: 10px 18px; font-size: .88rem; font-weight: 600; color: #1F2937;
}
.kc-navbar .nav-drop-item:hover { background: #F0FDF4; color: var(--kc-deep); }
.kc-navbar .nav-drop-item i { width: 20px; }

.kc-navbar .navbar-toggler { border: 0; color: #fff; box-shadow: none; }
.kc-navbar .navbar-brand { padding: 8px 0; }

/* Auth buttons sit inside the green bar now */
.kc-navbar .nav-btn { height: 34px; font-size: .82rem; }
.kc-navbar .nav-btn-login {
    background: transparent; border: 2px solid rgba(255,255,255,.55);
}
.kc-navbar .nav-btn-login:hover { background: #fff; color: var(--kc-deep) !important; }

@media (max-width: 1199px) {
    .kc-navbar .nav-link,
    .kc-navbar .nav-link.nav-pill { padding: 13px 10px !important; font-size: .82rem; }
    .kc-brand-text strong { font-size: 1.3rem; }
    .kc-logo { max-height: 56px; }
}
@media (max-width: 991px) {
    .kc-navbar { padding: 6px 0; }
    .kc-navbar .navbar-nav { padding: 8px 0; }
    .kc-navbar .nav-link,
    .kc-navbar .nav-link.nav-pill {
        padding: 11px 6px !important;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }
    .kc-navbar .nav-dropdown-menu { background: rgba(255,255,255,.97); margin: 4px 0 8px; }
}

/* Social icons in the utility strip */
.kc-topstrip-social { display: flex; align-items: center; gap: 6px; }
.kc-topstrip-social a {
    display: grid; place-items: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .9);
    font-size: .82rem; text-decoration: none;
    transition: background .2s, color .2s, transform .2s;
}
.kc-topstrip-social a:hover {
    background: #fff; color: #0B3D66; transform: translateY(-1px);
}
