/* ============================================================
   LATIHAN.CSS — Sinkron dengan sumber.css / Pancasila App
   ============================================================ */

/* ─── NAV ACTIVE ─────────────────────────────────────────── */
.nav-link.active {
  background: rgba(255,255,255,0.25);
  font-weight: 800;
  border-bottom: 2px solid #fff;
}

/* ─── HERO ────────────────────────────────────────────────── */
.latihan-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 2rem 60px;
  overflow: hidden;
  text-align: center;
}

.latihan-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.latihan-hero-bg .hero-flag-stripe.red {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(135deg, #b71c1c 0%, #d32f2f 60%, #c62828 100%);
}

.latihan-hero-bg .hero-flag-stripe.white {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

.latihan-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

/* hero badge */
.hero-badge {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 14px;
  backdrop-filter: blur(4px);
}

.latihan-hero-title {
  display: flex;
  flex-direction: column;
  margin: 1rem 0;
}

.latihan-hero-title .hero-title-top,
.latihan-hero-title .hero-title-bottom {
  font-family: 'Lora', serif;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.9);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.latihan-hero-title .hero-title-bottom {
  color: rgba(0,0,0,0.55);
  margin-top: 6px;
}

.latihan-hero-title .hero-title-main {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 5px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.3);
  line-height: 1;
}

.latihan-hero-desc {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: rgba(0,0,0,0.6);
  max-width: 540px;
  margin: 0.5rem auto 1.5rem;
  line-height: 1.7;
}

/* stats row */
.latihan-hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  background: white;
  border-radius: 50px;
  padding: 14px 32px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  max-width: 360px;
  margin: 0 auto;
}

.latihan-hero-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.latihan-hero-stats .stat strong {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: #d32f2f;
}

.latihan-hero-stats .stat span {
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.latihan-hero-stats .stat-divider {
  width: 1px;
  height: 36px;
  background: #e0e0e0;
}

/* ─── TABS ────────────────────────────────────────────────── */
.latihan-tabs-section {
  display: flex;
  justify-content: center;
  padding: 32px 2rem 0;
}

.latihan-tabs {
  display: flex;
  gap: 12px;
  background: #f4f4f4;
  padding: 6px;
  border-radius: 50px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.07);
}

.latihan-tab {
  font-family: 'Nunito', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 28px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  background: transparent;
  color: #888;
  letter-spacing: 0.4px;
  transition: all 0.25s ease;
}

.latihan-tab.active {
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  color: white;
  box-shadow: 0 4px 16px rgba(211,47,47,0.35);
}

.latihan-tab:not(.active):hover {
  background: rgba(0,0,0,0.06);
  color: #444;
}

/* ─── LATIHAN SECTION ─────────────────────────────────────── */
.latihan-section {
  padding: 40px 2rem 80px;
  max-width: 1000px;
  margin: 0 auto;
}

/* ─── CARD ────────────────────────────────────────────────── */
.latihan-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.09);
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
}

.latihan-card.hidden {
  display: none;
}

/* color accents */
.lc-merah { border-top: 5px solid #c0392b; }
.lc-biru  { border-top: 5px solid #2980b9; }

/* ─── CARD HEADER ─────────────────────────────────────────── */
.lc-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 28px;
  border-bottom: 1px solid #f0f0f0;
  flex-wrap: wrap;
}

.lc-icon-circle {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  box-shadow: 0 6px 20px rgba(211,47,47,0.35);
  transition: transform 0.4s ease;
}

.lc-icon-blue {
  background: linear-gradient(135deg, #2980b9, #1a6494);
  box-shadow: 0 6px 20px rgba(41,128,185,0.35);
}

.latihan-card:hover .lc-icon-circle {
  transform: scale(1.1) rotate(-5deg);
}

.lc-title-wrap {
  flex: 1;
}

.lc-label {
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #c0392b;
  display: block;
  margin-bottom: 4px;
}

.lc-biru .lc-label {
  color: #2980b9;
}

.lc-title-wrap h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 6px;
  line-height: 1.3;
}

.lc-title-wrap p {
  font-family: 'Lora', serif;
  font-size: 0.88rem;
  color: #777;
  margin: 0;
  line-height: 1.6;
}

/* open button */
.lc-open-btn {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  padding: 10px 20px;
  border-radius: 50px;
  letter-spacing: 0.4px;
  box-shadow: 0 4px 14px rgba(211,47,47,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.lc-open-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(211,47,47,0.45);
}

.lc-open-blue {
  background: linear-gradient(135deg, #2980b9, #1a6494);
  box-shadow: 0 4px 14px rgba(41,128,185,0.3);
}

.lc-open-blue:hover {
  box-shadow: 0 8px 22px rgba(41,128,185,0.45);
}

/* ─── IFRAME WRAPPER ──────────────────────────────────────── */
.lc-frame-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #f9f9f9;
}

.lc-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── BACK BUTTON ─────────────────────────────────────────── */
.latihan-back {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.btn-back {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #d32f2f;
  text-decoration: none;
  border: 2px solid #d32f2f;
  padding: 12px 28px;
  border-radius: 50px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-back:hover {
  background: #d32f2f;
  color: white;
  transform: translateX(-4px);
  box-shadow: 0 6px 20px rgba(211,47,47,0.3);
}

/* ─── QUOTE SECTION ───────────────────────────────────────── */
.quote-section {
  background: linear-gradient(135deg, #b71c1c 0%, #d32f2f 60%, #c62828 100%);
  padding: 60px 2rem;
  text-align: center;
}

.quote-inner {
  max-width: 700px;
  margin: 0 auto;
}

.quote-icon {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  color: rgba(255,255,255,0.35);
  line-height: 1;
  margin-bottom: 12px;
}

.quote-inner blockquote {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255,255,255,0.95);
  line-height: 1.85;
  margin: 0 0 16px;
}

.quote-inner cite {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 20px;
}

.quote-flag {
  display: inline-flex;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.quote-flag .flag-red,
.quote-flag .flag-white {
  display: block;
  width: 36px;
  height: 24px;
}

.quote-flag .flag-red  { background: #c0392b; }
.quote-flag .flag-white { background: #ffffff; }

/* ─── SCROLL REVEAL ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .latihan-hero {
    padding: 100px 1.2rem 50px;
  }

  .latihan-hero-stats {
    gap: 16px;
    padding: 12px 22px;
  }

  .lc-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .lc-open-btn {
    align-self: flex-start;
  }

  .latihan-tabs {
    flex-direction: row;
    width: 100%;
    justify-content: center;
  }

  .latihan-tab {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .quote-section {
    padding: 48px 1.4rem;
  }
}