/* ============================================
   HISAR ACADEMY — Stylesheet
   ============================================ */

:root {
  /* Navy & white palette */
  --emerald: #1E3A6E;         /* royal blue (primary) */
  --emerald-deep: #0B1F47;    /* deep navy (hero bg) */
  --emerald-mid: #143062;     /* mid navy */
  --gold: #C9A84C;            /* warm gold accent (sparingly) */
  --gold-soft: #E2C77A;
  --gold-deep: #A7892F;
  --cream: #F7F9FC;           /* near-white, cool */
  --cream-warm: #ECF1F8;      /* soft sky tint */
  --ink: #0F1A30;
  --ink-soft: #2A3550;
  --muted: #5A6786;
  --line: rgba(30,58,110,0.18);
  --line-soft: rgba(15,26,48,0.08);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Inter", "DM Sans", system-ui, -apple-system, sans-serif;
  --arabic: "Amiri", "Scheherazade New", serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 56px);

  --shadow-sm: 0 1px 2px rgba(11,31,71,.06), 0 2px 6px rgba(11,31,71,.04);
  --shadow-md: 0 6px 18px rgba(11,31,71,.10), 0 2px 6px rgba(11,31,71,.06);
  --shadow-lg: 0 24px 60px rgba(11,31,71,.18), 0 8px 18px rgba(11,31,71,.10);

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

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

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 .4em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
h4 { font-size: 1.15rem; font-family: var(--sans); font-weight: 600; letter-spacing: -0.005em; }

p { margin: 0 0 1em; text-wrap: pretty; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { position: relative; }

/* ----------------- BUTTONS ----------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: all .25s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn .arrow {
  transition: transform .25s var(--ease);
  display: inline-block;
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-gold {
  background: var(--gold);
  color: var(--emerald-deep);
}
.btn-gold:hover { background: var(--gold-soft); box-shadow: 0 10px 24px rgba(201,168,76,.32); transform: translateY(-1px); }

.btn-outline-light {
  background: transparent;
  color: var(--emerald);
  border-color: var(--emerald);
}
.btn-outline-light:hover { background: var(--emerald); color: #fff; }

.btn-outline-dark {
  background: transparent;
  color: var(--emerald);
  border-color: var(--emerald);
}
.btn-outline-dark:hover { background: var(--emerald); color: #fff; }

.btn-ghost-gold { color: var(--gold-deep); padding: 8px 0; border-radius: 0; }
.btn-ghost-gold:hover { color: var(--emerald); }

/* ----------------- NAV ----------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all .3s var(--ease);
}
.nav.scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(30,58,110,.10);
  box-shadow: 0 1px 0 rgba(30,58,110,.04);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--emerald-deep);
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--emerald);
  display: grid; place-items: center;
  color: var(--gold-soft);
  flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.01em; }
.brand-sub { font-size: 0.65rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-deep); margin-top: 4px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none; padding: 0; margin: 0;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--emerald);
  transition: width .25s var(--ease);
}
.nav-links a:hover { color: var(--emerald); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.hamburger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--emerald-deep);
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .hamburger { display: grid; place-items: center; }
  .nav-cta .btn-gold { display: none; }
}

/* Mobile menu drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--emerald-deep);
  z-index: 200;
  padding: 80px var(--gutter) 40px;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  display: flex; flex-direction: column; gap: 8px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  color: #fff;
  font-family: var(--serif);
  font-size: 2rem;
  padding: 12px 0;
  border-bottom: 1px solid rgba(201,168,76,.18);
}
.mobile-menu .btn { margin-top: 20px; align-self: flex-start; }
.mobile-close {
  position: absolute; top: 20px; right: 20px;
  width: 42px; height: 42px;
  color: #fff;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
}

/* ----------------- HERO ----------------- */
.hero {
  min-height: 100vh;
  background: #fff;
  color: var(--emerald-deep);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 140px 0 60px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% 15%, rgba(226,199,122,.18), transparent 65%),
    radial-gradient(1100px 700px at 10% 100%, rgba(30,58,110,.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #F7F9FC 60%, #ECF1F8 100%);
}
.hero-pattern {
  position: absolute; inset: 0;
  opacity: .25;
  mix-blend-mode: multiply;
  animation: drift 60s linear infinite;
}
@keyframes drift {
  from { background-position: 0 0; }
  to   { background-position: 600px 600px; }
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(236,241,248,.6) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
}
.hero-bismillah {
  font-family: var(--arabic);
  color: var(--gold-deep);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  opacity: .9;
  margin-bottom: 28px;
  letter-spacing: 0;
}
.hero h1 {
  margin: 0 0 24px;
  background: linear-gradient(180deg, #0B1F47 0%, #1E3A6E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-deep);
  -webkit-text-fill-color: var(--gold-deep);
}
.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 40px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 90px;
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 820px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  transition: all .3s var(--ease);
  box-shadow: var(--shadow-sm);
}
.stat-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.stat-card .num {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--emerald);
  line-height: 1;
}
.stat-card .label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.02em;
}
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: 1fr; }
}

.scroll-indicator {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 3;
}
.scroll-indicator::after {
  content: ""; width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: pulseScroll 2s ease-in-out infinite;
}
@keyframes pulseScroll {
  0%,100% { transform: scaleY(.6); opacity: .4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ----------------- SECTION HEADERS ----------------- */
.section { padding: clamp(80px, 10vw, 140px) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 70px; }
.section-head.left { text-align: left; margin: 0 0 60px; }
.section-head p.lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
}
.section-head.left p.lede { margin: 0; }
.divider-mark {
  width: 60px; height: 1px;
  background: var(--gold);
  margin: 0 auto 24px;
  position: relative;
}
.divider-mark::after {
  content: ""; position: absolute;
  left: 50%; top: 50%;
  width: 6px; height: 6px;
  background: var(--gold);
  transform: translate(-50%,-50%) rotate(45deg);
}

/* ----------------- WHY GRID ----------------- */
.why { background: var(--cream); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

.feature {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 36px 28px 32px;
  position: relative;
  border: 1px solid var(--line-soft);
  transition: all .3s var(--ease);
  overflow: hidden;
}
.feature::after {
  content: ""; position: absolute;
  left: 28px; right: 28px; bottom: 0;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line); }
.feature:hover::after { transform: scaleX(1); }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-deep));
  color: var(--gold-soft);
  display: grid; place-items: center;
  margin-bottom: 22px;
  position: relative;
}
.feature-icon::before {
  content: ""; position: absolute;
  inset: -4px;
  border: 1px dashed rgba(201,168,76,.4);
  border-radius: 18px;
}
.feature h3 { font-size: 1.4rem; margin-bottom: 10px; color: var(--emerald-deep); }
.feature p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* ----------------- ABOUT ----------------- */
.about { background: #fff; }
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 50px; } }

.about-visual { position: relative; }
.photo-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  position: relative;
}
.about-quote-overlay {
  position: absolute;
  bottom: -30px; right: -30px;
  background: var(--cream);
  border: 1px solid var(--gold);
  border-radius: var(--r-md);
  padding: 24px 28px;
  max-width: 280px;
  box-shadow: var(--shadow-lg);
}
.about-quote-overlay .ar {
  font-family: var(--arabic);
  color: var(--emerald);
  font-size: 1.5rem;
  margin-bottom: 10px;
  line-height: 1.4;
}
.about-quote-overlay .en {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--emerald-deep);
  line-height: 1.4;
  margin-bottom: 8px;
}
.about-quote-overlay .src {
  font-size: 0.72rem;
  color: var(--gold-deep);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .about-quote-overlay { right: 20px; bottom: -40px; }
}

.about-body h2 { color: var(--emerald-deep); }
.about-body p { color: var(--ink-soft); font-size: 1.02rem; }
.about-body .signature {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex; gap: 16px; align-items: center;
}
.signature-mark {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--gold-soft);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 1.4rem;
}
.signature-text strong { display: block; color: var(--emerald-deep); }
.signature-text span { font-size: 0.85rem; color: var(--muted); }

/* ----------------- PHOTO PLACEHOLDERS ----------------- */
.photo-ph {
  width: 100%; height: 100%;
  background:
    linear-gradient(135deg, #1E3A6E 0%, #0B1F47 50%, #143062 100%);
  position: relative;
  display: grid; place-items: center;
  color: rgba(255,255,255,.85);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  text-align: center;
  padding: 30px;
  overflow: hidden;
}
.photo-ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><g fill='none' stroke='%23C9A84C' stroke-width='.7' opacity='.35'><polygon points='60,10 70,40 100,40 76,60 86,90 60,72 34,90 44,60 20,40 50,40'/><circle cx='60' cy='60' r='40'/></g></svg>");
  background-size: 240px;
  opacity: .4;
  mix-blend-mode: overlay;
}
.photo-ph::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(11,31,71,.6) 100%);
}
.photo-ph .ph-label {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.photo-ph .ph-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold-soft);
  font-style: normal;
}

/* ----------------- PROGRAMS ----------------- */
.programs {
  background: var(--cream-warm);
  position: relative;
  overflow: hidden;
}
.programs::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><g fill='none' stroke='%231E3A6E' stroke-width='.6' opacity='.18'><polygon points='100,15 120,70 180,70 130,105 150,165 100,130 50,165 70,105 20,70 80,70'/></g></svg>");
  background-size: 380px;
  opacity: .35;
  pointer-events: none;
}
.programs > .container { position: relative; z-index: 1; }

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .programs-grid { grid-template-columns: 1fr; } }

.program-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: all .35s var(--ease);
  display: flex; flex-direction: column;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.program-card .photo-frame { aspect-ratio: 4/3; border-radius: 0; }
.program-body { padding: 28px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.program-badge {
  align-self: flex-start;
  background: var(--gold);
  color: var(--emerald-deep);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.program-card h3 { color: var(--emerald-deep); margin-bottom: 10px; }
.program-card p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.program-meta {
  display: flex; gap: 16px;
  margin: 16px 0 20px;
  font-size: 0.82rem; color: var(--ink-soft);
}
.program-meta span { display: inline-flex; align-items: center; gap: 6px; }
.program-meta svg { color: var(--gold-deep); }

/* ----------------- ADMISSION TIMELINE ----------------- */
.admission { background: #fff; }
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin: 50px 0 60px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 36px; left: 12.5%; right: 12.5%;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--gold) 0 8px, transparent 8px 16px);
}
.step {
  text-align: center;
  padding: 0 16px;
  position: relative;
}
.step-num {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--emerald-deep);
  display: grid; place-items: center;
  margin: 0 auto 24px;
  font-family: var(--serif);
  font-size: 1.6rem;
  position: relative;
  z-index: 2;
  transition: all .3s var(--ease);
}
.step:hover .step-num {
  background: var(--emerald);
  color: var(--gold-soft);
  border-color: var(--emerald);
  transform: scale(1.05);
}
.step-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--emerald-deep);
  display: grid; place-items: center;
  position: absolute;
  top: 8px; left: 50%;
  margin-left: 20px;
  z-index: 3;
}
.step h4 { color: var(--emerald-deep); margin-bottom: 6px; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.step p { font-size: 0.88rem; color: var(--muted); margin: 0; }

@media (max-width: 800px) {
  .timeline { grid-template-columns: 1fr; gap: 40px; }
  .timeline::before { display: none; }
}

.admission-cta { text-align: center; }

/* ----------------- IMPACT BANNER ----------------- */
.impact {
  background: var(--emerald);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.impact::before, .impact::after {
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.15), transparent 60%);
}
.impact::before { top: -200px; left: -100px; }
.impact::after { bottom: -200px; right: -100px; }
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
  position: relative;
}
.impact-grid::after {
  content: "";
  position: absolute;
  top: 20%; bottom: 20%; left: 25%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(201,168,76,.35), transparent);
  box-shadow:
    25vw 0 0 0 rgba(201,168,76,.35),
    50vw 0 0 0 rgba(201,168,76,.35);
}
.impact-stat .num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 500;
  color: #fff;
  line-height: 1;
}
.impact-stat .num .suffix { color: var(--gold-soft); }
.impact-stat .label {
  font-size: 0.78rem;
  color: var(--gold-soft);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 14px;
}
@media (max-width: 780px) {
  .impact-grid { grid-template-columns: repeat(2, 1fr); gap: 50px 20px; }
  .impact-grid::after { display: none; }
}

/* ----------------- SERVICES ----------------- */
.services { background: var(--cream); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

.service {
  background: #fff;
  border-radius: var(--r-md);
  padding: 28px 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: all .3s var(--ease);
}
.service:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--cream-warm);
  color: var(--emerald);
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.service h4 { color: var(--emerald-deep); margin: 4px 0 4px; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.service p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ----------------- DONATION ----------------- */
.donate {
  background: var(--emerald-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.donate::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><g fill='none' stroke='%23C9A84C' stroke-width='.5' opacity='.5'><circle cx='80' cy='80' r='50'/><circle cx='80' cy='80' r='30'/><polygon points='80,30 95,75 130,75 102,100 113,140 80,115 47,140 58,100 30,75 65,75'/></g></svg>");
  background-size: 320px;
  opacity: .12;
}
.donate > .container { position: relative; z-index: 1; }
.donate .section-head h2 { color: #fff; }
.donate .section-head h2 .underline {
  position: relative;
  display: inline-block;
}
.donate .section-head h2 .underline::after {
  content: ""; position: absolute;
  left: 10%; right: 10%; bottom: -10px;
  height: 2px; background: var(--gold);
}
.donate .section-head p.lede { color: rgba(255,255,255,.7); }

.hadith-feature {
  max-width: 760px;
  margin: 0 auto 60px;
  padding: 30px 32px;
  border-left: 3px solid var(--gold);
  background: rgba(255,255,255,.03);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.hadith-feature .ar {
  font-family: var(--arabic);
  color: var(--gold-soft);
  font-size: 1.7rem;
  margin-bottom: 14px;
  line-height: 1.5;
}
.hadith-feature .en {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: rgba(255,255,255,.92);
  line-height: 1.5;
  margin-bottom: 10px;
}
.hadith-feature .src {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft);
}

.donate-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 50px;
}
@media (max-width: 900px) { .donate-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .donate-cards { grid-template-columns: 1fr; } }

.donate-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--r-md);
  padding: 26px 22px;
  transition: all .3s var(--ease);
}
.donate-card:hover { background: rgba(255,255,255,.08); border-color: var(--gold); transform: translateY(-3px); }
.donate-card h4 { color: var(--gold-soft); font-family: var(--serif); font-size: 1.3rem; font-weight: 500; margin-bottom: 6px; }
.donate-card p { font-size: 0.85rem; color: rgba(255,255,255,.65); margin-bottom: 18px; }
.donate-amounts {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px;
}
.amount-chip {
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(201,168,76,.4);
  border-radius: 999px;
  color: rgba(255,255,255,.85);
  transition: all .2s var(--ease);
}
.amount-chip:hover, .amount-chip.active { background: var(--gold); color: var(--emerald-deep); border-color: var(--gold); }
.donate-card .btn { width: 100%; justify-content: center; padding: 11px; font-size: 0.85rem; }

.payment-methods {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 24px 0;
  border-top: 1px solid rgba(201,168,76,.15);
  border-bottom: 1px solid rgba(201,168,76,.15);
}
.payment-methods span { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); }
.payment-methods .pm {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.85);
  font-weight: 600;
  font-size: 0.95rem;
}
.tax-line {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,.5);
  margin-top: 18px;
}

/* ----------------- HADITH SECTION ----------------- */
.hadith-quotes { background: var(--cream); padding: 100px 0; }
.hadith-list { display: flex; flex-direction: column; gap: 80px; max-width: 880px; margin: 0 auto; }
.hadith-block { text-align: center; }
.hadith-block .ar {
  font-family: var(--arabic);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--emerald);
  margin-bottom: 24px;
  line-height: 1.6;
}
.hadith-block .en {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-style: italic;
  color: var(--emerald-deep);
  line-height: 1.45;
  margin-bottom: 16px;
  max-width: 680px; margin-inline: auto;
}
.hadith-block .src {
  font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-deep);
}
.hadith-divider {
  width: 80px; height: 1px;
  background: var(--gold);
  margin: 0 auto;
  position: relative;
}
.hadith-divider::before, .hadith-divider::after {
  content: ""; position: absolute; top: -2px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}
.hadith-divider::before { left: -8px; }
.hadith-divider::after { right: -8px; }

/* ----------------- BLOG ----------------- */
.blog { background: #fff; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { display: flex; flex-direction: column; gap: 16px; transition: all .3s var(--ease); }
.blog-card:hover { transform: translateY(-3px); }
.blog-card .photo-frame { aspect-ratio: 16/10; border-radius: var(--r-md); }
.blog-card:hover .photo-frame { box-shadow: var(--shadow-md); }
.blog-meta { display: flex; gap: 12px; align-items: center; margin-top: 6px; }
.blog-cat {
  background: var(--emerald);
  color: var(--gold-soft);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.blog-date { font-size: 0.82rem; color: var(--muted); }
.blog-card h3 { color: var(--emerald-deep); font-size: 1.4rem; margin: 4px 0 8px; }
.blog-card:hover h3 { color: var(--gold-deep); }
.blog-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 12px; }

/* ----------------- CONTACT ----------------- */
.contact { background: var(--cream-warm); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-info h2 { color: var(--emerald-deep); }
.contact-info > p { color: var(--ink-soft); margin-bottom: 36px; }
.contact-list { display: flex; flex-direction: column; gap: 22px; margin-bottom: 36px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--gold-soft);
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.contact-item .label {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 4px;
}
.contact-item .val { color: var(--emerald-deep); font-weight: 500; font-size: 1.02rem; line-height: 1.4; }

.socials { display: flex; gap: 12px; }
.social {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--emerald);
  color: var(--emerald);
  display: grid; place-items: center;
  transition: all .25s var(--ease);
}
.social:hover { background: var(--emerald); color: var(--gold-soft); transform: translateY(-2px); }

.map-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/4;
  background: var(--emerald-deep);
  border: 1px solid var(--gold);
}
.map-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: .35;
}
.map-pin {
  position: absolute;
  left: 50%; top: 48%;
  transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center;
  z-index: 2;
}
.map-pin .pin-dot {
  width: 18px; height: 18px;
  background: var(--gold);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(201,168,76,.2);
  animation: pulsePin 2s ease-in-out infinite;
}
@keyframes pulsePin {
  0%,100% { box-shadow: 0 0 0 8px rgba(201,168,76,.2); }
  50% { box-shadow: 0 0 0 16px rgba(201,168,76,.05); }
}
.map-pin .pin-label {
  margin-top: 14px;
  background: #fff;
  color: var(--emerald-deep);
  font-family: var(--serif);
  font-size: 1.05rem;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
  text-align: center;
  white-space: nowrap;
}
.map-pin .pin-label small { display: block; font-family: var(--sans); font-size: 0.72rem; color: var(--muted); margin-top: 3px; letter-spacing: 0.05em; }

/* ----------------- FOOTER ----------------- */
.footer {
  background: #08183a;
  color: rgba(255,255,255,.7);
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 50px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,.6); max-width: 320px; }

.footer h5 {
  color: var(--gold-soft);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(255,255,255,.7); font-size: 0.92rem; transition: color .2s var(--ease); }
.footer-links a:hover { color: var(--gold-soft); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(201,168,76,.15);
  font-size: 0.82rem;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom .tax { color: var(--gold-soft); }

/* ----------------- REVEAL ANIMATIONS ----------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.35s; }

/* ----------------- TWEAKS PANEL (custom inline) ----------------- */
.tweaks-toggle-hint { display: none; }

/* DB-backed blog cover image */
.blog-cover{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}

/* ===== Blog article (detail) page ===== */
.article-container{max-width:760px}
.article-head{text-align:center;margin-bottom:34px}
.article-title{margin:14px 0 10px}
.article-author{color:var(--gold-deep,#A7892F);font-size:.95rem;font-style:italic}
.article-cover{border-radius:16px;overflow:hidden;margin-bottom:36px;box-shadow:0 24px 60px rgba(13,43,34,.16)}
.article-cover img{width:100%;display:block}
.article-body{font-size:1.08rem;line-height:1.85;color:#2a2a2a}
.article-body p{margin:0 0 1.2em}
.article-body h2,.article-body h3{margin:1.6em 0 .5em}
.article-body img{max-width:100%;height:auto;border-radius:12px;margin:1.2em 0}
.article-body blockquote{border-left:3px solid var(--gold,#C9A84C);margin:1.4em 0;padding:.4em 1.2em;color:#555;font-style:italic}
.article-body a{color:var(--gold-deep,#A7892F);text-decoration:underline}
.article-back{margin-top:48px;text-align:center}

/* ===== Contact form ===== */
.contact-form-wrap{margin-top:48px;max-width:760px}
.contact-form-title{font-family:"Cormorant Garamond",Georgia,serif;color:var(--emerald-deep,#0D2B22);margin:0 0 18px}
.contact-form .cf-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}
@media(max-width:640px){.contact-form .cf-row{grid-template-columns:1fr}}
.contact-form .cf-field{margin-bottom:16px;display:flex;flex-direction:column}
.contact-form label{font-size:.8rem;font-weight:600;letter-spacing:.04em;color:#5a5a5a;margin-bottom:6px}
.contact-form input,.contact-form textarea{border:1px solid #e2dcc9;border-radius:10px;padding:12px 14px;font:inherit;background:#fff;color:#1a1a1a}
.contact-form input:focus,.contact-form textarea:focus{outline:none;border-color:var(--gold,#C9A84C);box-shadow:0 0 0 3px rgba(201,168,76,.15)}
.contact-form span.field-validation-error,.contact-form .val-summary{color:#b3261e;font-size:.85rem;margin-top:4px}
.contact-form .btn{margin-top:6px}
.cf-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form-success{background:#eaf5ee;border:1px solid #bfe0cb;color:#1B4D3E;padding:14px 18px;border-radius:12px;margin-bottom:22px}
