.page-sports {
    background-color: #FFFFFF; /* Default background */
    color: #333333; /* Default text color */
    font-family: Arial, sans-serif; /* Roboto-like font */
    padding-top: 10px; /* Small top padding for first section */
}

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

.page-sports__hero-visual {
    width: 100%;
    max-width: 100%;
}

.page-sports__hero-visual img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/5; /* Recommended aspect ratio */
}

.page-sports__hero-content {
    padding: 20px 15px;
    max-width: 800px; /* Constrain content width */
    margin-top: 20px; /* Space between image and content */
}

.page-sports__main-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem); /* H1 font size clamp, not too big */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFFFF; /* White for hero title */
}

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

.page-sports__hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.page-sports__btn-register,
.page-sports__btn-login {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    min-width: 200px; /* Ensure buttons are not too small */
    text-align: center;
}

.page-sports__btn-register {
    background-color: #C30808; /* Red for register */
    color: #FFFF00; /* Yellow for register text */
    border: 2px solid #C30808;
}

.page-sports__btn-register:hover {
    background-color: #e02020;
    border-color: #e02020;
}

.page-sports__btn-login {
    background-color: #C30808; /* Red for login */
    color: #FFFF00; /* Yellow for login text */
    border: 2px solid #C30808;
}

.page-sports__btn-login:hover {
    background-color: #e02020;
    border-color: #e02020;
}

/* General Section Styling */
.page-sports__categories-section,
.page-sports__live-betting-section,
.page-sports__promotions-section,
.page-sports__why-us-section,
.page-sports__faq-section,
.page-sports__final-cta-section {
    padding: 40px 15px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    background-color: #FFFFFF; /* Default background */
    color: #333333;
}

.page-sports__section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 30px;
    color: #017439; /* Main color for section titles */
}

.page-sports__description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Categories Grid */
.page-sports__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.page-sports__category-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #333333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 20px;
}

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

.page-sports__category-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency, ensure >= 200px */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-sports__card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #017439; /* Main color for card titles */
    padding: 0 15px;
}

.page-sports__card-description {
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0 15px;
}

.page-sports__btn-view-all {
    display: inline-block;
    background-color: #017439;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.page-sports__btn-view-all:hover {
    background-color: #005a2e;
}

/* Live Betting Section */
.page-sports__live-betting-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    background-color: #f2f2f2;
    text-align: left;
}

.page-sports__live-betting-content {
    max-width: 600px;
}

.page-sports__live-betting-image img {
    width: 100%;
    max-width: 600px; /* Constrain image width */
    height: auto;
    display: block;
    border-radius: 10px;
}

.page-sports__btn-live-stream {
    display: inline-block;
    background-color: #017439;
    color: #FFFFFF;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.page-sports__btn-live-stream:hover {
    background-color: #005a2e;
}

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

.page-sports__promo-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #333333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 20px;
}

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

.page-sports__promo-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency, ensure >= 200px */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-sports__btn-promo-details {
    display: inline-block;
    background-color: #017439;
    color: #FFFFFF;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.page-sports__btn-promo-details:hover {
    background-color: #005a2e;
}

/* Why Us Section */
.page-sports__why-us-section {
    background-color: #017439; /* Main color as background */
    color: #FFFFFF;
}

.page-sports__why-us-section .page-sports__section-title {
    color: #FFFFFF;
}

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

.page-sports__why-us-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-sports__why-us-item img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}

.page-sports__item-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.page-sports__item-description {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* FAQ Section */
.page-sports__faq-section {
    background-color: #f9f9f9;
}

.page-sports__faq-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.page-sports__faq-item {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-sports__faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #017439;
    margin-bottom: 10px;
    cursor: pointer; /* Implies expand/collapse functionality */
}

.page-sports__faq-question--active + .page-sports__faq-answer {
    max-height: fit-content; /* For active state */
}

.page-sports__faq-answer {
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

/* Final CTA Section */
.page-sports__final-cta-section {
    background-color: #017439;
    color: #FFFFFF;
    padding: 50px 15px;
}

.page-sports__final-cta-section .page-sports__section-title {
    color: #FFFFFF;
}

.page-sports__final-cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* Responsive Design */
@media (min-width: 768px) {
    .page-sports__hero-section {
        flex-direction: column; 
        padding: 40px 0;
    }
    .page-sports__hero-content {
        margin-top: 40px;
    }

    .page-sports__live-betting-section {
        flex-direction: row; /* Desktop: image and content side-by-side */
        text-align: left;
        align-items: flex-start;
        justify-content: center;
        gap: 50px;
    }
    .page-sports__live-betting-content,
    .page-sports__live-betting-image {
        flex: 1;
        max-width: 500px;
    }
    .page-sports__live-betting-image img {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .page-sports__hero-visual img {
        aspect-ratio: 4/3; /* More vertical for mobile */
    }
    .page-sports__hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .page-sports__btn-register,
    .page-sports__btn-login {
        width: 80%;
        max-width: 300px;
    }
    .page-sports__categories-grid,
    .page-sports__promotions-grid,
    .page-sports__why-us-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
    }

    .page-sports__category-card img,
    .page-sports__promo-card img {
        height: 200px; /* Ensure images are not too small, comply with >=200px */
        width: 100%;
        max-width: 100%;
    }
    .page-sports__why-us-item img {
        width: 200px;
        height: 200px;
        object-fit: contain;
        max-width: 100%;
    }
}

/* Ensure all content images are never less than 200px */
.page-sports__categories-section img,
.page-sports__live-betting-section img,
.page-sports__promotions-section img,
.page-sports__why-us-section img {
    min-width: 200px;
    min-height: 200px;
    height: auto; /* Allow auto height to prevent stretching */
    width: 100%; /* Make sure they fill their container */
    object-fit: cover; /* Cover ensures no empty space */
}

/* Specific override for why-us section to ensure min-width/height */
.page-sports__why-us-item img {
    width: 200px;
    height: 200px;
    object-fit: contain; /* Contain for icon-like images */
    max-width: 100%; /* Ensure it doesn't overflow */
}

/* Mobile content area overflow prevention */
@media (max-width: 768px) {
    .page-sports {
        overflow-x: hidden;
    }
    .page-sports img {
        max-width: 100% !important;
        height: auto !important;
    }
}