/* style/ththao.css */

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

/* Base styles for the page content */
.page-ththao {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-ththao__section {
    padding: 60px 0;
    text-align: center;
}

.page-ththao__dark-bg {
    background-color: var(--color-card-bg);
}

.page-ththao__section-title {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--color-text-main);
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 1.2;
}

.page-ththao__section-description {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Hero Section */
.page-ththao__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
    overflow: hidden;
}

.page-ththao__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-ththao__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-ththao__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
    color: var(--color-text-main);
    padding: 40px 20px;
}

.page-ththao__main-title {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    color: var(--color-gold);
}

.page-ththao__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    color: var(--color-text-secondary);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

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

.page-ththao__btn-primary,
.page-ththao__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-ththao__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

.page-ththao__btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: none;
}

.page-ththao__btn-secondary:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* General content image */
.page-ththao__image-content {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 40px auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Grid Layout for Sports Types */
.page-ththao__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

.page-ththao__card:hover {
    transform: translateY(-5px);
}

.page-ththao__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

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

.page-ththao__card-text {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* List Features (Bet Types) */
.page-ththao__list-features {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

.page-ththao__list-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-ththao__list-title {
    font-size: 22px;
    color: var(--color-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-ththao__list-text {
    font-size: 16px;
    color: var(--color-text-secondary);
}

.page-ththao__cta-center {
    margin-top: 40px;
}

.page-ththao__btn-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s ease;
}

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

/* Advantages Section */
.page-ththao__grid-advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-ththao__advantage-item {
    text-align: center;
    padding: 30px 20px;
}

.page-ththao__advantage-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

/* Promotions Section */
.page-ththao__grid-promotions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-ththao__promotion-item {
    text-align: center;
    padding: 25px;
}

/* Guide Section (Steps) */
.page-ththao__steps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-ththao__step-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.page-ththao__step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: #ffffff;
    font-weight: bold;
    font-size: 22px;
    margin-bottom: 20px;
}

.page-ththao__step-title {
    font-size: 22px;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-ththao__step-text {
    font-size: 16px;
    color: var(--color-text-secondary);
    flex-grow: 1;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-ththao__faq-list {
    margin-top: 40px;
    text-align: left;
}

.page-ththao__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: var(--color-text-main);
}

.page-ththao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: bold;
    color: var(--color-text-main);
    cursor: pointer;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

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

.page-ththao__faq-item summary {
    list-style: none;
}

.page-ththao__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-primary);
}

.page-ththao__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-ththao__faq-item[open] .page-ththao__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding: 0 25px 20px 25px;
}

.page-ththao__faq-item.active .page-ththao__faq-answer {
    max-height: 500px;
    padding: 0 25px 20px 25px;
}

/* Final CTA Section */
.page-ththao__cta-final-section {
    padding: 80px 0;
}

.page-ththao__cta-final-content {
    max-width: 800px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-ththao__section-title {
        font-size: clamp(24px, 5vw, 38px);
    }

    .page-ththao__hero-description,
    .page-ththao__section-description {
        font-size: 17px;
    }
}

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

    .page-ththao__main-title {
        font-size: clamp(30px, 6vw, 48px);
    }

    .page-ththao__hero-description {
        font-size: 18px;
    }

    .page-ththao__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-ththao__btn-primary,
    .page-ththao__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
    }

    .page-ththao__section {
        padding: 40px 0;
    }

    .page-ththao__container {
        padding: 0 15px;
    }

    .page-ththao__section-title {
        font-size: clamp(22px, 6vw, 36px);
    }

    .page-ththao__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-ththao__grid-layout,
    .page-ththao__grid-advantages,
    .page-ththao__grid-promotions,
    .page-ththao__steps-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-ththao__card,
    .page-ththao__list-item,
    .page-ththao__step-item,
    .page-ththao__faq-item {
        padding: 20px;
    }

    .page-ththao__card-title,
    .page-ththao__list-title,
    .page-ththao__step-title {
        font-size: 20px;
    }

    .page-ththao__card-text,
    .page-ththao__list-text,
    .page-ththao__step-text,
    .page-ththao__faq-question,
    .page-ththao__faq-answer p {
        font-size: 15px;
    }

    /* Images responsive */
    .page-ththao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Ensure content containers handle padding for images correctly */
    .page-ththao__section,
    .page-ththao__card,
    .page-ththao__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Specific override for hero content padding if needed */
    .page-ththao__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ specific for mobile */
    .page-ththao__faq-question {
        padding: 15px 20px;
    }

    .page-ththao__faq-answer {
        padding: 0 20px 15px 20px;
    }

    .page-ththao__faq-item[open] .page-ththao__faq-answer {
        padding: 0 20px 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-ththao__main-title {
        font-size: clamp(28px, 7vw, 40px);
    }

    .page-ththao__hero-description {
        font-size: 16px;
    }

    .page-ththao__btn-primary,
    .page-ththao__btn-secondary {
        font-size: 15px;
        padding: 10px 15px;
    }

    .page-ththao__section-title {
        font-size: clamp(20px, 7vw, 32px);
    }
}