/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --brand: #3C4675;
  --brand-dark: #2d355a;
  --brand-light: #5C6CA5;
  --accent: #F5E283;
  color-scheme: light;
}

/* The site has no dark theme — force a light canvas even for dark-mode users */
body {
  background-color: #ffffff;
}

/* Accent text utility (matches tailwind.config.js accent; available without CSS rebuild) */
.text-accent {
  color: var(--accent);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, .font-display {
  font-family: 'Bricolage Grotesque', 'Figtree', ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.01em;
}

/* Yellow marker highlight for keywords on light backgrounds */
.marker {
  background-image: linear-gradient(transparent 60%, rgba(245, 226, 131, 0.45) 60%);
  padding: 0 0.1em;
}

/* Keyword highlight on the dark hero: accent color + subtle underline */
.marker-dark {
  color: var(--accent);
  background-image: linear-gradient(transparent 88%, rgba(245, 226, 131, 0.6) 88%);
  padding: 0 0.05em;
}

/* Section eyebrow label */
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(245, 226, 131, 0.5);
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
}

/* Consistent icon tile (inline SVG stroke icons) */
.icon-tile {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  background: rgba(60, 70, 117, 0.08);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-tile svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Soft glow accents on the hero gradient (sales pages) */
.hero-glow {
  position: relative;
  overflow: hidden;
}
.hero-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 320px at 85% 15%, rgba(245, 226, 131, 0.16), transparent 60%),
    radial-gradient(520px 320px at 8% 95%, rgba(255, 255, 255, 0.09), transparent 60%);
  pointer-events: none;
}
.hero-glow > .container {
  position: relative;
  z-index: 1;
}

/* Course-content disclosure cards (native <details>) */
.details-card {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #fff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.details-card[open] {
  border-color: rgba(60, 70, 117, 0.35);
  box-shadow: 0 12px 32px rgba(60, 70, 117, 0.1);
}
.details-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}
.details-card summary::-webkit-details-marker {
  display: none;
}
.details-card summary .chev {
  margin-left: auto;
  color: var(--brand);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.details-card[open] summary .chev {
  transform: rotate(180deg);
}
.details-card .details-body {
  padding: 0 1.5rem 1.5rem;
}

/* Testimonial quote cards */
.quote-card {
  position: relative;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 6px 18px rgba(60, 70, 117, 0.06);
}
.quote-card .quote-mark {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 3rem;
  line-height: 0.6;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}
.avatar-initial {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: var(--brand);
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Brand button: dark blue bg, yellow text */
.btn-brand {
  background-color: var(--brand);
  color: var(--accent);
}
.btn-brand:hover {
  background-color: var(--brand-dark);
}

/* Accent button: yellow bg, dark blue text */
.btn-accent {
  background-color: var(--accent);
  color: var(--brand);
}

/* Custom gradient for hero section */
.hero-gradient {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  }

  /* White outline button that fills on hover */
  .btn-outline-white:hover {
    background-color: #ffffff;
    color: #3C4675;
  }
  
  /* Countdown styles */
  .countdown-container {
    display: flex;
    justify-content: center;
    gap: 10px;
  }
  .countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    border-radius: 8px;
  }
  .countdown-label {
    background-color: #3C4675;
    width: 100%;
    text-align: center;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    padding: 2px 0;
    font-size: 12px;
    color: #F5E283;
  }
  
  /* Tab styles */
  .tab-button {
    position: relative;
    transition: all 0.3s ease;
  }
  
  .tab-button:hover {
    background-color: #F5E283;
    border-color: #F5E283;
  }
  
  .tab-button.active {
    background-color: #3C4675;
    color: white;
  }
  
  .tab-content {
    display: none;
  }
  .tab-content.active {
    display: grid;
  }
  
  /* Floating button animation (if you add one later) */
  .floating-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    animation: pulse 2s infinite;
  }
  
  /* Keyframe animations */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }
  
  /* Responsive design adjustments */
  @media (max-width: 768px) {
    .hero-section {
      text-align: center;
    }
    .countdown-container {
      flex-wrap: wrap;
    }
    .tab-buttons {
      flex-direction: column;
    }
  }
  
  /* Course card styles */
  .tab-button {
    color: #3C4675;
    border: 1px solid #3C4675;
  }
  
  .tab-button:hover {
    background-color: #F5E283;
    border-color: #F5E283;
  }
  
  .tab-button.active {
    background-color: #3C4675;
    color: #F5E283;
  }
  
  /* Course card icons and highlights */
  .best-choice-banner {
    background-color: #3C4675;
    color: #F5E283;
  }
  
  /* Price styling */
  .original-price {
    color: #666666;
  }
  
  .sale-price {
    color: #3C4675;
  }
  
  .savings-text {
    color: #3C4675;
  }
  
  /* Card border for featured items */
  .featured-course {
    border: 2px solid #3C4675;
  }
  
  /* Button styling */
  .course-button {
    background-color: #3C4675;
    color: #F5E283;
  }
  
  .course-button:hover {
    background-color: #F5E283;
    color: #3C4675;
    border: 1px solid #3C4675;
  }
  
  /* Friendly button styling for "Megveszem" and "Kipróbálom most" buttons */
  .friendly-button {
    border-radius: 30px !important;
    box-shadow: 0 4px 15px rgba(60, 70, 117, 0.3) !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none !important;
    transform: translateY(0);
  }
  
  .friendly-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(60, 70, 117, 0.4) !important;
  }
  
  .friendly-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(60, 70, 117, 0.2) !important;
  }
  
  .friendly-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: -2;
  }
  
  .friendly-button::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(245, 226, 131, 0.15);
    transition: all 0.3s;
    z-index: -1;
  }
  
  .friendly-button:hover::before {
    width: 100%;
  }
  
  /* Coming soon overlay styling */
  .coming-soon-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(60, 70, 117, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: white;
    padding: 1rem;
    text-align: center;
  }
  
  .notify-button {
    background-color: white;
    color: #3C4675;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
  }
  
  .notify-button:hover {
    background-color: #F5E283;
  }
  
  @media (max-width: 640px) {
    .countdown-container {
      gap: 0.5rem;
    }
  }
  
  /* Benefits section styling */
  .benefit-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    animation: slideIn 0.5s ease-out forwards;
    opacity: 0;
  }
  
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Apply different animation delays to each card */
  .benefit-card:nth-child(1) {
    animation-delay: 0.1s;
  }
  
  .benefit-card:nth-child(2) {
    animation-delay: 0.2s;
  }
  
  .benefit-card:nth-child(3) {
    animation-delay: 0.3s;
  }
  
  .benefit-card:nth-child(4) {
    animation-delay: 0.4s;
  }
  
  .benefit-card:hover {
    border-left-color: #3C4675;
    transform: translateX(5px);
  }
  
  .benefit-header {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
  }
  
  .benefit-header:hover {
    background-color: rgba(60, 70, 117, 0.05);
  }
  
  .benefit-header:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3C4675;
    transition: width 0.3s ease;
    z-index: -1;
  }
  
  .benefit-header:hover:after {
    width: 100%;
  }
  
  .benefit-content {
    transition: all 0.3s ease;
  }
  
  .benefit-content.hidden {
    display: none;
  }
  
  /* Animate the chevron rotation */
  .fa-chevron-down {
    transition: transform 0.3s ease;
  }

  /* ============================================
     BUNDLE BUILDER STYLES
     ============================================ */
  
  /* Subject card selection states */
  .subject-card > div {
    transition: all 0.2s ease;
  }
  
  .subject-card > div.scale-105 {
    transform: scale(1.05);
  }
  
  /* Smooth gradient animation for progress bar */
  #savings-progress {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
  }
  
  @keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  /* Nudge banner animation */
  #bundle-nudge {
    animation: nudgePulse 2s ease-in-out infinite;
  }
  
  @keyframes nudgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
  }
  
  /* Price animation on change */
  #bundle-price {
    transition: all 0.3s ease;
  }
  
  #bundle-price.updating {
    transform: scale(1.1);
    color: #059669;
  }
  
  /* Selected subject tags */
  #selected-subjects-preview span {
    animation: tagAppear 0.2s ease-out;
  }
  
  @keyframes tagAppear {
    from {
      opacity: 0;
      transform: scale(0.8);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  /* Radio button custom styling for English level */
  input[name="english-level"]:checked + div {
    background-color: #3C4675 !important;
    color: #F5E283 !important;
    border-color: #3C4675 !important;
  }
  
  /* Mobile optimizations for bundle builder */
  @media (max-width: 640px) {
    .subject-card img {
      height: 80px;
    }
    
    .subject-card h4 {
      font-size: 0.75rem;
    }
    
    #bundle-price {
      font-size: 1.75rem;
    }
  }
  
  /* Course detail card hover effects */
  .grid > div:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
  }
  
  .grid > div img {
    transition: transform 0.3s ease;
  }
  
  /* New badge pulse animation */
  @keyframes newBadgePulse {
    0%, 100% { 
      box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
    }
    50% { 
      box-shadow: 0 0 0 8px rgba(251, 191, 36, 0);
    }
  }
  
  .animate-pulse {
    animation: newBadgePulse 2s ease-in-out infinite;
  }

  /* Sticky action bar */
  #sticky-action-bar {
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  }

  #sticky-action-bar.visible {
    transform: translateY(0);
  }

/* Hero mini-quiz: interactive active-recall demo (erettsegi.html) */
.hero-quiz {
  background: #fff;
  color: #1f2937;
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 500px;
  overflow: hidden;
}
.hero-quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  background: var(--brand);
  color: #fff;
}
.hero-quiz-badge {
  font-weight: 700;
  color: var(--accent);
}
.hero-quiz-progress {
  font-size: 0.875rem;
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
}
.hero-quiz-bar {
  height: 6px;
  background: #e5e7eb;
}
.hero-quiz-bar-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.35s ease;
}
.hero-quiz-body {
  padding: 1.5rem;
}
.hero-quiz-subject {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
  background: rgba(60, 70, 117, 0.08);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.75rem;
}
.hero-quiz-question {
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.4;
  color: #111827;
  margin-bottom: 1rem;
}
.hero-quiz-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  text-align: left;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.7rem 1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.hero-quiz-option:hover:not(:disabled) {
  border-color: var(--brand);
  background: rgba(60, 70, 117, 0.05);
}
.hero-quiz-option:disabled {
  cursor: default;
}
.hero-quiz-option.correct {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #166534;
  font-weight: 700;
}
.hero-quiz-option.wrong {
  border-color: #dc2626;
  background: #fef2f2;
  color: #991b1b;
}
.hero-quiz-option.dim {
  opacity: 0.5;
}
.hero-quiz-feedback {
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  margin-top: 0.75rem;
}
.hero-quiz-feedback.good {
  background: #f0fdf4;
  color: #166534;
}
.hero-quiz-feedback.bad {
  background: #fef2f2;
  color: #991b1b;
}
.hero-quiz-next {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 0.75rem;
  font-weight: 700;
  text-align: center;
  background: var(--brand);
  color: var(--accent);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.hero-quiz-next:hover {
  background: var(--brand-dark);
}
.hero-quiz-result {
  text-align: center;
  padding: 0.5rem 0;
}
.hero-quiz-score {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 9999px;
  background: rgba(60, 70, 117, 0.08);
  border: 3px solid var(--accent);
  color: var(--brand);
  font-weight: 800;
  font-size: 1.5rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.hero-quiz-result-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: #111827;
  margin-bottom: 0.5rem;
}
.hero-quiz-result-note {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 1.25rem;
}
.hero-quiz-restart {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}
.hero-quiz-restart:hover {
  color: var(--brand);
}
  
/* Hero demo video (felveteli.html, erettsegi.html): starts muted with burned-in captions, "Nézd meg hanggal" restarts it with sound */
.hero-video {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #3C4675;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.hero-video-el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video-sound {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: #F5E283;
  color: #3C4675;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hero-video-sound:hover,
.hero-video-sound:focus-visible {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}
.hero-video.is-playing-sound .hero-video-sound {
  display: none;
}
@media (max-width: 640px) {
  .hero-video-sound {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
  }
}
