/* style/sports.css */

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

/* Sections */
.page-sports__section {
    padding: 60px 0;
    text-align: center;
}

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

/* Background colors */
.page-sports__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-sports__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

/* Headings */
.page-sports__section-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    color: inherit; /* Inherit from section background */
}

.page-sports__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
    text-align: center;
}

.page-sports__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 40px; /* Space between image and content */
}

.page-sports__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-sports__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-sports__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for main title */
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
}

.page-sports__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #333333;
}

/* Call to Action Buttons */
.page-sports__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-sports__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

.page-sports__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-sports__btn-secondary:hover {
    background-color: #e0f0f8;
    color: #26A9E0;
}

.page-sports__btn-large {
    min-width: 200px;
}

.page-sports__cta-wrapper {
    margin-top: 40px;
    text-align: center;
}

/* Features Grid */
.page-sports__features-grid,
.page-sports__sport-types-grid,
.page-sports__promotions-grid,
.page-sports__tips-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__feature-card,
.page-sports__sport-card,
.page-sports__promo-card,
.page-sports__step-card,
.page-sports__tip-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-sports__promo-card {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-sports__feature-card:hover,
.page-sports__sport-card:hover,
.page-sports__promo-card:hover,
.page-sports__step-card:hover,
.page-sports__tip-item:hover {
    transform: translateY(-10px);
}

.page-sports__feature-icon,
.page-sports__sport-image,
.page-sports__promo-image {
    width: 100%;
    max-width: 400px; /* Ensure images don't get too wide in cards */
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    object-fit: cover;
}

.page-sports__feature-title,
.page-sports__sport-title,
.page-sports__promo-title,
.page-sports__step-title,
.page-sports__tip-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #26A9E0; /* Brand color for titles in light cards */
}

.page-sports__promo-title {
    color: #ffffff; /* White for titles in dark promo cards */
}

.page-sports__feature-text,
.page-sports__sport-text,
.page-sports__promo-text,
.page-sports__step-text,
.page-sports__tip-text {
    font-size: 1em;
    color: inherit;
}

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

/* FAQ Section */
.page-sports__faq-list {
    margin-top: 40px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
    background-color: #eef7fc;
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    font-weight: 300;
    margin-left: 15px;
    color: #26A9E0;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
    content: '−';
}

.page-sports__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #555555;
    background-color: #ffffff;
    border-top: 1px solid #f0f0f0;
}

.page-sports__faq-item details > summary {
    list-style: none;
}

.page-sports__faq-item details > summary::-webkit-details-marker {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__description {
        font-size: 1.1em;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-sports__section {
        padding: 40px 0;
    }
    .page-sports__container {
        padding: 0 15px;
    }
    .page-sports__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles header offset, small aesthetic top padding */
    }
    .page-sports__hero-content {
        padding: 15px;
    }
    .page-sports__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-sports__description {
        font-size: 1em;
    }
    .page-sports__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .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;
        padding-right: 15px;
    }
    .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;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__hero-image-wrapper,
    .page-sports__video-section,
    .page-sports__video-container,
    .page-sports__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-sports__hero-image-wrapper { /* Override padding for hero image wrapper */
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-sports__hero-section .page-sports__hero-image {
        min-width: 200px;
        min-height: 200px;
    }
    .page-sports__feature-icon,
    .page-sports__sport-image,
    .page-sports__promo-image {
        min-width: 200px;
        min-height: 200px;
    }
    .page-sports p,
    .page-sports li {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-sports__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-sports__faq-answer {
        padding: 15px 20px;
    }
}