/* style/sports.css */

/* Base styles for the page */
.page-sports {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #000000; /* Inherited from body, ensuring consistency */
    line-height: 1.6;
}

/* Typography */
.page-sports__section-title {
    font-size: 2.8em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

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

.page-sports__hero-description {
    font-size: 1.4em;
    color: #f0f0f0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-sports__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-sports__paragraph--light {
    color: #ffffff;
}

.page-sports__highlight-text {
    color: #FFD700;
    font-weight: bold;
}

/* Layout & Sections */
.page-sports__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: rgba(0, 0, 0, 0.7); /* Slightly transparent for dark body */
    border-radius: 8px;
    margin-bottom: 40px;
}

.page-sports__dark-bg {
    background-color: #2F4F4F;
    padding: 60px 20px;
    margin-bottom: 40px;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below header */
    box-sizing: border-box;
}

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

.page-sports__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(47, 79, 79, 0.7));
    z-index: 1;
}

.page-sports__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 90%;
    padding: 20px;
}

/* CTA Buttons */
.page-sports__hero-cta-buttons,
.page-sports__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

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

.page-sports__btn-primary {
    background-color: #FFD700;
    color: #2F4F4F;
    border: 2px solid #FFD700;
}

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

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

.page-sports__btn-secondary:hover {
    background-color: #FFD700;
    color: #2F4F4F;
}

.page-sports__btn-tertiary {
    background-color: #ffffff;
    color: #2F4F4F;
    border: 2px solid #ffffff;
}

.page-sports__btn-tertiary:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

/* Content Image */
.page-sports__content-image {
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 100%; /* Ensure images are responsive by default */
    height: auto; /* Maintain aspect ratio */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Sports Grid */
.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.1);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
}

.page-sports__sport-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-sports__sport-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, object-fit will handle aspect */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-sports__sport-card-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 10px;
}

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

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

.page-sports__guide-step-item {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid #FFD700;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

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

.page-sports__guide-step-description {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

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

.page-sports__promotion-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-sports__promotion-card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-sports__promotion-card-title {
    font-size: 1.7em;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-sports__promotion-card-description {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

/* Features List */
.page-sports__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-sports__feature-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 5px solid #FFD700;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 1.1em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-sports__faq-list {
    margin-top: 40px;
}

.page-sports__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-sports__faq-question-text {
    font-size: 1.3em;
    color: #FFD700;
    margin: 0;
}

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

.page-sports__faq-item.active .page-sports__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.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; /* Ensure it expands sufficiently */
    padding: 15px 25px;
}

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

@media (max-width: 768px) {
    .page-sports__hero-section {
        height: 70vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
    .page-sports__hero-title {
        font-size: 2.5em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__hero-cta-buttons,
    .page-sports__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary,
    .page-sports__btn-tertiary {
        width: 100% !important;
        max-width: 300px !important; /* Constrain button width on small screens */
        margin-bottom: 10px;
        padding: 12px 20px;
    }

    .page-sports__content-area,
    .page-sports__dark-bg {
        padding: 30px 15px;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .page-sports__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .page-sports__paragraph {
        font-size: 0.95em;
    }

    /* Mobile image responsiveness */
    .page-sports img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px; /* Ensure minimum size */
        min-height: 200px; /* Ensure minimum size */
    }

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

    .page-sports__hero-video {
        position: relative; /* Adjust for mobile if needed */
        transform: none;
        left: auto;
        top: auto;
        min-width: unset;
        min-height: unset;
    }

    .page-sports__sports-grid,
    .page-sports__guide-steps,
    .page-sports__promotion-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-sports__sport-card-image,
    .page-sports__promotion-card-image {
        height: auto; /* Allow height to be auto on mobile */
        min-height: 200px; /* Maintain minimum size */
    }

    .page-sports__faq-question {
        padding: 15px 20px;
    }

    .page-sports__faq-question-text {
        font-size: 1.1em;
    }

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

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

@media (max-width: 480px) {
    .page-sports__hero-title {
        font-size: 2em;
    }
    .page-sports__hero-description {
        font-size: 0.9em;
    }
    .page-sports__section-title {
        font-size: 1.6em;
    }
    .page-sports__paragraph {
        font-size: 0.9em;
    }
}