/* ============================================================
   SUMBER.CSS — Sinkron dengan index.css / Pancasila App
   ============================================================ */

/* ─── NAV ACTIVE ─────────────────────────────────────────── */
.nav-link.active {
  background: rgba(255,255,255,0.25);
  font-weight: 800;
  border-bottom: 2px solid #fff;
}

/* ─── HERO ────────────────────────────────────────────────── */
.sumber-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 2rem 60px;
  overflow: hidden;
  text-align: center;
}

.sumber-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sumber-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%);
}

.sumber-hero-bg .hero-flag-stripe.white {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

.sumber-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.sumber-hero-title {
  display: flex;
  flex-direction: column;
  margin: 1rem 0;
}

.sumber-hero-title .hero-title-top,
.sumber-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;
}

.sumber-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;
}

.sumber-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 */
.sumber-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: 340px;
  margin: 0 auto;
}

.sumber-hero-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sumber-hero-stats .stat strong {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: #d32f2f;
}

.sumber-hero-stats .stat span {
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sumber-hero-stats .stat-divider {
  width: 1px;
  height: 36px;
  background: #e0e0e0;
}

/* ─── SECTION ─────────────────────────────────────────────── */
.sumber-section {
  padding: 60px 2rem 80px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ─── GRID ────────────────────────────────────────────────── */
.sumber-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

/* ─── CARD ────────────────────────────────────────────────── */
.sumber-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.09);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.35s ease;
  position: relative;
}

.sumber-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 24px 56px rgba(0,0,0,0.14);
}

.sc-video { border-top: 5px solid #c0392b; }
.sc-ebook  { border-top: 5px solid #2980b9; }

/* badge */
.sc-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  background: #fdecea;
  color: #c0392b;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sc-ebook .sc-badge {
  background: #e8f4fd;
  color: #2980b9;
}

/* icon circle */
.sc-icon-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 36px 20px 16px;
}

.sc-icon-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: white;
  box-shadow: 0 8px 24px rgba(211,47,47,0.35);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.sc-ebook .sc-icon-circle {
  background: linear-gradient(135deg, #2980b9, #1a6494);
  box-shadow: 0 8px 24px rgba(41,128,185,0.35);
}

.sumber-card:hover .sc-icon-circle {
  transform: scale(1.12) rotate(-5deg);
}

/* body */
.sc-body {
  padding: 0 26px 16px;
  flex: 1;
}

.sc-body h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 10px;
  line-height: 1.4;
}

.sc-body p {
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.75;
  margin: 0 0 16px;
}

.sc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sc-list li {
  font-family: 'Nunito', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: #555;
  background: #f8f8f8;
  padding: 7px 14px;
  border-radius: 10px;
}

/* CTA button */
.sc-btn {
  margin: 16px 26px 26px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  color: white;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(211,47,47,0.3);
}

.sc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(211,47,47,0.45);
}

.sc-btn-ebook {
  background: linear-gradient(135deg, #2980b9, #1a6494);
  box-shadow: 0 6px 18px rgba(41,128,185,0.3);
}

.sc-btn-ebook:hover {
  box-shadow: 0 10px 28px rgba(41,128,185,0.45);
}

/* ─── BACK BUTTON ─────────────────────────────────────────── */
.sumber-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);
}

/* ─── MODAL OVERLAY ───────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ─── MODAL BOX ───────────────────────────────────────────── */
.modal-box {
  background: white;
  border-radius: 24px;
  max-width: 680px;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.28);
  transform: scale(0.9) translateY(24px);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-box-ebook {
  max-width: 780px;
}

/* close btn */
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.25);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  color: white;
  z-index: 10;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover { background: rgba(255,255,255,0.4); }

/* modal header */
.modal-header-sumber {
  padding: 28px 32px 22px;
  background: linear-gradient(135deg, var(--mc, #c0392b), color-mix(in srgb, var(--mc, #c0392b) 65%, black));
}

.modal-badge {
  font-family: 'Nunito', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 6px;
}

.modal-header-sumber h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin: 0;
}

/* video wrapper — responsive 16:9 */
.modal-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.modal-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ebook frame */
.modal-ebook-wrap {
  height: 460px;
}

.ebook-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* note */
.modal-note {
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  color: #888;
  padding: 12px 24px 16px;
  margin: 0;
  text-align: center;
  border-top: 1px solid #f0f0f0;
}

/* ─── SCROLL REVEAL ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.sumber-grid .sumber-card:nth-child(1) { transition-delay: 0.08s; }
.sumber-grid .sumber-card:nth-child(2) { transition-delay: 0.2s; }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .sumber-hero {
    padding: 100px 1.2rem 50px;
  }

  .sumber-grid {
    grid-template-columns: 1fr;
  }

  .modal-header-sumber {
    padding: 22px 20px 18px;
  }

  .modal-ebook-wrap {
    height: 340px;
  }

  .sumber-hero-stats {
    gap: 16px;
    padding: 12px 22px;
  }
}