:root {
  --nsa-green: #7CB342;
  --nsa-blue: #2B348A;
  --nsa-blue-strong: #222A73;
  --nsa-gold: #C09050;
  --bg: #f6f8fc;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

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

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
}

.brand-title { font-size: 14px; font-weight: 800; color: var(--nsa-blue); margin: 0; }
.brand-sub { font-size: 11px; color: var(--muted); margin: 0; }

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 14px;
  color: #334155;
  font-weight: 600;
}
.nav-links a:hover,
.nav-links a.active { color: var(--nsa-green); }

.btn-primary {
  display: inline-block;
  background: var(--nsa-blue);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
}
.btn-primary:hover { background: #1e2e86; }

.mobile-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
  font-weight: 700;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 4%;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}
.mobile-nav a.active {
  color: var(--nsa-green);
  background: #f8fafc;
}

.hero {
  background: linear-gradient(130deg, var(--nsa-blue), #3f51b5 52%, var(--nsa-green));
  color: #fff;
  padding: 72px 0;
}
.hero h1 {
  margin: 0;
  font-size: clamp(30px, 4.8vw, 52px);
  line-height: 1.12;
}
.hero p {
  margin-top: 14px;
  color: #e2e8f0;
  max-width: 720px;
}

.page {
  padding: 56px 0;
}
.page h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
}
.section-desc {
  color: var(--muted);
  margin: 0 0 28px;
}

.grid {
  display: grid;
  gap: 18px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.kpi {
  text-align: center;
  padding: 24px;
}
.kpi .num { font-size: 32px; font-weight: 800; margin: 0; }
.kpi .lbl { color: var(--muted); font-size: 13px; margin-top: 6px; }

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #eef2ff;
  color: var(--nsa-blue);
}

.filters {
  display: grid;
  gap: 12px;
  grid-template-columns: 2fr 1fr 1fr auto;
}
input, select, textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
textarea { min-height: 120px; resize: vertical; }

/* ===== FOOTER ===== */
.site-footer {
  background: #13185a;
  color: #c7cde8;
  font-size: 14px;
  margin-top: 64px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 52px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

/* Brand column */
.footer-brand { display: flex; flex-direction: column; gap: 14px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo-img {
  width: 44px; height: 44px; object-fit: contain; border-radius: 50%; flex-shrink: 0;
}
.footer-logo-title { margin:0; font-size:15px; font-weight:800; color:#fff; }
.footer-logo-sub   { margin:0; font-size:11px; color:#9ba4cc; }

.footer-desc {
  font-size: 13px;
  line-height: 1.65;
  color: #9ba4cc;
  margin: 0;
  max-width: 300px;
}

.footer-address {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #7c87bb;
  margin: 0;
}
.footer-address svg { flex-shrink: 0; opacity: .7; }

/* Nav columns */
.footer-col h4.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--nsa-green);
  width: fit-content;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li a {
  color: #9ba4cc;
  font-size: 13.5px;
  font-weight: 500;
  transition: color .15s, padding-left .15s;
  display: inline-block;
}
.footer-col ul li a:hover {
  color: #fff;
  padding-left: 4px;
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0;
  font-size: 12.5px;
  color: #6c77a8;
}
.footer-made { color: #7c87bb; }

/* Footer responsive */
@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px 0 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-desc  { max-width: 100%; }
}
@media (max-width: 540px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-brand { grid-column: auto; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .mobile-toggle { display: inline-block; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .filters { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .hero { padding: 56px 0; }
  .page { padding: 44px 0; }
}

/* ===== HERO CTA ===== */
.hero {
  background: linear-gradient(135deg, #1a236e 0%, #2B348A 45%, #3d6b2e 100%);
  color: #fff;
  padding: 80px 0 88px;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #2B348A;
  font-size: 15px;
  font-weight: 800;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  transition: transform .15s, box-shadow .15s;
}
.hero-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  color: #2B348A;
}
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.45);
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.hero-cta-secondary:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-2px);
  color: #fff;
}
/* ===== HERO EYEBROW ===== */
.hero-eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,.65);
}

/* ===== STATS GRID ===== */
.home-stats { margin-top: -36px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 18px rgba(15,23,42,.07);
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(15,23,42,.12);
}
.stat-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.stat-icon--blue  { background: #eff6ff; color: #2563eb; }
.stat-icon--green { background: #f0fdf4; color: #16a34a; }
.stat-icon--gold  { background: #fffbeb; color: #d97706; }
.stat-num { font-size: 28px; font-weight: 800; margin: 0; color: var(--text); }
.stat-lbl { font-size: 12px; font-weight: 600; color: var(--muted); margin: 3px 0 0; }
@media(max-width:900px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:540px) { .stats-grid { grid-template-columns: 1fr; } .home-stats { margin-top: 0; } }

/* ===== HOME FINANCE SECTION ===== */
.home-finance-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #eef2ff, #f0fdf4);
  border: 1px solid #c7d2fe;
  border-radius: 14px;
  padding: 18px 22px;
  flex-wrap: wrap;
}
.hf-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: #fff; display: flex; align-items: center; justify-content: center;
  color: var(--nsa-blue); box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.hf-text { font-size: 14px; color: #374151; flex: 1; min-width: 200px; line-height: 1.6; }
.hf-link { font-size: 13px; font-weight: 700; color: var(--nsa-blue); white-space: nowrap; text-decoration: none; }
.hf-link:hover { color: var(--nsa-green); }

.home-finance-card { display: flex; flex-direction: column; gap: 10px; }
.hfc-top { display: flex; align-items: center; justify-content: space-between; }
.hfc-year { font-size: 12px; font-weight: 700; color: var(--muted); }
.hfc-title { font-size: 15px; font-weight: 700; color: var(--text); margin: 0; line-height: 1.4; }
.hfc-desc { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; flex: 1; }
.hfc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700;
  color: var(--nsa-blue); text-decoration: none;
  margin-top: auto;
  transition: color .15s;
}
.hfc-btn:hover { color: var(--nsa-green); }

/* ===== HERO ENHANCEMENTS ===== */
.hero-title {
  margin: 0;
  font-size: clamp(28px, 4.5vw, 50px);
  line-height: 1.15;
  font-weight: 800;
}
.hero-title-accent {
  color: #a5d86e;
}
.hero-desc {
  margin-top: 16px;
  color: #dbeafe;
  max-width: 700px;
  font-size: 15px;
  line-height: 1.7;
}
.hero-actions {
  margin-top: 26px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-btn-outline {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.45) !important;
  color: #fff !important;
}
.hero-btn-outline:hover {
  background: rgba(255,255,255,0.12) !important;
}

/* ===== SECTION LAYOUT ===== */
.home-section {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid var(--line);
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.section-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.2px;
}
.see-all-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--nsa-blue);
  white-space: nowrap;
  flex-shrink: 0;
}
.see-all-link:hover { color: var(--nsa-green); }

/* ===== LEADERSHIP MESSAGES ===== */
.leadership-grid { align-items: start; }
.leadership-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.leadership-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.leadership-photo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--nsa-green);
  flex-shrink: 0;
}
.leadership-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nsa-blue), var(--nsa-green));
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.leadership-name {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.leadership-pos {
  margin: 0;
  font-size: 12px;
  color: var(--nsa-blue);
  font-weight: 600;
}
.leadership-msg {
  margin: 0;
  padding: 14px 16px;
  background: #f1f5ff;
  border-left: 4px solid var(--nsa-green);
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  color: #334155;
  line-height: 1.7;
  font-style: italic;
  position: relative;
}
.quote-mark {
  font-size: 20px;
  font-weight: 900;
  color: var(--nsa-green);
  font-style: normal;
}

/* ===== EVENT CARDS ===== */
/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 16px;
}
.empty-state svg { margin-bottom: 12px; color: #cbd5e1; }
.empty-state p { margin: 0; font-size: 14px; }

/* ===== EVENT SECTION HEADERS ===== */
.ev-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.ev-section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.ev-section-title--past { color: #64748b; }
.ev-section-count {
  background: var(--nsa-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}
.ev-section-count--past { background: #94a3b8; }
.ev-section-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: ev-pulse 1.6s ease-in-out infinite;
}
.ev-section-dot-past {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #94a3b8;
  flex-shrink: 0;
}
@keyframes ev-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

/* ===== UPCOMING EVENT CARD ===== */
.ev-card {
  display: flex;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15,23,42,0.06);
  transition: box-shadow .2s, transform .2s;
}
.ev-card:hover { box-shadow: 0 10px 36px rgba(15,23,42,0.13); transform: translateY(-2px); }
.ev-card--upcoming { border-left: 4px solid var(--nsa-green); }
.ev-card--past     { border-left: 4px solid #cbd5e1; }

/* Image column (upcoming) */
.ev-img-col {
  position: relative;
  width: 340px;
  flex-shrink: 0;
}
.ev-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}
.ev-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ev-img-placeholder--upcoming { background: linear-gradient(135deg,#eef2ff 0%,#e0e7ff 100%); }

/* Calendar badge */
.ev-cal {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: #fff;
  border-radius: 14px;
  padding: 8px 13px;
  text-align: center;
  min-width: 54px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.ev-cal-day  { display:block; font-size:28px; font-weight:800; line-height:1; }
.ev-cal-mon  { display:block; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.6px; margin-top:2px; }
.ev-cal-yr   { display:block; font-size:10px; color:#94a3b8; margin-top:1px; }
.ev-cal--upcoming .ev-cal-day { color: var(--nsa-blue); }
.ev-cal--upcoming .ev-cal-mon { color: var(--nsa-green); }
.ev-cal--past     .ev-cal-day { color: #475569; }
.ev-cal--past     .ev-cal-mon { color: #94a3b8; }

/* Status badges */
.ev-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ev-badge--upcoming { background: #ecfdf5; color: #166534; }
.ev-badge--past     { background: #f1f5f9; color: #64748b; }
.ev-pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: ev-pulse-dot .9s ease-in-out infinite;
}
@keyframes ev-pulse-dot {
  0%,100% { opacity:1; transform:scale(1);   }
  50%     { opacity:.5; transform:scale(1.5); }
}

/* Content column (upcoming) */
.ev-content {
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}
.ev-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}
.ev-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}
.ev-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.ev-desc {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

/* Gallery (upcoming) */
.ev-gallery-wrap { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.ev-gallery-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--nsa-blue);
  margin: 0 0 10px;
}
.ev-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}
.ev-gallery-grid a img {
  width: 100%; height: 66px;
  object-fit: cover;
  border-radius: 8px;
  transition: opacity .2s, transform .2s;
  display: block;
}
.ev-gallery-grid a img:hover { opacity: .82; transform: scale(1.04); }

/* ===== PAST EVENT CARD ===== */
.ev-thumb-col {
  position: relative;
  width: 180px;
  flex-shrink: 0;
}
.ev-thumb-img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  display: block;
  filter: grayscale(25%);
}
.ev-thumb-placeholder {
  width: 100%; height: 100%;
  min-height: 160px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ev-past-content {
  padding: 20px 24px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ev-past-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.ev-past-desc {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}
.ev-past-gallery {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}
.ev-past-gallery a img {
  width: 50px; height: 50px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--line);
  display: block;
  transition: opacity .2s;
}
.ev-past-gallery a img:hover { opacity: .8; }
.ev-past-gallery-more {
  width: 50px; height: 50px;
  background: #f1f5f9;
  border: 2px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .ev-card { flex-direction: column; }
  .ev-img-col, .ev-thumb-col { width: 100%; }
  .ev-img, .ev-img-placeholder, .ev-img-placeholder--upcoming { min-height: 200px; max-height: 240px; }
  .ev-thumb-img, .ev-thumb-placeholder { min-height: 180px; }
  .ev-content { padding: 20px; }
  .ev-title   { font-size: 18px; }
  .ev-past-content { padding: 16px; }
}

/* ===== APPLICATION FORM ===== */
.apply-form { padding: 28px 32px; }
.apply-section-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--nsa-blue);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}
.apply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.apply-field { display: flex; flex-direction: column; gap: 5px; }
.apply-full { grid-column: 1 / -1; }
.apply-field label { font-size: 13px; font-weight: 600; color: #374151; }
.apply-field input,
.apply-field select,
.apply-field textarea {
  font-size: 14px;
  border-radius: 8px;
  padding: 9px 11px;
}
.req { color: #ef4444; }
.apply-error { font-size: 12px; color: #dc2626; }
.apply-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 14px;
}

@media (max-width: 640px) {
  .apply-grid { grid-template-columns: 1fr; }
  .apply-form { padding: 20px 16px; }
}


/* =====================================================
   FINANCIAL TRANSPARENCY PAGE
   ===================================================== */

/* Filter bar */
.finance-filter-bar {
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  padding: 16px 0;
}
.finance-filter-bar .filter-form {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.finance-filter-bar .filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.finance-filter-bar .filter-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--nsa-blue);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.finance-filter-bar .filter-group select {
  padding: 8px 12px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  background: #fff;
  cursor: pointer;
  min-width: 160px;
}
.finance-filter-bar .filter-group select:focus {
  outline: none;
  border-color: var(--nsa-green);
}

/* Section wrapper */
.finance-section { padding: 48px 0 72px; }

/* Year heading */
.finance-year-group { margin-bottom: 48px; }
.finance-year-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--nsa-blue);
  border-left: 4px solid var(--nsa-green);
  padding-left: 12px;
  margin-bottom: 24px;
}

/* Card grid */
.finance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Individual card */
.finance-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: box-shadow .2s, transform .2s;
}
.finance-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  transform: translateY(-2px);
}

/* Card header row */
.finance-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Type badge */
.finance-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.finance-badge--event    { background: #dbeafe; color: #1d4ed8; }
.finance-badge--donation { background: #dcfce7; color: #16a34a; }
.finance-badge--general  { background: #f3f4f6; color: #4b5563; }

.finance-date { font-size: 12px; color: #6b7280; }

/* Card title */
.finance-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.4;
  margin: 0;
}

/* Related / period */
.finance-related {
  font-size: 13px;
  color: #4b5563;
  margin: 0;
}
.finance-label {
  font-weight: 600;
  color: var(--nsa-blue);
}

/* Description */
.finance-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

/* Download button */
.finance-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  background: var(--nsa-blue);
  color: #fff;
  transition: background .2s, transform .1s;
}
.finance-download-btn:hover {
  background: var(--nsa-green);
  color: #fff;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 640px) {
  .finance-grid { grid-template-columns: 1fr; }
  .finance-filter-bar .filter-form { flex-direction: column; align-items: stretch; }
  .finance-filter-bar .filter-group select { width: 100%; }
}

/* Finance card – image preview */
.finance-img-preview {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-top: auto;
  text-decoration: none;
  line-height: 0;
  max-height: 200px;
}
.finance-img-preview img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.finance-img-preview:hover img { transform: scale(1.04); }
.finance-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(43,52,138,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: opacity .2s;
  line-height: 1;
}
.finance-img-preview:hover .finance-img-overlay { opacity: 1; }

/* =====================================================
   HOME PAGE — SECTION CARDS
   ===================================================== */

/* -- Event cards -- */
.ev-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-left: 3px solid var(--nsa-blue);
  transition: box-shadow .15s, transform .15s;
}
.ev-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(15,23,42,.1); }
.ev-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
  background: #eff6ff;
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  flex-shrink: 0;
}
.ev-day  { font-size: 20px; font-weight: 800; color: var(--nsa-blue); line-height: 1; }
.ev-mon  { font-size: 10px; font-weight: 700; color: #6b7280; letter-spacing: 0.5px; margin-top: 2px; text-transform: uppercase; }
.ev-body { flex: 1; min-width: 0; }
.ev-tag  {
  display: inline-block;
  background: #dcfce7; color: #15803d;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  margin-bottom: 5px;
}
.ev-title { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.4; }
.ev-desc  { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* -- Finance cards -- */
.fin-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 3px solid var(--nsa-green);
  transition: box-shadow .15s, transform .15s;
}
.fin-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(15,23,42,.1); }
.fin-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fin-type   { font-size: 11px; font-weight: 700; background: #f0fdf4; color: #15803d; padding: 3px 10px; border-radius: 999px; }
.fin-period { font-size: 12px; font-weight: 600; color: var(--muted); }
.fin-title  { margin: 0; font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.4; }
.fin-desc   { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* -- Leadership cards -- */
.ldr-card   { display: flex; flex-direction: column; gap: 14px; border-left: 3px solid var(--nsa-gold); }
.ldr-header { display: flex; align-items: center; gap: 12px; }
.ldr-photo  {
  width: 50px; height: 50px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--nsa-green);
}
.ldr-avatar {
  width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--nsa-blue), var(--nsa-green));
  color: #fff; font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.ldr-name { margin: 0 0 2px; font-size: 14px; font-weight: 700; color: var(--text); }
.ldr-pos  { margin: 0; font-size: 12px; color: var(--nsa-blue); font-weight: 600; }
.ldr-msg  {
  margin: 0;
  font-size: 13px;
  color: #374151;
  line-height: 1.65;
  font-style: italic;
  padding: 12px 14px;
  background: #fefce8;
  border-radius: 0 8px 8px 0;
}
