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

.page-ththao {
    font-family: 'Arial', sans-serif;
    background-color: var(--page-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Body padding-top is handled by shared.css */

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

.page-ththao__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0;
    padding-top: 10px; /* Small top padding */
    background-color: var(--deep-green); /* Fallback if image fails */
}

.page-ththao__hero-image-wrapper {
    width: 100%;
    height: auto;
    max-height: 600px; /* Limit hero image height */
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.page-ththao__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-ththao__hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Pull content slightly over the image for design */
    background-color: var(--card-bg); /* Dark background for text */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.page-ththao__main-title {
    color: var(--gold-color);
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px var(--glow-color);
}

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

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

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

.page-ththao__btn--primary {
    background: var(--button-gradient);
    color: var(--text-main);
    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(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-ththao__btn--secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-main);
}

.page-ththao__btn--outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-ththao__btn--outline:hover {
    background-color: var(--primary-color);
    color: var(--text-main);
    border-color: var(--primary-color);
}

.page-ththao__btn--large {
    padding: 18px 40px;
    font-size: 1.1em;
}

.page-ththao__section-title {
    color: var(--gold-color);
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
    text-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.page-ththao__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.page-ththao__section-text {
    font-size: 1.1em;
    color: var(--text-secondary);
    text-align: justify;
    margin-bottom: 20px;
}

.page-ththao__section-text strong {
    color: var(--gold-color);
}

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

.page-ththao__feature-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-ththao__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-ththao__feature-icon {
    width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.page-ththao__feature-title {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-ththao__feature-description {
    color: var(--text-secondary);
    font-size: 1em;
    line-height: 1.5;
}

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

.page-ththao__step-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-ththao__step-description {
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Popular Sports Section */
.page-ththao__sports-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-ththao__sport-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-ththao__sport-name {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: bold;
}

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

/* Types of Bets Section */
.page-ththao__bets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-ththao__bet-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

/* Mobile Section */
.page-ththao__mobile-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.page-ththao__mobile-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    object-fit: cover;
    min-width: 200px;
}

.page-ththao__mobile-text-content {
    flex: 1;
    min-width: 300px;
}

/* FAQ Section */
.page-ththao__faq-list {
    margin-top: 40px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.page-ththao__faq-item {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--divider-color);
}

.page-ththao__faq-item:last-child {
    border-bottom: none;
}

.page-ththao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    color: var(--text-main);
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

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

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

.page-ththao__faq-qtext {
    flex-grow: 1;
    color: var(--primary-color);
}

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

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

.page-ththao__faq-answer p {
    margin-bottom: 10px;
}

.page-ththao__faq-link {
    color: var(--gold-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

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

/* Security Section */
.page-ththao__security-section {
    background-color: var(--deep-green);
    padding: 80px 20px;
    text-align: center;
    color: var(--text-main);
}

.page-ththao__security-section .page-ththao__section-title {
    color: var(--gold-color);
}

.page-ththao__security-section .page-ththao__section-text {
    max-width: 900px;
    margin: 0 auto 20px auto;
    color: var(--text-secondary);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-ththao__hero-content {
        margin-top: -80px;
        padding: 30px 20px;
    }

    .page-ththao__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }

    .page-ththao__section-title {
        font-size: clamp(1.6em, 4vw, 2.2em);
    }

    .page-ththao__feature-card,
    .page-ththao__step-card,
    .page-ththao__sport-item,
    .page-ththao__bet-card {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .page-ththao__section {
        padding: 40px 15px;
    }

    .page-ththao__hero-content {
        margin-top: -60px;
        padding: 25px 15px;
        border-radius: 5px;
    }

    .page-ththao__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-ththao__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

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

    .page-ththao__btn {
        padding: 12px 20px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-ththao__btn--large {
        padding: 15px 30px;
        font-size: 1em;
    }

    .page-ththao__section-title {
        font-size: clamp(1.4em, 5vw, 2em);
        margin-bottom: 30px;
    }

    .page-ththao__section-text {
        font-size: 1em;
    }

    .page-ththao__features-grid,
    .page-ththao__steps-grid,
    .page-ththao__sports-list,
    .page-ththao__bets-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-ththao__feature-icon {
        width: 200px;
        height: auto;
    }

    .page-ththao__mobile-content {
        flex-direction: column;
        gap: 20px;
    }

    .page-ththao__mobile-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        min-width: 200px !important;
    }

    .page-ththao__mobile-text-content {
        min-width: unset;
        width: 100%;
        box-sizing: border-box;
    }

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

    .page-ththao__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95em;
    }

    .page-ththao__security-section {
        padding: 60px 15px;
    }

    /* Mobile image and video responsive rules */
    .page-ththao img {
      max-width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-ththao video,
    .page-ththao__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }

    /* All containing elements for images/videos/buttons */
    .page-ththao__hero-image-wrapper,
    .page-ththao__feature-card,
    .page-ththao__step-card,
    .page-ththao__sport-item,
    .page-ththao__bet-card,
    .page-ththao__mobile-content,
    .page-ththao__mobile-text-content,
    .page-ththao__faq-list,
    .page-ththao__faq-item,
    .page-ththao__cta-buttons,
    .page-ththao__hero-content,
    .page-ththao__section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Specific adjustment for hero content on mobile to avoid double padding */
    .page-ththao__hero-content {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* Ensure content area images are not too small */
.page-ththao__feature-icon,
.page-ththao__mobile-image {
    min-width: 200px;
    min-height: 200px;
}

/* No CSS filters for images */
.page-ththao img {
    filter: none;
}