.page-sports {
    background-color: #100224; /* Deep purple-black from WOW88 style, overriding #FFFFFF for background */
    color: #FFFFFF;
    padding-bottom: 40px; /* Add some padding at the bottom */
}

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

.page-sports__hero-section {
    position: relative;
    width: 100%;
    /* No fixed height, let content define it or use min-height */
    padding-top: 10px; /* Small top padding for first section */
    padding-bottom: 40px;
    display: flex; /* For image-on-top, text-below */
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-sports__hero-image {
    width: 100%;
    max-width: 1920px; /* Max width for hero image */
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    margin-bottom: 20px;
}

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

.page-sports__hero-section h1 {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #FFFFFF; /* Using white for H1 as per general style, not gradient for this page */
    margin-bottom: 15px;
    /* No fixed font-size, use responsive scaling */
    font-size: clamp(2rem, 4vw, 3.5rem); /* Example clamp for responsive H1 */
}

.page-sports__hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.page-sports__cta-button {
    display: inline-block;
    background: linear-gradient(90deg, #ff9500, #ff5e3a); /* Orange-red gradient */
    color: #FFFFFF;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-sports__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 94, 58, 0.4);
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: bold;
    color: #FFFFFF;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
    line-height: 1.3;
}

h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 10px;
    line-height: 1.4;
}

p {
    line-height: 1.6;
    color: #e0e0e0;
}

.page-sports__advantages-section {
    padding: 40px 0;
    background-color: #1a0a2f; /* Slightly lighter background for contrast */
}

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

.page-sports__advantage-item {
    background-color: #24143e;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-sports__advantage-icon {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__categories-section {
    padding: 60px 0;
}

.page-sports__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 3 columns on desktop */
    gap: 20px;
}

.page-sports__game-card {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #24143e; /* Background for cards */
}

.page-sports__game-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

.page-sports__view-all-button-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-sports__how-to-bet-section {
    padding: 60px 0;
    background-color: #1a0a2f;
}

.page-sports__how-to-bet-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-sports__how-to-bet-image {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.page-sports__steps-list {
    flex: 1;
    min-width: 300px;
    list-style: none;
    padding: 0;
}

.page-sports__steps-list li {
    background-color: #24143e;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    counter-increment: step-counter;
    position: relative;
    padding-left: 50px;
}

.page-sports__steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #017439; /* Primary color for step numbers */
    color: #FFFFFF;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.page-sports__news-tips-section {
    padding: 60px 0;
}

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

.page-sports__article-card {
    display: block;
    background-color: #24143e;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-sports__article-card:hover {
    transform: translateY(-5px);
}

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

.page-sports__article-card h3 {
    padding: 15px 20px 0;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.page-sports__article-card p {
    font-size: 0.9rem;
    color: #bbb;
    padding: 0 20px 15px;
}

.page-sports__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: #017439; /* Primary green for final CTA */
    border-radius: 10px;
    margin: 40px auto;
    max-width: 1000px;
}

.page-sports__cta-section h2 {
    color: #FFFFFF;
    margin-top: 0;
}

.page-sports__cta-section p {
    max-width: 700px;
    margin: 0 auto 30px;
    color: #e0e0e0;
}

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

.page-sports__cta-button--register {
    background: #C30808; /* Register button color */
    color: #FFFF00; /* Register button font color */
}

.page-sports__cta-button--login {
    background: #C30808; /* Login button color */
    color: #FFFF00; /* Login button font color */
}

/* Secondary button for "Xem tất cả tin tức" */
.page-sports__cta-button--secondary {
    background: #24143e; /* Darker background for secondary CTA */
    color: #FFFFFF;
}

.page-sports__cta-button--secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
    background: #3a225c;
}

/* JS related CSS for fade-in effect */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
    .page-sports__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 2-3 columns */
    }
}

@media (max-width: 768px) {
    .page-sports__container {
        padding: 0 15px;
    }

    .page-sports__hero-section h1 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }

    .page-sports__hero-description {
        font-size: 1rem;
    }

    .page-sports__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    h2 {
        font-size: clamp(1.6rem, 4.5vw, 2.2rem);
        margin-top: 40px;
        margin-bottom: 30px;
    }

    h3 {
        font-size: clamp(1.2rem, 3vw, 1.5rem);
    }

    .page-sports__advantages-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .page-sports__how-to-bet-content {
        flex-direction: column;
    }

    .page-sports__how-to-bet-image {
        max-width: 100%;
        min-width: unset;
    }

    .page-sports__steps-list {
        min-width: unset;
    }

    .page-sports__article-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .page-sports__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-sports__cta-button {
        width: 100%;
        max-width: 300px; /* Limit button width on mobile */
    }

    /* CRITICAL: Mobile image overflow prevention */
    .page-sports img {
        max-width: 100%;
        height: auto;
    }

    /* Ensure content images are not smaller than 200px */
    .page-sports__advantage-icon,
    .page-sports__game-image,
    .page-sports__how-to-bet-image,
    .page-sports__article-image {
        min-width: 200px; /* Ensure content images are not too small */
        min-height: 150px; /* Adjust height based on aspect ratio, ensuring it's not tiny */
        width: 100%; /* Fill available width */
    }
    .page-sports__game-image {
        height: 180px; /* Adjust for mobile */
    }
    .page-sports__article-image {
        height: 200px; /* Adjust for mobile */
    }
}

@media (max-width: 549px) {
    .page-sports__game-grid {
        grid-template-columns: 1fr; /* Single column on smallest screens */
    }
    .page-sports__hero-section {
        padding-top: 5px;
    }
}