/* ==========================================================================
   Hafiza Rahima Khatun Kalyan Trust — Design System
   Palette derived from the Trust emblem (forest green + bronze gold)
   ========================================================================== */

:root {
  --ink: #1E2619;
  --green-900: #1F3320;
  --green-800: #2C4A2C;
  --green-700: #3E5C3A;
  --green-600: #4E7048;
  --green-500: #5F8358;
  --green-100: #EAF0E3;
  --green-050: #F1F5EB;
  --green-tint: #DDE6D4;

  --gold-700: #8A5328;
  --gold-600: #9A5F31;
  --gold-500: #A56636;
  --gold-400: #C1883F;
  --gold-300: #D8AF6B;
  --gold-100: #F3E7D6;

  --paper: #F4F5EE;
  --paper-2: #FBFBF7;
  --white: #ffffff;
  --line: #E0E3D6;
  --line-strong: #CFD5C1;
  --muted: #6B7264;

  --danger: #A6321F;
  --success: #2F6B45;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-bangla: 'Hind Siliguri', var(--font-body);
  --font-arabic: 'Amiri', serif;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(31, 51, 32, 0.06), 0 2px 6px rgba(31, 51, 32, 0.05);
  --shadow: 0 10px 30px -12px rgba(31, 51, 32, 0.22);
  --shadow-lg: 0 30px 60px -30px rgba(31, 51, 32, 0.45);

  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--gold-500); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  color: var(--green-900);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-variation-settings: 'opsz' 90; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1rem; }
.lede { font-size: 1.15rem; color: #3d4536; line-height: 1.7; }

::selection { background: var(--gold-300); color: var(--green-900); }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 3px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--tint { background: var(--green-050); }
.section--green { background: var(--green-900); color: #dfe6d6; }
.section--green h1, .section--green h2, .section--green h3 { color: #fff; }
.center { text-align: center; }

.eyes { display: block; margin-bottom: .9rem; }
.eyebrow {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.section--green .eyebrow { color: var(--gold-300); }

.head { max-width: 62ch; margin-bottom: 2.5rem; }
.head.center { margin-inline: auto; }

/* ---------- Ornamental divider ---------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto;
  width: min(340px, 70%);
  opacity: .9;
}
.ornament::before, .ornament::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(to right, transparent, var(--gold-400));
}
.ornament::after { background: linear-gradient(to left, transparent, var(--gold-400)); }
.ornament svg { width: 26px; height: 26px; color: var(--gold-500); flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .92rem;
  line-height: 1;
  padding: .95rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--gold { background: var(--gold-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn--gold:hover { background: var(--gold-600); color: #fff; }
.btn--green { background: var(--green-700); color: #fff; }
.btn--green:hover { background: var(--green-800); color: #fff; }
.btn--outline { border-color: var(--green-700); color: var(--green-800); background: transparent; }
.btn--outline:hover { background: var(--green-700); color: #fff; }
.btn--light { background: #fff; color: var(--green-800); }
.btn--light:hover { background: var(--gold-100); color: var(--green-900); }
.btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; background: rgba(255,255,255,.04); }
.btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: .6rem 1rem; font-size: .82rem; }
.btn--lg { padding: 1.15rem 2rem; font-size: 1rem; }

/* ---------- Top bar + Header ---------- */
.topbar {
  background: var(--green-900);
  color: #cdd8c4;
  font-size: .8rem;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.topbar a { color: #cdd8c4; }
.topbar a:hover { color: var(--gold-300); }
.topbar__list { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; }
.topbar__item { display: inline-flex; align-items: center; gap: .4rem; }
.topbar svg { width: 14px; height: 14px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 247, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.brand img { width: 150px; height: 150px; object-fit: contain; flex-shrink: 0; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; line-height: 1.1; color: var(--green-900); }
.brand__meta { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.brand__text { display: none; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--green-900);
  padding: .55rem .8rem;
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--green-050); color: var(--green-800); }
.nav a.active { color: var(--gold-600); }
.nav__actions { display: flex; align-items: center; gap: .6rem; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: .55rem .7rem; cursor: pointer; color: var(--green-900);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* dropdown */
.has-drop { position: relative; }
.has-drop > a { display: inline-flex; align-items: center; gap: .2rem; }
.drop {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 240px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: .45rem; display: none; z-index: 60;
}
.has-drop:hover .drop { display: block; }
.drop a { display: block; padding: .65rem .8rem; border-radius: var(--radius-sm); font-size: .88rem; }
.drop a:hover { background: var(--green-050); }

.hide-mobile { }
@media (max-width: 720px) { .hide-mobile { display: none; } }

@media (max-width: 980px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: var(--paper-2); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.4rem; display: none;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav > a, .nav .has-drop > a { padding: .8rem .9rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .has-drop:hover .drop { display: none; }
  .has-drop.open .drop { display: block; position: static; box-shadow: none; border: none; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 0 .6rem .8rem; }
  .nav__actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand img { width: 100px; height: 100px; }
  .brand__text { display: flex; flex-direction: column; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--green-900); color: #e7ecdf; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 78% 30%, rgba(201,138,69,.22), transparent 45%),
                    radial-gradient(circle at 8% 90%, rgba(95,131,88,.35), transparent 50%);
}
.hero__pattern {
  position: absolute; inset: 0;
  background-image: url('/images/pattern.svg');
  background-size: 260px;
  opacity: .06;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem);
}
.hero h1 { color: #ffffff; }
.hero .eyebrow { color: var(--gold-300); }
.hero p { color: #cbd6c0; max-width: 52ch; }
.hero__cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero__stats { display: flex; gap: 2.2rem; margin-top: 2.8rem; flex-wrap: wrap; }
.hero__stat b { display: block; font-family: var(--font-display); font-size: 2rem; color: #fff; line-height: 1; }
.hero__stat span { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #a9b79c; }

.hero__arch-wrap { display: flex; justify-content: center; }
.hero__arch {
  position: relative;
  width: min(420px, 90%);
  aspect-ratio: 3 / 4;
  border-radius: 50% 50% 12px 12px / 40% 40% 0 0;
  overflow: hidden;
  border: 2px solid var(--gold-400);
  box-shadow: var(--shadow-lg);
  background: #223423;
}
.hero__arch img { width: 100%; height: 100%; object-fit: cover; }
.hero__arch-tag {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: rgba(31,51,32,.82); backdrop-filter: blur(6px);
  border: 1px solid rgba(201,138,69,.5);
  border-radius: var(--radius-sm);
  padding: .7rem .9rem; color: #eef2e8; font-size: .8rem; text-align: center;
}
.hero__arch-tag b { color: var(--gold-300); }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: left; }
  .hero__arch-wrap { order: -1; }
  .hero__arch { width: min(300px, 70vw); aspect-ratio: 3/4; }
}

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--gold-500); color: #fff; }
.trust-strip .wrap { display: flex; gap: 2rem; justify-content: space-between; flex-wrap: wrap; padding-block: 1.1rem; }
.trust-strip__item { display: flex; align-items: center; gap: .6rem; font-size: .86rem; font-weight: 600; }
.trust-strip svg { width: 20px; height: 20px; opacity: .85; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-300); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__badge {
  position: absolute; top: .8rem; left: .8rem;
  background: var(--gold-500); color: #fff; font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: .32rem .6rem; border-radius: 4px;
}
.card__body { padding: 1.3rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card__title { font-size: 1.2rem; margin: 0; }
.card__title a { color: var(--green-900); }
.card__title a:hover { color: var(--gold-600); }
.card__text { color: var(--muted); font-size: .92rem; margin: 0; }
.card__foot { margin-top: auto; padding-top: .4rem; }

.meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: .35rem; }
.meta svg { width: 15px; height: 15px; color: var(--gold-500); }

/* progress */
.progress { height: 9px; border-radius: 999px; background: var(--green-100); overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--green-600), var(--gold-400)); border-radius: inherit; }
.progress__meta { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: .4rem; }
.progress__meta b { color: var(--green-800); }

/* person card */
.person { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.2rem; }
.person__photo { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; margin: 0 auto 1rem; border: 3px solid var(--gold-300); background: var(--green-100); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.person__role { color: var(--gold-600); font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.person__bio { font-size: .88rem; color: var(--muted); margin-top: .7rem; }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.gallery-grid a { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; background: var(--green-100); border: 1px solid var(--line); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-grid a:hover img { transform: scale(1.07); }
.gallery-grid a:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .gallery-grid a:nth-child(1) { grid-column: span 2; } }

/* testimonial */
.quote { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold-400); border-radius: var(--radius); padding: 1.6rem; }
.quote p { font-family: var(--font-display); font-size: 1.08rem; color: var(--green-900); line-height: 1.55; }
.quote__by { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.quote__by img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-300); }
.quote__by b { display: block; font-size: .92rem; color: var(--green-900); }
.quote__by span { font-size: .8rem; color: var(--muted); }
.stars { color: var(--gold-400); letter-spacing: 2px; font-size: .9rem; }

/* feature / split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 900px) { .split, .split--reverse { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }
.frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--green-100); }
.frame img { width: 100%; }
.frame--arch { border-radius: 50% 50% 12px 12px / 34% 34% 0 0; border: 2px solid var(--gold-400); }

.checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; }
.checklist svg { width: 20px; height: 20px; color: var(--gold-500); flex: none; margin-top: 2px; }

/* stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 780px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 1.5rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--green-700); line-height: 1; }
.stat span { display: block; margin-top: .5rem; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.section--green .stat { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.section--green .stat b { color: var(--gold-300); }
.section--green .stat span { color: #b9c6ab; }

/* price / sponsor tiers */
.tier { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; display: flex; flex-direction: column; }
.tier--featured { border-color: var(--gold-400); box-shadow: var(--shadow); position: relative; }
.tier--featured::before { content: "Most needed"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold-500); color: #fff; font-size: .7rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; }
.tier h3 { margin-bottom: .3rem; }
.tier__price { font-family: var(--font-display); font-size: 2rem; color: var(--green-700); }
.tier ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; gap: .55rem; font-size: .9rem; }
.tier li { display: flex; gap: .5rem; align-items: flex-start; }
.tier li svg { width: 18px; height: 18px; color: var(--gold-500); flex: none; margin-top: 2px; }
.tier .btn { margin-top: auto; }

/* logos row */
.logo-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center; }
.logo-chip { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.5rem; font-family: var(--font-display); color: var(--green-800); font-size: 1.05rem; min-width: 150px; text-align: center; }

/* CTA band */
.cta-band { position: relative; background: var(--green-800); color: #e8eedf; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(2.4rem,5vw,4rem); }
.cta-band__pattern { position: absolute; inset: 0; background-image: url('/images/pattern.svg'); background-size: 200px; opacity: .07; }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .84rem; font-weight: 700; color: var(--green-900); margin-bottom: .4rem; }
.field .req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: .8rem .9rem; transition: border-color .2s, box-shadow .2s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(78,112,72,.16); }
.textarea { min-height: 130px; resize: vertical; }
.field__hint { font-size: .78rem; color: var(--muted); margin-top: .3rem; }
.field__error { font-size: .8rem; color: var(--danger); margin-top: .3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; }
.checkbox input { margin-top: .3rem; }

.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
@media (max-width: 620px) { .amount-grid { grid-template-columns: repeat(2, 1fr); } }
.amount-chip { position: relative; }
.amount-chip input { position: absolute; opacity: 0; }
.amount-chip span {
  display: block; text-align: center; padding: .85rem .5rem; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); font-weight: 700; color: var(--green-800); cursor: pointer; transition: all .15s; background: var(--paper-2);
}
.amount-chip input:checked + span { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.amount-chip span:hover { border-color: var(--gold-400); }

/* alerts */
.alert { border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-size: .9rem; margin-bottom: 1rem; border: 1px solid; }
.alert--success { background: #EAF4EC; border-color: #B9DCC3; color: #215C37; }
.alert--error { background: #FBEDEA; border-color: #F0C4BB; color: #8E2C1B; }
.alert--info { background: var(--green-050); border-color: var(--green-tint); color: var(--green-800); }

/* page hero */
.page-hero { background: var(--green-900); color: #dfe6d6; position: relative; overflow: hidden; padding-block: clamp(2.5rem,6vw,4.5rem); }
.page-hero__pattern { position: absolute; inset: 0; background-image: url('/images/pattern.svg'); background-size: 220px; opacity: .06; }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: .4rem; }
.page-hero p { color: #b9c6ab; max-width: 65ch; margin: 0; }
.breadcrumb { font-size: .82rem; color: #9fb091; margin-bottom: 1rem; }
.breadcrumb a { color: var(--gold-300); }

/* article */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.rich { white-space: pre-line; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #b9c6ab; position: relative; overflow: hidden; }
.site-footer__pattern { position: absolute; inset: 0; background-image: url('/images/pattern.svg'); background-size: 240px; opacity: .05; }
.site-footer .wrap { position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.4rem; padding-block: clamp(2.6rem,5vw,4rem); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .02em; margin-bottom: 1rem; }
.site-footer a { color: #b9c6ab; }
.site-footer a:hover { color: var(--gold-300); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .9rem; }
.footer-brand img { width: 100px; height: 100px; border-radius: 50%; background: #fff; padding: 4px; margin-bottom: 1rem; }
.footer-brand p { font-size: .9rem; }
.social { display: flex; gap: .6rem; margin-top: 1rem; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); }
.social a:hover { background: var(--gold-500); color: #fff; }
.social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; }

.contact-line { display: flex; gap: .6rem; font-size: .9rem; margin-bottom: .7rem; align-items: flex-start; }
.contact-line svg { width: 17px; height: 17px; color: var(--gold-400); flex: none; margin-top: 3px; }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: 270px 1fr; min-height: 100vh; }
@media (max-width: 900px) { .dash { grid-template-columns: 1fr; } }
.dash__side { background: var(--green-900); color: #cdd8c4; position: relative; overflow: hidden; }
.dash__side-pattern { position: absolute; inset: 0; background-image: url('/images/pattern.svg'); background-size: 200px; opacity: .05; }
.dash__side { position: sticky; top: 0; align-self: start; }
.dash__side-inner { position: relative; padding: 1.6rem 1.3rem; }
.dash__brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.8rem; }
.dash__brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.dash__brand b { color: #fff; font-family: var(--font-display); font-size: .98rem; line-height: 1.15; display: block; }
.dash__brand span { font-size: .68rem; color: #9fb091; text-transform: uppercase; letter-spacing: .08em; }
.dash__nav { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; }
.dash__nav a { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: var(--radius-sm); color: #cdd8c4; font-size: .9rem; font-weight: 600; }
.dash__nav a svg { width: 18px; height: 18px; }
.dash__nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.dash__nav a.active { background: var(--gold-500); color: #fff; }
.dash__main { background: var(--paper); }
.dash__topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 1rem clamp(1rem,4vw,2.2rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dash__body { padding: clamp(1.2rem,4vw,2.2rem); }
.dash__hint { color: var(--muted); }

.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: .85rem 1rem; font-size: .88rem; border-bottom: 1px solid var(--line); }
.table th { background: var(--green-050); color: var(--green-900); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.table tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: .22rem .6rem; border-radius: 999px; letter-spacing: .03em; text-transform: uppercase; }
.pill--success { background: #DCEFE1; color: #215C37; }
.pill--warn { background: #F6E9CF; color: #8A5328; }
.pill--muted { background: #E7E9E0; color: #55604b; }
.pill--danger { background: #F7DED8; color: #8E2C1B; }

.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }

/* ---------- Dashboard content ---------- */
.dash__brand-txt { display: flex; flex-direction: column; }
.dash__menu { display: none; background: none; border: none; color: var(--green-900); cursor: pointer; }
.dash__menu svg { width: 26px; height: 26px; }
.dash__heading h1 { font-size: 1.35rem; margin: 0; }
.dash__heading p { margin: .1rem 0 0; font-size: .84rem; color: var(--muted); }
.dash__user { display: flex; align-items: center; gap: .7rem; }
.dash__user img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-300); }
.dash__user b { display: block; font-size: .88rem; color: var(--green-900); }
.dash__user span { font-size: .76rem; color: var(--muted); }
.dash__logout { display: flex; align-items: center; gap: .6rem; width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #d8e0d0; padding: .7rem .9rem; border-radius: var(--radius-sm); font-size: .88rem; font-weight: 600; cursor: pointer; }
.dash__logout:hover { background: var(--gold-500); border-color: var(--gold-500); color: #fff; }
.dash__logout svg { width: 18px; height: 18px; }

.dash-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.6rem; }
.dash-card { display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.dash-card__icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; }
.dash-card__icon svg { width: 22px; height: 22px; }
.dash-card b { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--green-800); line-height: 1.1; }
.dash-card span { font-size: .78rem; color: var(--muted); }

.dash-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem,3vw,1.6rem); margin-bottom: 1.6rem; }
.dash-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.dash-panel__head h2 { font-size: 1.2rem; margin: 0; }
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: start; }

@media (max-width: 900px) { .dash-cards { grid-template-columns: repeat(2, 1fr); } .dash-cols { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .dash-cards { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
    .dash__side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 60; transform: translateX(-100%); transition: transform .25s ease; }
    .dash__side.open { transform: none; }
    .dash__menu { display: inline-flex; }
}

/* ---------- Receipt ---------- */
.receipt { background: #fff; }
.receipt__head { display: flex; gap: 1.2rem; align-items: center; padding-bottom: 1.2rem; border-bottom: 2px solid var(--green-700); }
.receipt__head h2 { font-size: 1.15rem; margin: 0 0 .2rem; }
.receipt__head p { font-size: .8rem; color: var(--muted); margin: 0; }
.receipt__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1.2rem 0; }
.receipt__meta > div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .9rem; }
.receipt__meta span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.receipt__meta b { color: var(--green-900); }

/* ---------- Donate box & donation rows (project page) ---------- */
.donate-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem,3vw,1.8rem); position: sticky; top: 90px; }
.donation-row { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.donation-row:last-child { border-bottom: none; }
.donation-row img { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.donation-row > div { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.donation-row b { color: var(--green-900); }
.donation-row span { font-size: .74rem; color: var(--muted); }
.donation-row strong { color: var(--gold-600); }
@media (max-width: 900px) { .donate-box { position: static; } }

/* ---------- Filter bar (projects index) ---------- */
.filter-bar { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: .5rem; }
.filter-bar .field { margin: 0; }

/* ---------- Event date badge ---------- */
.event-date { display: inline-flex; flex-direction: column; align-items: center; background: var(--green-050); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .35rem .7rem; margin-bottom: .4rem; }
.event-date__day { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--green-700); line-height: 1; }
.event-date__mon { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* ---------- Split media ---------- */
.split__media { min-width: 0; }

/* utility */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.6rem; } .mt-4 { margin-top: 2.4rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.6rem; }
.flex { display: flex; } .between { justify-content: space-between; } .items-center { align-items: center; } .gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .wrapf { flex-wrap: wrap; }
.muted { color: var(--muted); }
.text-gold { color: var(--gold-500); }
.arabic { font-family: var(--font-arabic); font-size: 1.5rem; color: var(--gold-400); }
.bangla { font-family: var(--font-bangla); }
.hide { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
