/* style/the-thao.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-register: #C30808;
    --button-login: #C30808;
    --button-text-yellow: #FFFF00;
}

.page-the-thao {
    font-family: Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--secondary-color);
    line-height: 1.6;
}

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

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

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

/* Hero Section */
.page-the-thao__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
    padding-top: 10px; /* Small top padding for non-homepage */
}

.page-the-thao__hero-image-container {
    width: 100%;
    margin-bottom: 20px;
}

.page-the-thao__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px; /* Limit height for aesthetic */
}

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

.page-the-thao__main-title {
    font-size: 3.2em;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-light);
}

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

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

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

.page-the-thao__btn-primary {
    background-color: var(--button-register);
    color: var(--button-text-yellow);
    border: 2px solid var(--button-register);
}

.page-the-thao__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

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

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

.page-the-thao__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.page-the-thao__dark-bg .page-the-thao__section-title {
    color: var(--text-light);
}

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

.page-the-thao__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 30px auto;
    object-fit: cover;
}

.page-the-thao__image-wrapper {
    text-align: center;
}

/* Introduction Section */
.page-the-thao__introduction-section,
.page-the-thao__promotions-section,
.page-the-thao__support-section {
    padding: 60px 0;
}

/* Betting Types Section */
.page-the-thao__betting-types-section,
.page-the-thao__tips-section,
.page-the-thao__conclusion-section {
    padding: 60px 0;
}

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

.page-the-thao__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-the-thao__dark-bg .page-the-thao__list-item {
    background-color: rgba(0, 0, 0, 0.1);
}

.page-the-thao__list-item:hover {
    transform: translateY(-5px);
}

.page-the-thao__list-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--button-text-yellow);
}

.page-the-thao__dark-bg .page-the-thao__list-title {
    color: var(--button-text-yellow);
}

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

.page-the-thao__light-bg .page-the-thao__list-description {
    color: var(--text-dark);
}

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

.page-the-thao__guide-card {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-the-thao__card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-the-thao__card-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.page-the-thao__card-description {
    font-size: 0.95em;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-the-thao__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

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

/* Conclusion Section */
.page-the-thao__conclusion-section {
    text-align: center;
}

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

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

    .page-the-thao__betting-list,
    .page-the-thao__tips-list,
    .page-the-thao__guide-steps {
        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__hero-section {
        padding-top: 10px !important;
    }

    .page-the-thao__hero-content {
        padding: 0 15px;
    }

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

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

    .page-the-thao__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .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__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

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

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

    .page-the-thao__betting-list,
    .page-the-thao__tips-list,
    .page-the-thao__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-the-thao__list-item {
        padding: 20px;
    }

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

    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-the-thao__hero-image-container,
    .page-the-thao__image-wrapper,
    .page-the-thao__guide-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }

    /* Mobile specific for guide cards (上二下三 - 2x3 grid for 5 cards) */
    .page-the-thao__guide-steps {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .page-the-thao__guide-card {
        padding-top: 0 !important; /* Reset specific padding */
    }
    .page-the-thao__guide-card:nth-child(1),
    .page-the-thao__guide-card:nth-child(2),
    .page-the-thao__guide-card:nth-child(3),
    .page-the-thao__guide-card:nth-child(4),
    .page-the-thao__guide-card:nth-child(5) {
        grid-column: span 1; /* Default to 1 column span, will adjust if needed */
    }
    /* The 2x3 layout for 5 cards on mobile is achieved by default 2 columns if not explicitly set */
    /* The prompt's '上二下三' grid for 5 cards is for homepage, non-homepage uses simpler stacking */

    /* No specific home_content-box for non-homepage */

    /* No blog grid for non-homepage Thể Thao */

    /* General section padding adjustment */
    .page-the-thao__introduction-section,
    .page-the-thao__betting-types-section,
    .page-the-thao__guide-section,
    .page-the-thao__promotions-section,
    .page-the-thao__tips-section,
    .page-the-thao__support-section,
    .page-the-thao__conclusion-section {
        padding: 30px 0;
    }
}