.page-sports {
    background-color: #FFFFFF; /* Default background for main content */
    color: #333333; /* Default text color for contrast on white background */
    padding-top: 10px; /* Small top padding for main content as body has padding-top */
}

.page-sports__section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-sports__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: #017439; /* Main color for titles */
}

.page-sports__section-title--gradient {
    background: linear-gradient(90deg, #017439, #00A650); /* Example gradient for titles */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.page-sports__section-description {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

/* Hero Section */
.page-sports__hero-section {
    display: flex;
    flex-direction: column; /* Default to column for mobile first */
    align-items: center;
    text-align: center;
    background-color: #017439; /* Dark background for hero */
    color: #FFFFFF;
    padding: 20px 0 40px;
}

.page-sports__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 20px;
}

.page-sports__hero-image {
    width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Ensure image is not too small */
    min-height: 200px; /* Ensure image is not too small */
}

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

.page-sports__hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #FFFF00; /* Register/Login font color for H1 */
}

.page-sports__hero-description {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    line-height: 1.7;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.page-sports__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-sports__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-height: 44px; /* Touch target size */
    min-width: 150px; /* Minimum width for buttons */
}

.page-sports__btn--register,
.page-sports__btn--login {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #FFFF00;
}

.page-sports__btn--register:hover,
.page-sports__btn--login:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-sports__btn--primary {
    background-color: #017439;
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-sports__btn--primary:hover {
    background-color: #005a2e;
    transform: translateY(-2px);
}

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

.page-sports__btn--secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.page-sports__btn--small {
    padding: 8px 15px;
    font-size: 0.9rem;
    min-width: unset;
}

.page-sports__btn--large {
    padding: 15px 30px;
    font-size: 1.1rem;
    min-width: 200px;
}

/* Features Section */
.page-sports__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

.page-sports__feature-icon {
    width: 100%;
    max-width: 250px; /* Ensure feature images are not too wide */
    height: auto;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
    border-radius: 8px;
}

.page-sports__feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #017439;
}

.page-sports__feature-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #666666;
}

/* Categories Section */
.page-sports__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Min 200px for categories */
    gap: 20px;
    margin-top: 40px;
}

.page-sports__category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333333;
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-sports__category-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-sports__category-title {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 15px;
    color: #017439;
}

.page-sports__all-sports-btn-wrapper {
    margin-top: 40px;
}

/* Live Betting Section */
.page-sports__live-betting-section {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    background-color: #017439;
    color: #FFFFFF;
    border-radius: 10px;
    padding: 50px;
    flex-direction: column; /* Default to column */
}

.page-sports__live-betting-content {
    flex: 1;
}

.page-sports__live-betting-content .page-sports__section-title {
    color: #FFFF00; /* Yellow for title on dark background */
    text-align: left;
}

.page-sports__live-betting-content .page-sports__section-description {
    color: #e0e0e0;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.page-sports__live-betting-image-wrapper {
    flex: 1;
    width: 100%;
    max-width: 600px;
}

.page-sports__live-betting-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* Promotions Section */
.page-sports__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__promotion-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.page-sports__promotion-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-sports__promotion-title {
    font-size: 1.3rem;
    font-weight: 700;
    padding: 15px 20px 5px;
    color: #017439;
}

.page-sports__promotion-text {
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0 20px 15px;
    color: #666666;
    flex-grow: 1; /* Push button to bottom */
}

.page-sports__promotion-card .page-sports__btn--small {
    margin: 0 20px 20px;
    align-self: flex-start;
}

.page-sports__all-promos-btn-wrapper {
    margin-top: 40px;
}

/* CTA Section */
.page-sports__cta-section {
    background-color: #017439;
    color: #FFFFFF;
    padding: 60px 20px;
    border-radius: 10px;
}

.page-sports__cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Responsive Design */
@media (min-width: 769px) {
    .page-sports__hero-section {
        flex-direction: column; /* Still column, but content will be wider */
        padding: 40px 0 60px;
    }

    .page-sports__hero-image-wrapper {
        margin-bottom: 40px;
    }

    .page-sports__live-betting-section {
        flex-direction: row; /* Row for desktop */
        text-align: left;
    }

    .page-sports__live-betting-image-wrapper {
        order: 2; /* Image on right */
    }

    .page-sports__live-betting-content {
        order: 1; /* Content on left */
    }
}

/* Mobile specific overrides */
@media (max-width: 768px) {
    .page-sports__section {
        padding: 30px 15px;
    }

    .page-sports__hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem); /* Adjust for smaller screens */
    }

    .page-sports__hero-description {
        font-size: clamp(0.95rem, 3vw, 1.1rem);
    }

    .page-sports__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-sports__btn--register,
    .page-sports__btn--login,
    .page-sports__btn--large,
    .page-sports__btn--primary,
    .page-sports__btn--secondary {
        width: 100%;
        max-width: 300px; /* Limit max width for full-width buttons */
        margin: 0 auto;
    }

    .page-sports__features-grid,
    .page-sports__categories-grid,
    .page-sports__promotions-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
    }

    .page-sports__live-betting-section {
        padding: 30px;
        flex-direction: column;
        text-align: center;
    }

    .page-sports__live-betting-content .page-sports__section-title,
    .page-sports__live-betting-content .page-sports__section-description {
        text-align: center;
    }

    .page-sports__cta-actions {
        flex-direction: column;
        gap: 15px;
    }
}

/* Ensure all images inside .page-sports are responsive and not too small on mobile */
@media (max-width: 768px) {
    .page-sports img {
        max-width: 100%;
        height: auto;
        display: block;
        min-width: 200px; /* Enforce minimum size on mobile too */
        min-height: 200px; /* Enforce minimum size on mobile too */
    }
    /* Specific override for any potential smaller image use case that needs to be >200px */
    .page-sports__feature-icon,
    .page-sports__category-image,
    .page-sports__live-betting-image,
    .page-sports__promotion-image {
        max-width: 100%; /* Ensure these also adhere to max-width: 100% */
    }
}

/* Content area images CSS size lower bound (important) */
.page-sports img {
    /* This rule applies to all images within .page-sports */
    /* It ensures that no CSS rule accidentally sets width/height below 200px */
    /* Using min-width and min-height to enforce the minimum display size */
    min-width: 200px;
    min-height: 200px;
    box-sizing: border-box; /* Include padding/border in total width/height */
}

/* For the H1 title font-size, using clamp for responsiveness without fixed large values */
.page-sports__hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem); /* min, preferred, max */
}