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

:root {
    --primary: #1e3a5f;      
    --secondary: #2575fc;  
    --accent: #6a11cb;       
    --light-bg: #f8f9fa;    
    --light-blue-bg: #eaf2ff;
    --white: #ffffff;
    --text-dark: #333;
    --text-light: #555;
    --border-color: #e0e7ff;
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.08);
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* 2. HEADER, NAVBAR, & BREADCRUMB */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-soft);
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.breadcrumb {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    margin-top: 70px; 
}
.breadcrumb a {
    color: var(--secondary);
    text-decoration: none;
}


/* 3. LAYOUT UTAMA MODUL (HEADER & KONTEN) */
.modul-detail {
    padding: 2rem 0;
}
.modul-header {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(37, 117, 252, 0.2);
}
.modul-header h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
.modul-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}
.content-main {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
}


/* 4. SIDEBAR */
.content-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}
.sidebar-section {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}
.sidebar-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}
.content-list, .download-list {
    list-style: none;
}
.content-list li a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.6rem;
    border-radius: 6px;
    font-weight: 500;
}
.content-list li.active a, .content-list li a:hover {
    background-color: var(--light-blue-bg);
    color: var(--secondary);
    transform: translateX(5px);
}
.download-list a {
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0;
}
.download-list a:hover {
    color: var(--secondary);
}


/* 5. KONTEN UTAMA YANG SUDAH DIPERBAGUS */
.content-part {
    margin-bottom: 3.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInSlideUp 0.8s ease-out forwards;
}
.content-part h2 {
    font-size: 2em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid;
    border-image: linear-gradient(to right, var(--secondary), var(--accent)) 1;
}
.content-part h2 + p, .content-part p {
    font-size: 1.05em;
    color: var(--text-light);
    margin-bottom: 1rem;
}
.content-part h3 {
    color: var(--primary);
    margin: 2rem 0 1rem 0;
}

/* KOTAK INFO */
.info-box {
    background-color: var(--light-blue-bg);
    border-left: 5px solid var(--secondary);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

/* DAFTAR UL */
.content-part ul {
    list-style: none;
    padding-left: 0;
}
.content-part ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}
.content-part ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1.2em;
}

/* TABEL DATA */
.data-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: var(--shadow-medium);
    border-radius: 10px;
    overflow: hidden;
    margin: 2rem 0;
}
.data-table th, .data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.data-table thead {
    background: linear-gradient(to right, var(--secondary), var(--accent));
    color: white;
}
.data-table tbody tr:nth-child(even) {
    background-color: #fbfdff;
}

/* KARTU-KARTU INFORMASI (MANGROVE, DLL) */
.mangrove-features-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: center;
}
.mangrove-card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}
.mangrove-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px solid var(--border-color);
    width: 220px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mangrove-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}
.mangrove-card .icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}
.mangrove-card h4 {
    font-size: 1.1em;
    color: var(--primary);
    font-weight: 600;
}

/* GAMBAR & CAPTION */
.image-box {
    margin: 1.5rem 0;
    text-align: center;
}
.image-box img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
}
.image-caption {
    font-style: italic;
    color: #666;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* ACCORDION */
.accordion-item {
    margin-bottom: 10px;
}
.accordion-header {
    background-color: #fbfdff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 100%;
    padding: 15px;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.accordion-header.active, .accordion-header:hover {
    background-color: var(--light-blue-bg);
    color: var(--primary);
}
.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 15px;
}
.threat-item {
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
}
.threat-item:last-child { border-bottom: none; }


/* 6. ANIMASI & RESPONSIVE */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
#bagian1 { animation-delay: 0.1s; }
#bagian2, #bagian3, #bagian4, #bagian5, #bagian6 { animation-delay: 0.2s; }

@media (max-width: 992px) {
    .modul-content {
        grid-template-columns: 1fr;
    }
    .content-sidebar {
        position: static;
    }
}