/* ============================================
   IQRA INSTITUTE - Islamic Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Cinzel:wght@400;600;700&family=Lora:ital,wght@0,400;0,600;1,400&family=Nunito:wght@300;400;600;700&display=swap');

/* CSS Variables */
:root {
  --emerald: #1a4a3a;
  --emerald-dark: #0f2e24;
  --emerald-light: #2d6e57;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-pale: #f5e6c0;
  --cream: #faf7f0;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-body: #3a3a3a;
  --text-light: #6a6a6a;
  --shadow-soft: 0 4px 24px rgba(26,74,58,0.1);
  --shadow-gold: 0 4px 20px rgba(201,168,76,0.25);
  --border-gold: 1px solid rgba(201,168,76,0.3);
  --radius: 4px;
  --radius-lg: 12px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Islamic Geometric Pattern (SVG background) */
.pattern-bg {
  background-color: var(--emerald-dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='rgba(201,168,76,0.12)' stroke-width='1'%3E%3Cpolygon points='40,4 76,22 76,58 40,76 4,58 4,22'/%3E%3Cpolygon points='40,14 66,27 66,53 40,66 14,53 14,27'/%3E%3Cline x1='40' y1='4' x2='40' y2='14'/%3E%3Cline x1='76' y1='22' x2='66' y2='27'/%3E%3Cline x1='76' y1='58' x2='66' y2='53'/%3E%3Cline x1='40' y1='76' x2='40' y2='66'/%3E%3Cline x1='4' y1='58' x2='14' y2='53'/%3E%3Cline x1='4' y1='22' x2='14' y2='27'/%3E%3C/g%3E%3C/svg%3E");
}

.pattern-light {
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cg fill='none' stroke='rgba(26,74,58,0.06)' stroke-width='1'%3E%3Cpolygon points='30,3 57,16 57,44 30,57 3,44 3,16'/%3E%3Cpolygon points='30,10 50,20 50,40 30,50 10,40 10,20'/%3E%3C/g%3E%3C/svg%3E");
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3 { font-family: 'Cinzel', serif; line-height: 1.2; color: var(--emerald-dark); }
h4, h5, h6 { font-family: 'Lora', serif; color: var(--emerald-dark); }
.arabic-title { font-family: 'Amiri', serif; }

.section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

.gold-line {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 1rem 0 1.5rem;
}
.gold-line.center { margin: 1rem auto 1.5rem; }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: var(--emerald-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar-top {
  background: rgba(15,46,36,0.95);
  padding: 6px 0;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}

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

.navbar-top a { color: var(--gold-pale); opacity: 0.85; transition: var(--transition); }
.navbar-top a:hover { opacity: 1; color: var(--gold-light); }
.navbar-top .social-links { display: flex; gap: 1rem; }
.navbar-top .contact-links { display: flex; gap: 1.5rem; align-items: center; }
.navbar-top .contact-links i { margin-right: 4px; color: var(--gold); }

.navbar-main {
  padding: 14px 0;
  transition: var(--transition);
}

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

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 70px; height: 70px;
  /* background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%; */
  display: flex; align-items: center; justify-content: center;
  font-family: 'Amiri', serif;
  font-size: 1.4rem; color: var(--emerald-dark);
  font-weight: 700;
  /* box-shadow: 0 0 0 3px rgba(201,168,76,0.3); */
  overflow: hidden;
  flex-shrink: 0;
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.logo-text { line-height: 1.1; }
.logo-text .name {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--white); letter-spacing: 0.05em;
}
.logo-text .tagline {
  font-size: 0.65rem; color: var(--gold);
  letter-spacing: 0.15em; text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  padding: 8px 14px;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 2px; left: 14px; right: 14px;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transition: var(--transition);
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.nav-active { color: var(--gold-light); }
.nav-links a.nav-active::after { transform: scaleX(1); }

.btn-book {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--emerald-dark) !important;
  font-weight: 700 !important;
  padding: 10px 22px !important;
  border-radius: 30px !important;
  box-shadow: var(--shadow-gold);
  transition: var(--transition) !important;
}
.btn-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(201,168,76,0.45) !important;
}
.btn-book::after { display: none !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 9px 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 8px;
  border: none;
  box-shadow: 0 3px 12px rgba(201,168,76,0.4);
  transition: var(--transition);
}
.hamburger:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(201,168,76,0.55);
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--emerald-dark); border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile-only Free Trial link inside the dropdown */
.nav-mobile-trial { display: none; }
.btn-mobile-trial {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: var(--emerald-dark) !important;
  font-weight: 700 !important;
  padding: 11px 24px !important;
  border-radius: 30px !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 16px rgba(201,168,76,0.35);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ============ HERO SECTION ============ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex; align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--emerald-dark) 0%, #1a4a3a 50%, #0f3529 100%);
}

.hero-pattern {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cg fill='none' stroke='rgba(201,168,76,0.08)' stroke-width='1'%3E%3Cpolygon points='50,5 95,27.5 95,72.5 50,95 5,72.5 5,27.5'/%3E%3Cpolygon points='50,15 85,32.5 85,67.5 50,85 15,67.5 15,32.5'/%3E%3Cpolygon points='50,25 75,37.5 75,62.5 50,75 25,62.5 25,37.5'/%3E%3Cline x1='50' y1='5' x2='50' y2='25'/%3E%3Cline x1='95' y1='27.5' x2='75' y2='37.5'/%3E%3Cline x1='95' y1='72.5' x2='75' y2='62.5'/%3E%3Cline x1='50' y1='95' x2='50' y2='75'/%3E%3Cline x1='5' y1='72.5' x2='25' y2='62.5'/%3E%3Cline x1='5' y1='27.5' x2='25' y2='37.5'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
  border-radius: 50%;
  right: -100px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

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

.hero-content {}

.hero-arabic {
  font-family: 'Amiri', serif;
  font-size: 2rem; color: var(--gold);
  margin-bottom: 0.5rem; direction: rtl;
  opacity: 0.9;
}

.hero-translation {
  font-family: 'Lora', serif;
  font-size: 0.85rem; color: var(--gold-pale);
  opacity: 0.7; font-style: italic;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  color: var(--white); line-height: 1.1;
  margin-bottom: 1rem;
}
.hero h1 span { color: var(--gold); }

.hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem; line-height: 1.8;
  margin-bottom: 2rem; max-width: 480px;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--emerald-dark);
  font-family: 'Cinzel', serif;
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.08em;
  padding: 14px 32px;
  border-radius: 30px;
  border: none; cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(201,168,76,0.5); }
.btn-primary:disabled,
.btn-primary[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  font-family: 'Cinzel', serif;
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.06em;
  padding: 13px 30px;
  border-radius: 30px;
  border: 1.5px solid rgba(255,255,255,0.35);
  cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}

.hero-features {
  display: flex; gap: 2rem; margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201,168,76,0.2);
}
.hero-feature { text-align: center; }
.hero-feature .num {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem; font-weight: 700;
  color: var(--gold);
}
.hero-feature .lbl {
  font-size: 0.75rem; color: rgba(255,255,255,0.6);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* Hero Form Panel */
.hero-form-panel {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  border: var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.hero-form-panel h3 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 0.25rem;
}
.hero-form-panel p {
  text-align: center; color: rgba(255,255,255,0.6);
  font-size: 0.85rem; margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: 0.78rem;
  color: var(--gold-pale); font-weight: 600;
  letter-spacing: 0.05em; margin-bottom: 5px;
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-group select option { background: var(--emerald-dark); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ============ CONTAINER ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 80px 0; }

/* ============ SECTION HEADERS ============ */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.section-header p { color: var(--text-light); max-width: 560px; margin: 0 auto; }

/* ============ FEATURES STRIP ============ */
.features-strip {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  padding: 28px 0;
}
.features-strip .container {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; align-items: center;
}
.feature-item {
  display: flex; align-items: center; gap: 14px;
}
.feature-item i {
  font-size: 1.8rem; color: var(--emerald-dark);
  flex-shrink: 0;
}
.feature-item h4 {
  font-family: 'Lora', serif;
  font-size: 0.9rem; color: var(--emerald-dark);
  margin-bottom: 2px;
}
.feature-item p { font-size: 0.78rem; color: rgba(15,46,36,0.7); }

/* ============ ABOUT ============ */
.about-section { background: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.about-image-wrap {
  position: relative;
}
.about-img-main {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/3; object-fit: cover;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.about-img-placeholder {
  width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-light) 100%);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
}
.about-img-placeholder .arabic-deco {
  font-family: 'Amiri', serif; font-size: 4rem;
  color: rgba(201,168,76,0.4);
  margin-bottom: 1rem;
}
.about-img-placeholder p { color: rgba(255,255,255,0.5); font-size: 0.8rem; }

.about-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--emerald-dark);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-gold);
}
.about-badge .num {
  font-family: 'Cinzel', serif;
  font-size: 2rem; font-weight: 700; line-height: 1;
}
.about-badge .txt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.about-content {}
.about-content .section-label { color: var(--gold); }
.about-content h2 { margin-bottom: 1rem; }
.about-content p { color: var(--text-light); margin-bottom: 1.5rem; }

.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.about-feature {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px;
  background: var(--cream);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}
.about-feature i { color: var(--gold); margin-top: 2px; font-size: 1rem; }
.about-feature h5 { font-size: 0.85rem; margin-bottom: 2px; }
.about-feature p { font-size: 0.78rem; color: var(--text-light); }

/* ============ COURSES ============ */
.courses-section { background: var(--cream); }
.courses-section.pattern-light {}

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

.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 1px solid rgba(201,168,76,0.1);
  display: flex; flex-direction: column;
}
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(26,74,58,0.15);
}

.course-img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover;
  background: linear-gradient(135deg, var(--emerald) 0%, #2d7a5e 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.course-img-placeholder {
  width: 100%; aspect-ratio: 16/9;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative;
}
.course-img-arabic {
  font-family: 'Amiri', serif; font-size: 2.5rem;
  color: rgba(201,168,76,0.5); margin-bottom: 8px;
}
.course-img-en {
  font-family: 'Cinzel', serif; font-size: 0.75rem;
  color: rgba(255,255,255,0.5); letter-spacing: 0.15em;
  text-transform: uppercase;
}
.course-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--gold);
  color: var(--emerald-dark);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}

.course-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.course-body h3 {
  font-family: 'Lora', serif; font-size: 1.1rem;
  color: var(--emerald-dark); margin-bottom: 0.6rem;
}
.course-body p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 1rem; flex: 1; }

.course-topics { margin-bottom: 1rem; }
.course-topic {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--text-body);
  padding: 4px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.course-topic:last-child { border-bottom: none; }
.course-topic i { color: var(--gold); font-size: 0.7rem; }

.course-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.4rem;
  border-top: 1px solid rgba(201,168,76,0.15);
  background: var(--cream);
}
.course-price {
  font-family: 'Cinzel', serif; font-size: 0.8rem;
  color: var(--text-light);
}
.btn-course {
  background: var(--emerald);
  color: var(--white);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.05em;
  padding: 8px 18px; border-radius: 20px;
  transition: var(--transition); cursor: pointer;
  border: none;
}
.btn-course:hover { background: var(--emerald-light); transform: translateY(-1px); }

/* ============ PRICING ============ */
.pricing-section { background: var(--white); }

.pricing-tabs {
  display: flex; gap: 0.5rem;
  background: var(--cream);
  padding: 6px; border-radius: 40px;
  width: fit-content; margin: 0 auto 2.5rem;
  border: var(--border-gold);
}
.tab-btn {
  padding: 10px 24px;
  border-radius: 30px;
  border: none; cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem; font-weight: 700;
  color: var(--text-light);
  background: transparent;
  transition: var(--transition);
}
.tab-btn.active {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(26,74,58,0.3);
}

.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.pricing-tab-content { display: none; }
.pricing-tab-content.active { display: block; }

.price-card {
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  background: var(--cream);
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(26,74,58,0.12);
  border-color: var(--gold);
}

.price-header {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-light) 100%);
  padding: 1.2rem;
  text-align: center;
}
.price-header h3 {
  font-family: 'Cinzel', serif;
  color: var(--white); font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.price-body { padding: 1.2rem; }
.price-main {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
  border: var(--border-gold);
}
.price-main .amount {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem; font-weight: 700;
  color: var(--emerald-dark);
}
.price-main .period { font-size: 0.75rem; color: var(--text-light); }

.price-discounts { margin-bottom: 1rem; }
.price-discounts h5 {
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gold);
  margin-bottom: 0.5rem; text-align: center;
}
.discount-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 0.8rem;
}
.discount-row:last-child { border-bottom: none; }
.discount-badge {
  background: rgba(201,168,76,0.15);
  color: var(--gold);
  font-size: 0.68rem; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
}

.price-features { margin-bottom: 1.2rem; }
.price-feature {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; padding: 5px 0;
  color: var(--text-body);
}
.price-feature i { color: var(--gold); font-size: 0.75rem; }

.price-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.btn-book-now, .btn-trial {
  padding: 10px; border-radius: var(--radius);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.04em; cursor: pointer;
  transition: var(--transition); border: none;
  font-family: 'Nunito', sans-serif;
}
.btn-book-now {
  background: var(--emerald);
  color: var(--white);
}
.btn-book-now:hover { background: var(--emerald-light); }
.btn-trial {
  background: transparent;
  color: var(--emerald);
  border: 1.5px solid var(--emerald);
}
.btn-trial:hover { background: var(--emerald); color: var(--white); }

/* ============ TESTIMONIALS ============ */
.testimonials-section {
  background: var(--emerald-dark);
  position: relative; overflow: hidden;
}
.testimonials-section .pattern-overlay {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='rgba(201,168,76,0.06)' stroke-width='1'%3E%3Cpolygon points='40,4 76,22 76,58 40,76 4,58 4,22'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.testimonials-section .section-header h2 { color: var(--white); }
.testimonials-section .section-header p { color: rgba(255,255,255,0.6); }

.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  position: relative; transition: var(--transition);
}
.testimonial-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}
.quote-mark {
  font-family: 'Amiri', serif; font-size: 4rem;
  color: var(--gold); opacity: 0.3;
  line-height: 1; margin-bottom: -1rem;
}
.testimonial-text {
  font-family: 'Lora', serif;
  color: rgba(255,255,255,0.85);
  font-style: italic; line-height: 1.7;
  margin-bottom: 1.5rem;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-size: 1.2rem;
  color: var(--emerald-dark); font-weight: 700;
  flex-shrink: 0;
}
.author-name {
  font-family: 'Lora', serif; color: var(--gold);
  font-weight: 600;
}
.author-country { font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.stars { color: var(--gold); font-size: 0.8rem; margin-bottom: 2px; }

/* ============ CONTACT ============ */
.contact-section { background: var(--cream); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 4rem; align-items: start;
}
.contact-info h2 { margin-bottom: 0.5rem; }
.contact-info > p { color: var(--text-light); margin-bottom: 2rem; }
.contact-item {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-icon i { color: var(--gold); font-size: 1rem; }
.contact-item h5 {
  font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-light);
  margin-bottom: 3px;
}
.contact-item p, .contact-item a {
  color: var(--text-body); font-size: 0.9rem;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  border: var(--border-gold);
}
.contact-form-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem; color: var(--emerald-dark);
  margin-bottom: 0.25rem;
}
.contact-form-card > p { color: var(--text-light); font-size: 0.85rem; margin-bottom: 1.5rem; }

.form-group-light label {
  display: block; font-size: 0.78rem;
  color: var(--emerald-dark); font-weight: 700;
  letter-spacing: 0.04em; margin-bottom: 5px;
  text-transform: uppercase;
}
.form-group-light input,
.form-group-light select,
.form-group-light textarea {
  width: 100%;
  background: var(--cream);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius);
  padding: 11px 14px;
  color: var(--text-dark);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  margin-bottom: 1rem;
}
.form-group-light input:focus,
.form-group-light select:focus,
.form-group-light textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

/* ============ FAQs ============ */
.faqs-section { background: var(--white); }
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; max-width: 780px; margin: 0 auto; }
.faq-item {
  border: var(--border-gold);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  background: var(--cream);
  transition: var(--transition);
}
.faq-question:hover { background: var(--gold-pale); }
.faq-question h4 {
  font-family: 'Lora', serif; font-size: 0.9rem;
  color: var(--emerald-dark);
}
.faq-question i { color: var(--gold); transition: var(--transition); flex-shrink: 0; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
  display: none; padding: 1rem 1.5rem;
  font-size: 0.85rem; color: var(--text-light);
  border-top: var(--border-gold);
  background: var(--white);
}
.faq-item.open .faq-answer { display: block; }

/* ============ FOOTER ============ */
footer {
  background: var(--emerald-dark);
  position: relative; overflow: hidden;
}
footer::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='rgba(201,168,76,0.05)' stroke-width='1'%3E%3Cpolygon points='40,4 76,22 76,58 40,76 4,58 4,22'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.footer-main {
  padding: 60px 0 40px;
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .logo { margin-bottom: 1.2rem; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.85rem; line-height: 1.7; margin-bottom: 1.2rem; }

.footer-social { display: flex; gap: 0.6rem; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.3);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: var(--transition); font-size: 0.85rem;
}
.social-btn:hover {
  background: var(--gold); color: var(--emerald-dark);
  border-color: var(--gold);
}

.footer-col h4 {
  font-family: 'Cinzel', serif; color: var(--white);
  font-size: 0.85rem; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 1.2rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  color: rgba(255,255,255,0.55); font-size: 0.85rem;
  display: flex; align-items: center; gap: 6px;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-links a i { font-size: 0.7rem; color: var(--gold); }

.footer-contact-item {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.55); font-size: 0.82rem;
}
.footer-contact-item i { color: var(--gold); margin-top: 3px; }

.footer-bottom {
  border-top: 1px solid rgba(201,168,76,0.15);
  padding: 20px 0;
  position: relative; z-index: 1;
}
.footer-bottom .container {
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.78rem; }
.footer-bottom a { color: var(--gold); }

/* ============ MODALS ============ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75); z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 600px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(30px); transition: var(--transition);
  border-top: 4px solid var(--gold);
}
.modal-overlay.open .modal-box { transform: translateY(0); }

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(201,168,76,0.15);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-light) 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-header h3 { font-family: 'Cinzel', serif; color: var(--white); }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none; cursor: pointer;
  color: var(--white); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.3); }
.modal-body { padding: 2rem; }

/* ============ STATS ============ */
.stats-section {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
  padding: 60px 0;
  position: relative; overflow: hidden;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; text-align: center;
}
.stat-item {}
.stat-num {
  font-family: 'Cinzel', serif; font-size: 2.8rem; font-weight: 700;
  color: var(--gold); line-height: 1;
}
.stat-label {
  color: rgba(255,255,255,0.7); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.1em; margin-top: 6px;
}

/* ============ SCROLL TO TOP ============ */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--emerald-dark);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
  opacity: 0; pointer-events: none;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { transform: translateY(-4px); }

/* ============ PAGE HERO (inner pages) ============ */
.page-hero {
  min-height: 320px;
  display: flex; align-items: center;
  position: relative;
  padding-top: 100px;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--emerald-dark) 0%, var(--emerald) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.65); }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1rem; }
.breadcrumb a, .breadcrumb span {
  font-size: 0.8rem; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.55);
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--gold); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero { min-height: 85vh; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-form-panel { max-width: 500px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: center;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--emerald-dark);
    padding: 1.2rem 1rem 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    border-top: 2px solid rgba(201,168,76,0.2);
    gap: 2px;
  }
  /* Show the Free Trial item only when menu is open */
  .nav-links.open .nav-mobile-trial { display: block; margin-top: 10px; }
  .hamburger { display: flex; }
  .navbar-top .contact-links { display: none; }

  /* Hero responsive on mobile */
  .hero { min-height: 75vh; }
  .hero-img-bg img { object-position: center center; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 0.95rem; }
  .hero-arabic-verse { font-size: 1.6rem !important; }
  .hero-cta { flex-direction: column; gap: 0.75rem; }
  .hero-cta a { width: 100%; text-align: center; justify-content: center; }
  .features-strip .container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-badge { position: relative; bottom: auto; right: auto; display: inline-block; margin-top: 1rem; }
  .about-features { grid-template-columns: 1fr; }
  .pricing-tabs { flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; gap: 0.5rem; text-align: center; }
  .courses-grid { grid-template-columns: 1fr; }
}

/* Small phones */
@media (max-width: 480px) {
  .hero { min-height: 65vh; }
  .hero h1 { font-size: 1.65rem; }
  .hero-arabic-verse { font-size: 1.3rem !important; }
}

/* ============ NEWSLETTER STRIP ============ */
.newsletter-section {
  background: linear-gradient(135deg, var(--gold) 0%, #d4a84b 100%);
  padding: 50px 0;
}
.newsletter-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.newsletter-inner h3 {
  font-family: 'Cinzel', serif; color: var(--emerald-dark);
  font-size: 1.3rem; margin-bottom: 4px;
}
.newsletter-inner p { color: rgba(15,46,36,0.7); font-size: 0.85rem; }
.newsletter-form { display: flex; gap: 0.5rem; flex-shrink: 0; }
.newsletter-form input {
  padding: 12px 18px; border-radius: 30px;
  border: 2px solid rgba(15,46,36,0.2);
  font-family: 'Nunito', sans-serif; font-size: 0.9rem;
  outline: none; width: 260px;
  background: rgba(255,255,255,0.7);
}
.newsletter-form input:focus { border-color: var(--emerald); background: var(--white); }
.newsletter-form button {
  padding: 12px 24px; border-radius: 30px;
  background: var(--emerald-dark); color: var(--white);
  font-weight: 700; font-size: 0.85rem;
  border: none; cursor: pointer; transition: var(--transition);
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--emerald); }

/* ============ PAYMENT PAGES ============ */
.payment-page {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 2rem;
}
.payment-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 3rem; max-width: 520px; width: 100%;
  text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  border-top: 6px solid;
}
.payment-card.success { border-color: #2d9a5e; }
.payment-card.failure { border-color: #c0392b; }
.payment-icon { font-size: 4rem; margin-bottom: 1rem; }
.payment-card h2 { margin-bottom: 1rem; }
.payment-card p { color: var(--text-light); margin-bottom: 1.5rem; }

/* ============ TERMS PAGE ============ */
.terms-content h2 { font-size: 1.4rem; margin: 2rem 0 0.8rem; color: var(--emerald); }
.terms-content p { color: var(--text-light); margin-bottom: 1rem; line-height: 1.8; }
.terms-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.terms-content ul li { color: var(--text-light); margin-bottom: 0.4rem; }

/* ============ REGISTRATION PAGE ============ */
.reg-page { padding: 120px 0 60px; }
.reg-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.5fr;
  max-width: 900px; margin: 0 auto;
  border: var(--border-gold);
}
.reg-sidebar {
  background: linear-gradient(160deg, var(--emerald-dark) 0%, var(--emerald) 100%);
  padding: 3rem 2rem;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.reg-sidebar::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpolygon points='30,3 57,16 57,44 30,57 3,44 3,16' fill='none' stroke='rgba(201,168,76,0.1)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}
.reg-sidebar h3 {
  font-family: 'Cinzel', serif; color: var(--white);
  font-size: 1.2rem; margin-bottom: 1rem;
  position: relative; z-index: 1;
}
.reg-sidebar p { color: rgba(255,255,255,0.65); font-size: 0.85rem; position: relative; z-index: 1; margin-bottom: 1.5rem; }
.reg-features-list { list-style: none; position: relative; z-index: 1; }
.reg-features-list li {
  display: flex; gap: 10px; align-items: center;
  color: rgba(255,255,255,0.75); font-size: 0.82rem;
  padding: 6px 0;
}
.reg-features-list li i { color: var(--gold); }
.reg-form { padding: 3rem; }
.reg-form h2 {
  font-family: 'Cinzel', serif; font-size: 1.4rem;
  color: var(--emerald-dark); margin-bottom: 0.25rem;
}
.reg-form > p { color: var(--text-light); font-size: 0.85rem; margin-bottom: 2rem; }

@media (max-width: 768px) {
  .reg-card { grid-template-columns: 1fr; }
  .reg-sidebar { padding: 2rem; }
  .newsletter-inner { flex-direction: column; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-form input { width: 100%; }
}

/* ============ HERO IMAGE BACKGROUND ============ */
.hero-img-bg {
  position: absolute; inset: 0;
  overflow: hidden;
}
.hero-img-bg img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  object-position: center top;
}
/* Fallback gradient if image fails */
.hero-img-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--emerald-dark) 0%, #1a4a3a 50%, #0f3529 100%);
  z-index: -1;
}

/* ============ COURSES TICKER / MARQUEE ============ */
.courses-ticker {
  background: var(--emerald-dark);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid rgba(201,168,76,0.3);
  height: 42px;
  overflow: hidden;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: stretch;
}
.ticker-label {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--emerald-dark);
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  z-index: 3;
}
.ticker-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}
.ticker-viewport::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 50px;
  background: linear-gradient(to left, var(--emerald-dark), transparent);
  pointer-events: none;
  z-index: 2;
}
.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: marqueeScroll 40s linear infinite;
  will-change: transform;
}
.ticker-track:hover {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 22px;
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  border-right: 1px solid rgba(201,168,76,0.25);
  line-height: 42px;
  transition: color 0.2s;
}
.ticker-item:hover { color: var(--gold-light); }
.ticker-item i {
  color: var(--gold);
  font-size: 0.75rem;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,30,22,0.55) 0%,
    rgba(15,46,36,0.45) 40%,
    rgba(10,25,18,0.50) 100%
  );
  z-index: 1;
}

/* Override the old .hero-bg since we now use .hero-img-bg */
.hero-bg { display: none; }
.hero-pattern { z-index: 2; }
.hero-glow { z-index: 2; }
.hero-ornament { z-index: 2; }
.hero .container { z-index: 3; }

/* ============ ENHANCED ISLAMIC HERO ============ */

/* Islamic arch frame on hero */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: linear-gradient(90deg,
    transparent 0%, var(--gold) 15%, var(--gold-light) 30%,
    transparent 50%,
    var(--gold-light) 70%, var(--gold) 85%, transparent 100%
  );
  z-index: 10;
  opacity: 0.8;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg,
    transparent, var(--gold), transparent
  );
  z-index: 10;
  opacity: 0.6;
}

/* Islamic geometric border decoration */
.hero-islamic-border {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 4;
  pointer-events: none;
  border: 2px solid rgba(201,168,76,0.15);
  margin: 20px;
  border-radius: 0;
}
.hero-islamic-border::before {
  display: none;
}

/* Corner ornaments */
.hero-corner {
  position: absolute;
  width: 80px; height: 80px;
  z-index: 5;
  pointer-events: none;
  opacity: 0.25;
}
.hero-corner svg { width: 100%; height: 100%; }
.hero-corner.top-left { top: 30px; left: 30px; }
.hero-corner.top-right { top: 30px; right: 30px; transform: scaleX(-1); }
.hero-corner.bottom-left { bottom: 30px; left: 30px; transform: scaleY(-1); }
.hero-corner.bottom-right { bottom: 30px; right: 30px; transform: scale(-1,-1); }

/* Hero content text shadow for better readability */
.hero-content h1 {
  text-shadow: 0 2px 20px rgba(0,0,0,0.5), 0 4px 40px rgba(0,0,0,0.3);
}
.hero-content p {
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}
.hero-translation {
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
  background: rgba(201,168,76,0.1);
  display: inline-block;
  padding: 6px 18px;
  border-radius: 30px;
  border: 1px solid rgba(201,168,76,0.2);
  backdrop-filter: blur(4px);
}

/* Hero stats glass effect */
.hero-features {
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem !important;
  border: 1px solid rgba(201,168,76,0.15);
}

/* Islamic crescent and star decoration near hero form */
.hero-form-panel {
  position: relative;
  border: 1px solid rgba(201,168,76,0.3) !important;
}
.hero-form-panel::before {
  content: '☪';
  position: absolute;
  top: -15px; left: 50%; transform: translateX(-50%);
  font-size: 1.5rem;
  color: var(--gold);
  background: rgba(15,46,36,0.9);
  padding: 0 12px;
  z-index: 2;
}

/* ============ ISLAMIC SECTION DECORATIONS ============ */

/* Section headers with Islamic ornament */
.section-header h2::after {
  content: '❁';
  display: block;
  font-size: 0.8rem;
  color: var(--gold);
  margin-top: 0.3rem;
  opacity: 0.5;
  letter-spacing: 0.5rem;
}

/* Islamic arch shape for about image */
.about-img-placeholder {
  border-radius: 16px 16px 50% 50% / 16px 16px 20% 20% !important;
  overflow: hidden;
  border: 3px solid rgba(201,168,76,0.3);
  box-shadow: 0 12px 40px rgba(26,74,58,0.2), 0 0 0 6px rgba(201,168,76,0.08);
}

/* Stats section Islamic pattern enhancement */
.stats-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='rgba(201,168,76,0.1)' stroke-width='1'%3E%3Cpolygon points='60,6 114,33 114,87 60,114 6,87 6,33'/%3E%3Cpolygon points='60,18 102,39 102,81 60,102 18,81 18,39'/%3E%3Cpolygon points='60,30 90,45 90,75 60,90 30,75 30,45'/%3E%3Ccircle cx='60' cy='60' r='12'/%3E%3Cline x1='60' y1='6' x2='60' y2='30'/%3E%3Cline x1='114' y1='33' x2='90' y2='45'/%3E%3Cline x1='114' y1='87' x2='90' y2='75'/%3E%3Cline x1='60' y1='114' x2='60' y2='90'/%3E%3Cline x1='6' y1='87' x2='30' y2='75'/%3E%3Cline x1='6' y1='33' x2='30' y2='45'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.stats-section .container { position: relative; z-index: 1; }

/* Stat items with gold accent */
.stat-item {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.1);
  transition: var(--transition);
}
.stat-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(201,168,76,0.25);
}

/* ============ ISLAMIC DIVIDERS BETWEEN SECTIONS ============ */
.islamic-divider {
  text-align: center;
  padding: 0;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.islamic-divider::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), transparent);
}
.islamic-divider-icon {
  position: relative;
  z-index: 1;
  background: var(--cream);
  padding: 0 15px;
  color: var(--gold);
  font-size: 1.2rem;
  opacity: 0.6;
}

/* ============ ENHANCED TESTIMONIALS ISLAMIC STYLE ============ */
.testimonial-card {
  border: 1px solid rgba(201,168,76,0.2) !important;
  position: relative;
}
.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ============ NEWSLETTER ISLAMIC ENHANCEMENT ============ */
.newsletter-section {
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cg fill='none' stroke='rgba(15,46,36,0.08)' stroke-width='1'%3E%3Cpolygon points='30,3 57,16 57,44 30,57 3,44 3,16'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* ============ FOOTER ISLAMIC ENHANCEMENT ============ */
footer .footer-main::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}

/* ============ IMPROVED COURSE CARDS ============ */
.course-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26,74,58,0.10);
  transition: var(--transition);
  border: 1px solid rgba(201,168,76,0.15);
  display: flex; flex-direction: column;
  position: relative;
}
.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(26,74,58,0.18);
  border-color: rgba(201,168,76,0.35);
}

/* Course card image area - now with placeholder image slot */
.course-img-top {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #1a3a5a, #2d6a9a);
  position: relative;
  overflow: hidden;
  min-height: 240px;
}
.course-img-top img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.6s ease;
}
.course-card:hover .course-img-top img {
  transform: scale(1.08);
}
/* Fallback gradient covers when no image */
.course-img-top.arabic-gradient { background: linear-gradient(135deg,#1a4a3a,#2d7a5e); }
.course-img-top.quran-gradient  { background: linear-gradient(135deg,#1a3a5a,#2d6a9a); }
.course-img-top.islamic-gradient{ background: linear-gradient(135deg,#3a2a1a,#7a5a2d); }
.course-img-top.ijaza-gradient  { background: linear-gradient(135deg,#2a1a3a,#5a2d7a); }

/* Overlay text on card image */
.course-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,25,18,0.85) 0%, rgba(10,25,18,0.3) 40%, transparent 70%);
  display: flex; flex-direction: column;
  justify-content: flex-end; align-items: flex-start;
  padding: 18px 20px;
}
.course-img-overlay .course-category {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold); margin-bottom: 4px;
}
.course-img-overlay .course-title-img {
  font-family: 'Lora', serif;
  font-size: 1.1rem; color: var(--white);
  font-weight: 600; line-height: 1.2;
}
.course-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--gold);
  color: var(--emerald-dark);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px;
  box-shadow: 0 2px 8px rgba(201,168,76,0.4);
  z-index: 2;
}

/* Islamic decorative divider on card */
.card-divider {
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--emerald-dark), var(--gold), var(--gold-light), var(--gold), var(--emerald-dark));
  position: relative;
}
.card-divider::after {
  content: '✦';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.6rem;
  color: var(--gold);
  background: var(--white);
  padding: 0 6px;
  line-height: 1;
}

.course-body {
  padding: 1.5rem 1.5rem 1rem;
  flex: 1; display: flex; flex-direction: column;
}
.course-body h3 {
  font-family: 'Lora', serif; font-size: 1.1rem;
  color: var(--emerald-dark); margin-bottom: 0.5rem;
}
.course-body > p {
  font-size: 0.84rem; color: var(--text-light);
  margin-bottom: 1rem; flex: 1; line-height: 1.7;
}

.course-topics {
  margin-bottom: 1rem;
  border-top: 1px solid rgba(201,168,76,0.12);
  padding-top: 0.8rem;
}
.course-topic {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--text-body);
  padding: 5px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.course-topic:last-child { border-bottom: none; }
.course-topic i { color: var(--gold); font-size: 0.65rem; flex-shrink:0; }

.course-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(201,168,76,0.15);
  background: linear-gradient(135deg, var(--cream), #f0ede4);
}
.course-price {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem; color: var(--text-light);
}
.course-price strong {
  display: block; font-size: 1.1rem;
  color: var(--emerald-dark); letter-spacing: 0.02em;
}

/* ============ DEMO CONFIRMATION PAGE ============ */
.demo-confirm-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--cream) 0%, #f0ede0 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.demo-confirm-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 80px rgba(26,74,58,0.12);
  border: var(--border-gold);
  overflow: hidden;
  max-width: 640px;
  width: 100%;
}
.demo-confirm-header {
  background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.demo-confirm-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='rgba(201,168,76,0.1)' stroke-width='1'%3E%3Cpolygon points='40,4 76,22 76,58 40,76 4,58 4,22'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}
.demo-confirm-body {
  padding: 2rem 2.5rem 2.5rem;
}
.demo-info-box {
  background: linear-gradient(135deg, #f0faf4, #e8f5ee);
  border: 1px solid rgba(45,154,94,0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.demo-info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(45,154,94,0.1);
  font-size: 0.875rem;
}
.demo-info-row:last-child { border-bottom: none; }
.demo-info-row .label { color: var(--text-light); }
.demo-info-row .value { font-weight: 700; color: var(--emerald-dark); }
.demo-credentials {
  background: linear-gradient(135deg, var(--emerald-dark), #1a4a3a);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.demo-credentials h4 {
  font-family: 'Cinzel', serif;
  color: var(--gold); font-size: 0.8rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.cred-item {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 8px; padding: 12px 14px;
  margin-bottom: 8px;
}
.cred-item i { color: var(--gold); width: 18px; text-align: center; }
.cred-item span { font-size: 0.82rem; color: rgba(255,255,255,0.6); width: 80px; }
.cred-item strong { color: var(--white); font-family: monospace; letter-spacing: 0.05em; }

/* ============ PAGE-SPECIFIC ISLAMIC PATTERNS ============ */
.islamic-page-hero {
  min-height: 420px;
  position: relative;
  display: flex; align-items: flex-end;
  overflow: hidden;
  padding-bottom: 0;
}
.islamic-page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: var(--emerald-dark);
}
.islamic-page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,30,22,0.6) 0%,
    rgba(10,30,22,0.85) 60%,
    rgba(10,30,22,0.97) 100%
  );
}
.islamic-page-hero-pattern {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cg fill='none' stroke='rgba(201,168,76,0.07)' stroke-width='1'%3E%3Cpolygon points='50,5 95,27.5 95,72.5 50,95 5,72.5 5,27.5'/%3E%3Cpolygon points='50,15 85,32.5 85,67.5 50,85 15,67.5 15,32.5'/%3E%3C/g%3E%3C/svg%3E");
}
.islamic-page-hero-content {
  position: relative; z-index: 2;
  padding: 100px 0 60px;
  width: 100%;
}

/* Course Page Enhancements */
.course-page-divider {
  width: 100%; height: 6px;
  background: linear-gradient(90deg, var(--emerald-dark), var(--gold), var(--emerald-light));
  opacity: 0.6;
}
.course-feature-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(26,74,58,0.2);
}
.course-feature-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 1.2rem; background: var(--white);
  border-radius: 12px; border: 1px solid rgba(201,168,76,0.12);
  box-shadow: 0 2px 12px rgba(26,74,58,0.06);
  transition: var(--transition);
}
.course-feature-card:hover {
  border-color: rgba(201,168,76,0.3);
  box-shadow: 0 6px 24px rgba(26,74,58,0.12);
}
.course-feature-card h5 {
  font-family: 'Lora', serif;
  color: var(--emerald-dark); margin-bottom: 4px;
  font-size: 0.95rem;
}
.course-feature-card p {
  font-size: 0.8rem; color: var(--text-light); line-height: 1.6;
}

/* Ornamental section separator */
.ornament-sep {
  text-align: center; margin: 2rem 0;
  color: var(--gold); font-size: 1.2rem;
  letter-spacing: 1rem;
  opacity: 0.5;
}


/* ============ ENHANCED PAGE HERO FOR COURSE PAGES ============ */
.page-hero {
  min-height: 420px !important;
}
.page-hero-bg {
  background: linear-gradient(135deg, var(--emerald-dark) 0%, #1a5040 100%) !important;
}
/* Course-specific image backgrounds - add class to page-hero-bg */
.page-hero-bg {
  position: absolute; inset: 0;
  overflow: hidden;
}
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.page-hero-bg.quran-hero  { background: linear-gradient(135deg,#1a3a5a,#2d6a9a); }
.page-hero-bg.arabic-hero  { background: linear-gradient(135deg,#1a4a3a,#2d7a5e); }
.page-hero-bg.islamic-hero { background: linear-gradient(135deg,#3a2a1a,#7a5a2d); }
.page-hero-bg.ijaza-hero   { background: linear-gradient(135deg,#2a1a3a,#5a2d7a); }
/* Dark overlay on course hero image */
.page-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,30,22,0.55) 0%,
    rgba(10,30,22,0.75) 60%,
    rgba(10,30,22,0.92) 100%
  );
}
/* Islamic geometric overlay on page hero */
.page-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cg fill='none' stroke='rgba(201,168,76,0.07)' stroke-width='1'%3E%3Cpolygon points='50,5 95,27.5 95,72.5 50,95 5,72.5 5,27.5'/%3E%3Cpolygon points='50,20 80,35 80,65 50,80 20,65 20,35'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-hero .container { z-index: 2 !important; position: relative !important; }

/* Course hero decorative accent line */
.page-hero h1::before {
  content: '';
  display: block; width: 50px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin-bottom: 0.75rem;
}

/* Sidebar enhancements for course pages */
.course-sidebar-card {
  background: var(--white);
  border: var(--border-gold);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.5rem;
  position: sticky; top: 110px;
}
.course-sidebar-header {
  padding: 1.4rem;
  text-align: center;
}
.course-sidebar-body { padding: 1.5rem; }
.sidebar-price {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem; color: var(--emerald-dark);
  text-align: center; margin-bottom: 1rem;
}
.sidebar-price span { font-size: 0.7rem; color: var(--text-light); font-family: 'Nunito', sans-serif; }

/* Course detail rows in sidebar */
.sidebar-detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(201,168,76,0.1);
  font-size: 0.82rem;
}
.sidebar-detail-row:last-child { border-bottom: none; }
.sidebar-detail-row .k { color: var(--text-light); }
.sidebar-detail-row .v { font-weight: 700; color: var(--emerald-dark); }

/* Ornamental divider with star motif */
.star-divider {
  text-align: center; padding: 1.5rem 0;
  font-size: 0.9rem; letter-spacing: 0.8rem;
  color: rgba(201,168,76,0.35);
}


/* ─── FORM ALERT (dark forms) ────────────────────────────────────────────── */
.form-alert-error {
  background: rgba(198,40,40,0.15);
  border: 1px solid rgba(198,40,40,0.35);
  color: #ff8a80;
  border-radius: 8px;
  padding: 11px 14px;
  margin-bottom: 16px;
  font-size: 0.87rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── RECAPTCHA JS VALIDATION ERROR ─────────────────────────────────────── */
.recaptcha-js-error {
  color: #c62828;
  font-size: 0.78rem;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  animation: fadeInErr 0.2s ease;
}
@keyframes fadeInErr {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}



/* =====================================================================
   DEMO SLOTS — تنسيق اختيار الوقت مع اليوم والتاريخ
   ===================================================================== */

/* شارة التوقيت */
.slots-tz-badge {
  font-size: 0.79rem;
  color: #3d5a40;
  background: rgba(45, 110, 87, 0.07);
  border-left: 3px solid var(--emerald-light, #2d6e57);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.slots-tz-badge i { color: var(--emerald-light, #2d6e57); flex-shrink: 0; }
.slots-tz-badge strong { color: var(--emerald-dark, #0f2e24); font-weight: 700; }

/* داخل الـ hero (خلفية داكنة) — override للألوان */
.hero-form-panel .slots-tz-badge {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: var(--gold, #c9a84c);
  color: rgba(255, 255, 255, 0.75);
}
.hero-form-panel .slots-tz-badge i { color: var(--gold-light, #e8c97a); }
.hero-form-panel .slots-tz-badge strong { color: var(--gold-light, #e8c97a); }

/* قائمة الأوقات المنسدلة */
.slots-select {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  appearance: auto;
  transition: border-color 0.18s;
}
.slots-select:focus {
  outline: none;
  border-color: var(--emerald, #2d7d46);
  box-shadow: 0 0 0 3px rgba(45,125,70,0.12);
}
.slots-select option { padding: 0.4rem; }

/* داخل الـ hero — select يأخذ لون شفاف مناسب للخلفية الداكنة */
.hero-form-panel .slots-select {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(201, 168, 76, 0.4);
  color: #fff;
}
.hero-form-panel .slots-select:focus {
  border-color: var(--gold, #c9a84c);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.hero-form-panel .slots-select option {
  background: #0f2e24;
  color: #fff;
}

/* الـ slot المختار */
[data-show="selected-slot"] {
  font-weight: 600;
  color: var(--emerald, #2d7d46);
}

/* حقول البلد والمدينة — auto-detected */
.location-auto-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* الحقل المقروء فقط (readonly) — مظهر واضح لا يُعدَّل */
input[data-autofill],
.location-auto-fields input[readonly] {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.25) !important;
  color: #fff !important;
  cursor: not-allowed !important;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  font-weight: 500;
  opacity: 1;
}
/* نفس التأثير داخل الـ modal (خلفية فاتحة) */
.modal-body input[data-autofill],
.form-group-light input[data-autofill] {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #475569 !important;
  cursor: not-allowed !important;
  pointer-events: none;
}

.auto-badge {
  display: inline-block;
  font-size: 0.68rem;
  background: #dcfce7;
  color: #166534;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  margin-left: 0.3rem;
  vertical-align: middle;
}

/* أيقونة الموقع بجانب الـ placeholder */
input[data-autofill]::placeholder { color: rgba(255,255,255,0.5); }
.form-group-light input[data-autofill]::placeholder { color: #94a3b8; }

@media (max-width: 600px) {
  .location-auto-fields { grid-template-columns: 1fr; }
  .slots-select { font-size: 0.83rem; }
}

/* ============================================================
   ENHANCEMENTS — Navbar Shrink on Scroll
   ============================================================ */
.navbar.scrolled .navbar-main { padding: 8px 0; }
.navbar.scrolled .logo-mark   { width: 52px !important; height: 52px !important; }

/* ============================================================
   ENHANCEMENTS — Hero Typing Effect
   ============================================================ */
.hero-typing-line {
  margin-bottom: 1.4rem;
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
}
.hero-typing-label { color: rgba(255,255,255,0.5); }
.hero-typing-text {
  color: var(--gold-light);
  font-weight: 700;
  border-right: 2px solid var(--gold);
  padding-right: 3px;
  animation: typingCursor 0.75s step-end infinite;
}
@keyframes typingCursor {
  0%, 100% { border-color: var(--gold); }
  50%       { border-color: transparent; }
}

/* ============================================================
   ENHANCEMENTS — Featured Pricing Card
   ============================================================ */
.price-card.featured {
  border: 2px solid var(--gold) !important;
  box-shadow: 0 12px 40px rgba(201,168,76,0.28);
  transform: translateY(-6px);
  z-index: 2;
  position: relative;
  overflow: visible;
}
.price-card.featured::before {
  content: '✦ Most Popular';
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--emerald-dark);
  font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 14px; border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(201,168,76,0.4);
}
.price-card.featured .price-header {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%) !important;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.price-card.featured .price-header h3 { color: var(--emerald-dark) !important; }
.price-card.featured:hover { transform: translateY(-12px); }

/* ============================================================
   ENHANCEMENTS — Scroll-to-Top Progress Ring
   ============================================================ */
.scroll-top { overflow: visible !important; }

.scroll-top .progress-ring {
  position: absolute;
  top: -4px; left: -4px;
  width: 52px; height: 52px;
  transform: rotate(-90deg);
  pointer-events: none;
}
.scroll-top .progress-ring circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-dasharray: 138;
  stroke-dashoffset: 138;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.12s ease;
}

/* ============================================================
   ENHANCEMENTS — Testimonials Carousel
   ============================================================ */
.testimonials-wrapper { position: relative; }

.testimonials-track-outer { overflow: hidden; }

.testimonials-track {
  display: flex;
  transition: transform 0.52s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.testimonials-track .testimonial-card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 0;
  margin: 0 0.5rem;
}

.testimonials-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2rem;
}
.testimonials-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.4);
  background: rgba(255,255,255,0.06);
  color: var(--gold);
  cursor: pointer;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.testimonials-btn:hover {
  background: var(--gold);
  color: var(--emerald-dark);
  border-color: var(--gold);
}
.testimonials-dots { display: flex; gap: 6px; align-items: center; }
.testimonials-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(201,168,76,0.3);
  cursor: pointer;
  transition: var(--transition);
}
.testimonials-dot.active {
  background: var(--gold);
  width: 22px;
  border-radius: 4px;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .testimonials-track .testimonial-card { flex: 0 0 calc(50% - 1rem); }
}
@media (max-width: 768px) {
  .testimonials-track .testimonial-card { flex: 0 0 calc(100% - 1rem); }
}

/* ============================================================
   ENHANCEMENTS — Mobile Hero Improvements
   ============================================================ */
@media (max-width: 768px) {
  /* Hide form panel — modal button covers it on mobile */
  .hero-form-panel { display: none !important; }

  /* Full-height hero */
  .hero { min-height: 100vh; min-height: 100svh; }

  /* Expand content area now that form panel is gone */
  .hero .container {
    grid-template-columns: 1fr;
    padding-top: 130px;
    padding-bottom: 60px;
    gap: 0;
  }

  /* Better image focal point on narrow screens */
  .hero-img-bg img { object-position: 65% center; }

  /* Stronger overlay for text readability on small screens */
  .hero-overlay {
    background: linear-gradient(
      165deg,
      rgba(10,28,20,0.78) 0%,
      rgba(15,46,36,0.68) 50%,
      rgba(10,25,18,0.73) 100%
    ) !important;
  }

  /* Compact logo */
  .logo-mark { width: 44px !important; height: 44px !important; }
  .logo-text .name    { font-size: 1rem; }
  .logo-text .tagline { font-size: 0.56rem; }

  /* Hide heavy decorations */
  .hero-corner          { display: none; }
  .hero-islamic-border  { margin: 6px; }

  /* Compact stats bar */
  .hero-features {
    gap: 0.8rem !important;
    padding: 1rem !important;
  }
  .hero-feature .num { font-size: 1.35rem; }
  .hero-feature .lbl { font-size: 0.62rem; }
}

@media (max-width: 480px) {
  .hero-features {
    flex-wrap: wrap;
    gap: 0.6rem !important;
  }
  .hero-feature { flex: 1 1 calc(50% - 0.6rem); }
  .hero-arabic-verse { font-size: 1.2rem !important; }
}
