/* -- WARNA TEMA (Disesuaikan mirip OLXTOTO Gelap dengan garis Ungu/Biru Tua) -- */
: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: #9c9797; /* Biru terang */
    --color-header-border: #483d8b; /* Ungu/Biru Tua (Sesuai gambar terakhir) */
    --color-text-light: #ffffff;
    --color-text-darker: #c0c0c0; /* Abu terang untuk teks sekunder */
    --color-border-card: #2f2f2f; /* Border kartu abu gelap */
}

/* -- 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);
    /* Menggunakan garis Ungu/Biru Tua sebagai pemisah */
    border-bottom: 3px solid var(--color-header-border);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 50px;
    width: auto;
}
.logo-main {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--color-accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.logo-sub {
    font-size: 1.1em;
    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;
}
.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;
    transition: background-color 0.3s ease;
}
.search-bar button:hover {
    background-color: #e6b800; 
}

/* -- KONTEN UTAMA -- */
main {
    padding: 30px 5%;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 80px;
}

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));
    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%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #3a3a3a;
    padding-bottom: 60%;
    position: relative;
}
.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    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 {
    display: flex;
    justify-content: center;
    align-items: center;
    
    width: 100%;
    padding: 11px 0;
    
    background-color: var(--color-button-blue);
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    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;
}

/* Latar belakang gelap di belakang modal */
.modal {
    display: none;
    position: fixed; 
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    padding-top: 50px;
}

/* Kotak modal-nya */
.modal-content {
    background-color: #2a2a2a;
    margin: 5% auto;
    padding: 25px;
    border: 1px solid #444;
    width: 90%;
    max-width: 700px;
    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;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Tombol di dalam modal (menggunakan gaya yg sama) */
#modal-button {
    width: 100%;
    box-sizing: border-box;
}

/* === 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;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    
    display: flex;
    justify-content: space-around;
    
    background-color: #1a1a1a; 
    
    /* Garis Ungu/Biru Tua Premium di Atas */
    border-top: 3px solid var(--color-header-border); 
    
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.5);
}

/* Hanya tampilkan di layar kecil (mobile) */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    main {
        padding-bottom: 70px;
    }
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    
    color: #ccc;
    text-decoration: none;
    font-size: 0.8em; 
    font-weight: bold;
    text-transform: uppercase;
    
    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;
    margin-bottom: 5px;
    color: var(--color-accent-gold);
    transition: transform 0.2s ease;
}

.mobile-bottom-nav .nav-item:hover i {
    transform: scale(1.1);
}


/* === Gaya khusus untuk tombol DAFTAR (Versi Rata) === */
.mobile-bottom-nav .nav-item.main-button {
    background: var(--color-button-blue);
    color: #fff;
    
    transform: none; 
    border-radius: 0; 
    border: none; 
    box-shadow: none; 
    margin: 0; 

    flex-grow: 1.2;
    
    border-right: 1px solid #444; 
}

.mobile-bottom-nav .nav-item.main-button i {
    color: #fff;
}

.mobile-bottom-nav .nav-item.main-button:hover {
    background: #0056b3;
    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;
}