/* General page styling */
.page-sports {
    font-family: Arial, sans-serif;
    color: #FFFFFF; /* Default text color for dark background sections */
    background-color: #100224; /* Primary dark background for the page */
    line-height: 1.6;
    padding-top: 10px; /* Small top padding, body handles header offset */
}

/* Hero Section */
.page-sports__hero-section {
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column; /* Default: image on top, text below */
    align-items: center;
    text-align: center;
    background-color: #100224; /* Dark background for hero */
    padding-top: 40px; /* Add some top padding */
    padding-bottom: 40px;
}

.page-sports__hero-visual {
    width: 100%;
    max-width: 1200px; /* Limit image width */
    margin-bottom: 30px; /* Space between image and text */
}

.page-sports__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
    border-radius: 10px; /* Slightly rounded corners */
}

.page-sports__hero-content {
    padding: 0 20px; /* Adjust padding */
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
}

.page-sports__main-title {
    font-size: clamp(1.8rem, 4vw, 3rem); /* Responsive font size */
    font-weight: bold;
    color: #FFFFFF; /* White for main title */
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-sports__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__cta-button {
    display: inline-block;
    background: #C30808; /* Red for CTA */
    color: #FFFF00; /* Yellow for CTA text */
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    min-width: 180px; /* Ensure good clickable area */
    text-align: center;
    border: none;
    cursor: pointer;
}

.page-sports__cta-button:hover {
    background: #e02020; /* Slightly darker red on hover */
}

.page-sports__cta-button--secondary {
    background: #017439; /* Green for secondary CTA */
    color: #FFFFFF;
}

.page-sports__cta-button--secondary:hover {
    background: #005a2d; /* Darker green on hover */
}

/* Sections */
.page-sports__featured-sports-section,
.page-sports__why-choose-section,
.page-sports__guide-section,
.page-sports__faq-section {
    padding: 40px 20px;
    margin-bottom: 30px;
    background-color: #1a0836; /* Slightly lighter dark background for content sections */
    border-radius: 10px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.page-sports__section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem); /* Responsive font size */
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-sports__section-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Sports Grid */
.page-sports__sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    justify-content: center;
}

.page-sports__sport-card {
    background-color: #2a154d; /* Darker card background */
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #FFFFFF;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 15px;
}

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

.page-sports__sport-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-sports__sport-card-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #FFFFFF;
    padding: 0 15px;
}

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

.page-sports__benefit-card {
    background-color: #2a154d;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-sports__benefit-icon {
    width: 100%; /* Ensure image fills card width */
    max-width: 250px; /* Max width for icon-like images */
    height: auto;
    min-height: 200px; /* Enforce minimum height */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__benefit-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.page-sports__benefit-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Guide Section */
.page-sports__guide-content {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-sports__guide-image {
    flex: 1 1 400px; /* Allow image to grow/shrink */
    max-width: 500px;
    height: auto;
    min-height: 200px; /* Enforce minimum height */
    object-fit: cover;
    border-radius: 10px;
}

.page-sports__guide-steps {
    flex: 1 1 400px; /* Allow steps to grow/shrink */
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-sports__guide-step {
    background-color: #2a154d;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-sports__guide-step-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #017439; /* Green for step titles */
    margin-bottom: 10px;
}

.page-sports__guide-step-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

/* FAQ Section */
.page-sports__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-sports__faq-item {
    background-color: #2a154d;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #FFFFFF; /* Ensure FAQ text is visible */
}

.page-sports__faq-question {
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: block;
    position: relative;
    color: #FFFFFF; /* Ensure question text is white */
}

.page-sports__faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.page-sports__faq-item[open] .page-sports__faq-question::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.page-sports__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.page-sports__faq-answer p {
    margin: 0;
}

.page-sports__faq-answer a {
    color: #017439; /* Green for links within FAQ */
    text-decoration: underline;
}

.page-sports__faq-answer a:hover {
    color: #005a2d;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .page-sports__hero-section {
        flex-direction: row; /* Image to the left, text to the right */
        justify-content: center;
        align-items: center;
        text-align: left;
        padding: 60px 20px; /* Adjust padding for desktop */
    }

    .page-sports__hero-visual {
        flex: 1;
        margin-bottom: 0;
        margin-right: 40px; /* Space between image and text */
        max-width: 600px; /* Control image size */
    }

    .page-sports__hero-image {
        aspect-ratio: auto; /* Let cover handle it */
    }

    .page-sports__hero-content {
        flex: 1;
        padding: 0;
        max-width: 600px; /* Control text content width */
    }

    .page-sports__main-title {
        font-size: 3.2rem; /* Larger font for desktop */
    }

    .page-sports__guide-content {
        flex-wrap: nowrap; /* No wrapping on desktop */
    }

    .page-sports__guide-image {
        flex: 1;
        max-width: 50%;
    }

    .page-sports__guide-steps {
        flex: 1;
    }
}

/* Mobile specific rules for images to prevent overflow */
@media (max-width: 768px) {
    .page-sports img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    .page-sports__hero-section {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .page-sports__hero-image {
        aspect-ratio: 4/3; /* More square for mobile */
        max-height: 400px;
    }

    .page-sports__hero-content {
        padding: 20px;
    }

    .page-sports__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .page-sports__section-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    .page-sports__sport-card-image,
    .page-sports__benefit-icon,
    .page-sports__guide-image {
        min-height: 200px; /* Ensure minimum size */
        width: 100%;
    }

    .page-sports__sports-grid,
    .page-sports__benefits-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }

    .page-sports__guide-content {
        flex-direction: column;
    }
}

/* Ensure all content section images are at least 200px */
.page-sports__sport-card-image,
.page-sports__benefit-icon,
.page-sports__guide-image {
    min-width: 200px;
    min-height: 200px;
}