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

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background: linear-gradient(135deg, #26A9E0, #007bb6); /* Gradient for visual appeal */
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-sports__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    z-index: 1; /* Ensure image is below content for visual stacking if needed, but not overlaying */
}

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

.page-sports__hero-content {
    position: relative; /* Relative to hero section */
    z-index: 2; /* Ensure content is above image wrapper if they were to overlap */
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    color: #FFFFFF;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.page-sports__hero-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-sports__hero-description {
    font-size: 1.15rem;
    margin-bottom: 30px;
}

.page-sports__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* General Button Styles */
.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-sports__btn-primary {
    background: #EA7C07; /* Login color for primary CTA */
    color: #FFFFFF;
    border: 2px solid transparent;
}

.page-sports__btn-primary:hover {
    background: #d46b00;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

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

.page-sports__btn-secondary:hover {
    background: #e0f2f7;
    border-color: #1a8cc4;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* General Section Styles */
.page-sports__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.page-sports__section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    color: #555555;
}

/* Features Section */
.page-sports__features-section {
    background: #f8f8f8;
    padding: 60px 20px;
}

.page-sports__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-sports__feature-item {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.page-sports__feature-icon {
    width: 100%; /* Ensure image fills card width */
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Cover the area */
    margin-bottom: 20px;
    border-radius: 5px;
    display: block;
}

.page-sports__feature-heading {
    font-size: 1.4rem;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-sports__feature-text {
    font-size: 1rem;
    color: #555555;
}

/* Popular Sports Section */
.page-sports__popular-sports-section {
    padding: 60px 20px;
    background: #FFFFFF;
}

.page-sports__sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-sports__sports-card {
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__sports-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.page-sports__sports-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-sports__sports-title {
    font-size: 1.3rem;
    color: #26A9E0;
    padding: 15px 20px 5px;
    margin: 0;
}

.page-sports__sports-text {
    font-size: 0.95rem;
    color: #555555;
    padding: 0 20px 20px;
}

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

/* Promotions Section */
.page-sports__promotions-section {
    background: #f0faff; /* Light blue background */
    padding: 60px 20px;
}

.page-sports__promotion-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-sports__promotion-image {
    flex: 1;
    min-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: block;
}

.page-sports__promotion-text-block {
    flex: 1;
    color: #333333;
}

.page-sports__promotion-text-block p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.page-sports__promotion-text-block ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-sports__promotion-text-block ul li {
    background: #e6f7ff;
    border-left: 4px solid #26A9E0;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-size: 1rem;
}

.page-sports__promotion-text-block ul li strong {
    color: #1a8cc4;
}

/* FAQ Section */
.page-sports__faq-section {
    padding: 60px 20px;
    background: #FFFFFF;
}

.page-sports__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

details.page-sports__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
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;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333333;
}
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;
    line-height: 1.5;
    text-align: left;
}
.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 8px 8px;
    color: #555555;
}
.page-sports__faq-answer p {
    margin: 0;
}

/* Ensure all images are responsive by default */
.page-sports img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure containers of images/buttons are responsive */
.page-sports__section,
.page-sports__card,
.page-sports__container,
.page-sports__feature-item,
.page-sports__sports-card,
.page-sports__promotion-content,
.page-sports__promotion-text-block {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-sports__hero-image {
        max-height: 400px;
    }

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

    .page-sports__promotion-content {
        flex-direction: column;
        gap: 30px;
    }

    .page-sports__promotion-image {
        min-width: unset;
        width: 100%;
        max-width: 800px; /* Limit width for larger tablets */
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    /* General Mobile Styles */
    .page-sports {
        font-size: 15px;
        line-height: 1.5;
    }

    /* Hero Section Mobile */
    .page-sports__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
    .page-sports__hero-image-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-sports__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        max-height: 300px; /* Adjust height for mobile */
    }
    .page-sports__hero-content {
        padding: 20px 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-sports__hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-sports__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .page-sports__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 0; /* Handled by section padding */
        padding-right: 0; /* Handled by section padding */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Button Mobile Styles */
    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    .page-sports__cta-buttons--centered {
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Section Titles Mobile */
    .page-sports__section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: 30px;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
    .page-sports__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    /* Features Section Mobile */
    .page-sports__features-section {
        padding: 40px 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-sports__features-grid {
        gap: 20px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-sports__feature-item {
        padding: 20px;
    }
    .page-sports__feature-icon {
        height: 150px; /* Adjust for mobile */
    }
    .page-sports__feature-heading {
        font-size: 1.2rem;
    }
    .page-sports__feature-text {
        font-size: 0.9rem;
    }

    /* Popular Sports Section Mobile */
    .page-sports__popular-sports-section {
        padding: 40px 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-sports__sports-grid {
        gap: 20px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-sports__sports-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-sports__sports-image {
        height: 180px; /* Adjust for mobile */
    }
    .page-sports__sports-title {
        font-size: 1.1rem;
    }
    .page-sports__sports-text {
        font-size: 0.9rem;
    }

    /* Promotions Section Mobile */
    .page-sports__promotions-section {
        padding: 40px 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-sports__promotion-content {
        gap: 20px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-sports__promotion-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    .page-sports__promotion-text-block {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-sports__promotion-text-block p {
        font-size: 1rem;
    }
    .page-sports__promotion-text-block ul li {
        font-size: 0.95rem;
    }

    /* FAQ Section Mobile */
    .page-sports__faq-section {
        padding: 40px 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-sports__faq-list {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    details.page-sports__faq-item summary.page-sports__faq-question {
        padding: 15px;
        font-size: 1rem;
    }
    .page-sports__faq-qtext {
        font-size: 15px;
    }
    .page-sports__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    details.page-sports__faq-item .page-sports__faq-answer {
        padding: 0 15px 15px;
    }
    .page-sports__faq-answer p {
        font-size: 0.95rem;
    }
}