/* ================= GLOBAL RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: #f9f9f9;
    color: #111;
}

#modalDesc {
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.5;
}

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    z-index: 100;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
}

.navbar-logo {
    height: 30px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
}

.navbar-logo img {
    height: 60px;
    width: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.6));
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin-left: 0;
    font-weight: 500;
}


/* ================= DROPDOWN ================= */
.dropdown {
    position: relative;
}

.dropbtn {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    position: relative;
}

.dropbtn::after {
    content: "▾";
    margin-left: 6px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropbtn::after {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    opacity: 0;
    pointer-events: none;
    background: rgba(20,20,20,0.85);
    backdrop-filter: blur(12px);
    min-width: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.05);
    transition: all 0.35s ease;
    z-index: 999;
}

.dropdown-content.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dropdown-content a:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dropdown-content a:hover {
    background: linear-gradient(90deg, #28a745, #00ff99);
    color: #000;
    padding-left: 26px;
}

/* ================= HERO ================= */
/* ================= HERO ================= */
/* HERO */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* full viewport height */
    overflow: hidden;
    background: #0e0e0e;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 40px;  /* radius bawah kiri */
    border-bottom-right-radius: 40px; /* radius bawah kanan */
    box-shadow: 0 40px 60px rgba(0,0,0,0.3); /* shadow bagian bawah */
    transition: all 0.5s ease;
}

/* OVERLAY Teks */
.hero-overlay {
    position: absolute;
    bottom: 30%;
    left: 10%;
    color: white;
    max-width: 500px;
}

.hero-overlay h1 {
    font-size: 56px;
    margin-bottom: 15px;
}

.hero-overlay p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* ================= NEWS SECTION & GRID ================= */
.news-title {
    padding: 100px 8px 50px;
    text-align: center;
}

.news-title h1 {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #111;
    margin-bottom: 10px;
}

.news-title p {
    font-size: 18px;
    color: #666;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px 8%;
}

/* ================= CARDS ================= */
.card {
    width: 100%;
    max-width: 360px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.card-image {
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    color: #111;
    flex: 1;
}

.card-content h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.card-content small {
    font-size: 13px;
    color: #777;
    display: block;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

.card-content .see-more {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 18px;
    background-color: #28a745;
    color: #fff;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.card-content .see-more:hover {
    background: #00ff99;
    color: #000;
    transform: scale(1.05);
}

/* ================= MODAL ================= */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;

    overflow-y: auto; /* 🔥 kalau layar kecil bisa scroll */
    padding: 20px;    /* biar tidak nempel ke pinggir */
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 750px;

    max-height: 85vh;   /* 🔥 BATAS TINGGI */
    overflow-y: auto;   /* 🔥 SCROLL DI DALAM MODAL */

    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(18px);
    border-radius: 20px;
    padding: 20px;
    color: #fff;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6);
    animation: popUp 0.3s ease;
}

.modal-content img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* 🔥 KHUSUS DESKRIPSI BIAR RAPI */
#modalDesc {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.6;
}

/* CLOSE BUTTON */
.close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: #ff4d4d;
    transform: rotate(90deg);
}

@keyframes popUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ================= MOBILE NAVBAR (SIDEBAR) ================= */
/* Sembunyikan tombol hamburger di layar besar (Desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001; /* Harus di atas sidebar */
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 5px;
}


/* ================= FOOTER ================= */
.footer {
    background: #111;
    padding: 20px;
    text-align: center;
}

.footer-modern {
    background: #3c3f41;
    color: #ddd;
    padding-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 0 8%;
    flex-wrap: wrap;
}

.footer-left h4,
.footer-center h4,
.footer-right h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.logo-img {
    width: 120px;
    margin-bottom: 10px;
    transition: 0.3s;
}

.footer-line {
    width: 60px;
    height: 2px;
    background: #bbb;
    margin: 10px 0 20px;
}

.footer-left p {
    font-size: 14px;
    margin-bottom: 5px;
}

.footer-left .privacy {
    display: inline-block;
    margin-top: 15px;
    font-size: 13px;
    color: #ccc;
    text-decoration: none;
}

.footer-left .privacy:hover {
    color: #fff;
}

.footer-center ul {
    list-style: none;
    padding: 0;
}

.footer-center ul li {
    margin-bottom: 8px;
}

.footer-center ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
}

.footer-center ul li a:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 50px;
    height: 50px;
    background: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.social-icons a:hover {
    background: #28a745;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: #aaa;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    .subscribe-box {
        flex-direction: column;
    }
    .subscribe-box input {
        width: 100%;
    }
}


/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    @media (max-width: 768px) {
    /* Tampilkan tombol hamburger */
    .menu-toggle {
        display: flex;
    }

    /* Ubah navigasi menjadi sidebar */
    .navbar nav {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 260px; /* Sedikit lebih lebar agar nyaman */
        height: 100vh;
        background: rgba(15, 15, 15, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        
        /* Merapatkan jarak: mulai dari atas, bukan center */
        justify-content: flex-start; 
        padding-top: 100px; /* Jarak dari atas agar tidak tertutup tombol */
        
        align-items: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .navbar nav.active {
        right: 0; 
    }

    /* Tulisan lebih besar dan jarak rapat */
    .navbar nav a, 
    .navbar nav .dropdown {
        margin: 8px 0; /* Jarak antar menu lebih rapat */
        width: 100%;
        text-align: center;
    }

    .navbar nav a, 
    .navbar nav .dropbtn {
        font-size: 20px; /* Ukuran tulisan lebih besar */
        font-weight: 600;
        letter-spacing: 1px;
        display: block;
        padding: 10px 0;
        color: #ffffff;
    }

    /* Mengatasi About 'ngiri' karena panah */
    .navbar nav .dropbtn {
        padding-left: 20px; /* Memberi kompensasi agar teks About terlihat di tengah */
    }

    /* Isi Dropdown saat terbuka di mobile */
    .navbar nav .dropdown-content {
        position: static;     /* Tetap di dalam aliran dokumen */
        opacity: 0;           /* Awalnya transparan */
        max-height: 0;        /* Awalnya tidak punya tinggi */
        overflow: hidden;     /* Sembunyikan konten yang meluap */
        transform: translateY(-10px); /* Efek sedikit naik saat sembunyi */
        background: rgba(255, 255, 255, 0.05);
        width: 100%;
        transition: all 0.4s ease; /* Durasi animasi */
        pointer-events: none;
    }

    .navbar nav .dropdown-content.active {
        opacity: 1;           /* Muncul perlahan */
        max-height: 200px;    /* Beri tinggi maksimal yang cukup untuk isi */
        transform: translateY(0);    /* Kembali ke posisi asli */
        pointer-events: auto;
        margin: 10px 0;       /* Jarak saat terbuka */
    }

    .navbar nav .dropdown-content a {
        font-size: 18px;      /* Ukuran submenu sedikit lebih kecil dari menu utama */
        padding: 10px 0;
        color: #bbb;
    }

    /* Animasi Hamburger */
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Atur Hero Image Mobile */
    .hero-overlay {
        bottom: 20%;
        left: 5%;
        max-width: 90%;
    }

    .hero-overlay h1 {
        font-size: 36px;
    }

    .hero-overlay p {
        font-size: 16px;
    }

    .hero-img {
        width: 100%;
        height: 100vh;
    }


    .news-title h1 {
        font-size: 40px;
    }

    .card-content h2 {
        font-size: 18px;
    }

    .card-content p {
        font-size: 14px;
    }

    .card-image {
        height: 200px;
    }
}