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

/* Variabel Warna (Ubah di sini untuk tema) */
:root {
    --primary-color: #004a99;
    /* Biru tua, umum untuk institusi */
    --secondary-color: #f4f7fc;
    /* Latar belakang abu-abu muda */
    --text-color: #333;
    --light-text-color: #fff;
    --heading-color: #002d5c;
}

html {
    scroll-behavior: smooth;
    /* Efek scroll halus */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

/* 1. Header & Navigasi */
header {
    background: var(--light-text-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    min-height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    vertical-align: middle;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--heading-color);
    border-bottom: 2px solid var(--heading-color);
    padding-bottom: 5px;
}

#menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
}

/* 2. Section Umum */
section {
    padding: 100px 0;
}

section:nth-child(odd) {
    background: var(--secondary-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 3rem;
}

/* 3. Beranda (Hero) */
#beranda {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    background: linear-gradient(rgba(0, 74, 153, 0.8), rgba(0, 45, 92, 0.8)), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wzNjUyOXwwfDF8c2VhcmNofDEwfHxjYW1wdXN8ZW58MHx8fHwxNzI5MzkxMzg2fDA&ixlib=rb-4.0.3&q=80&w=1080') no-repeat center center/cover;
    color: var(--light-text-color);
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background: var(--light-text-color);
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* 4. Tentang Kami */
.about-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

/* 5. Visi Misi */
.visimisi-container {
    display: flex;
    gap: 2rem;
}

.visi,
.misi {
    flex: 1;
    background: var(--light-text-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.visi h3,
.misi h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.misi ul {
    list-style: none;
    padding-left: 0;
}

.misi li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.misi li::before {
    content: '\f00c';
    /* Ikon check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
}

/* 6. Tugas, Fungsi & Struktur */
.tupoksi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.tupoksi-card {
    background: var(--light-text-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.tupoksi-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tupoksi-card h3 {
    font-size: 1.3rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.struktur-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    line-height: 1.7;
    font-size: 1.05rem;
}

.accordion {
    max-width: 900px;
    margin: 2rem auto;
}

.accordion-item {
    background: var(--light-text-color);
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* Untuk rounded corner */
}

.accordion-header {
    background: var(--light-text-color);
    padding: 1.25rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--heading-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: var(--secondary-color);
}

.accordion-header::after {
    content: '\f067';
    /* Ikon plus */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
    content: '\f068';
    /* Ikon minus */
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background: #fff;
    padding: 0 1.5rem;
}

.accordion-content.active {
    max-height: 2000px;
    /* Atur tinggi max sesuai kebutuhan */
    padding: 1.5rem;
    border-top: 1px solid #eee;
}

.accordion-content ul {
    list-style-position: inside;
    padding-left: 0.5rem;
}

.accordion-content ul li {
    margin-bottom: 0.75rem;
}

.accordion-content ul ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

/* 7. Dokumen */
.dokumen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.dokumen-card {
    background: var(--light-text-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.dokumen-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.dokumen-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.dokumen-card h4 {
    font-size: 1.25rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.dokumen-card a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
}

.dokumen-card a:hover {
    text-decoration: underline;
}

/* 8. Kontak */
.kontak-container {
    display: flex;
    gap: 2rem;
    background: var(--light-text-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.kontak-info,
.kontak-map {
    flex: 1;
}

.kontak-info h3 {
    font-size: 1.8rem;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item .icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
}

.kontak-map iframe {
    width: 100%;
    height: 350px;
    border: 0;
    border-radius: 10px;
}

/* 9. Footer */
footer {
    background: var(--heading-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 2rem 0;
}

.social-media {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-media a {
    color: var(--light-text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: var(--secondary-color);
}

/* 10. Responsif */
@media (max-width: 768px) {
    nav {
        padding: 0.5rem 0;
        min-height: 60px;
    }

    .logo img {
        height: 40px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background: var(--light-text-color);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: var(--secondary-color);
        border-bottom: none;
    }

    .menu-icon {
        display: block;
        font-size: 1.8rem;
        color: var(--primary-color);
        cursor: pointer;
    }

    #menu-toggle {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .about-content,
    .visimisi-container,
    .kontak-container {
        flex-direction: column;
    }

    .tupoksi-grid {
        grid-template-columns: 1fr;
        /* Ubah jadi 1 kolom di mobile */
    }

    .accordion-header {
        font-size: 1.1rem;
        padding: 1rem;
    }

    .kontak-map iframe {
        height: 250px;
    }
}