/* ═══════════════════════════════════════════════════════════════
   99Froggs Academy — Theme Page Styles (shared across all 7 themes)
   ═══════════════════════════════════════════════════════════════ */

/* ── THEME HERO ─────────────────────────────────────────────────── */
.theme-hero {
  background: var(--teal);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.theme-hero::before {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}
.theme-hero::after {
  content: '';
  position: absolute;
  top: -40px; left: 40%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.theme-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.theme-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
}
.theme-breadcrumb a { color: rgba(255,255,255,0.65); text-decoration: none; }
.theme-breadcrumb a:hover { color: #fff; }
.theme-breadcrumb-sep { opacity: 0.4; }
.theme-hero-icon {
  width: 72px; height: 72px;
  background: rgba(255,255,255,0.15);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  margin-bottom: 24px;
}
.theme-hero-title {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 16px;
}
.theme-hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  max-width: 560px;
}
.theme-hero-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
}
.theme-stat-pill {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 14px 20px;
  text-align: center;
  min-width: 130px;
}
.theme-stat-num   { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1; }
.theme-stat-label { font-size: 12px; color: rgba(255,255,255,0.7); font-weight: 500; margin-top: 4px; }

/* ── CHALLENGES SECTION ─────────────────────────────────────────── */
.challenges-section { padding: 80px 0; }
.challenges-intro { max-width: 640px; margin-bottom: 48px; }
.challenges-intro h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 12px;
}
.challenges-intro p { font-size: 16px; color: var(--gray-dark); line-height: 1.7; }

/* ── CHALLENGE ACCORDION ────────────────────────────────────────── */
.challenge-list { display: flex; flex-direction: column; gap: 12px; }

.challenge-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.challenge-item.open {
  border-color: var(--teal-mid);
  box-shadow: 0 8px 32px rgba(18,160,215,0.10);
}
.challenge-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  cursor: pointer;
  background: var(--white);
  transition: background 0.15s;
  user-select: none;
}
.challenge-header:hover { background: var(--teal-light); }
.challenge-item.open .challenge-header { background: var(--teal-light); }

.challenge-num {
  width: 36px; height: 36px;
  background: var(--teal-light);
  border: 1.5px solid var(--teal-mid);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  color: var(--teal);
  flex-shrink: 0;
}
.challenge-item.open .challenge-num {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.challenge-header-text { flex: 1; }
.challenge-title { font-size: 17px; font-weight: 700; color: var(--black); margin-bottom: 4px; letter-spacing: -0.01em; }
.challenge-subtitle { font-size: 13px; color: var(--gray); line-height: 1.5; }
.challenge-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.challenge-tag {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--gray-light);
  color: var(--gray-dark);
}
.challenge-chevron {
  font-size: 18px;
  color: var(--gray);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.challenge-item.open .challenge-chevron { transform: rotate(180deg); color: var(--teal); }

.challenge-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.challenge-item.open .challenge-body { max-height: 2400px; }

.challenge-body-inner {
  padding: 0 28px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ── TRAINING COLUMNS ───────────────────────────────────────────── */
.training-col-title {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--gray);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.training-col-title span {
  background: var(--teal-light);
  color: var(--teal);
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 10px;
}

/* E-learning cards */
.elearning-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 10px;
  transition: all 0.2s;
  text-decoration: none;
}
.elearning-card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 16px rgba(18,160,215,0.1);
  transform: translateX(3px);
}
.elearning-platform {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.platform-coursera { background: #F5F5FF; }
.platform-udemy    { background: #FFF5F0; }
.elearning-title { font-size: 14px; font-weight: 600; color: var(--black); margin-bottom: 4px; line-height: 1.4; }
.elearning-meta  { font-size: 12px; color: var(--gray); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.elearning-badge {
  font-size: 10px; font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--teal-light);
  color: var(--teal);
}
.elearning-arrow { margin-left: auto; font-size: 14px; color: var(--teal); align-self: center; flex-shrink: 0; }

/* Live session cards */
.live-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 10px;
  transition: all 0.2s;
}
.live-card:hover { border-color: var(--teal-mid); box-shadow: 0 4px 16px rgba(18,160,215,0.08); }
.live-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.live-card-title { font-size: 14px; font-weight: 700; color: var(--black); line-height: 1.4; }
.live-format-badge {
  font-size: 10px; font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap; flex-shrink: 0;
}
.format-digital { background: #E8F6FC; color: var(--teal); }
.format-onsite  { background: #FFF3E0; color: #E65100; }
.format-both    { background: #F0FDF4; color: #16a34a; }
.live-card-desc { font-size: 13px; color: var(--gray); line-height: 1.55; margin-bottom: 12px; }
.live-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.live-expert { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gray-dark); font-weight: 500; }
.live-expert-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}
.live-book-btn {
  font-size: 12px; font-weight: 700;
  color: var(--teal);
  background: var(--teal-light);
  border: none; border-radius: 100px;
  padding: 5px 14px;
  cursor: pointer; text-decoration: none;
  transition: all 0.15s;
}
.live-book-btn:hover { background: var(--teal-mid); }

/* ── BOOKING MODAL ──────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 520px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--gray-light); border: none; border-radius: 50%;
  width: 32px; height: 32px;
  cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-dark);
}
.modal-close:hover { background: var(--border); }
.modal-tag   { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); margin-bottom: 8px; }
.modal-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--black); margin-bottom: 6px; }
.modal-sub   { font-size: 14px; color: var(--gray); margin-bottom: 28px; line-height: 1.6; }

/* ── OTHER THEMES ───────────────────────────────────────────────── */
.other-themes { padding: 64px 0; background: var(--cream); }
.other-themes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.other-theme-pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  transition: all 0.2s;
}
.other-theme-pill:hover {
  border-color: var(--teal-mid);
  box-shadow: var(--shadow-teal);
  transform: translateY(-2px);
}
.other-theme-pill-icon {
  width: 36px; height: 36px;
  background: var(--teal-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.other-theme-pill-name { font-size: 13px; font-weight: 700; color: var(--black); }

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .theme-hero-inner { grid-template-columns: 1fr; }
  .theme-hero-stats { flex-direction: row; align-items: flex-start; }
  .challenge-body-inner { grid-template-columns: 1fr; }
  .other-themes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .challenge-header { padding: 18px 20px; gap: 12px; }
  .challenge-tags { display: none; }
  .challenge-body-inner { padding: 0 20px 20px; }
  .other-themes-grid { grid-template-columns: 1fr; }
}
