/* style/the-thao.css */

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

.page-the-thao {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for dark body background */
    background-color: var(--deep-navy); /* Assumed from shared.css body background */
}

.page-the-thao__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-the-thao__section-title {
    font-size: 3em;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-the-thao__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-the-thao__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* Always white text on dark button */
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-the-thao__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-the-thao__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: inset 0 0 0 0 var(--secondary-color);
}

.page-the-thao__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 2px var(--secondary-color), 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* HERO Section */
.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--deep-navy);
}

.page-the-thao__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 40px 16px;
    gap: 30px;
}

.page-the-thao__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: left;
}

.page-the-thao__main-title {
    font-size: clamp(2.5em, 4vw, 3.8em);
    font-weight: 800;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-the-thao__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

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

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

/* Intro Section */
.page-the-thao__intro-section {
    background-color: var(--deep-navy);
    padding: 60px 0;
}

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

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

.page-the-thao__icon-box-media {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 0 15px rgba(29, 95, 209, 0.5);
}

.page-the-thao__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.page-the-thao__feature-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-the-thao__feature-text {
    color: var(--text-secondary);
}

/* Betting Types Section */
.page-the-thao__betting-types-section {
    background-color: var(--deep-navy);
    padding: 60px 0;
}

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

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

.page-the-thao__type-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-the-thao__type-title {
    font-size: 1.6em;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-the-thao__type-text {
    color: var(--text-secondary);
}

/* Guide Section */
.page-the-thao__guide-section {
    background-color: var(--deep-navy);
    padding: 60px 0;
}

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

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

.page-the-thao__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--gold-color);
    margin-bottom: 15px;
    background: var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border: 2px solid var(--secondary-color);
}

.page-the-thao__step-title {
    font-size: 1.4em;
    color: var(--text-main);
    margin-bottom: 10px;
}

.page-the-thao__step-text {
    color: var(--text-secondary);
}

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

/* Tips Section */
.page-the-thao__tips-section {
    background-color: var(--deep-navy);
    padding: 60px 0;
}

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

.page-the-thao__tip-card {
    text-align: left;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
}

.page-the-thao__tip-title {
    font-size: 1.4em;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-the-thao__tip-text {
    color: var(--text-secondary);
    flex-grow: 1;
}

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

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

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

.page-the-thao__promo-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: left;
    padding: 0;
}

.page-the-thao__promo-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.page-the-thao__promo-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-the-thao__promo-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-the-thao__promo-text {
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Why Choose Section */
.page-the-thao__why-choose-section {
    background-color: var(--deep-navy);
    padding: 60px 0;
}

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

.page-the-thao__why-list li {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    color: var(--text-main);
    font-size: 1.1em;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.page-the-thao__list-icon {
    color: var(--gold-color);
    font-size: 1.4em;
    font-weight: bold;
    line-height: 1;
}

/* FAQ Section */
.page-the-thao__faq-section {
    background-color: var(--deep-navy);
    padding: 60px 0;
}

.page-the-thao__faq-list {
    margin-top: 40px;
    display: grid;
    gap: 15px;
}

.page-the-thao__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    color: var(--text-main);
    transition: background-color 0.3s ease;
    padding: 0;
}

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: var(--gold-color);
    list-style: none;
    position: relative;
    user-select: none; /* Prevent text selection on click */
}

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

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

.page-the-thao__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--secondary-color);
}

.page-the-thao__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.6;
}

.page-the-thao__faq-answer p {
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-the-thao__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-the-thao__hero-content {
        text-align: center;
    }

    .page-the-thao__cta-buttons {
        justify-content: center;
    }

    .page-the-thao__main-title {
        font-size: clamp(2em, 5vw, 3.5em);
    }

    .page-the-thao__section-title {
        font-size: clamp(2em, 4vw, 2.8em);
    }

    .page-the-thao__features-grid,
    .page-the-thao__types-grid,
    .page-the-thao__guide-steps,
    .page-the-thao__tips-grid,
    .page-the-thao__promo-cards,
    .page-the-thao__why-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

    .page-the-thao__container {
        padding: 30px 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-the-thao__hero-section {
        padding-top: 10px !important; /* Retain small padding, body handles offset */
        padding-bottom: 40px;
    }

    .page-the-thao__main-title {
        font-size: clamp(1.8em, 7vw, 2.8em);
        margin-bottom: 15px;
    }

    .page-the-thao__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-the-thao__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

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

    .page-the-thao__hero-image {
        order: -1; /* Image appears above content on mobile */
        margin-bottom: 20px;
    }

    .page-the-thao__hero-side-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* Module 1: Three-column intro with circle images */
    .page-the-thao__intro-section,
    .page-the-thao__betting-types-section,
    .page-the-thao__guide-section,
    .page-the-thao__tips-section,
    .page-the-thao__promo-section,
    .page-the-thao__why-choose-section,
    .page-the-thao__faq-section {
        padding: 40px 0;
    }

    .page-the-thao__features-grid,
    .page-the-thao__types-grid,
    .page-the-thao__guide-steps,
    .page-the-thao__tips-grid,
    .page-the-thao__promo-cards,
    .page-the-thao__why-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-the-thao__icon-box-media {
        width: 150px;
        height: 150px;
        border-width: 2px;
    }

    .page-the-thao__feature-title {
        font-size: 1.3em;
    }

    .page-the-thao__type-title {
        font-size: 1.4em;
    }

    .page-the-thao__step-number {
        font-size: 2em;
        width: 50px;
        height: 50px;
    }

    .page-the-thao__tip-title {
        font-size: 1.3em;
    }

    .page-the-thao__promo-card {
        border-radius: 8px;
    }

    .page-the-thao__promo-image {
        border-radius: 8px 8px 0 0;
    }

    /* Universal image and container adaptation for mobile */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-the-thao__section,
    .page-the-thao__card,
    .page-the-thao__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-the-thao__full-width-image {
        margin-top: 30px;
    }

    .page-the-thao__faq-question {
        padding: 18px 20px;
        font-size: 1.1em;
    }

    .page-the-thao__faq-answer {
        padding: 0 20px 18px;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .page-the-thao__main-title {
        font-size: clamp(1.6em, 8vw, 2.5em);
    }

    .page-the-thao__section-title {
        font-size: clamp(1.8em, 6vw, 2.2em);
    }

    .page-the-thao__icon-box-media {
        width: 120px;
        height: 120px;
    }

    .page-the-thao__card {
        padding: 20px;
    }
}