/* ============================================
   CELIK QURAN — Stylesheet Utama
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Inter:wght@400;500;600&display=swap');

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #F9F9F9;
  --bg-white: #FFFFFF;
  --teks: #333333;
  --teks-cair: #666666;
  --hijau: #059669;
  --hijau-cair: #ECFDF5;
  --hijau-gelap: #047857;
  --oren: #EA580C;
  --oren-gelap: #C2410C;
  --sempadan: #E5E7EB;
  --bayangan: 0 2px 8px rgba(0,0,0,0.08);
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--teks);
  line-height: 1.8;
}

a {
  color: var(--hijau);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--hijau-gelap);
  text-decoration: underline;
}

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

/* === TIPOGRAFI === */
h1, h2, h3, h4 {
  font-family: 'Merriweather', serif;
  color: var(--hijau);
  line-height: 1.4;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1.25rem;
  max-width: 68ch;
}

/* === HEADER & NAVIGASI === */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--sempadan);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--bayangan);
}

.header-dalam {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-ikon {
  width: 36px;
  height: 36px;
  background: var(--hijau);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Merriweather', serif;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo-teks {
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hijau);
}

.logo-teks span {
  color: var(--teks);
  font-weight: 400;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

nav ul li a {
  display: block;
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--teks);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

nav ul li a:hover,
nav ul li a.aktif {
  background: var(--hijau-cair);
  color: var(--hijau);
}

.nav-cta {
  background: var(--oren) !important;
  color: white !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--oren-gelap) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teks);
  border-radius: 2px;
  transition: all 0.3s;
}

/* === WRAPPER KANDUNGAN === */
.kandungan {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === HERO SECTION === */
.hero {
  background: var(--bg-white);
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid var(--sempadan);
}

.hero-dalam {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-label {
  display: inline-block;
  background: var(--hijau-cair);
  color: var(--hijau);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
  color: var(--teks);
  line-height: 1.3;
}

.hero h1 span {
  color: var(--hijau);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--teks-cair);
  margin-bottom: 2rem;
  max-width: 50ch;
}

.butang-kumpulan {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.butang-utama {
  display: inline-block;
  background: var(--oren);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.butang-utama:hover {
  background: var(--oren-gelap);
  transform: translateY(-1px);
  text-decoration: none;
  color: white;
}

.butang-sekunder {
  display: inline-block;
  background: transparent;
  color: var(--hijau);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  border: 2px solid var(--hijau);
  text-decoration: none;
  transition: all 0.2s;
}

.butang-sekunder:hover {
  background: var(--hijau-cair);
  text-decoration: none;
  color: var(--hijau);
}

.hero-visual {
  background: var(--hijau-cair);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kad-petikan {
  background: white;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--hijau);
  box-shadow: var(--bayangan);
}

.kad-petikan p {
  font-style: italic;
  color: var(--teks-cair);
  font-size: 0.9rem;
  margin: 0;
  max-width: none;
}

.kad-petikan .nama {
  font-style: normal;
  font-weight: 600;
  color: var(--hijau);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* === STATISTIK === */
.statistik {
  padding: 2.5rem 0;
  background: var(--hijau);
}

.statistik-dalam {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-item {
  color: white;
}

.stat-angka {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  font-weight: 700;
  display: block;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.85;
}

/* === SEKSYEN UMUM === */
.seksyen {
  padding: 3.5rem 0;
}

.seksyen-tajuk {
  text-align: center;
  margin-bottom: 2.5rem;
}

.seksyen-tajuk h2 {
  font-size: 1.75rem;
  color: var(--teks);
  margin-bottom: 0.75rem;
}

.seksyen-tajuk p {
  color: var(--teks-cair);
  font-size: 0.95rem;
  max-width: 55ch;
  margin: 0 auto;
}

/* === GRID ARTIKEL === */
.grid-artikel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.kad-artikel {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--sempadan);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.kad-artikel:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.kad-gambar {
  height: 160px;
  background: var(--hijau-cair);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.kad-badan {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.kad-tag {
  display: inline-block;
  background: var(--hijau-cair);
  color: var(--hijau);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kad-artikel h3 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: var(--teks);
  font-family: 'Merriweather', serif;
}

.kad-artikel p {
  font-size: 0.875rem;
  color: var(--teks-cair);
  flex: 1;
  margin-bottom: 1.25rem;
  max-width: none;
}

.pautan-baca {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hijau);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.pautan-baca::after {
  content: '→';
}

/* === KOTAK CTA === */
.kotak-cta {
  background: var(--hijau-cair);
  border: 1px solid #A7F3D0;
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  margin: 2rem 0;
}

.kotak-cta h3 {
  color: var(--hijau-gelap);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.kotak-cta p {
  color: var(--teks-cair);
  font-size: 0.95rem;
  max-width: 55ch;
  margin: 0 auto 1.5rem;
}

/* === HALAMAN ARTIKEL === */
.artikel-header {
  background: var(--bg-white);
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--sempadan);
}

.artikel-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.artikel-kategori {
  background: var(--hijau-cair);
  color: var(--hijau);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.artikel-tarikh {
  font-size: 0.85rem;
  color: var(--teks-cair);
}

.artikel-header h1 {
  font-size: 2rem;
  color: var(--teks);
  max-width: 22ch;
  margin-bottom: 1rem;
}

.artikel-header h1 span {
  color: var(--hijau);
}

.artikel-ringkasan {
  font-size: 1.05rem;
  color: var(--teks-cair);
  max-width: 60ch;
  line-height: 1.7;
}

.artikel-badan {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.artikel-badan p {
  max-width: none;
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.artikel-badan h2 {
  font-size: 1.3rem;
}

blockquote {
  border-left: 4px solid var(--hijau);
  background: var(--hijau-cair);
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--hijau-gelap);
}

/* === FOOTER === */
.footer {
  background: #1F2937;
  color: #9CA3AF;
  padding: 3rem 0 1.5rem;
}

.footer-dalam {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-jenama .logo-teks {
  color: white;
}

.footer-jenama p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 0.75rem;
  max-width: 35ch;
}

.footer h4 {
  color: white;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer ul li a {
  font-size: 0.875rem;
  color: #9CA3AF;
  transition: color 0.2s;
}

.footer ul li a:hover {
  color: white;
  text-decoration: none;
}

.footer-bawah {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid #374151;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bawah p {
  font-size: 0.8rem;
  margin: 0;
}

/* === HALAMAN DALAMAN (Kisah, Panduan dll) === */
.halaman-header {
  background: var(--bg-white);
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--sempadan);
  text-align: center;
}

.halaman-header h1 {
  font-size: 2rem;
  color: var(--teks);
  margin-bottom: 0.75rem;
}

.halaman-header p {
  color: var(--teks-cair);
  max-width: 55ch;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* === HALAMAN KELAS === */
.kelebihan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}

.kelebihan-item {
  background: var(--bg-white);
  border: 1px solid var(--sempadan);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.kelebihan-ikon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.kelebihan-item h4 {
  font-size: 0.95rem;
  color: var(--teks);
  margin-bottom: 0.35rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.kelebihan-item p {
  font-size: 0.875rem;
  color: var(--teks-cair);
  margin: 0;
  max-width: none;
}

/* === HALAMAN MENGENAI KAMI === */
.profil-ustaz {
  background: var(--bg-white);
  border: 1px solid var(--sempadan);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.profil-avatar {
  width: 100px;
  height: 100px;
  background: var(--hijau-cair);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
  border: 3px solid var(--hijau);
}

.profil-badan h3 {
  color: var(--teks);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.profil-jawatan {
  color: var(--hijau);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  html { font-size: 16px; }

  .hamburger { display: flex; }

  nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--sempadan);
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  nav.buka { display: block; }

  nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }

  nav ul li a {
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
  }

  .hero-dalam {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual { display: none; }

  .hero h1 { font-size: 1.75rem; }

  .statistik-dalam { grid-template-columns: 1fr; gap: 1.5rem; }

  .grid-artikel { grid-template-columns: 1fr; }

  .footer-dalam { grid-template-columns: 1fr; }

  .kelebihan-grid { grid-template-columns: 1fr; }

  .profil-ustaz { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero { padding: 2.5rem 0; }
  .butang-kumpulan { flex-direction: column; }
  .artikel-header h1 { font-size: 1.6rem; }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ============================================
   TESTIMONI GRID
   ============================================ */

.testimoni-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.kad-testimoni {
  background: var(--bg-white);
  border: 1px solid var(--sempadan);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
}

.kad-testimoni::before {
  content: '\201C';
  font-family: 'Merriweather', serif;
  font-size: 3.5rem;
  color: var(--hijau-cair);
  line-height: 1;
  position: absolute;
  top: 0.75rem;
  left: 1.25rem;
}

.testimoni-teks {
  font-style: italic;
  color: var(--teks-cair);
  font-size: 0.9rem;
  line-height: 1.75;
  margin: 1.5rem 0 1rem;
  max-width: none;
}

.testimoni-profil {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--sempadan);
  padding-top: 1rem;
}

.testimoni-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--hijau-cair);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 2px solid var(--hijau);
}

.testimoni-nama {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--teks);
}

.testimoni-lokasi {
  font-size: 0.8rem;
  color: var(--teks-cair);
}

.bintang {
  color: #F59E0B;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-senarai {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--sempadan);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--bg-white);
}

.faq-soalan {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--teks);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s;
}

.faq-soalan:hover {
  background: var(--hijau-cair);
}

.faq-soalan[aria-expanded="true"] {
  background: var(--hijau-cair);
  color: var(--hijau-gelap);
}

.faq-ikon {
  font-size: 1.25rem;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--hijau);
}

.faq-soalan[aria-expanded="true"] .faq-ikon {
  transform: rotate(45deg);
}

.faq-jawapan {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--teks-cair);
  line-height: 1.8;
  border-top: 1px solid var(--sempadan);
}

.faq-jawapan p {
  max-width: none;
  margin: 0.75rem 0 0;
}

.faq-soalan[aria-expanded="true"] + .faq-jawapan {
  display: block;
}

/* ============================================
   404 PAGE
   ============================================ */

.halaman-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

.kandungan-404 {
  max-width: 480px;
}

.nombor-404 {
  font-family: 'Merriweather', serif;
  font-size: 8rem;
  color: var(--hijau-cair);
  line-height: 1;
  margin-bottom: 1rem;
}

.nombor-404 span {
  color: var(--hijau);
}

.kandungan-404 h2 {
  color: var(--teks);
  margin-bottom: 1rem;
}

.kandungan-404 p {
  color: var(--teks-cair);
  max-width: none;
  margin-bottom: 2rem;
}

/* ============================================
   ARTIKEL BADAN - KEMASKINI
   ============================================ */

.artikel-tip {
  background: var(--hijau-cair);
  border: 1px solid #A7F3D0;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.artikel-tip p {
  margin: 0;
  font-size: 0.9rem;
  max-width: none;
  color: var(--hijau-gelap);
}

.artikel-tip strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--hijau);
}

ol.langkah {
  padding-left: 1.5rem;
  margin: 1rem 0 1.5rem;
}

ol.langkah li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
  font-size: 1rem;
}

/* ============================================
   RESPONSIVE TAMBAHAN
   ============================================ */

@media (max-width: 768px) {
  .testimoni-grid { grid-template-columns: 1fr; }
  .nombor-404 { font-size: 5rem; }
}
