:root {
    --color-primary: #113B7A;
    --color-secondary: #1D5FD1;
    --color-text-main: #F3F8FF;
    --color-text-secondary: #AFC4E8;
    --color-button-gradient-start: #2B73F6;
    --color-button-gradient-end: #1144A6;
    --color-card-bg: #10233F;
    --color-border: #244D84;
    --color-glow: #4FA8FF;
    --color-gold: #F2C14E;
    --color-divider: #1B3357;
    --color-deep-navy: #08162B; /* Assuming this is the body background from shared.css */
}

.page-the-thao {
    background-color: var(--color-deep-navy); /* Ensure consistency with body background */
    color: var(--color-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* General container styles */
.page-the-thao__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 20px 15px;
    box-sizing: border-box;
}

.page-the-thao__section-title {
    font-size: 2.8em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-gold); /* Using gold for main titles for better visibility on dark bg */
    line-height: 1.2;
}

.page-the-thao__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-text-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-tertiary {
    display: inline-block;
    padding: 14px 30px;
    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; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    max-width: 100%; /* Ensure responsiveness */
}

.page-the-thao__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-the-thao__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.page-the-thao__btn-secondary {
    background-color: transparent;
    color: var(--color-button-gradient-start);
    border: 2px solid var(--color-button-gradient-start);
}

.page-the-thao__btn-secondary:hover {
    background-color: var(--color-button-gradient-start);
    color: var(--color-text-main);
}

.page-the-thao__btn-tertiary {
    background-color: var(--color-primary);
    color: var(--color-text-main);
    border: none;
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-the-thao__btn-tertiary:hover {
    background-color: var(--color-secondary);
}

/* HERO Intro Section */
.page-the-thao__hero-intro-section {
    padding-top: 10px; /* Fixed header spacing */
    padding-bottom: 60px;
    background-color: var(--color-deep-navy);
}

.page-the-thao__hero-intro-section .page-the-thao__container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-the-thao__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    padding-right: 20px;
}

.page-the-thao__main-title {
    font-size: 3.5em;
    font-weight: 900;
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1.1;
}

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

.page-the-thao__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%; /* Ensure container width for button responsiveness */
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-the-thao__hero-image {
    flex: 1 1 40%;
    min-width: 300px;
    text-align: center;
}

.page-the-thao__hero-main-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    display: block;
}

/* Features Section */
.page-the-thao__features-section {
    padding: 80px 0;
    background-color: var(--color-card-bg);
}

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

.page-the-thao__feature-item {
    background-color: var(--color-deep-navy);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
}

.page-the-thao__icon-box-media {
    width: 240px;
    height: 240px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-gold);
    box-shadow: 0 0 15px var(--color-glow);
}

.page-the-thao__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%; /* Ensure image itself is round within the container */
}

.page-the-thao__feature-heading {
    font-size: 1.8em;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-the-thao__feature-text {
    color: var(--color-text-secondary);
    font-size: 1em;
}

/* Sports Categories Section */
.page-the-thao__sports-categories-section {
    padding: 80px 0;
    background-color: var(--color-deep-navy);
}

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

.page-the-thao__category-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-the-thao__category-img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-the-thao__category-heading {
    font-size: 1.6em;
    color: var(--color-gold);
    padding: 20px 20px 10px;
    font-weight: 700;
}

.page-the-thao__category-text {
    color: var(--color-text-secondary);
    padding: 0 20px 20px;
    flex-grow: 1; /* Pushes button to bottom */
}

.page-the-thao__category-card .page-the-thao__btn-tertiary {
    margin: 0 20px 20px;
    align-self: flex-start;
}

/* Guide Section */
.page-the-thao__guide-section {
    padding: 80px 0;
    background-color: var(--color-card-bg);
}

.page-the-thao__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-the-thao__guide-step-item {
    background-color: var(--color-deep-navy);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-the-thao__guide-step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    border-radius: 50%;
    font-size: 2em;
    font-weight: 900;
    color: var(--color-gold);
    margin-bottom: 20px;
    border: 3px solid var(--color-gold);
    box-shadow: 0 0 10px var(--color-glow);
}

.page-the-thao__guide-step-heading {
    font-size: 1.5em;
    color: var(--color-text-main);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-the-thao__guide-step-text {
    color: var(--color-text-secondary);
    font-size: 0.95em;
}

.page-the-thao__cta-bottom {
    text-align: center;
    margin-top: 20px;
}

/* Promo Section */
.page-the-thao__promo-section {
    padding: 80px 0;
    background-color: var(--color-deep-navy);
}

.page-the-thao__promo-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-the-thao__promo-text {
    flex: 1 1 50%;
    min-width: 300px;
}

.page-the-thao__promo-text p {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.page-the-thao__promo-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-the-thao__promo-text ul li {
    color: var(--color-text-main);
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-the-thao__promo-text ul li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--color-gold);
}

.page-the-thao__promo-image {
    flex: 1 1 40%;
    min-width: 300px;
    text-align: center;
}

.page-the-thao__promo-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    display: block;
}

/* FAQ Section */
.page-the-thao__faq-section {
    padding: 80px 0;
    background-color: var(--color-card-bg);
}

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

.page-the-thao__faq-item {
    background-color: var(--color-deep-navy);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-the-thao__faq-question:hover {
    filter: brightness(1.1);
}

.page-the-thao__faq-qtext {
    flex-grow: 1;
    padding-right: 15px;
}

.page-the-thao__faq-toggle {
    font-size: 1.5em;
    font-weight: 900;
    color: var(--color-gold);
    width: 30px;
    text-align: center;
    line-height: 1;
}

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

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
    content: '−';
}

.page-the-thao__faq-answer {
    padding: 20px;
    color: var(--color-text-secondary);
    font-size: 1em;
    border-top: none;
    background-color: var(--color-card-bg);
}

/* Final CTA Section */
.page-the-thao__cta-final-section {
    padding: 60px 0;
    background-color: var(--color-deep-navy);
}

.page-the-thao__cta-final-section .page-the-thao__container {
    text-align: center;
    background-color: var(--color-card-bg); /* Use card background for this container */
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* General image responsiveness */
.page-the-thao img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .page-the-thao__main-title {
        font-size: 3em;
    }
    .page-the-thao__section-title {
        font-size: 2.2em;
    }
    .page-the-thao__hero-intro-section .page-the-thao__container {
        flex-direction: column;
        text-align: center;
    }
    .page-the-thao__hero-content {
        padding-right: 0;
        text-align: center;
    }
    .page-the-thao__cta-buttons {
        justify-content: center;
    }
    .page-the-thao__promo-content {
        flex-direction: column;
        text-align: center;
    }
    .page-the-thao__promo-text ul {
        text-align: left;
    }
    .page-the-thao__promo-image, .page-the-thao__hero-image {
        order: -1; /* Image appears above text on smaller screens */
    }
}

@media (max-width: 768px) {
    /* HERO Intro Section - Mobile */
    .page-the-thao__hero-intro-section {
        padding-top: 10px !important; /* Specific instruction for fixed header spacing */
        padding-bottom: 30px;
    }
    .page-the-thao__hero-intro-section .page-the-thao__container {
        padding: 20px 15px;
    }
    .page-the-thao__main-title {
        font-size: 2.2em; /* Smaller font size for mobile H1 */
        margin-bottom: 15px;
    }
    .page-the-thao__intro-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-the-thao__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    /* Features Section - Mobile */
    .page-the-thao__features-section {
        padding: 40px 0;
    }
    .page-the-thao__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-the-thao__icon-box-media {
        width: 180px;
        height: 180px;
        margin-bottom: 20px;
    }
    .page-the-thao__feature-heading {
        font-size: 1.5em;
    }

    /* Sports Categories Section - Mobile */
    .page-the-thao__sports-categories-section {
        padding: 40px 0;
    }
    .page-the-thao__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-the-thao__category-img {
        
    }
    .page-the-thao__category-heading {
        font-size: 1.4em;
    }
    .page-the-thao__category-card .page-the-thao__btn-tertiary {
        width: calc(100% - 40px);
    }

    /* Guide Section - Mobile */
    .page-the-thao__guide-section {
        padding: 40px 0;
    }
    .page-the-thao__guide-step-item {
        padding: 20px;
    }
    .page-the-thao__guide-step-number {
        width: 50px;
        height: 50px;
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-the-thao__guide-step-heading {
        font-size: 1.3em;
    }

    /* Promo Section - Mobile */
    .page-the-thao__promo-section {
        padding: 40px 0;
    }
    .page-the-thao__promo-content {
        gap: 30px;
    }
    .page-the-thao__promo-text p,
    .page-the-thao__promo-text ul li {
        font-size: 0.95em;
    }

    /* FAQ Section - Mobile */
    .page-the-thao__faq-section {
        padding: 40px 0;
    }
    .page-the-thao__faq-question {
        padding: 15px;
        font-size: 1.1em;
    }
    .page-the-thao__faq-answer {
        padding: 15px;
        font-size: 0.95em;
    }

    /* Final CTA Section - Mobile */
    .page-the-thao__cta-final-section {
        padding: 30px 0;
    }
    .page-the-thao__cta-final-section .page-the-thao__container {
        padding: 30px 20px;
    }

    /* Universal image and container responsive styles for mobile */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-the-thao__container,
    .page-the-thao__feature-item,
    .page-the-thao__category-card,
    .page-the-thao__guide-step-item,
    .page-the-thao__promo-content,
    .page-the-thao__faq-item,
    .page-the-thao__cta-final-section .page-the-thao__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Specific for __icon-box-media img to remain square */
    .page-the-thao__icon-box-media img {
        height: 100% !important;
        object-fit: cover !important;
    }
}