/* =========================================
   1. VARIABEL & RESET DASAR
========================================= */
:root {
    /* Palet Warna */
    --primary-color: #004a99; /* Biru tua resmi */
    --secondary-color: #f4f7f6; /* Abu-abu sangat muda untuk background */
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --accent-color: #ffc107; /* Kuning untuk highlight/tombol */

    /* Font & Ukuran */
    --body-font: 'Poppins', sans-serif;
    --container-width: 1200px;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

/* Helper Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================
   2. NAVBAR & HEADER (Global)
========================================= */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px; /* Sesuaikan tinggi logo */
}

.nav-logo .divider {
    color: #ccc;
    font-size: 1.5rem;
}

.nav-logo h1 {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    transition: 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-dark);
}

/* =========================================
   3. HALAMAN BERANDA (Hero Section)
========================================= */
/* Pastikan ada <header class="hero"> di index.html */
.hero {
    height: 80vh; /* Tinggi 80% layar */
    background: linear-gradient(rgba(0, 74, 153, 0.8), rgba(0, 74, 153, 0.8)),
                url('../img/dubac1.jpeg'); /* Mundur satu folder ke ../img/ */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.btn-cta {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--text-dark);
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s;
    margin-top: 20px;
}

.btn-cta:hover {
    background-color: #e0a800;
    transform: translateY(-3px);
}

/* =========================================
   4. COMPONENT: GRID KARTU (Untuk Kegiatan & Anggota)
========================================= */
/* Gunakan class "grid-container" di pembungkus kartu */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Card Style Umum */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Khusus Kartu Anggota (Foto + Nama) */
.member-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top; /* Agar wajah tidak terpotong */
}

.member-info {
    padding: 20px;
    text-align: center;
}

.member-info h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.member-role {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* =========================================
   5. HALAMAN KONTAK (Split Layout)
========================================= */
/* Pastikan di kontak.html ada wrapper <div class="contact-wrapper"> */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Kiri info, Kanan form */
    gap: 50px;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.info-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.map-box {
    height: 250px;
    background: #eee;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background-color: #003366;
}

/* =========================================
   6. RESPONSIVE MEDIA QUERIES (Untuk HP)
========================================= */
@media (max-width: 768px) {
    /* Navbar Mobile */
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 16px 0;
    }

    /* Hero Text di HP */
    .hero-content h2 {
        font-size: 2rem;
    }

    /* Kontak jadi satu kolom ke bawah */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}