/* Base styles for .page-sports scope */
.page-sports {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Default body background */
    line-height: 1.6;
}

.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, header offset handled by body in shared.css */
    text-align: center;
    overflow: hidden;
    background-color: #017439; /* Brand color for hero background */
}

.page-sports__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit hero image height */
}

.page-sports__hero-content {
    padding: 40px 20px;
    color: #FFFFFF;
    background-color: #017439; /* Ensure text block has brand color background for contrast */
}

.page-sports__main-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #FFFF00; /* Register/Login font color for main title, as per custom color rules */
}

.page-sports__description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

.page-sports__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808; /* Text color for hover on secondary button */
}

/* General Section Styles */
.page-sports__section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #017439;
}

.page-sports__section-title--white {
    color: #FFFFFF;
}

.page-sports__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Categories Section */
.page-sports__categories-section {
    padding: 60px 0;
    background-color: #f8f8f8; /* Light background for this section */
}

.page-sports__categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.page-sports__category-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-sports__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-sports__category-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistent card image display */
    object-fit: cover;
    display: block;
}

.page-sports__card-title {
    font-size: 22px;
    font-weight: 600;
    margin: 20px 15px 10px;
    color: #017439;
}

.page-sports__card-text {
    font-size: 15px;
    padding: 0 15px 20px;
    flex-grow: 1; /* Allow text to grow */
    color: #555555;
}

.page-sports__cta-link-wrapper {
    text-align: center;
}

.page-sports__btn-full-width {
    width: auto; /* Default for desktop */
    min-width: 250px;
    padding: 15px 40px;
}

/* Features Section */
.page-sports__features-section {
    padding: 60px 0;
    background-color: #017439;
    color: #FFFFFF;
}

.page-sports__feature-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-sports__feature-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for items */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-sports__feature-heading {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFFF00; /* Use yellow for headings in dark section */
}

.page-sports__feature-text {
    font-size: 16px;
    line-height: 1.5;
    color: #f0f0f0;
}

/* FAQ Section */
.page-sports__faq-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

details.page-sports__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
}
details.page-sports__faq-item summary.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-sports__faq-item summary.page-sports__faq-question::-webkit-details-marker {
    display: none;
}
details.page-sports__faq-item summary.page-sports__faq-question:hover {
    background: #f5f5f5;
}
.page-sports__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #333333; /* Ensure contrast */
}
.page-sports__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-sports__faq-item .page-sports__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: #555555; /* Ensure contrast */
}

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
    /* Hero Section */
    .page-sports__hero-section {
        padding-top: 10px !important; /* Ensure small top padding on mobile */
    }

    .page-sports__hero-content {
        padding: 30px 15px;
    }

    .page-sports__main-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-sports__description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-sports__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* Categories Section */
    .page-sports__categories-section {
        padding: 40px 0;
    }

    .page-sports__section-title {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .page-sports__section-description {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-sports__categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .page-sports__category-card img {
        
    }

    .page-sports__card-title {
        font-size: 20px;
        margin-top: 15px;
        margin-bottom: 8px;
    }

    .page-sports__card-text {
        font-size: 14px;
        padding: 0 10px 15px;
    }

    .page-sports__btn-full-width {
        width: calc(100% - 30px) !important;
        max-width: calc(100% - 30px) !important;
        margin: 0 15px;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Features Section */
    .page-sports__features-section {
        padding: 40px 0;
    }

    .page-sports__feature-list {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-sports__feature-item {
        padding: 20px;
    }

    .page-sports__feature-heading {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .page-sports__feature-text {
        font-size: 15px;
    }

    /* FAQ Section */
    .page-sports__faq-section {
        padding: 40px 0;
    }

    .page-sports__faq-list {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    details.page-sports__faq-item summary.page-sports__faq-question {
        padding: 15px;
    }

    .page-sports__faq-qtext {
        font-size: 15px;
    }

    details.page-sports__faq-item .page-sports__faq-answer {
        padding: 0 15px 15px;
    }

    /* General image responsiveness for all images within .page-sports */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* General container responsiveness for all sections, cards, and containers */
    .page-sports__hero-section,
    .page-sports__categories-section,
    .page-sports__features-section,
    .page-sports__faq-section,
    .page-sports__container,
    .page-sports__category-card,
    .page-sports__feature-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}