/* style/sports.css */

/* Base styles for the page content */
.page-sports {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background handled by shared.css */
}

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

.page-sports__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
    background-color: #0d0d0d; /* Slightly lighter dark background for this section */
}

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

.page-sports__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
}

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

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

.page-sports__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

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

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

.page-sports__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

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

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

.page-sports__cta-buttons--center {
    text-align: center;
    margin-top: 40px;
}

/* Intro Section */
.page-sports__intro-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Darker background for contrast */
    color: #ffffff;
}

/* Sports Categories Section */
.page-sports__sports-categories {
    padding: 80px 0;
    background-color: #0a0a0a; /* Body background color */
    color: #ffffff;
}

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

.page-sports__category-card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent card background */
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.page-sports__category-card:hover {
    transform: translateY(-10px);
    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;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

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

.page-sports__card-text {
    font-size: 1em;
    color: #e0e0e0;
    flex-grow: 1;
}

/* Advantages Section */
.page-sports__advantages-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #ffffff;
}

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

.page-sports__advantage-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

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

.page-sports__advantage-text {
    font-size: 1em;
    color: #e0e0e0;
}

/* Promotions Section */
.page-sports__promotions-section {
    padding: 80px 0;
    background-color: #0a0a0a;
    color: #ffffff;
}

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

.page-sports__promo-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

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

.page-sports__promo-card .page-sports__card-image {
    height: 180px; /* Adjust height for promo images */
}

.page-sports__card-link {
    display: inline-block;
    margin-top: 20px;
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

/* Guide Section */
.page-sports__guide-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #ffffff;
}

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

.page-sports__step-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    padding-top: 60px; /* Space for step number */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.page-sports__step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #26A9E0;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    border: 3px solid #0a0a0a;
    box-shadow: 0 0 0 5px rgba(38, 169, 224, 0.4);
}

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

.page-sports__step-text {
    font-size: 1em;
    color: #e0e0e0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-sports__step-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #EA7C07; /* Login color for action link */
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-sports__step-link:hover {
    background-color: #c76a06;
}

/* FAQ Section */
.page-sports__faq-section {
    padding: 80px 0;
    background-color: #0a0a0a;
    color: #ffffff;
}

.page-sports__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-sports__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.page-sports__faq-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin: 0;
    font-weight: bold;
}

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

.page-sports__faq-item.active .page-sports__faq-toggle {
    transform: rotate(45deg); /* For '-' symbol if it was '+' */
}

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

.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 1000px !important; /* Use !important as required */
    padding: 15px 25px !important; /* Expanded padding */
}

.page-sports__faq-answer p {
    margin-bottom: 0;
    color: #e0e0e0; /* Ensure text color is light */
}

/* CTA Banner Section */
.page-sports__cta-banner {
    background-color: #26A9E0; /* Brand color background */
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.page-sports__cta-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.page-sports__cta-banner-title {
    font-size: 2.8em;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-sports__cta-banner-text {
    font-size: 1.2em;
    color: #f0f0f0;
    max-width: 800px;
}

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

@media (max-width: 768px) {
    .page-sports__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }
    .page-sports__hero-title {
        font-size: 2.5em;
    }
    .page-sports__hero-description {
        font-size: 1.1em;
    }
    .page-sports__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        width: 100% !important; /* Enforce full width */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-sports__container {
        padding: 0 15px !important; /* Adjust container padding for mobile */
    }
    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__section-description {
        font-size: 1em;
    }
    .page-sports__category-grid,
    .page-sports__advantages-grid,
    .page-sports__promo-grid,
    .page-sports__guide-steps {
        grid-template-columns: 1fr;
    }

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

    /* Mobile section containers responsiveness */
    .page-sports__hero-section,
    .page-sports__intro-section,
    .page-sports__sports-categories,
    .page-sports__advantages-section,
    .page-sports__promotions-section,
    .page-sports__guide-section,
    .page-sports__faq-section,
    .page-sports__cta-banner {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
        padding-left: 0 !important; /* Reset section padding */
        padding-right: 0 !important; /* Reset section padding */
    }

    /* Apply inner padding to content wrappers */
    .page-sports__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-sports__category-card,
    .page-sports__advantage-item,
    .page-sports__promo-card,
    .page-sports__step-item,
    .page-sports__faq-item {
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important; /* Ensure padding is included in width */
    }

    .page-sports__faq-question {
        padding: 15px 20px !important;
    }
    .page-sports__faq-answer {
        padding: 0 20px !important;
    }
    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 15px 20px !important;
    }

    .page-sports__cta-banner-title {
        font-size: 2em;
    }
    .page-sports__cta-banner-text {
        font-size: 1em;
    }
}

@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.5em;
    }
    .page-sports__cta-banner-title {
        font-size: 1.8em;
    }
}

/* Ensure no filter is used for images */
.page-sports img {
    filter: none; /* Explicitly ensure no filter */
}