/* style/sports.css */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css #0a0a0a */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-sports__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Primary brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-sports__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-sports__text-block--center {
    text-align: center;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background-color: #0d0d0d; /* Slightly lighter dark background for hero */
    overflow: hidden;
}

.page-sports__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 40px;
}

.page-sports__hero-title {
    font-size: 3.5em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

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

.page-sports__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-sports__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Overlay effect */
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-small {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

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

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

.page-sports__btn-secondary {
    background-color: transparent;
    color: #26A9E0; /* Primary brand color */
    border: 2px solid #26A9E0;
}

.page-sports__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
}

.page-sports__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
    background-color: #26A9E0;
    color: #ffffff;
    border: 1px solid #26A9E0;
}

.page-sports__btn-small:hover {
    background-color: #1e87b8;
    transform: translateY(-1px);
}

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

.page-sports__cta-buttons--center {
    justify-content: center;
}

/* About s6666 App Section */
.page-sports__about-s6666-app {
    padding: 80px 0;
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff;
}

.page-sports__dark-section {
    background-color: #0a0a0a;
    color: #ffffff;
}

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

.page-sports__feature-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-sports__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px; /* Ensure images are not tiny icons */
    min-width: 200px; /* Minimum display size */
    min-height: 200px; /* Minimum display size */
    width: auto; /* Allow scaling */
    height: auto; /* Maintain aspect ratio */
}

.page-sports__feature-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-sports__feature-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Sports Types Section */
.page-sports__sports-types {
    padding: 80px 0;
    background-color: #121212; /* Another dark shade */
    color: #ffffff;
}

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

.page-sports__sport-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

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

.page-sports__sport-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Minimum display size */
    min-height: 200px; /* Minimum display size */
}

.page-sports__sport-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin: 20px 15px 10px;
}

.page-sports__sport-description {
    font-size: 0.95em;
    color: #e0e0e0;
    padding: 0 15px 20px;
}

/* How to Start Section */
.page-sports__how-to-start {
    padding: 80px 0;
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff;
}

.page-sports__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__step-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.page-sports__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #26A9E0;
    color: #ffffff;
    font-size: 1.8em;
    font-weight: bold;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #0a0a0a;
}

.page-sports__step-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-top: 20px;
    margin-bottom: 15px;
}

.page-sports__step-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Video Section */
.page-sports__video-section {
    padding: 80px 0;
    background-color: #121212;
    color: #ffffff;
}

.page-sports__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-sports__video-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
    z-index: 10; /* Ensure overlay is clickable */
}

.page-sports__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block; /* Ensure video takes full space */
}

/* Promotions Section */
.page-sports__promotions {
    padding: 80px 0;
    background-color: #0a0a0a;
    color: #ffffff;
}

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

.page-sports__promo-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-sports__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    min-width: 200px; /* Minimum display size */
    min-height: 200px; /* Minimum display size */
}

.page-sports__promo-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-sports__promo-description {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
}

/* FAQ Section */
.page-sports__faq {
    padding: 80px 0;
    background-color: #121212;
    color: #ffffff;
}

.page-sports__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    color: #ffffff; /* Ensure text is light on dark background */
}

.page-sports__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0; /* Question text in primary color */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-sports__faq-item summary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

.page-sports__faq-qtext {
    flex-grow: 1;
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #ffffff; /* Toggle icon in white */
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-sports__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: #e0e0e0;
    background-color: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom CTA Section */
.page-sports__cta-bottom {
    padding: 80px 0;
    text-align: center;
    background-color: #0d0d0d;
}

.page-sports__cta-container {
    max-width: 900px;
}

/* General image styling for content area */
.page-sports img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default object-fit */
}

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

@media (max-width: 768px) {
    .page-sports {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-sports__container {
        padding: 0 15px;
    }
    .page-sports__hero-section {
        padding: 60px 15px;
    }
    .page-sports__hero-title {
        font-size: 2.5em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-sports__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-sports__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-sports__text-block {
        font-size: 0.95em;
    }

    .page-sports__features-grid,
    .page-sports__sports-grid,
    .page-sports__steps-grid,
    .page-sports__promo-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Mobile image, video, and container adaptations */
    .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__video-wrapper,
    .page-sports__hero-section,
    .page-sports__about-s6666-app,
    .page-sports__sports-types,
    .page-sports__how-to-start,
    .page-sports__video-section,
    .page-sports__promotions,
    .page-sports__faq,
    .page-sports__cta-bottom {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    /* Specific padding for sections to avoid double padding */
    .page-sports__hero-section .page-sports__container,
    .page-sports__about-s6666-app .page-sports__container,
    .page-sports__sports-types .page-sports__container,
    .page-sports__how-to-start .page-sports__container,
    .page-sports__video-section .page-sports__container,
    .page-sports__promotions .page-sports__container,
    .page-sports__faq .page-sports__container,
    .page-sports__cta-bottom .page-sports__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-sports__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Apply header offset to video section if it's the first visible section */
    }

    .page-sports__faq-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-sports__faq-answer {
        padding: 10px 20px 15px;
    }
    .page-sports__feature-card,
    .page-sports__sport-card,
    .page-sports__step-card,
    .page-sports__promo-card,
    .page-sports__faq-item {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Ensure content area images are not too small */
.page-sports__feature-icon,
.page-sports__sport-image,
.page-sports__promo-image {
    min-width: 200px;
    min-height: 200px;
    width: auto; /* Allow scaling */
    height: auto; /* Maintain aspect ratio */
}

/* Color Contrast Fixes */
.page-sports__dark-bg {
  color: #ffffff; /* Deep dark background, light text */
  background: #000000;
}

.page-sports__light-bg {
  color: #333333; /* Light background, dark text */
  background: #ffffff;
}