/* style/sports.css */

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

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0; /* Light background for content area */
    padding: 0; /* No extra padding here as content is inside container */
}

.page-sports__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px; /* Padding for content inside hero */
}

.page-sports__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.page-sports__hero-content {
    max-width: 800px;
}

.page-sports__hero-title {
    font-size: 2.8em;
    color: #000000; /* Main color */
    margin-bottom: 15px;
    line-height: 1.2;
}

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

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

/* General Buttons */
.page-sports__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    white-space: nowrap;
    min-width: 150px;
}

.page-sports__button--primary {
    background-color: #000000; /* Main brand color */
    color: #FFFFFF; /* Auxiliary color for text */
    border: 2px solid #000000;
}

.page-sports__button--primary:hover {
    background-color: #333333;
    border-color: #333333;
}

.page-sports__button--secondary {
    background-color: transparent;
    color: #000000; /* Main brand color */
    border: 2px solid #000000;
}

.page-sports__button--secondary:hover {
    background-color: #000000;
    color: #FFFFFF;
}

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

.page-sports__button--tertiary:hover {
    background-color: #e0a53b;
    border-color: #e0a53b;
}

/* General container and section styling */
.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-sports__section-title {
    font-size: 2.2em;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
}

.page-sports__section-intro {
    font-size: 1.1em;
    color: #333333;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.page-sports__paragraph {
    font-size: 1em;
    color: #333333;
    margin-bottom: 15px;
    text-align: justify;
}

/* Why Choose Us Section */
.page-sports__why-choose-us-section {
    background-color: #FFFFFF; /* White background */
    padding: 60px 0;
}

.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;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-sports__feature-icon {
    width: 100%; /* Ensure images are not too small */
    max-width: 250px; /* Constrain width for smaller cards */
    height: auto;
    margin-bottom: 20px;
    border-radius: 4px;
    min-width: 200px; /* Enforce min-width */
    min-height: 200px; /* Enforce min-height */
    object-fit: cover;
}

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

.page-sports__feature-description {
    font-size: 0.95em;
    color: #555555;
    text-align: justify;
}

/* Sports Categories Section */
.page-sports__sports-categories-section {
    background-color: #f0f0f0;
    padding: 60px 0;
}

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

.page-sports__category-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

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

.page-sports__category-title {
    font-size: 1.4em;
    color: #000000;
    padding: 15px 20px 5px;
}

.page-sports__category-description {
    font-size: 0.9em;
    color: #555555;
    padding: 0 20px 20px;
    text-align: justify;
}

/* Betting Guide Section */
.page-sports__betting-guide-section {
    background-color: #FFFFFF;
    padding: 60px 0;
}

.page-sports__detail-list {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.page-sports__detail-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    text-align: center;
}

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

.page-sports__detail-title a {
    color: #000000;
    text-decoration: none;
}

.page-sports__detail-title a:hover {
    text-decoration: underline;
}

.page-sports__detail-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 25px;
    text-align: justify;
}

/* Call to Action Section */
.page-sports__cta-section {
    background-color: #000000; /* Main brand color for contrast */
    padding: 60px 20px;
    text-align: center;
    color: #FFFFFF;
}

.page-sports__cta-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce min-width */
    min-height: 200px; /* Enforce min-height */
    object-fit: cover;
}

.page-sports__cta-title {
    font-size: 2.5em;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.page-sports__cta-description {
    font-size: 1.1em;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Responsible Gaming Section */
.page-sports__responsible-gaming-section {
    background-color: #f9f9f9;
    padding: 60px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 2.4em;
    }
    .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, 120px); /* Ensure mobile also respects offset */
    }
    .page-sports__hero-container {
        padding: 30px 15px;
    }
    .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__button {
        width: 100%;
        max-width: 300px;
    }
    .page-sports__container {
        padding: 30px 15px;
    }
    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__section-intro {
        font-size: 1em;
    }
    .page-sports__features-grid,
    .page-sports__categories-grid {
        grid-template-columns: 1fr;
    }
    .page-sports__cta-title {
        font-size: 2em;
    }
    .page-sports__cta-description {
        font-size: 1em;
    }
    /* Mobile content image overflow prevention */
    .page-sports img {
        max-width: 100%;
        height: auto;
        /* Do not set fixed width/height that could cause overflow */
    }
    .page-sports__hero-image,
    .page-sports__feature-icon,
    .page-sports__category-image,
    .page-sports__cta-image {
        min-width: 200px; /* Ensure images are not too small even if max-width is 100% */
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page-sports__hero-title {
        font-size: 1.8em;
    }
    .page-sports__section-title {
        font-size: 1.6em;
    }
    .page-sports__cta-title {
        font-size: 1.8em;
    }
    .page-sports__button {
        padding: 10px 20px;
    }
}