/* style/sports.css */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #121212; /* Inherited from body or set explicitly if not */
    color: #ffffff; /* Light text for dark background */
}

/* Header offset for main content */
.page-sports__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background-color: #017439; /* Brand color as background */
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    padding: 40px 20px; /* Added padding for mobile */
    box-sizing: border-box;
}

.page-sports__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    z-index: 0;
}

.page-sports__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.page-sports__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-sports__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ffffff;
}

.page-sports__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure buttons wrap on small 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;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure text wraps */
}

.page-sports__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

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

.page-sports__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Section Titles and Descriptions */
.page-sports__section-title {
    font-size: 2.5em;
    color: #ffffff; /* Light text for general sections */
    text-align: center;
    margin-bottom: 20px;
    margin-top: 40px;
}

.page-sports__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Text Blocks */
.page-sports__text-block {
    margin-bottom: 20px;
    color: #e0e0e0;
    font-size: 1.05em;
}

/* Lists */
.page-sports__list,
.page-sports__ordered-list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.page-sports__ordered-list {
    list-style-type: decimal;
}

.page-sports__list-item {
    margin-bottom: 10px;
    color: #e0e0e0;
}

/* Image styling */
.page-sports__image-full-width {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Video Section */
.page-sports__intro-video-section {
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
    padding: 60px 20px;
    text-align: center;
    color: #ffffff;
    box-sizing: border-box;
}

.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: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    margin: 0 auto; /* Center the video */
}

.page-sports__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
}

.page-sports__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Make the link clickable over the video */
}

/* Content Area - for general text content */
.page-sports__content-area {
    background-color: #121212; /* Body background color */
    color: #ffffff; /* Light text for dark background */
    padding: 40px 20px;
    box-sizing: border-box;
}

/* FAQ Section */
.page-sports__faq-section {
    margin-top: 40px;
    background-color: #1a1a1a; /* Slightly lighter dark background for FAQ cards */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    padding-bottom: 15px;
}

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

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
    transition: color 0.3s ease;
}

.page-sports__faq-question:hover {
    color: #017439; /* Brand color on hover */
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    transition: transform 0.3s ease;
    color: #017439; /* Brand color for toggle icon */
}

.page-sports__faq-item.active .page-sports__faq-toggle {
    transform: rotate(45deg);
    color: #C30808; /* Red for active toggle */
}

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

.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 1000px !important; /* Ensure it expands fully */
    padding: 15px; /* Expanded padding */
}

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

/* Final CTA */
.page-sports__final-cta {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

@media (max-width: 768px) {
    .page-sports__hero-section {
        min-height: 400px;
        padding: 30px 15px;
    }

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

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

    .page-sports__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 0.9em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-sports__container,
    .page-sports__faq-section,
    .page-sports__intro-video-section,
    .page-sports__content-area {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-sports__section-title {
        font-size: 1.8em;
    }

    .page-sports__section-description,
    .page-sports__text-block,
    .page-sports__list-item,
    .page-sports__faq-question,
    .page-sports__faq-answer p {
        font-size: 0.95em;
    }

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

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

    .page-sports__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure video section has header offset */
    }
    .page-sports__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-sports__hero-title {
        font-size: 1.8em;
    }
    .page-sports__section-title {
        font-size: 1.5em;
    }
}