/* ============================================================
   Al-Rohan Islamic Academy — Custom Stylesheet
   Complements Tailwind CSS
   Author: Al-Rohan Frontend Team
   Version: 1.0.0
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
:root {
  /* Brand Colors */
  --primary: #1a4731;
  --primary-dark: #0f2d1f;
  --primary-light: #2d6a4f;
  --secondary: #52b788;
  --gold: #c9a96e;
  --gold-dark: #b8860b;
  --beige: #faf7f0;
  --beige-dark: #f0ebe0;
  --cream: #f5f0e8;

  /* Text Colors */
  --text-dark: #1a1a2e;
  --text-medium: #4a5568;
  --text-light: #718096;
  --white: #ffffff;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(26, 71, 49, 0.08);
  --shadow-md: 0 8px 24px rgba(26, 71, 49, 0.12);
  --shadow-lg: 0 16px 48px rgba(26, 71, 49, 0.16);
  --shadow-xl: 0 24px 64px rgba(26, 71, 49, 0.22);

  /* Borders */
  --border-radius: 12px;
  --border-radius-sm: 6px;
  --border-radius-lg: 20px;
  --border-radius-full: 9999px;

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s ease;

  /* Spacing */
  --section-padding: 6rem 0;
  --container-max: 1280px;

  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-toast: 400;
}

/* ============================================================
   2. BASE & RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--beige);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: var(--border-radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Selection */
::selection {
  background-color: var(--secondary);
  color: var(--white);
}

/* ============================================================
   3. TYPOGRAPHY — Google Fonts Import
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@300;400;500;600;700;800&family=Amiri:ital,wght@0,400;0,700;1,400;1,700&display=swap');

.heading-xl {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.heading-lg {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text-dark);
}

.heading-md {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-dark);
}

.heading-sm {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-dark);
}

.body-lg {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-medium);
}

.body-sm {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-light);
}

/* Arabic / Quranic Text */
.arabic-text {
  font-family: 'Amiri', 'Traditional Arabic', serif;
  direction: rtl;
  text-align: right;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 2;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.arabic-text.gold {
  color: var(--gold-dark);
}

.arabic-text.large {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.arabic-caption {
  font-family: 'Amiri', serif;
  direction: rtl;
  text-align: center;
  font-size: 1rem;
  color: var(--text-light);
  font-style: italic;
}

/* ============================================================
   4. ISLAMIC GEOMETRIC PATTERNS
   ============================================================ */

/* Main Islamic geometric pattern using inline SVG data URI */
.islamic-pattern {
  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='%231a4731' stroke-width='0.6' opacity='0.18'%3E%3Cpolygon points='40,4 52,16 68,16 68,32 52,44 40,36 28,44 12,32 12,16 28,16'/%3E%3Cpolygon points='40,12 50,20 62,20 62,30 50,40 40,32 30,40 18,30 18,20 30,20'/%3E%3Cline x1='40' y1='4' x2='40' y2='76'/%3E%3Cline x1='4' y1='40' x2='76' y2='40'/%3E%3Cline x1='12' y1='12' x2='68' y2='68'/%3E%3Cline x1='68' y1='12' x2='12' y2='68'/%3E%3Ccircle cx='40' cy='40' r='8'/%3E%3Ccircle cx='40' cy='40' r='16'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  background-repeat: repeat;
}

.islamic-pattern-gold {
  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='%23c9a96e' stroke-width='0.6' opacity='0.25'%3E%3Cpolygon points='40,4 52,16 68,16 68,32 52,44 40,36 28,44 12,32 12,16 28,16'/%3E%3Cpolygon points='40,12 50,20 62,20 62,30 50,40 40,32 30,40 18,30 18,20 30,20'/%3E%3Cline x1='40' y1='4' x2='40' y2='76'/%3E%3Cline x1='4' y1='40' x2='76' y2='40'/%3E%3Cline x1='12' y1='12' x2='68' y2='68'/%3E%3Cline x1='68' y1='12' x2='12' y2='68'/%3E%3Ccircle cx='40' cy='40' r='8'/%3E%3Ccircle cx='40' cy='40' r='16'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  background-repeat: repeat;
}

/* Pattern Overlay */
.pattern-overlay {
  position: relative;
}

.pattern-overlay::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='%23ffffff' stroke-width='0.5' opacity='0.08'%3E%3Cpolygon points='30,3 39,12 51,12 51,24 39,33 30,27 21,33 9,24 9,12 21,12'/%3E%3Ccircle cx='30' cy='30' r='6'/%3E%3Cline x1='30' y1='3' x2='30' y2='57'/%3E%3Cline x1='3' y1='30' x2='57' y2='30'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.pattern-overlay > * {
  position: relative;
  z-index: 1;
}

/* Geometric Border */
.geometric-border {
  position: relative;
  padding: 2rem;
}

.geometric-border::before,
.geometric-border::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: var(--gold);
  border-style: solid;
}

.geometric-border::before {
  top: 0;
  left: 0;
  border-width: 3px 0 0 3px;
}

.geometric-border::after {
  bottom: 0;
  right: 0;
  border-width: 0 3px 3px 0;
}

/* Bismillah Divider */
.bismillah-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.bismillah-divider::before,
.bismillah-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.bismillah-divider .divider-icon {
  color: var(--gold);
  font-size: 1.5rem;
  flex-shrink: 0;
  position: relative;
}

.bismillah-divider .divider-icon::before,
.bismillah-divider .divider-icon::after {
  content: '❖';
  color: var(--gold);
  font-size: 0.75rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.bismillah-divider .divider-icon::before {
  right: calc(100% + 0.5rem);
}

.bismillah-divider .divider-icon::after {
  left: calc(100% + 0.5rem);
}

/* ============================================================
   5. NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: 1.25rem 0;
  transition: var(--transition-slow);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.navbar.scrolled {
  background: rgba(26, 71, 49, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-lg);
}

.navbar.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.navbar-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  padding: 0.4rem 0;
  position: relative;
  letter-spacing: 0.02em;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: var(--border-radius-full);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--gold);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--primary-dark);
  z-index: calc(var(--z-sticky) + 10);
  padding: 5rem 2rem 2rem;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: -4px 0 32px rgba(0, 0, 0, 0.3);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: calc(var(--z-sticky) + 9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-link {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.mobile-nav-link:hover {
  color: var(--gold);
  padding-left: 0.5rem;
}

/* Hamburger Button */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
  z-index: calc(var(--z-sticky) + 11);
  position: relative;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: var(--border-radius-full);
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   6. HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-bg.loaded {
  transform: scale(1);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 45, 31, 0.88) 0%,
    rgba(26, 71, 49, 0.70) 50%,
    rgba(15, 45, 31, 0.82) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-text {
  animation: fadeInUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-text-delay-1 {
  animation-delay: 0.2s;
}

.hero-text-delay-2 {
  animation-delay: 0.4s;
}

.hero-text-delay-3 {
  animation-delay: 0.6s;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 169, 110, 0.2);
  border: 1px solid rgba(201, 169, 110, 0.4);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: var(--border-radius-full);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-pattern {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  opacity: 0.06;
  animation: spin-slow 60s linear infinite;
  pointer-events: none;
}

.hero-pattern-sm {
  position: absolute;
  left: 5%;
  bottom: 10%;
  width: 200px;
  height: 200px;
  opacity: 0.05;
  animation: spin-slow 40s linear infinite reverse;
  pointer-events: none;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
  cursor: pointer;
}

.hero-scroll-hint .scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255, 255, 255, 0.4);
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  transform: rotate(45deg);
}

/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Primary Button */
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 169, 110, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-primary:hover::before {
  left: 100%;
  animation: shimmer 0.5s ease forwards;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Secondary Button */
.btn-secondary {
  background: var(--gold);
  color: var(--primary-dark);
  border-color: var(--gold);
  font-weight: 700;
}

.btn-secondary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 169, 110, 0.4);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Enroll Button — Special */
.btn-enroll {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--primary-dark);
  border: none;
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: var(--border-radius-full);
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.45);
  animation: pulse-gold 2.5s ease-in-out infinite;
  letter-spacing: 0.03em;
}

.btn-enroll:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 32px rgba(201, 169, 110, 0.6);
  animation: none;
}

.btn-enroll:active {
  transform: translateY(-1px);
}

/* Button Sizes */
.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.825rem;
}

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

.btn-xl {
  padding: 1.2rem 2.75rem;
  font-size: 1.05rem;
}

/* Loading state */
.btn.loading {
  pointer-events: none;
  opacity: 0.75;
}

.btn.loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 0.5rem;
}

/* ============================================================
   8. PROGRAM CARDS
   ============================================================ */
.program-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(26, 71, 49, 0.08);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--gold);
}

.program-card:hover::before {
  transform: scaleX(1);
}

.program-card .card-icon {
  width: 56px;
  height: 56px;
  background: rgba(26, 71, 49, 0.08);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--gold);
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.program-card:hover .card-icon {
  background: var(--primary);
  color: var(--gold);
  transform: rotate(5deg) scale(1.05);
}

.program-card .card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.program-card .card-description {
  color: var(--text-medium);
  font-size: 0.92rem;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.5rem;
}

.program-card .card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.program-card .card-tag {
  display: inline-block;
  background: var(--beige);
  color: var(--primary);
  padding: 0.2rem 0.65rem;
  border-radius: var(--border-radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Faculty Card */
.faculty-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.faculty-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.faculty-card .faculty-image-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 1.25rem;
}

.faculty-card .faculty-image {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--beige-dark);
  transition: var(--transition);
}

.faculty-card:hover .faculty-image {
  border-color: var(--gold);
}

.faculty-card .faculty-image-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(26, 71, 49, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faculty-card:hover .faculty-image-overlay {
  opacity: 1;
}

.faculty-card .faculty-image-overlay a {
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

.faculty-card .faculty-image-overlay a:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.faculty-card .faculty-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.faculty-card .faculty-title {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.faculty-card .faculty-specialty {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Testimonial Card */
.testimonial-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 1px solid rgba(26, 71, 49, 0.06);
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.testimonial-card .quote-icon {
  font-size: 4rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.25;
  font-family: Georgia, serif;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  pointer-events: none;
}

.testimonial-card .testimonial-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-medium);
  font-style: italic;
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-card .testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-card .author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

.testimonial-card .author-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.testimonial-card .author-role {
  font-size: 0.78rem;
  color: var(--text-light);
}

.testimonial-card .star-rating {
  display: flex;
  gap: 2px;
  margin-bottom: 0.75rem;
}

.testimonial-card .star-rating span {
  color: var(--gold);
  font-size: 0.9rem;
}

/* Achievement Card */
.achievement-card {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201, 169, 110, 0.15);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.achievement-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--gold), var(--gold-dark));
}

.achievement-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 169, 110, 0.35);
}

.achievement-card .achievement-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.achievement-card .achievement-number span {
  color: var(--gold-dark);
}

.achievement-card .achievement-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-medium);
  letter-spacing: 0.03em;
}

/* ============================================================
   9. SECTION COMPONENTS
   ============================================================ */

/* Section Spacing */
.section-spacing {
  padding: var(--section-padding);
}

.section-spacing-sm {
  padding: 4rem 0;
}

.section-spacing-lg {
  padding: 8rem 0;
}

/* Section Title */
.section-title {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title-wrapper .section-subtitle {
  display: inline-block;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  position: relative;
}

.section-title-wrapper .section-subtitle::before,
.section-title-wrapper .section-subtitle::after {
  content: '—';
  margin: 0 0.5rem;
  opacity: 0.4;
}

.section-underline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.section-underline .line {
  width: 60px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.section-underline .diamond {
  width: 8px;
  height: 8px;
  background: var(--gold-dark);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.section-underline .dot {
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

/* Stats Counter */
.stats-counter {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stats-counter.gold {
  color: var(--gold-dark);
}

.stats-counter.white {
  color: var(--white);
}

.stats-section {
  background: var(--primary);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.stats-section .stats-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}

/* Hadith / Quote Section */
.hadith-section {
  background: var(--primary-dark);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hadith-section .hadith-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hadith-section .hadith-arabic {
  font-family: 'Amiri', serif;
  direction: rtl;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--gold);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.hadith-section .hadith-translation {
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.hadith-section .hadith-source {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  opacity: 0.8;
}

/* ============================================================
   10. TESTIMONIALS CAROUSEL
   ============================================================ */
.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 0 1rem;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-prev,
.slider-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid rgba(26, 71, 49, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  flex-shrink: 0;
}

.slider-prev:hover,
.slider-next:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: scale(1.08);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(26, 71, 49, 0.2);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.slider-dot.active {
  background: var(--primary);
  transform: scale(1.4);
}

.slider-dot:hover {
  background: var(--secondary);
}

/* ============================================================
   11. FORMS
   ============================================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-label .required {
  color: #e53e3e;
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(26, 71, 49, 0.15);
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 71, 49, 0.1);
  background: var(--white);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-light);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-input.success,
.form-select.success,
.form-textarea.success {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.12);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a4731' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.35rem;
}

.form-error-message {
  font-size: 0.8rem;
  color: #e53e3e;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.form-success {
  background: rgba(82, 183, 136, 0.1);
  border: 1px solid rgba(82, 183, 136, 0.4);
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  color: #276749;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-error {
  background: rgba(229, 62, 62, 0.08);
  border: 1px solid rgba(229, 62, 62, 0.3);
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  color: #c53030;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Form Progress (multi-step) */
.form-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2.5rem;
}

.form-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.form-progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: rgba(26, 71, 49, 0.15);
  transition: background 0.4s ease;
}

.form-progress-step.completed:not(:last-child)::after {
  background: var(--primary);
}

.form-progress-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(26, 71, 49, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--white);
  color: var(--text-light);
  transition: var(--transition);
  z-index: 1;
  position: relative;
}

.form-progress-step.active .form-progress-circle {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.form-progress-step.completed .form-progress-circle {
  border-color: var(--secondary);
  background: var(--secondary);
  color: var(--white);
}

.form-progress-label {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 0.4rem;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

.form-progress-step.active .form-progress-label {
  color: var(--primary);
  font-weight: 600;
}

/* ============================================================
   12. FAQ ACCORDION
   ============================================================ */
.faq-item {
  border: 1.5px solid rgba(26, 71, 49, 0.1);
  border-radius: var(--border-radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.open {
  border-color: rgba(26, 71, 49, 0.25);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition-fast);
  user-select: none;
}

.faq-question:hover {
  background: var(--beige);
  color: var(--primary);
}

.faq-item.open .faq-question {
  background: rgba(26, 71, 49, 0.04);
  color: var(--primary);
}

.faq-toggle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(26, 71, 49, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  font-size: 0.8rem;
  color: var(--primary);
}

.faq-item.open .faq-toggle {
  background: var(--primary);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.3s ease;
  padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.75;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(26, 71, 49, 0.06);
}

/* ============================================================
   13. FOOTER
   ============================================================ */
.footer-section {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 5rem 0 0;
  position: relative;
  overflow: hidden;
}

.footer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--gold), var(--secondary), var(--gold));
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 300px;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-link {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  padding: 0.3rem 0;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--gold);
  padding-left: 0.35rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.footer-social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-social-icon:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* ============================================================
   14. FLOATING / FIXED UI ELEMENTS
   ============================================================ */

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: var(--z-dropdown);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.whatsapp-float.visible {
  opacity: 1;
  transform: translateY(0);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6);
}

/* Back To Top Button */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  z-index: var(--z-dropdown);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-dark);
  color: var(--white);
  padding: 0.85rem 1.5rem;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: var(--z-toast);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 90vw;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: var(--primary);
}

.toast.error {
  background: #c53030;
}

/* ============================================================
   15. ANIMATIONS & KEYFRAMES
   ============================================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse-gold {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.45);
  }
  50% {
    box-shadow: 0 4px 36px rgba(201, 169, 110, 0.75), 0 0 0 6px rgba(201, 169, 110, 0.15);
  }
}

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

@keyframes float-simple {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes counter-pop {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  70% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg) translateY(-50%);
  }
  to {
    transform: rotate(360deg) translateY(-50%);
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

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

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(26, 71, 49, 0.4);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(26, 71, 49, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(26, 71, 49, 0);
  }
}

/* ============================================================
   16. INTERSECTION OBSERVER — REVEAL ANIMATIONS
   ============================================================ */

/* Base hidden state */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Visible state — added by IntersectionObserver */
.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* Stagger children delays */
.stagger-children .reveal:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.15s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.25s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.35s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.45s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.55s; }

/* ============================================================
   17. DARK MODE
   ============================================================ */
[data-theme="dark"] {
  --primary: #52b788;
  --primary-dark: #40916c;
  --primary-light: #74c69d;
  --secondary: #95d5b2;
  --gold: #e9c46a;
  --gold-dark: #f4a261;
  --beige: #1a1a2e;
  --beige-dark: #16213e;
  --cream: #0f3460;
  --text-dark: #f0f4f8;
  --text-medium: #a0aec0;
  --text-light: #718096;
  --white: #1a1a2e;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] body {
  background: #0d1117;
  color: #f0f4f8;
}

[data-theme="dark"] .program-card,
[data-theme="dark"] .faculty-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .achievement-card,
[data-theme="dark"] .faq-item {
  background: #161b22;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .faq-question {
  background: #161b22;
  color: #f0f4f8;
}

[data-theme="dark"] .faq-question:hover {
  background: #1c2333;
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea {
  background: #161b22;
  border-color: rgba(255, 255, 255, 0.1);
  color: #f0f4f8;
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(13, 17, 23, 0.95);
}

[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #161b22;
}

/* Dark mode toggle button */
.dark-mode-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--white);
  font-size: 0.9rem;
}

.dark-mode-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(15deg);
}

/* ============================================================
   18. UTILITY CLASSES
   ============================================================ */

/* Text Gradient */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Background Islamic */
.bg-islamic {
  background-color: var(--beige);
  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='%231a4731' stroke-width='0.5' opacity='0.1'%3E%3Cpolygon points='40,4 52,16 68,16 68,32 52,44 40,36 28,44 12,32 12,16 28,16'/%3E%3Ccircle cx='40' cy='40' r='8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

.bg-primary { background-color: var(--primary); }
.bg-primary-dark { background-color: var(--primary-dark); }
.bg-beige { background-color: var(--beige); }
.bg-cream { background-color: var(--cream); }
.bg-gold { background-color: var(--gold); }

/* Gold Divider */
.gold-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--gold), var(--gold-dark));
  border-radius: var(--border-radius-full);
  margin: 0 auto;
}

.gold-divider.left {
  margin: 0;
}

.gold-divider.wide {
  width: 100px;
}

/* Decorative Ring */
.decorative-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px dashed rgba(201, 169, 110, 0.35);
  position: absolute;
  animation: spin-slow 30s linear infinite;
}

/* Gradient Cards */
.card-gradient-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
}

.card-gradient-gold {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  color: var(--primary-dark);
}

/* Avatar Stack */
.avatar-stack {
  display: flex;
}

.avatar-stack .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--white);
  object-fit: cover;
  margin-left: -10px;
}

.avatar-stack .avatar:first-child {
  margin-left: 0;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: var(--border-radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-primary {
  background: rgba(26, 71, 49, 0.1);
  color: var(--primary);
}

.badge-gold {
  background: rgba(201, 169, 110, 0.15);
  color: var(--gold-dark);
}

.badge-green {
  background: rgba(82, 183, 136, 0.15);
  color: #276749;
}

/* Container */
.container-custom {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Aspect Ratio Boxes */
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video  { aspect-ratio: 16 / 9; }
.aspect-4-3    { aspect-ratio: 4 / 3; }
.aspect-golden { aspect-ratio: 1.618 / 1; }

/* ============================================================
   19. PROGRAM FILTER
   ============================================================ */
.program-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.program-filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: var(--border-radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid rgba(26, 71, 49, 0.15);
  color: var(--text-medium);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.program-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(26, 71, 49, 0.05);
}

.program-filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ============================================================
   20. DONATION SECTION
   ============================================================ */
.donation-amount-btn {
  padding: 0.65rem 1.25rem;
  border-radius: var(--border-radius);
  border: 2px solid rgba(201, 169, 110, 0.3);
  background: var(--white);
  color: var(--gold-dark);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.donation-amount-btn:hover {
  border-color: var(--gold);
  background: rgba(201, 169, 110, 0.08);
}

.donation-amount-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--primary-dark);
}

/* ============================================================
   21. MAP SECTION
   ============================================================ */
#map {
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(26, 71, 49, 0.1);
}

/* ============================================================
   22. IMAGE LAZY LOADING
   ============================================================ */
img[data-src] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img[data-src].loaded {
  opacity: 1;
}

img.lazy-placeholder {
  background: linear-gradient(
    90deg,
    var(--beige) 25%,
    var(--beige-dark) 50%,
    var(--beige) 75%
  );
  background-size: 200% 100%;
  animation: shimmer-load 1.5s infinite;
}

@keyframes shimmer-load {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   23. NEWSLETTER
   ============================================================ */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border-radius: var(--border-radius);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.newsletter-input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.15);
}

.newsletter-success {
  text-align: center;
  color: var(--gold);
  font-size: 1rem;
  font-weight: 600;
  animation: bounceIn 0.5s ease;
}

/* ============================================================
   24. RESPONSIVE MEDIA QUERIES
   ============================================================ */

/* Small — 640px */
@media (max-width: 640px) {
  :root {
    --section-padding: 4rem 0;
  }

  .heading-xl {
    font-size: 2.2rem;
  }

  .heading-lg {
    font-size: 1.8rem;
  }

  .heading-md {
    font-size: 1.4rem;
  }

  .hero-section {
    min-height: 85vh;
  }

  .hero-pattern {
    width: 260px;
    height: 260px;
    opacity: 0.04;
    right: -10%;
  }

  .btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.85rem;
  }

  .btn-xl {
    padding: 0.9rem 1.75rem;
    font-size: 0.9rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .stats-counter {
    font-size: 2.5rem;
  }

  .testimonial-slide {
    padding: 0;
  }

  .program-card {
    padding: 1.5rem;
  }

  .footer-section {
    padding: 3rem 0 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  #map {
    height: 280px;
  }
}

/* Tablet — 768px */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .desktop-nav {
    display: none;
  }

  .hero-pattern {
    opacity: 0.04;
  }

  .section-underline .line {
    width: 40px;
  }

  .form-progress-label {
    display: none;
  }
}

/* Medium — 1024px */
@media (max-width: 1024px) {
  .navbar {
    padding: 1rem 0;
  }

  .faculty-card .faculty-image,
  .faculty-card .faculty-image-wrapper {
    width: 90px;
    height: 90px;
  }
}

/* Wide — 1280px and above */
@media (min-width: 1280px) {
  .container-custom {
    padding: 0 2rem;
  }

  .hero-pattern {
    width: 640px;
    height: 640px;
  }
}

/* Print */
@media print {
  .navbar,
  .whatsapp-float,
  .back-to-top,
  .mobile-menu,
  .hamburger {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a {
    color: inherit;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }
}
