/* ========================================
   SANAD ACADEMY — Design System & Styles
   Brand: Teal (#0D6B5E) + Gold (#C8982A)
   ======================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800&display=swap');
.hero-dome-wrapper {
  position: relative;
  width: 200%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: right;
  gap: 10px;
}

.hero-dome-img {
  width: 200%;
  max-width: 1100px;
  margin-top: 10px;
  /* margin-right: -10px; */
  background: transparent;
 mix-blend-mode: luminosity;  
 animation: fadeInRight 1s cubic-bezier(0.16,1,0.3,1) 0.4s both,
             floatDome 5s ease-in-out 1.4s infinite;
}
@keyframes floatDome {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors */
  --teal-900: #063E35;
  --teal-800: #094F44;
  --teal-700: #0B5C4F;
  --teal: #0D6B5E;
  --teal-500: #0F7A6B;
  --teal-400: #14A08B;
  --teal-300: #2CC4A8;
  --teal-200: #72D9C5;
  --teal-100: #B8ECE1;
  --teal-50: #E5F7F3;

  --gold-900: #6B4F12;
  --gold-800: #8E6918;
  --gold-700: #A87C1F;
  --gold: #C8982A;
  --gold-500: #D4A940;
  --gold-400: #E0BD60;
  --gold-300: #EACF85;
  --gold-200: #F2E0AD;
  --gold-100: #F8EDD0;
  --gold-50: #FDF8EC;
  
  /* ----- Brand override (user) ----- */
  --brand-color: #f6af63;
  --brand-500: #e0a155;
  --brand-200: #f8e6cc;
  --shadow-brand: 0 4px 20px rgba(248, 181, 107, 0.25);

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Semantic */
  --bg-primary: var(--white);
  --bg-secondary: var(--gray-50);
  --bg-dark: var(--teal-900);
  --text-primary: var(--gray-800);
  --text-secondary: var(--gray-600);
  --text-light: var(--white);

  /* Typography */
  --font-en: 'Poppins', sans-serif;
  --font-ar: 'Cairo', sans-serif;
  --font-display: Georgia, 'Times New Roman', serif;

  /* Spacing */
  --section-py: 100px;
  --container-px: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 4px 20px rgba(200, 152, 42, 0.25);
  --shadow-teal: 0 4px 20px rgba(13, 107, 94, 0.2);

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-base: 0.35s var(--ease-out);
  --transition-slow: 0.5s var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-en);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}

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

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

input, textarea, select {
  font-family: inherit;
  outline: none;
  border: none;
}

/* ---------- Utility Classes ---------- */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: var(--teal-50);
  color: var(--teal);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-badge.gold {
  background: var(--gold-50);
  color: var(--gold-800);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 16px;
}

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

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

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-color), var(--brand-500));
  color: var(--white);
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(248, 181, 107, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--brand-color);
  border: 2px solid var(--brand-200);
}

.btn-secondary:hover {
  background: var(--brand-200);
  border-color: var(--brand-color);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delay classes */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.35rem;
  color: #f8b56b;
  transition: color var(--transition-base);
}

.navbar.scrolled .nav-logo {
  color: var(--teal);
}

.nav-logo img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
  display: block;
  border: 2px solid var(--brand-color);
}

.nav-logo .logo-text-ar {
  font-family: var(--font-ar);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  color: #f8b56b;
}

.nav-logo .logo-text-en {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #f8b56b;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.navbar.scrolled .nav-links a {
  color: var(--gray-700);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: width var(--transition-base);
}

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

.nav-links a:hover {
  color: var(--gold);
}

.navbar.scrolled .nav-links a:hover {
  color: var(--teal);
}

.nav-cta {
  padding: 10px 24px !important;
  background: linear-gradient(135deg, var(--brand-color), var(--brand-500)) !important;
  color: var(--white) !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
  box-shadow: var(--shadow-brand);
  transition: all var(--transition-base) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(248, 181, 107, 0.4) !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
  cursor: pointer;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.navbar.scrolled .nav-hamburger span {
  background: var(--teal);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal) 50%, var(--teal-800) 100%);
  overflow: hidden;
}

/* Islamic Geometric Background Pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  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='%23ffffff'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z' fill='none' stroke='%23ffffff' stroke-width='1'/%3E%3Cpath d='M40 10L70 40L40 70L10 40Z' fill='none' stroke='%23ffffff' stroke-width='0.5'/%3E%3Ccircle cx='40' cy='40' r='8' fill='none' stroke='%23ffffff' stroke-width='0.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* Decorative floating shapes */
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-decor .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.hero-decor .shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero-decor .shape-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--teal-300) 0%, transparent 70%);
  bottom: -50px;
  left: -80px;
  animation: float 10s ease-in-out infinite reverse;
}

.hero-decor .shape-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--gold-300) 0%, transparent 70%);
  top: 40%;
  left: 30%;
  animation: float 6s ease-in-out infinite 1s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-top: 20px;
  padding-bottom: 20px;
}

.hero-content {
  color: var(--white);
    max-width: 520px;

}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 152, 42, 0.15);
  border: 1px solid rgba(200, 152, 42, 0.3);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-200);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  animation: fadeInDown 0.8s var(--ease-out) both;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  fill: var(--gold-300);
}

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

.hero-title {
  font-size: clamp(1.9rem, 3.5vw, 3.2rem);
  white-space: normal;
  text-wrap: balance;
  overflow-wrap: normal;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
 
}
.hero-title .line {
  display: block;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--gold-300), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-ar {
  font-family: var(--font-ar);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--gold-200);
  margin-bottom: 24px;
  direction: rtl;
  animation: fadeInUp 0.9s var(--ease-out) 0.35s both;
  font-style: italic;
  letter-spacing: 0.02em;
}

.hero-dome-wrapper .hero-title-ar {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  max-width: 320px;
  margin-bottom: 0;
}
.hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 520px;
  animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-out) 0.5s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
}

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

.hero-stat .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-color);
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

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

/* Hero Visual Side */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInRight 1s var(--ease-out) 0.4s both;
}

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

.hero-visual-card {
  background: transparent;
  border: none;
  backdrop-filter: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 480px;
  position: relative;
}

.hero-visual-card .quran-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-700));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(200, 152, 42, 0.3);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 8px 32px rgba(200, 152, 42, 0.3); }
  50% { box-shadow: 0 8px 48px rgba(200, 152, 42, 0.5); }
}

.hero-visual-card .quran-icon svg {
  width: 56px;
  height: 56px;
  fill: var(--white);
}

.hero-visual-card .card-title {
  font-family: var(--font-ar);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 8px;
  direction: rtl;
}

.hero-visual-card .card-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  text-align: center;
  margin-bottom: 28px;
}

.hero-features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.hero-feature-item:hover {
  background: rgba(255,255,255,0.1);
}

.hero-feature-item .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(200, 152, 42, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-feature-item .icon svg {
  width: 20px;
  height: 20px;
  fill: var(--gold-300);
}

.hero-feature-item .text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

/* Floating badge decorations */
.hero-floating {
  position: absolute;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: floatBadge 5s ease-in-out infinite;
}

.hero-floating.badge-1 {
  top: 20px;
  right: -20px;
  animation-delay: 0s;
}

.hero-floating.badge-2 {
  bottom: 40px;
  left: -30px;
  animation-delay: 2s;
}

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

.hero-floating .badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-500));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-floating .badge-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.hero-floating .badge-text {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
}

.hero-floating .badge-text .num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold-300);
}

/* =============================================
   TRUST BAR
   ============================================= */
.trust-bar {
  background: var(--white);
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
  position: relative;
  z-index: 3;
}

.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-item .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-item .icon svg {
  width: 24px;
  height: 24px;
  fill: var(--teal);
}

.trust-item .info .number {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
}

.trust-item .info .label {
  font-size: 0.82rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* =============================================
   MAIN COURSES (Featured)
   ============================================= */
.main-courses {
  padding: var(--section-py) 0;
  background: var(--gray-50);
  position: relative;
}

.main-courses .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.main-courses .section-title {
  color: #073b35;
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: 0;
}

.main-courses .section-title span {
  color: #b5811d;
}

.main-courses .section-subtitle {
  margin: 0 auto;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.featured-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0 28px 36px;
  text-align: center;
  position: relative;
  transition: all var(--transition-base);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.featured-card-image {
  display: block;
  width: calc(100% + 56px);
  height: 300px;
  margin: 0 -28px 24px;
  object-fit: cover;
  object-position: center 58%;
  transition: transform var(--transition-base);
}

.featured-card:hover .featured-card-image {
  transform: scale(1.025);
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

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

.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.featured-card .card-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.featured-card:nth-child(1) .card-icon {
  background: linear-gradient(135deg, var(--teal-50), var(--teal-100));
}
.featured-card:nth-child(2) .card-icon {
  background: linear-gradient(135deg, var(--gold-50), var(--gold-100));
}
.featured-card:nth-child(3) .card-icon {
  background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
}
.featured-card:nth-child(4) .card-icon {
  background: linear-gradient(135deg, #FEE2E2, #FECACA);
}

.featured-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.featured-card .card-icon svg {
  width: 36px;
  height: 36px;
}

.featured-card:nth-child(1) .card-icon svg { fill: var(--teal); }
.featured-card:nth-child(2) .card-icon svg { fill: var(--gold-800); }
.featured-card:nth-child(3) .card-icon svg { fill: #7C3AED; }
.featured-card:nth-child(4) .card-icon svg { fill: #DC2626; }

.featured-card .card-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.featured-card .card-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 20px;
}

.featured-card .card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-base);
}

.featured-card:hover .card-link {
  gap: 12px;
  color: var(--gold);
}

.featured-card .card-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform var(--transition-base);
}

.featured-card:hover .card-link svg {
  transform: translateX(4px);
}

/* =============================================
   COURSES SECTION (Grid with Filters)
   ============================================= */
.courses-section {
  padding: var(--section-py) 0;
  background: var(--white);
}

.courses-section .section-header {
  text-align: center;
  margin-bottom: 40px;
}

.courses-section .section-subtitle {
  margin: 0 auto;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid transparent;
  transition: all var(--transition-base);
  cursor: pointer;
}

.filter-tab:hover {
  background: var(--teal-50);
  color: var(--teal);
}

.filter-tab.active {
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow-teal);
}

/* Course Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
  position: relative;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.course-card .card-image {
  height: auto;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background-color: #fffdf8;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.courses-section .course-card:nth-child(1) .card-image { background-image: url("assets/قران/دورة-تلاوة-القرآن-الكريم-عبر-الإنترنت.png"); }
.courses-section .course-card:nth-child(2) .card-image { background-image: url("assets/قران/القران مع التجويد.png"); }
.courses-section .course-card:nth-child(3) .card-image { background-image: url("assets/قران/Online-Quran-Memorization-Course.png"); }
.courses-section .course-card:nth-child(4) .card-image { background-image: url("assets/عربي/دورة-محادثة-باللغة-العربية-عبر-الإنترنت.png"); }
.courses-section .course-card:nth-child(5) .card-image { background-image: url("assets/إسلامي/Islamic Education Program for Young Muslims.png"); }
.courses-section .course-card:nth-child(6) .card-image { background-image: url("assets/عربي/Online-Business-Arabic-Course.png"); }

.courses-section .course-card .card-image::after {
  display: none;
}

.course-card .card-image .course-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-card .card-image .course-icon svg {
  width: 64px;
  height: 64px;
  fill: rgba(255,255,255,0.3);
}

.courses-section .course-card .card-image .course-icon {
  display: none !important;
}

.courses-section .course-card .card-image .card-badge {
  display: none;
}

.course-card .card-image .card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 14px;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
}

.course-card .card-body {
  padding: 24px;
}

.course-card .card-category {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.course-card .card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.4;
}

.course-card .card-desc {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 20px;
}

.course-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.course-card .card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.course-card .meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.course-card .meta-item svg {
  width: 14px;
  height: 14px;
  fill: var(--gray-400);
}

.course-card .card-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--teal);
}

.course-card .card-price span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gray-400);
}

.courses-view-all {
  text-align: center;
  margin-top: 48px;
}

/* =============================================
   ABOUT SANAD
   ============================================= */
.about-section {
  padding: var(--section-py) 0;
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
}

/* Background pattern */
.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  opacity: 0.03;
  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%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='%230D6B5E' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}

.about-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-image-main {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  background: var(--gold-50);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(200, 152, 42, 0.28);
}

.about-image-main .why-choose-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.about-image-main:hover .why-choose-image {
  transform: scale(1.025);
}

.about-image-main .why-choose-image ~ .pattern-overlay,
.about-image-main .why-choose-image ~ .center-content {
  display: none;
}

.about-image-main .pattern-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='%23ffffff' stroke-width='0.5'/%3E%3Cpath d='M50 20L80 50L50 80L20 50Z' fill='none' stroke='%23ffffff' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='50' r='15' fill='none' stroke='%23ffffff' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 100px 100px;
}

.about-image-main .center-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  color: var(--white);
}

.about-image-main .center-content svg {
  width: 80px;
  height: 80px;
  fill: var(--gold);
  margin-bottom: 16px;
}

.about-image-main .center-content .title-ar {
  font-family: var(--font-ar);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-200);
  direction: rtl;
}

.about-image-main .center-content .title-en {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* Floating stat card */
.about-float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: floatBadge 5s ease-in-out infinite;
}

.about-float-card.card-1 {
  bottom: -20px;
  right: -20px;
}

.about-float-card.card-2 {
  top: -20px;
  left: -20px;
  animation-delay: 2s;
}

.about-float-card .float-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--teal-50);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-float-card .float-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--teal);
}

.about-float-card .float-info .number {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}

.about-float-card .float-info .label {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 2px;
}

/* About Content */
.about-content .section-badge {
  margin-bottom: 16px;
}

.about-content .section-title {
  margin-bottom: 20px;
}

.about-content .about-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 32px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-fast);
}

.about-feature:hover {
  border-color: var(--teal-200);
  box-shadow: var(--shadow-sm);
}

.about-feature .check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature .check svg {
  width: 14px;
  height: 14px;
  fill: var(--teal);
}

.about-feature span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-700);
}

/* =============================================
   VISION SECTION
   ============================================= */
.vision-section {
  padding: var(--section-py) 0;
  background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal) 50%, var(--teal-800) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.vision-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  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='%23ffffff'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z' fill='none' stroke='%23ffffff' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

.vision-section .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.vision-section .section-badge {
  background: rgba(200, 152, 42, 0.15);
  color: var(--gold-200);
  border: 1px solid rgba(200, 152, 42, 0.3);
}

.vision-section .section-title {
  color: var(--white);
  max-width: 700px;
  margin: 0 auto 20px;
}

.vision-section .section-title span {
  color: var(--gold);
}

.vision-description {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 660px;
  margin: 0 auto 60px;
  line-height: 1.9;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.vision-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  transition: all var(--transition-base);
}

.vision-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.2);
}

.vision-card .card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(200, 152, 42, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all var(--transition-base);
}

.vision-card:hover .card-icon {
  background: rgba(200, 152, 42, 0.25);
  transform: scale(1.1);
}

.vision-card .card-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--gold);
}

.vision-card .card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.vision-card .card-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-section {
  padding: var(--section-py) 0;
  background: var(--white);
}

.testimonials-section .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.testimonials-section .section-subtitle {
  margin: 0 auto;
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-slider::before,
.testimonials-slider::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: min(9vw, 110px);
  pointer-events: none;
}

.testimonials-slider::before {
  left: 0;
  background: linear-gradient(90deg, #fbf7ed, transparent);
}

.testimonials-slider::after {
  right: 0;
  background: linear-gradient(270deg, #fbf7ed, transparent);
}

.testimonials-track {
  display: flex;
  gap: 28px;
  transition: transform 0.5s var(--ease-out);
}

.testimonials-marquee .testimonials-track {
  width: max-content;
  animation: testimonialsMarquee 95s linear infinite;
  transition: none;
}

.testimonials-marquee:hover .testimonials-track {
  animation-play-state: paused;
}

.testimonials-marquee .testimonial-card {
  flex: 0 0 min(420px, 82vw);
  min-width: min(420px, 82vw);
}

@keyframes testimonialsMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 14px));
  }
}

.testimonial-card {
  min-width: calc(33.333% - 19px);
  width: min(420px, 82vw);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.testimonial-card:hover {
  border-color: var(--teal-200);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 2px;
}

.testimonial-stars::before {
  content: '★★★★★';
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  fill: var(--gold);
}

.testimonial-text {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.testimonial-card:nth-child(1) .testimonial-avatar { background: linear-gradient(135deg, var(--teal), var(--teal-400)); }
.testimonial-card:nth-child(2) .testimonial-avatar { background: linear-gradient(135deg, var(--gold), var(--gold-500)); }
.testimonial-card:nth-child(3) .testimonial-avatar { background: linear-gradient(135deg, #7C3AED, #A78BFA); }
.testimonial-card:nth-child(4) .testimonial-avatar { background: linear-gradient(135deg, #DC2626, #F87171); }
.testimonial-card:nth-child(5) .testimonial-avatar { background: linear-gradient(135deg, #2563EB, #60A5FA); }
.testimonial-card:nth-child(6) .testimonial-avatar { background: linear-gradient(135deg, #059669, #34D399); }

.testimonial-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
}

.testimonial-country {
  font-size: 0.8rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 6px;
}

.testimonial-country .flag {
  font-size: 1rem;
}

.testimonials-section .slider-controls {
  display: none;
}

/* Slider Controls */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  cursor: pointer;
}

.slider-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
}

.slider-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--gray-600);
  transition: fill var(--transition-base);
}

.slider-btn:hover svg {
  fill: var(--white);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  cursor: pointer;
  transition: all var(--transition-base);
}

.slider-dot.active {
  width: 32px;
  border-radius: 5px;
  background: var(--teal);
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  min-height: 720px;
  padding: clamp(96px, 12vw, 148px) 0;
  background: #11584d;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url('chain-pattern.png') left 56% / 520px repeat-y,
    url('chain-pattern.png') right -70px top -40px / 520px repeat-y;
  opacity: 0.13;
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 23% 50%, rgba(227, 170, 85, 0.1), transparent 32%),
    linear-gradient(90deg, rgba(8, 59, 51, 0.22), transparent 26%, transparent 74%, rgba(8, 59, 51, 0.2));
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-container {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  position: relative;
  overflow: visible;
  box-shadow: none;
}

.cta-container::before {
  display: none;
}

/* Decorative glow */
.cta-container::after {
  display: none;
}

.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.cta-kicker {
  color: #f0a33a;
  font-family: var(--font-ar);
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  font-weight: 700;
  margin-bottom: 18px;
}

.cta-inner .section-title {
  max-width: 900px;
  color: var(--white);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.65rem, 5.2vw, 4.75rem);
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 22px;
}

.cta-inner .cta-desc {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.35vw, 1.28rem);
  line-height: 1.55;
  margin-bottom: 46px;
}

.cta-form {
  display: grid;
  grid-template-columns: minmax(200px, 360px) minmax(260px, 420px);
  gap: 14px;
  justify-content: center;
  align-items: center;
  width: min(100%, 760px);
}

.cta-phone-field {
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
}

.cta-phone-field:focus-within {
  border-color: rgba(227, 170, 85, 0.68);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 4px rgba(227, 170, 85, 0.12);
}

.cta-phone-field svg {
  width: 22px;
  height: 22px;
  margin-right: 15px;
  fill: #f0a33a;
  flex: 0 0 auto;
}

.cta-phone-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
}

.cta-phone-field input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.cta-form .submit-btn {
  min-height: 68px;
  padding: 0 30px;
  background: linear-gradient(135deg, #f0b553 0%, #f4c977 100%);
  color: #050f0d;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 18px 42px rgba(6, 38, 33, 0.28);
}

.cta-form .submit-btn:hover {
  background: linear-gradient(135deg, #f4c977 0%, #ffd98c 100%);
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(6, 38, 33, 0.34);
}

.cta-inner .form-note {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.66);
  margin-top: 30px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 33, 29, 0.98) 0%, rgba(0, 46, 40, 0.94) 42%, rgba(0, 35, 32, 0.98) 100%),
    var(--gray-900);
  color: var(--white);
  padding-top: 80px;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('islamic-pattern.png') center top / 520px auto repeat;
  opacity: 0.055;
  pointer-events: none;
}

.footer::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 0%, rgba(227, 170, 85, 0.16), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 17, 15, 0.42));
  pointer-events: none;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-brand .footer-logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.footer-brand .footer-logo .name {
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-brand .footer-logo .name-ar {
  font-family: var(--font-ar);
  font-size: 1rem;
  color: var(--gold-300);
  direction: rtl;
}

.footer-brand .footer-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--teal);
  border-color: var(--teal);
  transform: translateY(-3px);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  fill: rgba(255,255,255,0.7);
  transition: fill var(--transition-base);
}

.footer-social a:hover svg {
  fill: var(--white);
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--white);
  position: relative;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-column ul li a:hover {
  color: var(--gold);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--gold);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-item .text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

.footer-contact-item .text a {
  color: rgba(255,255,255,0.55);
}

.footer-contact-item .text a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom .copyright {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom .footer-links {
  display: flex;
  gap: 24px;
}

.footer-bottom .footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

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

/* Reference-inspired footer layout, adapted to Sanad theme */
.footer {
  padding: clamp(56px, 7vw, 86px) 0 0;
}

.footer-intro {
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) minmax(230px, 0.85fr) minmax(230px, 0.8fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: clamp(42px, 5vw, 64px);
}

.footer-brand-panel,
.footer-contact-panel,
.footer-action-panel {
  border: 1px solid rgba(227, 170, 85, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 22px 60px rgba(0, 17, 15, 0.16);
  backdrop-filter: blur(14px);
}

.footer-brand-panel {
  padding: clamp(24px, 3vw, 34px);
}

.footer-brand-panel .footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-brand-panel .footer-logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.24));
}

.footer-brand-panel .footer-logo .name {
  color: #ffffff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.footer-brand-panel .footer-logo .name-ar {
  margin-top: 7px;
  color: #e3aa55;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.footer-contact-panel,
.footer-action-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 24px;
}

.footer-panel-label {
  color: #e3aa55;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-contact-panel a,
.footer-contact-panel span,
.footer-action-panel p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  line-height: 1.55;
}

.footer-contact-panel a:hover {
  color: #f2bd68;
}

.footer-action-panel p {
  margin: 0;
}

.footer-trial-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 4px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #e3aa55;
  color: #071311;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.footer-trial-btn:hover {
  background: #f2bd68;
  color: #071311;
  transform: translateY(-2px);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 54px);
  padding-bottom: clamp(42px, 5vw, 62px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-links-col {
  min-width: 0;
}

.footer-links-col h4 {
  margin-bottom: 20px;
  color: #f2bd68;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col a {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  line-height: 1.4;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-links-col a:hover {
  color: #f2bd68;
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .footer-intro {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-panel {
    grid-column: 1 / -1;
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .footer {
    padding-top: 54px;
  }

  .footer-intro,
  .footer-links-grid {
    grid-template-columns: 1fr;
  }

  .footer-contact-panel,
  .footer-action-panel,
  .footer-brand-panel {
    padding: 22px;
  }

  .footer-brand-panel .footer-logo {
    align-items: flex-start;
  }

  .footer-brand-panel .footer-logo .name {
    font-size: 1.18rem;
  }

  .footer-links-grid {
    gap: 28px;
  }
}

/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.whatsapp-chat {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: min(360px, calc(100vw - 40px));
  border-radius: 18px;
  overflow: hidden;
  background: #f0f0f0;
  box-shadow: 0 18px 55px rgba(17, 24, 39, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(28px) scale(0.88) rotate(1.5deg);
  transform-origin: bottom right;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.whatsapp-float.chat-open .whatsapp-chat {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: whatsappChatReveal 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.whatsapp-chat-header {
  min-height: 78px;
  padding: 13px 14px;
  background: #0b6b5f;
  color: var(--white);
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 11px;
  position: relative;
}

.whatsapp-chat-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--white);
  border: 3px solid rgba(255, 255, 255, 0.94);
}

.whatsapp-status-dot {
  position: absolute;
  left: 64px;
  bottom: 14px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #4ade80;
  border: 2px solid #0b6b5f;
}

.whatsapp-chat-title {
  min-width: 0;
}

.whatsapp-chat-title strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.25;
}

.whatsapp-chat-title span {
  display: block;
  margin-top: 3px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.92);
}

.whatsapp-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.whatsapp-close:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(90deg);
}

.whatsapp-close svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.whatsapp-chat-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 150px;
  padding: 22px 20px;
  background-color: #e8e5de;
  background-image:
    radial-gradient(circle at 24px 18px, rgba(255,255,255,0.7) 0 2px, transparent 3px),
    radial-gradient(circle at 76px 62px, rgba(255,255,255,0.55) 0 2px, transparent 3px),
    linear-gradient(135deg, rgba(255,255,255,0.25) 25%, transparent 25%),
    linear-gradient(45deg, rgba(255,255,255,0.22) 25%, transparent 25%);
  background-size: 86px 86px, 112px 112px, 34px 34px, 34px 34px;
}

.whatsapp-message {
  width: min(100%, 250px);
  padding: 12px 14px 9px;
  border-radius: 0 10px 10px 10px;
  background: var(--white);
  color: #3f3f46;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.08);
  position: relative;
  cursor: pointer;
  transition: width 260ms ease, transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-message:hover,
.whatsapp-message:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.13);
  outline: none;
}

.whatsapp-message::before {
  content: '';
  position: absolute;
  top: 0;
  left: -10px;
  border-top: 10px solid var(--white);
  border-left: 10px solid transparent;
}

.whatsapp-message strong {
  display: block;
  margin-bottom: 7px;
  color: #8b8b91;
  font-size: 0.86rem;
  font-weight: 800;
}

.whatsapp-message p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.42;
}

.whatsapp-message.is-typing {
  width: 72px;
  padding: 13px 16px;
}

.whatsapp-message.is-typing strong {
  display: none;
}

.whatsapp-message.is-typing > span {
  display: none;
}

.whatsapp-message .whatsapp-typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 18px;
}

.whatsapp-message .whatsapp-typing-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ca3af;
  animation: whatsappTypingDot 1s ease-in-out infinite;
}

.whatsapp-message .whatsapp-typing-dots i:nth-child(2) {
  animation-delay: 140ms;
}

.whatsapp-message .whatsapp-typing-dots i:nth-child(3) {
  animation-delay: 280ms;
}

.whatsapp-message.message-arrived {
  animation: whatsappMessageArrive 440ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.whatsapp-message span {
  display: block;
  margin-top: 7px;
  color: #9ca3af;
  font-size: 0.78rem;
  text-align: right;
}

.whatsapp-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 8px;
  align-items: center;
  padding: 10px 14px 14px;
  background: #eeeeee;
}

.whatsapp-chat-form input {
  min-height: 46px;
  width: 100%;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.9rem;
}

.whatsapp-chat-form input::placeholder {
  color: #9ca3af;
}

.whatsapp-chat-form button {
  width: 46px;
  height: 46px;
  background: transparent;
  color: #8c8c8c;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.whatsapp-chat-form button:hover {
  color: #0b6b5f;
  transform: translateX(2px);
}

.whatsapp-chat-form button svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

@keyframes whatsappChatReveal {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.88) rotate(1.5deg);
  }
  65% {
    opacity: 1;
    transform: translateY(-5px) scale(1.02) rotate(-0.4deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes whatsappTypingDot {
  0%, 60%, 100% {
    opacity: 0.42;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

@keyframes whatsappMessageArrive {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
  }
  70% {
    opacity: 1;
    transform: translateY(-2px) scale(1.015);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.whatsapp-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: all var(--transition-base);
  animation: whatsappPulse 2s ease-in-out infinite;
  overflow: visible;
  position: relative;
  isolation: isolate;
}

.whatsapp-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-toggle::before,
.whatsapp-toggle::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.whatsapp-toggle::before {
  z-index: -1;
  background: rgba(37, 211, 102, 0.32);
  opacity: 0;
  transform: scale(1);
}

.whatsapp-toggle::after {
  z-index: 1;
  background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.48) 44%, transparent 68%);
  opacity: 0;
  transform: translateX(-130%) rotate(12deg);
}

.whatsapp-toggle.is-clicking {
  animation: whatsappClickPop 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.whatsapp-toggle.is-clicking::before {
  animation: whatsappClickRipple 520ms ease-out both;
}

.whatsapp-toggle.is-clicking::after {
  animation: whatsappClickShine 520ms ease-out both;
}

.whatsapp-toggle svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
  position: relative;
  z-index: 2;
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.55), 0 0 0 12px rgba(37, 211, 102, 0.1); }
}

@keyframes whatsappClickPop {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  }
  22% {
    transform: scale(0.84);
    box-shadow: 0 3px 12px rgba(37, 211, 102, 0.28);
  }
  58% {
    transform: scale(1.18);
    box-shadow: 0 10px 34px rgba(37, 211, 102, 0.52), 0 0 0 14px rgba(37, 211, 102, 0.12);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  }
}

@keyframes whatsappClickRipple {
  0% {
    opacity: 0.58;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(2.05);
  }
}

@keyframes whatsappClickShine {
  0% {
    opacity: 0;
    transform: translateX(-130%) rotate(12deg);
  }
  35% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translateX(130%) rotate(12deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-message .whatsapp-typing-dots i,
  .whatsapp-message.message-arrived,
  .whatsapp-float.chat-open .whatsapp-chat,
  .whatsapp-toggle,
  .whatsapp-toggle.is-clicking,
  .whatsapp-toggle.is-clicking::before,
  .whatsapp-toggle.is-clicking::after {
    animation: none;
  }
}

/* Tooltip */
.whatsapp-float .tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gray-800);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.whatsapp-float:hover .tooltip {
  opacity: 1;
}

.whatsapp-float .tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--gray-800);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-py: 80px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-description {
    margin: 0 auto 36px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: 2;
  }

  .hero-visual-card {
    max-width: 420px;
    margin: 0 auto;
  }

  .hero-floating.badge-1 {
    right: 0;
  }

  .hero-floating.badge-2 {
    left: 0;
  }

  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-section .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual {
    max-width: 500px;
    margin: 0 auto;
  }

  .vision-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-card {
    min-width: calc(50% - 14px);
  }

  .cta-inner {
    gap: 40px;
    text-align: center;
  }

  .cta-content .cta-benefits {
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-py: 64px;
    --container-px: 16px;
  }

  /* Nav Mobile */
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    padding: 100px 32px 40px;
    gap: 24px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right var(--transition-base);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: var(--gray-700) !important;
    font-size: 1.05rem;
  }

  .nav-links a:hover {
    color: var(--teal) !important;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  /* Mobile overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .hero .container {
    padding-top: 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-title-ar {
    font-size: 1.2rem;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-stat .number {
    font-size: 1.5rem;
  }

  .hero-floating {
    display: none;
  }

  .trust-bar .container {
    gap: 24px;
  }

  .trust-item .info .number {
    font-size: 1.1rem;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .filter-tabs {
    gap: 6px;
  }

  .filter-tab {
    padding: 8px 16px;
    font-size: 0.82rem;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .vision-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    min-width: 100%;
  }

  .cta-container {
    padding: 0;
  }

  .cta-section {
    min-height: 640px;
    padding: 88px 0;
  }

  .cta-form {
    grid-template-columns: 1fr;
    width: min(100%, 460px);
  }

  .cta-phone-field,
  .cta-form .submit-btn {
    min-height: 60px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .whatsapp-toggle {
    width: 52px;
    height: 52px;
  }

  .whatsapp-toggle svg {
    width: 28px;
    height: 28px;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-chat {
    width: calc(100vw - 32px);
    bottom: 68px;
  }

  .whatsapp-chat-header {
    grid-template-columns: 58px minmax(0, 1fr) 34px;
    min-height: 78px;
    padding: 13px 14px;
  }

  .whatsapp-chat-logo {
    width: 56px;
    height: 56px;
  }

  .whatsapp-status-dot {
    left: 64px;
    bottom: 14px;
  }

  .whatsapp-chat-title strong {
    font-size: 0.94rem;
  }

  .whatsapp-chat-title span {
    font-size: 0.78rem;
  }
}

/* =====================================================
   CLIENT REQUESTS - SHARED EXPERIENCE
   ===================================================== */
.nav-logo {
  min-width: max-content;
  gap: 12px;
}

.nav-logo img {
  width: 82px;
  height: 68px;
  transform: none;
}

.nav-logo > div {
  display: flex;
  align-items: center;
}

.nav-logo .logo-text-en {
  line-height: 1.08;
}

.nav-trial-link {
  padding: 10px 16px !important;
  border: 1px solid rgba(231, 173, 76, .65);
  border-radius: 999px;
  color: #f3c675 !important;
  font-size: .86rem !important;
  font-weight: 700 !important;
}

.nav-trial-link::after {
  display: none;
}

.nav-trial-link:hover {
  background: #e7ad4c;
  color: #082f29 !important;
}

.hero-cycling-line {
  position: relative;
  min-height: 1.15em;
  overflow: hidden;
}

.hero-cycling-line::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: .78em;
  margin-left: 8px;
  background: #f3c675;
  animation: caretBlink .8s steps(1) infinite;
  vertical-align: .03em;
}

.cycling-word {
  display: none;
  color: inherit;
}

.cycling-word.active {
  display: inline-block;
  animation: cyclingWordIn .6s cubic-bezier(.2,.8,.2,1) both;
}

.cycling-word.exit {
  display: inline-block;
  position: absolute;
  left: 0;
  animation: cyclingWordOut .55s ease both;
}

@keyframes cyclingWordIn {
  from { opacity: 0; transform: translateY(65%) skewY(4deg); }
  to { opacity: 1; transform: none; }
}

@keyframes cyclingWordOut {
  to { opacity: 0; transform: translateY(-65%) skewY(-4deg); }
}

@keyframes caretBlink {
  50% { opacity: 0; }
}

.cta-form {
  align-items: stretch;
}

.cta-student-field,
.cta-phone-field {
  min-width: 0;
}

.cta-student-field {
  display: flex;
  flex: 1 1 180px;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  background: rgba(255,255,255,.1);
}

.cta-student-field span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.cta-student-field input {
  width: 100%;
  min-height: 54px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
}

.cta-student-field input::placeholder {
  color: rgba(255,255,255,.66);
}

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.footer-bottom .footer-links {
  justify-content: flex-end;
}

.shared-social-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.shared-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(231, 173, 76, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .72);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.shared-social-links a:hover,
.shared-social-links a:focus-visible {
  border-color: #e7ad4c;
  background: rgba(231, 173, 76, .14);
  color: #f3c675;
  transform: translateY(-2px);
}

.shared-social-links a:focus-visible {
  outline: 2px solid rgba(243, 198, 117, .72);
  outline-offset: 3px;
}

.shared-social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 720px) {
  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-bottom .footer-links {
    justify-content: center;
  }
}

.welcome-message {
  position: fixed;
  z-index: 1100;
  right: 28px;
  bottom: 108px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 13px;
  width: min(360px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid rgba(231,173,76,.34);
  border-radius: 18px;
  background: rgba(4,47,41,.97);
  color: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(.98);
  transition: .35s cubic-bezier(.2,.8,.2,1);
}

.welcome-message.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.welcome-message img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.welcome-message strong {
  display: block;
  padding-right: 16px;
  color: #f3c675;
}

.welcome-message p {
  margin: 5px 0 12px;
  color: rgba(255,255,255,.72);
  font-size: .82rem;
  line-height: 1.55;
}

.welcome-message a {
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #e7ad4c;
  text-underline-offset: 4px;
}

.welcome-close {
  position: absolute;
  top: 6px;
  right: 9px;
  padding: 4px;
  background: transparent;
  color: rgba(255,255,255,.6);
  font-size: 1.25rem;
}

@media (max-width: 1150px) and (min-width: 769px) {
  .nav-logo img {
    width: 66px;
    height: 56px;
  }

  .nav-logo .logo-text-en {
    font-size: 1.15rem;
  }

  .nav-links a,
  .navbar .nav-more {
    font-size: .78rem;
  }

  .nav-trial-link {
    padding: 8px 10px !important;
    font-size: .72rem !important;
  }
}

@media (max-width: 768px) {
  .nav-logo img {
    width: 64px;
    height: 54px;
    transform: none;
  }

  .nav-logo .logo-text-en {
    font-size: 1.15rem;
  }

  .nav-trial-link {
    width: 100%;
    text-align: center;
  }

  .hero-title {
    max-width: 100%;
    overflow-wrap: normal;
  }

  .hero-cycling-line {
    min-height: 1.35em;
  }

  .cta-form,
  .cta-student-field,
  .cta-phone-field,
  .cta-form .submit-btn {
    width: 100%;
  }

  .cta-student-field {
    flex-basis: auto;
  }

  .welcome-message {
    right: 16px;
    bottom: 92px;
  }
}

@media (max-width: 480px) {
  .hero-visual-card {
    padding: 28px 20px;
  }

  .hero-visual-card .quran-icon {
    width: 90px;
    height: 90px;
  }

  .hero-visual-card .quran-icon svg {
    width: 42px;
    height: 42px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .trust-bar .container {
    flex-direction: column;
    gap: 16px;
  }

  .slider-controls {
    gap: 10px;
  }
}

/* =============================================
   SCROLL-TO-TOP BUTTON
   ============================================= */
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 998;
  box-shadow: var(--shadow-teal);
  cursor: pointer;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--teal-800);
  transform: translateY(-3px);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

@media (max-width: 768px) {
  .scroll-top {
    bottom: 80px;
    right: 20px;
    width: 38px;
    height: 38px;
  }
}
.cycling-wrapper {
  position: relative;
  display: inline-block;
  min-width: 320px;
  height: 1.2em;
  vertical-align: bottom;
}

.cycling-word {
  position: absolute;
  left: 0;
  font-style: italic;
  background: linear-gradient(135deg, #f8b56b, #f8b56b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.cycling-word.active {
  opacity: 1;
  transform: translateY(0);
}

.cycling-word.exit {
  opacity: 0;
  transform: translateY(-100%);
}

/* =============================================
   REFERENCE HERO REDESIGN
   Matches the supplied Quran hero screenshot
   ============================================= */
.navbar {
  height: 92px;
  padding: 0;
  background: transparent;
}

.navbar .container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1300px;
  height: 100%;
  margin-inline: auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.nav-logo {
  flex: 0 0 auto;
  gap: 16px;
  color: var(--white);
}

.nav-logo img {
  width: 66px;
  height: 58px;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  transform: translateY(-4px);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

.nav-logo .logo-text-en {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--white);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
  opacity: 1;
  letter-spacing: 0;
  text-transform: none;
}

.nav-logo .logo-text-ar {
  margin-top: 8px;
  color: #e7ad4c;
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 5px;
  line-height: 1;
  text-transform: uppercase;
}

.navbar.scrolled {
  padding: 0;
  background: rgba(3, 33, 29, 0.88);
  border-bottom: 1px solid rgba(232, 173, 76, 0.14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.navbar.scrolled .nav-logo,
.navbar.scrolled .nav-logo .logo-text-en,
.navbar.scrolled .nav-logo .logo-text-ar,
.navbar.scrolled .nav-links a {
  color: var(--white);
}

.nav-links {
  gap: 0;
  margin-left: clamp(48px, 4vw, 68px);
}

@media (min-width: 1025px) {
  .nav-links {
    flex: 1 1 auto;
    justify-content: space-evenly;
  }

  .nav-more {
    margin-left: 0;
  }
}

.nav-links a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  font-weight: 500;
}

.navbar .nav-more,
.navbar.scrolled .nav-more {
  position: relative;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  font-weight: 500;
}

.nav-more summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  color: inherit;
  cursor: pointer;
  list-style: none;
  transition: color var(--transition-fast);
}

.nav-links > a,
.nav-more summary {
  white-space: nowrap;
}

.nav-more summary::-webkit-details-marker {
  display: none;
}

.nav-more summary::marker {
  content: '';
}

.nav-more summary span {
  position: relative;
  display: inline-block;
  width: 17px;
  height: 12px;
  margin-left: 2px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  font-size: 0;
  transition: transform var(--transition-fast);
}

.nav-more summary span::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: translateY(-50%);
}

.nav-more[open] summary,
.nav-more summary:hover {
  color: #e7ad4c;
}

.nav-more[open] summary span {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  min-width: 225px;
  padding: 10px;
  border: 1px solid rgba(232, 173, 76, 0.2);
  border-radius: 14px;
  background: rgba(3, 33, 29, 0.98);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  right: 18px;
  bottom: 100%;
  width: 0;
  height: 0;
  border-right: 7px solid transparent;
  border-bottom: 8px solid rgba(3, 33, 29, 0.98);
  border-left: 7px solid transparent;
}

.nav-dropdown a,
.navbar.scrolled .nav-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
  white-space: nowrap;
}

.nav-dropdown a:hover,
.navbar.scrolled .nav-dropdown a:hover {
  background: rgba(232, 173, 76, 0.1);
  color: #e7ad4c;
}

.nav-links a::after {
  display: none;
}

.nav-links a:hover,
.nav-links a.active,
.navbar.scrolled .nav-links a:hover {
  color: #e7ad4c;
}

.nav-cta {
  min-height: 48px;
  padding: 13px 27px !important;
  background: #e3aa55 !important;
  color: #0f1815 !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.nav-cta:hover {
  background: #f2bd68 !important;
  color: #071311 !important;
}

.hero {
  height: auto;
  min-height: max(640px, 100svh);
  max-height: none;
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(0, 29, 26, 0.99) 0%, rgba(0, 39, 35, 0.95) 40%, rgba(0, 47, 42, 0.66) 72%, rgba(0, 30, 27, 0.82) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 22, 20, 0.34)),
    url("hero-quran.jpg") center center / cover no-repeat;
  border-radius: 0;
}

.hero::before {
  opacity: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 48% -8%, rgba(237, 184, 91, 0.16), transparent 25%),
    linear-gradient(180deg, transparent 68%, rgba(0, 20, 18, 0.5));
  pointer-events: none;
}

.hero-decor {
  display: none;
}

.hero .container {
  width: 100%;
  max-width: 1540px;
  grid-template-columns: minmax(0, 1320px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  min-height: 100%;
  height: 100%;
  padding-top: 160px;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
  padding-bottom: 110px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 1320px;
  min-height: 0;
  color: var(--white);
  transform: none;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.1px;
  text-transform: uppercase;
}

.hero-kicker span {
  width: 30px;
  height: 1px;
  background: #e3aa55;
  box-shadow: 0 0 14px rgba(227, 170, 85, 0.5);
}

.hero-badge {
  gap: 12px;
  margin-bottom: 28px;
  padding: 8px 18px;
  border: 1px solid rgba(226, 170, 85, 0.44);
  background: rgba(3, 39, 35, 0.58);
  color: #e7ad4c;
  border-radius: 999px;
  box-shadow: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 6px;
  text-transform: uppercase;
}

.hero-badge span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e7ad4c;
}

.hero-title-ar {
  margin-bottom: 18px;
  color: #e7ad4c;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 700;
  font-style: normal;
}

.hero-title {
  margin-bottom: 22px;
  max-width: 1320px;
  color: #fffdf8;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  white-space: normal;
}

.hero-title-primary {
  display: flex;
  align-items: baseline;
  gap: 0.16em;
  color: #fffdf8;
  font-size: clamp(2.6rem, 3.85vw, 4.05rem);
  line-height: 1.08;
  white-space: normal;
}

.hero-word-cycle {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: auto;
  min-width: 5ch;
  height: 1.38em;
  margin-bottom: -0.15em;
  overflow: visible;
  color: #e3aa55;
  font-style: italic;
  text-align: left;
  vertical-align: baseline;
  transition: width 480ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-word-cycle .cycling-word {
  left: 0;
  top: 0.16em;
  line-height: 1.12;
  padding-bottom: 0.12em;
  white-space: nowrap;
  transform: translateY(115%);
}

.hero-word-cycle .cycling-word.active {
  transform: translateY(0);
}

.hero-word-cycle .cycling-word.exit {
  transform: translateY(-115%);
}

.hero-title-secondary {
  display: block;
  max-width: 1320px;
  margin-top: 8px;
  color: #fffdf8;
  font-size: clamp(2.3rem, 3.55vw, 3.75rem);
  font-style: normal;
  line-height: 1.02;
  white-space: normal;
}

.hero-title em {
  color: inherit;
  font-style: italic;
  font-weight: 800;
}

.hero-description {
  max-width: 680px;
  margin-bottom: 30px;
  padding-left: 18px;
  border-left: 1px solid rgba(227, 170, 85, 0.62);
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(0.96rem, 1.05vw, 1.08rem);
  line-height: 1.72;
}

.hero-buttons {
  gap: 14px;
}

.hero-buttons .btn {
  min-height: 54px;
  padding: 14px 25px;
  border-radius: 999px;
  font-weight: 700;
}

.hero-buttons .btn-primary {
  background: #e3aa55;
  color: #0f1815;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.hero-buttons .btn-primary:hover {
  background: #f2bd68;
  color: #071311;
}

.hero-buttons .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.045);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.35px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-proof span::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e3aa55;
  box-shadow: 0 0 0 4px rgba(227, 170, 85, 0.1);
}

.hero-visual {
  min-height: 440px;
}

@media (max-width: 1024px) {
  .navbar .container {
    padding-left: 28px;
    padding-right: 28px;
  }

  .nav-links {
    gap: 13px;
    margin-left: 26px;
  }

  .nav-logo img {
    transform: translateY(-3px);
  }

  .nav-links > a,
  .nav-more {
    font-size: 0.82rem;
  }

  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-content {
    min-height: 0;
  }

  .hero-visual {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 76px;
    background: rgba(3, 33, 29, 0.9);
  }

  .nav-links {
    margin-left: 0;
    background: rgba(3, 33, 29, 0.98);
    overflow-y: auto;
  }

  .nav-logo img {
    transform: translateY(-2px);
  }

  .nav-links a,
  .navbar.scrolled .nav-links a {
    color: var(--white) !important;
  }

  .nav-more {
    width: 100%;
    color: var(--white);
    font-size: 1.05rem;
  }

  .nav-more summary {
    justify-content: space-between;
    width: 100%;
  }

  .nav-dropdown {
    position: static;
    min-width: 0;
    margin-top: 12px;
    padding: 8px 0 0 15px;
    border: 0;
    border-left: 1px solid rgba(232, 173, 76, 0.32);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-dropdown::before {
    display: none;
  }

  .nav-dropdown a,
  .navbar.scrolled .nav-dropdown a {
    padding: 9px 10px;
    color: rgba(255, 255, 255, 0.74) !important;
    font-size: 0.92rem;
  }

  .nav-logo img {
    width: 54px;
    height: 48px;
  }

  .nav-logo .logo-text-en {
    font-size: 1.2rem;
  }

  .nav-logo .logo-text-ar {
    font-size: 0.65rem;
    letter-spacing: 3px;
  }

  .hero {
    height: auto;
    min-height: 620px;
    background-position: center;
  }

  .hero .container {
    min-height: 100%;
    height: 100%;
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    padding-top: 108px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 30px;
    align-items: start;
  }

  .hero-content {
    align-items: center;
    width: 100%;
    max-width: 100%;
    justify-self: center;
    text-align: center;
    transform: none;
  }

  .hero-kicker {
    align-self: center;
    margin-bottom: 16px;
    font-size: 0.66rem;
    letter-spacing: 1.5px;
  }

  .hero-badge {
    letter-spacing: 3px;
    font-size: 0.72rem;
  }

  .hero-title {
    width: 100%;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.08;
    margin-bottom: 18px;
    text-align: center;
  }

  .hero-title .hero-title-primary {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.12em;
    white-space: normal;
  }

  .hero-title-primary {
    font-size: clamp(1.8rem, 8vw, 2.35rem);
  }

  .hero-word-cycle {
    max-width: 100%;
    width: auto;
    min-width: 5ch;
    margin-bottom: 0;
    height: 1.32em;
    overflow: hidden;
    text-align: left;
    transition: none;
  }

  .hero-word-cycle .cycling-word {
    top: 0.08em;
    left: 0;
    transform: translateY(100%);
  }

  .hero-word-cycle .cycling-word.active {
    transform: translateY(0);
  }

  .hero-word-cycle .cycling-word.exit {
    transform: translateY(-100%);
  }

  .hero-title-secondary {
    display: block;
    width: 100%;
    max-width: 330px;
    margin: 7px auto 0;
    font-size: clamp(1.38rem, 6.6vw, 1.78rem);
    line-height: 1.08;
    overflow-wrap: normal;
    white-space: normal;
  }

  .hero-description {
    max-width: 100%;
    width: min(100%, 350px);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
    padding: 14px 0 0;
    border-top: 1px solid rgba(227, 170, 85, 0.42);
    border-left: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    overflow-wrap: break-word;
  }

  .hero-buttons {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    min-height: 50px;
    padding: 12px 20px;
    justify-content: center;
  }

  .hero-proof {
    justify-content: center;
    gap: 9px 18px;
    margin-top: 20px;
    font-size: 0.7rem;
  }
}

/* =============================================
   ABOUT INTRO SECTION
   ============================================= */
.about-intro-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(52px, 6vw, 80px) 0;
  background:
    radial-gradient(circle at 84% 18%, rgba(227, 170, 85, 0.12), transparent 30%),
    linear-gradient(135deg, #fbf7ed 0%, #f6f0e4 54%, #eef7f2 100%);
  color: #173f39;
}

.about-intro-section .container {
  width: min(88vw, 1320px);
  max-width: 1320px;
  padding-left: 0;
  padding-right: 0;
}

.about-intro-section::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -7%;
  width: min(46vw, 720px);
  aspect-ratio: 1;
  background: url('islamic-pattern.png') center / contain no-repeat;
  opacity: 0.045;
  pointer-events: none;
}

.about-intro-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(0, 1fr);
  gap: clamp(26px, 3vw, 44px);
  align-items: center;
}

.about-intro-visual {
  position: relative;
  isolation: isolate;
}

.about-intro-visual::before {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border: 1px solid rgba(227, 170, 85, 0.26);
  border-radius: 8px;
}

.about-intro-visual img {
  width: 100%;
  min-height: 0;
  max-height: min(54vh, 430px);
  aspect-ratio: 0.86;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  box-shadow: 0 34px 80px rgba(6, 62, 53, 0.16);
}

.about-stat-card {
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: min(292px, 74%);
  padding: 20px 22px;
  border: 1px solid rgba(6, 62, 53, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 70px rgba(6, 62, 53, 0.14);
  backdrop-filter: blur(14px);
}

.about-stat-card strong {
  display: block;
  margin-bottom: 6px;
  color: #d79635;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.8rem, 3.1vw, 2.55rem);
  font-weight: 500;
  line-height: 1;
}

.about-stat-card span {
  display: block;
  color: #536760;
  font-size: 0.92rem;
  line-height: 1.55;
}

.about-intro-content {
  max-width: 660px;
}

.about-kicker {
  margin-bottom: 14px;
  color: #d79635;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.about-intro-content h2 {
  max-width: none;
  margin-bottom: 18px;
  color: #0b4c43;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.75rem, 2.5vw, 2.65rem);
  line-height: 1.08;
  white-space: nowrap;
}

.about-arabic {
  margin-bottom: 18px;
  color: #0b5c4f;
  font-family: var(--font-ar);
  font-size: 1.25rem;
  line-height: 1.7;
}

.about-intro-content p {
  max-width: 620px;
  color: #536760;
  font-size: 0.98rem;
  line-height: 1.72;
}

.about-intro-content p + p {
  margin-top: 18px;
}

.about-intro-content em {
  color: #0b4c43;
  font-family: Georgia, 'Times New Roman', serif;
}

.about-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
  margin-top: 26px;
}

.about-checks div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #173f39;
  font-size: 0.98rem;
  line-height: 1.45;
}

.about-checks span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(227, 170, 85, 0.16);
  color: #d79635;
  font-size: 0.82rem;
  font-weight: 800;
}

@media (max-width: 1200px) {
  .about-intro-content h2 {
    white-space: normal;
  }
}

@media (max-width: 1024px) {
  .about-intro-section {
    min-height: auto;
  }

  .about-intro-section .container {
    width: min(88vw, 760px);
    padding-left: 0;
    padding-right: 0;
  }

  .about-intro-grid {
    grid-template-columns: 1fr;
  }

  .about-intro-visual {
    max-width: 560px;
    margin: 0 auto;
  }

  .about-intro-visual img {
    min-height: 0;
    max-height: 460px;
    aspect-ratio: 4 / 3;
  }

  .about-intro-content {
    max-width: 760px;
    margin: 0 auto;
  }

  .about-intro-content h2 {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .about-intro-section .container {
    width: auto;
    padding-left: var(--container-px);
    padding-right: var(--container-px);
  }

  .about-intro-section {
    padding: 64px 0;
  }

  .about-intro-grid {
    gap: 42px;
  }

  .about-intro-visual::before {
    inset: 12px -10px -10px 12px;
  }

  .about-intro-visual img {
    aspect-ratio: 1;
  }

  .about-stat-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 28px);
    margin: -46px auto 0;
  }

  .about-kicker {
    letter-spacing: 0.28em;
  }

  .about-intro-content h2 {
    font-size: clamp(2rem, 10vw, 3rem);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    text-wrap: balance;
  }

  .about-intro-content {
    text-align: center;
  }

  .about-intro-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .about-checks {
    width: min(100%, 420px);
    margin: 26px auto 0;
    justify-items: center;
  }

  .about-checks {
    grid-template-columns: 1fr;
  }

  .about-checks div {
    width: fit-content;
    max-width: 100%;
    justify-content: center;
    text-align: left;
  }
}

/* =============================================
   UNBROKEN CHAIN SECTION
   ============================================= */
.chain-section {
  position: relative;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(circle at 16% 12%, rgba(227, 170, 85, 0.16), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(13, 107, 94, 0.12), transparent 32%),
    linear-gradient(135deg, #fffaf0 0%, #f7efe1 48%, #edf7f3 100%);
  color: #073b35;
  scroll-snap-type: y proximity;
}

.chain-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(13, 107, 94, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 107, 94, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}

.chain-section .container {
  position: relative;
  z-index: 1;
  max-width: 1220px;
}

.chain-header {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 120px 0;
  text-align: center;
  scroll-snap-align: start;
}

.chain-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-bottom: 20px;
  padding: 8px 18px;
  border: 1px solid rgba(200, 152, 42, 0.42);
  border-radius: 999px;
  color: #9a6a13;
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 18px 50px rgba(13, 107, 94, 0.08);
}

.chain-title {
  margin-bottom: 24px;
  color: #073b35;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.chain-title span {
  display: block;
}

.chain-title-ar {
  margin-top: 12px;
  color: #b5811d;
  font-family: var(--font-ar);
  font-size: clamp(1.45rem, 2.8vw, 2.25rem);
  font-weight: 800;
}

.chain-opening {
  color: #264f48;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.35rem, 2.45vw, 2.35rem);
  line-height: 1.38;
}

.chain-inheritance-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0;
  overflow: hidden;
  text-align: center;
  scroll-snap-align: start;
}

.chain-inheritance-section::before,
.chain-inheritance-section::after {
  content: '';
  position: absolute;
  left: 50%;
  pointer-events: none;
}

.chain-inheritance-section::before {
  top: 50%;
  width: min(72vw, 720px);
  aspect-ratio: 1;
  border: 1px solid rgba(200, 152, 42, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(0deg) scale(0.84);
  opacity: 0;
}

.chain-inheritance-section::after {
  bottom: 22%;
  width: min(62vw, 520px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(200, 152, 42, 0.88), transparent);
  box-shadow: 0 0 28px rgba(200, 152, 42, 0.24);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  opacity: 0;
}

.chain-inheritance {
  position: relative;
  width: min(90vw, 1080px);
  margin: 0 auto;
  padding: clamp(26px, 5vw, 50px) clamp(22px, 5vw, 70px) clamp(30px, 5vw, 54px);
  border: 1px solid rgba(200, 152, 42, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 240, 0.48)),
    radial-gradient(circle at 50% 0%, rgba(227, 170, 85, 0.18), transparent 68%);
  color: #8f6415;
  font-family: var(--font-ar);
  font-size: clamp(1.8rem, 4.8vw, 4.35rem);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: 0;
  box-shadow: 0 30px 90px rgba(13, 107, 94, 0.11), 0 12px 42px rgba(200, 152, 42, 0.14);
  opacity: 0;
  overflow: hidden;
  transform: translateY(34px) scale(0.94);
}

.chain-inheritance::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(13, 107, 94, 0.1);
  border-radius: 6px;
  pointer-events: none;
}

.chain-inheritance::after {
  content: '';
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -35%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: rotate(16deg);
  pointer-events: none;
}

.chain-inheritance-section.visible::before {
  animation: chainInheritanceRing 2200ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

.chain-inheritance-section.visible::after {
  animation: chainInheritanceLine 1200ms cubic-bezier(0.22, 1, 0.36, 1) 680ms both;
}

.chain-inheritance-section.visible .chain-inheritance {
  animation: chainInheritanceReveal 1100ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both;
}

.chain-inheritance-section.visible .chain-inheritance::after {
  animation: chainInheritanceShine 1700ms ease 820ms both;
}

.chain-story {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  scroll-snap-align: start;
}

.chain-story h3 {
  margin-bottom: 14px;
  color: #073b35;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
}

.chain-story p,
.chain-closing p {
  color: #335d56;
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  line-height: 1.85;
}

.chain-emphasis {
  margin-top: 16px;
  color: #073b35 !important;
  font-weight: 800;
}

.chain-timeline {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 100px 0;
  scroll-snap-align: start;
}

.chain-timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 6%;
  right: 6%;
  width: auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(200, 152, 42, 0.78) 8%, rgba(200, 152, 42, 0.78) 92%, transparent);
  opacity: 1;
  transform: translateY(-50%);
}

.chain-stop {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  padding: 0;
  scroll-snap-align: none;
}

.chain-stop:nth-child(even) {
  transform: translateY(46px);
}

.chain-stop:nth-child(odd) {
  transform: translateY(-46px);
}

.chain-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto;
  border: 2px solid rgba(200, 152, 42, 0.85);
  border-radius: 50%;
  background: #fffaf0;
  color: #9a6a13;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 0 0 12px rgba(200, 152, 42, 0.12), 0 24px 60px rgba(13, 107, 94, 0.12);
}

.chain-card {
  max-width: none;
  width: 100%;
  min-height: auto;
  padding: 20px;
  border: 1px solid rgba(13, 107, 94, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 26px 70px rgba(13, 107, 94, 0.1);
  backdrop-filter: blur(14px);
}

.chain-card h3 {
  margin-bottom: 8px;
  color: #073b35;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  line-height: 1.35;
}

.chain-card h4 {
  margin-bottom: 12px;
  color: #9a6a13;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.chain-card p {
  color: #335d56;
  font-size: 0.84rem;
  line-height: 1.62;
}

.chain-ayah {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-left: calc(50% - 50vw);
  padding: 120px max(24px, calc((100vw - 1040px) / 2));
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(227, 170, 85, 0.14), transparent 34%),
    radial-gradient(circle at 84% 18%, rgba(13, 107, 94, 0.08), transparent 32%),
    linear-gradient(135deg, #fffaf0 0%, #f7efe1 48%, #edf7f3 100%);
  text-align: center;
  scroll-snap-align: start;
}

.chain-ayah::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('chain-pattern.png') center / 420px repeat;
  opacity: 0.08;
}

.chain-ayah::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.68), rgba(237, 247, 243, 0.78)),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.42), rgba(255, 250, 240, 0.88) 70%);
}

.chain-ayah-ar {
  color: #073b35;
  font-family: var(--font-ar);
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 800;
  line-height: 1.7;
  text-shadow: 0 18px 54px rgba(13, 107, 94, 0.12);
}

.chain-ayah-meaning {
  max-width: 840px;
  padding-top: 24px;
  border-top: 1px solid rgba(227, 170, 85, 0.62);
  color: #073b35;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.18rem, 2.1vw, 1.85rem);
  line-height: 1.55;
  text-shadow: 0 12px 36px rgba(13, 107, 94, 0.1);
}

.chain-footer {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 120px 0;
  text-align: center;
  scroll-snap-align: start;
}

.chain-closing,
.chain-footer blockquote,
.chain-cta {
  border-radius: 8px;
  border: 1px solid rgba(13, 107, 94, 0.13);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 26px 70px rgba(13, 107, 94, 0.1);
}

.chain-closing {
  padding: 30px;
}

.chain-footer blockquote {
  margin: 0;
  max-width: 980px;
  padding: clamp(34px, 5vw, 64px);
  color: #073b35;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.75rem, 3.5vw, 3.4rem);
  line-height: 1.35;
  border-top: 4px solid #c8982a;
}

.chain-mastery {
  position: relative;
  width: min(90vw, 1080px);
  margin: 0;
  padding: 22px 30px 24px;
  color: #073b35;
  font-family: var(--font-ar);
  font-size: clamp(1.5rem, 3.2vw, 2.8rem);
  font-weight: 900;
  line-height: 1.55;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  text-shadow: 0 16px 42px rgba(13, 107, 94, 0.12);
}

.chain-mastery::before,
.chain-mastery::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.chain-mastery::before {
  bottom: 0;
  width: min(72%, 430px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(200, 152, 42, 0.92), transparent);
  box-shadow: 0 0 22px rgba(200, 152, 42, 0.32);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
}

.chain-mastery::after {
  top: 10px;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(200, 152, 42, 0.26);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 170, 85, 0.16), transparent 66%);
  opacity: 0;
}

.chain-footer.visible .chain-mastery {
  animation: chainMasteryReveal 1050ms cubic-bezier(0.22, 1, 0.36, 1) 380ms both;
}

.chain-footer.visible .chain-mastery::before {
  animation: chainMasteryLine 1100ms cubic-bezier(0.22, 1, 0.36, 1) 860ms both;
}

.chain-footer.visible .chain-mastery::after {
  animation: chainMasteryHalo 1600ms ease 680ms both;
}

.chain-cta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  background: linear-gradient(135deg, rgba(255, 250, 240, 0.92), rgba(237, 247, 243, 0.9));
}

.chain-cta h3 {
  margin-bottom: 6px;
  color: #073b35;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.chain-cta p {
  color: #335d56;
}

.chain-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.chain-cta .btn-outline-light {
  border-color: rgba(13, 107, 94, 0.24);
  background: rgba(255, 255, 255, 0.64);
  color: #073b35;
}

.chain-header,
.chain-inheritance-section,
.chain-story,
.chain-timeline,
.chain-ayah,
.chain-footer {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 900ms ease, transform 900ms ease;
}

.chain-header.visible,
.chain-inheritance-section.visible,
.chain-story.visible,
.chain-timeline.visible,
.chain-ayah.visible,
.chain-footer.visible {
  opacity: 1;
  transform: translateY(0);
}

.chain-timeline.visible .chain-stop {
  animation: chainStopRise 720ms ease both;
}

.chain-timeline.visible .chain-stop:nth-child(1) { animation-delay: 80ms; }
.chain-timeline.visible .chain-stop:nth-child(2) { animation-delay: 180ms; }
.chain-timeline.visible .chain-stop:nth-child(3) { animation-delay: 280ms; }
.chain-timeline.visible .chain-stop:nth-child(4) { animation-delay: 380ms; }
.chain-timeline.visible .chain-stop:nth-child(5) { animation-delay: 480ms; }

@keyframes chainStopRise {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  to {
    opacity: 1;
  }
}

@keyframes chainInheritanceReveal {
  0% {
    opacity: 0;
    transform: translateY(34px) scale(0.94);
    filter: blur(6px);
  }
  58% {
    opacity: 1;
    transform: translateY(-5px) scale(1.015);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes chainInheritanceRing {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-8deg) scale(0.84);
  }
  42% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) rotate(10deg) scale(1);
  }
}

@keyframes chainInheritanceLine {
  0% {
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
  }
}

@keyframes chainInheritanceShine {
  from {
    left: -35%;
  }
  to {
    left: 108%;
  }
}

@keyframes chainMasteryReveal {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.96);
    filter: blur(5px);
  }
  62% {
    opacity: 1;
    transform: translateY(-4px) scale(1.01);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes chainMasteryLine {
  from {
    transform: translateX(-50%) scaleX(0);
  }
  to {
    transform: translateX(-50%) scaleX(1);
  }
}

@keyframes chainMasteryHalo {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.72);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(1.75);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chain-inheritance-section.visible::before,
  .chain-inheritance-section.visible::after,
  .chain-inheritance-section.visible .chain-inheritance,
  .chain-inheritance-section.visible .chain-inheritance::after,
  .chain-footer.visible .chain-mastery,
  .chain-footer.visible .chain-mastery::before,
  .chain-footer.visible .chain-mastery::after {
    animation: none;
  }

  .chain-inheritance-section.visible .chain-inheritance,
  .chain-footer.visible .chain-mastery {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .chain-inheritance-section.visible::before {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }

  .chain-inheritance-section.visible::after {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
  }

  .chain-footer.visible .chain-mastery::before {
    transform: translateX(-50%) scaleX(1);
  }
}

@media (max-width: 1100px) {
  .chain-timeline {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    gap: 20px;
  }

  .chain-timeline::before {
    top: 0;
    bottom: 0;
    left: 34px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, transparent, #e3aa55 8%, #e3aa55 92%, transparent);
  }

  .chain-stop {
    grid-template-columns: 68px minmax(0, 1fr);
    display: grid;
    align-items: stretch;
    min-height: auto;
    transform: none !important;
  }

  .chain-node {
    margin: 0;
    grid-column: 1;
  }

  .chain-card {
    min-height: auto;
    grid-column: 2;
  }

  .chain-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .chain-section {
    padding: 0;
  }

  .chain-header,
  .chain-inheritance-section,
  .chain-story,
  .chain-timeline,
  .chain-ayah,
  .chain-footer {
    min-height: 100vh;
    padding-top: 84px;
    padding-bottom: 84px;
  }

  .chain-story,
  .chain-ayah,
  .chain-closing,
  .chain-footer blockquote,
  .chain-cta {
    padding: 22px;
  }

  .chain-stop {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .chain-node {
    width: 54px;
    height: 54px;
    font-size: 1.1rem;
  }

  .chain-timeline::before {
    left: 27px;
  }

  .chain-card {
    padding: 18px;
  }

  .chain-inheritance {
    padding: 22px 18px 26px;
  }

  .chain-inheritance-section::before {
    width: 88vw;
  }

  .chain-inheritance-section::after {
    bottom: 20%;
    width: 72vw;
  }

  .chain-mastery {
    padding: 18px 14px 22px;
  }

  .chain-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =============================================
   LOWER PAGE LIGHT THEME
   ============================================= */
.main-courses,
.courses-section,
.about-section,
.vision-section,
.testimonials-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fbf7ed !important;
}

.main-courses::after,
.courses-section::after,
.about-section::after,
.vision-section::after,
.testimonials-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('chain-pattern.png') center / 460px repeat;
  opacity: 0.04;
  pointer-events: none;
}

.main-courses > .container,
.courses-section > .container,
.about-section > .container,
.vision-section > .container,
.testimonials-section > .container {
  position: relative;
  z-index: 1;
}

/* Keep the full story area unified from About through the last pre-form section. */
.about-intro-section,
.chain-section,
.chain-ayah,
.main-courses,
.courses-section,
.about-section,
.vision-section,
.testimonials-section {
  background: #fbf7ed !important;
  background-image: none !important;
}

.about-intro-section::before,
.chain-section::before,
.chain-ayah::before {
  inset: 0;
  top: 0;
  right: 0;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  z-index: 0;
  background: url('chain-pattern.png') center / 460px repeat !important;
  opacity: 0.04 !important;
}

.chain-ayah::after {
  background: transparent !important;
}

.about-intro-section::after,
.chain-section::after,
.chain-ayah::after {
  pointer-events: none;
}

.chain-ayah-ar {
  position: relative;
  z-index: 1;
}

/* Match the lower homepage typography to the hero language. */
.main-courses,
.courses-section,
.about-section,
.vision-section,
.testimonials-section {
  font-family: var(--font-en);
}

.main-courses .section-title,
.courses-section .section-title,
.about-section .section-title,
.vision-section .section-title,
.testimonials-section .section-title,
.featured-card .card-title,
.course-card .card-title,
.vision-card .card-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0;
}

.vision-card .card-title {
  color: var(--gray-900);
}

.main-courses .section-subtitle,
.courses-section .section-subtitle,
.about-section .about-text,
.vision-description,
.testimonials-section .section-subtitle,
.featured-card .card-desc,
.course-card .card-desc,
.vision-card .card-desc,
.testimonial-text,
.testimonial-name,
.testimonial-country,
.filter-tab,
.course-card .card-category,
.course-card .meta-item,
.course-card .card-price,
.featured-card .card-link {
  font-family: var(--font-en);
  letter-spacing: 0;
}

/* Final shared navbar brand alignment */
.navbar {
  height: 100px;
}

.navbar .container {
  height: 100%;
}

.navbar .nav-logo {
  display: flex;
  flex: 0 0 168px;
  width: 168px;
  min-width: 168px;
  height: 100%;
  align-items: center;
  justify-content: center;
  align-self: center;
  overflow: visible;
}

.navbar .nav-logo img {
  width: 180px;
  height: 112px;
  max-width: none;
  transform: none;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 7px 15px rgba(0, 0, 0, .22));
}

.navbar .nav-logo > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  min-width: 0;
}

.navbar .nav-logo .logo-text-en {
  color: #fffdf8;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .1px;
  white-space: nowrap;
}

.navbar .nav-logo .logo-text-sub {
  color: #e7ad4c;
  font-size: .58rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 2.4px;
  white-space: nowrap;
}

.navbar .nav-links {
  align-self: center;
}

.navbar .nav-links > a,
.navbar .nav-more > summary {
  display: flex;
  min-height: 44px;
  align-items: center;
}

@media (min-width: 1151px) {
  .navbar {
    height: 96px;
  }

  .navbar .container {
    width: calc(100% - clamp(160px, 14vw, 320px));
    max-width: 1500px;
    padding: 0;
  }

  .navbar .nav-logo {
    flex: 0 0 118px;
    width: 118px;
    min-width: 118px;
    justify-content: flex-start;
  }

  .navbar .nav-logo img {
    width: 118px;
    height: 82px;
  }

  .navbar .nav-links {
    flex: 1 1 auto;
    /* justify-content: flex-end; */
    gap: clamp(16px, 1.65vw, 32px);
    margin-left: clamp(48px, 7vw, 130px);
  }

  .navbar .nav-links > a,
  .navbar .nav-more,
  .navbar.scrolled .nav-links > a {
    flex: 0 0 auto;
    font-size: .92rem;
    font-weight: 600;
  }

  .navbar .nav-trial-link {
    min-height: 46px;
    margin-left: 8px;
    padding: 10px 20px !important;
  }

  .navbar .nav-more {
    margin-left: 0;
  }
}

@media (max-width: 1150px) and (min-width: 769px) {
  .navbar {
    height: 88px;
  }

  .navbar .nav-logo {
    flex-basis: 92px;
    width: 92px;
    min-width: 92px;
  }

  .navbar .nav-logo img {
    width: 92px;
    height: 66px;
    transform: none;
    object-fit: contain;
  }

  .navbar .nav-logo .logo-text-en {
    font-size: .9rem;
  }

  .navbar .nav-logo .logo-text-sub {
    font-size: .5rem;
    letter-spacing: 1.7px;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 60px;
  }

  .navbar .nav-logo {
    flex-basis: 78px;
    width: 78px;
    min-width: 78px;
  }

  .navbar .nav-logo img {
    width: 78px;
    height: 58px;
    transform: none;
    object-fit: contain;
  }

  .navbar .nav-logo .logo-text-en {
    font-size: .9rem;
  }

  .navbar .nav-logo .logo-text-sub {
    font-size: .48rem;
    letter-spacing: 1.5px;
  }
}

@media (min-width: 1300px) {
  :root {
    --home-alignment-edge: clamp(140px, 10.55vw, 200px);
  }

  .navbar .container,
  .hero .container {
    width: min(1500px, calc(100% - var(--home-alignment-edge) - var(--home-alignment-edge)));
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .navbar .nav-logo {
    justify-content: flex-start;
  }

  .navbar .nav-logo img {
    transform: translateX(-28px);
  }

  .navbar .nav-links {
    margin-left: clamp(44px, 5vw, 96px);
  }
}

/* Mobile density pass: keep course images and cards from feeling zoomed-in. */
@media (max-width: 768px) {
  :root {
    --section-py: 52px;
    --container-px: 14px;
  }

  .main-courses,
  .courses-section {
    padding: 52px 0;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .hero {
    min-height: 520px;
  }

  .hero .container {
    padding-top: 72px;
    padding-right: 16px;
    padding-bottom: 30px;
    padding-left: 16px;
  }

  .hero-title {
    max-width: 360px;
    margin: 0 auto 14px;
    text-align: center;
  }

  .hero-title .hero-title-primary {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.12em;
    white-space: nowrap;
  }

  .hero-title-primary {
    font-size: clamp(1.42rem, 6.4vw, 1.82rem);
    letter-spacing: 0;
  }

  .hero-word-cycle {
    width: 7.35ch;
    min-width: 7.35ch;
    max-width: 100%;
    margin-bottom: 0;
    height: 1.58em;
    text-align: left;
    overflow: hidden;
  }

  .hero-word-cycle .cycling-word {
    top: 0.34em;
    left: 0;
    white-space: nowrap;
    transform: translateY(100%);
  }

  .hero-word-cycle .cycling-word.active {
    transform: translateY(0);
  }

  .hero-word-cycle .cycling-word.exit {
    transform: translateY(-100%);
  }

  .hero-title-secondary {
    max-width: 300px;
    font-size: clamp(1.22rem, 5.8vw, 1.58rem);
    letter-spacing: 0;
  }

  .hero-description {
    width: min(100%, 318px);
    margin-bottom: 18px;
    padding-top: 12px;
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .hero-buttons {
    max-width: 286px;
    gap: 10px;
  }

  .hero-buttons .btn {
    min-height: 45px;
    padding: 10px 16px;
    font-size: 0.86rem;
  }

  .hero-proof {
    max-width: 330px;
    margin: 16px auto 0;
    gap: 7px 12px;
    justify-content: center;
    font-size: 0.64rem;
    line-height: 1.25;
  }

  .hero-proof span {
    gap: 6px;
  }

  .main-courses .section-header,
  .courses-section .section-header {
    margin-bottom: 28px;
  }

  .section-badge {
    margin-bottom: 10px;
    padding: 5px 13px;
    font-size: 0.72rem;
  }

  .section-title {
    margin-bottom: 10px;
    font-size: clamp(1.65rem, 7vw, 2.05rem);
    line-height: 1.14;
  }

  .section-subtitle,
  .main-courses .section-subtitle,
  .courses-section .section-subtitle {
    max-width: 34rem;
    font-size: 0.9rem;
    line-height: 1.62;
  }

  .featured-grid,
  .courses-grid {
    width: min(100%, 430px);
    margin-right: auto;
    margin-left: auto;
    gap: 16px;
  }

  .chain-story {
    min-height: auto;
    width: min(100%, 340px);
    margin-right: auto;
    margin-left: auto;
    padding: 56px 8px;
    text-align: center;
  }

  .chain-story h3 {
    max-width: 320px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 14px;
    font-size: clamp(1.55rem, 7vw, 1.95rem);
    line-height: 1.12;
  }

  .chain-story p {
    max-width: 318px;
    margin-right: auto;
    margin-left: auto;
    font-size: 0.9rem;
    line-height: 1.68;
  }

  .chain-story .chain-emphasis {
    margin-top: 16px;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .about-section {
    padding: 52px 0;
  }

  .about-section .container {
    width: min(100%, 430px);
    margin-right: auto;
    margin-left: auto;
    gap: 28px;
    text-align: center;
  }

  .about-content {
    width: min(100%, 340px);
    margin-right: auto;
    margin-left: auto;
  }

  .about-content .section-title {
    max-width: 330px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 14px;
    font-size: clamp(1.55rem, 7vw, 2rem);
    line-height: 1.14;
  }

  .about-content .about-text {
    max-width: 330px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 18px;
    font-size: 0.9rem;
    line-height: 1.68;
  }

  .about-features {
    width: min(100%, 330px);
    margin: 24px auto 0;
    gap: 10px;
  }

  .about-feature {
    min-height: 50px;
    padding: 11px 14px;
    border-radius: 10px;
    text-align: left;
  }

  .about-feature .check {
    width: 30px;
    height: 30px;
  }

  .about-feature span {
    font-size: 0.86rem;
    line-height: 1.35;
  }

  .featured-card,
  .course-card {
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(7, 59, 53, 0.07);
  }

  .featured-card {
    padding: 0 16px 20px;
  }

  .featured-card-image {
    width: calc(100% + 32px);
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0 -16px 16px;
    object-fit: contain;
    object-position: center;
    background: #f5efe4;
  }

  .featured-card .card-title {
    margin-bottom: 7px;
    font-size: 1.08rem;
    line-height: 1.25;
  }

  .featured-card .card-desc {
    margin-bottom: 14px;
    font-size: 0.84rem;
    line-height: 1.55;
  }

  .featured-card .card-link {
    font-size: 0.82rem;
  }

  .course-card .card-image {
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    background-size: contain !important;
    background-color: #fffdf8 !important;
  }

  .course-card .card-image::after {
    display: none;
  }

  .course-card .card-image .card-badge {
    display: none;
  }

  .course-card .card-body {
    padding: 16px;
  }

  .course-card .card-category {
    margin-bottom: 5px;
    font-size: 0.68rem;
  }

  .course-card .card-title {
    margin-bottom: 7px;
    font-size: 1.03rem;
    line-height: 1.28;
  }

  .course-card .card-desc {
    margin-bottom: 14px;
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .course-card .card-footer {
    align-items: flex-start;
    gap: 10px;
    padding-top: 12px;
  }

  .course-card .card-meta {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .course-card .meta-item,
  .course-card .card-price span {
    font-size: 0.72rem;
  }

  .course-card .card-price {
    font-size: 0.98rem;
  }
}

@media (max-width: 420px) {
  .featured-card {
    padding-bottom: 18px;
  }

  .featured-card-image,
  .course-card .card-image {
    aspect-ratio: 1 / 1;
  }

  .course-card .card-body {
    padding: 15px;
  }
}

/* Mobile navbar quick links: separate from the drawer list. */
.mobile-nav-quick-links {
  display: none;
}

@media (max-width: 768px) {
  .mobile-nav-quick-links {
    position: fixed;
    top: 15px;
    left: calc(50% - 86px);
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .mobile-nav-quick-links a {
    display: inline-flex;
    min-height: 29px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 1px solid rgba(231, 173, 76, 0.28);
    border-radius: 999px;
    background: rgba(3, 33, 29, 0.66);
    color: #fffdf8 !important;
    font-size: clamp(0.56rem, 2.25vw, 0.64rem);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .mobile-nav-quick-links a[href="about.html"] {
    width: 42px;
  }

  .mobile-nav-quick-links a[href="courses.html"] {
    width: 54px;
  }

  .mobile-nav-quick-links a[href="teachers.html"] {
    width: 78px;
  }

  .mobile-nav-quick-links a:hover,
  .mobile-nav-quick-links a.active {
    color: #e7ad4c !important;
  }
}

@media (max-width: 380px) {
  .mobile-nav-quick-links {
    left: calc(50% - 72px);
    gap: 5px;
  }

  .mobile-nav-quick-links a {
    min-height: 28px;
    padding: 0 5px;
    font-size: 0.53rem;
  }

  .mobile-nav-quick-links a[href="about.html"] {
    width: 38px;
  }

  .mobile-nav-quick-links a[href="courses.html"] {
    width: 49px;
  }

  .mobile-nav-quick-links a[href="teachers.html"] {
    width: 71px;
  }
}

/* Mobile drawer: flatten the More submenu into the main vertical list. */
@media (max-width: 768px) {
  .navbar .nav-links .nav-more {
    display: contents;
    margin: 0;
    color: var(--white);
  }

  .navbar .nav-links .nav-more > summary {
    display: none;
  }

  .navbar .nav-links .nav-more > .nav-dropdown {
    position: static;
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    gap: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .navbar .nav-links .nav-more > .nav-dropdown a,
  .navbar.scrolled .nav-links .nav-more > .nav-dropdown a {
    display: flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--white) !important;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }

  .navbar .nav-links .nav-more > .nav-dropdown a:hover,
  .navbar.scrolled .nav-links .nav-more > .nav-dropdown a:hover {
    background: transparent;
    color: #e7ad4c !important;
  }

  .navbar .nav-links > .nav-trial-link {
    display: flex;
    width: min(216px, calc(100% - 24px));
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin: 12px auto 0;
    padding: 0 18px !important;
    border: 1px solid rgba(231, 173, 76, 0.78);
    border-radius: 999px;
    background: transparent;
    color: #fffdf8 !important;
    font-size: 1.02rem !important;
    font-weight: 800 !important;
    line-height: 1;
    text-align: center;
    box-shadow: none;
  }

  .navbar .nav-links > .nav-trial-link:hover {
    background: rgba(231, 173, 76, 0.12);
    color: #e7ad4c !important;
  }
}

/* Homepage course-style illustration pass */
.about-intro-visual::before {
  inset: 16px -16px -16px 16px;
  border-color: rgba(13, 107, 94, 0.16);
  background: #fffdf8;
  box-shadow: 0 18px 54px rgba(7, 59, 53, 0.09);
}

.about-intro-visual img,
.featured-card-image,
.about-image-main .why-choose-image {
  background: #fffdf8;
  object-position: center;
}

.about-intro-visual img {
  max-height: none;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid rgba(13, 107, 94, 0.1);
  box-shadow: 0 28px 70px rgba(7, 59, 53, 0.13);
}

.featured-card {
  border-color: rgba(13, 107, 94, 0.1);
  box-shadow: 0 12px 34px rgba(7, 59, 53, 0.07);
}

.featured-card-image {
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid rgba(13, 107, 94, 0.08);
}

.about-image-main {
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  background: #fffdf8;
  border-color: rgba(13, 107, 94, 0.12);
  box-shadow: 0 22px 58px rgba(7, 59, 53, 0.11);
}

.about-image-main .why-choose-image {
  object-fit: cover;
}

@media (max-width: 768px) {
  .about-intro-visual img,
  .featured-card-image,
  .about-image-main,
  .featured-card-image,
  .course-card .card-image {
    aspect-ratio: 3 / 2;
  }

  .featured-card-image {
    background: #fffdf8;
  }
}

@media (max-width: 420px) {
  .featured-card-image,
  .course-card .card-image {
    aspect-ratio: 3 / 2;
  }
}
