/* =====================================================================
   home.css (v2) — restyles every section BELOW the hero.
   Scoped with `.hero ~ section` / #ids. The hero is never targeted.
   Palette: strictly the hero/template colours — navy (#101b45 / #16213e / #0f3460),
   gold (#D4A843) and saffron orange, plus quiet navy-tinted neutrals.
   ===================================================================== */
:root {
    --hp-navy: #101b45;
    --hp-blue: #0f3460;
    --hp-navy-mid: #0f3460;
    --hp-navy-deep: #16213e;
    --hp-gold: #d4a843;
    --hp-gold-ink: #b45f12;
    --hp-neutral: #f4f6fb;
    --hp-line: #e3e7ee;
    --hp-text: #3d4459;
    --hp-muted: #667089;
    --hp-r-lg: 18px;
    --hp-r-md: 12px;
    --hp-shadow-sm: 0 1px 2px rgba(16,27,69,.04), 0 4px 14px -6px rgba(16,27,69,.08);
    --hp-shadow-md: 0 2px 4px rgba(16,27,69,.04), 0 18px 36px -18px rgba(16,27,69,.20);
    --hp-ease: .25s cubic-bezier(.2,.6,.2,1);
}

/* ---------- Section rhythm: tighter, alternating neutral / white ---------- */
.hero ~ section {
    padding-block: clamp(2.25rem, 4vw, 3.75rem) !important;
    scroll-margin-top: 80px;
    border: 0 !important;
    border-top: 1px solid var(--hp-line) !important;
}
.hero ~ section:nth-of-type(even) { background: var(--hp-neutral) !important; }
.hero ~ section:nth-of-type(odd)  { background: #fff !important; }

/* ---------- Headings ---------- */
.hero ~ section .eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: inherit; font-size: .8rem; font-weight: 700;
    letter-spacing: .03em; text-transform: none; color: var(--hp-gold-ink);
    margin-bottom: .4rem !important;
}
.eyebrow.on-dark {
    color: var(--hp-gold) !important;
}
.hero ~ section .eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--hp-gold); }
.hero ~ section h2 {
    font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2rem) !important;
    font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--hp-navy);
}
.hero ~ section .muted { color: var(--hp-muted); }
.hero ~ section a.tiny {
    font-weight: 600; font-size: .82rem; color: var(--hp-navy); text-decoration: none;
    padding: .4rem .9rem; border: 1px solid var(--hp-line); border-radius: 999px; background: #fff;
    white-space: nowrap; transition: background var(--hp-ease), color var(--hp-ease), border-color var(--hp-ease);
}
.hero ~ section a.tiny:hover { background: var(--hp-navy); border-color: var(--hp-navy); color: #fff; }

/* ---------- Shared card surface ---------- */
.hero ~ section .card {
    border: 1px solid var(--hp-line); border-radius: var(--hp-r-md); background: #fff;
    box-shadow: var(--hp-shadow-sm);
    transition: transform var(--hp-ease), box-shadow var(--hp-ease), border-color var(--hp-ease);
}
.hero ~ section .card:hover { transform: translateY(-2px); box-shadow: var(--hp-shadow-md); border-color: #d3d9e4; }
.hero ~ section .card-body { padding: 1.15rem 1.3rem; }
.hero ~ section .card h6 { color: var(--hp-navy); font-weight: 700; line-height: 1.4; }

/* ---------- ABOUT: two equal-height cards ---------- */
#about .row { align-items: stretch !important; --bs-gutter-y: 1.5rem; }
#about .row > [class*="col-lg"] { display: flex; }
#about .about-card, #about .profile-card { width: 100%; height: 100%; border-radius: var(--hp-r-lg); }
#about .about-card {
    background: #fff; border: 1px solid var(--hp-line); box-shadow: var(--hp-shadow-sm);
    padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column;
}
#about .about-copy { display: flex; flex-direction: column; flex: 1; }
#about .about-copy p { color: var(--hp-text); line-height: 1.75; font-size: 1rem; margin-bottom: .9rem; }
#about .about-copy p:last-child { margin-bottom: 0; }
#about .about-copy p.about-lead {
    font-size: 1.15rem; font-weight: 600; color: var(--hp-navy);
    border-left: 3px solid var(--hp-gold); padding: .1rem 0 .1rem 1.1rem; margin-bottom: 1.1rem;
}
#about .about-copy strong { color: var(--hp-navy); }

/* Profile card: light warm ivory (a soft tint of the template's gold) — clearly separate from the navy hero */
#about .profile-card {
    display: flex; flex-direction: column; justify-content: space-between;
    background: linear-gradient(160deg, #fffdf8 0%, #faf3e2 100%);
    border: 1px solid #eadfc2; color: var(--hp-navy);
    padding: clamp(1.5rem, 3vw, 2.25rem); overflow: hidden; position: relative;
    box-shadow: var(--hp-shadow-sm);
}
#about .profile-card::before { background: rgba(212,168,67,.12); top: -120px; right: -120px; width: 260px; height: 260px; }
#about .profile-votes { border-bottom: 1px solid #eadfc2; padding-bottom: 1.25rem; margin-bottom: .5rem; }
#about .profile-votes .num { color: var(--hp-navy); font-size: clamp(2.4rem, 4vw, 3.1rem); letter-spacing: -.02em; }
#about .profile-votes .cap { color: var(--hp-gold-ink); font-weight: 600; }
#about .profile-row { flex: 1; align-items: center; padding: .9rem 0; border-bottom: 1px solid #efe6cf; }
#about .profile-row:last-child { border-bottom: 0; padding-bottom: 0; }
#about .profile-row i { background: #fff; color: var(--hp-gold-ink); border: 1px solid #eadfc2; border-radius: 10px; }
#about .profile-row .lbl { color: var(--hp-muted); }
#about .profile-row .val { color: var(--hp-navy); }

/* ---------- DIRECT LINE ---------- */
#connect .dl-tabs {
    display: inline-flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%;
    padding: 5px; border-radius: 14px; border: 1px solid var(--hp-line); background: var(--hp-neutral); box-shadow: none;
    margin-bottom: 1rem;
}
#connect .dl-tabs::-webkit-scrollbar { display: none; }
#connect .dl-tab { white-space: nowrap; border-radius: 10px; padding: .6rem 1.1rem; font-size: .9rem; }
#connect .dl-tab:hover { background: rgba(16,27,69,.05); }
#connect .dl-tab.active { background: var(--hp-navy); box-shadow: 0 6px 14px -6px rgba(16,27,69,.5); }
#connect .dl-panel-card {
    border-radius: var(--hp-r-lg); padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--hp-line); box-shadow: var(--hp-shadow-md); position: relative; overflow: hidden;
}
#connect .dl-panel-card::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, var(--hp-navy), var(--hp-navy-mid) 55%, var(--hp-gold) 80%, #ee9b3f);
}
#connect .dl-h { font-size: 1.3rem; letter-spacing: -.01em; }
#connect .cat-chip { border-radius: 12px; min-height: 58px; }
#connect .cat-chip:hover { transform: translateY(-1px); }
#connect .cat-chip i {
    width: 36px; height: 36px; border-radius: 10px; background: #fff4e2;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
#connect .cat-chip.selected i { background: rgba(212,168,67,.18); }
#connect .form-control:focus, #connect .form-select:focus { border-color: var(--hp-gold); box-shadow: 0 0 0 4px rgba(212,168,67,.18); }

/* ---------- Buttons (below hero only) ---------- */
.hero ~ section .btn-accent { font-weight: 700; border-radius: 10px; transition: transform var(--hp-ease), box-shadow var(--hp-ease), filter var(--hp-ease); }
.hero ~ section .btn-accent:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 10px 18px -10px rgba(232,132,42,.85); }
.hero ~ section .btn-outline-secondary { border-radius: 10px; font-weight: 600; }

/* ---------- LIVE NUMBERS ---------- */
.hero ~ section .stat {
    position: relative; height: 100%; padding: 1.3rem 1.4rem 1.2rem; background: #fff;
    border: 1px solid var(--hp-line); border-radius: var(--hp-r-lg); box-shadow: var(--hp-shadow-sm); overflow: hidden;
    transition: transform var(--hp-ease), box-shadow var(--hp-ease);
}
.hero ~ section .stat:hover { transform: translateY(-2px); box-shadow: var(--hp-shadow-md); }
.hero ~ section .stat::before, .hero ~ section .stat.accent-ok::before, .hero ~ section .stat.accent-saffron::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--hp-navy-mid);
}
.hero ~ section .stat .k { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; color: var(--hp-navy); line-height: 1; font-variant-numeric: tabular-nums; }
.hero ~ section .stat .t { margin-top: .55rem; font-weight: 700; color: var(--hp-navy); }
.hero ~ section .stat .d { font-size: .8rem; color: var(--hp-muted); margin-top: .15rem; }

/* ---------- PROJECTS + NOTICES: equal-height columns ---------- */
#work .row > [class*="col-lg"] { display: flex; flex-direction: column; }
#work .row > [class*="col-lg"] > .d-flex.flex-column { flex: 1; gap: .85rem !important; }
#work .row > [class*="col-lg"] > .d-flex.flex-column > .card { flex: 1 1 auto; }
#work .card-body { display: flex; flex-direction: column; justify-content: center; }
.hero ~ section .bar { height: 7px; border-radius: 999px; background: #e8ecf3; overflow: hidden; }
.hero ~ section .bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--hp-blue), #2d5591); }
.hero ~ section .bar > span.ok { background: var(--hp-navy-mid); }
.hero ~ section .bar > span.warn { background: linear-gradient(90deg, #e8842a, #f2ae5c); }
.hero ~ section .card .pill { border-radius: 999px; font-weight: 600; padding: .28rem .7rem; }
.hero ~ section .card[style*="var(--ink)"] {
    background: linear-gradient(160deg, var(--hp-navy-mid), var(--hp-navy-deep)) !important; border: 0 !important; box-shadow: var(--hp-shadow-md);
}
.hero ~ section .card[style*="var(--ink)"] .card-body { padding: 1.4rem; }

/* ---------- WARD DIRECTORY ---------- */
#wards .hp-ward-grid { gap: .9rem; }
#wards .hp-ward { border-radius: var(--hp-r-md); padding: 1.1rem 1.25rem; background: #fff; border: 1px solid var(--hp-line); box-shadow: var(--hp-shadow-sm); }
#wards .hp-ward::before { height: 3px; background: linear-gradient(90deg, var(--hp-navy-mid), #ee9b3f); }
#wards .hp-ward .no { color: var(--hp-gold-ink); font-family: inherit; letter-spacing: .03em; font-size: .76rem; text-transform: none; }
#wards .hp-ward .no::before { background: var(--hp-gold); }
#wards .hp-ward .nm { font-size: .95rem; color: var(--hp-navy); }
#wards .hp-ward .stats { border-top: 1px solid var(--hp-line); }
#wards .hp-ward .stats strong { font-family: inherit; }
#wards .hp-ward:hover { box-shadow: var(--hp-shadow-md); transform: translateY(-2px); }
#wards .wd-search .form-control { background: #fff; }
#wards .wd-toggle { background: #fff; }
#wards .wd-pill.active { background: var(--hp-navy); }
#wards .wd-empty { background: #fff; }

/* ---------- EVENTS ---------- */
#events .row > [class*="col-"] > * { height: 100%; }
#events .event-card { border: 1px solid var(--hp-line); border-radius: var(--hp-r-lg); box-shadow: var(--hp-shadow-sm); display: flex; flex-direction: column; }
#events .event-card:hover { transform: translateY(-2px); box-shadow: var(--hp-shadow-md); }
#events .event-card-image { height: 200px; }
#events .event-card-title { color: var(--hp-navy); font-weight: 700; }
#events .event-date-badge { background: #fff4e2; color: var(--hp-gold-ink); }
#events .event-featured-badge { background: var(--hp-navy); }

/* ---------- Header rows: keep them tidy ---------- */
.hero ~ section .d-flex.justify-content-between.align-items-end { gap: .75rem; }
.hero ~ section .d-flex.justify-content-between.align-items-end.mb-4 { margin-bottom: 1.25rem !important; }
.hero ~ section .d-flex.justify-content-between.align-items-end.mb-3 { margin-bottom: 1rem !important; }

/* ---------- Accessibility ---------- */
.hero ~ section a:focus-visible, .hero ~ section button:focus-visible,
.hero ~ section .cat-chip:focus-visible, .hero ~ section .date-card:focus-visible {
    outline: 3px solid var(--hp-gold); outline-offset: 3px; border-radius: 10px;
}
@media (prefers-reduced-motion: reduce) {
    .hero ~ section *, .hero ~ section *::before { transition: none !important; animation: none !important; }
    .hero ~ section .card:hover, .hero ~ section .stat:hover, #wards .hp-ward:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    #work .row > [class*="col-lg"] > .d-flex.flex-column > .card { flex: 0 1 auto; }
}
@media (max-width: 575px) {
    .hero ~ section { padding-block: 2rem !important; }
    #connect .dl-tab { padding: .55rem .9rem; font-size: .85rem; }
    .hero ~ section .card-body { padding: 1rem; }
    #about .profile-row { padding: .75rem 0; }
}

/* ---------- JANATA KARYALAY (neutral bridge into the footer) ---------- */
/*#karyalay { background: linear-gradient(180deg, var(--hp-neutral) 0%, #ffffff 100%) !important; }*/
#karyalay .jk-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
#karyalay .jk-head p.muted { max-width: 62ch; }
#karyalay .jk-links { display: flex; flex-wrap: wrap; gap: .5rem; }
#karyalay .jk-stack { display: flex; flex-direction: column; gap: 1rem; height: 100%; }
#karyalay .jk-stack > .jk-panel { flex: 1; }

/* compact pillars: icon left, text right */
#karyalay .jk-pillar {
    display: flex; align-items: flex-start; gap: .85rem; height: 100%; padding: 1rem 1.1rem; background: #fff;
    border: 1px solid var(--hp-line); border-radius: var(--hp-r-md); box-shadow: var(--hp-shadow-sm);
    transition: transform var(--hp-ease), box-shadow var(--hp-ease), border-color var(--hp-ease);
}
#karyalay .jk-pillar:hover { transform: translateY(-2px); box-shadow: var(--hp-shadow-md); border-color: #d3d9e4; }
#karyalay .jk-icon {
    flex: 0 0 38px; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px;
    background: #fff4e2; color: var(--hp-gold-ink); font-size: 1.05rem; transition: background var(--hp-ease), color var(--hp-ease);
}
#karyalay .jk-pillar:hover .jk-icon { background: var(--hp-navy); color: var(--hp-gold); }
#karyalay .jk-icon.sm { flex-basis: 42px; width: 42px; height: 42px; font-size: 1.15rem; }
#karyalay .jk-pillar h3 { font-size: .95rem; font-weight: 700; color: var(--hp-navy); margin: 0 0 .2rem; line-height: 1.3; }
#karyalay .jk-pillar p { font-size: .82rem; line-height: 1.5; color: var(--hp-muted); margin: 0; }

/* office panel — same ivory family as the profile card */
#karyalay .jk-panel {
    padding: clamp(1.1rem, 2.5vw, 1.5rem); border-radius: var(--hp-r-lg);
    background: linear-gradient(160deg, #fffdf8 0%, #faf3e2 100%); border: 1px solid #eadfc2; box-shadow: var(--hp-shadow-sm);
    display: flex; flex-direction: column;
}
#karyalay .jk-panel-head { display: flex; align-items: center; gap: .85rem; padding-bottom: .9rem; border-bottom: 1px solid #eadfc2; }
#karyalay .jk-panel-head h3 { font-size: 1.05rem; font-weight: 800; color: var(--hp-navy); margin: 0; letter-spacing: -.01em; }
#karyalay .jk-panel-head p { font-size: .8rem; color: var(--hp-muted); margin: .1rem 0 0; }
#karyalay .jk-list { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; }
#karyalay .jk-list li { flex: 1; display: flex; align-items: center; gap: .85rem; padding: .8rem 0; border-bottom: 1px solid #efe6cf; }
#karyalay .jk-list li:last-child { border-bottom: 0; padding-bottom: 0; }
#karyalay .jk-list i { flex: 0 0 34px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: #fff; border: 1px solid #eadfc2; color: var(--hp-gold-ink); }
#karyalay .jk-place strong { display: block; color: var(--hp-navy); font-size: .92rem; line-height: 1.35; }
#karyalay .jk-place span { display: block; font-size: .82rem; color: var(--hp-muted); margin-top: .1rem; }

/* photo */
#karyalay .jk-photo {
    position: relative; margin: 0; height: 100%; min-height: 420px; border-radius: var(--hp-r-lg); overflow: hidden;
    border: 1px solid var(--hp-line); box-shadow: var(--hp-shadow-md); background: var(--hp-navy);
}
#karyalay .jk-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
#karyalay .jk-photo:hover img { transform: scale(1.03); }
#karyalay .jk-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,27,69,0) 45%, rgba(16,27,69,.78) 100%); pointer-events: none; }
#karyalay .jk-photo.is-empty { background: linear-gradient(160deg, #16213e 0%, #101b45 60%, #0f3460 100%); }
#karyalay .jk-photo.is-empty > i { position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%); font-size: 5.5rem; color: rgba(212,168,67,.35); }
#karyalay .jk-photo figcaption { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1.1rem; z-index: 1; color: #fff; }
#karyalay .jk-photo strong { display: block; font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin-top: .4rem; }
#karyalay .jk-cap-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .03em; color: #f1d58a; background: rgba(16,27,69,.55); border: 1px solid rgba(212,168,67,.4); padding: .2rem .6rem; border-radius: 999px; backdrop-filter: blur(4px); }

@media (max-width: 991px) { #karyalay .jk-photo { min-height: 0; aspect-ratio: 4 / 3; } }
@media (prefers-reduced-motion: reduce) { #karyalay .jk-photo img { transition: none; } #karyalay .jk-photo:hover img { transform: none; } }


/* ============ EVENTS ============ */
.event-card { transition: transform .3s ease, box-shadow .3s ease; border: none; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.08); background: #fff; }
.event-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.event-card-image { width: 100%; height: 220px; background-size: cover; background-position: center; position: relative; background-color: #f0f2f5; }
.event-card-image .event-card-icon { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 4rem; color: rgba(255,255,255,.5); }
.event-featured-badge { position: absolute; top: 12px; right: 12px; background: #D4A843; color: #fff; padding: 4px 14px; border-radius: 20px; font-size: .7rem; font-weight: 600; z-index: 2; }
.event-date-badge { display: inline-flex; align-items: center; background: rgba(212,168,67,.1); color: #D4A843; padding: 4px 14px; border-radius: 20px; font-size: .8rem; font-weight: 500; }
.event-card-title { font-size: 1.1rem; font-weight: 600; margin-bottom: .5rem; color: #1a1a2e; line-height: 1.4; }
.event-card-description { font-size: .9rem; color: #6c757d; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.event-card .btn-outline-accent { border-color: #D4A843; color: #D4A843; }
.event-card .btn-outline-accent:hover { background: #D4A843; color: #fff; }

/* ============ ABOUT ============ */
.about-copy p { font-size: 1.02rem; line-height: 1.8; color: #3d4459; margin-bottom: 1rem; }
.about-copy p.about-lead { font-size: 1.2rem; line-height: 1.7; color: var(--ink); font-weight: 500; padding-left: 18px; border-left: 3px solid #D4A843; }
.profile-card { background: linear-gradient(160deg,#1a1a2e 0%,#16213e 60%,#0f3460 100%); color: #fff; border-radius: 16px; padding: 28px; position: relative; overflow: hidden; box-shadow: 0 12px 32px rgba(15,23,60,.18); }
.profile-card::before { content: ''; position: absolute; top: -90px; right: -90px; width: 240px; height: 240px; background: rgba(212,168,67,.10); border-radius: 50%; }
.profile-votes { border-bottom: 1px solid rgba(255,255,255,.14); padding-bottom: 20px; margin-bottom: 8px; position: relative; }
.profile-votes .num { font-size: 2.6rem; font-weight: 700; color: #D4A843; line-height: 1; }
.profile-votes .cap { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #B6C3E2; margin-top: 6px; }
.profile-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); position: relative; }
.profile-row:last-child { border-bottom: 0; padding-bottom: 0; }
.profile-row i { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; background: rgba(212,168,67,.15); color: #D4A843; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.profile-row .lbl { font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; color: #9fb0d3; display: block; }
.profile-row .val { font-weight: 600; font-size: .95rem; color: #fff; line-height: 1.4; }

/* ============ DIRECT LINE ============ */
.dl-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.05); margin-bottom: 18px; }
.dl-tab { border: 0; background: transparent; padding: 10px 22px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: #4a5270; transition: all .2s ease; }
.dl-tab:hover { color: var(--ink); }
.dl-tab.active { background: var(--ink); color: #fff; box-shadow: 0 4px 12px rgba(15,23,60,.25); }
.dl-panel-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: 0 8px 28px rgba(0,0,0,.06); }
.dl-pane { display: none; }
.dl-pane.active { display: block; }
.dl-label { display: block; font-size: .78rem; font-weight: 600; color: #3d4459; margin-bottom: 6px; }
.dl-panel-card .form-control, .dl-panel-card .form-select { background-color: #FAFBFE; border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 14px; }
.dl-panel-card .form-control:focus, .dl-panel-card .form-select:focus { border-color: #f39d4e; box-shadow: 0 0 0 3px rgb(243 157 78 / 12%); background: #fff; }
.dl-h { font-size: 1.35rem; color: var(--ink); margin-bottom: 18px; font-weight: 700; }
.dl-stepper { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.dl-dot { width: 30px; height: 30px; border-radius: 50%; background: #f1ede2; color: #8a93a8; font-weight: 700; font-size: .8rem; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.dl-dot.active { background: var(--saffron); color: #fff; box-shadow: 0 0 0 6px rgba(238,155,63,.15); }
.dl-dot.done { background: #1f8a5b; color: #fff; }
.dl-line { flex: 0 0 60px; height: 2px; background: #e9ecef; }
.dl-step-pane { display: none; }
.dl-step-pane.active { display: block; }
a.dl-tab { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
a.dl-tab i { font-size: .75rem; opacity: .55; }
a.dl-tab:hover i { opacity: 1; }
.dl-count { text-align: right; font-size: .75rem; color: #8a93a8; margin-top: 4px; }
.dl-note { font-size: .8rem; color: #6c757d; }
.dl-err { color: #c0392b; font-size: .8rem; display: none; margin-top: 6px; padding: 6px 10px; background: #fdecea; border-left: 3px solid #c0392b; border-radius: 6px; }
@media (max-width: 768px) { .dl-panel-card { padding: 20px; } .dl-tab { padding: 8px 14px; font-size: .82rem; } .dl-tabs { border-radius: 20px; } }

/* category chips */
.cat-grid-compact { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.cat-chip { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-2); background: #FAFBFE; border-radius: 12px; cursor: pointer; transition: all .18s ease; text-align: left; user-select: none; min-height: 56px; }
.cat-chip:hover { border-color: #D4A843; background: #fff; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(212,168,67,.12); }
.cat-chip i { font-size: 1.25rem; color: var(--saffron); flex: 0 0 auto; }
.cat-chip .cat-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.cat-chip .cat-name { font-size: .84rem; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-chip .cat-bn { font-size: .7rem; color: #8a93a8; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-chip.selected { background: var(--ink); border-color: var(--ink); box-shadow: 0 8px 22px rgba(15,23,60,.25); }
.cat-chip.selected i { color: #D4A843; }
.cat-chip.selected .cat-name { color: #fff; }
.cat-chip.selected .cat-bn { color: #B6C3E2; }
@media (max-width: 480px) { .cat-grid-compact { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); } }

/* file upload */
.file-upload-area { border: 2px dashed #e6e0d0; border-radius: 12px; padding: 18px; transition: all .25s ease; position: relative; background: #faf8f3; }
.file-upload-area.dragover { border-color: #D4A843; background-color: rgba(212,168,67,.06); }
.upload-dropzone { text-align: center; cursor: pointer; padding: 16px; }
.upload-dropzone:hover { background-color: rgba(0,0,0,.02); border-radius: 8px; }
.file-items { display: flex; flex-direction: column; gap: 8px; }
.file-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: #fff; border-radius: 8px; border: 1px solid #e6e0d0; }
.file-item .file-info { display: flex; align-items: center; gap: 10px; flex: 1; }
.file-item .file-icon { font-size: 1.4rem; color: #D4A843; }
.file-item .file-details { display: flex; flex-direction: column; }
.file-item .file-name { font-weight: 500; font-size: .9rem; color: var(--ink); }
.file-item .file-size { font-size: .75rem; color: #8a93a8; }
.file-item .btn-remove-file { background: none; border: none; color: #c0392b; cursor: pointer; padding: 4px 8px; border-radius: 4px; font-size: 1.1rem; }
.file-item .btn-remove-file:hover { background-color: rgba(192,57,43,.1); }

/* date grid */
.date-card { border: 2px solid #e6e0d0; border-radius: 10px; padding: 10px 6px; text-align: center; cursor: pointer; transition: all .2s; background: #fafbfe; }
.date-card:hover:not(.fully-booked):not(.user-booked) { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(212,168,67,.18); }
.date-card.selected { border-color: var(--ink); background: var(--ink); }
.date-card.selected .day, .date-card.selected .date-num, .date-card.selected .month, .date-card.selected .slots-available { color: #fff; }
.date-card.selected .slots-available .count { color: #D4A843; }
.date-card.fully-booked { opacity: .5; cursor: not-allowed; background: #f1ede2; }
.date-card.user-booked { opacity: .7; cursor: not-allowed; background: #fff7ed; border-color: #fed7aa; }
.date-card.user-booked .blocked-label.warn { color: #b45309; font-weight: 600; }
.date-card .day { font-size: .7rem; color: #8a93a8; text-transform: uppercase; letter-spacing: .05em; }
.date-card .date-num { font-size: 1.3rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.date-card .month { font-size: .7rem; color: #8a93a8; text-transform: uppercase; }
.date-card .slots-available { font-size: .65rem; margin-top: 4px; color: #6c757d; }
.date-card .slots-available .count { font-weight: 700; color: #1f8a5b; }
.date-card .blocked-label { font-size: .62rem; color: #c0392b; font-weight: 600; }
.loading-spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid #e6e0d0; border-top-color: #D4A843; border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.selected-info { background: #faf8f3; border: 1px solid #D4A843; border-radius: 12px; padding: 14px; margin-top: 10px; }
.selected-info .label { font-size: .72rem; color: #8a93a8; text-transform: uppercase; letter-spacing: .05em; }
.selected-info .value { font-weight: 600; color: var(--ink); }

/* toast */
.dl-toast { position: fixed; top: 20px; right: 20px; z-index: 9999; background: #fff; border-radius: 10px; padding: 14px 16px; box-shadow: 0 10px 34px rgba(15,23,60,.18); max-width: 420px; display: flex; align-items: flex-start; gap: 12px; animation: dlToastIn .3s ease; }
@keyframes dlToastIn { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ward directory */
.hp-ward-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.hp-ward { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.35rem 1.4rem; text-decoration: none; color: inherit; transition: all .25s ease; display: block; overflow: hidden; }
.hp-ward::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--teal) 0%, var(--saffron) 100%); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.hp-ward:hover { border-color: transparent; box-shadow: 0 20px 40px -20px rgba(16,27,69,.2); transform: translateY(-4px); color: inherit; }
.hp-ward:hover::before { transform: scaleX(1); }
.hp-ward .no { font-family: var(--font-mono); font-size: .66rem; color: var(--teal); letter-spacing: .14em; font-weight: 700; text-transform: uppercase; display: inline-flex; align-items: center; gap: .4rem; }
.hp-ward .no::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.hp-ward .nm { font-family: var(--font-display); font-size: 14.5px; font-weight: 600; color: var(--ink); margin: .5rem 0 3px; line-height: 1.3; }
.hp-ward .stats { margin-top: .65rem; }
.hp-ward .stats { display: flex; gap: 1rem; font-size: .76rem; color: var(--text-2); padding-top: .75rem; border-top: 1px dashed var(--line); }
.hp-ward .stats strong { color: var(--ink); font-family: var(--font-mono); font-weight: 700; }
.hp-ward.is-quiet .stats strong { color: #8a93a8; }
.hp-ward[hidden] { display: none; }
@media (max-width: 991px) { .hp-ward-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .hp-ward-grid { grid-template-columns: 1fr; } }
#wards .wd-tools { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
#wards .wd-search { position: relative; min-width: 265px; }
#wards .wd-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #8a93a8; }
#wards .wd-search .form-control { padding-left: 40px; border-radius: 12px; border: 1px solid #e4e8f1; height: 46px; }
#wards .wd-search .form-control:focus { border-color: #D4A843; box-shadow: 0 0 0 4px rgba(212,168,67,.18); }
#wards .wd-toggle { display: inline-flex; padding: 4px; background: #fff; border: 1px solid #e4e8f1; border-radius: 12px; }
#wards .wd-pill { border: 0; background: transparent; padding: .55rem 1rem; border-radius: 9px; font-weight: 600; font-size: .85rem; color: #4a5270; }
#wards .wd-pill.active { background: #101b45; color: #fff; }
#wards .wd-empty { text-align: center; padding: 3rem 1rem; color: #6b7390; background: #fff; border: 1px dashed #e4e8f1; border-radius: 16px; }
#wards .wd-empty i { font-size: 1.8rem; display: block; margin-bottom: .5rem; }
@media (max-width: 575px) { #wards .wd-search { min-width: 100%; } #wards .wd-tools { width: 100%; } }

.hero-track { display: inline-flex; align-items: center; gap: .55rem; color: #C8D3EC; font-size: .88rem; text-decoration: none; padding: .5rem 0; border-bottom: 1px dashed rgba(255,255,255,.25); transition: all .22s ease; margin-top: 1.5rem; }
.hero-track:hover { color: var(--saffron); border-bottom-color: var(--saffron); gap: .75rem; }