/* ==========================================================================
   HALAMAN DETAIL PROGRAM (detail-*.html)
   ========================================================================== */
/* ==========================================================================
   5. DETAIL KELAS (`detail-kelas.html`)
   ========================================================================== */
.detail-hero {
  padding: 40px 0 20px;
  background: linear-gradient(180deg, #fff 0%, #F7F9FD 100%);
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.class-title {
  font-family: "Baloo 2", cursive, sans-serif;
  font-size: 48px;
  color: var(--blue);
  line-height: 1.1;
  margin: 0 0 12px;
}

.class-desc {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
  max-width: 480px;
}

.detail-hero-media {
  position: relative;
  text-align: center;
}

.highlights-grid, .methods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.highlight-card, .method-card {
  padding: 24px 16px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(43, 58, 122, 0.04);
}

.highlight-card h3, .method-card h3 {
  font-family: "Baloo 2", cursive, sans-serif;
  font-size: 18px;
  color: var(--navy);
  margin: 6px 0 4px;
}

.highlight-card p, .method-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.card-icon {
  font-size: 32px;
  margin-bottom: 6px;
}

.level-content-card {
  background: #FFF0F6;
  border-radius: 24px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.level-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.level-title-row h3 {
  font-family: "Baloo 2", cursive, sans-serif;
  font-size: 28px;
  color: var(--pink);
  margin: 0;
}

.duration-badge {
  background: #FFE2EC;
  color: var(--pink);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.checklist-pink {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist-pink li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--ink);
}

.checklist-pink li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  background: var(--pink);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.info-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}

.info-box, .pricing-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.box-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.box-header h2 {
  font-family: "Baloo 2", cursive, sans-serif;
  font-size: 24px;
  color: var(--navy);
  margin: 0;
}

.box-header .subtext {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.box-icon { font-size: 26px; }

.info-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.info-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.info-item strong {
  display: block;
  font-size: 14px;
  color: var(--navy);
}

.info-item p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.price-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: #FBFCFF;
}

.price-card.highlight {
  border: 2px solid var(--yellow);
  background: #FFF8E9;
}

.card-type {
  font-family: "Baloo 2", cursive, sans-serif;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 6px;
}

.price-card .price {
  font-family: "Baloo 2", cursive, sans-serif;
  font-size: 20px;
  color: var(--pink);
  margin: 0 0 14px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
}

.check-list li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
  color: var(--ink);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}

/* ==========================================================================
   10. MEDIA QUERIES (RESPONSIVE DISATUKAN)
   ========================================================================== */

@media (max-width: 980px) {
  .highlights-grid, .methods-grid { grid-template-columns: repeat(2, 1fr); }
  .info-pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .detail-hero-grid, .level-content-card { grid-template-columns: 1fr; text-align: center; }
  .pricing-cards-grid, .info-list { grid-template-columns: 1fr; }
  .level-title-row { justify-content: center; }
  .checklist-pink li { text-align: left; }
}

@media (max-width: 430px) {
  .highlights-grid, .methods-grid { grid-template-columns: 1fr; }
  .class-title { font-size: 38px; }
}

/* ==========================================================================
   FLEXIBLE CENTERED GRID (POLA RESPONTIF 5 & 6 KARTU)
   ========================================================================== */
.focus-grid-4, 
.focus-grid-5, 
.focus-grid-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Menjaga baris terakhir yang tersisa berada di tengah */
  gap: 20px;
  margin-top: 24px;
}

/* 1. LAYAR FULL DESKTOP (> 1200px): Semua Kartu 1 Baris Penuh */
.focus-card {
  flex: 1 1 0px; /* Lebar otomatis terbagi rata sesuai jumlah kartu (1 baris penuh) */
  min-width: 170px;
  border-radius: 22px;
  padding: 28px 20px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 6px 18px rgba(43, 58, 122, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  
  box-sizing: border-box;
}

.focus-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(43, 58, 122, 0.08);
}

.focus-card p {
  margin-top: auto;
}

/* ==========================================================================
   BREAKPOINT RESPONSIONAL BERDASARKAN JUMLAH KARTU
   ========================================================================== */

/* 2. LAYAR LAPTOP / TABLET LANDSCAPE (< 1200px) */
@media (max-width: 1200px) {
  /* Khusus Jika Ada 5 Kartu -> 3 Di Atas, 2 Di Bawah (Tengah) */
  .focus-grid-5 .focus-card {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
  }

  /* Khusus Jika Ada 6 Kartu -> 4 Di Atas, 2 Di Bawah (Tengah) */
  .focus-grid-4 .focus-card,
  .focus-grid-flex .focus-card {
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
  }
}

/* 3. LAYAR TABLET PORTRAIT (< 900px) */
@media (max-width: 900px) {
  /* 5 Kartu -> Tetap 3 di atas, 2 di bawah */
  .focus-grid-5 .focus-card {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
  }

  /* 6 Kartu -> Menjadi 3 Di Atas, 3 Di Bawah */
  .focus-grid-4 .focus-card,
  .focus-grid-flex .focus-card {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
  }
}

/* 4. LAYAR MOBILE SEDANG (< 700px): 2 Kolom Rata Tengah */
@media (max-width: 700px) {
  .focus-grid-5 .focus-card,
  .focus-grid-4 .focus-card,
  .focus-grid-flex .focus-card {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

/* 5. LAYAR MOBILE KECIL (< 480px): 1 Kolom Full */
@media (max-width: 480px) {
  .focus-grid-5 .focus-card,
  .focus-grid-4 .focus-card,
  .focus-grid-flex .focus-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Pembungkus Ikon */
.focus-icon-wrap {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.focus-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.focus-card h3 {
  font-family: "Baloo 2", cursive, sans-serif;
  font-size: 19px;
  color: var(--navy);
  margin: 0 0 8px;
  line-height: 1.25;
}

.focus-card p {
  font-size: 13px;
  color: #64748B;
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 980px) {
  /* Responsif Mobile & Tablet */
  .focus-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 540px) {
  .focus-grid-4 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Vertical Timeline Stepper */
.timeline-stepper-wrapper {
  max-width: 900px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-step-item {
  display: flex;
  gap: 20px;
}

.timeline-badge-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-family: "Baloo 2", cursive, sans-serif;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.timeline-connector-line {
  width: 3px;
  flex-grow: 1;
  background: #E8EBF4;
  margin-top: 8px;
  border-radius: 2px;
}

.timeline-content-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  flex-grow: 1;
  box-shadow: 0 4px 16px rgba(43, 58, 122, 0.04);
  transition: transform 0.2s ease;
}

.timeline-content-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 12px;
}

.timeline-card-header h3 {
  font-family: "Baloo 2", cursive, sans-serif;
  font-size: 20px;
  color: var(--navy);
  margin: 4px 0 0;
}

/* ==========================================================================
   PENYESUAIAN JARAK TIMELINE CARD
   ========================================================================== */

/* 1. Kurangi padding bawah pada header kartu */
.timeline-card-header {
  padding-bottom: 4px; /* Sebelumnya default 12px */
}

/* 2. Perkecil jarak kelas utility margin-top-12 */
.margin-top-12 {
  margin-top: 4px !important; /* Diperkecil dari 12px menjadi 6px */
}

/* 3. Kurangi padding dalam learning-box agar lebih ringkas */
.learning-box {
  padding: 10px 14px; /* Sebelumnya 16px */
}

/* 4. Kurangi jarak judul h4 ke daftar list (ul) di dalamnya */
.learning-box h4 {
  margin: 0 0 4px; /* Sebelumnya margin-bottom 8px */
}

.duration-pill {
  font-size: 12px;
  font-weight: 700;
  background: #F0F4FF;
  color: var(--navy);
  padding: 6px 14px;
  border-radius: 20px;
}

.learning-box {
  background: #FBFCFF;
  border: 1px solid #EEF2FA;
  border-radius: 14px;
  padding: 16px;
}

.learning-box h4 {
  font-family: "Baloo 2", cursive, sans-serif;
  font-size: 16px;
  color: var(--navy);
  margin: 0 0 8px;
}

.learning-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
}

/* ==========================================================================
   LAYOUT WHAT WE LEARN - CLEAN HEADER CARDS
   ========================================================================== */
.curriculum-grid-modern {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.curriculum-card-clean {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(43, 58, 122, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.curriculum-card-clean:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* Header Pill (Background Warna untuk Judul) */
.card-header-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 16px;
  margin-bottom: 18px;
}

.card-header-pill h3 {
  font-family: "Baloo 2", cursive, sans-serif;
  font-size: 19px;
  margin: 0;
  line-height: 1.2;
}

.pill-icon {
  font-size: 22px;
  flex-shrink: 0;
}

/* Warna Soft Pastel untuk Header */
.bg-purple-soft { background: #F3E8FF; color: #6B21A8; }
.bg-pink-soft   { background: #FFE4E6; color: #BE123C; }
.bg-blue-soft   { background: #E0F2FE; color: #0369A1; }
.bg-yellow-soft { background: #FEF3C7; color: #B45309; }
.bg-green-soft  { background: #DCFCE7; color: #15803D; }
.bg-coral-soft  { background: #FFEDD5; color: #C2410C; }

/* Custom Check List */
.clean-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clean-check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}

.clean-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  font-weight: 800;
  font-size: 14px;
}

.list-purple li::before { color: #8B5CF6; }
.list-pink li::before   { color: #FB7185; }
.list-blue li::before   { color: #38BDF8; }
.list-yellow li::before { color: #F59E0B; }
.list-green li::before  { color: #22C55E; }
.list-coral li::before  { color: #F97316; }

/* Responsif Mobile & Tablet */
@media (max-width: 860px) {
  .curriculum-grid-modern {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Menempatkan kartu ganjil terakhir tepat di tengah 2-kolom grid */
@media (min-width: 861px) {
  .curriculum-card-clean.card-last-center {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: 540px; /* Lebar simetris agar serasi dengan kartu lainnya */
  }
}

/* Khusus Kartu Tunggal Agar Rapi di Tengah */
.card-single-center {
  max-width: 700px;
  margin: 0 auto;
  grid-column: 1 / -1; /* Mengisi posisi tengah jika berada dalam grid */
}

/* ==========================================================================
   HERO DETAIL KELAS REDESIGN (PROFESIONAL & MODERN)
   ========================================================================== */
.hero-detail-redesign {
  padding: 40px 0 60px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F7FE 100%);
  border-bottom: 1px solid var(--line);
}

.hero-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

/* Kolom Kiri */
.hero-tag-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-action-group {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-hero-cta small {
  font-size: 11px;
  opacity: 0.9;
  font-weight: 400;
}

/* Kolom Kanan (Visual Card Frame) */
.hero-detail-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 12px 32px rgba(43, 58, 122, 0.08);
}

.hero-img-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: 350px;
  border-radius: 20px;
  overflow: hidden;
}

.hero-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-floating-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(10, 36, 78, 0.85);
  backdrop-filter: blur(4px);
  color: #FFF;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
}

.hero-quick-stats {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.qstat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  padding: 10px 12px;
  border-radius: 14px;
}

.qstat-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.qstat-item strong {
  display: block;
  font-size: 13px;
  color: var(--navy);
  line-height: 1.2;
}

.qstat-item small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
  display: block;
}

@media (max-width: 576px) {
  .hero-quick-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  /* Responsif Layar HP */
  .hero-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-tag-row, .hero-action-group {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .comparison-box-wrapper {
    grid-template-columns: 1fr;
  }
  .timeline-step-item {
    gap: 12px;
  }
  .timeline-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
