/* style/sports.css */

/* Base styles for the sports page content */
.page-sports {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-sports__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-sports__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FCBC45; /* Login button color for accent */
    border-radius: 2px;
}

.page-sports__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    text-align: center;
    min-width: 150px; /* Ensure buttons are large enough */
    font-size: 1.1em;
}

.page-sports__btn--primary {
    background-color: #FCBC45; /* Login color */
    color: #000000; /* Dark text for contrast */
    border: 2px solid #FCBC45;
}

.page-sports__btn--primary:hover {
    background-color: #e0a030;
    border-color: #e0a030;
    color: #FFFFFF;
}

.page-sports__btn--secondary {
    background-color: transparent;
    color: #FCBC45; /* Login color */
    border: 2px solid #FCBC45;
}

.page-sports__btn--secondary:hover {
    background-color: #FCBC45;
    color: #000000;
}

.page-sports__btn--tertiary {
    background-color: #000000; /* Main color */
    color: #FCBC45; /* Login color */
    border: 2px solid #000000;
}

.page-sports__btn--tertiary:hover {
    background-color: #FCBC45;
    color: #000000;
    border-color: #FCBC45;
}

.page-sports__btn--link {
    color: #FCBC45; /* Login color */
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    min-width: auto;
    font-size: 1em;
}

.page-sports__btn--link:hover {
    color: #e0a030;
    text-decoration: none;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    color: #FFFFFF; /* White text for hero overlay */
    background-color: #000000; /* Dark background for hero section */
}

.page-sports__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.6; /* Dim the image for text readability */
}

.page-sports__hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text */
    border-radius: 10px;
}

.page-sports__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FCBC45; /* Highlight title */
    line-height: 1.2;
}

.page-sports__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

/* Features Section */
.page-sports__features-section,
.page-sports__how-to-bet-section,
.page-sports__popular-sports-section,
.page-sports__faq-section,
.page-sports__responsible-gaming-section,
.page-sports__contact-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.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: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-sports__feature-icon {
    width: 250px; /* Minimum 200px */
    height: 200px; /* Minimum 200px */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-sports__feature-title {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 15px;
}

.page-sports__feature-description {
    font-size: 1em;
    color: #555555;
}

/* CTA Banner */
.page-sports__cta-banner {
    position: relative;
    margin-top: 60px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    background-color: #000000; /* Fallback background */
}

.page-sports__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.4;
}

.page-sports__cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
    max-width: 800px;
    color: #FFFFFF;
}

.page-sports__cta-title {
    font-size: 2.8em;
    color: #FCBC45;
    margin-bottom: 15px;
}

.page-sports__cta-description {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* How to Bet Section */
.page-sports__steps-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__step-item {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    text-align: center;
}

.page-sports__step-title {
    font-size: 1.6em;
    color: #000000;
    margin-bottom: 15px;
}

.page-sports__step-description {
    color: #555555;
    margin-bottom: 20px;
}

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

.page-sports__sport-card {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.page-sports__sport-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency, min 200px */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #e0e0e0;
}

.page-sports__sport-title {
    font-size: 1.8em;
    color: #000000;
    margin: 20px 0 10px;
}

.page-sports__sport-description {
    font-size: 1em;
    color: #555555;
    padding: 0 20px 20px;
}

/* FAQ Section */
.page-sports__faq-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.page-sports__faq-question {
    font-size: 1.3em;
    color: #000000;
    margin-bottom: 10px;
    cursor: pointer;
}

.page-sports__faq-answer {
    font-size: 1em;
    color: #555555;
    /* This can be toggled with JS for accordion effect */
}

.page-sports__faq-answer a {
    color: #FCBC45;
    text-decoration: none;
}

.page-sports__faq-answer a:hover {
    text-decoration: underline;
}

/* Responsible Gaming Section */
.page-sports__responsible-gaming-description {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    max-width: 800px;
    margin: 20px auto;
}

.page-sports__responsible-gaming-description a {
    color: #FCBC45;
    text-decoration: none;
    font-weight: bold;
}

.page-sports__responsible-gaming-description a:hover {
    text-decoration: underline;
}

/* Contact Section */
.page-sports__contact-description {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 2.8em;
    }
    .page-sports__hero-description {
        font-size: 1.1em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-sports {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
    }
    .page-sports__hero-title {
        font-size: 2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-sports__btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-sports__features-grid,
    .page-sports__steps-list,
    .page-sports__sports-grid {
        grid-template-columns: 1fr;
    }
    .page-sports__feature-icon,
    .page-sports__sport-image {
        max-width: 100%;
        height: auto;
        min-height: 200px; /* Ensure images are not too small */
    }
    .page-sports__cta-content {
        padding: 30px 20px;
    }
    .page-sports__cta-title {
        font-size: 1.8em;
    }
    .page-sports__cta-description {
        font-size: 1em;
    }
    /* Ensure content area images don't overflow on mobile */
    .page-sports img {
        max-width: 100%;
        height: auto;
    }
    .page-sports__hero-section {
        min-height: 450px;
    }
    /* Ensure no horizontal scroll */
    .page-sports {
        overflow-x: hidden;
    }
}

/* Image specific CSS rules to ensure minimum size and no filter */
.page-sports__feature-icon,
.page-sports__sport-image,
.page-sports__cta-image,
.page-sports__hero-image {
    /* Enforce minimum dimensions if not already covered by width/height */
    min-width: 200px;
    min-height: 200px;
    /* Prohibit filter */
    filter: none;
}

/* Content area images CSS size lower bound (based on scope, not class name) */
/* Any img within .page-sports must not display smaller than 200px */
.page-sports img:not(.page-sports__hero-image) { /* Exclude hero image from this specific rule if its width/height are already set for the container */
    width: auto; /* Allow natural width */
    height: auto; /* Allow natural height */
    max-width: 100%; /* Responsive */
    min-width: 200px; /* Enforce minimum width */
    min-height: 200px; /* Enforce minimum height */
    object-fit: cover;
}

/* Specific overrides for images that might be smaller in layout but still need to meet the 200px minimum */
.page-sports__feature-icon {
    width: 250px; /* Example, ensure >200px */
    height: 200px; /* Example, ensure >200px */
}

.page-sports__sport-image {
    height: 250px; /* Example, ensure >200px */
}

@media (max-width: 768px) {
    .page-sports img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Ensure minimum width on mobile */
        min-height: 200px; /* Ensure minimum height on mobile */
    }
}