/* style/sports.css */

/* Global styles for page-sports scope */
.page-sports {
    background-color: #08160F; /* Custom background color */
    color: #F2FFF6; /* Custom main text color */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 0; /* body already handles --header-offset */
}

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

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

.page-sports__text-block {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    color: #A7D9B8; /* Secondary text color */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Button styles */
.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-sports__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
    color: #ffffff;
    border: none;
}

.page-sports__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-sports__btn-secondary {
    background: transparent;
    color: #F2FFF6; /* Main text color */
    border: 2px solid #2E7A4E; /* Custom border color */
}

.page-sports__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-sports__hero-image-wrapper {
    width: 100%;
    max-height: 70vh; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px; /* Space between image and content */
}

.page-sports__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-sports__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.page-sports__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    color: #F2FFF6;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -1px;
}

.page-sports__description {
    font-size: 1.2em;
    color: #A7D9B8;
    margin-bottom: 40px;
}

.page-sports__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* About Section */
.page-sports__about-section {
    padding: 80px 0;
    background-color: #11271B; /* Card BG color for dark section */
}

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

.page-sports__feature-card {
    background-color: #0A4B2C; /* Deep Green for feature cards */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-sports__feature-icon {
    width: 100%;
    max-width: 400px; /* Ensure images in cards are large enough */
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-sports__feature-title {
    font-size: 1.6em;
    color: #F2FFF6;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports__feature-text {
    font-size: 1em;
    color: #A7D9B8;
}

/* Bet Types Section */
.page-sports__bet-types {
    padding: 80px 0;
    background-color: #08160F; /* Main background for light section */
}

.page-sports__types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.page-sports__type-card {
    background-color: #11271B; /* Card BG color */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid #2E7A4E; /* Custom border color */
}

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

.page-sports__type-description {
    font-size: 0.95em;
    color: #A7D9B8;
}

/* Guide Section */
.page-sports__guide-section {
    padding: 80px 0;
    background-color: #11271B; /* Card BG color for dark section */
}

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

.page-sports__step-card {
    background-color: #0A4B2C; /* Deep Green for step cards */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-sports__step-number {
    font-size: 3em;
    font-weight: bold;
    color: #57E38D; /* Glow color */
    margin-bottom: 15px;
    line-height: 1;
}

.page-sports__step-title {
    font-size: 1.6em;
    color: #F2FFF6;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports__step-description {
    font-size: 1em;
    color: #A7D9B8;
    margin-bottom: 25px;
}

/* Promotions Section */
.page-sports__promotions-section {
    padding: 80px 0;
    background-color: #08160F; /* Main background for light section */
}

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

.page-sports__promo-card {
    background-color: #11271B; /* Card BG color */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    border: 1px solid #2E7A4E; /* Custom border color */
}

.page-sports__promo-image {
    width: 100%;
    height: 220px; /* Fixed height for promo images */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-sports__promo-card .page-sports__promo-title {
    font-size: 1.4em;
    color: #F2FFF6;
    padding: 15px 20px 10px;
    font-weight: bold;
}

.page-sports__promo-card .page-sports__promo-description {
    font-size: 0.95em;
    color: #A7D9B8;
    padding: 0 20px 20px;
    flex-grow: 1;
}

.page-sports__promo-card .page-sports__btn-primary {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

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

/* FAQ Section */
.page-sports__faq-section {
    padding: 80px 0;
    background-color: #11271B; /* Card BG color for dark section */
}

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

.page-sports__faq-item {
    background-color: #0A4B2C; /* Deep Green for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2E7A4E; /* Custom border color */
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #F2FFF6;
    cursor: pointer;
    background-color: #0A4B2C;
    list-style: none; /* Remove default marker for summary */
}
.page-sports__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-sports__faq-qtext {
    flex-grow: 1;
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #57E38D; /* Glow color */
}

.page-sports__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: #A7D9B8;
    max-height: 0; /* Hidden by default */
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-sports__faq-item[open] .page-sports__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding: 0 20px 20px;
}

.page-sports__faq-item[open] .page-sports__faq-question {
    border-bottom: 1px solid #1E3A2A; /* Divider color */
}


/* Conclusion Section */
.page-sports__conclusion-section {
    padding: 80px 0;
    text-align: center;
    background-color: #08160F; /* Main background */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-sports__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-sports__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    /* General mobile padding */
    .page-sports__container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-sports__hero-section {
        padding-bottom: 40px;
    }

    .page-sports__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-sports__description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-sports__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;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-sports__text-block {
        font-size: 0.95em;
        margin-bottom: 25px;
    }

    .page-sports__feature-card,
    .page-sports__type-card,
    .page-sports__step-card,
    .page-sports__promo-card {
        padding: 20px;
    }

    .page-sports__feature-title,
    .page-sports__type-title,
    .page-sports__step-title,
    .page-sports__promo-title {
        font-size: 1.4em;
    }

    .page-sports__feature-text,
    .page-sports__type-description,
    .page-sports__step-description,
    .page-sports__promo-description {
        font-size: 0.9em;
    }

    /* Images responsiveness */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px; /* Enforce min size even on mobile */
        min-height: 200px; /* Enforce min size even on mobile */
    }

    .page-sports__hero-image-wrapper,
    .page-sports__features-grid,
    .page-sports__types-grid,
    .page-sports__guide-steps,
    .page-sports__promo-cards,
    .page-sports__faq-list,
    .page-sports__cta-full-width {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-sports__promo-image {
        height: auto !important; /* Allow height to adjust for mobile */
        max-height: 200px; /* Max height to prevent excessively tall images */
    }

    .page-sports__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

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