.page-the-thao {
    font-family: Arial, sans-serif;
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
}

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

.page-the-thao__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

/* Hero Section */
.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: #ffffff;
}

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

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

.page-the-thao__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    color: #017439;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-the-thao__hero-description {
    font-size: 1.15em;
    margin-bottom: 30px;
    color: #444444;
}

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

.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;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal;
    word-wrap: break-word;
}

.page-the-thao__btn-primary {
    background-color: #C30808; /* Register color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

.page-the-thao__btn-secondary {
    background-color: #017439;
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-the-thao__btn-secondary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

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

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

/* Game Types Section */
.page-the-thao__game-types-section {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.page-the-thao__tab-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 10px;
}

.page-the-thao__tab-button {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #555555;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    outline: none;
}

.page-the-thao__tab-button::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 3px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.page-the-thao__tab-button:hover,
.page-the-thao__tab-button.is-active {
    color: #017439;
}

.page-the-thao__tab-button.is-active::after {
    background-color: #017439;
}

.page-the-thao__game-panel {
    display: none;
    padding: 20px 0;
}

.page-the-thao__game-panel.is-active {
    display: block;
}

.page-the-thao__panel-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.page-the-thao__panel-img {
    flex: 1 1 45%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    min-width: 250px; /* Ensure image is not too small */
}

.page-the-thao__panel-text-wrapper {
    flex: 1 1 45%;
    min-width: 250px;
}

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

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

/* Advantages Section */
.page-the-thao__advantages-section {
    padding: 80px 0;
}

.page-the-thao__dark-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff; /* White text for dark background */
}

.page-the-thao__dark-section .page-the-thao__section-title {
    color: #ffffff;
}

.page-the-thao__dark-section .page-the-thao__section-description {
    color: #f0f0f0;
}

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

.page-the-thao__advantage-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-the-thao__advantage-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px; /* Not a circle as per rule, but a slight round */
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__advantage-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-the-thao__advantage-description {
    font-size: 1em;
    color: #f0f0f0;
}

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

/* Guide Section */
.page-the-thao__guide-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.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: #f0fdf5; /* Light green background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #e0f0e0;
}

.page-the-thao__guide-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #017439;
    margin-bottom: 15px;
    background-color: #e6ffe6;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.page-the-thao__guide-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-the-thao__guide-text {
    font-size: 1em;
    color: #555555;
}

/* Promo Section */
.page-the-thao__promo-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.page-the-thao__promo-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-the-thao__promo-img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-the-thao__promo-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-the-thao__promo-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes button to bottom */
}

/* Responsible Section */
.page-the-thao__responsible-section {
    padding: 80px 0;
}

.page-the-thao__responsible-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.page-the-thao__responsible-text {
    flex: 1 1 45%;
    min-width: 300px;
    padding: 30px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1); /* for dark section */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-the-thao__responsible-section .page-the-thao__responsible-subtitle {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-the-thao__responsible-section .page-the-thao__responsible-paragraph {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-the-thao__container {
        padding: 15px;
    }

    .page-the-thao__section-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

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

    /* HERO Section */
    .page-the-thao__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 40px;
    }
    .page-the-thao__hero-content-wrapper {
        flex-direction: column;
        padding: 20px 15px;
        gap: 20px;
    }
    .page-the-thao__hero-text,
    .page-the-thao__hero-image {
        flex-basis: 100%;
        min-width: unset;
    }
    .page-the-thao__main-title {
        font-size: 2em;
        text-align: center;
    }
    .page-the-thao__hero-description {
        font-size: 1em;
        text-align: center;
    }
    .page-the-thao__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to container */
    }
    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    /* Game Types Section */
    .page-the-thao__game-types-section {
        padding: 40px 0;
    }
    .page-the-thao__tab-nav {
        flex-direction: column;
        gap: 5px;
        border-bottom: none;
        align-items: stretch;
    }
    .page-the-thao__tab-button {
        width: 100%;
        text-align: center;
        padding: 10px 15px;
        font-size: 1em;
        border-bottom: 1px solid #e0e0e0;
    }
    .page-the-thao__tab-button::after {
        display: none; /* Remove underline for mobile tabs */
    }
    .page-the-thao__tab-button.is-active {
        background-color: #f0fdf5;
    }
    .page-the-thao__panel-content {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    .page-the-thao__panel-img {
        flex-basis: 100%;
        min-width: unset;
    }
    .page-the-thao__panel-title {
        flex-basis: 100%;
        text-align: center;
        font-size: 1.5em;
        min-width: unset;
    }
    .page-the-thao__panel-text {
        text-align: center;
    }

    /* Advantages Section */
    .page-the-thao__advantages-section {
        padding: 40px 0;
    }
    .page-the-thao__advantage-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-the-thao__advantage-item {
        padding: 20px;
    }
    .page-the-thao__advantage-icon {
        width: 80px;
        height: 80px;
    }
    .page-the-thao__advantage-title {
        font-size: 1.3em;
    }

    /* Guide Section */
    .page-the-thao__guide-section {
        padding: 40px 0;
    }
    .page-the-thao__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-the-thao__guide-item {
        padding: 20px;
    }

    /* Promo Section */
    .page-the-thao__promo-section {
        padding: 40px 0;
    }
    .page-the-thao__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-the-thao__promo-card {
        padding: 20px;
    }
    .page-the-thao__promo-title {
        font-size: 1.3em;
    }

    /* Responsible Section */
    .page-the-thao__responsible-section {
        padding: 40px 0;
    }
    .page-the-thao__responsible-content {
        flex-direction: column;
        gap: 20px;
    }
    .page-the-thao__responsible-text {
        flex-basis: 100%;
        min-width: unset;
        padding: 20px;
    }
    .page-the-thao__responsible-subtitle {
        font-size: 1.5em;
    }

    /* Universal image responsive styles for mobile */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-the-thao__section,
    .page-the-thao__card,
    .page-the-thao__container,
    .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;
    }
}