/* --- 1. ROOT & GLOBAL RESETS --- */
:root {
    --primary-orange: #233b7a;
    --dark-orange: #ccc;
    --soft-orange: #6587cb; 
    --white: #FFFFFF;
    --text-main: #333333;
    --shadow: 0 10px 30px rgba(255, 102, 0, 0.08);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    scroll-behavior: smooth; 
}

body { 
    font-family: 'Poppins', sans-serif; 
    background-color: var(--white); 
    color: var(--text-main); 
    line-height: 1.7; 
    overflow-x: hidden; 
}

/* --- 2. NAVBAR (STICKY) --- */
header {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 0 5%; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border-bottom: 3px solid var(--primary-orange);
    height: 60px; /* Tinggi tetap untuk presisi mobile menu */
}

.logo img { 
    height: 60px; 
    width: auto; 
    display: block; 
}

nav ul { 
    display: flex; 
    list-style: none; 
    align-items: center; 
}

nav ul li { 
    margin-left: 20px; 
}

nav ul li a { 
    text-decoration: none; 
    color: var(--text-main); 
    font-weight: 600; 
    font-size: 0.85rem; 
    transition: 0.3s; 
}

nav ul li a:hover, .nav-text-active { 
    color: var(--primary-orange) !important; 
}

.nav-text-active { 
    font-weight: 800 !important; 
}

/* Tombol Daftar & Login */
.nav-btn {
    padding: 8px 20px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 800 !important;
    font-size: 0.75rem;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange) !important;
    transition: 0.3s;
}

.nav-btn:hover, .nav-btn.nav-active {
    background: var(--primary-orange);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

/* --- 3. HAMBURGER MENU (MOBILE) --- */
.hamburger { 
    display: none; 
    cursor: pointer; 
    flex-direction: column; 
    gap: 5px; 
}

.hamburger span { 
    width: 28px; 
    height: 3px; 
    background: var(--primary-orange); 
    border-radius: 5px; 
    transition: 0.3s;
}

.schedule-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; 
    margin-top: 30px;
}

.league-box { 
    background: white; 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

.league-title { 
    background: var(--primary-orange); 
    color: white; 
    padding: 12px 15px; 
    font-weight: 800; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    text-transform: uppercase;
    font-size: 0.9rem;
}

.league-title img { width: 20px; height: auto; }

.match-list { padding: 5px 0; }

.match-item { 
    padding: 15px; 
    border-bottom: 1px solid #eee; 
    transition: 0.3s;
}

.match-item:last-child { border-bottom: none; }

.match-teams { 
    font-weight: 700; 
    color: var(--primary-orange); 
    font-size: 1rem; 
}

.match-time { 
    font-size: 0.8rem; 
    color: #777; 
}

.match-odds { 
    margin-top: 5px; 
    font-weight: 800; 
    color: #2ecc71; 
    font-size: 0.85rem; 
}



.btn-league-market {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: var(--primary-orange); /* Biru #233b7a */
    color: white !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 800;
    border-radius: 8px;
    text-transform: uppercase;
    transition: 0.3s ease;
    border: none;
    width: 100%; /* Agar memenuhi lebar kotak di mobile */
}

.btn-league-market:hover {
    background-color: #1a2d5e; /* Warna biru yang lebih gelap saat hover */
    transform: scale(1.03);
}

/* Jarak antar elemen di dalam match-item */
.match-item .match-teams {
    display: block;
    margin-bottom: 5px;
}


/* Fix Provider Card agar logo berwarna di section bola */
.provider-card img { filter: grayscale(0%); }


@media (max-width: 992px) {
    .hamburger { display: flex; }
    
    nav { 
        position: absolute; 
        top: 60px; /* Pas di bawah header */
        left: -100%; 
        width: 100%; 
        background: white; 
        height: calc(100vh - 60px); 
        transition: 0.4s; 
        overflow-y: auto;
        z-index: 999;
    }

    nav.active { left: 0; }
    
    nav ul { 
        flex-direction: column; 
        padding-top: 20px; 
        align-items: center;
        width: 100%;
    }
    
    nav ul li { 
        margin: 12px 0; 
        width: 80%; 
        text-align: center;
        margin-left: 0; /* Reset margin desktop */
    }

    /* Animasi Hamburger */
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
}

/* --- 4. BANNER --- */
.banner-container { 
    margin-top: 60px; 
    width: 100%; 
    background: var(--white);
}

.banner-container img { 
    width: 100%; 
    height: auto; 
    max-height: 613px; 
    object-fit: cover; 
    display: block; 
}

/* --- 5. GLOBAL SECTIONS --- */
section { padding: 100px 0; position: relative; }
.container { padding: 0 10%; max-width: 1400px; margin: 0 auto; }

h2 { 
    font-family: 'Montserrat', sans-serif; 
    text-align: center; 
    color: var(--primary-orange); 
    font-size: clamp(1.8rem, 4vw, 2.3rem); 
    margin-bottom: 50px; 
    text-transform: uppercase; 
    font-weight: 800; 
}

/* Dividers */
.divider-to-orange, .divider-to-white { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    line-height: 0; 
    transform: rotate(180deg); 
}

.divider-to-orange svg { fill: var(--soft-orange); width: 100%; height: 60px; }
.divider-to-white svg { fill: var(--white); width: 100%; height: 60px; }

/* --- 6. SEO & BUTTONS --- */
.seo-section { background: var(--white); text-align: center; }
.article-body { max-width: 900px; margin: 0 auto; text-align: justify; margin-bottom: 40px; }
.btn-group { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

.btn { 
    padding: 15px 40px; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: 700; 
    transition: 0.3s; 
    min-width: 200px; 
    text-transform: uppercase; 
    text-align: center;
}

.btn-primary { 
    background: var(--primary-orange); 
    color: white; 
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3); 
}

.btn-secondary { 
    border: 2px solid var(--primary-orange); 
    color: var(--primary-orange); 
}

/* --- 7. PROVIDERS SECTION --- */
#providers { 
    background: var(--soft-orange); 
    width: 100%; 
}

.provider-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
    width: 100%; 
}

.provider-card { 
    background: white; 
    padding: 25px 0px; 
    border-radius: 20px; 
    border: 1px solid #ffe5d4; 
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    display: flex;
    flex-direction: column;
    height: fit-content;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.provider-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.provider-card img { 
    height: 45px; 
    width: auto; 
    max-width: 140px;
    object-fit: contain; 
    filter: grayscale(100%); 
    transition: 0.3s; 
    margin-bottom: 20px;
}

.btn-provider { 
    text-decoration: none;
    background: var(--primary-orange);
    color: white !important;
    font-size: 0.75rem; /* Ukuran font sesuai foto */
    font-weight: 800;
    line-height: 1.2; /* Mengatur jarak antar baris teks agar rapat */
    
    /* Ukuran Tetap Agar Sama Rata */
    width: 85%; 
    max-width: 160px;
    height: 54px; /* Tinggi tetap supaya semua tombol seragam */
    
    /* Membuat Teks Rata Tengah (Horizontal & Vertikal) */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* Styling Visual */
    border-radius: 12px; /* Sudut melengkung sesuai foto kedua */
    text-transform: uppercase;
    margin: 0 auto; /* Menengahkan posisi tombol di dalam card */
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-provider:hover {
    background: var(--dark-orange);
    transform: scale(1.05);
}

.provider-card.active {
    border-color: var(--primary-orange);
    box-shadow: var(--shadow);
}

.provider-card.active img { filter: grayscale(0%); }

/* Game Dropdown inside Provider */
.game-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    width: 100%;
}

.provider-card.active .game-dropdown {
    max-height: 500px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #ffd4b8;
}

.game-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f9f9f9;
}

.game-icon {
    width: 42px; height: 42px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.game-icon img { width: 100%; height: 100%; object-fit: cover; filter: none !important; margin-bottom: 0 !important; }
.game-details { display: flex; flex-direction: column; text-align: left; }
.game-name { font-size: 0.75rem; font-weight: 700; color: #333; line-height: 1.2; }
.game-rtp { font-size: 0.65rem; color: #2ecc71; font-weight: 800; margin-top: 2px; }

/* Responsive Provider */
@media (max-width: 992px) { 
    .provider-grid { grid-template-columns: repeat(3, 1fr); } 
}

@media (max-width: 600px) { 
   /* Mengurangi padding container agar grid tidak terjepit */
   .container { padding: 0 15px; }

   .provider-grid { 
       grid-template-columns: repeat(2, 1fr); 
       gap: 12px; 
       padding: 0; 
       justify-items: center; 
       width: 100%;
   } 

   .provider-card {
       width: 100%;
       padding: 20px 5px; /* Tambah padding atas bawah agar logo tidak mepet */
       display: flex;
       flex-direction: column;
       align-items: center;
       justify-content: center;
   }

   .provider-card img { 
       height: 35px; 
       margin-bottom: 15px;
       filter: grayscale(0%); /* Opsional: Di HP langsung berwarna agar menarik */
   }

   /* Tombol di Mobile tetap mengikuti ukuran seragam */
   .btn-provider { 
       font-size: 0.85rem; 
       width: 90%; 
       height: 50px; 
   }
}

/* --- 8. REVIEWS (INFINITE LOOP) --- */
#reviews { background: var(--soft-orange); overflow: hidden; padding-left: 0; padding-right: 0; }

.review-wrapper { 
    display: flex; 
    width: max-content; 
    animation: scrollLoop 150s linear infinite; 
}

.review-wrapper:hover { animation-play-state: paused; }

.review-card { 
    background: white; 
    width: 320px; 
    margin: 0 15px; 
    padding: 30px; 
    border-radius: 20px; 
    box-shadow: var(--shadow); 
    border-bottom: 5px solid var(--primary-orange);
    flex-shrink: 0;
}

.review-card strong { color: #FFD700; font-size: 1.2rem; display: block; margin-bottom: 10px; }

.reviewer-info { 
    margin-top: 20px; 
    border-top: 1px solid #eee; 
    padding-top: 15px; 
}

.reviewer-info span { font-weight: 800; color: var(--primary-orange); display: block; }
.reviewer-info small { color: #999; font-style: italic; }

@keyframes scrollLoop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- 9. SUBMIT REVIEW --- */
#submit-review { background: var(--white); }

.form-container { 
    max-width: 850px; 
    margin: 0 auto; 
    background: var(--soft-orange); 
    padding: 45px; 
    border-radius: 25px; 
    border: 1px solid #ffe5d4; 
}

.input-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px; 
    margin-bottom: 20px; 
}

.input-group { display: flex; flex-direction: column; text-align: left; margin-bottom: 20px; }
.input-group label { font-weight: 700; color: var(--primary-orange); margin-bottom: 8px; font-size: 0.9rem; }
.input-group input, .input-group textarea { padding: 15px; border: 1px solid #ddd; border-radius: 10px; font-family: inherit; }

.btn-submit { 
    width: 100%; 
    padding: 18px; 
    background: var(--primary-orange); 
    color: white; 
    border: none; 
    border-radius: 10px; 
    font-weight: 800; 
    cursor: pointer; 
    text-transform: uppercase; 
    transition: 0.3s; 
}

.btn-submit:hover { background: var(--dark-orange); transform: scale(1.02); }

/* --- 10. FAQ (ACCORDION) --- */
#faq { background: var(--soft-orange); }
.faq-box { max-width: 850px; margin: 0 auto; padding: 0 20px; }
.faq-item { background: white; margin-bottom: 15px; border-radius: 12px; border: 1px solid #eee; overflow: hidden; }

.faq-question { 
    padding: 22px 30px; 
    display: flex; 
    justify-content: space-between; 
    cursor: pointer; 
    align-items: center; 
}

.faq-answer { 
    max-height: 0; 
    overflow: hidden; 
    transition: 0.4s ease-out; 
    background: #fffcf9; 
}

.faq-answer p { padding: 25px 30px; color: #555; border-top: 1px solid #f9f9f9; }
.faq-item.active { border-color: var(--primary-orange); }
.faq-item.active .faq-answer { max-height: 500px; }

/* --- 11. CONTACT VIP --- */
#contact { 
    background: linear-gradient(135deg, #233b7a 0%, #6587cb 100%); 
    color: white; 
    padding: 140px 0 100px; 
    position: relative; 
}

#contact h2 { color: white !important; }

.contact-container { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 25px;
}

.contact-card { 
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(15px); 
    padding: 40px 20px; 
    border-radius: 30px; 
    border: 1px solid rgba(255,255,255,0.3); 
    text-align: center; 
    transition: 0.4s; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-card:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.25); }

.icon-box img { width: 80px; height: 80px; margin-bottom: 15px; }

.btn-contact { 
    display: block; 
    padding: 12px; 
    background: white; 
    color: var(--primary-orange); 
    text-decoration: none; 
    border-radius: 50px; 
    font-weight: 800; 
    text-transform: uppercase;
}

/* Responsive Contact */
@media (max-width: 992px) { .contact-container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { 
    .contact-container { grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 0 15px; }
    .contact-card { padding: 25px 15px; border-radius: 20px; }
}

.wave-top { position: absolute; top: -1px; left: 0; width: 100%; line-height: 0; z-index: 1; }
.wave-top svg { display: block; width: 100%; height: 80px; fill: var(--soft-orange); }

/* --- 12. FOOTER --- */
footer { background: #111; color: #777; text-align: center; padding: 20px; font-size: 0.85rem; }