/* style/ththao.css */

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

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

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

.page-ththao__dark-bg {
    background-color: var(--page-ththao-bg);
    color: var(--page-ththao-text-main);
}

.page-ththao__light-bg {
    background-color: #f8f8f8; /* A light background for contrast */
    color: #333333; /* Dark text for light background */
}

.page-ththao__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--page-ththao-gold);
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.page-ththao__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--page-ththao-text-secondary);
}

/* Buttons */
.page-ththao__btn-primary,
.page-ththao__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box;
}

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

.page-ththao__btn-secondary:hover {
    background-color: var(--page-ththao-gold);
    color: var(--page-ththao-bg);
}

.page-ththao__center-button {
    display: block;
    margin: 40px auto;
    max-width: 300px;
}

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

.page-ththao__hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.page-ththao__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    min-width: 200px;
    min-height: 200px;
}

.page-ththao__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Slightly transparent background for readability */
    border-radius: 10px;
    margin-top: -80px; /* Pull content up slightly over image for visual flow */
}

.page-ththao__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 without fixed large size */
    font-weight: 800;
    color: var(--page-ththao-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-ththao__hero-description {
    font-size: 1.2em;
    color: var(--page-ththao-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Introduction Section */
.page-ththao__introduction-section,
.page-ththao__getting-started,
.page-ththao__security-section {
    padding: 80px 0;
}

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

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

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

.page-ththao__feature-icon {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-ththao__card-description {
    color: var(--page-ththao-text-secondary);
    font-size: 1em;
}

/* Sports Types Section */
.page-ththao__sports-types {
    padding: 80px 0;
}

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

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

.page-ththao__sport-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

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

.page-ththao__step-card {
    background-color: var(--page-ththao-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-ththao-border);
}

.page-ththao__step-number {
    font-size: 3em;
    font-weight: 800;
    color: var(--page-ththao-gold);
    margin-bottom: 15px;
    line-height: 1;
}

/* Promotions Section */
.page-ththao__promotions-section {
    padding: 80px 0;
}

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

.page-ththao__promo-card {
    background-color: var(--page-ththao-card-bg);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-ththao-border);
}

.page-ththao__promo-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Security Section */
.page-ththao__security-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 40px auto;
    color: #333333; /* Dark text for light background */
}

.page-ththao__security-list li {
    background-color: #ffffff;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    font-size: 1.1em;
    color: #333333;
}

.page-ththao__list-icon {
    color: var(--page-ththao-gold);
    font-size: 1.5em;
    margin-right: 15px;
    line-height: 1;
}

/* Mobile Section */
.page-ththao__mobile-section {
    padding: 80px 0;
}

.page-ththao__mobile-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

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

.page-ththao__mobile-text {
    max-width: 500px;
    text-align: left;
}

.page-ththao__mobile-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-ththao__mobile-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: var(--page-ththao-text-secondary);
}

/* FAQ Section */
.page-ththao__faq-section {
    padding: 80px 0;
}

.page-ththao__faq-list {
    max-width: 900px;
    margin: 40px auto;
}

.page-ththao__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333; /* Dark text for light background */
}

.page-ththao__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    background-color: #f5f5f5;
    color: #333333;
}

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

.page-ththao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.page-ththao__faq-answer {
    padding: 20px;
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
}

/* Call to Action Section */
.page-ththao__cta-section {
    padding: 80px 0;
    text-align: center;
}

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

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

    .page-ththao__hero-content {
        margin-top: -60px;
    }

    .page-ththao__feature-grid,
    .page-ththao__sports-grid,
    .page-ththao__steps-grid,
    .page-ththao__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-ththao {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-ththao__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-ththao__hero-section {
        min-height: 400px;
        padding: 40px 15px;
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-ththao__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-ththao__hero-content {
        margin-top: -40px;
        padding: 15px;
    }

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

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

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

    .page-ththao__text-block {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-ththao__btn-primary,
    .page-ththao__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-ththao__center-button {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .page-ththao__feature-grid,
    .page-ththao__sports-grid,
    .page-ththao__steps-grid,
    .page-ththao__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-ththao__mobile-text {
        text-align: center;
    }
    
    .page-ththao__mobile-list {
        text-align: left;
    }

    /* Images and Videos responsiveness */
    .page-ththao img {
        max-width: 100% !important;
        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;
    }

    .page-ththao__section,
    .page-ththao__card,
    .page-ththao__container,
    .page-ththao__video-section,
    .page-ththao__video-container,
    .page-ththao__video-wrapper,
    .page-ththao__cta-buttons,
    .page-ththao__button-group,
    .page-ththao__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-ththao__feature-icon,
    .page-ththao__sport-image,
    .page-ththao__promo-image,
    .page-ththao__mobile-image {
        min-width: unset !important;
        min-height: unset !important;
    }

    .page-ththao__faq-item summary {
        font-size: 1.1em;
        padding: 15px;
    }

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

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