/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --primary: #7C3AED;
  --primary-dark: #6D28D9;
  --secondary: #1a1a2e;
  --accent: #D4A843;
  --light: #EDEDEE;
  --dark: #1a1a2e;
  --text: #333333;
  --text-light: #666666;
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.95);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--secondary);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(124, 58, 237, 0.06);
}

/* ===== DROPDOWN NAV ===== */
.nav-dropdown {
  position: relative;
}

.nav-link.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-link.dropdown-trigger svg,
.nav-link.dropdown-trigger i {
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-trigger svg,
.nav-dropdown:hover .dropdown-trigger i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #2d2d3f;
  border-radius: 12px;
  padding: 0.5rem 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.dropdown-item:hover {
  color: #D4A843;
  background: rgba(255, 255, 255, 0.06);
}

/* Mobile dropdown */
.mobile-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.mobile-dropdown-trigger .mobile-chevron {
  transition: transform 0.2s ease;
}

.mobile-dropdown-trigger.open .mobile-chevron {
  transform: rotate(180deg);
}

.mobile-dropdown-menu {
  padding-left: 1rem;
}

.mobile-dropdown-item {
  font-size: 0.825rem;
  color: var(--text-light, #666);
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary);
  border-radius: 8px;
  transition: background 0.2s ease;
  text-decoration: none;
}

.mobile-nav-link:hover {
  background: rgba(124, 58, 237, 0.06);
  color: var(--primary);
}

/* ===== HERO SECTION ===== */

.hero-checklist-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--secondary);
}

.hero-checklist-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* ===== QUIZ IMAGES ===== */
.quiz-images-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.quiz-page-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== QUIZ LIGHTBOX ===== */
.quiz-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-lightbox.hidden {
  display: none;
}

.quiz-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.quiz-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: white;
  font-size: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
}

.quiz-lightbox-close:hover {
  color: #D4A843;
}

.quiz-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 10;
  transition: background 0.2s ease;
}

.quiz-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.quiz-lightbox-prev {
  left: 1rem;
}

.quiz-lightbox-next {
  right: 1rem;
}

/* ===== ABOUT SECTION WAVE ===== */
.about-wave {
  margin-bottom: -2px;
}

.about-wave svg path {
  transition: d 0.3s ease;
}

/* ===== HOW IT WORKS CARDS ===== */
.how-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 320px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.how-card:hover {
  transform: translateY(-4px);
}

.how-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.how-card:hover img {
  transform: scale(1.05);
}

.how-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: white;
}

.how-card-icon {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-card-label {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.how-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.how-card-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

/* ===== SERVICE ITEM ===== */
.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.service-item.reversed {
  direction: rtl;
}

.service-item.reversed > * {
  direction: ltr;
}

.service-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.service-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  line-height: 1.2;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.service-subtitle {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--primary);
  opacity: 0.7;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.service-description {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.service-target-label {
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.service-target {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.service-benefits-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.service-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.service-benefit-item svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.service-cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  background: var(--primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.service-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.service-image {
  border-radius: 16px;
  width: 100%;
  object-fit: cover;
  max-height: 420px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.testimonial-quote {
  font-style: italic;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.testimonial-quote::before {
  content: '\201E';
  font-size: 1.5rem;
  color: var(--primary);
}

.testimonial-quote::after {
  content: '\201C';
  font-size: 1.5rem;
  color: var(--primary);
}

.testimonial-divider {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 0.75rem;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--secondary);
}

/* ===== GALLERY ===== */
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* ===== FAQ ACCORDION ===== */
.faq-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--secondary);
  transition: color 0.2s ease;
  user-select: none;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question .faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--text-light);
}

.faq-item.active .faq-question .faq-icon {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer-text {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== CONTACT CARDS ===== */
.contact-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(124, 58, 237, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.contact-card-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.contact-card-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.contact-card-text {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===== PRICING TABLE ===== */
#pricing-table thead th {
  padding: 1rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  white-space: nowrap;
}

#pricing-table tbody td {
  padding: 1rem 0.75rem;
  font-size: 0.85rem;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  vertical-align: middle;
  white-space: pre-line;
}

#pricing-table tbody tr:hover {
  background: rgba(124, 58, 237, 0.03);
}

/* ===== COURSE BENEFIT ITEM ===== */
.course-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

.course-benefit-item svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 4px;
  width: 16px;
  height: 16px;
}

/* ===== ENROLLMENT STEP ===== */
.enrollment-step {
  margin-bottom: 0.5rem;
}

.enrollment-step-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.enrollment-step-text {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  white-space: pre-line;
}

/* ===== PROCESS STEP ===== */
.process-step-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.process-step-text {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  white-space: pre-line;
}

/* ===== SCROLL TO TOP ===== */
#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ===== COOKIE BANNER ===== */
#cookie-banner.hidden {
  display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
  .service-item {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-item.reversed {
    direction: ltr;
  }

  .service-title {
    font-size: 1.5rem;
  }

  .service-subtitle {
    font-size: 1.15rem;
  }
}

@media (max-width: 767px) {
  .hero-section {
    min-height: 500px;
  }

  .hero-section h1 {
    font-size: 1.75rem;
  }

  .hero-section p {
    font-size: 1.1rem;
  }

  .how-card {
    height: 280px;
  }
}

/* ===== PREFERS REDUCED MOTION ===== */
@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;
  }
}

/* ===== LEAFLET MAP OVERRIDE ===== */
.leaflet-container {
  border-radius: 12px;
  z-index: 1;
}

/* ===== BONUS BOX EMOJI ===== */
.bonus-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 4px;
}