/* ============================================================
   Bihar Welfare Foundation — Shared Design System
   Same brand palette (navy + gold), refined execution.
   ============================================================ */

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

:root {
  --navy: #1e6dc8;
  --navy-deep: #123f78;
  --navy-mid: #2879d4;
  --navy-light: #3d8fe0;
  --accent: #3390e0;
  --gold: #f9a825;
  --gold-light: #ffc94d;
  --gold-dark: #e65100;
  --white: #ffffff;
  --off: #f5f6fa;
  --muted: #e8eaf6;
  --text: #1a1c2e;
  --text-sec: #4a4e6b;
  --green: #1c8a52;
  --red: #c62828;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(30,109,200,0.10);
  --shadow-lg: 0 8px 48px rgba(30,109,200,0.16);
  --shadow-xl: 0 20px 80px rgba(18,63,120,0.28);
  --font-display: 'Fraunces', 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', 'Space Mono', monospace;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); color: var(--text); background: var(--white);
  overflow-x: hidden; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }
::selection { background: var(--gold); color: var(--navy-deep); }

/* focus visibility for a11y */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ── FLASH TICKER ── */
#flash-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  background: var(--navy-deep); color: white; height: 40px;
  display: flex; align-items: center; overflow: hidden;
  border-bottom: 1px solid rgba(249,168,37,0.25);
}
.flash-tag {
  flex-shrink: 0; background: var(--gold); color: var(--navy-deep);
  font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 0 18px; height: 100%; display: flex; align-items: center; gap: 6px;
  z-index: 2; position: relative;
}
.flash-tag::after {
  content: ''; position: absolute; right: -14px; top: 0; height: 100%; width: 14px;
  background: var(--gold); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.flash-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--navy-deep); animation: flashPulse 1.4s infinite; }
@keyframes flashPulse { 0%,100%{opacity:1} 50%{opacity:0.25} }
.flash-track-wrap { flex: 1; overflow: hidden; height: 100%; position: relative; }
.flash-track {
  display: flex; align-items: center; gap: 56px; white-space: nowrap;
  height: 100%; animation: flashScroll 32s linear infinite;
  padding-left: 100%;
}
.flash-track:hover { animation-play-state: paused; }
@keyframes flashScroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.flash-item { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.92); display: flex; align-items: center; gap: 10px; }
.flash-item b { color: var(--gold-light); font-weight: 700; }
.flash-close {
  flex-shrink: 0; background: none; border: none; color: rgba(255,255,255,0.6);
  cursor: pointer; font-size: 16px; padding: 0 16px; height: 100%;
}
.flash-close:hover { color: white; }
body.flash-hidden #flash-bar { display: none; }
body.flash-hidden nav { top: 0; }
body.flash-hidden #hero, body.flash-hidden .page-hero { padding-top: 72px; }

/* ── NAV ── */
nav {
  position: fixed; top: 40px; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 72px;
  background: rgba(18,63,120,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: top 0.3s;
}
.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-logo-box {
  width: 44px; height: 44px; background: var(--white); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0;
}
.nav-logo-box img { width: 40px; height: 40px; object-fit: contain; }
.nav-title { color: var(--white); font-size: 15px; font-weight: 600; line-height: 1.25; }
.nav-title span { display: block; font-size: 11px; font-weight: 300; opacity: 0.7; letter-spacing: 1px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 14px; font-weight: 400; transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta {
  background: var(--gold); color: var(--navy-deep); font-weight: 700; font-size: 14px;
  padding: 10px 24px; border-radius: 50px; text-decoration: none; white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { width: 24px; height: 2px; background: white; border-radius: 2px; transition: 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links {
    display: none; position: fixed; top: 112px; left: 0; right: 0; bottom: 0;
    background: var(--navy-deep); flex-direction: column; gap: 0; padding: 20px 0;
    overflow-y: auto; z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 16px 6vw; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .hamburger { display: flex; }
}

/* ── PAGE HERO (used by event.html / listing pages) ── */
.page-hero {
  min-height: 46vh; background: var(--navy-deep); position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 152px 5vw 56px;
  background-image: radial-gradient(ellipse 70% 70% at 80% 20%, rgba(41,121,201,0.35) 0%, transparent 70%);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 900px; }
.page-hero .section-label { color: var(--gold); }
.page-hero h1 { font-family: var(--font-display); color: white; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; line-height: 1.15; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 16px; max-width: 620px; line-height: 1.7; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

/* ── HERO ── */
#hero {
  min-height: 100vh; background: var(--navy);
  display: flex; align-items: stretch; position: relative; overflow: hidden; padding: 0;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; width: 100%; position: relative; z-index: 1; min-height: 100vh; }
.hero-left { display: flex; flex-direction: column; justify-content: center; padding: 152px 6vw 80px 6vw; position: relative; z-index: 1; }
.hero-right { position: relative; }
.hero-img-wrap { position: absolute; inset: 0; overflow: hidden; }
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--navy) 0%, rgba(30,109,200,0.15) 25%, transparent 55%),
              linear-gradient(to top, rgba(30,109,200,0.65) 0%, transparent 45%);
}
.hero-img-badges { position: absolute; bottom: 36px; left: 28px; display: flex; gap: 12px; flex-wrap: wrap; z-index: 2; }
.hero-stat-badge {
  background: rgba(255,255,255,0.13); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25); border-radius: 14px; padding: 14px 22px; color: white; text-align: center;
}
.hsb-num { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--gold); line-height: 1; }
.hsb-lbl { font-size: 12px; opacity: 0.85; margin-top: 4px; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 60% 60% at 70% 40%, rgba(41,121,201,0.35) 0%, transparent 70%),
              radial-gradient(ellipse 40% 50% at 20% 80%, rgba(249,168,37,0.15) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: 0.04;
  background-image: linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(249,168,37,0.15); border: 1px solid rgba(249,168,37,0.4);
  color: var(--gold); font-size: 12px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 6px 16px; border-radius: 50px; margin-bottom: 28px; width: fit-content;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
.hero-left h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; color: var(--white); line-height: 1.1; margin-bottom: 24px; }
.hero-left h1 em { color: var(--gold); font-style: normal; }
.hero-left > p { font-size: 17px; line-height: 1.75; color: rgba(255,255,255,0.75); margin-bottom: 40px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold); color: var(--navy-deep); font-weight: 700; font-size: 15px;
  padding: 14px 32px; border: none; border-radius: 50px; text-decoration: none; cursor: pointer;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(249,168,37,0.4); }
.btn-outline {
  border: 2px solid rgba(255,255,255,0.35); color: var(--white); font-weight: 500; font-size: 15px;
  padding: 13px 32px; border-radius: 50px; text-decoration: none; background: none; cursor: pointer;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body);
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.08); }
.btn-navy {
  background: var(--navy); color: white; font-weight: 700; font-size: 15px; border: none;
  padding: 14px 32px; border-radius: 50px; text-decoration: none; cursor: pointer;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body);
}
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-navy:disabled, .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.hero-stats { margin-top: 40px; display: flex; gap: 40px; flex-wrap: wrap; }
.stat-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--gold); line-height: 1; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ── SECTION BASE ── */
section { padding: 96px 5vw; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; color: var(--navy-deep); line-height: 1.2; margin-bottom: 16px; }
.section-sub { font-size: 17px; color: var(--text-sec); line-height: 1.7; max-width: 600px; }
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }
.section-header.split { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; }

/* ── ABOUT ── */
#about { background: var(--off); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-visual { background: var(--navy); border-radius: var(--radius-lg); padding: 48px 40px; color: white; position: relative; overflow: hidden; }
.about-visual::before {
  content: 'BWF'; position: absolute; right: -20px; bottom: -30px;
  font-family: var(--font-display); font-size: 140px; font-weight: 700; color: rgba(255,255,255,0.04); line-height: 1; pointer-events: none;
}

/* ── WORKING AREAS ── */
#areas { background: var(--white); }
.areas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.area-card {
  border-radius: var(--radius-lg); border: 1px solid #e8eaf6; background: var(--white);
  transition: all 0.3s; position: relative; overflow: hidden; cursor: default; padding: 0;
}
.area-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.area-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.area-card:hover::before { transform: scaleX(1); }
.area-card-img { position: relative; height: 180px; overflow: hidden; }
.area-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.area-card:hover .area-card-img img { transform: scale(1.05); }
.area-card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(18,63,120,0.5)); }
.area-num-badge {
  position: absolute; top: 12px; left: 12px; background: var(--navy); color: white;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; width: 36px; height: 36px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center; z-index: 2;
}
.area-card-body { padding: 24px 24px 28px; }
.area-icon { font-size: 32px; margin-bottom: 10px; }
.area-card h3 { font-size: 18px; font-weight: 600; color: var(--navy-deep); margin-bottom: 12px; }
.area-card p { font-size: 14px; color: var(--text-sec); line-height: 1.7; }
.area-tag { display: inline-block; margin-top: 16px; font-size: 12px; font-weight: 500; color: var(--accent); background: var(--muted); padding: 4px 12px; border-radius: 50px; }

/* ── IMPACT NUMBERS ── */
#impact { background: var(--navy-deep); background-image: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(41,121,201,0.3) 0%, transparent 70%); }
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; text-align: center; }
.impact-card { padding: 32px 20px; }
.impact-num { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 8px; }
.impact-label { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.5; }

/* ── PROJECTS ── */
#projects { background: var(--off); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.project-card { background: white; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--muted); transition: all 0.25s; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.project-img { position: relative; height: 170px; overflow: hidden; }
.project-img img { width: 100%; height: 100%; object-fit: cover; }
.project-status {
  position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 700;
  padding: 5px 12px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px;
}
.project-status.ongoing { background: rgba(249,168,37,0.95); color: var(--navy-deep); }
.project-status.completed { background: rgba(28,138,82,0.95); color: white; }
.project-body { padding: 22px 24px 26px; }
.project-cat { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.project-body h3 { font-size: 17px; font-weight: 600; color: var(--navy-deep); margin-bottom: 8px; }
.project-body p { font-size: 13.5px; color: var(--text-sec); line-height: 1.6; margin-bottom: 16px; }
.project-loc { font-size: 12px; color: var(--text-sec); display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.progress-bar-track { height: 8px; background: var(--muted); border-radius: 50px; overflow: hidden; margin-bottom: 8px; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--navy), var(--accent)); border-radius: 50px; transition: width 0.6s ease; }
.progress-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-sec); }
.progress-labels strong { color: var(--navy-deep); font-weight: 700; }

/* ── EVENTS ── */
#events { background: white; }
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.event-card { background: white; border: 1px solid var(--muted); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.25s; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.event-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.event-date-block {
  position: absolute; top: 14px; left: 14px; background: white; border-radius: 10px;
  padding: 8px 12px; text-align: center; box-shadow: var(--shadow); min-width: 54px; z-index: 2;
}
.event-date-block .em { font-size: 10px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.5px; }
.event-date-block .ed { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--navy-deep); line-height: 1.1; }
.event-img { position: relative; height: 170px; overflow: hidden; background: var(--muted); }
.event-img img { width: 100%; height: 100%; object-fit: cover; }
.event-status-badge {
  position: absolute; bottom: 12px; right: 12px; font-size: 11px; font-weight: 700;
  padding: 5px 12px; border-radius: 50px; text-transform: uppercase;
}
.event-status-badge.upcoming { background: var(--gold); color: var(--navy-deep); }
.event-status-badge.ongoing { background: var(--green); color: white; }
.event-status-badge.completed { background: var(--text-sec); color: white; }
.event-status-badge.cancelled { background: var(--red); color: white; }
.event-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.event-cat { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.event-body h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--navy-deep); margin-bottom: 10px; line-height: 1.3; }
.event-body p { font-size: 13.5px; color: var(--text-sec); line-height: 1.6; margin-bottom: 16px; flex: 1; }
.event-meta { font-size: 12.5px; color: var(--text-sec); display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.event-meta span { display: flex; align-items: center; gap: 6px; }
.event-cta { font-size: 13px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 6px; }
.event-card:hover .event-cta { color: var(--gold-dark); }
.events-empty, .news-empty { grid-column: 1/-1; text-align: center; padding: 60px 20px; color: var(--text-sec); }
.events-tabs { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }

/* ── NEWS ── */
#news { background: var(--off); }
.news-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.news-grid .news-card:first-child { grid-row: span 2; }
.news-card { background: white; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--muted); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: all 0.25s; }
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.news-card-img { position: relative; overflow: hidden; background: var(--muted); height: 150px; }
.news-grid .news-card:first-child .news-card-img { height: 260px; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-pin-badge { position: absolute; top: 10px; left: 10px; background: var(--gold); color: var(--navy-deep); font-size: 10px; font-weight: 800; padding: 4px 10px; border-radius: 50px; text-transform: uppercase; }
.news-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.news-cat { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 6px; }
.news-card h3 { font-size: 15px; font-weight: 600; color: var(--navy-deep); line-height: 1.4; margin-bottom: 8px; }
.news-grid .news-card:first-child h3 { font-size: 20px; }
.news-card p { font-size: 13px; color: var(--text-sec); line-height: 1.6; flex: 1; }
.news-date { font-size: 12px; color: var(--text-sec); margin-top: 12px; }

/* ── MEMBERSHIP ── */
#membership { background: var(--navy-deep); position: relative; overflow: hidden; }
#membership::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 20% 20%, rgba(41,121,201,0.35) 0%, transparent 70%);
}
#membership .section-label { color: var(--gold); }
#membership .section-title { color: white; }
#membership .section-sub { color: rgba(255,255,255,0.7); }
.membership-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; position: relative; z-index: 1; margin-bottom: 48px; }
.tier-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg); padding: 32px 28px; backdrop-filter: blur(6px); transition: all 0.25s; }
.tier-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.tier-card.featured { border-color: var(--gold); background: rgba(249,168,37,0.08); position: relative; }
.tier-badge { position: absolute; top: -12px; right: 24px; background: var(--gold); color: var(--navy-deep); font-size: 11px; font-weight: 800; padding: 5px 14px; border-radius: 50px; text-transform: uppercase; }
.tier-card h4 { font-family: var(--font-display); color: white; font-size: 1.3rem; margin-bottom: 6px; }
.tier-eligibility { font-size: 12.5px; color: rgba(255,255,255,0.55); line-height: 1.6; margin-bottom: 14px; }
.tier-price { color: var(--gold); font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.tier-price span { font-size: 12px; color: rgba(255,255,255,0.5); font-weight: 400; }
.tier-price-sub { font-size: 12px; color: rgba(255,255,255,0.55); margin-bottom: 4px; }
.tier-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 16px 0 24px; }
.tier-list li { font-size: 13.5px; color: rgba(255,255,255,0.75); display: flex; align-items: flex-start; gap: 8px; }
.tier-list li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }
.tier-select-btn { width: 100%; }

.member-form-wrap {
  position: relative; z-index: 1; background: white; border-radius: var(--radius-lg);
  padding: 40px; max-width: 640px; margin: 0 auto; box-shadow: var(--shadow-xl);
}
.member-form-wrap h3 { font-family: var(--font-display); color: var(--navy-deep); font-size: 1.4rem; margin-bottom: 6px; }
.member-form-wrap > p { color: var(--text-sec); font-size: 14px; margin-bottom: 24px; }

/* ── DONATE ── */
#donate { background: var(--off); }
.donate-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.donate-amounts { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.amt-btn {
  border: 2px solid var(--muted); background: white; color: var(--navy-deep); font-weight: 600;
  font-size: 15px; padding: 12px 24px; border-radius: 50px; cursor: pointer; transition: all 0.2s;
}
.amt-btn:hover, .amt-btn.active { border-color: var(--navy); background: var(--navy); color: white; }
.donate-input-wrap { margin-bottom: 24px; }
.donate-input-wrap label { display: block; font-size: 13px; font-weight: 500; color: var(--text-sec); margin-bottom: 8px; }
.donate-input-wrap input, .donate-input-wrap select {
  width: 100%; border: 2px solid var(--muted); border-radius: 10px; padding: 14px 18px;
  font-size: 16px; font-family: var(--font-body); outline: none; transition: border 0.2s;
}
.donate-input-wrap input:focus, .donate-input-wrap select:focus { border-color: var(--navy); }
.payment-methods { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.pay-option { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 2px solid var(--muted); border-radius: var(--radius); background: white; cursor: pointer; transition: all 0.2s; }
.pay-option:hover { border-color: var(--navy); }
.pay-option input[type="radio"] { accent-color: var(--navy); width: 18px; height: 18px; }
.pay-badge { padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; }
.pay-meezan { background: #006a4e; color: white; }
.pay-jazz { background: #cc0033; color: white; }
.pay-easy { background: #7b2d8b; color: white; }
.pay-info { font-size: 13px; color: var(--text-sec); flex: 1; }
.pay-info strong { display: block; font-weight: 600; color: var(--text); }
.donate-btn { width: 100%; background: var(--navy); color: white; font-weight: 700; font-size: 16px; padding: 16px; border-radius: 50px; border: none; cursor: pointer; transition: all 0.2s; font-family: var(--font-body); }
.donate-btn:hover { background: var(--navy-mid); transform: translateY(-2px); box-shadow: var(--shadow); }
.donate-visual { padding-top: 12px; }
.donate-visual h3 { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy-deep); margin-bottom: 16px; }
.donate-visual p { font-size: 15px; color: var(--text-sec); line-height: 1.75; margin-bottom: 28px; }
.cause-list { display: flex; flex-direction: column; gap: 12px; }
.cause-item { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-sec); }
.cause-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.trust-badge { font-size: 12px; font-weight: 500; color: var(--navy-deep); background: white; border: 1px solid var(--muted); padding: 6px 14px; border-radius: 50px; display: flex; align-items: center; gap: 6px; }
.trust-badge::before { content: '✓'; color: var(--green); font-weight: 700; }

/* ── PROGRAMS ── */
#programs { background: white; }
.program-tabs { display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn { padding: 10px 20px; border-radius: 50px; font-size: 14px; font-weight: 500; border: 2px solid var(--muted); background: white; cursor: pointer; transition: all 0.2s; font-family: var(--font-body); }
.tab-btn:hover { border-color: var(--navy); }
.tab-btn.active { background: var(--navy); color: white; border-color: var(--navy); }
.program-content { display: none; }
.program-content.active { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.program-text h3 { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy-deep); margin-bottom: 16px; }
.program-text p { font-size: 15px; color: var(--text-sec); line-height: 1.75; margin-bottom: 20px; }
.program-features { display: flex; flex-direction: column; gap: 10px; }
.feat { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text); }
.feat::before { content: '→'; color: var(--accent); font-weight: 700; }
.program-visual-box { background: var(--off); border-radius: var(--radius-lg); overflow: hidden; }

/* ── MOU ── */
#mou { background: var(--off); }
.mou-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.mou-card { background: white; border-radius: var(--radius); padding: 28px 24px; text-align: center; border: 1px solid var(--muted); transition: all 0.2s; }
.mou-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mou-icon { font-size: 36px; margin-bottom: 12px; }
.mou-card h4 { font-size: 15px; font-weight: 600; color: var(--navy-deep); margin-bottom: 6px; }
.mou-card p { font-size: 13px; color: var(--text-sec); }

/* ── CONTACT ── */
#contact { background: white; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-form, .dynamic-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text-sec); }
.form-group label .req { color: var(--red); }
.form-group input, .form-group textarea, .form-group select {
  border: 2px solid var(--muted); border-radius: 10px; padding: 13px 16px;
  font-size: 15px; font-family: var(--font-body); outline: none; transition: border 0.2s; resize: vertical; width: 100%;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--navy); }
.form-group .hint { font-size: 12px; color: var(--text-sec); }
.form-choice-group { display: flex; flex-direction: column; gap: 8px; }
.form-choice-option { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); padding: 10px 14px; border: 2px solid var(--muted); border-radius: 10px; cursor: pointer; transition: border 0.2s; }
.form-choice-option:hover { border-color: var(--accent); }
.form-choice-option input { accent-color: var(--navy); width: 16px; height: 16px; flex-shrink: 0; }
.form-submit {
  background: var(--navy); color: white; font-weight: 700; font-size: 15px; padding: 15px;
  border-radius: 50px; border: none; cursor: pointer; font-family: var(--font-body); transition: all 0.2s;
}
.form-submit:hover { background: var(--navy-mid); transform: translateY(-2px); box-shadow: var(--shadow); }
.form-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.contact-item h4 { font-size: 14px; font-weight: 600; color: var(--navy-deep); margin-bottom: 4px; }
.contact-item p { font-size: 14px; color: var(--text-sec); line-height: 1.6; }
.social-links { display: flex; gap: 12px; margin-top: 8px; }
.social-link { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; font-size: 16px; transition: all 0.2s; }
.social-link:hover { background: var(--accent); transform: translateY(-2px); }

/* ── FOOTER ── */
footer { background: var(--text); color: rgba(255,255,255,0.8); padding: 64px 5vw 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-logo-box { width: 40px; height: 40px; background: white; border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.footer-logo-text { font-size: 14px; font-weight: 600; color: white; line-height: 1.3; }
.footer-brand p { font-size: 14px; line-height: 1.75; color: rgba(255,255,255,0.55); max-width: 260px; }
.footer-col h5 { font-size: 13px; font-weight: 600; color: white; letter-spacing: 0.5px; margin-bottom: 16px; text-transform: uppercase; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 14px; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-admin-link { font-size: 12px; color: rgba(255,255,255,0.3); text-decoration: none; }
.footer-admin-link:hover { color: rgba(255,255,255,0.6); }

/* ── MODAL ── */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 999; background: rgba(18,63,120,0.75); backdrop-filter: blur(4px); align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: white; border-radius: var(--radius-lg); padding: 48px 40px; max-width: 480px; width: 100%; position: relative; box-shadow: var(--shadow-xl); max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--off); cursor: pointer; font-size: 18px; }
.modal h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy-deep); margin-bottom: 8px; }
.modal p { font-size: 14px; color: var(--text-sec); margin-bottom: 24px; }
.modal-success { text-align: center; padding: 20px 0; }
.modal-success .check { font-size: 48px; margin-bottom: 16px; }

/* ── GALLERY ── */
#gallery { background: var(--white); }
.gallery-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.gf-btn { padding: 9px 20px; border-radius: 50px; font-size: 13px; font-weight: 500; border: 2px solid var(--muted); background: white; cursor: pointer; transition: all 0.2s; color: var(--navy-deep); }
.gf-btn:hover, .gf-btn.active { background: var(--navy); color: white; border-color: var(--navy); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 16px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer; background: var(--muted); aspect-ratio: 4/3; transition: transform 0.3s, box-shadow 0.3s; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top,rgba(18,63,120,0.75) 0%,transparent 50%); opacity: 0; transition: opacity 0.3s; display: flex; align-items: flex-end; padding: 16px; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption { color: white; font-size: 13px; font-weight: 500; }
.gallery-cat-badge { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 50px; letter-spacing: 0.5px; background: rgba(18,63,120,0.75); color: white; backdrop-filter: blur(4px); }
.lightbox { display: none; position: fixed; inset: 0; z-index: 999; background: rgba(5,8,40,0.95); align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 900px; width: 100%; }
.lightbox-inner img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 12px; }
.lightbox-close { position: absolute; top: -44px; right: 0; background: rgba(255,255,255,0.15); border: none; color: white; font-size: 22px; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox-caption { color: rgba(255,255,255,0.8); font-size: 14px; text-align: center; margin-top: 12px; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); border: none; color: white; font-size: 20px; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: -56px; }
.lightbox-next { right: -56px; }
.gallery-empty { grid-column: 1/-1; text-align: center; padding: 80px 20px; color: var(--text-sec); }
.gallery-empty p { font-size: 16px; margin-top: 12px; }

/* ── TOAST ── */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--navy-deep); color: white; padding: 14px 26px; border-radius: 50px;
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); z-index: 1200;
  opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }
#toast.error { background: var(--red); }

/* ── SCROLL TOP ── */
.scroll-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: white;
  border: none; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: all 0.3s; box-shadow: var(--shadow);
}
.scroll-top.visible { opacity: 1; }
.scroll-top:hover { background: var(--accent); transform: translateY(-2px); }

/* ── ANIMATIONS ── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ── SKELETON LOADER ── */
.skel { background: linear-gradient(90deg, var(--muted) 25%, #f0f1f8 37%, var(--muted) 63%); background-size: 400% 100%; animation: skel 1.4s ease infinite; border-radius: var(--radius); }
@keyframes skel { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .about-grid, .donate-wrapper, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { min-height: 50vh; }
  .hero-left { padding: 132px 5vw 48px; }
  .program-content.active { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-grid .news-card:first-child { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-grid .news-card:first-child { grid-column: auto; }
  section { padding: 72px 5vw; }
  .flash-tag span.flash-tag-text { display: none; }
  .member-form-wrap { padding: 28px 20px; }
  .pay-option { flex-wrap: wrap; gap: 10px 16px; }
  .modal { padding: 36px 24px; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { gap: 20px 28px; }
  .hero-badge { font-size: 11px; padding: 5px 12px; }
  .stat-num { font-size: 1.8rem; }
  .impact-num { font-size: 2.4rem; }
  .section-title { font-size: 1.6rem; }
  .donate-amounts { gap: 8px; }
  .amt-btn { padding: 10px 16px; font-size: 13.5px; }
  .hero-img-badges { gap: 8px; }
  .hero-stat-badge { padding: 10px 14px; }
  .hsb-num { font-size: 1.3rem; }
  .modal { padding: 28px 18px; }
  .drawer-body, .drawer-head, .drawer-foot { padding-left: 18px; padding-right: 18px; }
}
