:root {
    --primary: #800000;
    --accent: #f1c40f;
    --dark: #333;
    --light: #f4f4f4;
    --white: #fff;
    --gray: #666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body { 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh;
    background-color: var(--white);
    color: var(--dark);
}

html {
    overflow-y: scroll;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.section {
    padding: 50px 0;
}
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}
.navbar {
    background: var(--primary);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    justify-content: flex-start;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 0.39rem;
    font-weight: bold;
    margin-left: -360px;
    text-decoration: none;
}
.logo-text a{
    color: var(--white);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}
.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    border-bottom: 2px solid transparent; 
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}
.menu-toggle {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

footer {
    background: #222;
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: auto;
}
.footer-flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}
.footer-info h3, .footer-social h3 {
    color: var(--accent);
    margin-bottom: 15px;
}
.footer-social a {
    color: #ccc;
    margin-right: 15px;
    font-size: 1.2rem;
    transition: 0.3s;
}
.footer-social a:hover {
    color: var(--accent);
}
.copyright {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #444;
    padding-top: 15px;
    font-size: 0.9rem;
    color: #888;
}


/* --- css/global.css (Bagian Responsive HP) --- */

@media (max-width: 768px) {
    /* 1. Induk Navbar harus relative agar anak-anaknya nurut */
    .nav-flex {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        position: relative; /* KUNCI PERBAIKAN: Agar dropdown muncul tepat di bawah sini */
    }

    /* 2. Logo & Teks dikecilkan */
    .logo img { height: 35px; }
    .logo-text h1 {
        font-size: 0.8rem;
        line-height: 1.2;
        margin-left: 10px;
        max-width: 200px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 3. Tombol Hamburger (Garis Tiga) */
    .menu-toggle {
        display: block; /* Munculkan tombol */
        font-size: 1.5rem;
        color: white;
        cursor: pointer;
        padding: 5px; /* Area klik lebih luas */
    }

    /* 4. Menu Dropdown (Yang Bermasalah) */
    .nav-links {
        display: none; /* Sembunyi default */
        position: absolute;
        top: 100%; /* Muncul persis di bawah navbar */
        left: 0;
        width: 100%;
        background-color: #800000; /* Background Merah */
        
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
        
        box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Bayangan agar terlihat mengambang */
        z-index: 9999; /* Pastikan dia di atas slider/hero section */
    }

    /* 5. Kelas Active (Dipanggil JS) */
    .nav-links.active {
        display: flex; /* Munculkan saat active */
    }

    .nav-links li { width: 100%; text-align: center; }
    .nav-links li a { display: block; padding: 10px; width: 100%; }
}

/* --- UPDATE KHUSUS HP KECIL (380px) --- */
@media (max-width: 480px) {
    /* 1. Perkecil Padding Navbar */
    .nav-flex {
        padding: 12px 15px;
    }

    /* 2. Atur Logo & Teks agar muat */
    .logo img {
        height: 40px; /* Logo lebih kecil sedikit */
    }

    .logo-text h1 {
        font-size: 0.6rem; /* Font diperkecil */
        line-height: 1.1;
        margin-left: 8px;
        max-width: 180px;
        white-space: normal;
        margin-left: 200px;
    }

    /* 3. Footer */
    .footer-flex {
        text-align: center;
    }
}
@media (max-width: 400px) {
    /* 1. Perkecil Padding Navbar */
    .nav-flex {
        padding: 8px 11px;
    }

    /* 2. Atur Logo & Teks agar muat */
    .logo img {
        height: 40px; /* Logo lebih kecil sedikit */
    }

    .logo-text h1 {
        font-size: 0.5rem; /* Font diperkecil */
        line-height: 1.1;
        margin-left: 5px;
        max-width: 350px;
        white-space: normal;
        margin-left: 230px;
    }

    /* 3. Footer */
    .footer-flex {
        text-align: center;
    }
}
@media (max-width: 350px) {
    /* 1. Perkecil Padding Navbar */
    .nav-flex {
        padding: 8px 11px;
    }

    /* 2. Atur Logo & Teks agar muat */
    .logo img {
        height: 40px; /* Logo lebih kecil sedikit */
    }

    .logo-text h1 {
        font-size: 0.5rem; /* Font diperkecil */
        line-height: 1.1;
        margin-left: 5px;
        max-width: 350px;
        white-space: normal;
        margin-left: 280px;
    }

    /* 3. Footer */
    .footer-flex {
        text-align: center;
    }
}