﻿/* ═══════════════════════════════════════════════════════════
   Dar-ul-Hassan — Static Website Stylesheet
   Pure CSS — no framework required
   ═══════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties (Brand Colors) ─────────────────── */
:root {
  --emerald-50:  #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;
  --dark-green:  #022c22;
  --gold:        #d4af37;
  --gold-light:  #f0d060;
  --gold-dark:   #a07820;
  --gold-bg:     rgba(212,175,55,0.12);
  --slate-400:   #94a3b8;
  --slate-500:   #64748b;
  --slate-600:   #475569;
  --slate-700:   #334155;
  --slate-800:   #1e293b;
  --white:       #ffffff;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.1);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl:   0 20px 60px rgba(0,0,0,0.15);
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --radius-2xl:  2rem;
  --radius-full: 9999px;
  --transition:  0.3s ease;
  --font-heading:'Cormorant Garamond', Georgia, serif;
  --font-body:   'Inter', system-ui, sans-serif;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--slate-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,h2,h3,h4 { font-family: var(--font-heading); line-height: 1.2; }

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

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

ul { list-style: none; }

button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--emerald-600); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--emerald-700); }

/* Focus */
*:focus-visible {
  outline: 2px solid var(--emerald-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

@media (min-width: 1024px) {
  .section { padding: 8rem 0; }
}

/* ── Background Patterns ─────────────────────────────────── */
.pattern-bg {
  background-color: var(--emerald-900);
  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='%23065f46' stroke-width='1'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z'/%3E%3Cpath d='M40 10 L70 40 L40 70 L10 40 Z'/%3E%3Cpath d='M40 20 L60 40 L40 60 L20 40 Z'/%3E%3C/g%3E%3C/svg%3E");
}

.pattern-light {
  background-color: #f0fdf4;
  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='%23a7f3d0' stroke-width='0.5'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z'/%3E%3Cpath d='M30 8 L52 30 L30 52 L8 30 Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ── Gradient Utilities ───────────────────────────────────── */
.bg-emerald-gradient {
  background: linear-gradient(135deg, var(--emerald-800) 0%, var(--emerald-700) 50%, var(--emerald-600) 100%);
}

.gold-text {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  padding: 0.625rem 1.375rem;
  background: linear-gradient(135deg, var(--emerald-800), var(--emerald-600));
  color: var(--white);
  font-size: 0.875rem;
  box-shadow: 0 4px 14px rgba(5,150,105,0.3);
}
.btn-primary:hover { opacity: 0.9; transform: scale(1.04); }

.btn-gold {
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--emerald-900);
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(212,175,55,0.3);
}
.btn-gold:hover { transform: scale(1.04); box-shadow: 0 12px 32px rgba(212,175,55,0.4); }

.btn-ghost {
  padding: 0.875rem 2rem;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 1rem;
  border-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.5); }

.btn-lg { padding: 1rem 2.25rem; font-size: 1.0625rem; }

.btn-green-full {
  display: block;
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, var(--emerald-800), var(--emerald-600));
  color: var(--white);
  font-size: 0.9375rem;
  border-radius: var(--radius-lg);
  text-align: center;
  font-weight: 600;
}
.btn-green-full:hover { opacity: 0.9; }

.btn-gold-full {
  display: block;
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, #b45309, #d97706);
  color: var(--white);
  font-size: 0.9375rem;
  border-radius: var(--radius-lg);
  text-align: center;
  font-weight: 600;
}
.btn-gold-full:hover { opacity: 0.9; }

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--emerald-800), var(--emerald-600));
  color: var(--white);
  font-size: 1.0625rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(5,150,105,0.3);
  transition: all var(--transition);
}
.btn-submit:hover { opacity: 0.92; transform: scaleX(1.01); }
.btn-submit:active { transform: scaleX(0.99); }
.btn-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.btn-outline-green {
  padding: 0.625rem 1.5rem;
  color: var(--emerald-600);
  border: 2px solid var(--emerald-200);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
}
.btn-outline-green:hover { background: var(--emerald-50); }

/* ── Card Hover ───────────────────────────────────────────── */
.card-hover {
  transition: transform var(--transition), box-shadow var(--transition);
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(4,120,87,0.15);
}

/* ── Section Header ──────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 4rem; }

.section-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: var(--emerald-100);
  color: var(--emerald-700);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-badge-gold {
  background: rgba(212,175,55,0.15);
  color: #fbbf24;
  border: 1px solid rgba(212,175,55,0.3);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--emerald-900);
  margin-bottom: 1rem;
}

.section-title-white { color: var(--white); }

.section-sub {
  max-width: 38rem;
  margin: 0 auto;
  color: var(--slate-500);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.section-sub-light { color: rgba(209,250,229,0.8); }

.underline-gold {
  position: relative;
  display: inline-block;
}
.underline-gold::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  border-radius: 2px;
}

/* ═══ NAVBAR ════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  border-bottom: 1px solid var(--emerald-100);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 1024px) {
  .navbar-inner { height: 5rem; }
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.logo-icon {
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-800), var(--emerald-600));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}
.logo:hover .logo-icon { transform: scale(1.08); }

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}
.navbar.scrolled .logo-name { color: var(--emerald-900); }

/* Desktop Nav */
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a:not(.btn) {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  transition: color var(--transition);
}
.nav-links a:not(.btn):hover { color: var(--emerald-400); }
.navbar.scrolled .nav-links a:not(.btn) { color: var(--slate-700); }
.navbar.scrolled .nav-links a:not(.btn):hover { color: var(--emerald-600); }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}
@media (min-width: 768px) { .hamburger { display: none; } }

.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--slate-700); }

.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 Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.5rem 1.5rem;
  background: var(--white);
  border-top: 1px solid var(--emerald-100);
  box-shadow: var(--shadow-lg);
}

.mobile-menu.open { display: flex; }

.mobile-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--slate-700);
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all var(--transition);
}
.mobile-link:hover { color: var(--emerald-600); background: var(--emerald-50); }

.mobile-cta {
  margin-top: 0.5rem;
  text-align: center;
  border-radius: var(--radius-full) !important;
}

/* ═══ HERO ═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 1.5rem 4rem;
}

.hero-pattern {
  position: absolute; inset: 0;
  background-color: var(--emerald-900);
  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='%23065f46' stroke-width='1'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z'/%3E%3Cpath d='M40 10 L70 40 L40 70 L10 40 Z'/%3E%3Cpath d='M40 20 L60 40 L40 60 L20 40 Z'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(5,150,105,0.35) 0%, transparent 70%);
}

.gold-line {
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-light), var(--gold), var(--gold-light), transparent);
}

.mosque-wrap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 14rem;
  opacity: 0.22;
  pointer-events: none;
}
@media (min-width: 640px) { .mosque-wrap { height: 18rem; } }
@media (min-width: 1024px) { .mosque-wrap { height: 22rem; } }
.mosque-wrap svg { width: 100%; height: 100%; }

/* Decorative circles */
.deco-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.deco-circle-1 {
  top: 5rem; left: 2.5rem;
  width: 16rem; height: 16rem;
  border: 1px solid rgba(6,95,70,0.3);
  opacity: 0.4;
}
.deco-circle-2 {
  top: 8rem; left: 5rem;
  width: 10rem; height: 10rem;
  border: 1px solid rgba(212,175,55,0.2);
  opacity: 0.3;
}
.deco-circle-3 {
  bottom: 8rem; right: 2.5rem;
  width: 20rem; height: 20rem;
  border: 1px solid rgba(6,95,70,0.2);
  opacity: 0.3;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 64rem;
  width: 100%;
}

.bismillah-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.3);
  color: rgba(253,224,71,0.9);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.375rem);
  color: rgba(209,250,229,0.9);
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-sub strong { color: #fde68a; font-weight: 600; }

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  color: rgba(167,243,208,0.8);
  font-size: 0.875rem;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 1.5rem;
  transition: color var(--transition);
  animation: bounce 1.5s ease-in-out infinite;
}
.scroll-indicator:hover { color: rgba(255,255,255,0.8); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ═══ ABOUT ══════════════════════════════════════════════════ */
.about-section { position: relative; background: var(--white); }

.about-bg-accent {
  position: absolute; top: 0; right: 0;
  width: 33%; height: 100%;
  background: linear-gradient(to left, var(--emerald-50), transparent);
  pointer-events: none;
}

.about-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-quote-block {
  border-left: 4px solid var(--gold);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.about-quote-block p { font-size: 1.0625rem; color: var(--slate-700); line-height: 1.7; }

.about-quote-block strong {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--emerald-800);
}

.body-text {
  color: var(--slate-600);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.em-green { color: var(--emerald-700); font-weight: 600; }

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.5rem;
}

.pillar-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background: var(--emerald-50);
  color: var(--emerald-700);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid var(--emerald-100);
  transition: background var(--transition);
}
.pillar-tag:hover { background: var(--emerald-100); }

/* About Card */
.about-card-wrap {
  position: relative;
}

.about-card-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--emerald-800), var(--emerald-600));
  border-radius: var(--radius-2xl);
  transform: rotate(3deg);
  opacity: 0.1;
}

.about-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--emerald-100);
  padding: 2.5rem;
}

.arabic-icon-wrap {
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-800), var(--emerald-600));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  margin: 0 auto 0.75rem;
  box-shadow: var(--shadow-md);
}

.arabic-word {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--emerald-900);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.375rem;
}

.arabic-translation {
  font-size: 0.8125rem;
  color: var(--slate-500);
  text-align: center;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.gold-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.gold-divider::before, .gold-divider::after {
  content: '';
  flex: 1;
  height: 1px;
}
.gold-divider::before { background: linear-gradient(to right, transparent, var(--gold-light)); }
.gold-divider::after  { background: linear-gradient(to left, transparent, var(--gold-light)); }

.gold-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-item { text-align: center; }

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--emerald-700);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.6875rem;
  color: var(--slate-500);
  line-height: 1.3;
  margin-top: 0.25rem;
}

.online-badge {
  background: var(--emerald-50);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--emerald-700);
  font-weight: 500;
}

/* ═══ COURSES ════════════════════════════════════════════════ */
.courses-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
}

.course-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  border: 1px solid #f1f5f9;
  overflow: hidden;
}

.course-card-top {
  height: 6px;
}

.course-top-green {
  background: linear-gradient(90deg, var(--emerald-800), var(--emerald-600));
}

.course-top-gold {
  background: linear-gradient(90deg, #b45309, #d97706);
}

.course-card-body { padding: 2.5rem; }

.course-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.course-icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: 0.875rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.375rem;
  box-shadow: var(--shadow-md);
}

.course-icon-green {
  background: linear-gradient(135deg, var(--emerald-800), var(--emerald-600));
}

.course-icon-gold {
  background: linear-gradient(135deg, #b45309, #d97706);
}

.course-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: var(--gold-light);
  color: #78350f;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.course-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--emerald-900);
  margin-bottom: 0.75rem;
}

.course-desc {
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.course-highlights {
  margin-bottom: 1.5rem;
  space-y: 0.5rem;
}

.course-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 0.625rem;
  color: var(--slate-600);
  font-size: 0.875rem;
  line-height: 1.5;
}

.course-highlights li::before {
  content: '';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  background: var(--emerald-100);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.125rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 70%;
  background-repeat: no-repeat;
  background-position: center;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background: #f8fafc;
  color: var(--slate-500);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
}

.courses-footer {
  text-align: center;
  margin-top: 3rem;
  color: var(--slate-500);
  font-size: 0.9375rem;
}

.link-green {
  color: var(--emerald-600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.link-green:hover { color: var(--emerald-700); }

/* ═══ WHY CHOOSE ═════════════════════════════════════════════ */
.why-section {
  position: relative;
  background: var(--white);
}

.why-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(209,250,229,0.5), rgba(254,252,232,0.25), transparent 70%);
  pointer-events: none;
}

.why-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px)  { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }

.why-card {
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--emerald-100);
  cursor: default;
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.6;
}

.why-icon {
  width: 3rem; height: 3rem;
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  transition: transform var(--transition);
}
.why-card:hover .why-icon { transform: scale(1.1); }

.why-icon-emerald { background: var(--emerald-100); color: var(--emerald-600); }
.why-icon-blue    { background: #dbeafe; color: #2563eb; }
.why-icon-purple  { background: #ede9fe; color: #7c3aed; }
.why-icon-yellow  { background: #fef3c7; color: #d97706; }
.why-icon-green   { background: #dcfce7; color: #16a34a; }

/* Hadith Banner */
.hadith-banner {
  position: relative;
  margin-top: 4rem;
  background: linear-gradient(135deg, var(--emerald-800), var(--emerald-700), var(--emerald-600));
  border-radius: var(--radius-2xl);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hadith-pattern {
  position: absolute; inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='white' stroke-width='1'%3E%3Cpath d='M20 0 L40 20 L20 40 L0 20 Z'/%3E%3C/g%3E%3C/svg%3E");
}

.hadith-content { position: relative; z-index: 1; }

.hadith-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.hadith-text {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  font-style: normal;
}

.hadith-source {
  font-size: 1rem;
  color: rgba(167,243,208,0.9);
  font-style: normal;
}

/* ═══ REGISTRATION FORM ══════════════════════════════════════ */
.register-section { position: relative; }

.register-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(5,150,105,0.3) 0%, transparent 60%);
  pointer-events: none;
}

.form-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 80px rgba(0,0,0,0.25);
  overflow: hidden;
  max-width: 52rem;
  margin: 0 auto;
}

.form-gold-bar {
  height: 5px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
}

/* Form */
.reg-form {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .reg-form { padding: 2.5rem 3rem 3rem; }
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.field-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.field-wrap > label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
}

.req { color: #f87171; margin-left: 2px; }

.optional {
  font-weight: 400;
  color: var(--slate-400);
  font-size: 0.75rem;
  margin-left: 4px;
}

/* Input styles */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap-textarea { align-items: flex-start; }

.input-icon {
  position: absolute;
  left: 0.875rem;
  color: var(--slate-400);
  font-size: 0.875rem;
  pointer-events: none;
  z-index: 1;
}

.input-icon-top { top: 0.875rem; }

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.75rem;
  background: var(--white);
  color: var(--slate-800);
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.input-wrap input,
.input-wrap textarea {
  padding-left: 2.5rem;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--emerald-400);
  box-shadow: 0 0 0 3px rgba(52,211,153,0.15);
}

input.error, select.error, textarea.error {
  border-color: #fca5a5;
}

input::placeholder, textarea::placeholder { color: var(--slate-400); }

textarea { resize: none; }

/* Select wrap */
.select-wrap {
  position: relative;
}

.select-wrap select { padding-right: 2.5rem; cursor: pointer; }

.select-arrow {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-400);
  font-size: 0.75rem;
  pointer-events: none;
}

/* Field error */
.field-error {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: #ef4444;
  min-height: 1rem;
}

/* Consent */
.consent-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.consent-checkbox {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  accent-color: var(--emerald-600);
  flex-shrink: 0;
  cursor: pointer;
}

.consent-text {
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.6;
}

.consent-text strong { color: var(--slate-800); }

/* Spinner */
.spinner { display: inline-flex; align-items: center; gap: 0.5rem; }

/* Form Privacy */
.form-privacy {
  text-align: center;
  font-size: 0.75rem;
  color: var(--slate-400);
}

/* Error Banner */
.error-banner {
  margin: 0 2.5rem;
  padding: 0.875rem 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.75rem;
  color: #b91c1c;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

/* Success State */
.success-state {
  padding: 4rem 2rem;
  text-align: center;
}

.success-icon {
  font-size: 4rem;
  color: var(--emerald-500);
  margin-bottom: 1.5rem;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.success-arabic {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--emerald-900);
  margin-bottom: 0.375rem;
}

.success-transliteration {
  font-size: 0.875rem;
  color: var(--slate-500);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.success-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--emerald-800);
  margin-bottom: 0.75rem;
}

.success-msg {
  color: var(--slate-600);
  max-width: 30rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* ═══ FOOTER ═════════════════════════════════════════════════ */
.site-footer {
  background: var(--dark-green);
  color: var(--white);
}

.footer-gold-line {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-light), var(--gold), var(--gold-light), transparent);
}

.footer-inner {
  display: grid;
  gap: 2.5rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 640px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.footer-logo .logo-icon {
  width: 2.5rem; height: 2.5rem;
  background: linear-gradient(135deg, var(--emerald-800), var(--emerald-600));
  box-shadow: 0 4px 14px rgba(5,150,105,0.4);
}

.footer-logo-name {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
}

.footer-logo-sub {
  font-size: 0.6875rem;
  color: var(--emerald-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-desc {
  font-size: 0.875rem;
  color: rgba(209,250,229,0.65);
  line-height: 1.7;
  max-width: 22rem;
  margin-bottom: 1rem;
}

.footer-arabic {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: rgba(212,175,55,0.65);
}

.footer-arabic-sub {
  font-size: 0.75rem;
  color: rgba(52,211,153,0.5);
  font-style: italic;
  margin-top: 0.125rem;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-links li { margin-bottom: 0.75rem; }

.footer-links a {
  font-size: 0.875rem;
  color: rgba(209,250,229,0.65);
  transition: all var(--transition);
  display: inline-block;
}
.footer-links a:hover { color: var(--gold-light); transform: translateX(3px); }

.footer-contacts { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: rgba(209,250,229,0.65);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-contact-item:hover { color: var(--gold-light); }

.contact-icon {
  width: 2rem; height: 2rem;
  border-radius: 0.5rem;
  background: rgba(6,95,70,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
  transition: background var(--transition);
}
.footer-contact-item:hover .contact-icon { background: rgba(6,95,70,0.8); }

.footer-cta {
  font-size: 0.875rem !important;
  padding: 0.625rem 1.25rem !important;
  font-weight: 700;
  color: var(--emerald-900) !important;
  border-radius: var(--radius-full) !important;
  display: inline-flex !important;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(6,95,70,0.4);
  padding: 1.25rem 0;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(52,211,153,0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: rgba(52,211,153,0.5);
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: var(--gold-light); }

/* ═══ SCROLL ANIMATIONS ══════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Initial load animation */
.animate-on-load {
  animation: heroEntrance 1s ease-out forwards;
}

@keyframes heroEntrance {
  from { opacity: 0; transform: translateY(2rem); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══ RESPONSIVE TWEAKS ══════════════════════════════════════ */
@media (max-width: 639px) {
  .hero-cta-row { flex-direction: column; align-items: center; }
  .btn-gold, .btn-ghost { width: 100%; max-width: 18rem; }
  .reg-form { padding: 1.5rem; }
  .about-card { padding: 1.75rem; }
}
