/* style/sports.css */

/* Base styles for the page, adapting to dark body background */
.page-sports {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Light text for dark body background */
    background-color: #1a1a2e; /* Should match body background from shared.css */
    line-height: 1.6;
    padding-top: 0; /* Handled by shared.css or hero section */
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    padding: var(--header-offset, 120px) 0 60px; /* Ensure header offset */
    background-color: #017439; /* Brand color for hero */
    color: #ffffff;
    text-align: center;
    overflow: hidden; /* For background image */
}

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

.page-sports__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.page-sports__hero-title {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFFF00; /* Yellow for prominence */
}

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

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

.page-sports__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* For responsive buttons */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

.page-sports__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* General Content Sections */
.page-sports__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-sports__section-title {
    font-size: 2.2em;
    color: #FFFF00; /* Highlight titles */
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

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

.page-sports__text-content {
    text-align: left;
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.1em;
    color: #f0f0f0; /* Light text on dark background */
}

.page-sports__text-content h3 {
    color: #ffffff;
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-sports__text-content p {
    margin-bottom: 15px;
}

.page-sports__text-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.page-sports__text-content li {
    margin-bottom: 8px;
}

/* Image Showcase */
.page-sports__image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__image-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly visible card for images */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
}

.page-sports__image-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px 10px 0 0;
    object-fit: cover;
    min-height: 200px; /* Minimum image size */
}

.page-sports__image-item-caption {
    font-size: 1.1em;
    color: #f0f0f0;
    padding: 15px;
    text-align: center;
}

/* FAQ Section */
.page-sports__faq-section {
    background-color: #0a0a1a; /* Darker background for contrast */
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.page-sports__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for FAQ item */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    color: #ffffff;
}

.page-sports__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    background-color: #017439; /* Brand color for question */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    list-style: none; /* Hide default marker */
}

.page-sports__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-sports__faq-question {
    display: flex; /* Make question and toggle side-by-side */
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-sports__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #f0f0f0;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
}

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

@media (max-width: 768px) {
    .page-sports__hero-section {
        padding: var(--header-offset, 120px) 0 40px; /* Mobile header offset */
    }
    .page-sports__hero-title {
        font-size: 2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-sports__btn {
        width: 100%;
        padding: 12px 20px;
    }
    .page-sports__section {
        padding: 40px 15px;
    }
    .page-sports__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-sports__text-content {
        font-size: 1em;
    }
    .page-sports__image-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-sports__faq-section {
        padding: 40px 15px;
    }
    .page-sports__faq-item summary {
        padding: 15px 20px;
        font-size: 1.05em;
    }
    .page-sports__faq-answer {
        padding: 15px 20px;
    }

    /* Force responsive images/videos/buttons - IMPORTANT */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__image-item,
    .page-sports__video-section,
    .page-sports__video-container,
    .page-sports__video-wrapper,
    .page-sports__cta-buttons,
    .page-sports__button-group,
    .page-sports__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-sports__cta-button,
    .page-sports__btn-primary,
    .page-sports__btn-secondary,
    .page-sports a[class*="button"],
    .page-sports a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Add padding for text inside button */
        padding-right: 15px; /* Add padding for text inside button */
    }
    .page-sports__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically on mobile */
        gap: 10px !important;
    }
}