/* style/sports.css */

/* General Page Styles */
.page-sports {
    font-family: 'Arial', sans-serif;
    color: #f0f0f0; /* Light text for dark body background */
    line-height: 1.6;
    background-color: transparent; /* Body background from shared.css */
}

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

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

.page-sports__dark-section {
    background-color: #003366; /* Main brand color for dark sections */
    color: #ffffff;
}

.page-sports__section-title {
    font-size: 2.5em;
    color: #FFCC00; /* Auxiliary color for titles */
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-sports__dark-section .page-sports__section-title {
    color: #ffffff; /* White title on dark blue background */
}

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

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

.page-sports__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-sports__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-sports__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
    border-radius: 10px;
}

.page-sports__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFCC00; /* Gold for main title */
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-sports__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
    color: #f0f0f0;
}

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

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

.page-sports__btn-primary {
    background-color: #FFCC00; /* Gold button */
    color: #003366; /* Dark blue text */
    border: 2px solid #FFCC00;
}

.page-sports__btn-primary:hover {
    background-color: #e6b800;
    transform: translateY(-3px);
}

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

.page-sports__btn-secondary:hover {
    background-color: #FFCC00;
    color: #003366;
    transform: translateY(-3px);
}

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

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

.page-sports__card {
    background-color: rgba(255, 255, 255, 0.1); /* Light transparent background for cards on dark body */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #f0f0f0; /* Light text for card content */
    height: 100%; /* Ensure cards in a row have equal height */
    display: flex;
    flex-direction: column;
}

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

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

.page-sports__card-description {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1; /* Allow description to take available space */
}

/* Images within content */
.page-sports__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block; /* Ensure images are block level */
}

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

/* Lists */
.page-sports__ordered-list,
.page-sports__unordered-list {
    list-style-position: inside;
    text-align: left;
    max-width: 800px;
    margin: 30px auto;
    padding-left: 0; /* Remove default padding */
}

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

.page-sports__unordered-list {
    list-style-type: disc;
}

.page-sports__list-item {
    font-size: 1.1em;
    margin-bottom: 10px;
    padding-left: 10px;
}

.page-sports__list-item strong {
    color: #FFCC00; /* Gold for strong text in lists */
}

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

.page-sports__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #f0f0f0;
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #004488; /* Slightly lighter blue for question background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle separator */
    transition: background-color 0.3s ease;
}

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

.page-sports__faq-title {
    font-size: 1.25em;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    text-align: left;
    flex-grow: 1;
}

.page-sports__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFCC00; /* Gold for toggle icon */
    margin-left: 15px;
    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;
    text-align: left;
}

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

.page-sports__faq-answer .page-sports__text-block {
    margin-bottom: 10px;
    color: #e0e0e0;
}

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

@media (max-width: 768px) {
    .page-sports__hero-section {
        min-height: 500px;
        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__section-title {
        font-size: 1.8em;
    }
    .page-sports__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-sports__section,
    .page-sports__container,
    .page-sports__card,
    .page-sports__faq-item,
    .page-sports__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-sports__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin-left: auto;
        margin-right: auto;
    }
    .page-sports__grid-layout {
        grid-template-columns: 1fr;
    }
    .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: 10px 20px;
        padding-top: 0;
    }
    .page-sports__ordered-list,
    .page-sports__unordered-list {
        margin-left: 0;
        padding-left: 20px;
        text-align: left;
    }
    .page-sports__list-item {
        font-size: 1em;
    }
}

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