.page-ththao {
    background-color: #FFFFFF; /* Default background */
    color: #333333; /* Default text color */
}

.page-ththao__hero-section {
    padding-top: 10px; /* Small top padding to prevent header overlap, body handles main offset */
    background-color: #017439; /* Main theme color for hero background */
    color: #FFFFFF;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-ththao__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit hero image height */
    overflow: hidden;
}

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

.page-ththao__hero-content {
    position: relative; /* Ensure content is above any pseudo-elements */
    z-index: 2;
    padding: 30px 20px 50px;
    max-width: 900px;
    margin: 0 auto;
}

.page-ththao__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #FFFFFF; /* White for main title */
    margin-bottom: 15px;
    /* font-size handled by browser defaults and responsive media queries, no fixed large size */
}

.page-ththao__hero-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #FFFFFF;
}

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

.page-ththao__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.page-ththao__button--register {
    background-color: #C30808; /* Register button color */
    color: #FFFF00; /* Register font color */
    border: 2px solid #C30808;
}

.page-ththao__button--register:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-ththao__button--login {
    background-color: #C30808; /* Login button color */
    color: #FFFF00; /* Login font color */
    border: 2px solid #C30808;
}

.page-ththao__button--login:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-ththao__button--primary {
    background-color: #017439;
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-ththao__button--primary:hover {
    background-color: #005a2b;
    border-color: #005a2b;
}

.page-ththao__button--small {
    padding: 8px 15px;
    font-size: 0.9em;
    background-color: #017439;
    color: #FFFFFF;
    border: 1px solid #017439;
}

.page-ththao__button--small:hover {
    background-color: #005a2b;
    border-color: #005a2b;
}

.page-ththao__button--promo {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #017439;
    color: #FFFFFF;
    border: 1px solid #017439;
}

.page-ththao__button--promo:hover {
    background-color: #005a2b;
    border-color: #005a2b;
}

.page-ththao__button--large {
    padding: 15px 30px;
    font-size: 1.2em;
    background-color: #017439;
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-ththao__button--large:hover {
    background-color: #005a2b;
    border-color: #005a2b;
}

.page-ththao__section-title {
    font-size: 2.2em;
    font-weight: bold;
    color: #017439; /* Main color for section titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
}

.page-ththao__section-title--cta {
    color: #FFFFFF;
}

.page-ththao__sports-categories,
.page-ththao__features-section,
.page-ththao__promotions-callout,
.page-ththao__cta-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-ththao__sports-categories {
    background-color: #FFFFFF;
}

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

.page-ththao__category-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-ththao__card-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 10px;
}

.page-ththao__card-description {
    font-size: 1em;
    color: #555555;
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-ththao__features-section {
    background-color: #f0f8f0; /* Light green tint */
}

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

.page-ththao__feature-item {
    text-align: center;
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-ththao__feature-icon {
    width: 200px; /* Min width 200px */
    height: 150px; /* Min height 200px, adjusted for aspect ratio */
    object-fit: contain;
    margin-bottom: 15px;
}

.page-ththao__feature-title {
    font-size: 1.3em;
    color: #017439;
    margin-bottom: 10px;
}

.page-ththao__feature-description {
    font-size: 0.95em;
    color: #666666;
}

.page-ththao__promotions-callout {
    background-color: #FFFFFF;
    text-align: center;
}

.page-ththao__promotions-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 40px;
}

.page-ththao__promotion-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
    margin-bottom: 40px;
}

.page-ththao__promotion-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-ththao__promotion-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

.page-ththao__promotion-text {
    font-size: 0.95em;
    color: #555555;
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-ththao__all-promos-button {
    margin-top: 20px;
}

.page-ththao__cta-section {
    background-color: #017439; /* Main color for CTA section */
    color: #FFFFFF;
    text-align: center;
    padding: 60px 20px;
}

.page-ththao__cta-description {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-ththao__main-title {
        font-size: 2.5em;
    }
    .page-ththao__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-ththao__main-title {
        font-size: 2em;
    }
    .page-ththao__hero-description {
        font-size: 1em;
    }
    .page-ththao__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-ththao__button {
        width: 100%;
        max-width: 250px;
    }
    .page-ththao__section-title {
        font-size: 1.8em;
        padding-top: 40px;
    }
    .page-ththao__category-grid,
    .page-ththao__features-grid,
    .page-ththao__promotion-cards {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    .page-ththao__card-image,
    .page-ththao__feature-icon,
    .page-ththao__promotion-image {
        max-width: 100%;
        height: auto;
    }
    .page-ththao__hero-section,
    .page-ththao__sports-categories,
    .page-ththao__features-section,
    .page-ththao__promotions-callout,
    .page-ththao__cta-section {
        padding: 20px 15px;
    }
    /* Ensure content area images do not cause overflow */
    .page-ththao img {
        max-width: 100%;
        height: auto;
    }
    .page-ththao__feature-icon {
        width: 100%; /* Ensure feature icons are responsive */
        height: auto;
        min-width: 200px; /* Enforce min width */
        min-height: 150px; /* Enforce min height */
    }
}

@media (max-width: 480px) {
    .page-ththao__main-title {
        font-size: 1.8em;
    }
    .page-ththao__section-title {
        font-size: 1.5em;
    }
    .page-ththao__hero-content {
        padding: 20px 15px 30px;
    }
}