/* style/the-thao.css */

/* General styles for the page-the-thao scope */
.page-the-thao {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main, #FFF1E8); /* Default text color for dark background */
    background-color: var(--background-color, #140C0C); /* From shared.css */
}

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

.page-the-thao__section-title {
    font-size: 2.5em;
    color: var(--gold-color, #F3C54D);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-the-thao__section-description {
    font-size: 1.1em;
    color: var(--text-main, #FFF1E8);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Button Base Styles */
.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-tertiary,
.page-the-thao__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.page-the-thao__btn-primary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    color: #FFF1E8;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

.page-the-thao__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 176, 74, 0.6);
}

.page-the-thao__btn-secondary {
    background: transparent;
    color: var(--gold-color, #F3C54D);
    border: 2px solid var(--gold-color, #F3C54D);
}

.page-the-thao__btn-secondary:hover {
    background: var(--gold-color, #F3C54D);
    color: #140C0C;
}

.page-the-thao__btn-tertiary {
    background: var(--deep-red-color, #7E0D0D);
    color: #FFF1E8;
    border: none;
}
.page-the-thao__btn-tertiary:hover {
    background: var(--main-color, #C61F1F);
}

.page-the-thao__btn-link {
    background: none;
    color: var(--gold-color, #F3C54D);
    border: none;
    padding: 0;
    text-decoration: underline;
    font-size: 0.9em;
}
.page-the-thao__btn-link:hover {
    color: var(--accent-color, #E53030);
}

/* Hero Section */
.page-the-thao__hero-section {
    padding-top: 10px; /* ~10px top padding, not --header-offset */
    padding-bottom: 60px;
    background-color: var(--background-color, #140C0C);
    position: relative;
    overflow: hidden;
}

.page-the-thao__hero-container {
    max-width: 1200px;
    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 50%;
    min-width: 300px;
    color: var(--text-main, #FFF1E8);
}

.page-the-thao__main-title {
    font-weight: bold;
    color: var(--gold-color, #F3C54D);
    margin-bottom: 20px;
    /* No fixed font-size, rely on weight/line-height/color */
    line-height: 1.2;
    max-width: 600px;
}

.page-the-thao__hero-description {
    font-size: 1.15em;
    margin-bottom: 30px;
    max-width: 600px;
}

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

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

.page-the-thao__hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure it behaves as a block element for max-width */
}

/* Intro Section (Module 1) */
.page-the-thao__intro-section {
    padding: 80px 0;
}

.page-the-thao__dark-section {
    background-color: var(--background-color, #140C0C); /* Ensure consistency */
    color: var(--text-main, #FFF1E8);
}

.page-the-thao__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-the-thao__feature-item {
    background-color: var(--card-bg-color, #2A1212);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-the-thao__icon-box-media {
    width: 200px; /* Fixed size for circular image */
    height: 200px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-color, #6A1E1E);
    box-shadow: 0 0 15px rgba(243, 197, 77, 0.4);
}

.page-the-thao__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintain aspect ratio and cover the area */
    border-radius: 50%; /* Ensure image itself is circular */
    display: block;
}

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

.page-the-thao__feature-text {
    color: var(--text-main, #FFF1E8);
}

/* Sports Categories Section */
.page-the-thao__sports-categories {
    padding: 80px 0;
    background-color: var(--background-color, #140C0C);
}

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

.page-the-thao__category-card {
    background-color: var(--card-bg-color, #2A1212);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.page-the-thao__category-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

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

.page-the-thao__category-text {
    color: var(--text-main, #FFF1E8);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* How to Bet Section */
.page-the-thao__how-to-bet {
    padding: 80px 0;
}

.page-the-thao__light-bg {
    background-color: #ffffff; /* Use white background for light section */
    color: #333333; /* Dark text for light background */
}

.page-the-thao__light-bg .page-the-thao__section-title {
    color: var(--deep-red-color, #7E0D0D);
}
.page-the-thao__light-bg .page-the-thao__section-description {
    color: #555555;
}

.page-the-thao__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-the-thao__step-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 5px solid var(--main-color, #C61F1F);
}

.page-the-thao__step-icon {
    width: 60px;
    height: 60px;
    background: var(--main-color, #C61F1F);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

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

.page-the-thao__step-text {
    color: #555555;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Promotions Section */
.page-the-thao__promotions {
    padding: 80px 0;
}

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

.page-the-thao__promo-card {
    background-color: var(--card-bg-color, #2A1212);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.page-the-thao__promo-image {
    width: 100%;
    height: 220px; /* Fixed height for promo images */
    object-fit: cover;
    display: block;
}

.page-the-thao__promo-title {
    font-size: 1.4em;
    color: var(--gold-color, #F3C54D);
    padding: 20px 20px 10px;
}

.page-the-thao__promo-text {
    color: var(--text-main, #FFF1E8);
    padding: 0 20px 20px;
    flex-grow: 1;
}

.page-the-thao__promo-card .page-the-thao__btn-tertiary {
    margin: 0 20px 20px;
    width: calc(100% - 40px); /* Adjust width for padding */
}

.page-the-thao__all-promotions-cta {
    text-align: center;
}

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

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

.page-the-thao__faq-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}