/* style/ththao.css */

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

.page-ththao {
    background-color: var(--color-background);
    color: var(--color-text-main);
    font-family: 'Arial', sans-serif;
}

.page-ththao__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small decorative 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;
    overflow: hidden;
}

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

.page-ththao__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
    color: var(--color-text-main);
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
    border-radius: 10px;
}

.page-ththao__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-gold);
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-ththao__hero-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--color-text-secondary);
}

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

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

.page-ththao__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main);
    border: none;
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-ththao__btn-primary:hover {
    background: linear-gradient(180deg, var(--color-button-gradient-end) 0%, var(--color-button-gradient-start) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
}

.page-ththao__btn-secondary {
    background: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
}

.page-ththao__btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-background);
    transform: translateY(-3px);
}

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

.page-ththao__intro-section, 
.page-ththao__odds-section, 
.page-ththao__promotions-section, 
.page-ththao__guide-section {
    background-color: var(--color-background);
    color: var(--color-text-main);
    padding: 60px 0;
}

.page-ththao__sports-overview, 
.page-ththao__interface-section, 
.page-ththao__security-section, 
.page-ththao__faq-section {
    background-color: var(--color-card-bg);
    color: var(--color-text-main);
    padding: 60px 0;
}

.page-ththao__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-gold);
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-ththao__text-block {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
    text-align: justify;
}

.page-ththao__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-ththao__card {
    background-color: var(--color-deep-green);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    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;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-primary);
}

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

.page-ththao__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin: 30px 0;
}

.page-ththao__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-ththao__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-ththao__text-content {
    flex: 1;
}

.page-ththao__image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-ththao__image-responsive {
    width: 100%;
    height: auto;
    max-width: 600px; /* Limit max width for content images */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-ththao__promo-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-ththao__promo-item {
    background-color: var(--color-deep-green);
    border-left: 5px solid var(--color-primary);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--color-text-main);
}

.page-ththao__promo-item strong {
    color: var(--color-gold);
}

.page-ththao__button-center {
    text-align: center;
    margin-top: 40px;
}

.page-ththao__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-ththao__guide-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 20px;
}

.page-ththao__guide-number {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
    flex-shrink: 0;
}

.page-ththao__guide-text {
    flex-grow: 1;
}

.page-ththao__guide-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.page-ththao__guide-text p {
    font-size: 1em;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.page-ththao__faq-list {
    margin-top: 40px;
}

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

.page-ththao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    background-color: var(--color-deep-green);
    user-select: none; /* Prevent text selection on click */
    list-style: none; /* Hide default details marker */
}

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

.page-ththao__faq-qtext {
    flex-grow: 1;
}

.page-ththao__faq-toggle {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--color-gold);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.page-ththao__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-ththao__content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .page-ththao__content-wrapper--reverse {
        flex-direction: column;
    }

    .page-ththao__image-content {
        order: -1; /* Image appears above text on smaller screens */
        margin-bottom: 30px;
    }

    .page-ththao__section-title {
        font-size: 2.2em;
    }
}

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

    .page-ththao__main-title {
        font-size: 2.5em;
    }

    .page-ththao__hero-description {
        font-size: 1em;
    }

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

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

    .page-ththao__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-ththao__intro-section, 
    .page-ththao__sports-overview, 
    .page-ththao__odds-section, 
    .page-ththao__interface-section, 
    .page-ththao__promotions-section, 
    .page-ththao__security-section, 
    .page-ththao__guide-section, 
    .page-ththao__faq-section {
        padding: 40px 0;
    }

    .page-ththao__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-ththao__text-block {
        font-size: 0.95em;
    }

    .page-ththao__grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-ththao__card-title {
        font-size: 1.3em;
    }

    /* Mobile image responsive */
    .page-ththao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Ensure containers with images are responsive */
    .page-ththao__hero-section,
    .page-ththao__sports-overview,
    .page-ththao__odds-section,
    .page-ththao__promotions-section,
    .page-ththao__security-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-ththao__image-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-ththao__guide-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-ththao__guide-number {
        margin-bottom: 10px;
    }

    .page-ththao__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

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

@media (max-width: 480px) {
    .page-ththao__main-title {
        font-size: 2em;
    }

    .page-ththao__section-title {
        font-size: 1.6em;
    }
}