/* ======================================= */
/* GENERAL & BOXED LAYOUT STYLING */
/* ======================================= */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    
    /* WARNA WALLPAPER / LATAR BELAKANG LUAR - DIUBAH MENJADI WALLPAPER */
    background-image: url('https://s12.gifyu.com/images/bESO7.jpg');
    background-color: #1a2a4b; 
    background-repeat: repeat;
    background-size: cover; 
    background-attachment: fixed;
    background-position: center -90px;
    
    color: #fff; 
}

/* KOTAK UTAMA YANG MEMBUNGKUS SEMUA KONTEN */
.main-wrapper {
    max-width: 1390px; 
    margin: 0 auto; 
    background-color: #0b1a37; 
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); 
    min-height: 80vh; 
    display: flex; 
    flex-direction: column; 
}

/* ======================================= */
/* HEADER STYLING */
/* ======================================= */
.main-header {
    background-color: #0b1a37; 
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom:  none; 
    padding-bottom: 0px;
    margin-bottom: 0px;
}
.top-header .logo img {
    height: 80px; 
    vertical-align: middle;
    margin-top: -10px;
}
.top-header .top-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px; 
}
.top-header .top-nav ul li a {
    color: #f9f9f9; 
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px; 
    transition: color 0.3s ease;
    font-weight: bold;
}
.top-header .top-nav ul li a:hover {
    color: #fff;
}

.bottom-header {
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    padding: 0 20px;
}
.bottom-header .main-nav {
    margin-right: auto;
    padding-right: 50px; 
}
.bottom-header .main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 80px; 
}
.bottom-header .main-nav ul li a {
    color: #dce7f3; 
    text-decoration: none;
    font-size: 18px;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 8px; 
    padding: 20px 0;
    transition: color 0.3s ease;
}
.bottom-header .main-nav ul li a:hover {
    color: #ccc;
}
.bottom-header .login-form {
    display: flex;
    align-items: center;
    gap: 5px; 
}

.bottom-header .login-form input[type="text"],
.bottom-header .login-form input[type="password"] {
    background-color: #fff; 
    border: 1px solid #ccc;
    border-radius: 20px; 
    padding: 10px 15px; 
    width: 110px; 
    font-size: 14px;
    color: #333;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    width: 195px; 
    box-sizing: border-box;
    
}

.bottom-header .login-form .login-button {
    background: linear-gradient(to right, #004085, #002751); 
    color: #fff;
    border: none;
    border-radius: 20px; 
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ======================================= */
/* SLIDESHOW & RUNNING TEXT STYLING */
/* ======================================= */

.slider-container {
    position: relative;
    max-width: none; 
    margin: 0 auto; 
    overflow: hidden;
    padding: 0; 
    height: 300px; 
    /* Bayangan yang lebih menonjol */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 0 10px rgba(255, 255, 255, 0.05); 
    border-radius: 10px; /* Tambahkan sudut membulat untuk estetika */
}

.slider-wrapper {
    display: flex;
    /* Transisi EASE-OUT yang lebih halus */
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    height: 100%;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    display: flex; 
    height: 100%; 
}

/* Hilangkan border merah dari slide-content-wrapper, biarkan di slider-container */
.slide-content-wrapper {
    display: flex;
    width: 100%; 
    height: 100%;
    background-color: #1c273a;
    border: none; /* Hilangkan border ini */
    border-radius: 10px;
    overflow: hidden; 
}

.slide-media {
    position: relative;
    flex: 0 0 100%; 
    overflow: hidden;
    height: 100%; 
}

/* Efek Zoom in saat hover pada gambar (DURASI DIPERCEPAT 2 detik) */
.slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    /* Transisi untuk efek zoom (2 detik) */
    transition: transform 1s ease-in-out; 
}

.slide-media:hover img {
    transform: scale(1.05); /* Zoom sedikit saat kursor diarahkan */
}

.live-stream-tag {
    position: absolute;
    top: 15px; 
    left: 15px;
    background-color: #d9534f; 
    color: #fff;
    padding: 8px 15px; 
    border-radius: 8px;
    font-size: 16px; 
    font-weight: bold;
    z-index: 10;
    /* Bayangan teks agar lebih menonjol */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); 
}

/* ======================================= */
/* NAVIGASI SLIDER (BUTTONS) - MODIFIKASI AKHIR */
/* ======================================= */

.slider-nav {
    position: absolute;
    top: 50%;
    /* Gunakan transform Y -50% agar tetap di tengah vertikal */
    transform: translateY(-50%); 
    
    /* MODIFIKASI TAMPILAN SESUAI GAMBAR SEGI EMPAT MEMBULAT */
    background: rgba(0, 0, 0, 0.179); /* Latar belakang abu-abu semi-solid */
    color: #fff;
    border: none;
    
    width: 60px; /* Lebar tombol */
    height: 100px; /* Tinggi tombol */
    
    padding: 0;
    
    /* Sudut Membulat di sisi luar */
    border-radius: 10px; 
    
    cursor: pointer;
    font-size: 30px; /* Ikon panah lebih besar */
    font-weight: bold;
    z-index: 20;
    
    /* Pastikan ikon rata tengah */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* EFEK HOVER: SEMBUNYIKAN SECARA DEFAULT */
    opacity: 0; 
    transition: opacity 0.3s ease, background 0.3s ease;
}

/* Tampilkan tombol saat kursor diarahkan ke area slide */
.slider-container:hover .slider-nav {
    opacity: 1; /* Muncul penuh */
}

/* Efek saat kursor diarahkan ke tombol itu sendiri */
.slider-nav:hover {
    background: #00000094; /* Warna saat di-hover (merah sesuai tema) */
}

.prev-btn { 
    left: 0; /* Menempel di sisi kiri */
    /* Bulatkan sudut hanya di sisi kanan tombol */
    border-radius: 0 10px 10px 0; 
}
.next-btn { 
    right: 0; /* Menempel di sisi kanan */
    /* Bulatkan sudut hanya di sisi kiri tombol */
    border-radius: 10px 0 0 10px;
}

/* RUNNING TEXT */
.running-text-container {
    background-color: rgba(0, 0, 0, 0.7); 
    color: #fff;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden; 
    border-top: 2px solid #d9534f; 
    border-bottom: 2px solid #d9534f; 
}

.running-text {
    display: flex; 
    align-items: center;
    width: max-content; 
    animation: marquee 30s linear infinite; 
}

.running-text .fas.fa-bullhorn { color: #ffc107; margin-right: 10px; }

@keyframes marquee {
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } 
}

.slider-dots {
    text-align: center;
    margin-top: 15px;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #555;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s, width 0.3s, border-radius 0.3s;
    border: 1px solid #333; 
}

.dot.active {
    background-color: #d9534f;
    width: 30px;
    border-radius: 5px;
    border-color: #fff;
}

/* ======================================= */
/* KONTEN UTAMA DENGAN SIDEBAR KIRI (BARU) */
/* ======================================= */

.content-area {
    display: flex;
    gap: 10px; 
    padding: 10px;
    padding-bottom: 0;
    background-color: #1a2a4b; 
}

/* Kategori Game (SIDEBAR KIRI) */
.game-list-section {
    flex: 0 0 80px; 
    padding: 0; 
    max-width: 80px;
    background-color: transparent; 
}

.game-container-wrapper {
    display: flex;
    flex-direction: column; 
    gap: 5px; 
    padding: 0;
}

.game-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    background-color: #0b1a37; 
    border-radius: 10px; /* Diubah dari 20px agar cocok dengan ikon persegi */
    padding: 5px; /* Mengurangi padding luar */
    width: 100%; 
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
    border: 1px solid #1a2a4b; 
}

.game-box:hover {
    transform: none; 
    background-color: #1c273a; 
    border-color: #007bff; 
}

/* === PERUBAHAN UTAMA UNTUK ICON PERSEGI === */
.game-box img {
    /* Menjaga rasio 1:1, ukuran ikon */
    width: 70px; /* Diperkecil agar masuk dengan padding baru */
    height: 70px;
    margin: 0; /* Menghilangkan margin bawah */
    border-radius: 5px; /* DIUBAH MENJADI SUDUT MEMBULAT */
    padding: 0; /* Menghilangkan padding */
    background-color: transparent; /* Background gambar dihilangkan */
    object-fit: contain; /* Memastikan gambar full berada di kotak */
}
/* ======================================= */

.game-title {
    color: #fff;
    font-size: 12px; 
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap; 
}

/* Konten Tambahan/Utama (KANAN) */
.additional-content {
    flex-grow: 1; 
    background-color: #0b1a37; 
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
}

/* ======================================= */
/* GAME GRID STYLING (Konten Utama) */
/* ======================================= */

.game-grid-area {
    padding: 20px; 
}

.game-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px; 
}

.grid-game-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    background-color: #1a2a4b; 
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 100%; 
    height: 0; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.grid-game-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.6);
    border-color: #d9534f;
}

.grid-game-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    border-radius: 10px;
}

.game-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7); 
    color: #fff;
    font-size: 11px; 
    font-weight: bold;
    padding: 5px 0;
    z-index: 5;
    text-transform: uppercase;
}

/* TAGS di pojok kiri atas */
.grid-game-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    color: #fff;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 10px 0 10px 0;
    z-index: 10;
    line-height: 1;
}

/* Styling untuk tag NEW/VIRAL/HOT */
.new-item::before {
    content: 'VIRAL';
    background-color: #ffc107; 
    color: #333;
}

.hot-item::before {
    content: 'HOT';
    background-color: #d9534f; 
}

.exclusive-item::before {
    content: 'EKSKLUSIF';
    background-color: #007bff; 
}

.top-item::before {
    content: 'TOP';
    background-color: #28a745; 
}

/* LIVE RESULT / LIVE DRAW Overlay */
.live-result {
    z-index: 5; 
}

.live-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.6); 
    color: #fff;
    z-index: 8; 
    padding-bottom: 20px; 
}

.live-info span {
    background-color: #d9534f;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.live-info p {
    margin: 0;
    font-size: 10px;
    line-height: 1.5;
}

/* ======================================= */
/* PROVIDER LOGOS STYLING */
/* ======================================= */
.provider-logos-section {
    background-color: #0b1a37; 
    padding: 15px 0;
    margin-top: 10px;
    border-top: 2px solid #1a2a4b; 
    border-bottom: 2px solid #1a2a4b; 
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.logo-wrapper {
    display: inline-block;
    animation: scroll-logos 40s linear infinite; 
    padding-left: 100%; 
}

.logo-wrapper img {
    height: 35px; 
    margin: 0 15px;
    opacity: 0.5;
    filter: grayscale(100%); 
    transition: opacity 0.3s, filter 0.3s;
}

.logo-wrapper img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); } 
}


/* ======================================= */
/* FOOTER STYLING (NEW STYLE) */
/* ======================================= */

.main-footer {
    /* Background mengikuti contoh gambar abu-abu kecoklatan */
    background-color: #252e37; 
    padding: 30px 20px;
    border-top: none;
    text-align: center;
    color: #ccc;
    font-size: 14px;
}

.footer-container {
    display: flex;
    justify-content: center; /* Rata tengah semua konten footer */
    align-items: center;
    flex-direction: column; 
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 20px;
}

/* 1. BAGIAN LISENSI */
.footer-lisensi-new {
    width: 100%;
    margin-bottom: 20px;
}

.lisensi-wrapper {
    display: flex;
    justify-content: center; /* Rata tengah logo lisensi */
    gap: 30px;
    margin-bottom: 30px;
}

.lisensi-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 0 0 auto; 
}

.lisensi-item img {
    height: 60px; /* Logo lebih besar */
    margin-bottom: 8px;
    filter: brightness(1.2) grayscale(0%); 
}

.lisensi-item .caption {
    font-size: 13px;
    color: #fff;
    margin: 0;
    max-width: 150px;
    line-height: 1.3;
}

.pioneer-info {
    margin-top: 15px;
    padding: 0 20px;
}

.pioneer-info p {
    font-size: 12px;
    color: #a7b7d7;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

/* 2. BAGIAN INFO DAN KONTAK - Dibuat Rata Kanan */
.footer-info-group {
    display: flex;
    justify-content: flex-end; /* Rata kanan di desktop */
    width: 100%;
    max-width: 1000px; 
    padding-right: 20px;
    box-sizing: border-box;
}

.footer-info {
    padding: 0 20px;
    flex: 0 0 auto; 
    text-align: right; 
    padding-top: 0;
}

.footer-info.contact-only {
    display: flex;
    align-items: center; 
    gap: 20px;
}

.footer-info.about-us-only {
    display: flex;
    align-items: center; 
    gap: 20px;
    text-align: left; 
}


.contact-title, .about-title {
    color: #fff;
    font-size: 14px;
    margin: 0;
    font-weight: bold;
    white-space: nowrap;
}

.contact-title i {
    color: #d9534f;
    margin-right: 5px;
}

.footer-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* List link dibuat horizontal */
    gap: 15px; 
}

.footer-info ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
}

/* Tombol Kontak Horizontal */
.contact-buttons.horizontal-contact {
    display: flex;
    flex-direction: row; 
    gap: 5px; 
    margin-top: 0;
    align-items: center; 
    justify-content: flex-start;
}

.btn {
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s;
    /* Tambahan warna untuk tombol consult & line */
    background-color: #d9534f; /* Merah */
    color: #fff;
    width: 150px; 
}

.line-btn {
    background-color: #007bff; /* Biru */
}

.btn.small-btn {
    padding: 5px 12px; 
    border-radius: 20px; 
    font-size: 12px; 
    min-width: 80px; 
    width: auto;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn.small-btn i {
    margin-right: 0;
}
.line-btn.small-btn {
    background-color: transparent;
    border-color: #007bff;
    color: #007bff;
}


/* ======================================= */
/* RESPONSIVENESS */
/* *************************************** */
/* CATATAN: Media query untuk layout di bawah */
/* 1024px dan 768px telah dinonaktifkan/dihapus */
/* agar tampilan mobile mengikuti desktop. */
/* *************************************** */

@media (max-width: 1024px) {
    /* Slide Layout di Tablet */
    .slider-container {
        height: 400px; 
    }
    
    /* Content Area di Tablet */
    /* .content-area {
        flex-direction: column; 
    }
    
    .game-list-section {
        flex: 0 0 auto; 
        max-width: none;
        padding: 10px;
    }
    
    .game-container-wrapper {
        flex-direction: row; 
        flex-wrap: wrap; 
        justify-content: center;
    }
    
    .game-box {
        width: calc(33.33% - 10px); 
        margin-bottom: 10px;
        padding: 10px; 
    }
    
    .game-box img {
        width: 60px;
        height: 60px;
    }
    
    .game-grid-container {
        grid-template-columns: repeat(3, 1fr); 
    } */
    
    /* Responsiveness untuk Grid Permainan */
    .game-grid-area {
        padding: 10px;
    }

    /* FOOTER RESPONSIVE (Tablet) */
    .lisensi-wrapper {
        flex-wrap: wrap;
        gap: 20px;
    }
    .footer-info-group {
        flex-direction: column; /* Jadikan kolom di tablet */
        align-items: center;
        padding-right: 0;
    }
    .footer-info.contact-only, 
    .footer-info.about-us-only {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 15px;
        gap: 10px;
    }
    .footer-info ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    .contact-buttons.horizontal-contact {
        justify-content: center;
    }

    .btn.small-btn {
        width: 100px;
    }
}

@media (max-width: 768px) {
    /* Header Responsive (TETAP DIBUTUHKAN AGAR FORM LOGIN TIDAK RUSAK) */
    .top-header, .bottom-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 15px;
        
    }
    .bottom-header .login-form {
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
    }
    .bottom-header .login-form input,
    .bottom-header .login-form .login-button {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Game Box (Mobile) - Layout dinonaktifkan
    .game-box {
        width: calc(50% - 10px); 
        padding: 5px;
    }
    .game-box img {
        width: 70px;
        height: 70px;
    }
    
    .game-grid-container {
        grid-template-columns: repeat(2, 1fr); 
    }
    .game-name {
        font-size: 10px;
    } */

    /* FOOTER RESPONSIVE (Mobile) - TETAP DIBUTUHKAN UNTUK KETERBACAAN */
    .lisensi-wrapper {
        gap: 15px;
    }
    .lisensi-item {
        width: 45%;
        margin-bottom: 10px;
    }
    .lisensi-item img {
        height: 50px;
    }
    .lisensi-item .caption {
        font-size: 11px;
    }
    .footer-info ul {
        flex-direction: column; /* List link kembali vertikal di mobile */
        align-items: center;
    }
    .pioneer-info p {
        padding: 0 10px;
    }
    
    /* POP-UP IKLAN RESPONSIVE */
    .modal-content {
        max-width: 95%; 
    }
    .close-btn {
        top: 5px; 
        right: 5px;
        background-color: rgba(217, 83, 79, 0.8);
    }
}

/* ======================================= */
/* PRELOADER STYLING (DIHAPUS DARI FILE) */
/* ======================================= */


/* ======================================= */
/* POP-UP IKLAN (BARU) */
/* ======================================= */

/* Latar Belakang Overlay yang Menutupi Layar */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Gelap transparan */
    display: none; /* Sembunyikan secara default */
    justify-content: center;
    align-items: center;
    z-index: 9998; /* Di bawah preloader, di atas konten lain */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex; /* Tampilkan flex saat kelas 'show' ditambahkan */
    opacity: 1;
}

/* Konten Pop-up Utama (Persegi Panjang) */
.modal-content {
    position: relative;
    width: 90%; /* Lebar maksimal di mobile */
    max-width: 800px; /* Lebar maksimal pop-up persegi panjang */
    height: auto;
    background-color: transparent; /* Background hilang, hanya gambar */
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transform: scale(0.8); /* Efek awal mengecil */
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1); /* Efek membesar saat tampil */
}

/* Gambar Iklan (Memastikan Gambar Rata ke Dalam Kotak) */
.ad-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Tombol Tutup */
.close-btn {
    position: absolute;
    top: -15px; /* Posisikan di luar kotak iklan */
    right: -15px;
    background-color: #d9534f; /* Warna Merah */
    color: #fff;
    border: 3px solid #fff;
    border-radius: 25px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    font-weight: bold;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s;
}

.close-btn:hover {
    background-color: #c9302c;
}