/* =========================================================
   TT88 – Style Sheet
   ========================================================= */

:root {
    --primary: #FFD700;
    --primary-dark: #E6BE00;
    --primary-light: #FFF3B0;
    --accent: #FFB300;
    --bg-dark: #1A1200;
    --bg-dark-2: #2A1E00;
    --text-light: #FFF9E6;
    --text-muted: #D4C58A;
    --border: #FFC107;
    --shadow: rgba(255, 215, 0, 0.35);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Bai Jamjuree", Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color .3s ease;
}

a:hover {
    color: var(--primary-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 14px;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 1.7rem;
}

h3 {
    font-size: 1.35rem;
}

p {
    margin-bottom: 14px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ HEADER ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: linear-gradient(90deg, #1A1200 0%, #2A1E00 100%);
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .6);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.logo img {
    height: 55px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.main-nav a {
    color: var(--text-light);
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 6px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--primary);
    transition: width .3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover {
    color: var(--primary);
}

.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 11px 26px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all .3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #1A1200;
    box-shadow: 0 0 20px var(--shadow);
    animation: glowPulse 2.5s ease-in-out infinite;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 35px var(--shadow);
    color: #1A1200;
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #1A1200;
    transform: translateY(-2px);
}

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 480px;
    background: linear-gradient(135deg, rgba(26, 18, 0, .85), rgba(42, 30, 0, .75)),
        url('https://pin-up81.com/wp-content/uploads/2026/09/tt88-hero-bg.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    border-bottom: 3px solid var(--primary);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, .15), transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 18px;
    text-shadow: 0 2px 20px rgba(255, 215, 0, .5);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-light);
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============ SECTION ============ */
.section {
    padding: 70px 20px;
}

.section-alt {
    background: linear-gradient(180deg, #1A1200 0%, #221800 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h1,
.section-title h2 {
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* ============ SLIDER ============ */
.slider-section {
    padding: 0;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.slider-container {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.slider-container::-webkit-scrollbar {
    display: none;
}

.slider-track {
    display: flex;
    gap: 0;
}

.slider-track img {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 997 / 343;
    object-fit: cover;
    scroll-snap-align: center;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* ============ GAME CARDS (GAMBAR KIRI, TEKS KANAN) ============ */
.promo-grid-vertical {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
    gap: 30px;
}

.game-card {
    text-align: left;
    padding: 25px;
    display: grid;
    grid-template-columns: 35% 1fr;
    grid-template-rows: auto auto 1fr;
    gap: 5px 25px;
    align-items: start;
    background: linear-gradient(160deg, #2A1E00 0%, #1A1200 100%);
    border: 2px solid var(--primary-dark);
    border-radius: 18px;
    transition: all .3s ease;
}

.game-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 8px 30px var(--shadow);
}

.game-card .game-image {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 100%;
    height: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--primary-dark);
    margin-bottom: 0;
}

.game-card h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 1.4rem;
}

.game-card .game-tag {
    grid-column: 2;
    grid-row: 2;
    margin: 0 0 10px 0;
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-card p {
    grid-column: 2;
    grid-row: 3;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: justify;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .game-card {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }

    .game-card .game-image {
        grid-column: 1;
        grid-row: 1;
        max-height: 180px;
    }

    .game-card h3 {
        grid-column: 1;
        grid-row: 2;
    }

    .game-card .game-tag {
        grid-column: 1;
        grid-row: 3;
    }

    .game-card p {
        grid-column: 1;
        grid-row: 4;
    }
}

/* ============ PROMO ============ */
.promo-category-title {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 50px;
    margin-bottom: 25px;
    border-left: 5px solid var(--primary);
    padding-left: 15px;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 100%);
    border-radius: 0 8px 8px 0;
    padding-top: 5px;
    padding-bottom: 5px;
}

.promo-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.promo-detail-card {
    background: linear-gradient(160deg, #2A1E00 0%, #1A1200 100%);
    border: 1px solid var(--primary-dark);
    border-radius: 12px;
    padding: 25px 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.promo-detail-card:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.15);
    transform: translateY(-3px);
}

.promo-detail-card h4 {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 5px;
    line-height: 1.3;
}

.promo-viet {
    display: block;
    font-size: 0.85rem;
    color: var(--accent);
    font-style: italic;
    margin-bottom: 12px;
}

.promo-detail-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .promo-details-grid {
        grid-template-columns: 1fr;
    }

    .promo-category-title {
        font-size: 1.3rem;
        margin-top: 35px;
    }
}

/* ============ DESC CONTENT (PANDUAN & LEGAL) ============ */
.desc-content {
    max-width: 950px;
    margin: 0 auto;
    background: linear-gradient(160deg, #2A1E00 0%, #1A1200 100%);
    border: 2px solid var(--primary-dark);
    border-radius: 18px;
    padding: 45px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .4);
}

.desc-content h3 {
    color: var(--primary);
    font-size: 1.35rem;
    margin-top: 35px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--primary-dark);
    padding-bottom: 10px;
}

.desc-content h3:first-child {
    margin-top: 0;
}

.desc-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.8;
    font-size: 0.95rem;
}

.desc-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.desc-content ul li {
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.7;
    text-align: justify;
    font-size: 0.95rem;
}

.desc-content ul li strong {
    color: var(--primary-light);
    font-size: 1rem;
    display: inline-block;
    margin-bottom: 3px;
}

@media (max-width: 768px) {
    .desc-content {
        padding: 30px 20px;
    }

    .desc-content h3 {
        font-size: 1.2rem;
        margin-top: 25px;
    }
}

/* ============ TESTIMONIAL ============ */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.testimonial-card {
    background: linear-gradient(160deg, #2A1E00 0%, #1A1200 100%);
    border: 1px solid var(--primary-dark);
    border-radius: 12px;
    padding: 30px 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 0;
    width: 4px;
    background-color: var(--primary);
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.15);
    transform: translateY(-3px);
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.4;
    font-style: italic;
}

.testimonial-card .stars {
    color: #FFD700;
    font-size: 1rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.4);
}

.testimonial-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: justify;
}

.testimonial-card .author {
    display: block;
    text-align: right;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: auto;
}

@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 25px 20px;
    }
}

/* ============ FAQ ============ */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #221800;
    border: 2px solid var(--primary-dark);
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
}

.faq-item summary {
    padding: 18px 22px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    list-style: none;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 22px;
    font-size: 1.4rem;
    color: var(--primary);
    transition: transform .3s ease;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item .faq-answer {
    padding: 0 22px 18px;
    color: var(--text-muted);
}

/* ============ CTA ============ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    color: #1A1200;
    text-align: center;
    padding: 60px 20px;
    border-radius: 20px;
    margin: 30px auto;
}

.cta-section h2 {
    color: #1A1200;
}

.cta-section p {
    color: #3A2A00;
    font-weight: 600;
    margin-bottom: 24px;
}

.cta-section .btn-primary {
    background: #1A1200;
    color: var(--primary);
    box-shadow: 0 0 25px rgba(0, 0, 0, .4);
}

.cta-section .btn-primary:hover {
    background: #000;
    color: var(--primary-light);
}

/* ============ FOOTER ============ */
.site-footer {
    background: #0F0A00;
    border-top: 3px solid var(--primary);
    padding: 50px 20px 20px;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.footer-col h4 {
    color: var(--primary);
    margin-bottom: 14px;
    font-size: 1.05rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: .95rem;
    transition: all .3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-col ul li a.active {
    color: var(--primary);
    font-weight: 700;
}

.footer-col ul li a.active::before {
    content: '▸ ';
    color: var(--primary);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #332600;
    padding-top: 30px;
    padding-bottom: 20px;
    text-align: center;
    font-size: .9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.footer-bottom-img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.footer-bottom strong {
    color: var(--primary);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .main-nav {
        display: none;
    }

    .header-inner {
        padding: 12px 16px;
    }

    h1,
    .section-title h1 {
        font-size: 1.7rem;
    }

    .section {
        padding: 50px 16px;
    }
}

@media (max-width: 549px) {
    .header-buttons .btn {
        padding: 9px 16px;
        font-size: 12px;
    }

    .logo img {
        height: 42px;
    }

    .hero {
        min-height: 380px;
        padding: 60px 16px;
    }
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px var(--shadow);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, .7);
    }
}