/* ==========================================================================
   AL HADIA ONLINE QURAN INSTITUTE — MASTER STYLESHEET (AUDITED & DEBUGGED)
   Official Website: https://www.alhadiaonlinequraninstitute.com
   Theme: Classical Emerald Green & Metallic Gold with Regal Islamic Typography
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & BRAND PALETTE
   -------------------------------------------------------------------------- */
:root {
  /* Deep Islamic Emerald Palette */
  --color-emerald-deep: #075C42;
  --color-forest-dark: #064530;
  --color-emerald-darker: #032b1d;
  --color-emerald-light: #0d7a58;
  --color-emerald-soft: #edf5f1;
  --color-emerald-border: rgba(7, 92, 66, 0.14);

  /* Metallic & Champagne Gold */
  --color-gold-metallic: #C6A64B;
  --color-gold-champagne: #E5D28A;
  --color-gold-light: #F7EFC5;
  --color-gold-dark: #987820;
  --border-gold-subtle: rgba(198, 166, 75, 0.32);
  --border-gold-refined: rgba(198, 166, 75, 0.5);

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #E5D28A 0%, #C6A64B 50%, #987820 100%);
  --gradient-gold-soft: linear-gradient(135deg, rgba(229, 210, 138, 0.18) 0%, rgba(198, 166, 75, 0.08) 100%);
  --gradient-emerald: linear-gradient(135deg, #075C42 0%, #064530 65%, #032b1d 100%);
  --gradient-hero-overlay: linear-gradient(180deg, rgba(3, 43, 29, 0.92) 0%, rgba(6, 69, 48, 0.88) 100%);

  /* Backgrounds & Surfaces */
  --color-ivory: #FFFDF8;
  --color-cream: #F8F5EC;
  --color-white: #FFFFFF;

  /* Typography Colors */
  --color-text-primary: #1F2D25;
  --color-text-muted: #53675C;
  --color-text-light: #83978C;
  --color-text-ivory: #FFFDF8;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(6, 69, 48, 0.05);
  --shadow-md: 0 8px 20px rgba(6, 69, 48, 0.08);
  --shadow-lg: 0 16px 36px rgba(6, 69, 48, 0.12);
  --shadow-gold: 0 6px 18px rgba(198, 166, 75, 0.22);
  --shadow-popup: 0 20px 50px rgba(0, 0, 0, 0.55);

  /* Typography Scales & Families */
  --font-serif-heading: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --font-sans-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;

  /* Sizing Tokens */
  --navbar-height: 74px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESETS & FOUNDATIONS
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background-color: var(--color-cream);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  animation: pageFadeIn 0.35s ease-out;
}

@keyframes pageFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

h1, h2, h3, h4 {
  font-family: var(--font-serif-heading);
  color: var(--color-forest-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin-bottom: 0.65rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h5, h6 {
  font-family: var(--font-sans-heading);
  color: var(--color-forest-dark);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

p {
  font-size: clamp(0.84rem, 1.3vw, 0.94rem);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 0.85rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

a {
  color: var(--color-emerald-deep);
  text-decoration: none;
  transition: color 0.22s ease;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

a:hover {
  color: var(--color-gold-dark);
}

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

/* Elegant Islamic Background Patterns */
.bg-cream-pattern {
  background-color: var(--color-cream);
  background-image: radial-gradient(rgba(7, 92, 66, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

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

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY & UTILITIES
   -------------------------------------------------------------------------- */
.text-gold {
  color: var(--color-gold-metallic) !important;
}

.text-gold-champagne {
  color: var(--color-gold-champagne) !important;
}

.text-emerald {
  color: var(--color-emerald-deep) !important;
}

.text-arabic {
  font-family: var(--font-arabic);
  direction: rtl;
}

/* Section Header Typography */
.section-header {
  margin-bottom: 2.25rem;
  overflow-wrap: break-word;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-sans-heading);
  font-size: clamp(0.7rem, 1vw, 0.78rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-gold-dark);
  margin-bottom: 0.45rem;
}

.section-title {
  font-size: clamp(1.35rem, 3.2vw, 2.15rem);
  font-weight: 700;
  color: var(--color-forest-dark);
  letter-spacing: 0.01em;
}

.section-subtitle {
  font-size: clamp(0.85rem, 1.4vw, 0.96rem);
  max-width: 620px;
  margin: 0 auto;
  color: var(--color-text-muted);
}

.gold-divider {
  width: 44px;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: 1px;
  margin: 0.75rem auto 1rem;
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.revealed .gold-divider {
  width: 64px;
}

/* --------------------------------------------------------------------------
   4. BUTTONS & INTERACTIVE ELEMENTS
   -------------------------------------------------------------------------- */
.btn-gold {
  background: var(--gradient-gold);
  color: #17241C;
  font-family: var(--font-sans-heading);
  font-weight: 600;
  font-size: clamp(0.8rem, 1.1vw, 0.88rem);
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-gold-champagne);
  box-shadow: var(--shadow-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.24s ease,
              background 0.24s ease;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(198, 166, 75, 0.36);
  color: #032b1d;
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-emerald {
  background: var(--color-emerald-deep);
  color: var(--color-ivory);
  font-family: var(--font-sans-heading);
  font-weight: 600;
  font-size: clamp(0.8rem, 1.1vw, 0.88rem);
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(229, 210, 138, 0.35);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
}

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

.btn-outline-gold {
  background: transparent;
  color: var(--color-gold-champagne);
  border: 1px solid var(--color-gold-metallic);
  font-family: var(--font-sans-heading);
  font-weight: 600;
  font-size: clamp(0.8rem, 1.1vw, 0.88rem);
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.24s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-outline-gold:hover {
  background: var(--color-gold-metallic);
  color: var(--color-forest-dark);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   5. NAVIGATION BAR
   -------------------------------------------------------------------------- */
.site-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  padding: 0.75rem 0;
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  background: rgba(4, 46, 32, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(198, 166, 75, 0.22);
}

.site-navbar.scrolled {
  padding: 0.5rem 0;
  background: #FFFDF8;
  border-bottom: 1.5px solid var(--color-gold-metallic);
  box-shadow: 0 4px 18px rgba(6, 69, 48, 0.08);
}

.navbar-brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}


.brand-logo-img {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    overflow: hidden;
    border: 2px solid #C6A64B;
    background: #FFF9ED;
    padding: 2px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.brand-logo-img:hover {
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(198, 166, 75, 0.45);
}



.navbar-brand-wrapper:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-text-group {
  display: flex;
  flex-direction: column;
}

.brand-name-primary {
  font-family: var(--font-serif-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--color-gold-champagne);
  line-height: 1.1;
  transition: color 0.25s ease;
}

.site-navbar.scrolled .brand-name-primary {
  color: var(--color-forest-dark);
}

.brand-name-sub {
  font-family: var(--font-sans-heading);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 253, 248, 0.78);
  line-height: 1.2;
}

.site-navbar.scrolled .brand-name-sub {
  color: var(--color-gold-dark);
}

.navbar-nav .nav-link {
  font-family: var(--font-sans-heading);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--color-ivory);
  padding: 0.45rem 0.8rem !important;
  position: relative;
  transition: color 0.22s ease;
}

.site-navbar.scrolled .navbar-nav .nav-link {
  color: var(--color-text-primary);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.8rem;
  right: 0.8rem;
  height: 1.5px;
  background: var(--color-gold-metallic);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--color-gold-champagne);
}

.site-navbar.scrolled .navbar-nav .nav-link:hover,
.site-navbar.scrolled .navbar-nav .nav-link.active {
  color: var(--color-emerald-deep);
}

.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link:hover::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border: 1px solid var(--border-gold-subtle);
  color: var(--color-gold-champagne);
  padding: 0.25rem 0.5rem;
  font-size: 1.25rem;
}

.site-navbar.scrolled .navbar-toggler {
  color: var(--color-forest-dark);
  border-color: var(--color-emerald-border);
}

/* --------------------------------------------------------------------------
   6. HERO BANNER
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 92vh;
  padding-top: calc(var(--navbar-height) + 2.5rem);
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
  background-color: var(--color-forest-dark);
  background-image: var(--gradient-hero-overlay), url('/assets/hero_quran.jpg');
  background-size: cover;
  background-position: center center;
  color: var(--color-ivory);
  overflow: hidden;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(198, 166, 75, 0.12);
  border: 1px solid var(--border-gold-subtle);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--color-gold-champagne);
  font-family: var(--font-sans-heading);
  font-size: clamp(0.72rem, 1vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(1.65rem, 4.4vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--color-ivory);
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
}

.hero-title .highlight-gold {
  color: var(--color-gold-champagne);
  font-style: normal;
}

.hero-subtitle {
  font-size: clamp(0.88rem, 1.35vw, 1.05rem);
  line-height: 1.65;
  color: rgba(255, 253, 248, 0.86);
  max-width: 540px;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-quick-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(229, 210, 138, 0.18);
}

.quick-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-ivory);
  font-size: clamp(0.75rem, 1.1vw, 0.84rem);
  font-family: var(--font-sans-heading);
}

.quick-feature-item i {
  color: var(--color-gold-metallic);
  font-size: 0.95rem;
}

.hero-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 0.45rem;
  background: linear-gradient(135deg, rgba(229, 210, 138, 0.35) 0%, rgba(7, 92, 66, 0.35) 100%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.hero-visual-inner {
  position: relative;
  border-radius: calc(var(--radius-lg) - 2px);
  overflow: hidden;
}

.hero-visual-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-visual-card:hover .hero-visual-img {
  transform: scale(1.02);
}

.hero-floating-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(3, 43, 29, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.floating-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-forest-dark);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.floating-badge-text {
  min-width: 0;
  overflow-wrap: break-word;
}

.floating-badge-text h6 {
  color: var(--color-gold-champagne);
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
}

.floating-badge-text p {
  color: var(--color-ivory);
  margin: 0;
  font-size: 0.74rem;
  opacity: 0.82;
}

/* --------------------------------------------------------------------------
   7. PAGE BANNER (INNER PAGES)
   -------------------------------------------------------------------------- */
.page-banner {
  position: relative;
  padding-top: calc(var(--navbar-height) + 2.75rem);
  padding-bottom: 2.75rem;
  background: var(--gradient-emerald);
  color: var(--color-ivory);
  text-align: center;
  overflow: hidden;
  border-bottom: 2px solid var(--color-gold-metallic);
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(198, 166, 75, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
}

.page-banner-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  overflow-wrap: break-word;
}

.page-banner-title {
  font-size: clamp(1.6rem, 3.8vw, 2.4rem);
  font-weight: 700;
  color: var(--color-ivory);
  margin-bottom: 0.5rem;
}

.page-banner-desc {
  font-size: clamp(0.85rem, 1.3vw, 0.98rem);
  color: var(--color-gold-light);
  margin-bottom: 1rem;
}

.breadcrumb-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans-heading);
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border-gold-subtle);
  padding: 0.3rem 0.95rem;
  border-radius: var(--radius-sm);
}

.breadcrumb-nav a {
  color: var(--color-gold-champagne);
}

.breadcrumb-nav a:hover {
  color: #fff;
}

.breadcrumb-nav span {
  color: var(--color-ivory);
  opacity: 0.65;
}

/* --------------------------------------------------------------------------
   8. TRUST & BENEFITS SECTION
   -------------------------------------------------------------------------- */
.benefit-card {
  background: var(--color-ivory);
  border: 1px solid var(--color-emerald-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.35rem;
  height: 100%;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.28s ease,
              box-shadow 0.28s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold-metallic);
  box-shadow: var(--shadow-md);
}

.benefit-icon-wrapper {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--color-emerald-soft);
  color: var(--color-emerald-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  transition: all 0.25s ease;
  border: 1px solid rgba(7, 92, 66, 0.1);
  flex-shrink: 0;
}

.benefit-card:hover .benefit-icon-wrapper {
  background: var(--gradient-gold);
  color: var(--color-forest-dark);
}

.benefit-title {
  font-family: var(--font-sans-heading);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--color-forest-dark);
  line-height: 1.3;
  overflow-wrap: break-word;
}

.benefit-card p {
  font-size: clamp(0.8rem, 1.1vw, 0.88rem);
  margin: 0;
  line-height: 1.55;
  overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   9. COURSE CARDS & FILTERS (STRICT OVERFLOW CONTROL)
   -------------------------------------------------------------------------- */
.course-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  background: var(--color-ivory);
  border: 1px solid var(--color-emerald-border);
  color: var(--color-forest-dark);
  font-family: var(--font-sans-heading);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.22s ease;
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--color-gold-metallic);
  color: var(--color-emerald-deep);
}

.filter-btn.active {
  background: var(--color-emerald-deep);
  color: var(--color-ivory);
  border-color: var(--color-emerald-deep);
  box-shadow: var(--shadow-sm);
}

.course-card {
  background: var(--color-ivory);
  border: 1px solid var(--color-emerald-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.28s ease,
              box-shadow 0.28s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold-metallic);
  box-shadow: var(--shadow-md);
}

.course-card-header {
  padding: 1.15rem 1.15rem 0.65rem;
  background: linear-gradient(180deg, #FBF8F0 0%, var(--color-ivory) 100%);
  border-bottom: 1px solid rgba(7, 92, 66, 0.06);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  min-width: 0;
}

.course-card-header-text {
  flex: 1 1 auto;
  min-width: 0;
}

.course-badge-category {
  font-family: var(--font-sans-heading);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
}

.course-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-forest-dark);
  color: var(--color-gold-champagne);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  border: 1px solid var(--border-gold-subtle);
  transition: transform 0.24s ease, background 0.24s ease;
}

.course-card:hover .course-icon-badge {
  transform: scale(1.05);
  background: var(--color-emerald-deep);
}

.course-card-body {
  padding: 1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.course-title {
  font-family: var(--font-sans-heading);
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
  font-weight: 700;
  color: var(--color-forest-dark);
  margin-bottom: 0.35rem;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.course-desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 0.85rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.course-outcomes {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.course-outcomes li {
  font-size: 0.76rem;
  color: var(--color-text-primary);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.course-outcomes li i {
  color: var(--color-gold-dark);
  font-size: 0.76rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.course-card-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(7, 92, 66, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  flex-wrap: wrap;
  min-width: 0;
}

.course-card-footer .btn-trial {
  flex: 1 1 auto;
  min-width: 120px;
  text-align: center;
  font-size: 0.78rem;
  padding: 0.45rem 0.8rem;
  white-space: normal;
}

.course-card-footer .btn-outline-secondary {
  font-size: 0.75rem;
  padding: 0.4rem 0.65rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   10. STEP PROCESS & WHY CHOOSE US
   -------------------------------------------------------------------------- */
.step-card {
  position: relative;
  background: var(--color-ivory);
  border: 1px solid var(--color-emerald-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.35rem;
  height: 100%;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease;
  min-width: 0;
  overflow-wrap: break-word;
}

.step-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-gold-metallic);
}

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--gradient-gold);
  color: var(--color-forest-dark);
  border-radius: 50%;
  font-family: var(--font-sans-heading);
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
}

.step-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-emerald-soft);
  color: var(--color-emerald-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin: 0.4rem auto 0.9rem;
  flex-shrink: 0;
}

.step-title {
  font-family: var(--font-sans-heading);
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

/* Feature Checklist Item */
.feature-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  min-width: 0;
}

.feature-check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: var(--color-forest-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-check-text {
  min-width: 0;
  overflow-wrap: break-word;
}

.feature-check-text h6 {
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
  font-weight: 700;
}

.feature-check-text p {
  font-size: 0.82rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   11. TESTIMONIALS & FEEDBACK
   -------------------------------------------------------------------------- */
.testimonial-card {
  background: var(--color-ivory);
  border: 1px solid var(--color-emerald-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: break-word;
}

.quote-icon {
  font-family: Georgia, serif;
  font-size: 2rem;
  color: var(--color-gold-champagne);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.testimonial-text {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  font-style: italic;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  overflow-wrap: break-word;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid rgba(7, 92, 66, 0.06);
  padding-top: 0.85rem;
  min-width: 0;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-emerald-deep);
  color: var(--color-gold-champagne);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid var(--color-gold-metallic);
  flex-shrink: 0;
}

.author-info {
  min-width: 0;
  overflow-wrap: break-word;
}

.author-info h6 {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
}

.author-info span {
  font-size: 0.74rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   12. ACCORDION (FAQ)
   -------------------------------------------------------------------------- */
.faq-accordion .accordion-item {
  background: var(--color-ivory);
  border: 1px solid var(--color-emerald-border);
  border-radius: var(--radius-sm) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.faq-accordion .accordion-button {
  font-family: var(--font-sans-heading);
  font-size: clamp(0.86rem, 1.2vw, 0.96rem);
  font-weight: 600;
  color: var(--color-forest-dark);
  background: var(--color-ivory);
  padding: 1rem 1.25rem;
  box-shadow: none;
  overflow-wrap: break-word;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--color-emerald-deep);
  background: #F8F4EA;
  border-bottom: 1px solid var(--color-emerald-border);
}

.faq-accordion .accordion-body {
  padding: 1rem 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: 0.85rem;
  overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   13. FORMS & INPUTS
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--color-ivory);
  border: 1px solid var(--color-emerald-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-md);
  min-width: 0;
  overflow-wrap: break-word;
}

.form-label {
  font-family: var(--font-sans-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-forest-dark);
  margin-bottom: 0.3rem;
  display: block;
}

.form-label .required {
  color: #ba2818;
}

.form-control, .form-select {
  font-family: var(--font-body);
  font-size: 0.85rem;
  height: 40px;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(7, 92, 66, 0.22);
  background-color: #FFFFFF;
  color: var(--color-text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

textarea.form-control {
  height: auto;
  min-height: 80px;
}

.form-control:focus, .form-select:focus {
  border-color: var(--color-gold-metallic);
  box-shadow: 0 0 0 3px rgba(198, 166, 75, 0.18);
  outline: none;
}

.form-control::placeholder {
  color: #92a49b;
  font-size: 0.82rem;
}

.form-feedback-notice {
  display: none;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
  overflow-wrap: break-word;
}

.form-feedback-notice.success {
  display: block;
  background-color: #eaf4f0;
  color: var(--color-emerald-deep);
  border: 1px solid var(--color-emerald-light);
}

.form-feedback-notice.error {
  display: block;
  background-color: #fceeed;
  color: #aa2719;
  border: 1px solid #f5c2be;
}

/* --------------------------------------------------------------------------
   14. COMPACT 3 DAYS FREE TRIAL POPUP MODAL (HIGHEST Z-INDEX & GUARANTEED DISPLAY)
   -------------------------------------------------------------------------- */
.modal-trial-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 26, 17, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-trial-overlay.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Maximum width around 340px on desktop; 88-92% on mobile */
.modal-trial-content {
  background: #FFFDF8;
  border: 1.5px solid var(--color-gold-metallic);
  border-radius: var(--radius-md);
  max-width: 340px;
  width: 90%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-popup);
  transform: scale(0.96) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 100000;
  min-width: 0;
}

.modal-trial-overlay.active .modal-trial-content {
  transform: scale(1) translateY(0);
}

/* Refined, compact header */
.modal-trial-header {
  background: var(--color-forest-dark);
  background-image: var(--gradient-gold-soft);
  padding: 0.85rem 1.15rem 0.75rem;
  border-top-left-radius: calc(var(--radius-md) - 2px);
  border-top-right-radius: calc(var(--radius-md) - 2px);
  color: var(--color-ivory);
  position: relative;
  text-align: center;
  border-bottom: 1.5px solid var(--color-gold-metallic);
}

.modal-trial-close {
  position: absolute;
  top: 0.6rem;
  right: 0.65rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-gold-subtle);
  color: var(--color-ivory);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-trial-close:hover {
  background: var(--color-gold-metallic);
  color: var(--color-forest-dark);
}

.modal-trial-header h3 {
  font-family: var(--font-serif-heading);
  color: var(--color-ivory);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.02em;
}

.modal-trial-body {
  padding: 1.1rem 1.15rem 1.25rem;
}

.modal-trial-body .form-label {
  font-size: 0.76rem;
  margin-bottom: 0.25rem;
  color: var(--color-forest-dark);
}

.modal-trial-body .form-control,
.modal-trial-body .form-select {
  height: 38px;
  font-size: 0.82rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
}

.modal-trial-submit-btn {
  font-size: 0.84rem;
  padding: 0.5rem 1rem;
  width: 100%;
  justify-content: center;
  margin-top: 0.35rem;
}

/* --------------------------------------------------------------------------
   15. FLOATING ACTIONS
   -------------------------------------------------------------------------- */
.floating-actions-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.floating-whatsapp-btn {
  background: #25D366;
  color: #FFFFFF;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  position: relative;
  text-decoration: none;
}

.floating-whatsapp-btn:hover {
  background: #1eb857;
  color: #FFFFFF;
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.55);
}

.floating-whatsapp-btn::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid #25D366;
  opacity: 0.75;
  animation: pulse-ring 2.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.75; }
  60% { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}

.floating-trial-trigger {
  background: var(--gradient-gold);
  color: var(--color-forest-dark);
  font-family: var(--font-sans-heading);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.42rem 0.95rem;
  border-radius: 20px;
  box-shadow: var(--shadow-gold);
  border: 1px solid var(--color-gold-champagne);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.floating-trial-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(198, 166, 75, 0.45);
}

/* --------------------------------------------------------------------------
   16. FOOTER (FULL INSTITUTE NAME VISIBLE)
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-forest-dark);
  color: var(--color-ivory);
  padding-top: 3.5rem;
  padding-bottom: 1.75rem;
  position: relative;
  border-top: 2px solid var(--color-gold-metallic);
}

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

.footer-brand-title {
  font-family: var(--font-serif-heading);
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  font-weight: 700;
  color: var(--color-gold-champagne);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
  line-height: 1.25;
  display: block;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-desc {
  font-size: 0.84rem;
  color: rgba(255, 253, 248, 0.78);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  overflow-wrap: break-word;
}

.footer-heading {
  font-family: var(--font-sans-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-gold-champagne);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.4rem;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 26px;
  height: 1.5px;
  background: var(--color-gold-metallic);
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 0.45rem;
}

.footer-links-list a {
  color: rgba(255, 253, 248, 0.78);
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.2s ease, color 0.2s ease;
  overflow-wrap: break-word;
}

.footer-links-list a:hover {
  color: var(--color-gold-champagne);
  transform: translateX(3px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
  font-size: 0.82rem;
  min-width: 0;
}

.footer-contact-item i {
  color: var(--color-gold-metallic);
  font-size: 0.95rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-item > div {
  min-width: 0;
  overflow-wrap: break-word;
}

.footer-contact-item a {
  color: rgba(255, 253, 248, 0.86);
  word-break: break-all;
  overflow-wrap: anywhere;
}

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

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-gold-subtle);
  color: var(--color-ivory);
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.22s ease;
}

.footer-social-link:hover {
  background: #1877F2;
  border-color: #1877F2;
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(229, 210, 138, 0.16);
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  font-size: 0.78rem;
  color: rgba(255, 253, 248, 0.65);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   17. SCROLL REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.08s; }
.delay-150 { transition-delay: 0.12s; }
.delay-200 { transition-delay: 0.16s; }
.delay-250 { transition-delay: 0.20s; }
.delay-300 { transition-delay: 0.24s; }
.delay-400 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   18. MOBILE-FIRST RESPONSIVE AUDIT & TUNING
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  :root {
    --navbar-height: 64px;
  }

  .site-navbar {
    padding: 0.6rem 0;
  }

  .site-navbar .navbar-collapse {
    background: #FFFDF8;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-md);
    margin-top: 0.6rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-gold-subtle);
  }

  .site-navbar .navbar-nav .nav-link {
    color: var(--color-text-primary) !important;
    padding: 0.45rem 0.3rem !important;
    font-size: 0.84rem;
  }

  .hero-section {
    padding-top: calc(var(--navbar-height) + 1.75rem);
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-quick-features {
    justify-content: center;
  }

  .hero-visual-card {
    margin-top: 1.5rem;
  }

  .hero-visual-img {
    height: 320px;
  }
}

@media (max-width: 575.98px) {
  .hero-visual-img {
    height: 250px;
  }

  .form-card {
    padding: 1.25rem 1rem;
  }

  .floating-actions-container {
    bottom: 14px;
    right: 14px;
  }

  .floating-whatsapp-btn {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }

  .floating-trial-trigger {
    font-size: 0.72rem;
    padding: 0.35rem 0.8rem;
  }
  
  .course-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .course-card-footer .btn-trial,
  .course-card-footer .btn-outline-secondary {
    width: 100%;
    text-align: center;
  }
}

/* vediofooter */

/* --- Footer Video Background Styling --- */
.site-footer {
  position: relative;
  overflow: hidden;
  background-color: #0b1329; /* Fallback color agar video load na ho */
  color: #ffffff;
}

.footer-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.footer-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Video ko stretch kiye baghair poore footer par fit karega */
}

.footer-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 19, 41, 0.85); /* Dark blue overlay taake text wazeh parha ja sake */
  z-index: 2;
}

/* Footer Content ko Video aur Overlay ke upar rakhne ke liye */
.site-footer .footer-content {
  position: relative;
  z-index: 3;
}