/* ==============================================================
   ONLINE QURAN MENTOR (OQM) - CORE STYLESHEET
   Brand Identity: Emerald Green & Radiant Gold
   Architecture: Mobile-First, Accessible, High-Performance
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Cinzel:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Emerald Gradients & Accents */
  --emerald-900: #032415;
  --emerald-800: #063920;
  --emerald-700: #0A532F;
  --emerald-600: #0D6E3F;
  --emerald-500: #128B52;
  --emerald-100: #E4F5EB;
  --emerald-50:  #F2FAF5;

  /* Brand Gold Accents */
  --gold-800: #8C6A12;
  --gold-700: #A88118;
  --gold-600: #C79C28;
  --gold-500: #D4AF37;
  --gold-400: #E6C764;
  --gold-200: #F7E8BA;
  --gold-50:  #FDFBF3;
  --gold-gradient: linear-gradient(135deg, #F8E2A7 0%, #D4AF37 50%, #A88118 100%);

  /* Background & Surface Colors */
  --bg-primary: #FDFCF9;
  --bg-secondary: #F4F7F4;
  --bg-card: #FFFFFF;
  --bg-dark: #062817;

  /* Typography Colors */
  --text-main: #14221B;
  --text-muted: #4B5E55;
  --text-light: #7E9289;
  --text-inverse: #FFFFFF;

  /* UI Borders & Shadows */
  --border-light: #E2ECE5;
  --border-gold: rgba(212, 175, 55, 0.35);
  --shadow-sm: 0 2px 6px rgba(10, 83, 47, 0.05);
  --shadow-md: 0 6px 18px rgba(10, 83, 47, 0.08);
  --shadow-lg: 0 14px 34px rgba(10, 83, 47, 0.12);
  --shadow-gold: 0 6px 20px rgba(212, 175, 55, 0.28);

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Cinzel', 'Georgia', serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

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

/* Focus Visible Accessible Styling */
:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Typography Utilities */
.heading-brand {
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
}

.heading-arabic {
  font-family: var(--font-arabic);
}

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

.text-emerald {
  color: var(--emerald-700);
}

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

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 9999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--emerald-900);
  border-color: var(--gold-500);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.38);
}

.btn-emerald {
  background-color: var(--emerald-700);
  color: #FFFFFF;
}

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

.btn-outline {
  border-color: var(--emerald-700);
  color: var(--emerald-700);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--emerald-50);
  border-color: var(--emerald-800);
}

.btn-outline-gold {
  border-color: var(--gold-500);
  color: var(--gold-700);
  background-color: transparent;
}

.btn-outline-gold:hover {
  background-color: var(--gold-50);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
  border-color: #20BA5C;
}

.btn-whatsapp:hover {
  background-color: #1EBE5D;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.95rem 2.2rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
}

.badge-gold {
  background: var(--gold-50);
  color: var(--gold-800);
  border: 1px solid var(--gold-200);
}

.badge-emerald {
  background: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-100);
}

/* ==============================================================
   ANIMATED SCROLLING ANNOUNCEMENT TICKER (RIGHT-TO-LEFT LOOP)
   ============================================================== */
.ticker-bar {
  background: linear-gradient(90deg, #021F12 0%, #063920 50%, #021F12 100%);
  color: #FFFFFF;
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
  font-size: 0.85rem;
  overflow: hidden;
  position: relative;
  z-index: 1010;
}

.ticker-inner {
  display: flex;
  align-items: center;
  height: 40px;
  width: 100%;
}

.ticker-badge-wrap {
  flex-shrink: 0;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  background: #021A0F;
  padding: 0 1rem;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.35);
  border-right: 1px solid rgba(212, 175, 55, 0.3);
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-400);
}

.ticker-wrap {
  flex-grow: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-rtl 55s linear infinite;
}

.ticker-bar:hover .ticker-track,
.ticker-wrap:focus .ticker-track,
.ticker-wrap:focus-within .ticker-track {
  animation-play-state: paused;
}

.ticker-set {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.75rem;
  color: #FFFFFF;
}

.ticker-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-200);
  border: 1px solid rgba(212, 175, 55, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ticker-msg {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.ticker-cite {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-400);
  opacity: 0.9;
}

.ticker-sep {
  color: var(--gold-500);
  margin: 0 0.85rem;
  font-size: 0.75rem;
  opacity: 0.85;
}

/* Mathematically seamless continuous right-to-left loop */
@keyframes ticker-rtl {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Top Contact & Language Bar */
.top-bar {
  background-color: var(--emerald-900);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: 0.45rem 0;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 500;
}

.top-contact-link:hover {
  color: var(--gold-400);
}

.selector-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-btn {
  padding: 0.2rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.lang-btn.active, .lang-btn:hover {
  background: var(--gold-gradient);
  color: var(--emerald-900);
  border-color: var(--gold-400);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img,
.brand-logo-img {
  height: 42px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  transition: all var(--transition-fast);
}

@media (max-width: 768px) {
  .site-header .container {
    height: 64px;
  }
  .site-logo img,
  .brand-logo-img {
    height: 36px;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .site-header .container {
    height: 58px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .site-logo img,
  .brand-logo-img {
    height: 30px;
    max-width: 165px;
  }
  .header-cta-btn {
    display: none;
  }
}

@media (max-width: 360px) {
  .site-logo img,
  .brand-logo-img {
    height: 26px;
    max-width: 145px;
  }
  .mobile-toggle {
    width: 34px;
    height: 34px;
  }
}

.site-nav {
  display: none;
}

@media (min-width: 992px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
  }
}

.nav-link {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding: 0.4rem 0;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  padding: 7px 6px;
  z-index: 1050;
  transition: all var(--transition-fast);
}

.mobile-toggle:hover {
  background: var(--bg-secondary);
}

@media (min-width: 992px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  width: 100%;
  height: 2.5px;
  background: var(--emerald-800);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Mobile Menu Drawer */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 340px;
  height: 100vh;
  background: #FFFFFF;
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.15);
  z-index: 1040;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem 2rem;
  transition: right var(--transition-normal);
  overflow-y: auto;
}

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

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1rem;
}

.mobile-menu-logo img {
  height: 32px;
  width: auto;
}

.mobile-close-btn {
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 0.5rem;
}

.mobile-close-btn:hover {
  color: var(--emerald-800);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.mobile-lang-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-top: 1px solid var(--border-light);
  margin-top: 1rem;
}

.mobile-lang-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--emerald-900);
}

.mobile-lang-switch .lang-btn {
  color: var(--emerald-900);
  background: var(--bg-secondary);
  border-color: var(--border-light);
}

.mobile-lang-switch .lang-btn.active {
  background: var(--gold-gradient);
  border-color: var(--gold-500);
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 39, 22, 0.6);
  z-index: 1030;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.mobile-menu-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-link {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--emerald-700);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
              linear-gradient(180deg, #FFFFFF 0%, var(--bg-secondary) 100%);
  padding: 4.5rem 0 5rem;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-content h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.2;
  color: var(--emerald-900);
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-trust-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--emerald-800);
}

.hero-trust-item svg {
  color: var(--gold-600);
  flex-shrink: 0;
}

/* Hero Visual Composition: Modern Quran Motif (No fake photos) */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(145deg, #FFFFFF 0%, #F5FBF7 100%);
  border: 2px solid var(--border-gold);
  border-radius: 24px;
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  text-align: center;
}

.hero-visual-crest {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
}

.hero-visual-card h3 {
  font-family: var(--font-serif);
  color: var(--emerald-900);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.hero-visual-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.hero-visual-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  text-align: left;
}

.hero-stat-pill {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 0.75rem;
}

.hero-stat-pill strong {
  display: block;
  font-size: 1.05rem;
  color: var(--emerald-800);
}

.hero-stat-pill span {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--emerald-900);
  margin-top: 0.8rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Feature Cards Grid (Why Choose Us) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.8rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-400);
  box-shadow: var(--shadow-md);
}

.feature-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--emerald-50);
  color: var(--emerald-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  border: 1px solid var(--emerald-100);
}

.feature-card h3 {
  font-size: 1.25rem;
  color: var(--emerald-900);
  margin-bottom: 0.75rem;
}

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

/* How It Works Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--emerald-900);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.step-card h3 {
  font-size: 1.15rem;
  color: var(--emerald-900);
  margin-bottom: 0.6rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Courses Cards Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

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

.course-card-header {
  background: linear-gradient(135deg, var(--emerald-800) 0%, var(--emerald-900) 100%);
  color: #FFFFFF;
  padding: 1.8rem;
  position: relative;
}

.course-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--gold-gradient);
  color: var(--emerald-900);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.course-card-header h3,
.course-card-header .course-card-title {
  font-size: 1.35rem;
  color: #FFFFFF !important;
  margin-top: 0.5rem;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.course-instructor-meta {
  font-size: 0.88rem;
  color: #F8F5E8 !important;
  line-height: 1.5;
}

.course-instructor-meta strong,
.course-instructor-name {
  color: #F8F5E8 !important;
  font-weight: 700;
}

.course-instructor-meta .instructor-qual,
.course-instructor-qualification {
  color: #D4AF37 !important;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-block;
}

.course-card-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

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

.meta-pill {
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: var(--bg-secondary);
  color: var(--emerald-800);
  font-weight: 600;
}

/* Pricing Presentation within Course Cards */
.course-pricing-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
}

.pricing-row:not(:last-child) {
  border-bottom: 1px dashed var(--border-light);
}

.pricing-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.pricing-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--emerald-800);
}

.course-card-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Workshop Hero Banner / Card */
.workshop-banner {
  background: linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-800) 100%);
  border: 2px solid var(--gold-500);
  border-radius: 24px;
  padding: 3rem 2rem;
  color: #FFFFFF;
  box-shadow: var(--shadow-lg);
  margin: 2rem 0;
}

.workshop-banner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .workshop-banner-grid {
    grid-template-columns: 1.3fr 0.7fr;
  }
}

.workshop-banner h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  color: #FFFFFF;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.workshop-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
}

.workshop-info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.workshop-schedule-card {
  background: #FFFFFF;
  color: var(--text-main);
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.workshop-schedule-card h3 {
  color: var(--emerald-900);
  margin-bottom: 0.5rem;
}

.workshop-date-badge {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold-700);
  margin: 1rem 0;
}

/* FAQ Accordion */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.active {
  border-color: var(--gold-500);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.3rem 1.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--emerald-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-fast);
  color: var(--gold-600);
  flex-shrink: 0;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  padding: 0 1.6rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding-bottom: 1.4rem;
}

/* Admission / Enquiry Form */
.enquiry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 760px;
  margin: 0 auto;
}

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

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--emerald-900);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1.1rem;
  border-radius: 10px;
  border: 1.5px solid var(--border-light);
  background: #FFFFFF;
  color: var(--text-main);
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--emerald-600);
  outline: none;
  box-shadow: 0 0 0 3px rgba(10, 83, 47, 0.12);
}

/* Spam Honeypot Trap Field (Invisible) */
.honey-trap {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

.form-help {
  font-size: 0.8rem;
  color: var(--text-light);
}

.form-disclaimer-box {
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  border-radius: 10px;
  padding: 1rem;
  font-size: 0.88rem;
  color: var(--emerald-800);
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

/* Floating WhatsApp Sticky Action */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background-color: #25D366;
  color: #FFFFFF;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
  color: #FFFFFF;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #FFFFFF;
}

@media (max-width: 576px) {
  .whatsapp-float span {
    display: none;
  }
  .whatsapp-float {
    padding: 0.85rem;
    bottom: 20px;
    right: 20px;
  }
}

/* Footer */
.site-footer {
  background: var(--emerald-900);
  color: rgba(255, 255, 255, 0.8);
  padding: 4.5rem 0 2rem;
  border-top: 3px solid var(--gold-500);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 1.1rem;
  color: #FFFFFF;
  margin-bottom: 1.3rem;
  position: relative;
  padding-bottom: 0.5rem;
}

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

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
  color: var(--gold-400);
  padding-left: 4px;
}

.social-links {
  display: flex;
  gap: 0.85rem;
  margin-top: 1rem;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: var(--gold-500);
  color: var(--emerald-900);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}

/* Sections Spacer Utilities */
.section-py {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.bg-secondary {
  background-color: var(--bg-secondary);
}

.bg-white {
  background-color: #FFFFFF;
}

/* Alerts / Flash Messages */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-success {
  background-color: #DEF7EC;
  color: #03543F;
  border: 1px solid #BCF0DA;
}

.alert-danger, .alert-warning {
  background-color: #FDF2E9;
  color: #9A3412;
  border: 1px solid #FED7AA;
}

/* ==============================================================
   LIVE INSTRUCTOR PROFILE CARD
   ============================================================== */
.instructor-profile-card {
  background: #FFFFFF;
  border: 2px solid var(--border-gold);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 980px;
  margin: 0 auto 3.5rem;
  position: relative;
  overflow: hidden;
}

.instructor-profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gold-gradient);
}

.instructor-card-top {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2.5rem;
}

.instructor-badge-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--emerald-50);
  color: var(--emerald-700);
  border: 2px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-sm);
}

.instructor-arabic-name {
  font-family: var(--font-arabic, serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--emerald-900);
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.instructor-english-transliteration {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-700);
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.instructor-intro-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.instructor-qual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .instructor-qual-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .instructor-profile-card {
    padding: 2rem 1.25rem;
  }
}

.instructor-qual-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.instructor-qual-item:hover {
  transform: translateY(-2px);
  border-color: var(--gold-500);
  box-shadow: var(--shadow-sm);
  background: #FFFFFF;
}

.qual-num-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--emerald-800);
  color: var(--gold-300);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.qual-text-content {
  flex: 1;
}

.qual-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.55;
  margin: 0;
}

.qual-check-icon {
  color: var(--emerald-600);
  flex-shrink: 0;
  margin-top: 2px;
}

.instructor-card-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-light);
}

.instructor-guarantee-pill {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--emerald-800);
  background: var(--emerald-50);
  border: 1px solid rgba(10, 83, 47, 0.15);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
}

/* ==============================================================
   WORKSHOPS DUAL CARDS & REGISTRATION SECTION
   ============================================================== */
.workshops-container {
  max-width: 1040px;
  margin: 0 auto;
}

.workshops-dual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 2.25rem;
  margin-bottom: 3.5rem;
}

.workshop-feature-card {
  background: #FFFFFF;
  border: 2px solid var(--border-gold);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.workshop-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.workshop-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.workshop-feature-card h3 {
  font-size: 1.45rem;
  color: var(--emerald-900);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.workshop-desc-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex: 1;
}

.workshop-meta-list {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-light);
}

.workshop-meta-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.workshop-meta-item:last-child {
  border-bottom: none;
}

.workshop-meta-label {
  color: var(--text-muted);
  font-weight: 500;
}

.workshop-meta-val {
  color: var(--emerald-900);
  font-weight: 700;
}

.workshop-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.btn-workshop-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 44px;
  min-height: 44px;
  max-height: 48px;
  width: auto;
  padding: 0 1.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  color: #FFFFFF;
  background: var(--emerald-800);
  border: 1px solid var(--emerald-800);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-workshop-card:hover {
  background: var(--emerald-900);
  border-color: var(--emerald-900);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(13, 92, 58, 0.16);
}

.btn-workshop-card:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.workshop-reg-card {
  background: #FFFFFF;
  border: 2px solid var(--border-gold);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 780px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .workshop-reg-card {
    padding: 2rem 1.25rem;
  }
}

/* ==============================================================
   COMPREHENSIVE RESPONSIVE DESIGN SYSTEM (320px to 1920px)
   ============================================================== */

/* Base container fluidity */
@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 360px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Hero Section Responsiveness */
@media (max-width: 991px) {
  .hero-section {
    padding: 3rem 0 3.5rem;
  }
  .hero-grid {
    gap: 2rem;
  }
  .hero-visual-card {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 2.25rem 0 2.5rem;
  }
  .hero-content h1 {
    font-size: clamp(1.65rem, 6.8vw, 2.2rem);
    line-height: 1.25;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 1.8rem;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-trust-list {
    padding-top: 1rem;
    font-size: 0.88rem;
  }
  .hero-visual-card {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }
  .stat-circle-accent {
    width: 80px;
    height: 80px;
    font-size: 1.1rem;
  }
}

/* Feature & Step Cards */
@media (max-width: 576px) {
  .feature-card {
    padding: 1.6rem 1.25rem;
    border-radius: 14px;
  }
  .feature-icon-wrapper {
    width: 52px;
    height: 52px;
  }
  .feature-card h3 {
    font-size: 1.18rem;
  }
  .step-card {
    padding: 1.5rem 1.2rem;
    border-radius: 14px;
  }
}

/* Cards & Grids on Small Screens */
@media (max-width: 480px) {
  .features-grid,
  .courses-grid,
  .workshops-dual-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  .feature-card,
  .course-card,
  .step-card,
  .workshop-feature-card {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .course-card-header {
    padding: 1.25rem 1rem;
  }
  .course-card-body {
    padding: 1.1rem 0.9rem;
  }
  .course-card-header h3,
  .course-card-header .course-card-title {
    font-size: 1.15rem;
    word-break: break-word;
  }
  .course-instructor-meta {
    word-break: break-word;
  }
  .course-pricing-box {
    padding: 0.75rem 0.85rem;
  }
  .pricing-label {
    font-size: 0.82rem;
  }
  .pricing-value {
    font-size: 0.95rem;
  }
  .course-card-footer {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .course-card-footer .btn {
    width: 100%;
    justify-content: center;
  }
  .enquiry-card {
    padding: 1.4rem 0.85rem !important;
    border-radius: 14px !important;
  }
  .form-control {
    font-size: 16px !important;
  }
}

/* Workshop Dual Grid & Banners */
@media (max-width: 768px) {
  .workshop-banner {
    padding: 2rem 1.25rem;
    border-radius: 18px;
  }
  .workshop-banner-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .workshop-banner h2 {
    font-size: 1.5rem;
  }
  .workshop-feature-card {
    padding: 1.6rem 1.25rem;
    border-radius: 16px;
  }
  .workshop-reg-card {
    padding: 2rem 1.25rem;
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .workshop-card-actions {
    flex-direction: column;
    width: 100%;
  }
  .workshop-card-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .workshop-meta-box {
    padding: 1rem 0.85rem;
  }
  .workshop-meta-item {
    font-size: 0.85rem;
  }
}

/* Section Headers */
@media (max-width: 576px) {
  .section-header {
    margin-bottom: 2.25rem;
  }
  .section-header h2 {
    font-size: clamp(1.45rem, 6vw, 1.95rem);
    margin-top: 0.5rem;
  }
  .section-header p {
    font-size: 0.95rem;
  }
}

/* Buttons Responsive Scaling */
@media (max-width: 480px) {
  .btn {
    padding: 0.65rem 1.2rem;
    font-size: 0.9rem;
    white-space: normal;
  }
  .btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
  }
  .btn-lg {
    padding: 0.85rem 1.5rem;
    font-size: 0.98rem;
  }
}

/* Footer Responsive */
@media (max-width: 768px) {
  .site-footer {
    padding: 3.5rem 0 1.75rem;
  }
  .footer-grid {
    gap: 2rem;
    margin-bottom: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* Smallest Viewports Safeguard (320px - 360px) */
@media (max-width: 360px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }
  .ticker-badge-wrap {
    padding: 0 0.6rem;
  }
  .ticker-badge span {
    font-size: 0.68rem;
  }
  .top-bar-left span {
    font-size: 0.72rem;
  }
  .meta-pill {
    font-size: 0.74rem;
    padding: 0.2rem 0.5rem;
  }
  .badge {
    font-size: 0.72rem;
    padding: 0.25rem 0.65rem;
  }
}

