/* style/ththao.css */

/* Custom Properties (Colors) */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color-page: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* Base styles for the page-ththao scope */
.page-ththao {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Assuming body background is dark, using light text */
    background-color: var(--background-color-page); /* Page specific background */
}

.page-ththao__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-ththao__section-title {
    font-size: clamp(2em, 3.5vw, 2.8em);
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.3);
}

.page-ththao__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-ththao__content-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    filter: none; /* Ensure no filter is applied */
}

/* Hero Section */
.page-ththao__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 600px; /* Minimum height for desktop */
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--background-color-page);
    overflow: hidden;
}

.page-ththao__hero-image-wrapper {
    width: 100%;
    position: relative;
    z-index: 1;
    order: 1; /* Image first */
}

.page-ththao__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 300px; /* Ensure hero image is not too small */
    filter: none; /* Ensure no filter is applied */
}

.page-ththao__hero-content-wrapper {
    position: relative;
    z-index: 2;
    order: 2; /* Content after image */
    padding: 40px 0;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: linear-gradient(0deg, var(--background-color-page) 0%, rgba(8, 22, 15, 0.8) 50%, rgba(8, 22, 15, 0.6) 100%);
}

.page-ththao__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 0 0 15px var(--glow-color);
}

.page-ththao__tagline {
    font-size: 1.3em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-ththao__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.page-ththao__btn-primary,
.page-ththao__btn-secondary,
.page-ththao__btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    box-sizing: border-box;
    max-width: 100%;
    text-align: center;
}

.page-ththao__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-ththao__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-ththao__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(17, 168, 78, 0.2);
}

.page-ththao__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(17, 168, 78, 0.4);
}

.page-ththao__btn-text {
    background: transparent;
    color: var(--gold-color);
    border: 1px solid var(--gold-color);
    padding: 8px 15px;
    font-size: 0.95em;
}

.page-ththao__btn-text:hover {
    background: var(--gold-color);
    color: var(--background-color-page);
}

/* Section common styles */
.page-ththao__intro-section,
.page-ththao__sports-section,
.page-ththao__features-section,
.page-ththao__guide-section,
.page-ththao__promotions-section,
.page-ththao__security-section,
.page-ththao__support-section,
.page-ththao__faq-section,
.page-ththao__conclusion-section {
    padding: 80px 0;
    position: relative;
    z-index: 1; /* Ensure sections are above any potential background elements */
}

.page-ththao__dark-section {
    background-color: var(--deep-green);
    color: var(--text-main);
}

.page-ththao__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: var(--text-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ththao__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-ththao__card-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-ththao__card-text {
    font-size: 0.95em;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Sports Grid */
.page-ththao__sports-grid,
.page-ththao__features-grid,
.page-ththao__promotions-grid,
.page-ththao__support-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Guide List */
.page-ththao__guide-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
    text-align: left;
}

.page-ththao__guide-list li {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
    position: relative;
    padding-left: 60px;
    color: var(--text-secondary);
}

.page-ththao__guide-list li:last-child {
    margin-bottom: 0;
}

.page-ththao__list-step {
    font-weight: bold;
    color: var(--gold-color);
    font-size: 1.1em;
    display: block;
    margin-bottom: 5px;
}

.page-ththao__guide-list li::before {
    content: attr(data-step);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: var(--text-main);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
}

.page-ththao__guide-list li:nth-child(1)::before { content: '1'; }
.page-ththao__guide-list li:nth-child(2)::before { content: '2'; }
.page-ththao__guide-list li:nth-child(3)::before { content: '3'; }
.page-ththao__guide-list li:nth-child(4)::before { content: '4'; }

/* FAQ Section */
.page-ththao__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-ththao__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-secondary);
}

.page-ththao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--text-main);
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--divider-color);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-ththao__faq-question:hover {
    background-color: var(--primary-color);
}

.page-ththao__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--gold-color);
    margin-left: 15px;
    line-height: 1;
}

.page-ththao__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--text-secondary);
    background-color: var(--card-bg);
}

.page-ththao__faq-item[open] .page-ththao__faq-question {
    border-bottom: 1px solid var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-ththao__hero-section {
        min-height: 500px;
    }
    .page-ththao__main-title {
        font-size: clamp(2em, 4vw, 3em);
    }
    .page-ththao__tagline {
        font-size: 1.1em;
    }
    .page-ththao__section-title {
        font-size: clamp(1.8em, 3vw, 2.5em);
    }
    .page-ththao__intro-section,
    .page-ththao__sports-section,
    .page-ththao__features-section,
    .page-ththao__guide-section,
    .page-ththao__promotions-section,
    .page-ththao__security-section,
    .page-ththao__support-section,
    .page-ththao__faq-section,
    .page-ththao__conclusion-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .page-ththao {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-ththao__container {
        padding: 0 15px;
    }
    .page-ththao__hero-section {
        min-height: auto;
        padding-bottom: 40px;
    }
    .page-ththao__hero-image-wrapper {
        order: 1;
    }
    .page-ththao__hero-content-wrapper {
        order: 2;
        padding: 30px 0;
    }
    .page-ththao__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
        margin-bottom: 10px;
    }
    .page-ththao__tagline {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-ththao__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%; /* Ensure button group takes full width */
    }
    .page-ththao__btn-primary,
    .page-ththao__btn-secondary,
    .page-ththao__btn-text {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-ththao__section-title {
        font-size: clamp(1.5em, 5vw, 2em);
        margin-bottom: 30px;
    }
    .page-ththao__text-block {
        font-size: 1em;
        text-align: left;
    }
    .page-ththao__sports-grid,
    .page-ththao__features-grid,
    .page-ththao__promotions-grid,
    .page-ththao__support-channels {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
        margin-bottom: 30px;
    }
    .page-ththao__card {
        padding: 20px;
    }
    .page-ththao__content-image {
        margin: 30px auto;
    }
    .page-ththao__guide-list {
        margin: 30px auto;
    }
    .page-ththao__guide-list li {
        padding: 15px 15px 15px 50px;
    }
    .page-ththao__guide-list li::before {
        width: 25px;
        height: 25px;
        font-size: 1em;
        left: 15px;
    }
    .page-ththao__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-ththao__faq-answer {
        padding: 15px 20px;
    }

    /* Image responsive enforcement */
    .page-ththao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-ththao__section,
    .page-ththao__card,
    .page-ththao__container,
    .page-ththao__hero-section,
    .page-ththao__hero-image-wrapper,
    .page-ththao__hero-content-wrapper,
    .page-ththao__cta-buttons,
    .page-ththao__sports-grid,
    .page-ththao__features-grid,
    .page-ththao__promotions-grid,
    .page-ththao__support-channels,
    .page-ththao__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }
    .page-ththao__hero-section {
        padding-top: 10px !important; /* body handles header offset */
    }
}