/* ==========================================================================
   AMAL Quran & Arabic Academy - Primary Theme Stylesheet
   Target Domain: amallawton.org
   Palette: Luxury Emerald Green (#064e3b), Forest Green (#043927), Gold/Amber (#d97706),
            Crisp Slate (#0f172a / #1e293b), Pure White (#ffffff), Warm Pearl (#f8fafc)
   High Contrast & WCAG AAA Compliance (No washed-out gray on white)
   ========================================================================== */

:root {
  --primary: #064e3b;          /* Deep Emerald */
  --primary-dark: #043927;     /* Forest Jade */
  --primary-light: #0f766e;    /* Rich Teal */
  --accent: #d97706;           /* Royal Amber / Islamic Gold */
  --accent-hover: #b45309;     /* Deep Amber */
  --accent-light: #fef3c7;     /* Warm Gold tint */
  --text-main: #0f172a;        /* Deep Slate / Crisp Black-Navy */
  --text-muted: #334155;       /* High-contrast readable slate (7:1 contrast) */
  --text-light: #64748b;
  --bg-main: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --bg-emerald-subtle: #ecfdf5;
  --border-color: #e2e8f0;
  --border-dark: #cbd5e1;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 6px 18px rgba(6, 78, 59, 0.08);
  --shadow-lg: 0 14px 34px rgba(6, 78, 59, 0.14);
  --shadow-glow: 0 0 25px rgba(217, 119, 6, 0.25);
  --font-heading: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent);
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 880px;
}

/* Top Announcement Banner */
.top-bar {
  background: var(--primary-dark);
  color: #fef3c7;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid rgba(217, 119, 6, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.top-bar a {
  color: #ffffff;
  text-decoration: underline;
  margin-left: 8px;
}

/* Main Navigation */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.brand-logo span.badge {
  background: var(--accent);
  color: #ffffff;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fef3c7;
  border: 1px solid rgba(217, 119, 6, 0.4);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-link {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 8px 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--accent);
  border-radius: 2px;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-header-cta {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #ffffff !important;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}

.btn-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  border: 2px solid var(--primary);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--primary);
  color: #ffffff !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary);
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.08) 0%, transparent 60%),
              linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  padding: 64px 0 84px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: var(--primary-dark);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.3rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-title .highlight {
  color: var(--primary);
  position: relative;
}

.hero-title .highlight-gold {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 600px;
  font-weight: 500;
}

.hero-feature-tags {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
  margin-bottom: 36px;
}

.tag-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.tag-icon {
  width: 22px;
  height: 22px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Hero Trial Form Card */
.trial-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(6, 78, 59, 0.08);
  position: relative;
  border-top: 5px solid var(--accent);
}

.trial-card-header {
  text-align: center;
  margin-bottom: 24px;
}

.trial-card-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.trial-card-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-md);
  font-size: 0.96rem;
  font-family: inherit;
  color: var(--text-main);
  background: #fbfcfe;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(6, 78, 59, 0.12);
}

/* Phone with Country Code Integrated Field */
.phone-input-group {
  display: flex;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-md);
  background: #fbfcfe;
  overflow: hidden;
  transition: all 0.2s ease;
}

.phone-input-group:focus-within {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(6, 78, 59, 0.12);
}

.country-select {
  border: none;
  background: #f1f5f9;
  padding: 0 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  border-right: 1.5px solid var(--border-dark);
  outline: none;
  cursor: pointer;
  max-width: 130px;
}

.phone-input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  flex: 1;
  padding: 13px 14px;
}

.btn-submit-trial {
  width: 100%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 15px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit-trial:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.45);
}

.form-privacy-note {
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 12px;
}

/* Trust Stats Bar */
.trust-bar {
  background: var(--primary-dark);
  color: #ffffff;
  padding: 38px 0;
  border-top: 3px solid var(--accent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 10px;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fef08a; /* Bright Gold */
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
}

/* Competitive Advantage Section */
.advantage-section {
  padding: 90px 0;
  background: var(--bg-subtle);
}

.section-badge {
  display: inline-block;
  background: #fef3c7;
  color: var(--accent-hover);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 56px;
}

.section-title {
  font-size: 2.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

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

.advantage-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
}

.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.advantage-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--bg-emerald-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid #a7f3d0;
}

.advantage-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.advantage-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Comparison Table */
.comparison-box {
  margin-top: 56px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.table-responsive {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  background: #f1f5f9;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.comparison-table th.highlight-col {
  background: var(--primary-dark);
  color: #fef08a;
  font-size: 1.05rem;
}

.comparison-table td.highlight-col {
  background: #f0fdf4;
  font-weight: 700;
  color: var(--primary-dark);
}

/* Courses Section */
.courses-section {
  padding: 90px 0;
  background: #ffffff;
}

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

.course-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.course-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.course-card-banner {
  height: 170px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #ffffff;
}

.course-badge-top {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.course-card-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 12px;
  font-weight: 600;
}

.course-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.3;
}

.course-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.course-curriculum-list {
  list-style: none;
  margin-bottom: 24px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.course-curriculum-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 8px;
  font-weight: 500;
}

.course-curriculum-list li svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.course-card-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

.course-card-actions .btn-primary {
  flex: 1;
  text-align: center;
  background: var(--primary);
  color: #ffffff;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
}

.course-card-actions .btn-primary:hover {
  background: var(--primary-dark);
}

.course-card-actions .btn-outline {
  flex: 1;
  text-align: center;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
}

.course-card-actions .btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
}

/* How It Works Section */
.how-it-works {
  padding: 90px 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.step-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border-color);
  text-align: center;
  position: relative;
}

.step-number {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
}

.step-card h3 {
  font-size: 1.28rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Testimonials Section */
.testimonials-section {
  padding: 90px 0;
  background: #ffffff;
}

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

.review-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.review-stars {
  color: #f59e0b;
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.review-text {
  font-size: 0.98rem;
  color: var(--text-main);
  line-height: 1.65;
  margin-bottom: 22px;
  flex: 1;
  font-style: italic;
}

.reviewer-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.reviewer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-emerald-subtle);
  color: var(--primary-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #a7f3d0;
  font-size: 1.05rem;
}

.reviewer-info h4 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
}

.reviewer-info p {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
}

/* FAQ Accordion Section */
.faq-section {
  padding: 90px 0;
  background: var(--bg-subtle);
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
  color: var(--primary);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  padding-bottom: 22px;
}

/* Call to Action Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #ffffff;
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--accent);
}

.cta-banner h2 {
  color: #ffffff;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.cta-banner p {
  color: #e2e8f0;
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto 34px;
}

.btn-cta-gold {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #ffffff !important;
  font-size: 1.15rem;
  font-weight: 800;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.45);
}

.btn-cta-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.6);
}

/* Footer */
.site-footer {
  background: #022017;
  color: #94a3b8;
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 20px;
  color: #cbd5e1;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #fef08a;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: #64748b;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 34px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border-top: 5px solid var(--accent);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #e2e8f0;
  color: #ef4444;
}

/* Floating WhatsApp Widget */
.floating-whatsapp-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1500;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.whatsapp-tooltip-card {
  background: #ffffff;
  color: var(--text-main);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  border-left: 4px solid #25D366;
  max-width: 320px;
  font-size: 0.86rem;
  line-height: 1.5;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  animation: floatTooltip 4s ease-in-out infinite;
}

.whatsapp-tooltip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.whatsapp-hadith {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.whatsapp-cta-text {
  color: var(--text-muted);
}

.btn-floating-whatsapp {
  width: 64px;
  height: 64px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.btn-floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: pulseGreen 2s infinite;
  pointer-events: none;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); opacity: 0.9; }
  50% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .courses-grid, .advantage-grid, .reviews-grid, .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 24px;
    border-bottom: 2px solid var(--border-color);
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.show {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .courses-grid, .advantage-grid, .reviews-grid, .steps-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .floating-whatsapp-container {
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-tooltip-card {
    display: none; /* Keep clean on small mobile */
  }
}
