/* style/sports.css */

/* Base styles for the sports page */
.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark background */
    background-color: var(--dark-bg-color); /* Inherit from shared.css */
}

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

/* Section titles */
.page-sports__section-title {
    font-size: 2.5rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

/* Section descriptions */
.page-sports__section-description {
    font-size: 1.1rem;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    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: #1a8cc4;
    border-color: #1a8cc4;
}

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

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

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    text-align: center;
    padding-bottom: 60px;
}

.page-sports__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}

.page-sports__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-sports__hero-section .page-sports__container {
    position: relative;
    z-index: 2;
    padding-top: 0; /* Reset padding-top from header offset on inner container */
}

.page-sports__hero-title {
    font-size: 3.8rem;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-sports__hero-description {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Feature Section */
.page-sports__features-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background for features */
    color: #333333; /* Dark text for light background */
}

.page-sports__features-section .page-sports__section-title,
.page-sports__features-section .page-sports__section-description {
    color: #333333;
}

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

.page-sports__feature-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333; /* Dark text for light card */
}

.page-sports__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-sports__feature-icon {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px; /* Ensure minimum image size */
    min-height: 200px;
}

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

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

/* Video Section */
.page-sports__video-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color background */
    color: #ffffff; /* White text for brand color background */
    padding-top: 40px; /* Adjust if header offset is already applied to main */
}

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

.page-sports__video-wrapper .page-sports__video,
.page-sports__video-wrapper .page-sports__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.page-sports__video-wrapper .page-sports__video-link {
    display: block; /* Make the link cover the video */
}

/* Sports Categories Section */
.page-sports__sports-categories {
    padding: 80px 0;
    background-color: #f0f2f5; /* Light grey background */
    color: #333333;
}

.page-sports__sports-categories .page-sports__section-title,
.page-sports__sports-categories .page-sports__section-description {
    color: #333333;
}

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

.page-sports__category-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

.page-sports__category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-sports__category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    min-width: 200px; /* Minimum size */
    min-height: 200px;
}

.page-sports__category-card h3 {
    font-size: 1.5rem;
    color: #26A9E0;
    padding: 20px 20px 10px;
    font-weight: bold;
}

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

.page-sports__category-link {
    display: block;
    padding: 15px 20px;
    background-color: #26A9E0;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-sports__category-link:hover {
    background-color: #1a8cc4;
}

/* Promotions CTA Section */
.page-sports__promotions-cta,
.page-sports__final-cta {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color background */
    color: #ffffff; /* White text */
    text-align: center;
}

.page-sports__promotions-cta .page-sports__section-title,
.page-sports__promotions-cta .page-sports__section-description,
.page-sports__final-cta .page-sports__section-title,
.page-sports__final-cta .page-sports__section-description {
    color: #ffffff;
}

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

.page-sports__faq-section .page-sports__section-title,
.page-sports__faq-section .page-sports__section-description {
    color: #333333;
}

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

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

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #e6f7ff; /* Lighter brand blue for question background */
    transition: background-color 0.3s ease;
}

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

.page-sports__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
    transform: rotate(45deg);
}

.page-sports__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
    background-color: #f9f9f9;
}

.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px;
}

.page-sports__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* Dark background text color override for specific sections */
.page-sports__dark-bg .page-sports__section-title,
.page-sports__dark-bg .page-sports__section-description,
.page-sports__dark-bg p,
.page-sports__dark-bg h2,
.page-sports__dark-bg h3 {
    color: #ffffff;
}

/* Light background text color override for specific sections */
.page-sports__light-bg .page-sports__section-title,
.page-sports__light-bg .page-sports__section-description,
.page-sports__light-bg p,
.page-sports__light-bg h2,
.page-sports__light-bg h3 {
    color: #333333;
}


/* Responsive styles */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 3rem;
    }

    .page-sports__hero-description {
        font-size: 1.1rem;
    }

    .page-sports__section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-sports {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-sports__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Fixed header offset for mobile */
    .page-sports__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-sports__hero-title {
        font-size: 2.2rem;
    }

    .page-sports__hero-description {
        font-size: 1rem;
    }

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

    .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__section-title {
        font-size: 1.8rem;
    }

    .page-sports__section-description {
        font-size: 0.95rem;
    }

    .page-sports__features-grid,
    .page-sports__categories-grid {
        grid-template-columns: 1fr;
    }

    .page-sports__feature-card,
    .page-sports__category-card {
        padding: 20px;
        margin: 0 5px; /* Add some horizontal margin for better spacing on small screens */
    }

    /* Images responsiveness for mobile */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-sports__feature-icon,
    .page-sports__category-image {
        height: auto !important; /* Allow auto height on mobile */
    }

    /* Video responsiveness for mobile */
    .page-sports video,
    .page-sports__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-sports__video-section,
    .page-sports__video-container,
    .page-sports__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }

    .page-sports__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    }

    .page-sports__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-sports__faq-answer {
        padding: 0 20px;
    }

    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 10px 20px;
    }
}