/* style/sports.css */

/* Base Styles */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #ffffff); /* Inherit from shared or default to white */
}

/* Color Contrast Handling */
.page-sports__dark-bg {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
}

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

.page-sports__card--white-bg {
    background-color: #ffffff;
    color: #333333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
}

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

.page-sports__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

.page-sports__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

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

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    overflow: hidden;
    text-align: center;
    background-color: #26A9E0; /* Ensure dark background for hero */
}

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

.page-sports__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Slightly dim image for text readability */
    filter: none; /* Ensure no color filters */
    min-width: 200px; /* Min size enforcement */
    min-height: 200px; /* Min size enforcement */
}

.page-sports__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: #ffffff;
}

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

.page-sports__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    line-height: 1.5;
}

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

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-link,
.page-sports a[class*="button"],
.page-sports a[class*="btn"] {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

.page-sports__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

.page-sports__btn-link {
    color: #26A9E0;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    font-weight: normal;
}

.page-sports__btn-link:hover {
    color: #1a7bb6;
}

.page-sports__btn-text-link {
    color: #ffffff; /* White text for link in dark background FAQ */
    text-decoration: underline;
}

.page-sports__btn-text-link:hover {
    color: #e0e0e0;
}

.page-sports__cta-section {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

.page-sports__grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Cards */
.page-sports__card {
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-sports__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    filter: none; /* Ensure no color filters */
    min-width: 200px; /* Min size enforcement */
    min-height: 200px; /* Min size enforcement */
}

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

.page-sports__card-description {
    font-size: 1em;
    line-height: 1.6;
    text-align: justify;
    flex-grow: 1; /* Make description fill available space */
}

/* Features */
.page-sports__feature-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

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

.page-sports__feature-description {
    font-size: 1em;
    line-height: 1.6;
    text-align: justify;
}

/* Guide List */
.page-sports__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

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

.page-sports__guide-step-title {
    font-size: 1.3em;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-sports__guide-step-description {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Promotions */
.page-sports__promo-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-sports__promo-image {
    width: 100%;
    height: 250px; /* Adjust height for promo images */
    object-fit: cover;
    filter: none; /* Ensure no color filters */
    min-width: 200px; /* Min size enforcement */
    min-height: 200px; /* Min size enforcement */
}

.page-sports__promo-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin: 20px 15px 10px;
    font-weight: bold;
}

.page-sports__promo-description {
    padding: 0 20px 20px;
    font-size: 1em;
    line-height: 1.6;
    text-align: justify;
}

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

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

.page-sports__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-sports__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-sports__faq-question {
    flex-grow: 1;
    pointer-events: auto; /* Ensure summary text is clickable */
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

.page-sports__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    line-height: 1.6;
    text-align: justify;
    color: #ffffff;
}

.page-sports__faq-answer p {
    margin-bottom: 10px;
}

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

@media (max-width: 768px) {
    .page-sports__hero-section {
        flex-direction: column;
        text-align: center;
        min-height: 500px;
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-sports__hero-content {
        max-width: 100%;
    }

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

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

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

    .page-sports__btn-primary,
    .page-sports__btn-secondary,
    .page-sports a[class*="button"],
    .page-sports a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-sports__cta-section {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-sports__container,
    .page-sports__section,
    .page-sports__box,
    .page-sports__grid-3,
    .page-sports__grid-2,
    .page-sports__faq-section,
    .page-sports__promotions,
    .page-sports__guide {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    /* Specific image sizing for cards on mobile */
    .page-sports__card-image,
    .page-sports__promo-image {
        width: 100% !important;
        height: auto !important; /* Allow height to adjust naturally */
        min-height: 200px !important; /* Maintain minimum height */
        object-fit: cover;
    }

    /* Video responsiveness (if any, though none currently in HTML) */
    .page-sports video,
    .page-sports__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-sports__video-section,
    .page-sports__video-container,
    .page-sports__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-sports__faq-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }

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

@media (max-width: 480px) {
    .page-sports__hero-title {
        font-size: 1.8em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        padding: 12px 25px;
    }
}