
/* 1. FONDASI & IMPORT FONT */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    /* Palet Warna - Sesuai Tema Modul */
    --primary: #1e3a5f;      /* Biru Tua */
    --secondary: #0077b6;   /* Biru Cerah */
    --accent-green: #28a745;  /* Hijau */
    --accent-yellow: #ffc300;/* Kuning Ceria */
    --accent-red: #d90429;   /* Merah PDF */
    --bg-light: #f7faff;     /* Latar Belakang Utama Paling Cerah */
    --bg-white: #ffffff;
    --bg-alt: #f0f9ff;     /* Latar Belakang Alternatif (Biru Pucat) */
    --text-dark: #344054;
    --text-medium: #667085;
    --text-light: #a0aec0;
    --border-soft: #eef2f7;
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 30px rgba(0, 119, 182, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
}

/* 1. Style untuk Kontainer Navigasi Kelompok */
.group-navigation {
    margin-bottom: 1.5rem; 
}

.group-navigation h3 {
    font-size: 1em; 
    font-weight: 600;
    color: var(--primary);
    padding: 0 10px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.group-navigation ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px; 
}

.group-navigation li a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.7em;
    border: 1px solid var(--border-soft);
    background: var(--bg-light); /* Latar abu-abu pucat */
}

/* 2. Style untuk Link Kelompok yang Aktif */
.group-navigation li.active a,
.group-navigation li a:hover {
    background-color: var(--secondary); /* Warna biru cerah */
    color: var(--white);
    font-weight: 600;
    border-color: var(--secondary);
    box-shadow: 0 4px 10px rgba(0, 119, 182, 0.2);
}

/* 3. Penyesuaian Ulang Daftar Isi Materi (Agar tidak terlalu tinggi) */
.table-of-contents ul { 
    max-height: calc(100vh - 500px); /* Kurangi tinggi maks-nya */
    /* Sesuaikan 500px jika perlu */
}

/* 2. SIDEBAR KIRI */
.sidebar {
    position: fixed; top: 0; left: 0;
    width: 280px; height: 100vh;
    background: var(--bg-white);
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    padding: 2rem; z-index: 1000;
    display: flex; flex-direction: column;
    border-right: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
}
.sidebar .logo {
    font-size: 1rem; font-weight: 700; color: var(--primary);
    display: flex; align-items: center; gap: 10px; margin-bottom: 2rem;
    text-decoration: none;
}
.sidebar .logo i { color: var(--secondary); }
.sidebar h3 {
    font-size: 0.9em; font-weight: 600; color: var(--text-medium);
    margin: 1rem 0 1rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.table-of-contents {
    flex: 1 1 auto; 
    min-height: 0;  
    overflow-y: auto;  
    margin-bottom: 1rem; 
    scrollbar-width: thin;
    scrollbar-color: var(--secondary) var(--border-soft);
}
.table-of-contents ul { 
    list-style: none; padding: 0; 
    max-height: calc(100vh - 400px); 
  
    font-size: 0.7em;
}
.table-of-contents li a {
    display: block; padding: 10px 12px; text-decoration: none;
    color: var(--text-dark); font-weight: 500; border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent; font-size: 0.95em;
}
.table-of-contents li.active a {
    background-color: var(--bg-alt);
    color: var(--secondary);
    font-weight: 600;
    border-left: 3px solid var(--secondary);
}
.table-of-contents li a:hover {
    background-color: var(--bg-alt);
    transform: translateX(5px);
}
.download-section { margin-top: 1.5rem; }
.download-buttons { display: flex; flex-direction: column; gap: 10px; }
.btn-download {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 15px; text-decoration: none; font-weight: 500;
    border-radius: 8px; transition: all 0.3s ease;
    border: 1px solid var(--border-soft);
    background-color: var(--bg-white);
}
.btn-download:hover { box-shadow: var(--shadow-medium); transform: translateY(-2px); border-color: var(--secondary); }
.btn-download i { font-size: 1.2em; width: 20px; }
.btn-download.pdf { color: var(--accent-red); }
.btn-download.image { color: var(--accent-yellow); }
.btn-download span { color: var(--text-dark); }
.back-link {
    margin-top: auto; padding: 10px; text-align: center;
    color: var(--text-medium); text-decoration: none; font-weight: 500;
    border-radius: 8px; transition: all 0.3s ease;
}
.back-link:hover { background-color: var(--bg-light); color: var(--primary); }
.back-link-mobile { display: none; }
.section-intro {
    font-size: 1.1em;
    color: var(--text-medium);
    text-align: left;
    margin: -1.5rem 0 2rem 0;
}

/* 4. GRID KARTU FITUR (PERBAIKAN UTAMA) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* 5. KARTU FITUR INDIVIDUAL (PERBAIKAN UTAMA) */
.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 0px;
    display: block; 
    text-align: left; 
    transition: all 0.3s ease;
    overflow: hidden;
}
.feature-image {
    width: 100%;
    height: 180px; /* Atur tinggi gambar agar seragam */
    object-fit: cover; /* Memastikan gambar pas tanpa penyok */
    display: block;
    border-bottom: 1px solid var(--border-soft); /* Garis pemisah */
}

/* 4. WADAH TEKS (BARU) */
.feature-text {
    padding: 20px; /* Beri padding untuk teks di bawah gambar */
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--secondary);
}

/* Ikon di atas */
.feature-card .icon {
    font-size: 2.2rem; 
    color: var(--secondary);
    margin-bottom: 15px;
}

/* Teks di bawah */
.feature-card h4 {
    font-size: 1.2em;
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.95em;
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0;
}

/* 6. INFO BOX (TATA TERTIB) (Pastikan sudah ada) */
.info-box {
    background-color: #f0f9ff; 
    border-left: 4px solid var(--secondary);
    padding: 1.5rem;
    margin-top: 2rem; 
    border-radius: 8px;
}
.info-box h3 {
    font-size: 1.2em;
    color: var(--primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.info-box p {
    font-size: 1em;
    color: var(--text-medium);
    margin: 0;
}
/* 3. KONTEN UTAMA DI KANAN */
.main-content { margin-left: 280px; padding: 0; }
.main-header { display: flex; justify-content: flex-end; align-items: center; padding: 10px 40px; }
footer { margin-left: 280px; text-align: center; padding: 2rem; color: var(--text-medium); font-size: 0.9em; }

/* 4. HERO SECTION (Non-Video) */
.hero-section.hero-themed {
    background: linear-gradient(135deg, var(--secondary), #1c5ab5);
    color: var(--white);
    padding: 3rem 50px;
    border-radius: 16px;
    margin: 20px;
    min-height: auto;
}
.hero-content { animation: fadeInSlideUp 0.8s ease-out forwards; }
.hero-badge {
    display: inline-block; background-color: rgba(236, 229, 229, 0.963);
    padding: 5px 15px; border-radius: 15px; font-size: 0.8em;
    margin-bottom: 1rem; font-weight: 500;
}
.hero-themed h1 { font-size: 2.5em; margin-bottom: 0.5rem; color: var(--bg-light); }
.hero-themed p { font-size: 1.1em; opacity: 0.9; color: var(--bg-light); }

/* 5. BOX KONTEN UMUM */
.content-box {
    padding: 3rem 4rem; max-width: 950px; margin: 2rem auto;
    background: var(--bg-white); border-radius: 16px;
    box-shadow: var(--shadow-soft); border: 1px solid var(--border-soft);
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.content-box.section-alt { background-color: var(--bg-alt); }
.content-box.visible {
    opacity: 1;
    transform: translateY(0);
}
.content-box h2 {
    font-size: 2em; font-weight: 600; color: var(--primary);
    margin-bottom: 1.5rem; display: flex; align-items: center; gap: 10px;
    padding-bottom: 15px; border-bottom: 1px solid var(--border-soft);
}
.content-box h3 {
    font-size: 1.3em; font-weight: 600; color: var(--primary);
    margin-top: 1.5rem; margin-bottom: 0.5rem;
}
.content-box p { color: var(--text-medium); margin-bottom: 1rem; font-size: 1.05em; }
.lead { font-size: 1.15em; font-weight: 500; color: var(--text-dark); }
.content-box ol, .content-box ul { padding-left: 20px; margin-top: 1rem; }

/* 6. LAYOUT SPESIFIK & GAMBAR */
.content-split {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 1rem;
    text-align: justify;
}
.content-split.reverse {
    flex-direction: row-reverse;
}

/* 3. Pastikan style .text-content sudah benar */
.text-content {
    flex: 1;
    min-width: 0;
    
}
.text-content h3 {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.text-content p {
    font-size: 1.05em;
    color: var(--text-medium);
    margin-bottom: 1rem;
    text-align: justify;
}
.image-content {
    flex-basis: 40%;
    flex-shrink: 0;
    max-width: 350px;
}
.content-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    display: block;
    height: auto;
    max-width: 500px; 
    margin: 0 auto;
}
.figure img {
    width: 100%; border-radius: 12px; box-shadow: var(--shadow-medium);
    display: block; height: auto;
}
.figure { margin: 1rem 0; }
.figure-caption { font-size: 0.85em; text-align: center; color: var(--text-light); margin-top: 8px; font-style: italic; }

.centered-figure {
    width: 100%;
    margin: 1.5rem 0;
    text-align: center;
}
.image-grid {
    display: grid;
    gap: 15px; 
    max-width: 600px; 
    margin: 0 auto;   
}
.image-grid div { text-align: center; }
.image-grid img { width: 100%; border-radius: 8px; box-shadow: var(--shadow-soft); }
.image-grid p { font-size: 0.9em; color: var(--text-medium); margin-top: 10px; }
@media (max-width: 768px) {
    .image-grid { grid-template-columns: 1fr; }
}

/* 7. KOTAK & TABEL SPESIFIK PDF */
.activity-box {
    background-color: var(--bg-light);
    border: 1px solid var(--border-soft);
    padding: 1.5rem; border-radius: 8px; margin-top: 1.5rem;
}
.activity-box h3 { border-bottom: 1px solid var(--border-soft); padding-bottom: 10px; }
.activity-box.conclusion { background-color: #d1fae5; border-color: #6ee7b7; }
.activity-box.conclusion h3 { color: #065f46; }

.summary-box, .reflection-box {
    background-color: var(--bg-alt);
    padding: 1.5rem; border-radius: 8px; margin-top: 1.5rem;
}
.summary-box ul, .reflection-box ul { padding-left: 20px; }
.reflection-box { background-color: #fffbeb; border: 1px solid #fef3c7; }
.reflection-box p { color: #b45309; }

.table {
    width: 100%; border-collapse: collapse; margin: 1.5rem 0;
    box-shadow: var(--shadow-soft); border-radius: 8px; overflow: hidden;
}
.table th, .table td {
    padding: 12px 15px; text-align: left;
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.95em;
}
.table thead { background-color: var(--text-light); color: var(--white); }
.table tbody tr:nth-child(even) { background-color: var(--bg-alt); }
.table tbody tr:hover { background-color: #e0f2fe; }


.activity-box .content-split {
    display: flex;
    align-items: center;
    gap: 30px;
}

.activity-box .text-content {
    flex: 1;
    min-width: 0;
}

.activity-box .image-content {
    flex-basis: 35%;
    max-width: 300px; 
    flex-shrink: 0;
}

.activity-box .content-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}
/* 1. Wrapper untuk layout 1 kolom */
.single-column-story {
    max-width: 700px; 
    margin: 0 auto;   
    text-align: left;
}

.single-column-story h3 {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center; 
}
.story-item {
    /* Layout 1 kolom, gambar di atas, teks di bawah */
    max-width: 700px; /* Batasi lebar agar nyaman dibaca */
    margin: 0 auto;   /* Pusatkan di tengah */
    text-align: left; /* Teks rata kiri */
}

/* 4. Style untuk judul item (H4) */
.story-item h4 {
    font-size: 1.5em; /* Ukuran judul item */
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem; /* Jarak ke gambar */
    text-align: center; /* Judul di tengah */
}
.story-image {
    width: 100%;
    margin-bottom: 2rem; 
}

.story-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    display: block;
}

.story-image figcaption {
    font-size: 0.85em;
    text-align: center;
    color: var(--text-medium);
    margin-top: 10px;
    font-style: italic;
}

.story-text p {
    font-size: 1.05em;
    color: var(--text-medium);
    margin-bottom: 1.2rem; 
    text-align: justify;
}
.text-content h4 {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary);
    margin-top: 1.5rem; /* Jarak dari konten sebelumnya */
    margin-bottom: 1rem; /* Jarak ke daftar di bawahnya */
    display: flex;
    align-items: center;
    gap: 8px;
}
.text-content h4:first-child {
    margin-top: 0;
}

/* 2. Style untuk Daftar Ikon (UL) - BARU */
.icon-list {
    list-style: none; /* Hapus bullet point default */
    padding-left: 0; /* Hapus padding default */
    margin: 0; /* Hapus margin default */
}
/* Beri jarak antar daftar (Hak & Kewajiban) */
.icon-list + h4 {
    margin-top: 2rem;
}

/* 3. Style untuk Setiap Item (LI) - BARU */
.icon-list li {
    position: relative; /* Wajib untuk positioning ikon */
    padding-left: 35px; /* Ruang untuk ikon */
    margin-bottom: 12px; /* Jarak antar item */
    font-size: 1.05em;
    color: var(--text-medium);
    line-height: 1.6;
}

/* 4. Style untuk Ikon (I) - BARU */
.icon-list li i {
    position: absolute;
    left: 0;
    top: 5px; /* Sesuaikan agar pas di tengah baris */
    width: 25px; /* Beri lebar tetap */
    text-align: center; /* Pusatkan ikon */
    color: var(--secondary); /* Warna ikon biru */
    font-size: 1.1em; /* Ukuran ikon */
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .activity-box .content-split {
        flex-direction: column-reverse; /* Tumpuk, gambar di atas */
    }
    .activity-box .image-content {
        flex-basis: auto;
        max-width: 100%;
        width: 100%;
    }
}

/* 8. ANIMASI KEYFRAME */
@keyframes fadeInSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 9. RESPONSIVE */
@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); width: 250px; }
    .main-content, footer { margin-left: 0; }
    .main-header { display: flex; justify-content: flex-end; }
    .back-link { display: none; }
    .back-link-mobile {
        display: block; color: var(--secondary); text-decoration: none;
        font-weight: 500; padding: 10px;
    }
    .hero-section.hero-themed { margin: 10px; padding: 2rem; }
    .hero-themed h1 { font-size: 2em; }
    .content-box { padding: 1.5rem; margin: 1.5rem 10px; }
    .content-split { flex-direction: column; }
    .content-split.reverse { flex-direction: column; }
    .image-content { max-width: 100%; margin-top: 1.5rem; }
}