/* --- KONFIGURASI WARNA & VARIABEL --- */
:root {
    --primary-green: #009046;  /* Hijau Pramuka */
    --accent-yellow: #ffe300;  /* Kuning Emas */
    --dark-text: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --grey-meta: #666666;
}

/* --- RESET DASAR --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* PERBAIKAN PENTING DI SINI: Mencegah geser kanan-kiri di HP */
html, body {
    overflow-x: hidden; 
    width: 100%;
    position: relative;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
}

h1, h2, h3, .logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.container {
    width: 90%;
    max-width: 1150px;
    margin: auto;
}

/* --- NAVBAR (UPDATE LOGO) --- */
.navbar {
    background-color: var(--primary-green);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Style Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    color: var(--accent-yellow);
    text-decoration: none;
    letter-spacing: 1px;
    font-weight: 800;
}

.logo img {
    height: 45px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--accent-yellow);
}

.btn-kontak {
    background-color: var(--accent-yellow);
    color: var(--primary-green) !important;
    padding: 10px 20px;
    border-radius: 5px;
}

/* --- HERO SECTION --- */
.hero {
    background-image: linear-gradient(rgba(0, 90, 40, 0.75), rgba(0, 40, 20, 0.85)), url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.highlight {
    color: var(--accent-yellow);
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.btn-primary {
    display: inline-block;
    background: var(--accent-yellow);
    color: var(--primary-green);
    padding: 14px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 227, 0, 0.4);
}

/* --- GENERAL SECTIONS --- */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--primary-green);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-yellow);
    margin: 15px auto;
    border-radius: 2px;
}

.bg-light {
    background-color: var(--light-bg);
}

.text-center {
    text-align: center;
    margin-bottom: 40px;
}

/* --- ACTIVITY CARDS (GIAT TERKINI) --- */
.activity-grid {
    display: grid;
    /* PERBAIKAN: Mengubah 320px menjadi 280px agar muat di layar HP kecil */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.activity-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid var(--primary-green);
    display: flex;
    flex-direction: column;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 25px;
    flex-grow: 1;
}

.card-tag {
    background-color: var(--accent-yellow);
    color: var(--primary-green);
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 50px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.card-content h3 {
    font-size: 1.3rem;
    color: var(--primary-green);
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--grey-meta);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eeeeee;
}

.card-meta span {
    display: flex;
    align-items: center;
}

.card-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* --- FOOTER --- */
footer {
    background: #005025;
    color: var(--white);
    padding: 60px 0 30px 0;
    text-align: center;
    border-top: 6px solid var(--accent-yellow);
}

.socials {
    margin: 20px 0;
}

.socials a {
    color: var(--accent-yellow);
    margin: 0 15px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: 0.3s;
}

.socials a:hover {
    color: var(--white);
    text-decoration: underline;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 30px;
}

/* --- MOBILE RESPONSIVE (BURGER MENU) --- */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    body {
        overflow-x: hidden;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--primary-green);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 60%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }

    .nav-links li {
        margin: 25px 0;
        opacity: 0;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    /* Burger Animation */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

@keyframes navLinkFade {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}
