/* ==========================================================================
   Digital NGO Management Portal — Pratishthan Kala Sanskruti Ani Sahitya Sanstha
   style.css — Global design system + component styles
   ========================================================================== */

/* ---------- 1. DESIGN TOKENS ---------- */
:root{
  /* Brand palette */
  --color-primary:#0056b3;
  --color-primary-dark:#003d82;
  --color-primary-light:#e8f1fb;
  --color-secondary:#198754;
  --color-secondary-dark:#0f5c37;
  --color-accent:#ff9800;
  --color-accent-dark:#c66900;
  --color-white:#ffffff;
  --color-light-gray:#f4f6f8;
  --color-gray-100:#eef1f4;
  --color-gray-200:#dde2e7;
  --color-gray-400:#9aa5b1;
  --color-gray-600:#5c6773;
  --color-gray-800:#2c333b;
  --color-ink:#1b2430;
  --color-success:#198754;
  --color-danger:#c62828;
  --color-warning:#ff9800;

  /* Surfaces (theme-able) */
  --bg-body:#f4f6f8;
  --bg-surface:#ffffff;
  --bg-surface-alt:#f0f4f8;
  --bg-header:#ffffff;
  --text-body:#1b2430;
  --text-muted:#5c6773;
  --border-color:#dde2e7;
  --shadow-sm:0 1px 3px rgba(15,30,50,.08);
  --shadow-md:0 6px 18px rgba(15,30,50,.10);
  --shadow-lg:0 16px 40px rgba(15,30,50,.16);

  /* Typography */
  --font-base:'Segoe UI','Nirmala UI','Noto Sans Devanagari',Arial,sans-serif;
  --font-scale:1;
  --radius-sm:6px;
  --radius-md:12px;
  --radius-lg:20px;
  --container-w:1240px;
  --header-h:auto;
  --transition:.25s ease;
}

/* Dark theme */
[data-theme="dark"]{
  --bg-body:#0f1620;
  --bg-surface:#161f2b;
  --bg-surface-alt:#1c2734;
  --bg-header:#0f1620;
  --text-body:#eef1f4;
  --text-muted:#a7b2bf;
  --border-color:#2a3646;
  --color-primary-light:#122c47;
  --shadow-sm:0 1px 3px rgba(0,0,0,.4);
  --shadow-md:0 6px 18px rgba(0,0,0,.45);
  --shadow-lg:0 16px 40px rgba(0,0,0,.55);
}

/* High contrast theme */
[data-contrast="high"]{
  --bg-body:#000000;
  --bg-surface:#000000;
  --bg-surface-alt:#0a0a0a;
  --bg-header:#000000;
  --text-body:#ffffff;
  --text-muted:#ffff00;
  --border-color:#ffff00;
  --color-primary:#4da3ff;
  --color-secondary:#3ddc84;
  --color-accent:#ffd400;
  --color-primary-light:#001a33;
  --shadow-sm:none;--shadow-md:none;--shadow-lg:none;
}
[data-contrast="high"] img{ filter:grayscale(20%) contrast(1.1); }

html{ font-size:calc(16px * var(--font-scale)); scroll-behavior:smooth; }
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; } }

*,*::before,*::after{ box-sizing:border-box; }
body{
  margin:0; font-family:var(--font-base); background:var(--bg-body); color:var(--text-body);
  line-height:1.65; -webkit-font-smoothing:antialiased; transition:background var(--transition),color var(--transition);
}
img{ max-width:100%; display:block; }
a{ color:var(--color-primary); text-decoration:none; }
a:hover{ text-decoration:underline; }
button{ font-family:inherit; cursor:pointer; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,h5{ margin:0 0 .5em; line-height:1.25; font-weight:700; }
p{ margin:0 0 1em; }
.container{ width:100%; max-width:var(--container-w); margin:0 auto; padding:0 20px; }

/* Focus visibility for keyboard nav / accessibility */
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible{
  outline:3px solid var(--color-accent); outline-offset:2px; border-radius:4px;
}

/* Skip link */
.skip-link{
  position:absolute; left:8px; top:-60px; background:var(--color-ink); color:#fff; padding:10px 18px;
  border-radius:0 0 8px 8px; z-index:10000; transition:top .2s;
}
.skip-link:focus{ top:0; }

/* ---------- 2. LOADING SCREEN ---------- */
#loading-screen{
  position:fixed; inset:0; z-index:99999; background:linear-gradient(135deg,var(--color-primary),var(--color-primary-dark));
  display:flex; align-items:center; justify-content:center; flex-direction:column; gap:16px; color:#fff;
  transition:opacity .5s ease,visibility .5s ease;
}
#loading-screen.hide{ opacity:0; visibility:hidden; pointer-events:none; }
.loader-ring{ width:64px; height:64px; border:5px solid rgba(255,255,255,.25); border-top-color:#fff; border-radius:50%; animation:spin 0.9s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }
.loader-text{ font-weight:600; letter-spacing:.5px; }

/* ---------- 3. TOP UTILITY / ANNOUNCEMENT BAR ---------- */
.announcement-bar{
  background:var(--color-accent-dark); color:#fff; font-size:.85rem; overflow:hidden; position:relative;
}
.announcement-inner{ display:flex; align-items:center; gap:10px; padding:7px 20px; }
.announcement-badge{ background:#fff; color:var(--color-accent-dark); font-weight:700; padding:2px 10px; border-radius:20px; font-size:.72rem; text-transform:uppercase; flex-shrink:0; }
.ticker-viewport{ flex:1; overflow:hidden; white-space:nowrap; }
.ticker-track{ display:inline-block; padding-left:100%; animation:ticker 28s linear infinite; }
@keyframes ticker{ from{ transform:translateX(0);} to{ transform:translateX(-100%);} }
.announcement-bar .close-btn{ background:transparent; border:0; color:#fff; font-size:1.1rem; flex-shrink:0; }

.utility-bar{ background:var(--color-primary-dark); color:#fff; font-size:.78rem; }
.utility-inner{ display:flex; justify-content:space-between; align-items:center; padding:5px 20px; flex-wrap:wrap; gap:8px; }
.utility-left{ display:flex; gap:18px; flex-wrap:wrap; }
.utility-left span{ display:inline-flex; align-items:center; gap:6px; }
.utility-right{ display:flex; gap:14px; align-items:center; }
.gov-links a{ color:#e6eefb; margin-left:2px;}
.gov-links a:hover{ color:#fff; }

/* ---------- 4. HEADER ---------- */
header.site-header{ background:var(--bg-header); box-shadow:var(--shadow-sm); position:relative; z-index:500; }
.header-main{ display:flex; align-items:center; justify-content:space-between; gap:20px; padding:14px 20px; max-width:var(--container-w); margin:0 auto; }
.brand{ display:flex; align-items:center; gap:14px; min-width:0; }
.brand .logo-emblem{ width:64px; height:64px; flex-shrink:0; object-fit:contain; background:#fff; border-radius:50%; padding:2px; }
.brand-text{ min-width:0; }
.brand-text .org-name{ font-size:1.28rem; font-weight:800; color:var(--color-primary); margin:0; line-height:1.2; }
.brand-text .org-name-native{ font-size:.85rem; color:var(--text-muted); font-weight:600; }
.brand-text .org-meta{ font-size:.74rem; color:var(--text-muted); display:flex; gap:10px; flex-wrap:wrap; margin-top:3px; }
.brand-text .org-meta strong{ color:var(--color-secondary); }
.brand-text .org-tagline{ font-size:.78rem; color:var(--color-accent-dark); font-style:italic; margin-top:2px; }

.header-actions{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.lang-switcher{ display:flex; border:1px solid var(--border-color); border-radius:30px; overflow:hidden; }
.lang-switcher button{ border:0; background:transparent; padding:6px 12px; font-size:.8rem; font-weight:600; color:var(--text-muted); }
.lang-switcher button.active{ background:var(--color-primary); color:#fff; }
.icon-btn{ border:1px solid var(--border-color); background:var(--bg-surface); width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--color-primary); transition:transform var(--transition),background var(--transition); }
.icon-btn:hover{ background:var(--color-primary-light); transform:translateY(-2px); }
.icon-btn svg{ width:18px; height:18px; }
.header-donate-btn{ background:var(--color-secondary); color:#fff; padding:9px 18px; border-radius:30px; font-weight:700; font-size:.85rem; box-shadow:var(--shadow-sm); border:0; }
.header-donate-btn:hover{ background:var(--color-secondary-dark); text-decoration:none; }

/* Accessibility panel */
.a11y-panel{ position:fixed; top:0; right:-320px; width:300px; height:100%; background:var(--bg-surface); box-shadow:var(--shadow-lg); z-index:9998; padding:20px; overflow-y:auto; transition:right .3s ease; }
.a11y-panel.open{ right:0; }
.a11y-panel h3{ color:var(--color-primary); display:flex; justify-content:space-between; align-items:center; }
.a11y-row{ margin-bottom:16px; }
.a11y-row label{ display:block; font-weight:600; font-size:.85rem; margin-bottom:6px; }
.a11y-btns{ display:flex; gap:8px; flex-wrap:wrap; }
.a11y-btns button{ border:1px solid var(--border-color); background:var(--bg-surface-alt); padding:7px 12px; border-radius:8px; font-size:.8rem; }
.a11y-btns button.active-opt{ background:var(--color-primary); color:#fff; border-color:var(--color-primary); }
.a11y-overlay{ position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:9997; display:none; }
.a11y-overlay.show{ display:block; }

/* ---------- 5. NAVIGATION ---------- */
nav.main-nav{ background:var(--color-primary); position:sticky; top:0; z-index:400; box-shadow:var(--shadow-md); }
.nav-inner{ max-width:var(--container-w); margin:0 auto; display:flex; align-items:center; padding:0 20px; }
.nav-toggle{ display:none; background:transparent; border:0; color:#fff; padding:14px; }
.nav-toggle svg{ width:24px; height:24px; }
.nav-list{ display:flex; flex-wrap:wrap; }
.nav-list a{ display:block; color:#fff; padding:13px 15px; font-size:.86rem; font-weight:600; white-space:nowrap; }
.nav-list a:hover,.nav-list a:focus-visible,.nav-list a.active{ background:var(--color-primary-dark); text-decoration:none; }
.nav-list li{ position:relative; }

/* ---------- 6. HERO ---------- */
.hero{ position:relative; color:#fff; overflow:hidden; min-height:560px; display:flex; align-items:center; }
.hero-media{ position:absolute; inset:0; z-index:0; }
.hero-media video,.hero-media img{ width:100%; height:100%; object-fit:cover; }
.hero-overlay{ position:absolute; inset:0; background:linear-gradient(120deg,rgba(0,45,90,.88),rgba(0,86,179,.72) 55%,rgba(25,135,84,.55)); z-index:1; }
.hero-content{ position:relative; z-index:2; max-width:var(--container-w); margin:0 auto; padding:80px 20px; width:100%; }
.hero-eyebrow{ display:inline-flex; align-items:center; gap:8px; background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.4); padding:6px 16px; border-radius:30px; font-size:.78rem; font-weight:700; letter-spacing:.4px; text-transform:uppercase; backdrop-filter:blur(4px); }
.hero h1{ font-size:clamp(2rem,4.2vw,3.4rem); max-width:820px; margin:18px 0 10px; text-shadow:0 3px 12px rgba(0,0,0,.35); }
.hero .typing{ border-right:3px solid var(--color-accent); white-space:nowrap; overflow:hidden; display:inline-block; }
.hero-sub{ max-width:680px; font-size:1.08rem; opacity:.95; margin-bottom:28px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.btn{ display:inline-flex; align-items:center; gap:8px; padding:13px 26px; border-radius:30px; font-weight:700; font-size:.92rem; border:2px solid transparent; transition:transform var(--transition),box-shadow var(--transition),background var(--transition); }
.btn:hover{ transform:translateY(-3px); text-decoration:none; box-shadow:var(--shadow-md); }
.btn-accent{ background:var(--color-accent); color:#1b2430; }
.btn-accent:hover{ background:var(--color-accent-dark); color:#fff; }
.btn-primary{ background:var(--color-primary); color:#fff; }
.btn-primary:hover{ background:var(--color-primary-dark); }
.btn-secondary{ background:var(--color-secondary); color:#fff; }
.btn-secondary:hover{ background:var(--color-secondary-dark); }
.btn-outline{ background:transparent; border-color:#fff; color:#fff; }
.btn-outline:hover{ background:#fff; color:var(--color-primary); }
.btn-outline-dark{ background:transparent; border-color:var(--color-primary); color:var(--color-primary); }
.btn-outline-dark:hover{ background:var(--color-primary); color:#fff; }
.btn-sm{ padding:8px 16px; font-size:.8rem; }
.btn-block{ width:100%; justify-content:center; }
.btn[disabled]{ opacity:.55; cursor:not-allowed; transform:none !important; }

/* ---------- 7. SECTION SCAFFOLDING ---------- */
section{ padding:70px 0; scroll-margin-top:64px; }
section.alt-bg{ background:var(--bg-surface-alt); }
.section-head{ text-align:center; max-width:760px; margin:0 auto 44px; }
.section-eyebrow{ color:var(--color-secondary); font-weight:700; text-transform:uppercase; letter-spacing:1px; font-size:.78rem; }
.section-head h2{ font-size:clamp(1.6rem,3vw,2.3rem); color:var(--color-ink); margin-top:6px; }
.section-head p{ color:var(--text-muted); }
.section-head.left{ text-align:left; margin:0 0 36px; }
.divider-mark{ width:60px; height:4px; background:linear-gradient(90deg,var(--color-primary),var(--color-secondary)); margin:12px auto 0; border-radius:4px; }
.section-head.left .divider-mark{ margin-left:0; }

/* Reveal-on-scroll animation */
.reveal{ opacity:0; transform:translateY(28px); transition:opacity .7s ease,transform .7s ease; }
.reveal.in-view{ opacity:1; transform:translateY(0); }
.reveal-delay-1{ transition-delay:.08s; } .reveal-delay-2{ transition-delay:.16s; } .reveal-delay-3{ transition-delay:.24s; } .reveal-delay-4{ transition-delay:.32s; }

/* ---------- 8. COUNTERS ---------- */
.counters-band{ background:linear-gradient(120deg,var(--color-primary),var(--color-primary-dark)); color:#fff; }
.counters-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:18px; text-align:center; }
.counter-card .count{ font-size:2.1rem; font-weight:800; color:var(--color-accent); }
.counter-card .count-label{ font-size:.8rem; opacity:.9; margin-top:4px; }
.counter-card svg{ width:28px; height:28px; margin-bottom:6px; opacity:.85; }

/* ---------- 9. CARDS (generic) ---------- */
.grid{ display:grid; gap:26px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }

.card{ background:var(--bg-surface); border-radius:var(--radius-md); box-shadow:var(--shadow-sm); overflow:hidden; border:1px solid var(--border-color); transition:transform var(--transition),box-shadow var(--transition); display:flex; flex-direction:column; }
.card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-lg); }
.card-media{ position:relative; aspect-ratio:16/10; overflow:hidden; background:var(--color-gray-200); }
.card-media img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.card:hover .card-media img{ transform:scale(1.08); }
.card-badge{ position:absolute; top:10px; left:10px; background:var(--color-accent); color:#1b2430; font-size:.7rem; font-weight:700; padding:4px 10px; border-radius:20px; text-transform:uppercase; }
.card-badge.status-completed{ background:var(--color-gray-400); color:#fff; }
.card-badge.status-ongoing{ background:var(--color-secondary); color:#fff; }
.card-body{ padding:18px 20px; flex:1; display:flex; flex-direction:column; }
.card-meta{ display:flex; gap:12px; font-size:.74rem; color:var(--text-muted); flex-wrap:wrap; margin-bottom:8px; }
.card-meta span{ display:inline-flex; align-items:center; gap:4px; }
.card h3{ font-size:1.05rem; margin-bottom:8px; color:var(--color-ink); }
.card p{ color:var(--text-muted); font-size:.9rem; flex:1; }
.card-footer{ display:flex; justify-content:space-between; align-items:center; margin-top:12px; gap:10px; flex-wrap:wrap; }
.tag{ background:var(--color-primary-light); color:var(--color-primary); font-size:.7rem; font-weight:700; padding:3px 10px; border-radius:20px; }
.tag.green{ background:#e5f4ec; color:var(--color-secondary); }

/* ---------- 10. HOME: about strip / mission ---------- */
.mission-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:50px; align-items:center; }
.mission-media{ position:relative; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-lg); }
.mission-media img{ width:100%; }
.mission-points{ display:grid; gap:14px; margin-top:20px; }
.mission-point{ display:flex; gap:14px; align-items:flex-start; }
.mission-point .ico{ flex-shrink:0; width:42px; height:42px; border-radius:50%; background:var(--color-primary-light); color:var(--color-primary); display:flex; align-items:center; justify-content:center; }
.mission-point .ico svg{ width:20px;height:20px; }

/* Testimonials */
.testimonial-card{ background:var(--bg-surface); border-radius:var(--radius-md); padding:26px; box-shadow:var(--shadow-sm); border:1px solid var(--border-color); position:relative; }
.testimonial-card .quote-mark{ font-size:2.6rem; color:var(--color-accent); line-height:1; font-family:Georgia,serif; }
.testimonial-person{ display:flex; align-items:center; gap:12px; margin-top:14px; }
.testimonial-person img{ width:46px; height:46px; border-radius:50%; object-fit:cover; }
.testimonial-person strong{ display:block; font-size:.88rem; }
.testimonial-person span{ font-size:.76rem; color:var(--text-muted); }

/* Partners strip */
.partners-track-wrap{ overflow:hidden; position:relative; -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); }
.partners-track{ display:flex; gap:60px; align-items:center; width:max-content; animation:scroll-left 24s linear infinite; }
@keyframes scroll-left{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }
.partner-chip{ background:var(--bg-surface); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:14px 26px; font-weight:700; color:var(--color-gray-600); white-space:nowrap; box-shadow:var(--shadow-sm); }

/* ---------- 11. TIMELINE (About) ---------- */
.timeline{ position:relative; max-width:820px; margin:0 auto; padding-left:34px; border-left:3px solid var(--color-primary-light); }
.timeline-item{ position:relative; padding-bottom:34px; }
.timeline-item::before{ content:''; position:absolute; left:-43px; top:2px; width:16px; height:16px; border-radius:50%; background:var(--color-accent); border:3px solid var(--bg-body); box-shadow:0 0 0 3px var(--color-primary); }
.timeline-item .yr{ color:var(--color-primary); font-weight:800; font-size:1.05rem; }

/* Org chart */
.org-chart{ display:grid; gap:16px; justify-items:center; }
.org-level{ display:flex; gap:16px; flex-wrap:wrap; justify-content:center; }
.org-box{ background:var(--bg-surface); border:2px solid var(--color-primary); border-radius:var(--radius-sm); padding:10px 18px; font-weight:700; font-size:.84rem; text-align:center; box-shadow:var(--shadow-sm); }
.org-box small{ display:block; font-weight:400; color:var(--text-muted); }

/* Message cards (Founder/President/Secretary) */
.message-card{ display:grid; grid-template-columns:180px 1fr; gap:24px; background:var(--bg-surface); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:26px; box-shadow:var(--shadow-sm); align-items:start; }
.message-card img{ border-radius:var(--radius-md); width:100%; aspect-ratio:1/1; object-fit:cover; }
.message-card h4{ color:var(--color-primary); margin-bottom:2px; }
.message-card .role{ color:var(--color-secondary); font-weight:700; font-size:.82rem; margin-bottom:10px; }

/* ---------- 12. DOCUMENT CENTER ---------- */
.doc-toolbar{ display:flex; gap:14px; flex-wrap:wrap; align-items:center; justify-content:space-between; margin-bottom:24px; background:var(--bg-surface); padding:16px; border-radius:var(--radius-md); border:1px solid var(--border-color); box-shadow:var(--shadow-sm); }
.search-box{ display:flex; align-items:center; gap:8px; background:var(--bg-surface-alt); border:1px solid var(--border-color); border-radius:30px; padding:8px 16px; flex:1; min-width:220px; }
.search-box input{ border:0; background:transparent; outline:0; width:100%; color:var(--text-body); font-size:.9rem; }
.search-box svg{ width:18px;height:18px; color:var(--text-muted); flex-shrink:0; }
.select-control{ padding:9px 12px; border-radius:8px; border:1px solid var(--border-color); background:var(--bg-surface); color:var(--text-body); font-size:.85rem; }
.doc-filter-chips{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:26px; }
.chip{ border:1px solid var(--border-color); background:var(--bg-surface); padding:7px 15px; border-radius:20px; font-size:.78rem; font-weight:600; color:var(--text-muted); }
.chip.active{ background:var(--color-primary); border-color:var(--color-primary); color:#fff; }
.chip .count{ opacity:.7; margin-left:4px; }

.doc-card{ background:var(--bg-surface); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:18px; box-shadow:var(--shadow-sm); display:flex; flex-direction:column; gap:10px; transition:transform var(--transition),box-shadow var(--transition); }
.doc-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.doc-icon{ width:46px; height:46px; border-radius:10px; background:var(--color-primary-light); color:var(--color-primary); display:flex; align-items:center; justify-content:center; }
.doc-icon svg{ width:24px;height:24px; }
.doc-card h4{ font-size:.96rem; margin:0; color:var(--color-ink); }
.doc-card .doc-desc{ font-size:.82rem; color:var(--text-muted); flex:1; }
.doc-card .doc-meta{ font-size:.72rem; color:var(--text-muted); display:flex; flex-wrap:wrap; gap:8px 14px; border-top:1px dashed var(--border-color); padding-top:10px; }
.doc-card .doc-tags{ display:flex; gap:6px; flex-wrap:wrap; }
.doc-card .doc-actions{ display:flex; gap:8px; }
.doc-unavailable{ font-size:.72rem; color:var(--color-accent-dark); font-weight:700; background:#fff4e0; padding:6px 10px; border-radius:6px; }
[data-theme="dark"] .doc-unavailable{ background:#3a2c10; }

.pagination{ display:flex; justify-content:center; gap:8px; margin-top:34px; flex-wrap:wrap; }
.pagination button{ width:38px; height:38px; border-radius:8px; border:1px solid var(--border-color); background:var(--bg-surface); color:var(--text-body); font-weight:600; }
.pagination button.active{ background:var(--color-primary); color:#fff; border-color:var(--color-primary); }
.pagination button:disabled{ opacity:.4; cursor:not-allowed; }

.doc-highlight-row{ display:grid; grid-template-columns:1fr 1fr; gap:26px; margin-bottom:40px; }
.mini-list{ background:var(--bg-surface); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:20px; }
.mini-list h4{ color:var(--color-primary); }
.mini-list li{ display:flex; justify-content:space-between; gap:10px; padding:9px 0; border-bottom:1px dashed var(--border-color); font-size:.85rem; }
.mini-list li:last-child{ border-bottom:0; }

/* Modal (PDF viewer / generic) */
.modal-overlay{ position:fixed; inset:0; background:rgba(10,16,24,.72); z-index:9000; display:none; align-items:center; justify-content:center; padding:20px; }
.modal-overlay.open{ display:flex; }
.modal-box{ background:var(--bg-surface); border-radius:var(--radius-md); max-width:760px; width:100%; max-height:88vh; overflow:auto; box-shadow:var(--shadow-lg); animation:pop .25s ease; }
@keyframes pop{ from{ transform:scale(.94); opacity:0;} to{ transform:scale(1); opacity:1;} }
.modal-head{ display:flex; justify-content:space-between; align-items:center; padding:16px 20px; border-bottom:1px solid var(--border-color); position:sticky; top:0; background:var(--bg-surface); }
.modal-head h3{ margin:0; font-size:1.05rem; color:var(--color-primary); }
.modal-close{ background:transparent; border:0; font-size:1.3rem; color:var(--text-muted); width:32px; height:32px; border-radius:50%; }
.modal-close:hover{ background:var(--bg-surface-alt); }
.modal-body{ padding:22px; }
.pdf-preview-frame{ width:100%; height:60vh; border:1px solid var(--border-color); border-radius:8px; background:var(--color-gray-100); }
.modal-foot{ padding:16px 20px; border-top:1px solid var(--border-color); display:flex; justify-content:flex-end; gap:10px; }

/* ---------- 12b. GOVERNMENT SCHEMES ---------- */
.scheme-group{ margin-bottom:44px; }
.scheme-group-title{ display:flex; align-items:center; gap:10px; font-size:1.15rem; color:var(--color-primary); border-bottom:2px solid var(--color-primary-light); padding-bottom:10px; margin-bottom:20px; }

/* ---------- 13. PROJECTS ---------- */
.project-detail-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin:20px 0; }
.project-stat{ background:var(--bg-surface-alt); border-radius:var(--radius-sm); padding:14px; text-align:center; }
.project-stat strong{ display:block; color:var(--color-primary); font-size:1.2rem; }
.project-stat span{ font-size:.72rem; color:var(--text-muted); }
.progress-bar{ height:10px; border-radius:20px; background:var(--color-gray-200); overflow:hidden; }
.progress-bar > i{ display:block; height:100%; background:linear-gradient(90deg,var(--color-secondary),var(--color-primary)); border-radius:20px; }

/* ---------- 14. EVENTS ---------- */
.tabs{ display:flex; gap:10px; justify-content:center; margin-bottom:30px; flex-wrap:wrap; }
.tab-btn{ border:2px solid var(--color-primary); background:transparent; color:var(--color-primary); padding:9px 22px; border-radius:30px; font-weight:700; font-size:.85rem; }
.tab-btn.active{ background:var(--color-primary); color:#fff; }
.tab-panel{ display:none; } .tab-panel.active{ display:block; }
.event-date-badge{ background:var(--color-primary); color:#fff; border-radius:10px; padding:8px 10px; text-align:center; min-width:56px; }
.event-date-badge .d{ font-size:1.2rem; font-weight:800; display:block; }
.event-date-badge .m{ font-size:.68rem; text-transform:uppercase; }
.event-row{ display:flex; gap:16px; background:var(--bg-surface); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:16px; align-items:center; box-shadow:var(--shadow-sm); }
.event-row .info{ flex:1; }
.event-row h4{ margin:0 0 4px; font-size:1rem; }
.event-row .meta{ font-size:.78rem; color:var(--text-muted); display:flex; gap:14px; flex-wrap:wrap; }

.mini-calendar{ background:var(--bg-surface); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:20px; }
.cal-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:6px; text-align:center; font-size:.78rem; margin-top:12px; }
.cal-grid .dow{ font-weight:700; color:var(--text-muted); padding-bottom:6px; }
.cal-grid .day{ padding:8px 0; border-radius:6px; }
.cal-grid .day.has-event{ background:var(--color-primary); color:#fff; font-weight:700; cursor:pointer; }
.cal-grid .day.today{ outline:2px solid var(--color-accent); }
.cal-head{ display:flex; justify-content:space-between; align-items:center; }
.cal-head button{ border:1px solid var(--border-color); background:var(--bg-surface-alt); border-radius:6px; width:30px; height:30px; }

/* ---------- 15. FORMS ---------- */
.form-card{ background:var(--bg-surface); border:1px solid var(--border-color); border-radius:var(--radius-lg); padding:34px; box-shadow:var(--shadow-md); }
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-group{ margin-bottom:18px; }
.form-group.full{ grid-column:1/-1; }
.form-group label{ display:block; font-weight:600; font-size:.86rem; margin-bottom:6px; }
.form-group .required{ color:var(--color-danger); }
.form-control{ width:100%; padding:11px 14px; border:1px solid var(--border-color); border-radius:8px; background:var(--bg-surface-alt); color:var(--text-body); font-size:.9rem; font-family:inherit; }
.form-control:focus{ outline:2px solid var(--color-primary); background:var(--bg-surface); }
textarea.form-control{ resize:vertical; min-height:110px; }
.checkbox-group,.radio-group{ display:flex; gap:10px; flex-wrap:wrap; }
.checkbox-chip{ border:1px solid var(--border-color); border-radius:8px; padding:8px 14px; font-size:.85rem; display:flex; align-items:center; gap:8px; cursor:pointer; background:var(--bg-surface-alt); }
.checkbox-chip input{ accent-color:var(--color-primary); }
.file-drop{ border:2px dashed var(--border-color); border-radius:10px; padding:26px; text-align:center; color:var(--text-muted); background:var(--bg-surface-alt); cursor:pointer; }
.file-drop.drag{ border-color:var(--color-primary); background:var(--color-primary-light); }
.field-error{ color:var(--color-danger); font-size:.76rem; margin-top:4px; display:none; }
.form-control.invalid{ border-color:var(--color-danger); }
.form-control.invalid + .field-error{ display:block; }
.form-success{ background:#e5f4ec; border:1px solid var(--color-secondary); color:var(--color-secondary-dark); padding:14px 18px; border-radius:10px; margin-top:16px; display:none; font-weight:600; }
.form-success.show{ display:block; }

/* Donation */
.donate-tabs{ display:flex; gap:0; border:1px solid var(--border-color); border-radius:30px; overflow:hidden; margin-bottom:20px; }
.donate-tabs button{ flex:1; border:0; background:var(--bg-surface-alt); padding:11px; font-weight:700; font-size:.85rem; color:var(--text-muted); }
.donate-tabs button.active{ background:var(--color-secondary); color:#fff; }
.amount-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:16px; }
.amount-chip{ border:1px solid var(--border-color); border-radius:8px; padding:12px; text-align:center; font-weight:700; background:var(--bg-surface-alt); }
.amount-chip.selected{ background:var(--color-secondary); color:#fff; border-color:var(--color-secondary); }
.donation-progress{ background:var(--bg-surface-alt); border-radius:var(--radius-md); padding:20px; margin-bottom:24px; }
.qr-box{ background:var(--bg-surface); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:20px; text-align:center; }
.bank-table{ width:100%; border-collapse:collapse; font-size:.86rem; }
.bank-table td{ padding:8px 6px; border-bottom:1px solid var(--border-color); }
.bank-table td:first-child{ color:var(--text-muted); width:40%; }

/* FAQ accordion */
.accordion-item{ border:1px solid var(--border-color); border-radius:var(--radius-sm); margin-bottom:10px; overflow:hidden; background:var(--bg-surface); }
.accordion-head{ width:100%; text-align:left; background:transparent; border:0; padding:16px 18px; display:flex; justify-content:space-between; align-items:center; font-weight:700; color:var(--color-ink); font-size:.94rem; }
.accordion-head .plus{ transition:transform .25s; color:var(--color-primary); font-size:1.2rem; }
.accordion-item.open .accordion-head .plus{ transform:rotate(45deg); }
.accordion-panel{ max-height:0; overflow:hidden; transition:max-height .3s ease; }
.accordion-panel-inner{ padding:0 18px 18px; color:var(--text-muted); font-size:.88rem; }

/* Members */
.member-card{ text-align:center; }
.member-card .card-media{ aspect-ratio:1/1; }
.member-card h3{ margin-bottom:2px; }
.member-card .designation{ color:var(--color-secondary); font-weight:700; font-size:.82rem; margin-bottom:8px; }
.member-tabs{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-bottom:30px; }

/* Blog */
.blog-cat-list{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:30px; justify-content:center; }

/* Gallery / Media */
.gallery-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.gallery-item{ position:relative; border-radius:var(--radius-sm); overflow:hidden; cursor:pointer; aspect-ratio:4/3; }
.gallery-item img,.gallery-item video{ width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.gallery-item:hover img{ transform:scale(1.1); }
.gallery-item .overlay{ position:absolute; inset:0; background:linear-gradient(0deg,rgba(0,0,0,.65),transparent 50%); display:flex; align-items:flex-end; padding:10px; opacity:0; transition:opacity .25s; }
.gallery-item:hover .overlay{ opacity:1; }
.gallery-item .overlay span{ color:#fff; font-size:.74rem; font-weight:600; }
.gallery-item .play-badge{ position:absolute; top:8px; right:8px; background:rgba(0,0,0,.6); color:#fff; width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; }

/* Transparency */
.transparency-card{ background:var(--bg-surface); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:24px; box-shadow:var(--shadow-sm); }
.transparency-card h3{ color:var(--color-primary); display:flex; gap:10px; align-items:center; }
.notice-box{ background:#fff4e0; border:1px solid var(--color-accent); color:#7a4b00; padding:14px 18px; border-radius:10px; font-size:.85rem; }
[data-theme="dark"] .notice-box{ background:#3a2c10; color:#ffd98a; }

/* Contact */
.contact-info-card{ display:flex; gap:14px; align-items:flex-start; padding:16px 0; border-bottom:1px dashed var(--border-color); }
.contact-info-card .ico{ width:42px;height:42px;border-radius:50%;background:var(--color-primary-light);color:var(--color-primary);display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.map-frame{ width:100%; height:340px; border:0; border-radius:var(--radius-md); filter:grayscale(15%); }
.social-row{ display:flex; gap:10px; margin-top:14px; }
.social-row a{ width:38px;height:38px;border-radius:50%;background:var(--color-primary);color:#fff;display:flex;align-items:center;justify-content:center; }
.social-row a:hover{ background:var(--color-secondary); }

/* Careers */
.job-card{ display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; align-items:center; background:var(--bg-surface); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:18px 20px; box-shadow:var(--shadow-sm); }

/* ---------- 16. FOOTER ---------- */
footer.site-footer{ background:#0c1420; color:#c9d3de; padding-top:60px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr 1.1fr; gap:32px; padding-bottom:40px; border-bottom:1px solid #1e2937; }
.footer-brand h3{ color:#fff; font-size:1.1rem; }
.footer-col h4{ color:#fff; font-size:.92rem; margin-bottom:16px; text-transform:uppercase; letter-spacing:.5px; }
.footer-col li{ margin-bottom:9px; }
.footer-col a{ color:#a9b6c6; font-size:.86rem; }
.footer-col a:hover{ color:#fff; }
.footer-social{ display:flex; gap:10px; margin-top:16px; }
.footer-social a{ width:36px; height:36px; border-radius:50%; background:#1e2937; color:#fff; display:flex; align-items:center; justify-content:center; }
.footer-social a:hover{ background:var(--color-secondary); }
.newsletter-box{ display:flex; margin-top:12px; border-radius:30px; overflow:hidden; border:1px solid #2a3646; }
.newsletter-box input{ flex:1; border:0; background:#141d29; color:#fff; padding:10px 14px; font-size:.82rem; }
.newsletter-box button{ border:0; background:var(--color-secondary); color:#fff; padding:0 16px; font-weight:700; }
.footer-bottom{ display:flex; justify-content:space-between; padding:20px; flex-wrap:wrap; gap:10px; font-size:.78rem; color:#8493a5; max-width:var(--container-w); margin:0 auto; }
.footer-bottom a{ color:#8493a5; }
.footer-emergency{ background:#7a1f1f; color:#fff; text-align:center; font-size:.82rem; padding:8px; font-weight:600; }
.visitor-clock-row{ background:#141d29; color:#a9b6c6; font-size:.76rem; padding:10px 20px; display:flex; justify-content:center; gap:26px; flex-wrap:wrap; }

/* Floating buttons */
.floating-stack{ position:fixed; right:22px; bottom:22px; display:flex; flex-direction:column; gap:12px; z-index:850; }
.fab{ width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-lg); border:0; color:#fff; }
.fab svg{ width:26px;height:26px; }
.fab-whatsapp{ background:#25D366; }
.fab-top{ background:var(--color-primary); opacity:0; pointer-events:none; transform:translateY(10px); transition:opacity .25s,transform .25s; }
.fab-top.show{ opacity:1; pointer-events:auto; transform:translateY(0); }

/* Cookie consent */
.cookie-banner{ position:fixed; bottom:0; left:0; right:0; background:var(--color-ink); color:#fff; padding:16px 20px; z-index:9500; display:flex; gap:18px; align-items:center; justify-content:center; flex-wrap:wrap; transform:translateY(100%); transition:transform .4s ease; }
.cookie-banner.show{ transform:translateY(0); }
.cookie-banner p{ margin:0; font-size:.84rem; max-width:640px; }
.cookie-actions{ display:flex; gap:10px; }

/* Toast */
#toast-region{ position:fixed; top:14px; left:50%; transform:translateX(-50%); z-index:9999; display:flex; flex-direction:column; gap:8px; }
.toast{ background:var(--color-ink); color:#fff; padding:12px 20px; border-radius:8px; font-size:.85rem; box-shadow:var(--shadow-lg); animation:slideDown .3s ease; }
@keyframes slideDown{ from{ transform:translateY(-20px); opacity:0;} to{ transform:translateY(0); opacity:1;} }

/* Weather widget */
.weather-chip{ display:flex; align-items:center; gap:8px; background:var(--bg-surface-alt); border:1px solid var(--border-color); border-radius:20px; padding:6px 12px; font-size:.78rem; }

/* Search overlay (global search) */
.global-search-overlay{ position:fixed; inset:0; background:rgba(10,16,24,.85); z-index:9600; display:none; align-items:flex-start; justify-content:center; padding-top:8vh; }
.global-search-overlay.open{ display:flex; }
.global-search-box{ background:var(--bg-surface); width:100%; max-width:640px; border-radius:var(--radius-md); overflow:hidden; box-shadow:var(--shadow-lg); max-height:74vh; display:flex; flex-direction:column; }
.global-search-box input{ border:0; padding:20px; font-size:1.1rem; width:100%; outline:0; background:var(--bg-surface); color:var(--text-body); }
.global-search-results{ overflow-y:auto; border-top:1px solid var(--border-color); }
.gsr-item{ padding:14px 20px; border-bottom:1px solid var(--border-color); display:flex; justify-content:space-between; gap:10px; }
.gsr-item:hover{ background:var(--bg-surface-alt); }
.gsr-item small{ color:var(--text-muted); }

/* Back to top of page util */
.text-center{ text-align:center; }
.mt-24{ margin-top:24px; }
.muted{ color:var(--text-muted); }

/* ---------- 17. RESPONSIVE ---------- */
@media (max-width:1080px){
  .counters-grid{ grid-template-columns:repeat(4,1fr); }
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .gallery-grid{ grid-template-columns:repeat(3,1fr); }
  .project-detail-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:860px){
  .mission-grid{ grid-template-columns:1fr; }
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .doc-highlight-row{ grid-template-columns:1fr; }
  .message-card{ grid-template-columns:1fr; text-align:center; }
  .message-card img{ max-width:160px; margin:0 auto; }
  .form-grid{ grid-template-columns:1fr; }
  .utility-bar{ display:none; }
}
@media (max-width:760px){
  .nav-toggle{ display:block; margin-left:auto; }
  .nav-list{ display:none; flex-direction:column; width:100%; padding:10px 0; }
  .nav-list.open{ display:flex; }
  .nav-inner{ flex-wrap:wrap; }
  .nav-list a{ padding:12px 20px; }
  .header-main{ flex-direction:column; align-items:flex-start; }
  .header-actions{ width:100%; justify-content:space-between; }
  .counters-grid{ grid-template-columns:repeat(2,1fr); }
  .grid-2,.grid-3,.grid-4{ grid-template-columns:1fr; }
  .gallery-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .hero{ min-height:auto; }
  .hero-content{ padding:60px 20px; }
  section{ padding:50px 0; }
}
@media (max-width:480px){
  .footer-grid{ grid-template-columns:1fr; }
  .gallery-grid{ grid-template-columns:1fr 1fr; }
  .amount-grid{ grid-template-columns:repeat(2,1fr); }
  .brand .logo-emblem{ width:50px; height:50px; }
  .brand-text .org-name{ font-size:1.05rem; }
}

/* Print */
@media print{
  header,nav,.floating-stack,.announcement-bar,.utility-bar,footer,.cookie-banner{ display:none !important; }
}
