/* style/sports.css */

/* Base Styles for the page-sports scope */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Ensure consistency with body background */
}

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

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

.page-sports__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for titles */
    font-weight: bold;
}

.page-sports__text-block {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Color contrast classes */
.page-sports__dark-bg {
    background-color: #26A9E0;
    color: #ffffff; /* Light text for dark background */
}

.page-sports__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
}

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

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

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

.page-sports__overlay {
    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-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 20px;
}

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

.page-sports__description {
    font-size: 1.4em;
    margin-bottom: 40px;
    line-height: 1.5;
    color: #f0f0f0;
}

.page-sports__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.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;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

.page-sports__btn-secondary:hover {
    background-color: #e0e0e0;
    color: #1a8ccb;
    border-color: #1a8ccb;
}

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

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

.page-sports__grid--columns-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Card Styles */
.page-sports__card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease;
    color: #333333; /* Dark text for light card background */
}

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

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

.page-sports__card-text {
    font-size: 1em;
    color: #555555;
}

/* Advantage Items */
.page-sports__advantage-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    color: #333333;
}

.page-sports__advantage-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #26A9E0;
    font-weight: bold;
}

.page-sports__advantage-text {
    font-size: 0.95em;
    color: #555555;
}

/* Promotion List */
.page-sports__promotion-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-sports__promotion-item {
    background-color: #f8f8f8;
    border-left: 5px solid #26A9E0;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-sports__promotion-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-sports__promotion-description {
    font-size: 0.95em;
    color: #555555;
}

/* Guide List */
.page-sports__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__guide-item {
    background-color: #ffffff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    color: #333333;
}

.page-sports__guide-item:last-child {
    margin-bottom: 0;
}

.page-sports__guide-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-sports__guide-text {
    font-size: 1em;
    color: #555555;
}

/* Image Styles */
.page-sports__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 40px;
    border-radius: 10px;
    object-fit: cover; /* Ensures images cover their area without distortion */
}

.page-sports__image--full-width {
    width: 100%;
}

.page-sports__image--center {
    margin-left: auto;
    margin-right: auto;
}

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

.page-sports__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden; /* Important for max-height transition */
    color: #333333;
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    font-weight: bold;
    color: #26A9E0;
    transition: background-color 0.3s ease;
}

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

.page-sports__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #26A9E0;
}

.page-sports__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

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

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

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

.page-sports__faq-text {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1em;
    color: #555555;
}

/* Final CTA Section */
.page-sports__cta-final-section {
    padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__main-title {
        font-size: 3em;
    }
    .page-sports__description {
        font-size: 1.2em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-sports__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-sports__main-title {
        font-size: 2.5em;
    }
    .page-sports__description {
        font-size: 1.1em;
    }
    .page-sports__section-title {
        font-size: 1.8em;
    }

    .page-sports__cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%; /* Ensure container fills width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-sports__btn-primary,
    .page-sports__btn-secondary,
    .page-sports a[class*="button"],
    .page-sports a[class*="btn"] {
        width: 100% !important; /* Full width buttons */
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-sports__grid {
        grid-template-columns: 1fr;
    }

    /* Mobile image responsive */
    .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__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; /* Ensure no overflow */
    }

    /* Mobile video responsive */
    .page-sports video,
    .page-sports__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Ensure video section has padding-top on mobile too */
    .page-sports__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        min-height: 500px;
    }

    .page-sports__faq-question {
        padding: 15px 20px;
    }
    .page-sports__faq-answer {
        padding: 0 20px;
    }
    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 15px 20px 20px;
    }
}

@media (max-width: 480px) {
    .page-sports__main-title {
        font-size: 2em;
    }
    .page-sports__description {
        font-size: 1em;
    }
    .page-sports__section-title {
        font-size: 1.5em;
    }
    .page-sports__hero-section {
        min-height: 400px;
    }
}