body {
    font-family: Poppins, sans-serif;
    margin: 0;
    background: #f4f6f9;
}

/* =====================
   NAVBAR DESKTOP
===================== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90px;
    padding: 0 24px;
    background: #002850;
    position: relative;
}

/* Logo text */
.logo-text,
.logo-text span {
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
}

/* Menu */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 24px;
}

.nav-menu li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity .2s ease;
}

.nav-menu li a:hover {
    opacity: 0.85;
}

/* =====================
   HAMBURGER
===================== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: #ffffff; /* putih */
    margin: 4px 0;
    transition: all .3s ease;
}

/* =====================
   LOGIN LINK
===================== */
.nav-login a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff; /* tetap putih */
    text-decoration: none;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background .25s ease, opacity .25s ease;
}

.nav-login a i {
    font-size: 16px;
    color: #ffffff;
}

/* Hover elegan */
.nav-login a:hover {
    background: rgba(255,255,255,0.15);
    opacity: 1;
}

/* ===== SLIDER ===== */
.hero-slider {
    margin-bottom: 50px;
    padding: 50px;
}

.slider {
    position: relative;
    overflow: hidden;
    height: 420px;
    border-radius: 12px;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(0,40,80,.7);
    color: #fff;
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 18px;
}

/* ===== BERITA ===== */
.latest-news h2 {
    margin-bottom: 24px;
}

.center {
    text-align: center;
    margin-top: 30px;
}

.btn-primary {
    background: #002850;
    color: #fff;
    padding: 12px 26px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
}


.footer {
    background: #002850;
    color: #fff;
    padding: 20px;
    text-align: center;
    margin-top: 60px;
}


/* Mobile full width */
@media (max-width: 768px) {
    .nav-login a {
        width: 100%;
    }
}



/* =====================
   MOBILE
===================== */
@media (max-width: 768px) {

    .logo-text span {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -260px;
        width: 260px;
        height: 100vh;
        background: #002850; /* 🔵 sama dengan navbar */
        flex-direction: column;
        align-items: flex-start;
        padding: 90px 20px 20px;
        box-shadow: -4px 0 10px rgba(0,0,0,.25);
        transition: right 0.3s ease;
        z-index: 999;
    }

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

    .nav-menu li {
        margin: 15px 0;
        width: 100%;
    }

    .nav-menu li a {
        color: #ffffff;
        width: 100%;
        display: block;
    }
}
