/* style/the-thao.css */

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

.page-the-thao {
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-top: 10px; /* Small top padding, shared.css handles body padding-top */
}

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

.page-the-thao__main-visual-section {
    padding-bottom: 60px;
    background-color: var(--color-bg-body);
}

.page-the-thao__main-visual-container {
    display: flex;
    flex-direction: column; /* Default to column for image-then-text */
    gap: 40px;
    align-items: center;
    text-align: center;
    padding-top: 20px;
}

.page-the-thao__main-visual-image {
    width: 100%;
    max-width: 1000px; /* Adjust max-width for visual balance */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-the-thao__main-visual-image img {
    width: 100%;
    height: auto;
    display: block;
}

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

.page-the-thao__main-title {
    font-size: 3.2em;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}

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

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

.page-the-thao__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-the-thao__btn--primary {
    background: linear-gradient(180deg, var(--color-secondary) 0%, var(--color-deep-orange) 100%);
    color: #ffffff;
    border: 2px solid var(--color-glow);
    box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-the-thao__btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
}

.page-the-thao__btn--secondary {
    background-color: var(--color-bg-card);
    color: var(--color-secondary);
    border: 2px solid var(--color-border);
}

.page-the-thao__btn--secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-bg-body);
    transform: translateY(-3px);
}

.page-the-thao__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-the-thao__intro-section,
.page-the-thao__betting-types-section,
.page-the-thao__available-sports-section,
.page-the-thao__benefits-section,
.page-the-thao__guide-section,
.page-the-thao__faq-section,
.page-the-thao__call-to-action-section {
    padding: 60px 0;
}

.page-the-thao__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--color-text-main);
}

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

.page-the-thao__card,
.page-the-thao__sport-card,
.page-the-thao__benefit-item {
    background-color: var(--color-bg-card);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--color-border);
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
}

.page-the-thao__card:hover,
.page-the-thao__sport-card:hover,
.page-the-thao__benefit-item:hover {
    transform: translateY(-5px);
}

.page-the-thao__card-image,
.page-the-thao__sport-image,
.page-the-thao__benefit-icon {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
    object-fit: cover;
    width: 100%; /* Ensure images fill card width */
}

.page-the-thao__benefit-icon {
    max-width: 150px;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__card-title,
.page-the-thao__sport-title,
.page-the-thao__benefit-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 10px;
    flex-grow: 1; /* Allow title to take available space */
}

.page-the-thao__card-text,
.page-the-thao__sport-description,
.page-the-thao__benefit-description {
    font-size: 1em;
    color: var(--color-text-main);
    line-height: 1.5;
}

.page-the-thao__button-center {
    text-align: center;
    margin-top: 40px;
}

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

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

.page-the-thao__guide-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(180deg, var(--color-secondary) 0%, var(--color-deep-orange) 100%);
    color: #ffffff;
    font-size: 2em;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(255, 165, 58, 0.5);
}

.page-the-thao__guide-title {
    font-size: 1.5em;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.page-the-thao__guide-description {
    font-size: 1em;
    color: var(--color-text-main);
}

.page-the-thao__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--color-secondary);
    cursor: pointer;
    list-style: none; /* Remove default marker */
}

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

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

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

.page-the-thao__call-to-action-section {
    background-color: var(--color-primary);
    padding: 80px 0;
    text-align: center;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-the-thao__call-to-action-section .page-the-thao__section-title {
    color: #ffffff;
    text-shadow: none;
    margin-bottom: 25px;
}

.page-the-thao__call-to-action-section .page-the-thao__text-block {
    color: #fff3e6;
    margin-bottom: 40px;
}

.page-the-thao__btn--large {
    padding: 18px 40px;
    font-size: 1.3em;
    min-width: 280px;
}

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
    .page-the-thao__main-title {
        font-size: 2.8em;
    }

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

    .page-the-thao__cta-buttons {
        gap: 15px;
    }

    .page-the-thao__btn {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-the-thao__btn--large {
        padding: 15px 30px;
        font-size: 1.1em;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .page-the-thao {
        padding-top: 10px !important;
    }

    .page-the-thao__container {
        padding: 15px;
    }

    .page-the-thao__main-visual-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding-top: 15px;
    }

    .page-the-thao__main-title {
        font-size: 2.2em !important;
        margin-bottom: 15px;
    }

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

    .page-the-thao__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-the-thao__btn,
    .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__btn--large {
        min-width: unset;
    }

    .page-the-thao__section-title {
        font-size: 1.8em !important;
        margin-bottom: 30px;
    }

    .page-the-thao__intro-section,
    .page-the-thao__betting-types-section,
    .page-the-thao__available-sports-section,
    .page-the-thao__benefits-section,
    .page-the-thao__guide-section,
    .page-the-thao__faq-section,
    .page-the-thao__call-to-action-section {
        padding: 40px 0;
    }

    .page-the-thao__text-block {
        font-size: 0.95em;
    }

    .page-the-thao__grid-layout,
    .page-the-thao__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-the-thao__card,
    .page-the-thao__sport-card,
    .page-the-thao__benefit-item {
        padding: 20px;
    }

    .page-the-thao__card-image,
    .page-the-thao__sport-image,
    .page-the-thao__benefit-icon,
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    .page-the-thao__main-visual-image {
        border-radius: 8px;
    }

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

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

    .page-the-thao__call-to-action-section {
        padding: 60px 0;
    }
}