/* ==========================================================================
   Ponpes Online — Public Landing Page
   Standalone stylesheet (index.html + berita_detail.html do NOT extend
   the mobile app base.html, so all styling for these two pages lives here).
   Palette & font match the project design system (see static/css/ponpes.css).
   ========================================================================== */

:root {
  --deep-navy: #003354;
  --light-sky: #CBEFFF;
  --teal-green: #148F87;
  --warm-yellow: #FFB606;
  --charcoal-gray: #4A5568;
  --bg-light: #F8FAFC;
  --white: #FFFFFF;
  --text-muted: #64748B;
  --card-shadow: 0 4px 16px rgba(15, 23, 42, .06);

  --navy-dark: #001f33;
  --teal-dark: #0d6a64;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

/* ── Reset ───────────────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-light);
  color: var(--charcoal-gray);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-heading {
  font-size: 2rem;
  font-weight: 800;
  color: var(--deep-navy);
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 44px;
  font-size: .98rem;
}

.section-pad { padding: 72px 0; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-yellow { background: var(--warm-yellow); color: var(--deep-navy); }
.btn-yellow:hover { box-shadow: 0 8px 20px rgba(255, 182, 6, .35); }

.btn-outline-light { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

.btn-teal { background: var(--teal-green); color: var(--white); }
.btn-teal:hover { box-shadow: 0 8px 20px rgba(20, 143, 135, .35); }

.btn-outline-navy { border-color: var(--deep-navy); color: var(--deep-navy); }
.btn-outline-navy:hover { background: var(--deep-navy); color: var(--white); }

/* ── Navbar ──────────────────────────────────────────────────────────── */
.landing-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--deep-navy);
}

.navbar-brand img {
  height: 38px;
  width: 38px;
  object-fit: contain;
  border-radius: 8px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 600;
  font-size: .95rem;
}

.navbar-links a { color: var(--charcoal-gray); transition: color .15s ease; }
.navbar-links a:hover { color: var(--teal-green); }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-nav-login {
  color: var(--deep-navy);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background .15s ease;
}
.btn-nav-login:hover { background: var(--light-sky); }

.btn-nav-signup {
  background: var(--deep-navy);
  color: var(--white);
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  transition: background .15s ease, transform .15s ease;
}
.btn-nav-signup:hover { background: var(--teal-green); transform: translateY(-1px); }

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--deep-navy);
  cursor: pointer;
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  background: linear-gradient(150deg, var(--deep-navy) 0%, var(--teal-dark) 65%, var(--teal-green) 100%);
  color: var(--white);
  padding: 96px 24px 110px;
  overflow: hidden;
  text-align: center;
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}
.hero-section::before { width: 420px; height: 420px; top: -180px; right: -120px; }
.hero-section::after { width: 300px; height: 300px; bottom: -140px; left: -80px; background: rgba(255, 182, 6, .09); }

.hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  color: var(--light-sky);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}

.hero-title .accent { color: var(--warm-yellow); }

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .85);
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Slider ──────────────────────────────────────────────────────────── */
.slider-section {
  max-width: 1040px;
  margin: -70px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}

.slider-viewport {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 51, 84, .25);
  background: var(--deep-navy);
  height: 320px;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease;
}

.slide.active { opacity: 1; visibility: visible; }

.slide-gradient-fallback {
  background: linear-gradient(135deg, var(--deep-navy), var(--teal-green));
}

.slide-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.15) 60%, transparent 100%);
}

.slide-content {
  position: relative;
  padding: 32px 40px;
  color: var(--white);
  max-width: 640px;
}

.slide-content h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.slide-content p {
  color: rgba(255, 255, 255, .85);
  margin-bottom: 16px;
  font-size: .98rem;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .35);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  transition: background .15s ease;
}
.slider-arrow:hover { background: rgba(255, 255, 255, .32); }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.slider-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(15, 23, 42, .18);
  cursor: pointer;
  border: none;
  transition: background .15s ease, transform .15s ease;
}
.slider-dots .dot.active { background: var(--teal-green); transform: scale(1.25); }

/* ── Stats ───────────────────────────────────────────────────────────── */
.stats-section { padding: 64px 0 24px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  padding: 28px 16px;
  text-align: center;
}

.stat-number {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--deep-navy);
}

.stat-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: .9rem;
  margin-top: 4px;
}

/* ── Fitur / Keunggulan ──────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  padding: 32px 24px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(15, 23, 42, .1); }

.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--teal-green), var(--deep-navy));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 18px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: .92rem;
}

/* ── Berita Acara ────────────────────────────────────────────────────── */
.berita-section { background: var(--white); }

.berita-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.berita-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.berita-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(15, 23, 42, .12); }

.berita-cover {
  height: 170px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.berita-cover.no-image {
  background: linear-gradient(135deg, var(--teal-green), var(--deep-navy));
}

.berita-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--warm-yellow);
  color: var(--deep-navy);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 5px 12px;
  border-radius: 999px;
}

.berita-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.berita-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 8px;
  line-height: 1.35;
}

.berita-excerpt {
  color: var(--text-muted);
  font-size: .9rem;
  flex: 1;
  margin-bottom: 14px;
}

.berita-date {
  font-size: .82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.berita-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
}

/* ── Unduh Aplikasi ──────────────────────────────────────────────────── */
.app-section {
  background: linear-gradient(135deg, var(--deep-navy), var(--navy-dark));
  color: var(--white);
  text-align: center;
}

.app-section .section-heading { color: var(--white); }
.app-section .section-sub { color: rgba(255, 255, 255, .75); }

.app-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.app-button {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  padding: 16px 30px;
  border-radius: var(--radius-md);
  min-width: 220px;
  transition: background .15s ease, transform .15s ease;
}
.app-button:hover { background: rgba(255, 255, 255, .16); transform: translateY(-3px); }

.app-button i { font-size: 1.8rem; color: var(--warm-yellow); }

.app-button-text { text-align: left; }
.app-button-text small { display: block; color: rgba(255,255,255,.65); font-size: .72rem; }
.app-button-text span { font-weight: 700; font-size: 1.02rem; }

.app-version {
  margin-top: 18px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .55);
}

/* ── Footer CTA ──────────────────────────────────────────────────────── */
.footer-cta-section {
  text-align: center;
  padding: 64px 24px;
}

.footer-cta-section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--deep-navy);
  margin-bottom: 14px;
}

.footer-cta-section p {
  color: var(--text-muted);
  margin-bottom: 26px;
}

.landing-footer {
  background: var(--deep-navy);
  color: rgba(255, 255, 255, .7);
  text-align: center;
  padding: 28px 24px;
  font-size: .88rem;
}

.landing-footer strong { color: var(--white); }

/* ── Berita Detail Page ──────────────────────────────────────────────── */
.detail-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-green);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 24px;
}
.back-link:hover { color: var(--deep-navy); }

.detail-badge {
  display: inline-block;
  background: var(--light-sky);
  color: var(--deep-navy);
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.detail-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--deep-navy);
  line-height: 1.25;
  margin-bottom: 16px;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 28px;
}

.detail-meta span { display: flex; align-items: center; gap: 6px; }

.detail-cover {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--card-shadow);
}

.detail-cover img { width: 100%; height: auto; }

.detail-body {
  font-size: 1.02rem;
  color: var(--charcoal-gray);
}

.detail-body p { margin-bottom: 18px; }
.detail-body img { border-radius: var(--radius-md); margin: 20px 0; }
.detail-body h2, .detail-body h3 { color: var(--deep-navy); margin: 28px 0 12px; }
.detail-body ul, .detail-body ol { margin: 0 0 18px 22px; }
.detail-body a { color: var(--teal-green); text-decoration: underline; }

.related-section {
  border-top: 1px solid rgba(15, 23, 42, .08);
  margin-top: 48px;
  padding-top: 32px;
}

.related-section h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--deep-navy);
  margin-bottom: 18px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--card-shadow);
  padding: 18px;
  font-weight: 700;
  color: var(--deep-navy);
  font-size: .92rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.related-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(15,23,42,.1); }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .berita-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.3rem; }
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--white);
    padding: 16px 24px 22px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .1);
  }
  .navbar-links.active { display: flex; }
  .navbar-links a { width: 100%; padding: 10px 0; }
  .navbar-toggle { display: block; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat-card { padding: 18px 10px; }
  .stat-number { font-size: 1.5rem; }
  .slider-viewport { height: 260px; }
  .slide-content { padding: 24px; }
  .app-grid { flex-direction: column; align-items: center; }
}

@media (max-width: 560px) {
  .hero-section { padding: 64px 20px 90px; }
  .hero-title { font-size: 1.85rem; }
  .hero-subtitle { font-size: 1rem; }
  .features-grid { grid-template-columns: 1fr; }
  .berita-grid { grid-template-columns: 1fr; }
  .section-heading { font-size: 1.5rem; }
  .detail-title { font-size: 1.6rem; }
  .navbar-inner { padding: 12px 16px; }
  .navbar-brand { font-size: 1.05rem; }
}
