/* ============================================================
   PORTE OUVERTE — Bible Classes Platform
   Un ministère de 4VEH.org
   style.css — Main Stylesheet
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Nunito:wght@300;400;600;700;800&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Colors — 4VEH.org palette */
  --navy:        #0A0A0A;
  --navy-light:  #1C1C1C;
  --navy-mid:    #2E2E2E;
  --gold:        #00ADBB;
  --gold-light:  #22C5D2;
  --gold-pale:   #E8F8FA;
  --ivory:       #F9F9F9;
  --ivory-dark:  #EFEFEF;
  --teal:        #00ADBB;
  --teal-light:  #22C5D2;
  --crimson:     #A42137;
  --crimson-light:#C42D48;
  --earth:       #424242;
  --earth-light: #767676;
  --text-dark:   #0A0A0A;
  --text-mid:    #424242;
  --text-light:  #767676;
  --white:       #FFFFFF;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Nunito', 'Segoe UI', sans-serif;

  /* Spacing */
  --section-pad: 6rem 0;

  /* Transitions */
  --trans-base:  0.3s ease;
  --trans-slow:  0.5s ease;

  /* Shadows */
  --shadow-sm:   0 2px 12px rgba(10,10,10,0.08);
  --shadow-md:   0 6px 30px rgba(10,10,10,0.12);
  --shadow-lg:   0 16px 50px rgba(10,10,10,0.18);
  --shadow-gold: 0 4px 20px rgba(0,173,187,0.25);

  /* Border radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
}

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

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

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

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--navy);
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  margin: 1rem 0 2.5rem;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold));
}

.section-divider::after {
  background: linear-gradient(to left, transparent, var(--gold));
}

.section-divider span {
  color: var(--gold);
  font-size: 1.2rem;
}

/* ── Utility Classes ── */
.text-gold { color: var(--gold) !important; }
.text-navy { color: var(--navy) !important; }
.text-teal { color: var(--teal) !important; }
.bg-navy { background-color: var(--navy) !important; }
.bg-ivory { background-color: var(--ivory) !important; }

.btn-gold {
  background: linear-gradient(135deg, var(--crimson), var(--crimson-light));
  color: var(--white);
  border: none;
  padding: 0.7rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all var(--trans-base);
  box-shadow: 0 4px 20px rgba(164,33,55,0.25);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(164,33,55,0.40);
  color: var(--white);
  background: linear-gradient(135deg, #8A1B2E, var(--crimson));
}

.btn-outline-gold {
  background: transparent;
  color: var(--crimson);
  border: 2px solid var(--crimson);
  padding: 0.65rem 1.6rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--trans-base);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-outline-gold:hover {
  background: var(--crimson);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 0.7rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--trans-base);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

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

/* ── Navbar ── */
#mainNav {
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,173,187,0.15);
  transition: all var(--trans-base);
  padding: 0.5rem 0;
  z-index: 1000;
}

#mainNav.scrolled {
  padding: 0.25rem 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

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

.brand-logo {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

.brand-tagline {
  font-size: 0.65rem;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0.9rem !important;
  border-radius: 6px;
  transition: all var(--trans-base);
  letter-spacing: 0.01em;
}

.nav-link:hover {
  color: var(--gold-light) !important;
  background: rgba(0,173,187,0.1);
}

.nav-link.active {
  color: var(--gold) !important;
}

.navbar-toggler {
  border: 1px solid rgba(0,173,187,0.4);
  padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,173,187,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Hero Section ── */
#hero {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.93) 0%, rgba(10,10,10,0.85) 55%, rgba(20,20,20,0.78) 100%),
    url('assets/images/hero-bg.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Subtle light-ray background effect */
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0,173,187,0.13) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(0,173,187,0.07) 0%, transparent 60%);
  pointer-events: none;
}

/* Animated sweeping light rays */
.hero-rays {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-ray {
  position: absolute;
  top: -10%;
  left: 50%;
  width: 3px;
  height: 130%;
  transform-origin: top center;
  will-change: transform, opacity;
}

/* Teal rays */
.hero-ray:nth-child(1) {
  background: linear-gradient(to bottom, rgba(0,173,187,0.55), transparent);
  animation: raySwing1 13s ease-in-out infinite;
  animation-delay: -2s;
}
.hero-ray:nth-child(2) {
  background: linear-gradient(to bottom, rgba(0,173,187,0.40), transparent);
  animation: raySwing2 17s ease-in-out infinite;
  animation-delay: -6s;
}
.hero-ray:nth-child(3) {
  background: linear-gradient(to bottom, rgba(34,197,210,0.45), transparent);
  animation: raySwing3 11s ease-in-out infinite;
  animation-delay: -1s;
}

/* Crimson rays */
.hero-ray:nth-child(4) {
  background: linear-gradient(to bottom, rgba(164,33,55,0.50), transparent);
  animation: raySwing4 15s ease-in-out infinite;
  animation-delay: -4s;
}
.hero-ray:nth-child(5) {
  background: linear-gradient(to bottom, rgba(164,33,55,0.35), transparent);
  animation: raySwing5 19s ease-in-out infinite;
  animation-delay: -9s;
}

/* White accent rays */
.hero-ray:nth-child(6) {
  background: linear-gradient(to bottom, rgba(255,255,255,0.25), transparent);
  animation: raySwing6 9s ease-in-out infinite;
  animation-delay: -3s;
}
.hero-ray:nth-child(7) {
  background: linear-gradient(to bottom, rgba(255,255,255,0.18), transparent);
  animation: raySwing7 14s ease-in-out infinite;
  animation-delay: -7s;
}
.hero-ray:nth-child(8) {
  background: linear-gradient(to bottom, rgba(0,173,187,0.30), transparent);
  animation: raySwing8 21s ease-in-out infinite;
  animation-delay: -11s;
}

@keyframes raySwing1 {
  0%, 100% { transform: rotate(-55deg); opacity: 0.5; }
  50%       { transform: rotate(-18deg); opacity: 1;   }
}
@keyframes raySwing2 {
  0%, 100% { transform: rotate(18deg);  opacity: 0.6; }
  50%       { transform: rotate(52deg); opacity: 1;   }
}
@keyframes raySwing3 {
  0%, 100% { transform: rotate(-38deg); opacity: 0.4; }
  50%       { transform: rotate(4deg);  opacity: 0.9; }
}
@keyframes raySwing4 {
  0%, 100% { transform: rotate(28deg);  opacity: 0.5; }
  50%       { transform: rotate(-8deg); opacity: 1;   }
}
@keyframes raySwing5 {
  0%, 100% { transform: rotate(-62deg); opacity: 0.4; }
  50%       { transform: rotate(-32deg); opacity: 0.8; }
}
@keyframes raySwing6 {
  0%, 100% { transform: rotate(42deg);  opacity: 0.3; }
  50%       { transform: rotate(66deg); opacity: 0.7; }
}
@keyframes raySwing7 {
  0%, 100% { transform: rotate(-14deg); opacity: 0.4; }
  50%       { transform: rotate(22deg); opacity: 0.8; }
}
@keyframes raySwing8 {
  0%, 100% { transform: rotate(58deg);  opacity: 0.3; }
  50%       { transform: rotate(32deg); opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ray { animation: none; }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 5rem;
}

/* Centered layout */
.hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Scripture reference line */
.hero-scripture-ref {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-ref-line {
  width: 50px;
  height: 1px;
  background: rgba(0,173,187,0.45);
}

.hero-ref-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(0,173,187,0.8);
}

/* Scripture verse quote */
.hero-verse {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.88rem, 1.6vw, 1.05rem);
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 1.75rem;
  padding: 0;
  border: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,173,187,0.12);
  border: 1px solid rgba(0,173,187,0.3);
  color: var(--gold-light);
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: italic;
  color: var(--crimson-light);
  text-shadow: 0 0 60px rgba(164,33,55,0.35);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 3.5rem;
}

/* Stats row with dividers */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(6px);
  padding: 1.25rem 2rem;
  gap: 0;
}

.hero-stat {
  text-align: center;
  padding: 0 2rem;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  display: block;
}

.hero-stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  margin-top: 0.2rem;
  display: block;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  animation: bounce 2.2s infinite ease-in-out;
  text-decoration: none;
  z-index: 2;
}

.hero-scroll-indicator i { font-size: 1.1rem; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50%       { transform: translateX(-50%) translateY(7px); opacity: 0.9; }
}

/* ── About Section ── */
#about {
  padding: var(--section-pad);
  background: var(--ivory);
  position: relative;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,173,187,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy-light), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--teal) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 4rem;
  box-shadow: var(--shadow-lg);
}

.about-image-placeholder p {
  font-size: 0.85rem;
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-body);
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 180px;
}

.about-badge-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
  flex-shrink: 0;
}

.about-badge-text strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.about-badge-text span {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.about-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.about-description {
  color: var(--text-mid);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--ivory-dark);
  color: var(--text-mid);
  font-size: 0.95rem;
}

.about-features li:last-child {
  border-bottom: none;
}

.about-features li i {
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* ── Classes Section ── */
#classes {
  padding: var(--section-pad);
  background: var(--white);
}

.search-filter-bar {
  background: var(--ivory);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid var(--ivory-dark);
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-input-wrap i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1rem;
}

#classSearch {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.75rem;
  border: 1px solid var(--ivory-dark);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text-dark);
  transition: border-color var(--trans-base);
  outline: none;
}

#classSearch:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(0,173,187,0.12);
}

.filter-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.45rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--ivory-dark);
  background: var(--white);
  color: var(--text-light);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans-base);
  font-family: var(--font-body);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* Class Card */
.class-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--ivory-dark);
  transition: all var(--trans-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.class-card-image {
  position: relative;
  overflow: hidden;
  height: 180px;
}

.class-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.7);
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
}

.class-card-level {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255,255,255,0.95);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.class-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.class-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.class-card-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}

.class-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.class-card-lessons {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 600;
}

.class-card-lessons i {
  color: var(--gold);
}

.class-card-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* ── Lessons Panel ── */
#lessonsPanel {
  display: none;
  padding: 3rem 0 5rem;
  background: var(--ivory);
  border-top: 3px solid var(--gold);
  animation: slideDown 0.4s ease;
}

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

.lessons-panel-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.lessons-panel-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.lessons-panel-back {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 0.4rem 0;
  transition: color var(--trans-base);
}

.lessons-panel-back:hover {
  color: var(--gold);
}

.lesson-list-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all var(--trans-base);
  border: 1px solid var(--ivory-dark);
}

.lesson-list-item:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(0,173,187,0.15);
  transform: translateX(4px);
}

.lesson-number {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.lesson-title {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  flex: 1;
}

.lesson-duration {
  font-size: 0.78rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.lesson-arrow {
  color: var(--gold);
  font-size: 0.9rem;
}

/* ── PDF Viewer Modal ── */
.pdf-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.88);
  z-index: 9000;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.pdf-modal-overlay.active {
  display: flex;
}

.pdf-modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 960px;
  margin: auto;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
  animation: modalPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.pdf-modal-header {
  background: var(--navy);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.pdf-modal-title {
  flex: 1;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-modal-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.pdf-modal-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--trans-base);
  font-family: var(--font-body);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.pdf-modal-btn:hover {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

.pdf-modal-btn.btn-close-modal {
  background: rgba(220,53,69,0.2);
  border-color: rgba(220,53,69,0.3);
  color: #ff8a8a;
}

.pdf-modal-btn.btn-close-modal:hover {
  background: rgba(220,53,69,0.4);
}

.pdf-modal-nav {
  background: var(--navy-light);
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.pdf-nav-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--trans-base);
  font-family: var(--font-body);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pdf-nav-btn:hover:not(:disabled) {
  background: rgba(0,173,187,0.25);
  border-color: rgba(0,173,187,0.4);
  color: var(--gold-light);
}

.pdf-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pdf-nav-info {
  flex: 1;
  text-align: center;
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
  font-weight: 600;
}

.pdf-embed-area {
  flex: 1;
  min-height: 500px;
  background: #3D3D3D;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.pdf-placeholder {
  text-align: center;
  color: rgba(255,255,255,0.6);
  padding: 3rem;
}

.pdf-placeholder i {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
  color: var(--gold-light);
}

.pdf-placeholder h4 {
  color: var(--white);
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
}

.pdf-placeholder p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

#pdfFrame {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: none;
}

/* ── Quiz Section ── */
.quiz-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.88);
  z-index: 9100;
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.quiz-modal-overlay.active {
  display: flex;
}

.quiz-modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  margin: auto;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  animation: modalPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.quiz-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 1.5rem;
  color: var(--white);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.quiz-header-icon {
  width: 48px;
  height: 48px;
  background: rgba(0,173,187,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold-light);
  flex-shrink: 0;
}

.quiz-header-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.quiz-header-subtitle {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
}

.quiz-close {
  margin-left: auto;
  background: rgba(255,255,255,0.1);
  border: none;
  color: rgba(255,255,255,0.7);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--trans-base);
  flex-shrink: 0;
}

.quiz-close:hover {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

.quiz-progress-bar-wrap {
  height: 4px;
  background: var(--navy-light);
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.4s ease;
}

.quiz-body {
  padding: 2rem;
}

.quiz-question-num {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.quiz-question-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.quiz-options {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.quiz-option {
  padding: 0.9rem 1.25rem;
  border: 2px solid var(--ivory-dark);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--trans-base);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
}

.quiz-option:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(10,10,10,0.03);
}

.quiz-option-letter {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-light);
  flex-shrink: 0;
  transition: all var(--trans-base);
}

.quiz-option.selected {
  border-color: var(--navy);
  background: rgba(10,10,10,0.05);
  color: var(--navy);
}

.quiz-option.selected .quiz-option-letter {
  background: var(--navy);
  color: var(--white);
}

.quiz-option.correct {
  border-color: #198754;
  background: rgba(25,135,84,0.08);
  color: #0d6b43;
}

.quiz-option.correct .quiz-option-letter {
  background: #198754;
  color: var(--white);
}

.quiz-option.incorrect {
  border-color: #dc3545;
  background: rgba(220,53,69,0.08);
  color: #b02a37;
}

.quiz-option.incorrect .quiz-option-letter {
  background: #dc3545;
  color: var(--white);
}

.quiz-option.disabled {
  cursor: default;
  pointer-events: none;
}

.quiz-feedback {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.5;
}

.quiz-feedback.correct {
  display: flex;
  gap: 0.6rem;
  background: rgba(25,135,84,0.1);
  border: 1px solid rgba(25,135,84,0.2);
  color: #0d6b43;
}

.quiz-feedback.incorrect {
  display: flex;
  gap: 0.6rem;
  background: rgba(220,53,69,0.1);
  border: 1px solid rgba(220,53,69,0.2);
  color: #b02a37;
}

.quiz-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--ivory-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.quiz-score-display {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
}

/* Quiz Results */
.quiz-results {
  padding: 2rem;
  text-align: center;
}

.quiz-results-score {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 6px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.quiz-results-score .score-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.quiz-results-score .score-label {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.quiz-results h3 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.quiz-results p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* ── How It Works Section ── */
#howItWorks {
  padding: var(--section-pad);
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

#howItWorks::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 80%, rgba(0,173,187,0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(0,173,187,0.06) 0%, transparent 40%);
  pointer-events: none;
}

#howItWorks .section-title { color: var(--white); }
#howItWorks .section-subtitle { color: rgba(255,255,255,0.6); }
#howItWorks .section-divider::before,
#howItWorks .section-divider::after {
  background: linear-gradient(to right, transparent, rgba(0,173,187,0.4));
}

.how-step {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.how-step-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(0,173,187,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--gold-light);
  margin: 0 auto 1.25rem;
  transition: all var(--trans-base);
}

.how-step:hover .how-step-icon {
  background: rgba(0,173,187,0.12);
  transform: translateY(-4px);
}

.how-step-num {
  position: absolute;
  top: 1.5rem;
  right: 50%;
  transform: translateX(2.5rem);
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--gold);
  color: var(--white);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}

.how-step h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.how-step p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ── Testimonials ── */
#testimonials {
  padding: var(--section-pad);
  background: var(--ivory);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--ivory-dark);
  height: 100%;
  transition: all var(--trans-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-quote {
  font-size: 2.5rem;
  color: var(--gold-light);
  font-family: var(--font-display);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.testimonial-text {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1.2;
}

.testimonial-location {
  font-size: 0.78rem;
  color: var(--text-light);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 0.8rem;
}

/* ── CTA Section ── */
#cta {
  padding: var(--section-pad);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(0,173,187,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(0,173,187,0.08) 0%, transparent 60%);
}

#cta .section-title { color: var(--white); }

.cta-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Footer ── */
footer {
  background: #050505;
  color: rgba(255,255,255,0.6);
  padding: 4rem 0 0;
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-description {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
  transition: all var(--trans-base);
  text-decoration: none;
}

.footer-social a:hover {
  background: rgba(0,173,187,0.15);
  border-color: rgba(0,173,187,0.3);
  color: var(--gold-light);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

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

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

.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--trans-base);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

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

.footer-links a i {
  font-size: 0.7rem;
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem 0;
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  margin: 0;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a {
  color: var(--gold-light);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ── Loading Spinner ── */
.spinner-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.spinner-overlay.active {
  display: flex;
}

.spinner-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.spinner-box .spinner-border {
  color: var(--gold) !important;
  width: 2.5rem;
  height: 2.5rem;
  border-width: 3px;
}

.spinner-box p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ── Back to Top ── */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-light));
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(164,33,55,0.3);
  cursor: pointer;
  z-index: 500;
  transition: all var(--trans-base);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

#backToTop.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#backToTop:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(164,33,55,0.45);
}

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .about-badge { right: 10px; bottom: -15px; }
  .hero-stat { padding: 0 1.25rem; }
}

@media (max-width: 767.98px) {
  :root { --section-pad: 4rem 0; }

  .hero-title { font-size: 2.75rem; }
  .hero-stats { gap: 1.5rem; }

  .search-filter-bar { flex-direction: column; align-items: stretch; }
  .search-input-wrap { min-width: unset; }

  .pdf-modal-actions { gap: 0.3rem; }
  .pdf-modal-btn span { display: none; }

  .quiz-body { padding: 1.25rem; }
  .quiz-footer { padding: 1rem 1.25rem; }

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

  #backToTop { bottom: 1.25rem; right: 1.25rem; }
}

@media (max-width: 575.98px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-gold, .btn-outline-gold, .btn-navy { width: 100%; justify-content: center; }
  .hero-stats { padding: 1rem; }
  .hero-stat { padding: 0 0.75rem; }
  .hero-stat-number { font-size: 1.6rem; }
  .pdf-modal-nav { flex-wrap: wrap; }
  .pdf-nav-info { order: -1; width: 100%; text-align: center; margin-bottom: 0.5rem; }
}

/* ══════════════════════════════════════
   AUTH MODALS
══════════════════════════════════════ */
#authOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 8000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  backdrop-filter: blur(6px);
}

#authOverlay.active { display: flex; }

.auth-modal { width: 100%; max-width: 520px; margin: auto; animation: modalPop 0.35s cubic-bezier(0.34,1.56,0.64,1); }

.auth-modal-inner {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}

.auth-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--ivory);
  border: 1px solid var(--ivory-dark);
  border-radius: 8px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; color: var(--text-light);
  transition: all var(--trans-base);
}
.auth-close:hover { background: var(--danger); color: var(--white); border-color: var(--danger); }

.auth-logo {
  text-align: center;
  margin-bottom: 1.5rem;
  background: #0A0A0A;
  border-radius: 10px;
  padding: 0.6rem 1.25rem;
  display: inline-block;
  width: 100%;
}
.auth-logo img { max-height: 52px; width: auto; }

.auth-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.35rem;
}

.auth-subtitle {
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.auth-error {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: #FADBD8;
  border: 1px solid rgba(192,57,43,0.25);
  color: #922B21;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.auth-error.show { display: flex; }

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

.auth-field { margin-bottom: 1rem; }
.auth-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}
.auth-field input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--ivory-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-dark);
  background: var(--white);
  transition: all var(--trans-base);
  outline: none;
}
.auth-field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(0,173,187,0.12);
}

.auth-password-wrap { position: relative; }
.auth-password-wrap input { padding-right: 2.5rem; }
.auth-eye {
  position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-light); cursor: pointer;
  font-size: 0.95rem; padding: 0.2rem;
}
.auth-eye:hover { color: var(--navy); }

/* CAPTCHA */
.auth-captcha {
  background: var(--ivory);
  border: 1px solid var(--ivory-dark);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}
.captcha-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 0.6rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.captcha-challenge { display: flex; align-items: center; gap: 0.6rem; }
.captcha-challenge span {
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
  flex: 1;
}
.captcha-challenge input {
  width: 90px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--ivory-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  text-align: center;
}
.captcha-challenge input:focus { border-color: var(--gold); }
.captcha-refresh {
  background: var(--white);
  border: 1px solid var(--ivory-dark);
  border-radius: 6px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-light); font-size: 0.9rem;
  transition: all var(--trans-base);
}
.captcha-refresh:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.auth-submit {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--trans-base);
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin-bottom: 1rem;
}
.auth-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-switch {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-light);
  margin: 0;
}
.auth-switch button {
  background: none; border: none;
  color: var(--gold); font-weight: 700;
  cursor: pointer; font-size: 0.88rem;
  font-family: var(--font-body);
  text-decoration: underline;
}
.auth-switch button:hover { color: var(--navy); }

/* ── Navbar user menu ── */
.nav-user-menu { position: relative; }

.nav-user-btn {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  transition: all var(--trans-base);
}
.nav-user-btn:hover { background: rgba(255,255,255,0.18); }

.nav-user-avatar {
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: var(--white);
}

.nav-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--ivory-dark);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  overflow: hidden;
  z-index: 500;
}
.nav-user-dropdown.open { display: block; animation: panelFade 0.2s ease; }

.nav-dropdown-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 1rem;
  color: var(--text-mid);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--trans-base);
}
.nav-dropdown-item:hover { background: var(--ivory); color: var(--navy); }
.nav-dropdown-item i { color: var(--gold); }
.nav-dropdown-divider { height: 1px; background: var(--ivory-dark); }
.nav-dropdown-danger { color: #C0392B !important; }
.nav-dropdown-danger i { color: #C0392B !important; }

/* ══════════════════════════════════════
   STUDENT DASHBOARD CARDS
══════════════════════════════════════ */
.dash-course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ivory-dark);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  transition: all var(--trans-base);
  margin-bottom: 0;
}
.dash-course-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.dash-course-color { width: 6px; flex-shrink: 0; }

.dash-course-body { padding: 1.25rem 1.5rem; flex: 1; }

.dash-course-header {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.dash-course-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}
.dash-course-level {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
}

.dash-course-grade {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-light);
  flex-shrink: 0;
}
.dash-course-grade.grade-pass { color: #1E8449; }
.dash-course-grade.grade-mid  { color: var(--warn); }

.dash-progress-bar-wrap {
  height: 6px;
  background: var(--ivory-dark);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.3rem;
}
.dash-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 3px;
  transition: width 0.6s ease;
}
.dash-progress-label {
  display: flex; justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.dash-scores {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.dash-score-chip {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.dash-score-pass { background: rgba(30,132,73,0.1); color: #1E8449; }
.dash-score-fail { background: rgba(192,57,43,0.1); color: #C0392B; }
.dash-score-none { background: var(--ivory-dark); color: var(--text-light); }

.dash-course-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.btn-primary-dash {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 1rem;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--trans-base);
}
.btn-primary-dash:hover { background: var(--navy-light); transform: translateY(-1px); }

/* ══════════════════════════════════════
   LESSON LIST PROGRESS INDICATORS
══════════════════════════════════════ */
.lesson-list-item.lesson-done { border-color: rgba(30,132,73,0.25); }
.lesson-num-done {
  background: linear-gradient(135deg, #1E8449, #27AE60) !important;
  color: var(--white) !important;
  font-size: 1rem !important;
}

.lesson-score-chip {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 50px;
  flex-shrink: 0;
}
.score-pass { background: rgba(30,132,73,0.12); color: #1E8449; }
.score-fail { background: rgba(192,57,43,0.12); color: #C0392B; }

@media (max-width: 575.98px) {
  .auth-row { grid-template-columns: 1fr; }
  .auth-modal-inner { padding: 2rem 1.25rem; }
  .captcha-challenge { flex-wrap: wrap; }
}

/* ══════════════════════════════════════
   BACK NAVIGATION & BREADCRUMBS
══════════════════════════════════════ */

/* Improved lessons panel back button */
.lessons-panel-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--trans-base);
  text-decoration: none;
}

.lessons-panel-back:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateX(-3px);
}

.lessons-panel-back i {
  font-size: 1.1rem;
}

/* PDF viewer back button */
.pdf-back-btn {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.2) !important;
  color: rgba(255,255,255,0.9) !important;
  flex-shrink: 0;
}

.pdf-back-btn:hover {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: var(--white) !important;
}

/* Quiz back button */
.quiz-back-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--trans-base);
  flex-shrink: 0;
}

.quiz-back-btn:hover {
  background: rgba(0,173,187,0.25);
  color: var(--gold-light);
  border-color: rgba(0,173,187,0.4);
}

/* ══════════════════════════════════════
   ADMIN LINK IN DROPDOWN
══════════════════════════════════════ */
#navAdminLink i {
  color: var(--gold) !important;
}

#navAdminLink {
  background: rgba(0,173,187,0.06);
  font-style: italic;
}

/* ══════════════════════════════════════
   PWA ANIMATIONS
══════════════════════════════════════ */
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
