/* -- WARNA TEMA (Disesuaikan mirip MONEYSITE dengan gambar yang diunggah) -- */
:root {
    --color-background: #f0f0f0; /* Abu muda/Putih untuk konten utama */
    --color-header-bg: #ffd700;    /* Kuning Emas (Warna Header sesuai gambar) */
    --color-header-border: #007bff; /* Biru (Garis Pemisah sesuai gambar) */
    --color-accent-gold: #ffd700; /* Kuning Emas */
    --color-button-blue: #007bff; /* Biru terang */
    --color-text-light: #000000; /* Hitam untuk teks pada latar terang */
    --color-text-darker: #666666; /* Abu gelap untuk teks sekunder */
    --color-border-card: #cccccc; /* Border kartu abu muda */
}

/* -- 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 biru dari gambar sebagai pemisah */
    border-bottom: 3px solid var(--color-header-border);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 50px;
    width: auto;
}
/* Ubah warna teks logo agar terlihat jelas di latar kuning */
.logo-main {
    font-size: 2.5em;
    font-weight: 700;
    color: #000000; /* Hitam agar kontras dengan latar kuning */
    text-transform: uppercase;
    letter-spacing: 1px;
}
.logo-sub {
    font-size: 1.1em;
    color: #333333; /* Abu gelap agar kontras dengan latar kuning */
    margin-left: 8px;
    letter-spacing: 0.5px;
}

.search-bar {
    display: flex;
}

.search-bar input {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #999; /* Border lebih terang */
    border-radius: 5px 0 0 5px;
    background-color: #ffffff; /* Latar input putih */
    color: var(--color-text-light);
    width: 200px;
}
.search-bar input::placeholder {
    color: #999;
}

.search-bar button {
    padding: 10px 15px;
    border: none;
    background-color: var(--color-button-blue); /* Tombol biru */
    color: var(--color-text-light); /* Teks putih */
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    font-size: 1em;
    transition: background-color 0.3s ease;
}
.search-bar button:hover {
    background-color: #0056b3; /* Biru lebih gelap saat hover */
}


/* -- KONTEN UTAMA -- */
main {
    padding: 30px 5%;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 80px;
}

main h1 {
    text-align: center;
    color: var(--color-button-blue); /* Judul utama menjadi biru */
    font-size: 2.8em;
    margin-top: 0;
    margin-bottom: 15px;
    letter-spacing: 1px;
}
main h1 i {
    color: var(--color-button-blue);
    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 #ccc; /* Garis pemisah lebih terang */
}

/* -- GALERI KARTU -- */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background-color: #ffffff; /* Latar kartu Putih */
    border: 1px solid var(--color-border-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Bayangan lebih halus */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.card-image {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e0e0e0; /* Warna latar jika gambar tidak full */
    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-button-blue); /* Judul kartu menjadi biru */
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-content .prize {
    font-size: 1.1em;
    font-weight: 700;
    color: #cc0000; /* Warna Merah untuk penekanan harga */
    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-light); /* Hitam */
    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: #ffffff; /* Teks Putih */
    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.2);
}

.read-more-btn:hover {
    background-color: #0056b3; 
    transform: translateY(-2px); 
}

.read-more-btn i {
    margin-right: 8px;
    color: #ffffff; /* Ikon Putih */
}

/* 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.7);
    padding-top: 50px;
}

/* Kotak modal-nya */
.modal-content {
    background-color: #ffffff; /* Latar modal Putih */
    margin: 5% auto;
    padding: 25px;
    border: 1px solid #ccc;
    width: 90%;
    max-width: 700px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    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: #333;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
}
.modal-close:hover,
.modal-close:focus {
    color: #000;
    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-button-blue); /* Judul modal menjadi biru */
    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: var(--color-text-light);
    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-button-blue); /* Warna teks tombol biru */
    background-color: #fff; /* Latar tombol putih */
    border: 1px solid var(--color-button-blue); /* Border biru */
    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-button-blue);
    color: #fff;
}

/* Ini adalah gaya untuk tombol halaman yang sedang aktif */
.pagination a.active {
    background-color: var(--color-button-blue);
    color: #fff;
    border-color: var(--color-button-blue);
}

/* === 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: #ffffff; /* Latar nav bar putih */
    
    /* Garis Biru Premium di Atas (seperti pemisah header) */
    border-top: 3px solid var(--color-button-blue); 
    
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.1);
}

/* 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: var(--color-text-darker); /* Teks abu gelap */
    text-decoration: none;
    font-size: 0.8em; 
    font-weight: bold;
    text-transform: uppercase;
    
    background-color: #f8f8f8; /* Latar item nav sedikit abu */
    border-right: 1px solid #ddd; /* Pemisah lebih terang */
    
    padding: 10px 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mobile-bottom-nav .nav-item:hover {
    background-color: #e0e0e0;
    color: var(--color-text-light);
}

/* Ikon Biru (kecuali tombol utama) */
.mobile-bottom-nav .nav-item i {
    font-size: 1.5em;
    margin-bottom: 5px;
    color: var(--color-button-blue); /* Warna ikon biru */
    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-accent-gold); /* Gunakan warna KUNING untuk tombol utama */
    color: #000; /* Teks Hitam */
    
    transform: none; 
    border-radius: 0; 
    border: none; 
    box-shadow: none; 
    margin: 0; 

    flex-grow: 1.2;
    
    border-right: 1px solid #ddd; 
}

.mobile-bottom-nav .nav-item.main-button i {
    color: #000; /* Ikon 'DAFTAR' berwarna Hitam */
}

.mobile-bottom-nav .nav-item.main-button:hover {
    background: #e6b800; /* Kuning 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 #ddd;
}

/* Pastikan tombol terakhir (LIVE-CHAT) tidak ada border kanan */
.mobile-bottom-nav .nav-item:last-child {
    border-right: none;
}