/* ═══════════════════════════════════════════════════════
   components.css — All Reusable Component Styles
   Jamia Ibne e Abbas — Design System
   Zero hardcoded colors — CSS variables only
   ═══════════════════════════════════════════════════════ */

/* ── 1. ANNOUNCEMENT BANNER ── */
.notice-banner {
  background: var(--gold);
  padding: 14px 0;
  text-align: center;
}
.notice-banner p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.notice-banner a {
  color: var(--green-dark);
  text-decoration: underline;
}

/* ── 2. NAVBAR ── */
.navbar-custom {
  background: rgba(13, 59, 39, 0.97);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  transition: var(--transition);
  border-bottom: 2px solid var(--gold);
}
.navbar-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-icon {
  width: 46px;
  height: 46px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--green-dark);
  flex-shrink: 0;
}
.brand-text-main {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}
.brand-text-sub {
  font-size: 0.7rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.navbar-custom .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 11px 14px !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 6px;
  transition: var(--transition-fast);
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--gold-light) !important;
  background: rgba(201,162,39,0.12);
}
.btn-fatwa-nav {
  background: var(--gold);
  color: var(--green-dark) !important;
  font-weight: 700 !important;
  border-radius: 20px !important;
  padding: 6px 18px !important;
}
.btn-fatwa-nav:hover {
  background: var(--gold-light);
  color: var(--green-dark) !important;
}
.navbar-custom .nav-link.btn-fatwa-nav {
  color: var(--green-dark) !important;
}
.navbar-toggler {
  border: none;
  color: var(--gold);
  font-size: 1.6rem;
}
.navbar-toggler:focus { box-shadow: none; outline: 3px solid var(--gold); outline-offset: 2px; }

/* ── 3. GEO BACKGROUND UTILITIES ── */
.geo-bg {
  background-color: var(--green-dark);
  background-image: var(--geo-dark);
}
/* ── 4. HERO SECTION ── */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 50%, #0a2e1e 100%);
}
.hero-geo-overlay {
  position: absolute;
  inset: 0;
  background-image: var(--geo-hero);
}
.hero-gold-orb {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,162,39,0.15);
  border: 1px solid rgba(201,162,39,0.4);
  color: var(--gold-light);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.hero-arabic {
  font-family: var(--font-arabic);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--gold);
  line-height: 1.3;
  margin-bottom: 10px;
}
.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-title span { color: var(--gold); }
.hero-desc {
  color: rgba(255,255,255,0.75);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 48px;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}
.hero-divider {
  width: 1px;
  background: rgba(255,255,255,0.15);
  align-self: stretch;
}
.hero-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  z-index: 2;
}
.hero-panel-title {
  color: var(--gold);
  font-family: var(--font-arabic);
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 20px;
}
.hero-panel-notice {
  background: rgba(201,162,39,0.1);
  border: 1px solid rgba(201,162,39,0.25);
  border-radius: 10px;
  padding: 14px;
  margin-top: 8px;
  text-align: center;
}
.hero-panel-notice-label {
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-panel-notice-text {
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  margin-top: 4px;
}

/* ── 4a. QUICK LINK CARDS ── */
.quick-link-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--white);
  transition: var(--transition-fast);
  margin-bottom: 12px;
}
.quick-link-card:last-of-type { margin-bottom: 0; }
.quick-link-card:hover {
  background: rgba(201,162,39,0.18);
  border-color: rgba(201,162,39,0.4);
  transform: translateX(4px);
  color: var(--white);
}
.qlc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(201,162,39,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
}
.qlc-title { font-weight: 700; font-size: 0.9rem; }
.qlc-sub { font-size: 0.75rem; color: rgba(255,255,255,0.62); }
.qlc-arrow { color: rgba(255,255,255,0.3); margin-left: auto; }

/* ── 5. BUTTONS ── */
.btn-primary-custom {
  background: var(--gold);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary-custom:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,162,39,0.35);
  color: var(--green-dark);
}
.btn-outline-custom {
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
}
.btn-outline-custom:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-submit {
  background: var(--green-main);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 36px;
  border-radius: 10px;
  border: none;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  cursor: pointer;
}
.btn-submit:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20,92,56,0.3);
  color: var(--white);
}

/* ── 6. SECTION HEADERS ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20,92,56,0.1);
  border: 1px solid rgba(20,92,56,0.2);
  color: var(--green-main);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.section-label.gold {
  background: rgba(201,162,39,0.12);
  border-color: rgba(201,162,39,0.3);
  color: var(--gold-accessible);
}
.section-label.white {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 600px;
}
.gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 12px 0 24px;
}

/* ── 7. ABOUT SECTION ── */
.about-section { padding: 100px 0; background: var(--cream); }
.about-img-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.about-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); }
.about-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--green-main), var(--green-dark));
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.about-img-placeholder-emoji { font-size: 4rem; opacity: 0.4; }
.about-img-placeholder-arabic {
  color: rgba(255,255,255,0.6);
  font-family: var(--font-arabic);
  font-size: 1.4rem;
}
.about-img-placeholder-text { color: rgba(255,255,255,0.4); font-size: 0.82rem; pointer-events: none; }
.about-badge-float {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold);
  color: var(--green-dark);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  box-shadow: 0 8px 32px rgba(201,162,39,0.4);
  text-align: center;
}
.about-badge-float-num { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.about-badge-float-text { font-size: 0.65rem; font-weight: 600; line-height: 1.2; }
.feature-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.feature-pill i { color: var(--gold); font-size: 1.1rem; flex-shrink: 0; }
.feature-pill span { font-size: 0.88rem; font-weight: 600; }

/* ── 7a. REGISTRATION BADGES ── */
.reg-section { padding: 80px 0; background: var(--cream-dark); }
.reg-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 32px 28px;
  text-align: center;
  height: 100%;
}
.reg-badge-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-dark), var(--green-main));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  margin: 0 auto 18px;
}
.reg-badge-icon.gold-bg {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--green-dark);
}
.reg-card h3 { color: var(--green-dark); font-size: 1.1rem; margin-bottom: 8px; }
.reg-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; margin: 0; }
.reg-number {
  display: inline-block;
  background: rgba(20,92,56,0.08);
  color: var(--green-main);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 12px;
  margin-top: 10px;
}

/* ── 8. PROGRAM CARDS ── */
.programs-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 100%);
}
.prog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}
.prog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(13,59,39,0.15);
}
.prog-card-header {
  padding: 32px 28px 24px;
  position: relative;
  overflow: hidden;
}
.prog-card-header.green {
  background: linear-gradient(135deg, var(--green-dark), var(--green-main));
}
.prog-card-header.gold {
  background: linear-gradient(135deg, var(--green-dark), var(--green-main));
  border-left: 4px solid var(--gold);
}
.prog-card-header.gold .prog-icon {
  background: rgba(201,162,39,0.25);
  color: var(--gold);
}
.prog-card-header-geo {
  position: absolute;
  right: -20px;
  top: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}
.prog-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 16px;
}
.prog-card-header h4 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.prog-card-header p { color: rgba(255,255,255,0.75); font-size: 0.88rem; }
.prog-card-body { padding: 24px 28px 28px; }
.prog-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 0.88rem;
}
.prog-feature:last-child { border-bottom: none; }
.prog-feature i { color: var(--green-main); margin-top: 2px; flex-shrink: 0; }

/* ── 8a. MINI PROG CARDS ── */
.mini-prog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  padding: 24px;
}
.mini-prog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(13,59,39,0.15);
}
.mini-prog-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(20,92,56,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--green-main);
  margin-bottom: 14px;
}
.mini-prog-icon.gold { background: rgba(201,162,39,0.1); color: var(--gold); }
.mini-prog-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.mini-prog-card p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ── 9. FATWA SECTION ── */
.fatwa-section {
  padding: 100px 0;
  background: var(--green-dark);
  position: relative;
  overflow: hidden;
}
.fatwa-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--geo-dark);
}
.fatwa-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  cursor: pointer;
}
.fatwa-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(201,162,39,0.4);
  transform: translateY(-3px);
}
.fatwa-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}
.fatwa-tag.ibadah   { background: rgba(46,160,94,0.2);   color: #5edc8a; }
.fatwa-tag.muamalat { background: rgba(201,162,39,0.2);  color: var(--gold-light); }
.fatwa-tag.nikah    { background: rgba(100,120,200,0.2); color: #a0b0ff; }
.fatwa-tag.taharah  { background: rgba(80,180,180,0.2);  color: #80e0e0; }
.fatwa-tag.zakat    { background: rgba(220,140,80,0.2);  color: #f0b27a; }
.fatwa-tag.aqeedah  { background: rgba(180,120,200,0.2); color: #d6a8e6; }
.fatwa-card h3 {
  color: var(--white);
  font-size: 1.0rem;
  margin-bottom: 10px;
  line-height: 1.4;
}
.fatwa-card p {
  color: rgba(255,255,255,0.60);
  font-size: 0.83rem;
  line-height: 1.65;
  margin-bottom: 14px;
}
.fatwa-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.fatwa-meta span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.70);
  display: flex;
  align-items: center;
  gap: 4px;
}
.fatwa-answered { color: #5edc8a !important; }
.fatwa-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.ftab {
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition-fast);
}
.ftab:hover,
.ftab.active {
  background: var(--gold);
  color: var(--green-dark);
  border-color: var(--gold);
}

/* ── 10. SUBMIT QUESTION SECTION ── */
.submit-section { padding: 100px 0; background: var(--cream); }
.submit-card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.submit-sidebar {
  background: linear-gradient(170deg, var(--green-dark), var(--green-main));
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.submit-sidebar h3 {
  color: var(--white);
  font-size: 1.9rem;
  margin-bottom: 12px;
}
.submit-sidebar p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.75;
}
.sidebar-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-info-item:last-child { border-bottom: none; }
.sii-icon { font-size: 1.3rem; color: var(--gold); margin-top: 2px; }
.sii-text h4 { color: var(--white); font-size: 0.85rem; margin-bottom: 2px; }
.sii-text p  { color: rgba(255,255,255,0.55); font-size: 0.78rem; margin: 0; }
.sidebar-quran-box {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
  margin-top: 28px;
}
.sidebar-quran-arabic {
  color: var(--gold);
  font-family: var(--font-arabic);
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 8px;
}
.sidebar-quran-translation {
  color: rgba(255,255,255,0.60);
  font-size: 0.75rem;
  text-align: center;
  font-style: italic;
}
.submit-form-wrap { padding: 48px 40px; }
.submit-form-wrap h3,
.submit-form-wrap h4 { font-size: 1.5rem; margin-bottom: 6px; }
.submit-form-intro { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 28px; }
.form-label-custom {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}
.form-label-optional { color: var(--text-muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.form-required { color: var(--gold); }
.form-control-custom {
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.92rem;
  transition: var(--transition-fast);
  background: var(--cream);
  width: 100%;
  font-family: var(--font-body);
}
.form-control-custom:focus {
  border-color: var(--green-main);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(20,92,56,0.1);
  outline: 2px solid var(--green-main);
  outline-offset: 0;
}
.form-select-custom {
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.92rem;
  background: var(--cream);
  width: 100%;
  transition: var(--transition-fast);
  appearance: auto;
  font-family: var(--font-body);
}
.form-select-custom:focus {
  border-color: var(--green-main);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(20,92,56,0.1);
  outline: 2px solid var(--green-main);
  outline-offset: 0;
}
.form-consent-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--text-muted);
  background: var(--cream);
  padding: 14px;
  border-radius: 10px;
}
.form-consent-wrap input[type="checkbox"] { margin-top: 2px; accent-color: var(--green-main); }
.privacy-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
}
.success-alert {
  background: rgba(46,160,94,0.15);
  border: 1px solid rgba(46,160,94,0.3);
  color: var(--green-light);
  border-radius: 10px;
  padding: 14px 18px;
  display: none;
  margin-top: 14px;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ── 11. ULAMA CARDS ── */
.ulama-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 100%);
}
.ulama-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  transition: var(--transition);
  text-align: center;
}
.ulama-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(13,59,39,0.13);
}
.ulama-avatar {
  width: 100%;
  padding-top: 30px;
  display: flex;
  justify-content: center;
}
.avatar-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-dark), var(--green-main));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  border: 4px solid var(--gold);
}
.avatar-circle.gold-grad { background: linear-gradient(135deg, #7a5a10, var(--gold)); }
.avatar-circle.blue-grad { background: linear-gradient(135deg, #1a4060, #2d6a9e); }
.avatar-circle.purple-grad { background: linear-gradient(135deg, #3a1a60, #6a2da0); }
.ulama-card-body { padding: 20px 24px 28px; }
.ulama-card-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.ulama-title {
  font-size: 0.8rem;
  color: var(--green-main);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}
.ulama-card-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.spec-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(20,92,56,0.1);
  color: var(--green-main);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  margin: 2px;
}

/* ── 12. TESTIMONIALS ── */
.testi-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--green-dark), #0a2e1e);
  position: relative;
  overflow: hidden;
}
.testi-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px;
}
.testi-text {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 20px;
}
.testi-name { color: var(--white); font-weight: 700; font-size: 0.88rem; }
.testi-role { color: rgba(255,255,255,0.70); font-size: 0.75rem; }
.stars { color: var(--gold); font-size: 1.2rem; margin-bottom: 14px; }

/* ── 13. CONTACT SECTION ── */
.contact-section { padding: 100px 0; background: var(--cream); }
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  height: 100%;
}
.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(20,92,56,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--green-main);
  margin-bottom: 16px;
}
.contact-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.contact-card-text { color: var(--text-muted); font-size: 0.88rem; line-height: 1.65; margin: 0; }
.contact-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 14px;
}
.contact-tag.green { background: rgba(20,92,56,0.1); color: var(--green-main); }
.contact-tag.whatsapp { background: rgba(7,94,84,0.1); color: #075e54; font-weight: 700; }
.contact-tag.gold { background: rgba(201,162,39,0.1); color: var(--gold-accessible); }
.map-placeholder {
  width: 100%;
  height: 280px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #e8f0ec, #d4e4db);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--green-main);
}
.map-placeholder-title { font-size: 1rem; color: var(--green-main); margin: 8px 0 4px; font-weight: 600; }
.map-placeholder-text { font-size: 0.8rem; color: var(--text-muted); }

/* ── 14. FOOTER ── */
.footer {
  background: var(--green-dark);
  padding: 70px 0 0;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--geo-dark);
}
.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  line-height: 1.7;
}
.footer-arabic {
  color: var(--gold);
  font-size: 1.3rem;
  margin: 16px 0;
}
.footer h3,
.footer .footer-heading {
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold-light); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-contact-item i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.footer-contact-item span,
.footer-contact-item a { color: rgba(255,255,255,0.6); font-size: 0.85rem; line-height: 1.5; }
.footer-contact-item a { text-decoration: none; transition: var(--transition-fast); }
.footer-contact-item a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  margin-top: 48px;
  text-align: center;
  position: relative;
}
.footer-bottom p { color: rgba(255,255,255,0.65); font-size: 0.8rem; margin: 0; }
.footer-bottom a { color: rgba(255,255,255,0.75); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-light); }

/* ── 14b. BeeCodeX credit block ── */
.bcx-block {
  display: flex;
  align-items: center;
  gap: 22px;
  text-decoration: none;
  background: linear-gradient(110deg, rgba(255,255,255,0.06) 0%, rgba(201,162,39,0.12) 100%);
  border: 1px solid rgba(201,162,39,0.35);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px 32px;
  margin: 8px 0 40px;
  transition: var(--transition);
}
.bcx-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
  border-color: var(--gold);
}
.bcx-bee {
  font-size: 2rem;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(201,162,39,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-7deg);
  transition: var(--transition);
}
.bcx-block:hover .bcx-bee { transform: rotate(6deg) scale(1.06); }
.bcx-text { flex: 1; min-width: 0; }
.bcx-line {
  font-family: var(--font-body), 'Nunito Fallback', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
  margin: 0;
}
.bcx-heart { color: var(--gold); display: inline-block; animation: bcxHeartbeat 1.4s ease-in-out infinite; }
@keyframes bcxHeartbeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.35); }
  24% { transform: scale(1); }
  36% { transform: scale(1.25); }
  48% { transform: scale(1); }
}
.bcx-name {
  font-family: var(--font-heading), 'Playfair Display Fallback', serif;
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
  margin: 2px 0;
  transition: var(--transition);
}
.bcx-block:hover .bcx-name {
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--white), var(--gold-light), var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: bcxShimmer 1.6s linear infinite;
}
@keyframes bcxShimmer {
  to { background-position: 200% center; }
}
.bcx-sub {
  font-family: var(--font-body), 'Nunito Fallback', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  margin: 0;
}
.bcx-arrow {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border: 1px solid rgba(201,162,39,0.5);
  border-radius: 50%;
  background: rgba(201,162,39,0.1);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}
.bcx-block:hover .bcx-arrow { transform: rotate(-45deg); background: var(--gold); color: var(--green-dark); }
@media (max-width: 575px) {
  .bcx-block { flex-direction: column; text-align: center; gap: 16px; padding: 26px 20px; }
  .bcx-arrow { display: none; }
}
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-link {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition-fast);
}
.social-link:hover { background: var(--gold); color: var(--green-dark); }

/* ── 15. MODAL ── */
.modal-content { border-radius: 18px; border: none; overflow: hidden; }
.modal-header { background: var(--green-dark); border: none; }
.modal-title { color: var(--white); font-family: var(--font-heading); }
.btn-close { filter: invert(1); }
.modal-body { padding: 30px; }
.modal-fatwa-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.modal-fatwa-tag {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
}
.modal-fatwa-tag.green { background: rgba(20,92,56,0.1); color: var(--green-main); }
.modal-fatwa-tag.gold  { background: rgba(201,162,39,0.1); color: var(--gold-dark); font-weight: 600; }
.modal-fatwa-tag.grey  { background: var(--cream-dark); color: var(--text-muted); }
.modal-question-box {
  background: var(--cream-dark);
  border-left: 4px solid var(--green-main);
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.modal-question-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--green-main);
  letter-spacing: 0.8px;
  font-weight: 700;
}
.modal-question-text { margin: 6px 0 0; font-size: 0.92rem; }
.modal-answer-box {
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-main);
}
.modal-answer-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--gold-dark);
  letter-spacing: 0.8px;
  font-weight: 700;
}
.modal-answer-final { color: var(--green-main); font-weight: 700; }

/* ── 16. SCROLL TO TOP ── */
#scrollTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--green-dark);
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(201,162,39,0.4);
  cursor: pointer;
  z-index: 9999;
  transition: var(--transition-fast);
}
#scrollTop:hover { background: var(--gold-light); transform: translateY(-2px); }
#scrollTop.show { display: flex; }

/* ── 17. ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeInUp 0.7s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.5s; }

.js-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js-fade.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js-fade { opacity: 1; transform: none; transition: none; }
  .fade-up { animation: none; }
}

/* ── LANG SWITCHER ── */
.lang-switcher { display: flex; gap: 4px; }
.lang-btn {
  padding: 10px 14px;
  min-height: 44px;
  min-width: 44px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}
.lang-btn:hover:not(:disabled),
.lang-btn.active {
  background: var(--gold);
  color: var(--green-dark);
  border-color: var(--gold);
}
.lang-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── 18. UTILITY CLASSES ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 12px;
  z-index: 99999;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

.hero-inner { padding-top: 80px; position: relative; z-index: 2; }
.sidebar-steps { margin-top: 28px; }
.section-desc-light { color: rgba(255,255,255,0.65); font-size: 0.95rem; line-height: 1.75; max-width: 560px; }

/* ── 19. INNER PAGE — PAGE HERO ── */
.page-hero {
  background: var(--green-dark);
  background-image: var(--geo-dark);
  padding: 140px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,59,39,0.97), rgba(20,92,56,0.88));
  z-index: 1;
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin: 0 0 12px;
}
.page-hero-title span { color: var(--gold); }
.page-hero-desc {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  max-width: 560px;
  margin: 0;
}
.bc-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex-wrap: wrap;
}
.bc-nav li { display: flex; align-items: center; gap: 8px; }
.bc-nav a {
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
  text-decoration: none;
  transition: var(--transition-fast);
}
.bc-nav a:hover { color: var(--gold-light); }
.bc-sep { color: rgba(255,255,255,0.25); font-size: 0.65rem; }
.bc-current { color: var(--gold-light); font-size: 0.8rem; font-weight: 600; }

/* ── 20. MISSION / VISION / VALUES CARDS ── */
.mvv-section { padding: 90px 0; background: var(--cream-dark); }
.mvv-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--gold);
  transition: var(--transition);
}
.mvv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.mvv-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-dark), var(--green-main));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 20px;
}
.mvv-card h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.mvv-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; margin: 0; }

/* ── 21. HISTORY TIMELINE ── */
.timeline-section { padding: 90px 0; background: var(--cream); }
.timeline-wrap {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 60px;
}
.timeline-wrap::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(201,162,39,0.1));
}
.t-item {
  position: relative;
  margin-bottom: 44px;
}
.t-item:last-child { margin-bottom: 0; }
.t-dot {
  position: absolute;
  left: -48px;
  top: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--green-dark);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(201,162,39,0.2);
}
.t-body {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--gold);
}
.t-year {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: 4px;
}
.t-body h4 { color: var(--green-dark); font-size: 1rem; margin-bottom: 6px; font-weight: 700; }
.t-body p { color: var(--text-muted); font-size: 0.86rem; line-height: 1.65; margin: 0; }

/* ── 22. ABOUT PAGE STATS BAR ── */
.about-stats-section {
  padding: 70px 0;
  background: var(--green-dark);
  background-image: var(--geo-dark);
  position: relative;
  overflow: hidden;
}
.about-stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13,59,39,0.82);
}
.about-stats-inner { position: relative; z-index: 2; }
.astat-item { text-align: center; padding: 20px; }
.astat-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.astat-label { color: rgba(255,255,255,0.65); font-size: 0.82rem; margin-top: 8px; }

/* ── 23. RESPONSIVE BREAKPOINTS ── */
@media (max-width: 991px) {
  .hero-section { min-height: auto; padding: 120px 0 80px; }
  .hero-gold-orb { display: none; }
  .about-badge-float { display: none; }
  .hero-stats { gap: 20px; }
  .submit-sidebar { padding: 40px 28px; }
  .submit-form-wrap { padding: 36px 28px; }
}

@media (max-width: 767px) {
  .section-title { font-size: 1.8rem; }
  .prog-card-header, .prog-card-body { padding: 22px 20px; }
  .submit-form-wrap { padding: 28px 20px; }
  .footer { padding: 50px 0 0; }
}

/* ═══════════════════════════════════════════════════════
   FATWA PORTAL EXTENSIONS
   Used by fatwa.html (landing) + fatwa-detail.html (single)
   Reuses existing tokens only — no new design variables
   ═══════════════════════════════════════════════════════ */

/* ── 24. FATWA SEARCH BAR (hero-level) ── */
.fatwa-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 20px;
  max-width: 620px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  margin-top: 28px;
}
.fatwa-search-icon { color: var(--green-main); font-size: 1.1rem; flex-shrink: 0; }
.fatwa-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body), 'Nunito Fallback', sans-serif;
  font-size: 0.95rem;
  color: var(--text-main);
  padding: 10px 4px;
  min-width: 0;
}
.fatwa-search-input::placeholder { color: var(--text-muted); }
.fatwa-search-btn {
  background: var(--green-main);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 24px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}
.fatwa-search-btn:hover { background: var(--green-mid); color: var(--white); }
.fatwa-search-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fatwa-search-tag {
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  transition: var(--transition-fast);
}
.fatwa-search-tag:hover { background: rgba(255,255,255,0.12); color: var(--white); }

/* ── 25. CATEGORY CARDS ── */
.cat-section { padding: 90px 0; background: var(--cream); }
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px 24px;
  height: 100%;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(201,162,39,0.5);
}
.cat-card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--green-dark), var(--green-main));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 18px;
}
.cat-card-title { font-size: 1.15rem; font-weight: 700; color: var(--green-dark); margin: 0 0 4px; }
.cat-card-sub { color: var(--text-muted); font-size: 0.85rem; margin: 0 0 16px; }
.cat-card-count {
  margin-top: auto;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gold-accessible);
}

/* ── 26. SCHOLAR BADGE (compact mufti card) ── */
.scholar-section { padding: 90px 0; background: var(--cream); }
.scholar-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 22px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gold);
  transition: var(--transition);
}
.scholar-badge:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
a.scholar-badge { text-decoration: none; }
.avatar-circle.avatar-lg { width: 140px; height: 140px; font-size: 2.6rem; }
.scholar-badge .avatar-circle { width: 60px; height: 60px; font-size: 1.1rem; border-width: 3px; flex-shrink: 0; }
.scholar-badge-info { min-width: 0; }
.scholar-badge-name { font-size: 1.05rem; font-weight: 700; color: var(--green-dark); margin: 0 0 2px; }
.scholar-badge-title { font-size: 0.82rem; color: var(--green-main); font-weight: 600; margin-bottom: 6px; }
.scholar-badge-meta { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.scholar-badge-meta i { color: var(--gold-accessible); }

/* ── 27. FATWA OF THE DAY (featured) ── */
.fotd-section { padding: 90px 0; background: var(--cream-dark); }
.fotd-card {
  background: linear-gradient(135deg, var(--green-dark), var(--green-main));
  background-image: var(--geo-dark);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(201,162,39,0.3);
}
.fotd-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.fotd-question {
  font-family: var(--font-heading), 'Playfair Display Fallback', serif;
  color: var(--white);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.3;
  margin: 0 0 16px;
}
.fotd-excerpt { color: rgba(255,255,255,0.75); font-size: 0.95rem; line-height: 1.8; max-width: 720px; margin: 0 0 24px; }
.fotd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.fotd-meta-item { color: rgba(255,255,255,0.7); font-size: 0.82rem; display: flex; align-items: center; gap: 6px; }
.fotd-meta-item i { color: var(--gold-light); }

/* ── 28. FATWA PORTAL FILTERS + LIST HELPERS ── */
.fatwa-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
.fatwa-filter-select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-body), 'Nunito Fallback', sans-serif;
  min-height: 40px;
  cursor: pointer;
}
.fatwa-filter-select option { color: var(--text-main); }
.fatwa-empty { display: none; text-align: center; color: rgba(255,255,255,0.6); padding: 50px 20px; font-size: 0.95rem; }
.fatwa-empty.is-visible { display: block; } /* server-rendered empty state (no JS toggle) */
.fatwa-empty i { font-size: 2rem; color: rgba(255,255,255,0.3); display: block; margin-bottom: 12px; }
a.fatwa-card { display: block; text-decoration: none; }
.fatwa-scholar { color: rgba(255,255,255,0.7); }

/* ── 29. FATWA DETAIL PAGE ── */
.fd-hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.fd-hero-meta span { color: rgba(255,255,255,0.75); font-size: 0.85rem; display: flex; align-items: center; gap: 6px; }
.fd-hero-meta i { color: var(--gold-light); }
.fatwa-detail-section { padding: 70px 0 90px; background: var(--cream); }
.fd-box-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 8px; }
.fd-question-box {
  background: var(--cream-dark);
  border-left: 4px solid var(--green-main);
  border-radius: var(--radius-sm);
  padding: 24px 26px;
  margin-bottom: 28px;
}
.fd-question-box .fd-box-label { color: var(--green-main); }
.fd-question-text { font-size: 1.05rem; line-height: 1.7; margin: 0; color: var(--text-main); }
.fd-answer-box .fd-box-label { color: var(--gold-accessible); }
.fd-answer-body { font-size: 1rem; line-height: 1.9; color: var(--text-main); }
.fd-answer-body p { margin-bottom: 16px; }
.fd-answer-arabic {
  font-family: var(--font-arabic);
  font-size: 1.4rem;
  text-align: center;
  color: var(--green-dark);
  margin: 28px 0;
  line-height: 2;
}
.fd-answer-final { color: var(--green-main); font-weight: 700; }
.fd-divider { height: 1px; background: var(--border-color); margin: 32px 0; border: none; }
.fd-share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.fd-share-label { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); margin-right: 4px; }
.fd-share-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background: var(--white);
  color: var(--green-main);
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition-fast);
}
.fd-share-btn:hover { background: var(--green-main); color: var(--white); border-color: var(--green-main); transform: translateY(-2px); }
.fd-sidebar-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.fd-sidebar-card h3 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--green-dark); margin: 0 0 16px; }
.fd-sidebar-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.fd-fact { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border-color); font-size: 0.85rem; }
.fd-fact:last-child { border-bottom: none; }
.fd-fact-key { color: var(--text-muted); }
.fd-fact-val { font-weight: 700; color: var(--green-dark); }
.fd-related-link {
  display: block;
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
}
.fd-related-link:last-child { border-bottom: none; }
.fd-related-link:hover { color: var(--green-main); }
.fd-related-link span { display: block; font-size: 0.72rem; color: var(--gold-accessible); font-weight: 700; text-transform: uppercase; margin-bottom: 3px; }

/* ── 29b. FATWA DETAIL: language toggle + PDF attachment ── */
.fatwa-langbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}
.fatwa-langbar-label { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.fatwa-langbar-label i { color: var(--gold-accessible); }
.fatwa-lang-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.flang-btn {
  padding: 8px 18px;
  min-height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background: var(--white);
  color: var(--green-main);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}
.flang-btn:hover { border-color: var(--gold); }
.flang-btn.active { background: var(--green-main); color: var(--white); border-color: var(--green-main); }
.fatwa-lang[hidden] { display: none; }
.fatwa-lang[lang="ur"], .fatwa-lang[lang="ar"] { font-family: var(--font-arabic); }
.fatwa-lang[lang="ur"] .fd-question-text, .fatwa-lang[lang="ar"] .fd-question-text { font-size: 1.25rem; line-height: 1.9; }
.fatwa-lang[lang="ur"] .fd-answer-body, .fatwa-lang[lang="ar"] .fd-answer-body { font-size: 1.2rem; line-height: 2.1; }
.fatwa-lang[dir="rtl"] .fd-question-box { border-left: none; border-right: 4px solid var(--green-main); }

.fatwa-pdf {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-left: 4px solid #c0392b;
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 8px 0 28px;
}
.fatwa-pdf-icon { font-size: 2.2rem; color: #c0392b; flex-shrink: 0; line-height: 1; }
.fatwa-pdf-info { flex: 1; min-width: 0; }
.fatwa-pdf-info h3 { font-size: 1rem; margin: 0 0 2px; color: var(--green-dark); }
.fatwa-pdf-info p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.fatwa-pdf-actions { display: flex; gap: 8px; flex-shrink: 0; }
.fatwa-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  min-height: 40px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-fast);
}
.fatwa-pdf-btn.view { background: rgba(20,92,56,0.1); color: var(--green-main); }
.fatwa-pdf-btn.download { background: var(--green-main); color: var(--white); }
.fatwa-pdf-btn:hover { transform: translateY(-2px); }
@media (max-width: 575px) {
  .fatwa-pdf { flex-direction: column; text-align: center; }
  .fatwa-pdf-actions { width: 100%; justify-content: center; }
}

/* ── 30. FATWA PORTAL RESPONSIVE ── */
@media (max-width: 767px) {
  .fatwa-search { padding: 5px 5px 5px 14px; }
  .fatwa-search-btn { padding: 11px 16px; }
  .fotd-card { padding: 32px 22px; }
}
