/* Global Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    margin: auto;
    max-width: 1200px;
}

/* Header Section */
header {
    background-color: #2e7d32; /* Hijau gelap */
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between; /* Penyesuaian untuk judul dan logo di sebelah kiri dan kanan */
    align-items: center;
}

header .logo img {
    width: 50px;
    margin-right: 10px;
}

.header-title {
    text-align: center;
}

.header-title h1 {
    font-size: 24px;
    margin: 0;
}

.header-title p {
    font-size: 14px;
    margin: 0;
}

/* Nav Styles */
nav {
    width: 100%;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Memungkinkan item navbar membungkus */
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white; /* Mengubah warna teks navbar menjadi putih */
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    display: inline-block;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #c8e6c9; /* Warna saat hover */
    text-decoration: none;
}

/* Menu toggle (responsive) */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 30px;
    color: white;
}

/* Hero Section with Semi-transparent Background */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('bg.png') no-repeat center center;
    background-size: cover; /* Mengatur agar gambar menutupi area */
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.3);
    padding: 20px;
    border-radius: 10px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.hero .btn {
    background-color: #4caf50; /* Hijau terang */
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.hero .btn:hover {
    background-color: #388e3c;
}

/* Section Styling */
.section {
    padding: 50px 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2e7d32;
}

.section p {
    text-align: center;
    line-height: 1.8;
}

/* Footer Section */
footer {
    background-color: #2e7d32;
    color: white;
    text-align: center;
    padding: 20px 0;
}

footer p {
    margin: 0;
}

/* General Link Styling */
a {
    color: #388e3c;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: white;
    text-decoration: underline;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    .header-title {
        margin-top: 10px;
    }

    nav ul {
        display: none; /* Sembunyikan navbar pada mobile view */
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    nav ul.active {
        display: block; /* Tampilkan navbar ketika toggle aktif */
    }

    .menu-toggle {
        display: block; /* Tampilkan toggle menu pada layar kecil */
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero-content {
        padding: 15px;
    }

    .section {
        padding: 30px 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }
}
