/* style/the-thao.css */

/* General page styling */
.page-the-thao {
    background-color: #0D0E12; /* Custom background color */
    color: #FFF3E6; /* Main text color for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-top: 10px; /* Small top padding, assuming body has header offset */
}

.page-the-thao__article-wrap {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-the-thao__article-wrap--center {
    text-align: center;
}

.page-the-thao__section {
    padding: 60px 0;
}

.page-the-thao__section-title {
    font-size: 2.5em;
    color: #FFA53A; /* Auxiliary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-the-thao__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #FFF3E6; /* Light text for paragraphs */
}

.page-the-thao__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-the-thao__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: #FFF3E6;
}

.page-the-thao__list-item::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: #FFA53A;
    font-weight: bold;
}

/* Hero Section */
.page-the-thao__hero-section {
    display: flex;
    flex-direction: column; /* Ensure image is above text */
    align-items: center;
    justify-content: center;
    padding: 40px 20px 60px;
    text-align: center;
    background-color: #0D0E12;
}

.page-the-thao__hero-image-wrapper {
    margin-bottom: 40px;
    max-width: 1200px; /* Max width for hero image */
    width: 100%;
}

.page-the-thao__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-the-thao__hero-content {
    max-width: 900px;
    margin-bottom: 40px;
}

.page-the-thao__main-title {
    font-size: 3.2em;
    color: #FF8C1A; /* Main brand color for H1 */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    letter-spacing: -1px;
}

.page-the-thao__hero-description {
    font-size: 1.3em;
    color: #FFF3E6;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* CTA Buttons */
.page-the-thao__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-link,
.page-the-thao__btn-text {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-the-thao__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Custom button gradient */
    color: #ffffff; /* White text for contrast */
    border: none;
    box-shadow: 0 4px 10px rgba(255, 140, 26, 0.4);
}

.page-the-thao__btn-primary:hover {
    background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
    box-shadow: 0 6px 15px rgba(255, 140, 26, 0.6);
    transform: translateY(-2px);
}

.page-the-thao__btn-secondary {
    background-color: transparent;
    color: #FF8C1A; /* Main brand color */
    border: 2px solid #FF8C1A; /* Border in main brand color */
    box-shadow: 0 4px 10px rgba(255, 140, 26, 0.2);
}

.page-the-thao__btn-secondary:hover {
    background-color: rgba(255, 140, 26, 0.1);
    color: #FFA53A;
    border-color: #FFA53A;
    transform: translateY(-2px);
}

.page-the-thao__btn-primary--large,
.page-the-thao__btn-secondary--large {
    padding: 18px 40px;
    font-size: 1.2em;
}

.page-the-thao__btn-link {
    display: inline-block;
    color: #FFA53A;
    text-decoration: underline;
    margin-top: 15px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-the-thao__btn-link:hover {
    color: #FFB04D;
}

.page-the-thao__btn-text {
    color: #FF8C1A;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
    transition: color 0.3s ease;
}

.page-the-thao__btn-text:hover {
    color: #FFA53A;
    text-decoration: underline;
}

/* Content Images */
.page-the-thao__image-figure {
    margin: 30px auto;
    max-width: 800px;
    text-align: center;
}

.page-the-thao__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__image-caption {
    font-size: 0.9em;
    color: #a0a0a0;
    margin-top: 10px;
}

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

.page-the-thao__grid-item {
    background-color: #17191F; /* Card background color */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.page-the-thao__info-card {
    background-color: #17191F;
    color: #FFF3E6;
}

.page-the-thao__card-title {
    font-size: 1.6em;
    color: #FFA53A;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-the-thao__card-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-the-thao__card-text {
    font-size: 1em;
    color: #FFF3E6;
    margin-bottom: 20px;
}

/* Promotions Section */
.page-the-thao__promo-box {
    background-color: #17191F;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.page-the-thao__promo-title {
    font-size: 1.8em;
    color: #FF8C1A;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-the-thao__promo-text {
    font-size: 1.1em;
    color: #FFF3E6;
    margin-bottom: 25px;
}

/* Get Started Steps */
.page-the-thao__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-the-thao__step-card {
    background-color: #17191F;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-the-thao__step-title {
    font-size: 1.6em;
    color: #FFA53A;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-the-thao__step-image {
    width: 100%;
    max-width: 680px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-the-thao__step-text {
    font-size: 1em;
    color: #FFF3E6;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to take available space */
}

/* Responsible Gambling Section */
.page-the-thao__responsible-gambling {
    background-color: #17191F; /* Slightly different background for emphasis */
    padding: 60px 0;
    border-top: 1px solid #A84F0C;
}

.page-the-thao__responsible-gambling .page-the-thao__section-title {
    color: #FF8C1A;
}

/* Final CTA Section */
.page-the-thao__final-cta {
    padding: 80px 0;
    background-color: #0D0E12;
    text-align: center;
}

.page-the-thao__final-cta .page-the-thao__section-title {
    color: #FF8C1A;
}


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

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-the-thao__article-wrap {
        padding: 0 25px;
    }

    .page-the-thao__hero-section {
        padding: 30px 20px 50px;
    }

    .page-the-thao__main-title {
        font-size: 2.8em;
    }

    .page-the-thao__hero-description {
        font-size: 1.2em;
    }

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

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

    .page-the-thao__btn-primary--large,
    .page-the-thao__btn-secondary--large {
        padding: 15px 35px;
        font-size: 1.1em;
    }

    .page-the-thao__grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

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

    .page-the-thao__promo-title,
    .page-the-thao__card-title,
    .page-the-thao__step-title {
        font-size: 1.6em;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* General mobile adjustments */
    .page-the-thao {
        font-size: 16px;
        line-height: 1.6;
        padding-top: 10px !important;
    }

    .page-the-thao__article-wrap,
    .page-the-thao__section,
    .page-the-thao__grid-item,
    .page-the-thao__promo-box,
    .page-the-thao__step-card,
    .page-the-thao__cta-buttons,
    .page-the-thao__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 1. Top Section (Hero) - Title + Dual CTA */
    .page-the-thao__hero-section {
        padding: 20px 0 40px !important;
    }

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

    .page-the-thao__hero-description {
        font-size: 1.1em !important;
        margin-bottom: 20px !important;
    }

    .page-the-thao__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .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;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-the-thao__btn-primary--large,
    .page-the-thao__btn-secondary--large {
        padding: 15px 25px !important;
        font-size: 1.1em !important;
    }

    /* 2. Single Column Long Content Container */
    .page-the-thao__section {
        padding: 30px 0 !important;
    }

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

    .page-the-thao__paragraph {
        font-size: 1em !important;
    }

    .page-the-thao__list-item {
        font-size: 1em !important;
        padding-left: 25px !important;
    }

    /* Info Card, Promo Box */
    .page-the-thao__grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .page-the-thao__steps-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .page-the-thao__info-card,
    .page-the-thao__promo-box,
    .page-the-thao__step-card {
        padding: 20px !important;
    }

    .page-the-thao__promo-title,
    .page-the-thao__card-title,
    .page-the-thao__step-title {
        font-size: 1.4em !important;
    }

    /* 3. Generic Images and Figure */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-the-thao__image-figure {
        margin: 20px auto !important;
    }

    .page-the-thao__image-caption {
        font-size: 0.85em !important;
    }

    /* 4. Buttons and Button Containers (covered by general .page-the-thao__cta-buttons and .page-the-thao__btn rules above) */
    .page-the-thao__cta-buttons {
        flex-wrap: wrap !important;
    }

    /* 5. Registration Tutorial and FAQ Block (Steps Grid) */
    .page-the-thao__step-text {
        font-size: 0.95em !important;
    }

    .page-the-thao__final-cta {
        padding: 50px 0 !important;
    }
}