* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* SCROLL HALUS */
html {
    scroll-behavior: smooth;
}

/* ================= NAVBAR ================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: linear-gradient(90deg, #5a3d2b, #8b5e3c, #c19a6b);
    color: white;
    padding: 15px 40px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

/* LOGO */
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 50px;
}

.logo-text h1 {
    font-size: 18px;
}

.logo-text span {
    font-size: 12px;
    color: #f1e7d0;
}

/* MENU */
nav a {
    color: white;
    margin-left: 25px;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #ffd28a;
}

/* ================= HERO (FIX BALANCE) ================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;

    padding: 60px 80px;
    height: 90vh;

    background: linear-gradient(rgba(40,20,10,0.85), rgba(60,30,10,0.85));

    color: white;
}

/* TEXT HERO */
.hero-text {
    max-width: 450px;
}

.hero-text h1 {
    font-size: 45px;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-text p {
    margin-bottom: 20px;
    font-size: 16px;
}

.hero-text button {
    padding: 12px 25px;
    background: #8b5e3c;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.hero-text button:hover {
    background: #d4af37;
}

/* GAMBAR PETA */
.hero-img img {
    width: 420px;
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* ================= BELAJAR ================= */
.belajar {
    padding: 60px 20px;
    background: #f7f1e3;
    text-align: center;
}

.belajar h2 {
    font-size: 30px;
    margin-bottom: 40px;
}

.belajar span {
    color: #8b5e3c;
}

/* CARD */
.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.card {
    background: #fffaf3;
    width: 250px;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid #e6d3b3;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.card img {
    width: 100px;
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 10px;
    color: #5a3d2b;
}

.card p {
    font-size: 14px;
    margin-bottom: 15px;
    color: #444;
}

.card button {
    background: #8b5e3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.card button:hover {
    background: #d4af37;
}

/* ================= MATERI ================= */
.materi-section {
    background: #f7f1e3;
    padding: 60px 20px;
    text-align: center;
    min-height: 100vh;
}

.materi-card {
    width: 280px;
    background: #fffaf3;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid #e6d3b3;
}

.materi-card:hover {
    transform: translateY(-10px);
}

.btn-kembali {
    margin-top: 40px;
    padding: 12px 25px;
    background: #8b5e3c;
    color: white;
    border: none;
    border-radius: 25px;
}
/* FOOTER */
.footer {
    text-align: center;
    padding: 15px;
    background: #f1e7d0;
    color: #5a3d2b;
    font-size: 13px;
    margin-top: 30px;
    border-top: 2px solid #e6d3b3;
}


/* ================= ANIMASI ================= */
.hero-text {
    animation: fadeInLeft 1s ease;
}

.hero-img {
    animation: fadeInRight 1s ease;
}

@keyframes fadeInLeft {
    from {opacity:0; transform:translateX(-50px);}
    to {opacity:1; transform:translateX(0);}
}

@keyframes fadeInRight {
    from {opacity:0; transform:translateX(50px);}
    to {opacity:1; transform:translateX(0);}
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    .hero {
        flex-direction: column;
        text-align: center;
        height: auto;
    }

    .hero-img img {
        width: 260px;
        margin-top: 20px;
    }

    .hero-text {
        max-width: 100%;
    }
}
/* FOOTER */
.footer {
    text-align: center;
    padding: 15px;
    background: #f1e7d0;
    color: #5a3d2b;
    font-size: 13px;
    margin-top: 30px;
    border-top: 2px solid #e6d3b3;
}
