/* style/the-thao.css */

:root {
    --i888-primary: #F2C14E;
    --i888-secondary: #FFD36B;
    --i888-card-bg: #111111;
    --i888-bg: #0A0A0A;
    --i888-text-main: #FFF6D6;
    --i888-border: #3A2A12;
    --i888-glow: #FFD36B;
    --i888-btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-the-thao {
    background-color: var(--i888-bg);
    color: var(--i888-text-main);
    font-family: Arial, sans-serif;
}

.page-the-thao a {
    color: var(--i888-primary);
    text-decoration: none;
}

.page-the-thao a:hover {
    text-decoration: underline;
}

/* Hero Section */
.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
    padding-bottom: 60px;
    background-color: var(--i888-bg);
}

.page-the-thao__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 20px 15px;
}

.page-the-thao__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    color: var(--i888-text-main);
}

.page-the-thao__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--i888-primary);
}

.page-the-thao__hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.page-the-thao__hero-cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-the-thao__hero-image {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: center;
}

.page-the-thao__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(242, 193, 78, 0.3);
}

/* Buttons */
.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-small,
.page-the-thao__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-the-thao__btn-primary {
    background: var(--i888-btn-gradient);
    color: #000000; /* Dark text for light gradient */
    border: none;
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-the-thao__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

.page-the-thao__btn-secondary {
    background: transparent;
    color: var(--i888-primary);
    border: 2px solid var(--i888-primary);
}

.page-the-thao__btn-secondary:hover {
    background-color: var(--i888-primary);
    color: #000000;
}

.page-the-thao__btn-small {
    background: var(--i888-btn-gradient);
    color: #000000;
    border: none;
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 5px;
}

.page-the-thao__btn-small:hover {
    opacity: 0.9;
}

.page-the-thao__btn-link {
    background: none;
    color: var(--i888-primary);
    border: none;
    padding: 0;
    text-decoration: underline;
}

.page-the-thao__btn-link:hover {
    color: var(--i888-secondary);
}

/* Content Area */
.page-the-thao__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
    line-height: 1.7;
}

.page-the-thao__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--i888-primary);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-the-thao__text-block {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--i888-text-main);
}

/* Game Tabs Section */
.page-the-thao__game-tabs-section {
    background-color: var(--i888-bg);
    padding-bottom: 60px;
}

.page-the-thao__tab-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--i888-border);
    padding-bottom: 15px;
}

.page-the-thao__tab-button {
    background: transparent;
    border: 1px solid var(--i888-border);
    color: var(--i888-text-main);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.page-the-thao__tab-button:hover,
.page-the-thao__tab-button.is-active {
    background: var(--i888-btn-gradient);
    color: #000000;
    border-color: transparent;
}

.page-the-thao__game-panel {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.page-the-thao__game-panel.is-active {
    display: block;
}

.page-the-thao__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-the-thao__game-card {
    background-color: var(--i888-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 20px;
    border: 1px solid var(--i888-border);
}

.page-the-thao__game-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
}

.page-the-thao__game-card-title {
    font-size: 1.3rem;
    color: var(--i888-primary);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-the-thao__game-card-description {
    font-size: 0.95rem;
    color: var(--i888-text-main);
    margin-bottom: 20px;
    padding: 0 15px;
}

/* Promo Section */
.page-the-thao__promo-section {
    background-color: var(--i888-bg);
    padding-bottom: 60px;
}

.page-the-thao__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-the-thao__promo-card {
    background-color: var(--i888-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 20px;
    border: 1px solid var(--i888-border);
}

.page-the-thao__promo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 15px;
}

.page-the-thao__promo-card-title {
    font-size: 1.4rem;
    color: var(--i888-primary);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-the-thao__promo-card-description {
    font-size: 0.95rem;
    color: var(--i888-text-main);
    margin-bottom: 20px;
    padding: 0 15px;
}

.page-the-thao__promo-footer {
    text-align: center;
}

/* Guide Section */
.page-the-thao__guide-section {
    background-color: var(--i888-bg);
    padding-bottom: 60px;
}

.page-the-thao__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-the-thao__guide-step {
    background-color: var(--i888-card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--i888-border);
}

.page-the-thao__step-icon {
    width: 60px;
    height: 60px;
    background: var(--i888-btn-gradient);
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 0 15px rgba(255, 211, 107, 0.5);
}

.page-the-thao__step-title {
    font-size: 1.5rem;
    color: var(--i888-primary);
    margin-bottom: 15px;
}

.page-the-thao__step-description {
    font-size: 1rem;
    color: var(--i888-text-main);
    margin-bottom: 20px;
}

.page-the-thao__guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-the-thao__faq-section {
    background-color: var(--i888-bg);
    padding-bottom: 60px;
}

.page-the-thao__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-the-thao__faq-item {
    background-color: var(--i888-card-bg);
    border: 1px solid var(--i888-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--i888-primary);
    cursor: pointer;
    list-style: none;
}

.page-the-thao__faq-question::-webkit-details-marker {
    display: none;
}

.page-the-thao__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
    transform: rotate(45deg);
}

.page-the-thao__faq-answer {
    padding: 0 20px 20px;
    font-size: 1rem;
    color: var(--i888-text-main);
    line-height: 1.6;
}

/* General Image Styling */
.page-the-thao img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-the-thao__hero-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .page-the-thao__hero-content,
    .page-the-thao__hero-image {
        flex: 1 1 100%;
    }

    .page-the-thao__hero-cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-the-thao__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

    .page-the-thao__hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .page-the-thao__hero-description {
        font-size: 0.95rem;
    }

    .page-the-thao__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary,
    .page-the-thao a[class*="button"],
    .page-the-thao a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-the-thao__hero-cta-buttons,
    .page-the-thao__promo-footer {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-the-thao__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 30px;
    }

    .page-the-thao__content-area {
        padding: 30px 15px;
    }

    .page-the-thao__tab-nav {
        flex-direction: column;
        gap: 10px;
    }

    .page-the-thao__tab-button {
        width: 100%;
    }

    .page-the-thao__game-grid,
    .page-the-thao__promo-grid,
    .page-the-thao__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-the-thao__game-card-image,
    .page-the-thao__promo-image {
        height: 180px;
    }

    /* Universal image responsive rule for content images */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-the-thao__intro-section,
    .page-the-thao__game-tabs-section,
    .page-the-thao__promo-section,
    .page-the-thao__guide-section,
    .page-the-thao__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-the-thao__faq-question {
        font-size: 1rem;
        padding: 15px;
    }

    .page-the-thao__faq-answer {
        padding: 0 15px 15px;
        font-size: 0.95rem;
    }
}