*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Cemara Mas palette — hijau + kuning emas */
    --forest: #1b4332; /* pohon hijau tua */
    --leaf: #2d6a4f; /* hijau medium */
    --sage: #52b788; /* hijau segar */
    --mint: #d8f3dc; /* hijau muda */
    --gold: #e9b84a; /* kuning emas logo */
    --gold-deep: #c8922a;
    --gold-pale: #fef7e0;
    --cream: #fafaf7;
    --white: #ffffff;
    --ink: #0d2318;
    --ink-soft: #2f4539;
    --ink-muted: #6b8c78;
    --border: rgba(27, 67, 50, 0.1);

    /* Program colors */
    --edu: #2563eb;
    --edu-pale: #eff6ff;
    --env: var(--leaf);
    --env-pale: var(--mint);
    --hum: #dc4c4c;
    --hum-pale: #fff0f0;

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --shadow: 0 4px 24px rgba(13, 35, 24, 0.1);
    --shadow-lg: 0 12px 48px rgba(13, 35, 24, 0.14);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

.body {
    font-family: "DM Sans", sans-serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── NAVBAR ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.25rem, 5vw, 3.5rem);
    background: rgba(250, 250, 247, 0.82);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}
nav.scrolled {
    box-shadow: 0 4px 20px rgba(13, 35, 24, 0.08);
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.nav-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.nav-name {
    font-family: "Outfit", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--forest);
    line-height: 1.15;
}
.nav-sub {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--ink-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
    padding: 0.4rem 0.85rem;
    border-radius: 100px;
    transition: all 0.2s;
}
.nav-link:hover {
    background: var(--mint);
    color: var(--forest);
}
.btn-nav-cta {
    margin-left: 0.5rem;
    background: var(--forest);
    color: white;
    border: none;
    border-radius: 100px;
    padding: 0.55rem 1.4rem;
    font-family: "Outfit", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 12px rgba(27, 67, 50, 0.25);
}
.btn-nav-cta:hover {
    background: var(--leaf);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 67, 50, 0.3);
}

.burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 18px;
    height: 14px;
    z-index: 1001;
}

.burger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--ink-soft);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.burger-btn.active {
    height: 18px;
}

/* ════ DROPDOWN LANGUAGE ════ */
.lang-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--ink);
    color: var(--ink-soft);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-family: "DM Sans", sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: white;
}

.lang-btn .arrow {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.lang-btn.open .arrow {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: 130%;
    right: 0;
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 130px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
}

.lang-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu a {
    color: var(--ink-soft);
    text-decoration: none;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-family: "DM Sans", sans-serif;
    transition:
        background 0.2s,
        color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--ink-soft);
}

.lang-menu a.active {
    color: var(--ink-gold);
    font-weight: 600;
    background: rgba(233, 184, 74, 0.05);
}

@media (max-width: 768px) {
    .burger-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 20px 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links .nav-link {
        margin: 0 0 12px 0;
        font-size: 1rem;
        width: 100%;
        border: 1px solid var(--border);
    }

    .btn-nav-cta {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .lang-dropdown {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        display: block;
    }

    .lang-btn {
        width: 100%;
        justify-content: space-between;
    }

    .lang-menu {
        width: 100%;
        position: static;
        box-shadow: none;
        margin-top: 10px;
        display: none;
    }

    .lang-menu.show {
        display: block;
    }

    .burger-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
