/* style/sports.css */
.page-sports {
    font-family: 'Arial', sans-serif;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: #121212; /* Inherit from body or ensure consistency */
    line-height: 1.6;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-sports__hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
    cursor: pointer; /* Added for video click functionality */
}

.page-sports__hero-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: 2;
}

.page-sports__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
}

.page-sports__hero-title {
    font-size: 3.2em;
    color: #E0B75D; /* Auxiliary color for prominence */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-sports__hero-description {
    font-size: 1.2em;
    color: #ffffff;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

/* General Section Styles */
.page-sports__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-sports__section-title {
    font-size: 2.5em;
    color: #E0B75D;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-sports__section-title--light {
    color: #ffffff;
}

.page-sports__text-block {
    font-size: 1.1em;
    margin-bottom: 30px;
    text-align: center;
    color: #f0f0f0;
}

.page-sports__text-block--light {
    color: #ffffff;
}

/* Button Styles */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-link {
    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, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for mobile responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-sports__btn-primary {
    background-color: #E0B75D; /* Auxiliary color */
    color: #0A2463; /* Primary color for contrast */
    border: 2px solid #E0B75D;
}

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

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

.page-sports__btn-secondary:hover {
    background-color: #E0B75D;
    color: #0A2463;
}

.page-sports__btn-link {
    background-color: transparent;
    color: #E0B75D;
    border: none;
    padding: 10px 0;
    font-size: 1em;
}

.page-sports__btn-link:hover {
    text-decoration: underline;
    color: #ffffff;
}

.page-sports__btn-primary--center {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 300px;
}

/* Image Styles */
.page-sports img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-sports__image-full-width {
    width: 100%;
    margin: 40px 0;
}

.page-sports__image-center {
    display: block;
    margin: 40px auto;
}

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

.page-sports__grid-container--two-cols {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Card Styles */
.page-sports__sport-card,
.page-sports__advantage-card,
.page-sports__promotion-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly visible on dark background */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
}

.page-sports__sport-card:hover,
.page-sports__advantage-card:hover,
.page-sports__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-sports__card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.page-sports__card-title {
    font-size: 1.4em;
    color: #E0B75D;
    margin-bottom: 10px;
}

.page-sports__card-title a {
    color: #E0B75D;
    text-decoration: none;
}

.page-sports__card-title a:hover {
    text-decoration: underline;
    color: #ffffff;
}

.page-sports__card-description {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1; /* Ensures cards with less text align at bottom */
}

.page-sports__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-sports__light-bg .page-sports__card-title,
.page-sports__light-bg .page-sports__card-title a {
    color: #0A2463;
}

.page-sports__light-bg .page-sports__card-description {
    color: #333333;
}

.page-sports__light-bg .page-sports__btn-link {
    color: #0A2463;
}

.page-sports__light-bg .page-sports__btn-link:hover {
    color: #E0B75D;
}

/* Dark Background Sections */
.page-sports__dark-bg {
    background-color: #0A2463; /* Primary brand color */
    color: #ffffff;
}

/* List Styles */
.page-sports__guide-list {
    max-width: 800px;
    margin: 40px auto;
    padding-left: 20px;
    list-style: decimal;
    color: #f0f0f0;
}

.page-sports__guide-list li {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-sports__guide-list strong {
    color: #E0B75D;
}

/* FAQ Section */
.page-sports__faq-container {
    max-width: 800px;
    margin: 40px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
}

.page-sports__faq-item:last-child {
    border-bottom: none;
}

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

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

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

.page-sports__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #E0B75D;
    transition: transform 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
    transform: rotate(45deg); /* Plus to Minus visual effect */
}

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

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

.page-sports__faq-answer p {
    margin: 0;
    padding-bottom: 15px; /* Spacing for last paragraph */
}

.page-sports__faq-answer a {
    color: #E0B75D;
    text-decoration: none;
}

.page-sports__faq-answer a:hover {
    text-decoration: underline;
}

/* CTA Section */
.page-sports__cta-section {
    padding: 80px 20px;
    text-align: center;
}

.page-sports__cta-content {
    max-width: 900px;
    margin: 0 auto;
}

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

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

@media (max-width: 768px) {
    .page-sports__hero-section {
        height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-sports__hero-title {
        font-size: 2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-sports__hero-cta-buttons .page-sports__btn-primary,
    .page-sports__hero-cta-buttons .page-sports__btn-secondary {
        width: 100%;
        max-width: 300px; /* Constrain width for better look */
        margin: 0 auto; /* Center buttons */
    }

    .page-sports__content-area {
        padding: 40px 15px;
    }
    .page-sports__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-sports__text-block {
        font-size: 1em;
    }

    .page-sports__grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-sports__grid-container--two-cols {
        grid-template-columns: 1fr;
    }

    .page-sports__card-image {
        height: 180px;
    }

    .page-sports__guide-list {
        padding-left: 15px;
    }
    .page-sports__guide-list li {
        font-size: 1em;
    }

    .page-sports__faq-question {
        padding: 15px 20px;
    }
    .page-sports__faq-title {
        font-size: 1.1em;
    }
    .page-sports__faq-answer {
        padding: 0 20px;
    }
    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 15px 20px;
    }

    .page-sports__cta-section {
        padding: 60px 15px;
    }
    .page-sports__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-sports__cta-buttons .page-sports__btn-primary,
    .page-sports__cta-buttons .page-sports__btn-secondary {
        width: 100%;
        max-width: 300px; /* Constrain width for better look */
        margin: 0 auto; /* Center buttons */
    }

    /* Mobile specific image/video/container rules */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-sports__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__hero-section,
    .page-sports__sports-categories,
    .page-sports__advantages-section,
    .page-sports__promotions-section,
    .page-sports__guide-section,
    .page-sports__why-choose-us-section,
    .page-sports__faq-section,
    .page-sports__cta-section,
    .page-sports__promotion-card,
    .page-sports__sport-card,
    .page-sports__advantage-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by content-area for consistency or specific sections */
    }

    .page-sports__hero-section,
    .page-sports__sports-categories,
    .page-sports__promotions-section,
    .page-sports__why-choose-us-section,
    .page-sports__cta-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-sports__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}