/* Import Font dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* Reset dan Pengaturan Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #1a202c; /* Warna latar belakang gelap seperti di gambar */
    color: #f7fafc;
    padding-bottom: 80px; /* Memberi ruang untuk navigasi bawah */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px; /* Sedikit padding horizontal agar tidak menempel di tepi */

    /* --- Properti Baru untuk Sticky Header --- */
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #1a202c; /* Warna latar belakang body untuk menutupi konten di bawahnya */
    width: 100%;
	border-bottom: 2px solid #c53030;
}

.main-header .logo img {
    height: 40px;
}

.user-actions .btn {
    text-decoration: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
}

.user-actions .btn-login {
    background-color: #3182ce;
}

.user-actions .btn-register {
    background-color: #c53030;
}

/* Promo Banner (Hanya Gambar) */
.promo-banner {
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden; /* Penting untuk memotong gambar sesuai sudut tumpul */
    line-height: 0; /* Menghilangkan spasi ekstra jika ada */
}

.promo-banner img {
    width: 100%; /* Membuat gambar responsif, memenuhi lebar kontainer */
    height: auto; /* Menjaga rasio aspek gambar */
    display: block; /* Menghilangkan spasi di bawah gambar */
}

/* Jackpot */
.jackpot {
    background-color: #2d3748;
    border: 2px solid #c53030;
    border-radius: 50px;
    padding: 10px;
    margin: 20px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}

.jackpot-display {
    display: flex;
    flex-direction: column;
}

.jackpot-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #f6e05e;
    letter-spacing: 2px;
}

.jackpot-amount {
    font-size: 2rem;
    font-weight: bold;
    color: #e53e3e;
    padding: 5px 20px;
    border-radius: 10px;
}

.jackpot-char {
    height: 50px;
}

/* Galeri Game */
.game-gallery {
    margin: 30px 0;
}

.game-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Agar responsif di layar kecil */
}

.tab-link {
    background-color: #4a5568;
    color: #cbd5e0;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-link:hover {
    background-color: #63b3ed;
    color: white;
}

.tab-link.active {
    background-color: #ed8936;
    color: white;
    font-weight: bold;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.game-card {
    background-color: #2d3748;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: block; /* Default display */
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card img {
    width: 100%;
    height: auto;
    display: block;
}

.game-card span {
    display: block;
    padding: 10px 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Navigasi Bawah */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2d3748;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #a0aec0;
    font-size: 0.75rem;
}

.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.nav-item.active {
    color: #f6e05e; /* Warna untuk item yang aktif */
}
/*
=============================
 Gaya Untuk Bagian Artikel
=============================
*/
.article-section {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #edf2f7;
}

.article-grid {
    display: grid;
    /* Membuat grid yang responsif secara otomatis */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.article-card {
    background-color: #2d3748; /* Warna yang sama dengan komponen lain */
    border-radius: 10px;
    overflow: hidden; /* Memastikan gambar tidak keluar dari border-radius */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.article-card img {
    width: 100%;
    height: 180px; /* Menyamakan tinggi semua gambar */
    object-fit: cover; /* Memastikan gambar tidak penyok */
    display: block;
}

.article-content {
    padding: 20px;
}

.article-category {
    display: inline-block;
    background-color: #ed8936; /* Warna oranye yang sama dengan tab aktif */
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.article-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #f7fafc;
}

.article-content p {
    font-size: 0.9rem;
    color: #a0aec0; /* Warna abu-abu terang untuk deskripsi */
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more-btn {
    display: inline-block;
    color: #f6e05e; /* Warna kuning yang sama dengan jackpot */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.read-more-btn:hover {
    color: #faf089;
    text-decoration: underline;
}

/*
=============================
 Gaya Untuk Popup (Modal) Artikel
=============================
*/

/* Lapisan latar belakang gelap */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Latar belakang hitam transparan */
    display: none; /* Awalnya disembunyikan */
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Harus di atas sticky header */
    padding: 20px;
}

/* Kontainer konten popup */
.modal-content {
    background-color: #2d3748;
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 800px; /* Lebar maksimal popup */
    max-height: 90vh; /* Tinggi maksimal agar tidak keluar layar */
    overflow-y: auto; /* Aktifkan scroll jika konten panjang */
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

/* Tombol close (X) */
.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: #a0aec0;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-button:hover {
    color: white;
}

/* Styling konten di dalam popup */
#modal-img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

#modal-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #f7fafc;
}

#modal-body {
    font-size: 1rem;
    color: #cbd5e0;
    line-height: 1.7;
}

#modal-body p, #modal-body ul {
    margin-bottom: 15px;
}
/*
/*
=============================
 Gaya Untuk Footer (LENGKAP)
=============================
*/
.main-footer {
    background-color: #1a202c;
    text-align: center;
    padding: 40px 20px;
    margin-top: 30px;
    border-top: 1px solid #2d3748;
}

/* Gaya judul untuk semua section di footer */
.main-footer h4 {
    color: #a0aec0;
    margin-bottom: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- BAGIAN BARU: Sosial Media --- */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px; /* Jarak antar ikon */
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%; /* Membuat ikon menjadi lingkaran */
    background-color: #4a5568;
    color: white;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #ed8936; /* Warna aksen saat di-hover */
    transform: translateY(-3px);
}

/* --- Gaya untuk Logo Pembayaran & Sponsor --- */
.payment-logos,
.sponsor-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.payment-logos img,
.sponsor-logos img {
    max-height: 40px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
	border-radius: 10px;
}

.payment-logos img:hover,
.sponsor-logos img:hover {
    opacity: 1;
}

/* --- Garis Pemisah & Copyright --- */
.footer-divider {
    border: none;
    height: 1px;
    background-color: #2d3748;
    margin: 40px auto;
    width: 80%;
}

.copyright-section p {
    color: #a0aec0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 5px 0;
}