/* style/ththao.css */
:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --card-bg-color: #17191F;
    --bg-color: #0D0E12;
    --text-main-color: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange-color: #D96800;
}

.page-ththao {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Light text for dark body background */
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
}

.page-ththao__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(13, 14, 18, 0.8) 100%);
}

.page-ththao__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure flex container takes full width */
}

.page-ththao__hero-image-wrapper {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-ththao__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-ththao__main-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: var(--text-main-color);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-ththao__hero-description {
    font-size: 18px;
    color: rgba(255, 243, 230, 0.8);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-ththao__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 100%; /* Ensure button adapts to mobile */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-ththao__cta-button:hover {
    background: linear-gradient(180deg, var(--glow-color) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-ththao__section {
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.page-ththao__section-title {
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.page-ththao__text-block {
    font-size: 17px;
    color: rgba(255, 243, 230, 0.9);
    max-width: 900px;
    margin: 0 auto 25px auto;
    line-height: 1.7;
}

.page-ththao__text-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-ththao__text-link:hover {
    color: var(--glow-color);
    text-decoration: underline;
}

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

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

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

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

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

.page-ththao__card-image,
.page-ththao__feature-icon,
.page-ththao__step-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Enforce min size */
    min-width: 200px; /* Enforce min size */
}

.page-ththao__card-title,
.page-ththao__feature-title,
.page-ththao__step-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-ththao__card-text,
.page-ththao__feature-description,
.page-ththao__step-description {
    font-size: 16px;
    color: rgba(255, 243, 230, 0.85);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-ththao__btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    max-width: 100%; /* Ensure button adapts to mobile */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-ththao__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(255, 140, 26, 0.4);
}

.page-ththao__button-group {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* FAQ Styles */
details.page-ththao__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg-color);
}
details.page-ththao__faq-item summary.page-ththao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-ththao__faq-item summary.page-ththao__faq-question::-webkit-details-marker {
    display: none;
}
details.page-ththao__faq-item summary.page-ththao__faq-question:hover {
    background: rgba(255, 140, 26, 0.1);
}
.page-ththao__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main-color);
}
.page-ththao__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}
details.page-ththao__faq-item .page-ththao__faq-answer {
    padding: 0 25px 20px;
    background: rgba(255, 140, 26, 0.05);
    border-radius: 0 0 10px 10px;
    color: rgba(255, 243, 230, 0.8);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-ththao {
        font-size: 15px;
    }

    .page-ththao__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

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

    .page-ththao__main-title {
        font-size: 28px;
    }

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

    .page-ththao__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        width: 100% !important;
    }

    .page-ththao__section {
        padding: 50px 15px;
    }

    .page-ththao__section-title {
        font-size: 26px;
        margin-bottom: 25px;
    }

    .page-ththao__text-block {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .page-ththao__grid-container,
    .page-ththao__feature-grid,
    .page-ththao__promotion-grid,
    .page-ththao__safety-grid,
    .page-ththao__steps-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-ththao__card {
        padding: 20px;
    }

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

    .page-ththao__card-text,
    .page-ththao__feature-description,
    .page-ththao__step-description {
        font-size: 15px;
    }

    .page-ththao__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-ththao__button-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    details.page-ththao__faq-item summary.page-ththao__faq-question {
        padding: 15px;
    }
    .page-ththao__faq-qtext {
        font-size: 16px;
    }
    .page-ththao__faq-toggle {
        font-size: 24px;
        width: 24px;
    }
    details.page-ththao__faq-item .page-ththao__faq-answer {
        padding: 0 15px 15px;
    }

    /* Ensure all images are responsive */
    .page-ththao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .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;
    }
    .page-ththao__hero-section {
        padding-left: 15px;
        padding-right: 15px;
    }
}