/* ===================================================
   1. RESET & DASAR (Modern & Clean Version)
   =================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Font Inter lebih kekinian dibanding Segoe UI saja */
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    /* Warna bg lebih cerah dan bersih */
    background-color: #f8fafc; 
    color: #1e293b; /* Warna teks tidak hitam pekat, tapi biru gelap (lebih nyaman di mata) */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; /* Biar tulisan lebih halus di layar Mac/iPhone */
}

.container {
    width: 90%;
    max-width: 1200px; /* Sedikit lebih lebar untuk layar monitor besar */
    margin: auto;
    padding: 0 15px; /* Jarak aman agar teks tidak nempel layar pas di HP */
    overflow: visible;
}

/* ===================================================
   HEADER & NAVIGASI (Bold, Gradient & Compact)
   =================================================== */
header {
    background: #004aad; /* Biru Benhur Kartar */
    color: #fff;
    padding: 8px 0; /* Padding pas, nggak kekecilan nggak kegedean */
    border-bottom: #ffd700 4px solid; 
    position: sticky;
    top: 0;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

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

.logo-area {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 85px; /* Ukuran pas buat diliat */
    width: auto;
}

/* TEKS KARANG TARUNA DENGAN GRADASI EMAS */
header h1 {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-left: 12px;
    line-height: 1;
    /* Efek Gradasi Emas */
    background: linear-gradient(to bottom, #fff200 0%, #ffcc00 50%, #e6b800 100%);
    -webkit-background-clip: text; /* Buat Chrome & Safari */
    background-clip: text;         /* Standar buat browser lain (Biar warning ilang) */
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.3));
}

/* List Menu Navigasi */
header nav ul {
    list-style: none;
    display: flex;
    gap: 5px; /* Tetep rapet */
}

header nav li {
    position: relative; /* Kunci buat dropdown */
}

header nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px; /* Gedean dikit biar jelas (dari 11px ke 14px) */
    text-transform: uppercase;
    font-weight: 700;
    padding: 8px 12px; /* Padding rapet tapi enak di-klik */
    border-radius: 5px;
    transition: 0.3s;
}

/* Hover Menu */
header nav a:hover {
    background-color: #ffd700; 
    color: #004aad;
}

/* FIX DROPDOWN: Warna senada & Nempel */
header nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #004aad;
    min-width: 180px;
    border-top: #ffd700 3px solid;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    padding: 5px 0;
}

header nav ul li:hover > ul {
    display: block;
}

header nav ul li ul a {
    padding: 10px 15px;
    font-size: 13px;
    text-transform: capitalize; /* Biar lebih santai di dropdown */
}


/* ===================================================
   3. NAVIGASI & FITUR DROPDOWN (Full Kartar Modern)
   =================================================== */

/* Menu Utama */
header nav ul {
    list-style: none;
    display: flex;
    gap: 8px; /* Jarak antar menu rapet tapi pas */
    align-items: center;
}

header nav li {
    position: relative; /* Kunci posisi dropdown */
}

header nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px; /* Ukuran teks lebih mantap */
    text-transform: uppercase;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

header nav a:hover {
    color: #ffd700; /* Warna kuning pas hover teks */
    background: rgba(255, 255, 255, 0.1);
}

/* Container Dropdown */
.dropdown-menu {
    display: block; 
    position: absolute;
    background-color: #004aad; /* Biru Benhur Kartar */
    min-width: 200px;
    box-shadow: 0px 10px 20px rgba(0,0,0,0.3);
    z-index: 3000;
    list-style: none;
    padding: 5px 0;
    margin: 0;
    border-radius: 0 0 8px 8px;
    border-top: #ffd700 3px solid; /* Garis emas pemisah */
    top: 110%; 
    left: 0;
    
    /* Efek Animasi Muncul Smooth */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* Munculkan dropdown saat hover li class dropdown */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    top: 100%;
}

.dropdown-menu li {
    display: block !important;
    margin: 0 !important;
}

.dropdown-menu li a {
    color: #ffffff !important;
    padding: 12px 18px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-transform: capitalize; /* Huruf depan besar saja lebih rapi */
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}

/* Hover di dalam isi dropdown */
.dropdown-menu li a:hover {
    background-color: #ffd700 !important;
    color: #004aad !important;
    padding-left: 22px; /* Efek geser dikit biar dinamis */
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

/* Icon panah kecil di samping tulisan menu induk (Berita/Lapak) */
.dropdown > a::after {
    content: ' ▾';
    font-size: 12px;
    margin-left: 5px;
    transition: 0.3s;
}

/* Panah muter pas di-hover */
.dropdown:hover > a::after {
    transform: rotate(180deg);
    color: #ffd700;
}

/* ===================================================
   4. HALAMAN UTAMA (Hero Section & Berita Modern)
   =================================================== */

/* Hero Section dengan Overlay Lebih Deep */
.hero {
    /* Gradient dibikin lebih gelap dikit biar teks putih & emasnya "keluar" */
    background: linear-gradient(rgba(0, 45, 90, 0.7), rgba(0, 0, 0, 0.7)), 
                url('/images/hero.jpg') no-repeat center center/cover;
    min-height: 70vh; /* Sedikit lebih tinggi biar lega */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
}

.hero h2 {
    font-size: 3.5rem; /* Gedean biar mantap */
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: -1px;
    /* Gradasi Emas biar matching sama Logo */
    background: linear-gradient(to bottom, #fff200 0%, #ffcc00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(3px 3px 5px rgba(0,0,0,0.5));
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 500;
    color: #f8fafc;
}

/* Grid Kartu Berita yang Lebih Clean */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* Lebar minimal dinaikin dikit */
    gap: 30px;
    padding: 3rem 0;
}

.news-card {
    background: #ffffff;
    border-radius: 12px; /* Lebih rounded biar modern */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Shadow lebih halus */
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Efek Hover Card Berita */
.news-card:hover {
    transform: translateY(-10px); /* Melayang pas di-hover */
    box-shadow: 0 15px 30px rgba(0,45,90,0.15); /* Shadow biru tipis */
}

.news-img-box { 
    width: 100%; 
    height: 220px; 
    overflow: hidden; 
}

.news-img-box img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s ease; /* Transisi buat zoom */
}

.news-card:hover .news-img-box img {
    transform: scale(1.1); /* Gambar nge-zoom dikit pas di-hover */
}

.news-info { 
    padding: 25px; 
}

.news-info h3 {
    margin-bottom: 10px;
    color: #004aad; /* Judul berita pakai Biru Kartar */
    font-size: 1.4rem;
    line-height: 1.3;
}

/* ===================================================
   5. HALAMAN PROFIL (Modern Visi, Misi & Struktur)
   =================================================== */
.page-content { 
    padding: 4rem 0; 
    background-color: #f8fafc; /* Background abu super cerah biar bersih */
}

.vision-mission-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.vision-card, .mission-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px; /* Lebih rounded */
    flex: 1;
    min-width: 320px;
    /* Border top pakai gradasi emas biar matching */
    border-top: 5px solid #ffd700; 
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.vision-card:hover, .mission-card:hover {
    transform: translateY(-5px);
}

.vision-card h3, .mission-card h3 {
    color: #004aad; /* Biru Benhur Kartar */
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 800;
}

/* Grid Struktur Organisasi - UPDATE JADI 4 KOLOM */
.member-grid {
    display: grid;
    /* Kita kunci jadi 4 kolom di layar desktop */
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px; /* Jarak antar kartu sedikit dirapatkan agar pas 4 kolom */
    margin-top: 30px;
}

.member-card {
    background: #fff;
    text-align: center;
    padding: 25px 15px; /* Padding disesuaikan biar gak terlalu lebar */
    border-radius: 12px;
    border-top: 5px solid #004aad; /* Biru Benhur */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.member-card:hover {
    box-shadow: 0 10px 25px rgba(0,74,173,0.15); 
    border-top: 5px solid #ffd700; /* Emas pas di-hover */
    transform: translateY(-5px); /* Kartu naik dikit pas di-hover */
}

.member-card img {
    width: 110px; /* Ukuran dikecilkan sedikit agar pas di 4 kolom */
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid #f1f5f9;
    padding: 3px;
    background: #ffd700; /* Bingkai emas */
    transition: transform 0.5s ease;
}

.member-card:hover img {
    transform: scale(1.1); /* Foto nge-zoom */
}

.member-card h4 {
    color: #1e293b;
    font-size: 1.1rem; /* Ukuran teks disesuaikan */
    margin-bottom: 5px;
    font-weight: 700;
}

.member-card p {
    color: #64748b;
    font-weight: 600;
    font-size: 0.8rem; /* Ukuran jabatan disesuaikan */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- RESPONSIVE LAYER (PENTING!) --- */

/* Tampilan Tablet (Isi 2 kolom) */
@media (max-width: 1024px) {
    .member-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tampilan HP (Isi 1 kolom agar tidak sempit) */
@media (max-width: 600px) {
    .member-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================================
   6. HALAMAN KONTAK (Modern & Responsive - UPDATED)
   =================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    margin-top: 30px;
}

.contact-info {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border-left: 6px solid #ffd700; 
}

.info-item { 
    margin-bottom: 25px; 
}

.info-item h3 { 
    color: #004aad; 
    margin-bottom: 12px; 
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 15px; /* Jarak pas antara ikon dan teks */
}

/* --- PERBAIKAN IKON: MENGHAPUS PIN DOBEL --- */
.info-item h3::before {
    display: none !important; /* Hapus pin otomatis yang bikin dobel */
}

/* Mengatur style ikon yang kamu tulis di HTML (emoji atau FontAwesome) */
.info-item h3 i, 
.info-item h3 span { 
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: #ffd700; /* Bulatan Kuning */
    color: #004aad;
    border-radius: 50%;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    font-style: normal; /* Biar emoji gak miring kalau pake tag <i> */
}

.info-item p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.5;
    padding-left: 51px; /* Agar teks sejajar di bawah judul (36px ikon + 15px gap) */
}

.contact-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,45,90,0.1); 
    min-height: 350px; 
    border: 5px solid #fff; 
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Tambahan: Responsive agar Map pindah ke bawah di HP */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .info-item p {
        padding-left: 0; /* Di HP teks balik ke kiri biar gak sempit */
        text-align: left;
    }
}

/* ===================================================
   RESPONSIVE (Mobile First)
   =================================================== */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr; 
        gap: 20px;
    }

    .contact-info {
        padding: 25px;
    }

    .contact-map {
        min-height: 300px;
    }
}

/* ===================================================
   7. FORM (Kritik & Login - Modern Kartar Style)
   =================================================== */
.card-form, .login-card {
    background: #fff;
    max-width: 500px; /* Diperkecil dikit biar lebih compact & fokus */
    margin: 40px auto;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 74, 173, 0.1); /* Shadow biru tipis */
    border-top: 6px solid #ffd700; /* Aksen Kuning Emas khas Kartar */
    transition: transform 0.3s ease;
}

/* Judul di dalam form */
.card-form h2, .login-card h2 {
    text-align: center;
    color: #004aad;
    margin-bottom: 25px;
    font-weight: 800;
    text-transform: uppercase;
}

.form-group { 
    margin-bottom: 20px; 
}

.form-group label { 
    display: block; 
    font-weight: 600; 
    margin-bottom: 8px; 
    color: #1e293b;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #f1f5f9; /* Border awal lebih soft */
    border-radius: 10px;
    outline: none;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8fafc;
}

/* Efek pas input diklik (Focus) */
.form-group input:focus, .form-group textarea:focus {
    border-color: #004aad; /* Berubah jadi Biru Benhur */
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 74, 173, 0.1); /* Glow biru halus */
}

.btn-submit {
    background: #004aad; /* Biru Benhur */
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    width: 100%;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover { 
    background: #003a8a; /* Biru lebih gelap dikit */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 74, 173, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* ===================================================
   ADMIN TABLES - UNIFORM & SPACIOUS (BERITA, PRODUK, SARAN)
   =================================================== */

/* Container Tabel agar konsisten lebarnya */
.admin-table-wrapper {
    width: 100% !important;
    margin-top: 30px !important;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow-x: auto; /* Biar kalau di HP bisa digeser samping */
}

.admin-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 0.95rem;
}

/* HEADER TABEL: Nama, Produk, Judul, Tipe, Aksi */
.admin-table th {
    background-color: #f8fafc !important;
    color: #475569 !important;
    padding: 18px 20px !important; /* Jarak lega ke pinggir */
    text-align: left;
    font-weight: 700 !important;
    border-bottom: 2px solid #edf2f7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ISI TABEL: Jarak antar baris biar gak mepet */
.admin-table td {
    padding: 18px 20px !important; /* Padding disamakan dengan header */
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle; /* Isi konten di tengah secara vertikal */
}

/* Baris selang-seling biar mata gak capek */
.admin-table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

/* Hover Effect: Baris yang ditunjuk bakal nyala */
.admin-table tbody tr:hover {
    background-color: #f1f5f9;
}

/* SETINGAN LEBAR KOLOM KHUSUS (Agar Proporsional) */

/* 1. Kolom Aksi (Tombol Edit/Hapus) - Dibuat tidak terlalu lebar */
.admin-table th:last-child, 
.admin-table td:last-child {
    width: 120px;
    text-align: center;
}

/* 2. Kolom Tengah (Tipe/Kategori) - Dibuat pas */
.admin-table th:nth-last-child(2), 
.admin-table td:nth-last-child(2) {
    width: 150px;
}

/* STYLING TOMBOL AKSI DI DALAM TABEL */
.btn-delete, .btn-edit {
    padding: 8px 14px !important;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s;
}

.btn-delete {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.btn-delete:hover {
    background-color: #dc2626;
    color: white;
}

/* --- TAMBAHAN STYLE TOMBOL EDIT (SESUAI TEMA KAMU) --- */
.btn-edit {
    background-color: #fef3c7; /* Kuning muda transparan */
    color: #d97706; /* Oranye gelap */
    border: 1px solid #fde68a;
    margin-right: 5px;
    cursor: pointer;
}

.btn-edit:hover {
    background-color: #d97706;
    color: white;
    border-color: #d97706;
}

/* --- MODAL EDIT BIAR MAKIN MEWAH --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0; top: 0; width: 100%; height: 100%; 
    background-color: rgba(15, 23, 42, 0.7); /* Overlay lebih gelap & elegan */
    backdrop-filter: blur(8px); /* Efek kaca blur */
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 650px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border: 1px solid #e2e8f0;
}

.close-modal {
    color: #64748b;
    float: right;
    font-size: 32px;
    line-height: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.close-modal:hover { 
    color: #ef4444; 
    transform: rotate(90deg); /* Animasi muter pas di-hover */
}

/* Animasi muncul modal */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form di dalam modal agar rapi */
#form-edit-berita .form-group {
    margin-bottom: 20px;
}

#form-edit-berita input, 
#form-edit-berita select, 
#form-edit-berita textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-family: inherit;
}

#form-edit-berita .btn-submit {
    width: 100%;
    padding: 15px;
    background: #2563eb; /* Biru Profesional */
    color: white;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

#form-edit-berita .btn-submit:hover {
    background: #1e40af;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ===================================================
   8. RESPONSIVE MOBILE (FULL OPTIMIZATION - FIX TOTAL)
   =================================================== */

/* Tombol Hamburger */
.hamburger {
    display: none; 
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 10005;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.hamburger span {
    display: block;
    width: 25px; 
    height: 3px;
    background: #ffd700 !important; 
}

@media (max-width: 768px) {
    /* 1. Header Fix: LOGO & TEKS WAJIB SEJAJAR */
    header .container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 15px !important;
        flex-wrap: nowrap !important;

        
    }

    header .logo-container {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex: 1 !important;
        min-width: 0 !important;
    }

    .hero {
    padding: 40px 15px !important; /* Perkecil tinggi kotak */
    min-height: auto !important;   /* Paksa tinggi kotak mengikuti isi */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

    .hero h2 {
    font-size: 18px !important; /* Ukuran pas untuk 2 baris */
    line-height: 1.2 !important; /* Rapatkan jarak antar baris teks kuning */
    max-width: 280px; /* Paksa teks kuning pecah baris di tempat yang benar */
    margin: 0 auto 15px auto !important;
    text-transform: uppercase;
}

    
    .hero p {
    font-size: 12px !important;      /* Ukuran font yang pas untuk HP */
    line-height: 1.5 !important;      /* Jarak antar baris teks agar enak dibaca */
    max-width: 250px !important;     /* KUNCI: Memaksa teks agar tidak terlalu lebar ke samping */
    margin: 0 auto !important;       /* Memastikan posisi teks tetap di tengah */
    color: #e0e0e0 !important;       /* Warna putih agak abu biar tidak terlalu mencolok */
    opacity: 0.9;                    /* Memberikan kesan sedikit transparan agar elegan */
    text-align: center !important;
}
    
    header .logo-container img {
        width: 38px !important; 
        height: auto !important;
        flex-shrink: 0 !important;
    }

    header h1 {
        font-size: 23px !important; 
        white-space: nowrap !important;
        letter-spacing: -0.5px !important;
        color: #ffd700 !important;
        font-weight: 800 !important;
        text-transform: uppercase;
        margin: 0 !important;
    }

    /* 2. Aktifkan Hamburger */
    .hamburger { 
        display: flex !important; 
        flex-shrink: 0;
    }

    /* 3. Panel Navigasi Mobile */
    header nav {
        display: none; 
        position: absolute !important;
        top: 100% !important; 
        left: 0 !important; 
        width: 100% !important;
        background: #004aad !important; 
        z-index: 9999 !important;
        max-height: 80vh; 
        overflow-y: auto; 
        border-bottom: 4px solid #ffd700 !important;
    }

    header nav.active { 
        display: block !important; 
    }

    header nav ul {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    header nav ul li { 
        width: 100% !important; 
        position: relative !important; 
    }

    header nav ul li a {
        display: block !important;
        padding: 15px 25px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: #fff !important;
        text-decoration: none !important;
    }

    /* 4. DROPDOWN FIX: TOTAL REPAIR */
    
    /* Paksa tutup saat mode mobile secara default */
    .dropdown:hover .dropdown-menu,
    nav ul li:hover .dropdown-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* State awal sub-menu (Sembunyi) */
    header nav ul li .dropdown-menu {
        display: none !important; 
        visibility: hidden !important;
        opacity: 0 !important;
        position: static !important; 
        width: 100% !important;
        background: #00337a !important; 
        padding: 0 !important;
        transform: none !important;
        box-shadow: none !important;
    }

    /* STATE AKTIF: Saat li punya class .show (DIPAKSA MUNCUL) */
    header nav ul li.dropdown.show > .dropdown-menu {
        display: block !important; 
        visibility: visible !important;
        opacity: 1 !important;
        min-height: 1px !important; /* Mancing render browser */
    }

    .dropdown-menu li a {
        padding: 12px 45px !important; 
        font-size: 14px !important;
        background: rgba(0,0,0,0.1) !important; /* Bedakan warna sedikit */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    /* 5. Login Card Fix */
    .login-card {
        width: 90% !important;
        max-width: 350px !important;
        margin: 20px auto !important;
    }
}

/* ===================================================
   9. FOOTER (Modern & Branding Karang Taruna)
   =================================================== */
footer {
    /* Biru Benhur yang sedikit lebih solid */
    background: #003a8a; 
    color: #ffffff;
    text-align: center;
    padding: 3rem 1rem; /* Padding lebih lega */
    margin-top: 60px;
    /* Garis emas sebagai pembatas atas */
    border-top: 5px solid #ffd700;
    position: relative;
}

footer p {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Tambahkan sedikit style untuk nama organisasi di footer */
footer strong {
    color: #ffd700; /* Nama Kartar jadi warna Emas */
    font-weight: 700;
    text-transform: uppercase;
}

/* Link di footer (jika ada) */
footer a {
    color: #ffd700;
    text-decoration: none;
    transition: 0.3s;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ===================================================
   FIX TOTAL: HALAMAN LOGIN DARK MODE
   =================================================== */

/* Pastikan body login bersih dari sisa styling halaman lain */
.login-page-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Background Navy Deep yang elegan */
    background: radial-gradient(circle, #003a8a 0%, #001a33 100%);
    font-family: 'Poppins', sans-serif;
}

.login-card {
    background: #002d5a; /* Lebih gelap dari background body */
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    text-align: center;
    border-top: 5px solid #ffd700; /* Garis Emas Identitas */
    border: 1px solid rgba(255, 215, 0, 0.1);
    z-index: 10;
}

/* Biar logo Kartar di atas form makin cakep */
.login-card img {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.login-card h2 {
    color: #ffd700; /* Judul Emas */
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.login-card p {
    color: #a0aec0;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* Styling Input agar Kontras di Dark Mode */
.login-card .form-group {
    text-align: left;
    margin-bottom: 20px;
}

.login-card label {
    color: #ffffff;
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.login-card input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05); /* Gelap transparan */
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    outline: none;
    transition: 0.3s;
}

.login-card input:focus {
    border-color: #ffd700;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

/* Tombol Login Emas Menyala */
.btn-login {
    width: 100%;
    padding: 15px;
    background: #ffd700;
    color: #002d5a;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-login:hover {
    background: #ffcc00;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

/* ===================================================
   11. LAPAK PAGE (Branding Karang Taruna) - FIXED
   =================================================== */

/* Grid Produk */
.produk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Ukuran lebih pas */
    gap: 25px;
    padding: 30px 0;
}

.produk-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
    cursor: pointer;
    position: relative;
}

.produk-card:hover { 
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 74, 173, 0.1);
    border-color: #ffd700; 
}

/* Image Wrapper & Badges */
.img-wrapper { 
    position: relative; 
    overflow: hidden;
    height: 220px; /* Konsistensi tinggi gambar */
}

.produk-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.produk-card:hover .produk-img {
    transform: scale(1.1);
}

.badge-foto {
    position: absolute; 
    bottom: 10px; 
    right: 10px;
    background: rgba(0, 74, 173, 0.8); 
    color: #fff;
    padding: 4px 12px; 
    border-radius: 20px; /* Lebih rounded profesional */
    font-size: 11px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* Info & Harga - DISESUAIKAN DENGAN lapak.js */
.info { 
    padding: 20px; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.info h3 { 
    font-weight: 800; 
    font-size: 1.1rem; 
    margin-bottom: 8px; 
    color: #1e293b; 
}

.info .harga { 
    color: #004aad; 
    font-weight: 800; 
    font-size: 1.2rem; 
    margin-bottom: 10px; 
}

.info .desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Tombol Beli */
.button-beli {
    display: block;
    background-color: #ffd700; 
    color: #002d5a !important;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13px;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    text-transform: uppercase;
    cursor: pointer;
}

.button-beli:hover {
    background-color: #ffcc00;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* MODAL DETAIL STYLE - FIXED SCROLL & SPACING */
.modal-detail-overlay {
    position: fixed; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.85); z-index: 9999; 
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}

.modal-detail-content {
    background: white; width: 100%; max-width: 850px; border-radius: 20px;
    padding: 30px; position: relative; 
    max-height: 90vh; overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-detail-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 30px; 
}

@media (max-width: 768px) { 
    .modal-detail-grid { grid-template-columns: 1fr; }
    .main-modal-img { height: 250px; }
}

.main-modal-img { 
    width: 100%; 
    height: 350px; 
    object-fit: cover; 
    border-radius: 15px; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.thumbnail-list { 
    display: flex; 
    gap: 12px; 
    margin-top: 15px; 
    overflow-x: auto; 
    padding-bottom: 5px;
}

.thumbnail-list img { 
    width: 70px; 
    height: 70px; 
    object-fit: cover; 
    cursor: pointer; 
    border-radius: 8px;
    border: 2px solid transparent;
    transition: 0.2s;
}

.thumbnail-list img:hover { border-color: #ffd700; }

.modal-info h2 { font-size: 1.8rem; color: #1e293b; margin-bottom: 5px; }
.modal-harga { font-size: 1.6rem; color: #004aad; font-weight: 800; margin: 15px 0; }
.modal-desc-scroll { 
    color: #475569; 
    line-height: 1.7; 
    margin-bottom: 25px;
    font-size: 1rem;
}

.btn-wa-modal { 
    display: block; 
    background: #25d366; 
    color: white !important; 
    text-align: center; 
    padding: 15px; 
    border-radius: 12px; 
    text-decoration: none; 
    font-weight: 800;
    transition: 0.3s;
}

.btn-wa-modal:hover { background: #1eb954; transform: scale(1.02); }

.close-modal { 
    position: absolute; right: 20px; top: 15px; 
    font-size: 35px; cursor: pointer; color: #94a3b8; 
    transition: 0.2s;
}
.close-modal:hover { color: #1e293b; }

/* Animasi muncul */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================================================
   MODAL DETAIL (Gaya Modern)
   =================================================== */
.modal-detail {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 26, 51, 0.9); /* Overlay Navy Gelap */
    display: flex; align-items: center;
    justify-content: center; z-index: 9999; padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #fff; width: 100%; max-width: 850px;
    border-radius: 20px; position: relative; overflow: hidden;
    max-height: 90vh; overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.modal-body { 
    display: grid; 
    grid-template-columns: 1.2fr 1fr; 
    gap: 30px; 
    padding: 30px; 
}

.modal-harga { 
    font-size: 28px; 
    color: #004aad; 
    font-weight: 800; 
    margin: 15px 0;
}

/* Perbaikan Footer Agar Tetap Di Bawah */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}


/* ===================================================
   HALAMAN BACA BERITA - FULL WIDTH & CLEAN
   =================================================== */

.read-news-wrapper {
    max-width: 900px; /* Lebar artikel yang nyaman dibaca */
    margin: 0 auto;
    padding: 20px 0;
}

.news-detail-full {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.05);
}

.news-main-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #004aad;
    margin-bottom: 20px;
    line-height: 1.2;
}

.news-meta-info {
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.badge-kat {
    background: #e74c3c;
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.8rem;
}

.news-date {
    color: #64748b;
    font-size: 0.9rem;
}

.news-image-main img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.news-body-content {
    line-height: 1.8;
    color: #334155;
    font-size: 1.15rem;
    white-space: pre-line; /* Penting! Menjaga spasi dan Enter dari admin dashboard */
}

.news-divider {
    margin: 40px 0 20px 0;
    border: 0;
    border-top: 1px solid #e2e8f0;
}

.btn-back-link {
    color: #004aad;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-back-link:hover {
    color: #e74c3c;
}

/* Biar di HP gak terlalu lebar paddingnya */
@media (max-width: 768px) {
    .news-detail-full {
        padding: 20px;
    }
    .news-main-title {
        font-size: 1.6rem;
    }
}