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

:root {
    --primary-color: #e74c3c; /* Merah */
    --secondary-color: #333;  /* Hitam/Abu gelap */
    --background-grey: #f4f7f9;
    --text-color: #333;
    --white: #fff;
}

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

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

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

h1, h2, h3 {
    margin-bottom: 15px;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 10px;
    margin-left: 50%;
    transform: translateX(-50%);
}

p {
    margin-bottom: 20px;
}

.section-bg {
    background-color: var(--background-grey);
}

/* CTA Button Styling */
.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 50px; /* Lebih elegan */
    font-weight: bold;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background: #c0392b; /* Merah lebih gelap */
    transform: translateY(-2px);
}

/* Header & Navigasi */
header {
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--background-grey);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo-area {
    /* Jika Anda menggunakan gambar, pastikan kontainer ini fleksibel */
    display: flex;
    align-items: center;
}

/* Ini adalah aturan baru atau yang diperbarui untuk membuat logo responsif */
.logo-area img {
    max-width: 100%; /* Memastikan gambar tidak melebihi lebar kontainer induknya */
    height: auto;    /* Memastikan tinggi menyesuaikan secara proporsional */
    max-height: 50px; /* Opsional: Batasi tinggi maksimum logo agar tidak terlalu besar di desktop */
    /* Menambahkan sedikit margin jika ada teks di sebelahnya */
    margin-right: 10px; 
}

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

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--secondary-color);
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none; /* Sembunyikan di desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}


/* Hero Section */
#hero {
    background: linear-gradient(to right, var(--white), var(--background-grey));
    padding: 80px 0;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 strong {
    color: var(--primary-color);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.placeholder-image {
    width: 100%;
    height: 300px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Sections General */
section {
    padding: 80px 0;
}

/* Manfaat Grid */
.manfaat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.manfaat-item {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.icon-placeholder {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Testimoni */
#testimoni .testimoni-item {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-style: italic;
    font-size: 1.1rem;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    background-color: var(--white);
    border-radius: 5px;
}

#testimoni cite {
    display: block;
    margin-top: 15px;
    font-style: normal;
    font-weight: bold;
    color: var(--primary-color);
}

/* CTA Section */
#cta {
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}

#cta h2 {
    color: var(--white);
    border-bottom-color: var(--white);
}

/* Footer */
footer {
    background: #2c3e50; /* Biru gelap untuk kontras */
    color: var(--white);
    padding: 40px 0 20px 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: var(--primary-color);
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.footer-section a {
    color: #ccc;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    margin-top: 20px;
}

/* Responsif */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        margin-top: 30px;
    }

    nav ul {
        display: none; /* Sembunyikan navigasi default */
        flex-direction: column;
        width: 100%;
        background: var(--white);
        position: absolute;
        top: 65px; /* Sesuaikan dengan tinggi header */
        left: 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding: 20px;
    }

    nav ul.active {
        display: flex; /* Tampilkan saat aktif */
    }

    nav ul li {
        margin: 10px 0;
    }
    
    .menu-toggle {
        display: block; /* Tampilkan tombol toggle */
    }
}
/* ... CSS yang sudah ada sebelumnya ... */

/* Hero Section (Tambahkan aturan ini) */
#hero {
    background: linear-gradient(to right, var(--white), var(--background-grey));
    padding: 80px 0;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Ini adalah aturan baru atau yang diperbarui untuk gambar */
.hero-image img {
    max-width: 100%; /* Memastikan gambar tidak melebihi lebar kontainer induknya */
    height: auto;    /* Memastikan tinggi menyesuaikan secara proporsional */
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    /* Menggantikan placeholder-image jika Anda menggunakan tag img */
}

/* Hapus atau ganti aturan placeholder jika Anda sudah memasang gambar nyata */
.placeholder-image {
    /* Hapus aturan ini atau biarkan saja jika masih digunakan */
    width: 100%;
    height: 300px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}


/* ... CSS untuk responsif media query di bagian bawah file ... */

@media (max-width: 768px) {
    /* ... aturan lainnya ... */

    .hero-image {
        margin-top: 30px;
        /* Aturan flex di sini memastikan gambar mengambil lebar penuh pada layar kecil */
        width: 100%; 
    }
    
    /* Pastikan gambar di dalam hero image tetap responsif di mobile */
    .hero-image img {
         width: 100%;
    }
}
/* --- Gaya untuk Seksi Berita --- */
.berita-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.berita-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.berita-item:hover {
    transform: translateY(-5px);
}

.berita-item h3 {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.berita-meta {
    font-size: 0.85rem;
    color: #7f8c8d; /* Warna abu-abu untuk metadata */
    margin-bottom: 15px;
}

.berita-item a {
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}
