/* style/sports.css */

/* Base styles for the page content, ensuring light text on a dark body background */
.page-sports {
    color: #ffffff; /* Light text for dark body background #0a0a0a */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background handled by shared.css */
}

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

.page-sports__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Use auxiliary color for main titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-sports__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Adjust as needed */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Apply header offset */
    box-sizing: border-box;
}

.page-sports__hero-video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
    cursor: pointer;
}

.page-sports__hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.page-sports__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: 2;
}

.page-sports__hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
}

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

.page-sports__hero-description {
    font-size: 1.4em;
    margin-bottom: 30px;
    line-height: 1.4;
}

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

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Important for button responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    text-align: center;
}

.page-sports__btn-primary {
    background-color: #FFD700; /* Auxiliary color */
    color: #1A202C; /* Primary dark color for text */
    border: 2px solid #FFD700;
}

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

.page-sports__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Auxiliary color for text */
    border: 2px solid #FFD700;
}

.page-sports__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A202C;
}

/* Intro Section */
.page-sports__intro-section {
    padding: 80px 0;
    background-color: #1A202C; /* Primary dark color */
    color: #ffffff;
}

.page-sports__image-full-width {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto 0 auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
}

/* Popular Sports Section */
.page-sports__popular-sports-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Slightly lighter dark background for contrast */
    color: #ffffff;
}

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

.page-sports__card {
    background-color: #1A202C; /* Primary dark color for card background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    color: #ffffff;
}

.page-sports__card-image {
    max-width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
}

.page-sports__card-title {
    font-size: 1.6em;
    color: #FFD700; /* Auxiliary color for card titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports__card-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Features Section */
.page-sports__features-section {
    padding: 80px 0;
    background-color: #1A202C;
    color: #ffffff;
}

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

.page-sports__feature-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__feature-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports__feature-description {
    font-size: 1.1em;
    line-height: 1.5;
}

/* Guide Section */
.page-sports__guide-section {
    padding: 80px 0;
    background-color: #0d0d0d;
    color: #ffffff;
}

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

.page-sports__guide-step {
    background-color: #1A202C;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-sports__guide-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports__guide-description {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

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

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

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

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

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #1A202C;
    color: #FFD700;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
    background-color: #2a3447; /* Slightly lighter hover */
}

.page-sports__faq-title {
    margin: 0;
    font-size: 1.2em; /* Ensure title size is consistent */
    color: #FFD700;
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFD700;
    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;
    background-color: #2a3447; /* Slightly different background for answer */
    color: #ffffff;
}

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

.page-sports__faq-text {
    margin: 0;
    font-size: 1em;
    line-height: 1.5;
}

/* Conclusion Section */
.page-sports__conclusion-section {
    padding: 80px 0;
    background-color: #1A202C;
    color: #ffffff;
    text-align: center;
}

/* CTA buttons in conclusion */
.page-sports__conclusion-section .page-sports__cta-buttons {
    margin-top: 40px;
}

/* Global image styles for content area (min 200x200px) */
.page-sports img {
    min-width: 200px;
    min-height: 200px;
    height: auto; /* Ensure aspect ratio is maintained */
    display: block; /* Prevents extra space below images */
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 3em;
    }
    .page-sports__hero-description {
        font-size: 1.2em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__card-title {
        font-size: 1.4em;
    }
    .page-sports__feature-title {
        font-size: 1.6em;
    }
    .page-sports__guide-title {
        font-size: 1.4em;
    }
}

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

    .page-sports__hero-section {
        height: 60vh;
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-sports__hero-title {
        font-size: 2.2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        width: 100% !important; /* Ensure buttons take full width */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

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

    .page-sports__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-sports__text-block {
        font-size: 1em;
        text-align: left; /* Adjust text alignment for mobile readability */
    }

    /* Images responsiveness */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Keep min size, but allow shrinking */
        min-height: 200px !important;
    }
    .page-sports__card-image {
        height: auto !important; /* Let height adjust with aspect ratio */
        max-height: 200px; /* Cap max height to keep cards compact */
    }

    /* Video responsiveness */
    .page-sports video,
    .page-sports__hero-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: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-sports__faq-question,
    .page-sports__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 15px 15px 25px 15px;
    }
}