/* -- WARNA TEMA (Disesuaikan mirip OLXTOTO) -- */
:root {
    --color-background: #1e1e1e; /* Abu gelap mendekati hitam */
    --color-header-bg: #222;    /* Header sedikit lebih terang */
    --color-accent-gold: #ffd700; /* Kuning Emas */
    --color-button-blue: #007bff; /* Biru terang */
    --color-text-light: #ffffff;
    --color-text-darker: #c0c0c0; /* Abu terang untuk teks sekunder */
    --color-border-card: #2f2f2f; /* Border kartu abu gelap */
}
.member-id {
    font-size: 12px;
    color: #ffffff;
    margin: 4px 0;
}

/* -- PENGATURAN DASAR -- */
body {
    background-color: var(--color-background);
    color: var(--color-text-light);
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}

/* -- HEADER -- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--color-header-bg);
    border-bottom: 1px solid #333;
}

.logo {
    display: flex;
    align-items: center; /* Membuat logo vertikal di tengah header */
}

.logo-image {
    height: 50px; /* ATUR TINGGI LOGO ANDA DI SINI (misalnya 50px) */
    width: auto;  /* Lebar akan menyesuaikan secara otomatis */
}
.logo-main {
    font-size: 2.5em; /* Lebih besar */
    font-weight: 700;
    color: var(--color-accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.logo-sub {
    font-size: 1.1em; /* Lebih besar */
    color: var(--color-text-darker);
    margin-left: 8px;
    letter-spacing: 0.5px;
}

.search-bar {
    display: flex;
}

.search-bar input {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #444;
    border-radius: 5px 0 0 5px;
    background-color: #333;
    color: var(--color-text-light);
    width: 200px; /* Ukuran search bar */
}
.search-bar input::placeholder {
    color: #888;
}

.search-bar button {
    padding: 10px 15px;
    border: none;
    background-color: var(--color-accent-gold);
    color: #111;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    font-size: 1em;
}

/* -- KONTEN UTAMA -- */
main {
    padding: 30px 5%;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 80px; /* <-- TAMBAHKAN BARIS INI */
}

main h1 {
    text-align: center;
    color: var(--color-accent-gold);
    font-size: 2.8em;
    margin-top: 0;
    margin-bottom: 15px;
    letter-spacing: 1px;
}
main h1 i {
    color: var(--color-accent-gold);
    margin-right: 10px;
}

.sub-header {
    text-align: center;
    color: var(--color-text-darker);
    margin-bottom: 30px;
    font-size: 1.1em;
    line-height: 1.5;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

/* -- GALERI KARTU -- */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Agak kecil agar 4 kolom pas */
    gap: 20px;
}

.card {
    background-color: #2a2a2a; /* Latar kartu sedikit lebih terang dari background */
    border: 1px solid var(--color-border-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

.card-image {
    width: 100%;
    /* Hapus tinggi tetap 'height: 180px;' */
    overflow: hidden;
    display: flex; /* Tetap flex untuk rata tengah */
    justify-content: center;
    align-items: center;
    background-color: #3a3a3a; /* Warna latar jika gambar tidak full */
    padding-bottom: 60%; /* RASIO ASPEK: Ini akan menciptakan kotak dengan rasio 16:9 (60% dari lebar) */
    position: relative; /* Diperlukan untuk gambar absolut di dalamnya */
}
.card-image img {
    position: absolute; /* Membuat gambar mengisi ruang padding-bottom */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* INI KUNCINYA: Memastikan seluruh gambar terlihat */
    display: block;
}

.card-content {
    padding: 18px;
}

.card-content h2 {
    font-size: 1.25em;
    color: var(--color-accent-gold);
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-content .prize {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.card-content .date {
    font-size: 0.9em;
    color: var(--color-text-darker);
    margin-bottom: 15px;
}
.card-content .date i {
    margin-right: 5px;
    color: var(--color-text-darker);
}

.card-content .details {
    font-size: 0.95em;
    color: var(--color-text-darker);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* --- CSS TOMBOL BARU (LEBIH RAPIH) --- */

.read-more-btn {
    /* 1. Menggunakan Flexbox untuk perataan sempurna */
    display: flex;
    justify-content: center; /* Rata tengah horizontal */
    align-items: center;     /* Rata tengah vertikal */
    
    width: 100%; /* Lebar tetap penuh */
    padding: 11px 0; /* Padding atas/bawah 11px, kiri/kanan 0 */
    
    background-color: var(--color-button-blue);
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;  /* Ukuran font sedikit disesuaikan */
    text-transform: uppercase; 
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.read-more-btn:hover {
    background-color: #0056b3; 
    transform: translateY(-2px); 
}

.read-more-btn i {
    margin-right: 8px; /* Jarak ikon ke teks */
    /* Hapus 'vertical-align' karena sudah tidak diperlukan lagi */
}

/* Latar belakang gelap di belakang modal */
.modal {
    display: none; /* Tersembunyi secara default */
    position: fixed; 
    z-index: 1000; /* Tampil di atas segalanya */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Hitam transparan */
    padding-top: 50px;
}

/* Kotak modal-nya */
.modal-content {
    background-color: #2a2a2a; /* Warna sama dengan kartu */
    margin: 5% auto;
    padding: 25px;
    border: 1px solid #444;
    width: 90%;
    max-width: 700px; /* Lebar maksimum modal */
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

/* Animasi Muncul */
@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.9);}
    to {opacity: 1; transform: scale(1);}
}

/* Tombol Close (X) */
.modal-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
}
.modal-close:hover,
.modal-close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

/* Gambar di dalam modal */
.modal-image-container {
    width: 100%;
    margin-bottom: 20px;
}
.modal-image-container img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Konten teks di dalam modal */
.modal-text-content {
    padding-top: 10px;
}

/* Judul Modal */
#modal-title {
    color: var(--color-accent-gold);
    font-size: 1.8em;
    margin: 0 0 10px 0;
}

/* Info Tanggal & Detail Modal */
#modal-date {
    font-size: 1em;
    color: var(--color-text-darker);
    margin-bottom: 15px;
}
#modal-date i {
    margin-right: 5px;
}

#modal-details {
    font-size: 1em;
    color: #eee; /* Sedikit lebih terang dari kartu */
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Tombol di dalam modal (menggunakan gaya yg sama) */
#modal-button {
    width: 100%;
    box-sizing: border-box; /* Mencegah padding merusak lebar */
}

/* === CSS UNTUK PAGINASI === */
.pagination {
    text-align: center;
    padding: 20px 0;
}

.pagination a {
    color: var(--color-accent-gold);
    background-color: #333;
    padding: 10px 15px;
    margin: 0 4px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination a:hover {
    background-color: var(--color-accent-gold);
    color: #111;
}

/* Ini adalah gaya untuk tombol halaman yang sedang aktif */
.pagination a.active {
    background-color: var(--color-button-blue);
    color: var(--color-text-light);
}
/* === CSS BARU UNTUK STICKY FOOTER NAV BAR (LENGKAP & RATA) === */

.mobile-bottom-nav {
    display: none; /* Sembunyikan di desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    
    display: flex; /* Menggunakan Flexbox */
    justify-content: space-around;
    
    /* Latar belakang bar utama */
    background-color: #1a1a1a; 
    
    /* Garis Emas Premium di Atas */
    border-top: 3px solid var(--color-accent-gold); 
    
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.5); /* Bayangan di atas */
}

/* Hanya tampilkan di layar kecil (mobile) */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex; /* Tampilkan di mobile */
    }
    main {
        padding-bottom: 70px; /* Beri ruang agar konten tidak tertutup */
    }
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column; /* Ikon di atas teks */
    align-items: center;
    justify-content: center;
    flex: 1; /* Tiap tombol mendapat bagian yang sama */
    
    color: #ccc;
    text-decoration: none;
    font-size: 0.8em; 
    font-weight: bold;
    text-transform: uppercase;
    
    /* Latar belakang & pemisah antar tombol */
    background-color: #2a2a2a; 
    border-right: 1px solid #444;
    
    padding: 10px 0;
    transition: background-color 0.3s ease;
}

.mobile-bottom-nav .nav-item:hover {
    background-color: #333;
    color: #fff;
}

/* Ikon Emas (kecuali tombol utama) */
.mobile-bottom-nav .nav-item i {
    font-size: 1.5em; /* Ikon lebih besar */
    margin-bottom: 5px;
    color: var(--color-accent-gold); /* Warna ikon emas */
    transition: transform 0.2s ease;
}

.mobile-bottom-nav .nav-item:hover i {
    transform: scale(1.1); /* Efek hover pada ikon */
}


/* === Gaya khusus untuk tombol DAFTAR (Versi Rata) === */
.mobile-bottom-nav .nav-item.main-button {
    background: var(--color-button-blue); /* Gunakan warna biru yang sama */
    color: #fff;
    
    /* Memastikan RATA */
    transform: none; 
    border-radius: 0; 
    border: none; 
    box-shadow: none; 
    margin: 0; 

    flex-grow: 1.2; /* Sedikit lebih lebar */
    
    /* Kembalikan border pemisah */
    border-right: 1px solid #444; 
}

.mobile-bottom-nav .nav-item.main-button i {
    color: #fff; /* Ikon 'DAFTAR' berwarna putih */
}

.mobile-bottom-nav .nav-item.main-button:hover {
    background: #0056b3; /* Biru lebih gelap saat hover */
    transform: none; 
}

/* Pastikan tombol LOGIN (sebelum DAFTAR) punya border kanan */
.mobile-bottom-nav .nav-item:nth-child(2) {
    border-right: 1px solid #444;
}

/* Pastikan tombol terakhir (LIVE-CHAT) tidak ada border kanan */
.mobile-bottom-nav .nav-item:last-child {
    border-right: none;
}
