/* ============================================================
   DARUL ULOOM NEW YORK — Main Stylesheet
   Colors: Navy #0C1F3D | Blue #1A4B8C | Gold #C9A227 | White #FFF
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&family=Poppins:wght@300;400;500;600;700&family=Amiri:wght@400;700&family=EB+Garamond:wght@400;500;600;700&display=swap');

/* ---- Custom Properties ---- */
:root {
  --navy:       #0C1F3D;
  --blue:       #1A4B8C;
  --blue-mid:   #2560A8;
  --blue-light: #3D7CC9;
  --gold:       #B08D3B;
  --gold-dark:  #8C6F22;
  --gold-light: #D6B863;
  --gold-pale:  #F6EFDD;
  --white:      #FFFFFF;
  --off-white:  #F5EFE0;
  --cream:      #FDF8EE;
  --parchment:  #FBF6EA;
  --text-dark:  #0C1F3D;
  --text-body:  #2C3E50;
  --text-muted: #6C757D;
  --border:     #E2D9C5;
  --shadow:     0 4px 24px rgba(12, 31, 61, 0.12);
  --shadow-lg:  0 8px 40px rgba(12, 31, 61, 0.2);
  --shadow-gold:0 4px 20px rgba(201, 162, 39, 0.35);
  --radius:     10px;
  --radius-lg:  16px;
  --transition: all 0.3s ease;
  --max-width:  1200px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  color: var(--text-body);
  background: var(--parchment);
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
.arabic {
  font-family: 'Amiri', serif;
  font-size: 1.6rem;
  direction: rtl;
  color: var(--gold);
  line-height: 2;
}

/* Interface chrome (nav, buttons, labels, badges, form controls) keeps the
   grotesque face; reading content (headings excepted) takes the serif above —
   the split is what makes long-form pages feel like a written text rather
   than a product UI. */
.nav-title, .nav-links a, .mobile-nav a, .mobile-sub-link, .nav-dropdown-menu a,
.btn, .hero-badge, .hero-stat-label, .announcement,
.program-tag, .faculty-title, .faculty-dept, .faculty-bio-card-title, .faculty-bio-dept-tag,
.donate-pill, .donate-category-label, .cat-label, .amt-label,
.form-group label, .form-control, .breadcrumb,
.recurring-toggle .text h4, .secure-badge,
.footer-col h4, .footer-bottom, .contact-item h4 {
  font-family: 'Poppins', sans-serif;
}

/* ---- Utilities ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 50px 0; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-white { color: var(--white); }
.bg-navy { background: var(--navy); }
.bg-blue { background: var(--blue); }
.bg-cream { background: var(--cream); }
.bg-off-white { background: var(--off-white); }

/* Section heading with gold underline */
.section-title {
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}
.title-block {
  text-align: center;
  margin-bottom: 3rem;
}
.gold-line {
  position: relative;
  display: block;
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent);
  margin: 0.9rem auto 1.15rem;
}
.gold-line::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}
.gold-line.left { margin-left: 0; margin-right: auto; }
.gold-line.left::before { left: 0; transform: translate(0, -50%) rotate(45deg); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(201,162,39,0.5);
  color: var(--white);
}
.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-navy:hover {
  background: var(--blue);
  transform: translateY(-2px);
  color: var(--white);
}
.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--white);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }

/* ---- Islamic Pattern Background ---- */
.pattern-bg {
  background-color: var(--navy);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='rgba(201%2C162%2C39%2C0.12)' stroke-width='1'%3E%3Cpolygon points='40,6 47,28 70,22 55,41 70,58 47,52 40,74 33,52 10,58 25,41 10,22 33,28'/%3E%3Ccircle cx='40' cy='40' r='12'/%3E%3Crect x='28' y='28' width='24' height='24' transform='rotate(45 40 40)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}
.pattern-light {
  background-color: var(--off-white);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='rgba(12%2C31%2C61%2C0.05)' stroke-width='1'%3E%3Cpolygon points='30,4 35,20 52,15 42,29 55,38 38,40 35,57 30,43 25,57 22,40 5,38 18,29 8,15 25,20'/%3E%3Ccircle cx='30' cy='30' r='9'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 2px solid rgba(201,162,39,0.25);
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(12,31,61,0.35);
  border-bottom-color: rgba(201,162,39,0.45);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.nav-logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-gold);
}
.nav-logo svg { width: 28px; height: 28px; }
.nav-logo { background: none; box-shadow: none; width: 56px; height: 56px; }
.nav-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav-title { line-height: 1.15; }
.nav-title span:first-child {
  display: block;
  font-family: 'EB Garamond', Garamond, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}
.nav-title span:last-child {
  display: block;
  font-family: 'EB Garamond', Garamond, serif;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 0.6rem;
  white-space: nowrap;
  border-radius: 6px;
  transition: var(--transition);
  letter-spacing: 0.01em;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(201,162,39,0.1);
}
.nav-donate-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
  color: var(--white) !important;
  padding: 0.45rem 1rem !important;
  margin-left: 0.35rem;
  border-radius: 6px !important;
  font-weight: 600 !important;
}
.nav-donate-btn:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold)) !important;
  transform: translateY(-1px);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.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); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--navy);
  border-top: 1px solid rgba(201,162,39,0.2);
  padding: 1rem 1.5rem 1.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: var(--transition);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--navy);
  background-image: linear-gradient(135deg, rgba(12,31,61,.87) 0%, rgba(17,41,82,.82) 50%, rgba(26,75,140,.78) 100%), url('../FrontHomePagePic.webp');
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: cover, contain;
  z-index: 0;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='rgba(201%2C162%2C39%2C0.1)' stroke-width='1'%3E%3Cpolygon points='50,8 60,35 88,27 68,50 88,73 60,65 50,92 40,65 12,73 32,50 12,27 40,35'/%3E%3Ccircle cx='50' cy='50' r='15'/%3E%3Crect x='33' y='33' width='34' height='34' transform='rotate(45 50 50)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100px 100px;
  opacity: 0.6;
  z-index: 1;
}
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,162,39,0.15) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 4rem 1.5rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201,162,39,0.15);
  border: 1px solid rgba(201,162,39,0.4);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero-arabic {
  font-family: 'Amiri', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--gold-light);
  direction: rtl;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero h1 span { color: var(--gold-light); }
.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 560px;
  margin: 0 auto;
}
.hero-stat {
  text-align: center;
}
.hero-stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.hero-divider {
  width: 1px;
  background: rgba(201,162,39,0.3);
  height: 40px;
  margin: auto;
}
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.scroll-indicator i { font-size: 1rem; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   ANNOUNCEMENT STRIP
   ============================================================ */
.announcement {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  color: var(--navy);
  padding: 0.65rem 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.announcement a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   HOME: WELCOME SECTION
   ============================================================ */
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.welcome-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.welcome-img-placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  border-radius: var(--radius-lg);
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.welcome-img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='rgba(201%2C162%2C39%2C0.15)' stroke-width='1'%3E%3Cpolygon points='40,6 47,28 70,22 55,41 70,58 47,52 40,74 33,52 10,58 25,41 10,22 33,28'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px;
}
.welcome-icon-badge {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: var(--shadow-gold);
  z-index: 1;
  position: relative;
}
.welcome-badge {
  position: absolute;
  bottom: -1px;
  right: -1px;
  background: var(--gold);
  color: var(--navy);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius) 0 var(--radius-lg) 0;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
}
.welcome-badge span {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.8;
}
.welcome-text .arabic {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.welcome-text h2 { margin-bottom: 0.75rem; }
.welcome-text p { color: var(--text-body); margin-bottom: 1rem; }
.welcome-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}
.welcome-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}
.welcome-feature i { color: var(--gold); font-size: 0.95rem; }

/* ============================================================
   HOME: PROGRAMS PREVIEW
   ============================================================ */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.program-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  padding: 2.25rem 2rem 2rem;
  transition: var(--transition);
  position: relative;
}
.program-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 13px;
  height: 13px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.program-card:hover { transform: translateY(-3px); border-color: var(--gold-light); }
.program-icon {
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}
.program-card h3 { margin-bottom: 0.6rem; font-size: 1.2rem; }
.program-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1.25rem; font-family: 'Source Serif 4', Georgia, serif; }
.program-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  margin-right: 0.4rem;
}
.tag-boys { background: rgba(26,75,140,0.1); color: var(--blue); }
.tag-girls { background: rgba(201,162,39,0.1); color: var(--gold-dark); }
.tag-part { background: rgba(12,31,61,0.08); color: var(--navy); }
.program-card .btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 1.25rem;
  transition: var(--transition);
}
.program-card .btn-link:hover { color: var(--gold); gap: 0.65rem; }

/* ============================================================
   QUOTE / VERSE SECTION
   ============================================================ */
.verse-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.verse-section .arabic {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.verse-section .translation {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  font-style: italic;
  max-width: 680px;
  margin: 0 auto 0.5rem;
}
.verse-ref {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ============================================================
   HOME: DONATE CTA
   ============================================================ */
.donate-cta {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), #e8b830);
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.donate-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='rgba(12%2C31%2C61%2C0.08)' stroke-width='1'%3E%3Cpolygon points='30,4 35,20 52,15 42,29 55,38 38,40 35,57 30,43 25,57 22,40 5,38 18,29 8,15 25,20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px;
}
.donate-cta h2 { color: var(--navy); position: relative; }
.donate-cta p { color: rgba(12,31,61,0.75); position: relative; max-width: 550px; margin: 0.75rem auto 2rem; }
.donate-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2.25rem;
  position: relative;
}
.donate-pill {
  background: rgba(12,31,61,0.1);
  border: 1px solid rgba(12,31,61,0.2);
  color: var(--navy);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 580px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.breadcrumb a { color: var(--gold); }
.breadcrumb i { font-size: 0.65rem; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.about-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--gold);
  transition: var(--transition);
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.about-card h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.about-card h3 i { color: var(--gold); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.value-card:hover { transform: translateY(-4px); }
.value-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--gold);
  margin: 0 auto 1.25rem;
}
.value-card h4 { margin-bottom: 0.5rem; }
.value-card p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--blue));
}
.timeline-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}
.timeline-item::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 1.25rem;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: var(--gold);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--gold);
  z-index: 1;
}
.timeline-content {
  background: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.timeline-item:nth-child(odd) .timeline-content { grid-column: 1; }
.timeline-item:nth-child(even) .timeline-content { grid-column: 2; }
.timeline-year {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

/* ============================================================
   PROGRAMS PAGE
   ============================================================ */
.programs-section h2 { margin-bottom: 0.5rem; }
.program-detail-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  transition: var(--transition);
}
.program-detail-card:hover { box-shadow: var(--shadow-lg); }
.program-detail-header {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}
.program-detail-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='rgba(201%2C162%2C39%2C0.12)' stroke-width='1'%3E%3Cpolygon points='30,4 35,20 52,15 42,29 55,38 38,40 35,57 30,43 25,57 22,40 5,38 18,29 8,15 25,20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px;
}
.program-detail-header .prog-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-gold);
  position: relative;
}
.program-detail-header .text { position: relative; }
.program-detail-header h3 { color: var(--white); margin-bottom: 0.25rem; }
.program-detail-header p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin: 0; }
.prog-tags { display: flex; gap: 0.5rem; margin-top: 0.65rem; }
.program-detail-body { padding: 2rem; }
.program-detail-body p { color: var(--text-body); margin-bottom: 1rem; }
.program-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.prog-highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-body);
}
.prog-highlight i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.maktab-section {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: var(--radius-lg);
  padding: 3rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.maktab-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='rgba(201%2C162%2C39%2C0.1)' stroke-width='1'%3E%3Cpolygon points='40,6 47,28 70,22 55,41 70,58 47,52 40,74 33,52 10,58 25,41 10,22 33,28'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px;
}
.maktab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  position: relative;
}
.maktab-info h2 { color: var(--white); }
.maktab-info .gold-line { margin-left: 0; }
.maktab-info p { color: rgba(255,255,255,0.8); }
.maktab-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}
.maktab-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.maktab-feature i {
  color: var(--gold);
  font-size: 1.25rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.maktab-feature h4 { color: var(--white); margin-bottom: 0.2rem; font-size: 0.95rem; }
.maktab-feature p { color: rgba(255,255,255,0.65); font-size: 0.85rem; margin: 0; }

/* Enrollment CTA */
.enroll-cta {
  text-align: center;
  background: var(--cream);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  margin-top: 3rem;
}
.enroll-cta h3 { margin-bottom: 0.5rem; }
.enroll-cta p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ============================================================
   FACULTY PAGE
   ============================================================ */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.faculty-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-align: center;
}
.faculty-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.faculty-photo {
  height: 200px;
  background: linear-gradient(135deg, var(--navy), var(--blue-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.faculty-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='rgba(201%2C162%2C39%2C0.12)' stroke-width='1'%3E%3Cpolygon points='30,4 35,20 52,15 42,29 55,38 38,40 35,57 30,43 25,57 22,40 5,38 18,29 8,15 25,20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px;
}
.faculty-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  box-shadow: var(--shadow-gold);
  position: relative;
  z-index: 1;
}
.faculty-card { border-top: 4px solid var(--gold); }
.faculty-info { padding: 2rem 1.5rem; }
.faculty-info h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.faculty-title {
  color: var(--gold-dark);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.75rem;
}
.faculty-dept {
  display: inline-block;
  background: rgba(26,75,140,0.08);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.85rem;
}
.faculty-info p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.faculty-leadership {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
.faculty-leadership .faculty-card { display: flex; flex-direction: column; }
.faculty-leadership .faculty-photo { height: 220px; }
.faculty-grid--four { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
a.faculty-card { display: block; text-decoration: none; color: inherit; }
.faculty-leadership a.faculty-card { display: flex; }
.faculty-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.faculty-more {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}
.faculty-more i { font-size: 0.75rem; margin-left: 0.3rem; transition: var(--transition); }
.faculty-card:hover .faculty-more i { transform: translateX(4px); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h3 { margin-bottom: 1.5rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item h4 { font-size: 0.9rem; margin-bottom: 0.2rem; color: var(--navy); }
.contact-item p, .contact-item a {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}
.contact-item a:hover { color: var(--gold); }
.prayer-times {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: var(--white);
  margin-top: 2rem;
}
.prayer-times h4 {
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.prayer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 0.88rem;
}
.prayer-row:last-child { border-bottom: none; }
.prayer-row span:first-child { color: rgba(255,255,255,0.75); }
.prayer-row span:last-child { color: var(--gold-light); font-weight: 600; }
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.contact-form-card h3 { margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-body);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A227' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }

/* ============================================================
   DONATE PAGE
   ============================================================ */
.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.donate-sidebar h3 { margin-bottom: 1rem; }
.donate-sidebar p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.donate-impact-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.donate-impact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='rgba(201%2C162%2C39%2C0.1)' stroke-width='1'%3E%3Cpolygon points='30,4 35,20 52,15 42,29 55,38 38,40 35,57 30,43 25,57 22,40 5,38 18,29 8,15 25,20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px;
}
.donate-impact-card h4 { color: var(--gold); margin-bottom: 0.75rem; position: relative; }
.impact-stat { position: relative; padding: 0.65rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.impact-stat:last-child { border-bottom: none; }
.impact-stat strong { color: var(--gold-light); }
.impact-stat span { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.donate-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.donate-form-card h2 { margin-bottom: 0.25rem; }
.donate-form-card .subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }
.donate-category-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}
.cat-option {
  position: relative;
}
.cat-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.cat-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.88rem;
  font-weight: 500;
}
.cat-label i { color: var(--text-muted); transition: var(--transition); font-size: 1rem; }
.cat-option input:checked + .cat-label {
  border-color: var(--gold);
  background: var(--gold-pale);
  color: var(--navy);
}
.cat-option input:checked + .cat-label i { color: var(--gold); }
.cat-label:hover { border-color: var(--gold); background: rgba(201,162,39,0.05); }
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.amt-option { position: relative; }
.amt-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.amt-label {
  display: block;
  text-align: center;
  padding: 0.75rem 0.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  transition: var(--transition);
}
.amt-option input:checked + .amt-label {
  border-color: var(--gold);
  background: var(--gold-pale);
  color: var(--gold-dark);
}
.amt-label:hover { border-color: var(--gold); background: rgba(201,162,39,0.05); }
.custom-amount { position: relative; margin-bottom: 1.75rem; }
.custom-amount .dollar-sign {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-weight: 600;
}
.custom-amount input { padding-left: 2rem; }
.recurring-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
}
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--gold); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.recurring-toggle .text h4 { font-size: 0.9rem; margin-bottom: 0.1rem; }
.recurring-toggle .text p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 1rem;
}
.secure-badge i { color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='rgba(201%2C162%2C39%2C0.05)' stroke-width='1'%3E%3Cpolygon points='40,6 47,28 70,22 55,41 70,58 47,52 40,74 33,52 10,58 25,41 10,22 33,28'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 3rem;
  position: relative;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo { margin-bottom: 1.25rem; }
.footer-brand h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}
.footer-brand .tagline {
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.8; margin-bottom: 1.25rem; }
.social-links { display: flex; gap: 0.65rem; }
.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-link:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid rgba(201,162,39,0.25);
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-col ul li a:hover { color: var(--gold); padding-left: 4px; }
.footer-col ul li a i { font-size: 0.7rem; color: var(--gold); }
.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}
.footer-contact-item i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.footer-contact-item a { color: rgba(255,255,255,0.65); }
.footer-contact-item a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(201,162,39,0.15);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  position: relative;
}
.footer-bottom span { color: var(--gold); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fade-up {
  animation: fadeInUp 0.6s ease forwards;
}
.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-divider { display: none; }
  .welcome-grid { gap: 2.5rem; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .donate-grid { grid-template-columns: 1fr; }
  .faculty-leadership { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --max-width: 100%; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section-pad { padding: 55px 0; }
  .welcome-grid { grid-template-columns: 1fr; }
  .welcome-img-placeholder { height: 280px; }
  .programs-grid { grid-template-columns: 1fr; }
  .faculty-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-mission { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .maktab-grid { grid-template-columns: 1fr; }
  .program-highlights { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .timeline::before { left: 20px; }
  .timeline-item { grid-template-columns: 1fr; padding-left: 50px; }
  .timeline-item::after { left: 20px; top: 1.5rem; }
  .timeline-item:nth-child(even) .timeline-content { grid-column: 1; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: .75rem; }
  .hero-bg { background-size: cover, cover; background-position: center, 60% center; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .amount-grid { grid-template-columns: repeat(3, 1fr); }
  .page-hero { padding: 120px 0 60px; }
  .hero-stat-num { font-size: 1.6rem; }
  .hero-stat-label { font-size: 0.62rem; letter-spacing: 0.03em; }
}

/* ============================================================
   FACULTY BIO INDIVIDUAL PAGES
   ============================================================ */
.faculty-bio-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}
.faculty-bio-sidebar {
  position: sticky;
  top: 100px;
}
.faculty-bio-photo-card {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
}
.faculty-bio-photo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='rgba(201%2C162%2C39%2C0.12)' stroke-width='1'%3E%3Cpolygon points='30,4 35,20 52,15 42,29 55,38 38,40 35,57 30,43 25,57 22,40 5,38 18,29 8,15 25,20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px;
}
.faculty-bio-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  box-shadow: var(--shadow-gold);
  margin: 2rem auto 1.25rem;
  position: relative;
  z-index: 1;
}
.faculty-bio-card-info {
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 1;
}
.faculty-bio-card-info h2 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
.faculty-bio-card-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.1rem;
  color: var(--gold-light);
  direction: rtl;
  margin-bottom: 0.75rem;
  line-height: 1.8;
}
.faculty-bio-card-title {
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.faculty-bio-dept-tag {
  display: inline-block;
  background: rgba(201,162,39,0.2);
  border: 1px solid rgba(201,162,39,0.4);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  letter-spacing: 0.06em;
}
.faculty-bio-content h2 { margin-bottom: 0.5rem; }
.faculty-bio-content .gold-line { margin-left: 0; }
.faculty-bio-text {
  color: var(--text-body);
  line-height: 1.9;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.bio-coming-soon {
  background: var(--cream);
  border: 2px dashed var(--gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin: 1.5rem 0;
}
.bio-coming-soon i { font-size: 2.5rem; color: var(--gold); margin-bottom: 1rem; display: block; }
.bio-coming-soon h3 { margin-bottom: 0.5rem; }
.bio-coming-soon p { color: var(--text-muted); margin: 0; }
.faculty-nav-links {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .faculty-bio-grid { grid-template-columns: 1fr; }
  .faculty-bio-sidebar { position: static; }
}

/* ============================================================
   ABOUT US DROPDOWN NAV (Darul Iftaa New York)
   ============================================================ */
.nav-dropdown { position: relative; }
.nav-caret { font-size: 0.6rem; margin-left: 0.3rem; transition: transform 0.2s; }
.nav-dropdown:hover .nav-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--navy); border: 1px solid rgba(201,162,39,0.25); border-radius: 10px;
  padding: 0.5rem; min-width: 190px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(4px);
}
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 0.55rem; padding: 0.6rem 0.9rem; border-radius: 6px;
  color: rgba(255,255,255,0.75); font-size: 0.85rem; white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: rgba(201,162,39,0.12); color: var(--gold-light); }
.nav-dropdown-menu i { color: var(--gold); font-size: 0.8rem; width: 14px; }
.mobile-sub-link { font-size: 0.85rem; opacity: 0.75; }

/* ============================================================
   LIBRARY PAGES (Research Papers, Magazine, Events, Reader)
   ============================================================ */
.lib-toolbar { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 2rem; }
.lib-search { flex: 1; min-width: 220px; max-width: 420px; padding: 0.7rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); font-size: 0.95rem; color: var(--text-body); }
.lib-search:focus { outline: 2px solid var(--gold-light); border-color: var(--gold); }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.lib-list { display: flex; flex-direction: column; gap: 1.25rem; }
.lib-heading { font-size: 1.6rem; margin: 0 0 1.25rem; }
.lib-heading.lib-past { margin-top: 3rem; color: var(--text-muted); }
.lib-card, .lib-event { display: flex; gap: 1.1rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem; box-shadow: var(--shadow); }
.lib-card-icon { font-size: 2rem; color: var(--gold); flex-shrink: 0; line-height: 1.2; }
.lib-card-body { flex: 1; min-width: 0; }
.lib-card h3, .lib-event h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.lib-card p, .lib-event p { font-size: 0.92rem; color: var(--text-body); margin: 0.4rem 0 0; }
.lib-meta { font-size: 0.82rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; }
.lib-meta i { color: var(--gold); margin-right: 0.3rem; }
.lib-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 1rem; }
.lib-btn { padding: 0.45rem 1rem; font-size: 0.85rem; }
.lib-date { flex-shrink: 0; width: 76px; text-align: center; background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 0.6rem 0.3rem; display: flex; flex-direction: column; justify-content: center; line-height: 1.15; }
.lib-date strong { font-family: 'Playfair Display', serif; font-size: 1.9rem; color: var(--gold-light); }
.lib-date span { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
.lib-date em { font-style: normal; font-size: 0.72rem; opacity: 0.7; }
.lib-empty { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
.lib-empty i { font-size: 2.5rem; color: var(--border); display: block; margin-bottom: 1rem; }

/* admin-only controls stay hidden unless signed in */
.lib-admin-only { display: none !important; }
body.lib-is-admin .lib-admin-only { display: inline-flex !important; gap: 0.75rem; align-items: center; }
body.lib-is-admin .lib-toolbar .btn.lib-admin-only { display: inline-flex !important; }
.lib-link { font-size: 0.82rem; font-weight: 600; color: var(--blue); }
.lib-link:hover { color: var(--gold-dark); }
.lib-link.lib-danger { color: #b3261e; }

#lib-admin-fab { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 900; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: rgba(255,255,255,0.7); box-shadow: var(--shadow); font-size: 0.95rem; }
#lib-admin-fab:hover, #lib-admin-fab.signed-in { color: var(--gold); }

.lib-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(12,31,61,0.65); display: flex; align-items: center; justify-content: center; padding: 1rem; overflow-y: auto; }
.lib-modal { position: relative; background: var(--white); border-radius: var(--radius-lg); padding: 2rem; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.lib-modal h3 { margin-bottom: 1.25rem; }
.lib-modal label { display: block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: #555; margin-bottom: 1rem; }
.lib-modal input, .lib-modal textarea { display: block; width: 100%; margin-top: 0.35rem; padding: 0.6rem 0.75rem; border: 1px solid var(--border); border-radius: 8px; font-size: 0.95rem; text-transform: none; letter-spacing: 0; font-weight: 400; background: var(--parchment); }
.lib-modal .btn { width: 100%; justify-content: center; }
.lib-x { position: absolute; top: 0.6rem; right: 0.9rem; font-size: 1.8rem; line-height: 1; color: var(--text-muted); }
.lib-err { color: #b3261e; font-size: 0.85rem; margin-bottom: 0.75rem; }
.lib-progress { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 1rem; }
.lib-progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.15s; }

.reader-wrap { max-width: 920px; margin: 0 auto; }
.reader-wrap h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0.75rem 0 0.4rem; }
.reader-body { margin-top: 2rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.reader-page { max-width: 100%; height: auto !important; background: var(--white); box-shadow: var(--shadow); border: 1px solid var(--border); }
.reader-frame { width: 100%; height: 85vh; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }

.coming-soon-banner { background: var(--gold-pale); border: 1px solid var(--gold-light); border-radius: var(--radius-lg); padding: 3rem 2rem; text-align: center; max-width: 640px; margin: 0 auto; }
.coming-soon-banner i { font-size: 2.5rem; color: var(--gold); margin-bottom: 1rem; }

@media (max-width: 480px) {
  .lib-grid { grid-template-columns: 1fr; }
  .lib-card, .lib-event { flex-direction: column; }
  .lib-date { width: 100%; flex-direction: row; gap: 0.6rem; justify-content: center; align-items: baseline; }
}

.lib-hint { font-size: 0.8rem; color: var(--text-muted); margin: -0.5rem 0 1rem; line-height: 1.5; }
.lib-hint code { background: var(--parchment); padding: 0 0.3rem; border-radius: 4px; }

/* Mixed English/Arabic fatwa text (see js/bidi.js): each line gets dir="auto",
   so English stays left and Arabic/Urdu lines align right. */
.ar-line { font-family: 'Amiri', serif; font-size: 1.2em; line-height: 2; }
.bidi-gap { height: 1em; }

/* paragraphs in question/answer text (one block per paragraph, see js/bidi.js) */
.fatwa-answer-body > div[dir], .fatwa-question-text > div[dir] { margin-bottom: 0.9rem; }
.fatwa-answer-body > div:last-child, .fatwa-question-text > div:last-child { margin-bottom: 0; }

/* ---- Research papers: admin editor ---- */
.lib-modal.lib-modal-wide { max-width: 780px; }
.paper-admin-bar { margin-bottom: 1.25rem; }
body.lib-is-admin .paper-admin-bar.lib-admin-only { display: block !important; }
.paper-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .paper-row { grid-template-columns: 1fr; } }
.paper-import { background: var(--parchment); border: 1px dashed var(--gold); border-radius: var(--radius); padding: 1rem; margin-bottom: 1.25rem; }
.paper-import label { margin-bottom: 0.5rem; }
.paper-import input { background: var(--white); }
.paper-field { margin-bottom: 1.25rem; }
.paper-label { display: block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: #555; margin-bottom: 0.35rem; }
.paper-toolbar { display: flex; gap: 0.35rem; margin-bottom: 0.35rem; }
.paper-toolbar button { width: 34px; height: 30px; border: 1px solid var(--border); border-radius: 6px; background: var(--white); color: var(--navy); font-size: 0.8rem; }
.paper-toolbar button:hover { border-color: var(--gold); color: var(--gold-dark); }
.paper-editor { min-height: 180px; max-height: 340px; overflow-y: auto; padding: 0.75rem; border: 1px solid var(--border); border-radius: 8px; background: var(--parchment); line-height: 1.8; }
.paper-editor:focus { outline: 2px solid var(--gold-light); }
.paper-editor h3 { font-size: 1.15rem; margin: 0.8rem 0 0.4rem; }
.fatwa-answer-body h3 { font-weight: 700; color: var(--navy); margin: 1.6rem 0 0.7rem; }

/* ============================================================
   IFTĀʾ COURSE SYLLABUS (collapsible periods)
   ============================================================ */
.syl-head { text-align: center; margin: 0 0 1.25rem; padding: 1.25rem 1rem; background: var(--parchment); border: 1px solid var(--border); border-radius: var(--radius-lg); font-family: 'Amiri', serif; }
.syl-title { font-size: 1.7rem; font-weight: 700; color: var(--navy); line-height: 1.5; }
.syl-school { font-size: 1.2rem; font-weight: 700; color: var(--gold-dark); }
.syl-supervisor { color: var(--text-muted); font-size: 1rem; }
.syllabus { display: flex; flex-direction: column; gap: 0.9rem; }
.syl-item { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); overflow: hidden; box-shadow: var(--shadow); transition: border-color 0.2s; }
.syl-item[open] { border-color: var(--gold); }
.syl-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; }
.syl-item summary::-webkit-details-marker { display: none; }
.syl-item summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.85rem; color: var(--gold); margin-left: 0.25rem; transition: transform 0.25s; }
.syl-item[open] summary::after { transform: rotate(180deg); color: var(--gold-light); }
.syl-item[open] summary { background: linear-gradient(135deg, var(--navy), var(--blue)); }
.syl-sum-en { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.35; }
.syl-sum-en strong { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--navy); }
.syl-sum-en small { color: var(--text-muted); font-size: 0.82rem; }
.syl-sum-ar { font-family: 'Amiri', serif; font-size: 1.25rem; color: var(--gold-dark); white-space: nowrap; }
.syl-item[open] .syl-sum-en strong { color: var(--white); }
.syl-item[open] .syl-sum-en small { color: rgba(255,255,255,0.7); }
.syl-item[open] .syl-sum-ar { color: var(--gold-light); }
.syl-badge { display: inline-block; font-family: 'Poppins', sans-serif; font-size: 0.72rem; padding: 0 0.6rem; border-radius: 999px; background: var(--gold); color: var(--white); vertical-align: middle; margin-right: 0.35rem; }
.syl-body { padding: 1.25rem; font-family: 'Amiri', serif; font-size: 1.1rem; line-height: 1.9; color: var(--text-dark); }
.syl-until { text-align: center; color: var(--gold-dark); font-weight: 700; margin-bottom: 0.75rem; }
.syl-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.syl-body table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--white); }
.syl-body th, .syl-body td { border: 1px solid var(--border); padding: 0.5rem 0.75rem; text-align: right; vertical-align: middle; }
.syl-body thead th { background: var(--navy); color: var(--gold-light); text-align: center; font-weight: 700; }
.syl-body tr.syl-sec th { background: var(--gold-pale); color: var(--gold-dark); text-align: center; letter-spacing: 0.04em; }
.syl-body td.subject { font-weight: 700; color: var(--navy); background: var(--parchment); width: 20%; }
.syl-body td.how { text-align: center; color: var(--text-muted); width: 17%; }
.syl-body td.dash { text-align: center; color: var(--text-muted); }
.syl-body tr.syl-exercise td { background: var(--gold-pale); font-weight: 700; color: var(--navy); }
.syl-body tr.syl-exercise td.how { color: var(--gold-dark); }
@media (max-width: 560px) {
  .syl-item summary { padding: 0.85rem 1rem; gap: 0.6rem; }
  .syl-sum-ar { font-size: 1.05rem; white-space: normal; text-align: right; }
}

/* Keyboard focus, site-wide */
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Donate page helpers */
.dn-icon { font-size: 1.2rem; }
.dn-note { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.dn-strong { font-size: 0.88rem; color: var(--navy); }
.dn-small { font-size: 0.88rem; }
.dn-row { display: flex; gap: 0.75rem; align-items: flex-start; }
.dn-center { text-align: center; }
.dn-gold-center { margin: 0 auto 1.25rem; }
.dn-mt { margin-top: 0.5rem; }

/* Page-level nav bar (js/subnav.js) */
.subnav {
  position: sticky;
  top: 72px;
  z-index: 900;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(12,31,61,0.06);
}
.subnav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a {
  flex: 0 0 auto;
  padding: 0.85rem 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}
.subnav a:hover { color: var(--navy); }
.subnav a.active { color: var(--navy); border-bottom-color: var(--gold); font-weight: 600; }
.subnav-target { scroll-margin-top: 130px; }

/* Donate page: online giving card */
.give-head { text-align: center; margin-bottom: 1.75rem; }
.give-head > i { font-size: 2rem; color: var(--gold); margin-bottom: 0.5rem; }
.give-head p { color: var(--text-muted); font-size: 0.9rem; max-width: 460px; margin: 0.4rem auto 0; }
.give-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.give-tile { display: flex; align-items: center; gap: 0.85rem; padding: 0.9rem 1rem; background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-lg); text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.give-tile:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.give-icon { font-size: 1.4rem; flex-shrink: 0; width: 2.4rem; height: 2.4rem; display: flex; align-items: center; justify-content: center; background: var(--white); border-radius: 50%; border: 1px solid var(--border); }
.give-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.give-text strong { font-size: 0.9rem; color: var(--navy); }
.give-text small { font-size: 0.76rem; color: var(--text-muted); line-height: 1.35; }
.give-arrow { font-size: 0.75rem; color: var(--gold); opacity: 0; transition: opacity 0.2s; }
.give-tile:hover .give-arrow { opacity: 1; }
.give-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
@media (max-width: 600px) { .give-grid { grid-template-columns: 1fr; } .donate-form-card { padding: 1.5rem; } }

/* Zakat calculator (zakat.html) */
.zk-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; align-items: start; }
.zk-form { display: flex; flex-direction: column; gap: 1.5rem; }
.zk-card, .zk-result { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 2rem; }
.zk-card h3 small { font-size: 0.8rem; font-weight: 400; color: var(--text-muted); }
.zk-card label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-bottom: 1rem; }
.zk-fields label:last-child { margin-bottom: 0; }
.zk-money { position: relative; display: block; margin-top: 0.35rem; }
.zk-money::before { content: '$'; position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.zk-money input { width: 100%; padding: 0.65rem 0.9rem 0.65rem 1.7rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--cream); font: inherit; font-weight: 400; color: var(--navy); }
.zk-money input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-pale); }
.zk-money input:disabled { opacity: 0.7; }
.zk-standard { margin: 1rem 0 0.75rem; }
.zk-status { font-size: 0.8rem; color: var(--text-muted); margin: 0.4rem 0 1rem; }
.zk-status.ok { color: #28794a; }
.zk-status.err { color: #b3261e; }
.zk-nisab-box { background: var(--gold-pale); border: 1px solid var(--gold-light); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; font-size: 0.9rem; }
.zk-nisab-box p { margin: 0.3rem 0 0; }
.zk-muted { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.zk-subtotal { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--border); text-align: right; font-size: 0.92rem; }
.zk-result { position: sticky; top: 130px; }
.zk-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.zk-row strong { color: var(--navy); }
.zk-calc { font-size: 0.8rem; color: var(--text-muted); text-align: right; margin: 0.4rem 0; }
.zk-verdict { margin: 1.25rem 0; padding: 1rem; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--border); font-weight: 600; color: var(--navy); text-align: center; }
.zk-verdict.due { background: var(--navy); border-color: var(--navy); color: var(--gold); }
.zk-give { display: block; text-align: center; margin-bottom: 1rem; }
@media (max-width: 900px) { .zk-layout { grid-template-columns: 1fr; } .zk-result { position: static; } }

/* Donate page: books needed box + popup */
.books-need { margin-top: 1.5rem; padding: 1.5rem; text-align: center; background: var(--gold-pale); border: 1px solid var(--gold-light); border-top: 3px solid var(--gold); border-radius: var(--radius-lg); }
.books-need-icon { font-size: 1.8rem; color: var(--gold-dark); margin-bottom: .4rem; }
.books-need h4 { margin: 0 0 .6rem; color: var(--navy); }
.books-need p { font-size: .9rem; margin: 0 0 1.1rem; }
.books-dialog { border: 0; border-radius: var(--radius-lg); padding: 2rem; width: min(560px, 92vw); max-height: 88vh; box-shadow: var(--shadow-lg); background: var(--white); font-family: 'Amiri', serif; }
.books-dialog::backdrop { background: rgba(12,31,61,.65); }
.books-close { position: absolute; top: .6rem; left: .9rem; background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--navy); }
.books-title { text-align: center; margin: 0; color: var(--navy); font-family: 'Amiri', serif; font-size: 1.7rem; }
.books-sub { text-align: center; margin: .2rem 0 1rem; color: var(--gold-dark); font-family: 'Poppins', sans-serif; font-size: .9rem; font-weight: 600; }
.books-list { margin: 0; padding: 0 1.6rem 0 0; font-size: 1.2rem; line-height: 1.9; }
.books-list li { padding: .1rem 0; border-bottom: 1px solid var(--gold-pale); }
.books-total { text-align: center; margin: 1rem 0 0; font-weight: 700; color: var(--navy); font-size: 1.15rem; }
