@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --brand-primary: #FF4136;
    --brand-secondary: #0A2357;
    --brand-accent: #FFD700;

    --primary-color: var(--brand-primary);
    --secondary-color: var(--brand-secondary);
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f4f6f9;
    --bg-white: #ffffff;
    
    --shadow-light: 0 4px 18px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.2);
    --border-color: #e0e0e0;
    --border-radius-sm: 5px;
    --border-radius-lg: 12px;
}

body.dark-mode {
    --brand-primary: #FF6B6B;
    --brand-secondary: #ae3c3c;
    --brand-accent: #FFD700;

    --primary-color: var(--brand-primary);
    --secondary-color: var(--brand-secondary);
    --text-color: #e2e8f0;
    --text-light: #a0aec0;
    --bg-light: #121212;
    --bg-white: #1e1e1e;
    
    --shadow-light: 0 4px 18px rgba(0, 0, 0, 0.7);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.9);
    --border-color: #333333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    background-color: var(--bg-light);
    color: var(--text-color);
    padding-top: 70px;
}

a {
    text-decoration: none;
    color: var(--brand-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.visually-hidden {
    display: none !important;
}

header {
    background: var(--bg-white);
    padding: 10px 20px;
    box-shadow: var(--shadow-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 70px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1; 
}

.header-logo img {
    width: 40px; 
    height: 40px;
    flex-shrink: 0;
}

.header-logo .site-title, 
.header-logo .long-title {
    font-size: 1.3rem;
    color: var(--brand-primary);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-hover);
    border-top: 1px solid var(--border-color);
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

nav ul li a {
    color: var(--text-color);
    padding: 12px 20px;
    display: block;
    font-weight: 600;
}

nav ul li a.active {
    background-color: var(--brand-primary);
    color: var(--bg-white);
}

nav ul li a:hover:not(.active) {
    color: var(--brand-primary);
    background-color: var(--bg-light);
}

#theme-toggle, #menu-toggle {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.4rem;
    padding: 8px 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
#theme-toggle:hover, #menu-toggle:hover {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}


.btn-group, .btn-group-center {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px auto 0;
    max-width: 90%;
}

.btn {
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 700;
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    box-shadow: var(--shadow-light);
    flex-grow: 1;
    max-width: 200px;
}

@media (max-width: 480px) {
    .btn-group, .btn-group-center {
        flex-direction: column;
        gap: 10px;
    }
    .btn {
        max-width: 100%;
    }
}


.btn-primary {
    background-color: var(--brand-primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #cc0000;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
}

.btn-outline:hover {
    background-color: var(--brand-primary);
    color: white;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}


main {
    padding: 30px 0;
}

section {
    margin-bottom: 40px;
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.content-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-align: center;
    margin-bottom: 25px;
}

.section-title-center {
    text-align: center !important;
    margin-bottom: 20px;
    color: var(--brand-secondary) !important;
}

.section-description-center {
    max-width: 700px;
    margin: 0 auto 2rem auto;
    text-align: center;
    color: var(--text-light);
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--brand-secondary);
    margin-bottom: 15px;
}

article p {
    margin-bottom: 15px;
    text-align: justify;
    color: var(--text-light);
}

.banner img, .banner-rtp img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    margin-bottom: 15px;
}

.table-container {
    max-width: 100%;
    margin: 0 auto 1.5rem;
    overflow-x: auto; 
    padding-bottom: 5px;
}
table {
    width: 100%;
    min-width: 450px; 
    border-collapse: collapse;
    margin-top: 15px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

table td {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

table tr td:first-child {
    font-weight: 600; 
    color: var(--brand-secondary); 
}

table tr:nth-child(even) {
    background-color: var(--bg-light);
}


.promo-list {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
}
.promo-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    padding: 0;
}

.promo-item {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.promo-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.promo-content {
    padding: 20px;
    text-align: center;
}

.promo-content p {
    margin-bottom: 20px;
    color: var(--text-light);
    text-align: center;
}


.rtp-section {
    text-align: center;
}

.rtp-summary {
    max-width: 650px;
    margin: 20px auto;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1rem;
}

.cara-pakai {
    margin-top: 40px;
    text-align: center;
    padding: 30px;
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.instruction-heading {
    color: var(--brand-primary) !important;
    font-size: 1.6rem !important;
}

.instruction-list {
    list-style-type: none;
    list-style-position: outside;
    padding-left: 0;
    line-height: 2.2;
    margin: 20px auto 0;
    text-align: left;
    max-width: 650px;
}

.instruction-list li {
    padding-left: 1.5em;
    position: relative;
    color: var(--text-light);
}

.instruction-list li::before {
    content: '⭐';
    position: absolute;
    left: 0;
    color: var(--brand-accent);
    font-size: 1em;
}

.instruction-list li strong {
    color: var(--brand-primary);
}

.disclaimer-note {
    margin-top: 30px;
    padding: 15px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius-sm);
    color: var(--text-light);
    font-size: 0.95rem;
}


footer {
    background-color: var(--brand-secondary);
    color: white;
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
    font-size: 0.9rem;
}

footer a {
    color: var(--brand-accent);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}
footer a:hover {
    color: white;
}


@media (min-width: 768px) {
    body {
        padding-top: 80px;
    }

    header {
        height: 80px;
        grid-template-columns: auto 1fr auto;
        gap: 20px;
    }

    .header-controls {
        order: 3; 
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 15px;
    }
    
    #menu-toggle {
        display: none; 
    }
    #theme-toggle {
        display: block; 
    }
    
    nav {
        order: 2;
        display: block !important;
        position: static;
        box-shadow: none;
        border-top: none;
        display: flex; 
        justify-content: flex-end; 
    }

    nav ul {
        flex-direction: row;
        padding: 0;
    }
    
    nav ul li a {
        padding: 10px 15px;
        border-radius: var(--border-radius-sm);
    }
    
    .header-logo {
        order: 1;
        flex-grow: 0;
    }
    .header-logo .long-title {
        display: block;
        font-size: 1.5rem;
    }
    .header-logo .site-title {
        display: none;
    }

    .btn-group, .btn-group-center {
        flex-direction: row;
        max-width: 450px;
    }
    .btn {
        flex-grow: 0;
    }
}

@media (min-width: 1024px) {
    .content-heading {
        font-size: 2.8rem;
    }
}


@media (max-width: 767px) {
    
    .table-container {
        overflow-x: hidden;
        padding: 0;
        margin: 0 auto 1.5rem; 
    }
    
    table {
        border: none;
        min-width: 100%;
        box-shadow: none; 
    }

    table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius-lg);
        overflow: hidden;
        box-shadow: var(--shadow-light);
        background-color: var(--bg-white); 
    }
    
    table td {
        display: block;
        border: none;
        padding: 10px 15px;
        position: relative;
        color: var(--text-color); 
    }
    
    table tr td:first-child { 
        display: none; 
    }

    table tr td:nth-child(2) { 
        display: block; 
        text-align: left !important; 
        position: relative;
        padding: 25px 15px 10px 15px; 
        border-top: 1px solid var(--border-color); 
        background-color: var(--bg-light); 
        font-size: 1.05rem;
        line-height: 1.5; 
    }
    
    table tr td:nth-child(2):before { 
        content: attr(data-label); 
        position: absolute;
        left: 15px;
        top: 8px;
        color: var(--brand-primary); 
        font-weight: 700;
        text-align: left;
        font-size: 0.95rem;
    }
    
    table tr:nth-child(even) {
        background-color: transparent;
    }
    
    .content-heading, .section-title-center {
        text-align: center !important; 
    }
}