/* style/the-thao.css */

:root {
    --page-the-thao-primary-color: #113B7A;
    --page-the-thao-secondary-color: #1D5FD1;
    --page-the-thao-card-bg: #10233F;
    --page-the-thao-text-main: #F3F8FF;
    --page-the-thao-text-secondary: #AFC4E8;
    --page-the-thao-border-color: #244D84;
    --page-the-thao-glow-color: #4FA8FF;
    --page-the-thao-gold-color: #F2C14E;
    --page-the-thao-divider-color: #1B3357;
    --page-the-thao-deep-navy: #08162B;
    --page-the-thao-button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --page-the-thao-dark-text: #333333; /* For light backgrounds */
    --page-the-thao-light-text: #F3F8FF; /* For dark backgrounds */
}

.page-the-thao {
    font-family: 'Arial', sans-serif;
    color: var(--page-the-thao-dark-text); /* Default for light body background */
    line-height: 1.6;
}

.page-the-thao__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

.page-the-thao__dark-section {
    background: var(--page-the-thao-deep-navy);
    color: var(--page-the-thao-light-text);
}

.page-the-thao__dark-bg {
    background: var(--page-the-thao-card-bg);
    color: var(--page-the-thao-light-text);
}

.page-the-thao__light-bg {
    background: #ffffff;
    color: var(--page-the-thao-dark-text);
}

.page-the-thao__section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--page-the-thao-text-main);
    text-shadow: 0 0 10px rgba(79, 168, 255, 0.3);
}

.page-the-thao__section-title--dark {
    color: var(--page-the-thao-dark-text);
    text-shadow: none;
}

.page-the-thao__text-block {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--page-the-thao-text-secondary);
}

.page-the-thao__text-block--dark {
    color: var(--page-the-thao-dark-text);
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-the-thao__btn-primary {
    background: var(--page-the-thao-button-gradient);
    color: var(--page-the-thao-text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(43, 115, 246, 0.3);
}

.page-the-thao__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 115, 246, 0.5);
}

.page-the-thao__btn-secondary {
    background: #ffffff;
    color: var(--page-the-thao-primary-color);
    border: 2px solid var(--page-the-thao-primary-color);
    box-shadow: 0 2px 10px rgba(17, 59, 122, 0.1);
}

.page-the-thao__btn-secondary:hover {
    background: var(--page-the-thao-primary-color);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(17, 59, 122, 0.3);
}

.page-the-thao__card {
    background: var(--page-the-thao-card-bg);
    color: var(--page-the-thao-text-main);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-the-thao-border-color);
}

.page-the-thao__card--dark-text {
    background: #ffffff;
    color: var(--page-the-thao-dark-text);
    border: 1px solid #e0e0e0;
}

/* Hero Section */
.page-the-thao__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden;
    text-align: center;
}

.page-the-thao__hero-image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

.page-the-thao__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
}

.page-the-thao__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-the-thao__hero-title {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 900;
    color: var(--page-the-thao-gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

.page-the-thao__hero-description {
    font-size: 18px;
    color: var(--page-the-thao-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__hero-cta {
    font-size: 20px;
    padding: 15px 40px;
}

/* Intro Section */
.page-the-thao__intro-section {
    padding: 60px 0;
}

/* Sports Types Section */
.page-the-thao__sports-types-section {
    padding: 60px 0;
}

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

.page-the-thao__sport-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-the-thao__sport-card-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-the-thao__sport-card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--page-the-thao-gold-color);
}

.page-the-thao__sport-card-description {
    font-size: 15px;
    color: var(--page-the-thao-dark-text);
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-the-thao__sport-card-cta {
    margin-top: auto;
    width: 100%;
}

/* Benefits Section */
.page-the-thao__benefits-section {
    padding: 60px 0;
}

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

.page-the-thao__benefit-item {
    text-align: center;
}

.page-the-thao__benefit-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-the-thao__benefit-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--page-the-thao-gold-color);
}

.page-the-thao__benefit-description {
    font-size: 15px;
    color: var(--page-the-thao-text-secondary);
}

/* How-To Section */
.page-the-thao__how-to-section {
    padding: 60px 0;
}

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

.page-the-thao__step-item {
    position: relative;
    text-align: center;
    padding-top: 50px;
}

.page-the-thao__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--page-the-thao-button-gradient);
    color: var(--page-the-thao-text-main);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    border: 3px solid var(--page-the-thao-border-color);
    box-shadow: 0 0 15px rgba(43, 115, 246, 0.5);
}

.page-the-thao__step-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-the-thao__step-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--page-the-thao-dark-text);
}

.page-the-thao__step-description {
    font-size: 15px;
    color: var(--page-the-thao-dark-text);
    margin-bottom: 20px;
}

.page-the-thao__step-cta {
    margin-top: auto;
    width: 100%;
}

/* Tips Section */
.page-the-thao__tips-section {
    padding: 60px 0;
}

.page-the-thao__tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

.page-the-thao__tips-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--page-the-thao-gold-color);
    margin-bottom: 10px;
}

.page-the-thao__tips-description {
    font-size: 15px;
    color: var(--page-the-thao-text-secondary);
}

/* Promotions Section */
.page-the-thao__promotions-section {
    padding: 60px 0;
}

.page-the-thao__promotion-card {
    margin-bottom: 30px;
    text-align: center;
}

.page-the-thao__promotion-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    margin: 0 auto 20px auto;
    display: block;
    object-fit: cover;
}

.page-the-thao__promotion-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--page-the-thao-dark-text);
}

.page-the-thao__promotion-description {
    font-size: 15px;
    color: var(--page-the-thao-dark-text);
    margin-bottom: 20px;
}

.page-the-thao__promotions-cta {
    margin-top: 20px;
    display: block;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-the-thao__faq-section {
    padding: 60px 0;
}

.page-the-thao__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-the-thao__faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--page-the-thao-border-color);
    background: var(--page-the-thao-card-bg);
    border-radius: 8px;
    overflow: hidden;
}

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--page-the-thao-text-main);
    cursor: pointer;
    background: var(--page-the-thao-primary-color);
    border-bottom: 1px solid var(--page-the-thao-divider-color);
}

.page-the-thao__faq-item[open] .page-the-thao__faq-question {
    border-bottom: 1px solid var(--page-the-thao-border-color);
}

.page-the-thao__faq-question::-webkit-details-marker,
.page-the-thao__faq-question::marker {
    display: none;
}

.page-the-thao__faq-qtext {
    flex-grow: 1;
}

.page-the-thao__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: var(--page-the-thao-gold-color);
}

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

.page-the-thao__faq-answer {
    padding: 15px 20px;
    font-size: 15px;
    color: var(--page-the-thao-text-secondary);
    background: var(--page-the-thao-card-bg);
}

.page-the-thao__faq-answer p {
    margin-bottom: 10px;
    color: var(--page-the-thao-text-secondary);
}

.page-the-thao__faq-download-btn,
.page-the-thao__faq-contact-btn {
    margin-top: 10px;
}

/* CTA Section */
.page-the-thao__cta-section {
    padding: 60px 0;
    text-align: center;
}

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

.page-the-thao__cta-button {
    font-size: 20px;
    padding: 15px 40px;
    margin-top: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-the-thao__hero-title {
        font-size: clamp(32px, 4.5vw, 50px);
    }
    .page-the-thao__section-title {
        font-size: clamp(26px, 3.5vw, 38px);
    }
    .page-the-thao__hero-image-wrapper {
        height: 500px;
    }
    .page-the-thao__hero-image {
        height: 100%;
    }
}

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

    .page-the-thao__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 40px;
    }

    .page-the-thao__hero-image-wrapper {
        height: 300px;
        margin-bottom: 20px;
    }

    .page-the-thao__hero-title {
        font-size: clamp(28px, 8vw, 40px);
        margin-bottom: 15px;
    }

    .page-the-thao__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-the-thao__hero-cta {
        font-size: 18px;
        padding: 12px 30px;
    }

    .page-the-thao__section-title {
        font-size: clamp(24px, 7vw, 32px);
        margin-bottom: 30px;
    }

    .page-the-thao__text-block {
        font-size: 15px;
    }

    /* General Image Responsive */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-the-thao__section,
    .page-the-thao__card,
    .page-the-thao__container,
    .page-the-thao__hero-section,
    .page-the-thao__intro-section,
    .page-the-thao__sports-types-section,
    .page-the-thao__benefits-section,
    .page-the-thao__how-to-section,
    .page-the-thao__tips-section,
    .page-the-thao__promotions-section,
    .page-the-thao__faq-section,
    .page-the-thao__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Button Responsive */
    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary,
    .page-the-thao a[class*="button"],
    .page-the-thao a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-the-thao__cta-buttons,
    .page-the-thao__button-group,
    .page-the-thao__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-the-thao__sports-grid,
    .page-the-thao__benefits-grid,
    .page-the-thao__steps-grid,
    .page-the-thao__tips-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-the-thao__sport-card-image,
    .page-the-thao__benefit-image,
    .page-the-thao__step-image,
    .page-the-thao__promotion-image {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .page-the-thao__step-item {
        padding-top: 40px;
    }

    .page-the-thao__step-number {
        top: -15px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .page-the-thao__faq-question {
        font-size: 16px;
        padding: 12px 15px;
    }

    .page-the-thao__faq-answer {
        font-size: 14px;
        padding: 12px 15px;
    }

    .page-the-thao__promotions-cta,
    .page-the-thao__cta-button {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .page-the-thao__hero-title {
        font-size: clamp(24px, 10vw, 36px);
    }
    .page-the-thao__section-title {
        font-size: clamp(22px, 8vw, 28px);
    }
    .page-the-thao__hero-description {
        font-size: 15px;
    }
    .page-the-thao__hero-cta {
        font-size: 16px;
        padding: 10px 20px;
    }
    .page-the-thao__sport-card-title,
    .page-the-thao__benefit-title,
    .page-the-thao__step-title,
    .page-the-thao__tips-title,
    .page-the-thao__promotion-title {
        font-size: 20px;
    }
    .page-the-thao__faq-question {
        font-size: 15px;
    }
    .page-the-thao__faq-answer {
        font-size: 14px;
    }
}