/* 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(--bg-color, #ffffff); /* Fallback to white if --bg-color is not set */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.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: #017439; /* 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;
    color: #555555;
}

/* --- Hero Section --- */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Responsive height */
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #ffffff;
}

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

.page-sports__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

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

.page-sports__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF; /* White text for contrast on dark overlay */
}

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

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

/* --- 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;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

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

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

.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);
    color: #FFFFFF;
}

.page-sports__full-promo-banner .page-sports__btn-primary {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 200px;
    padding: 15px 40px;
    z-index: 2;
}
.page-sports__full-promo-banner .page-sports__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}


/* --- Why Choose Us Section --- */
.page-sports__why-choose-us {
    padding: 80px 0;
    background-color: #FFFFFF; /* Light background */
    color: #333333;
}

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

.page-sports__feature-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    min-height: 250px; /* Ensure cards have minimum height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.page-sports__feature-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

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

/* --- Popular Markets Section --- */
.page-sports__popular-markets {
    padding: 80px 0;
    background-color: #017439; /* Dark brand color background */
    color: #ffffff;
}

.page-sports__popular-markets .page-sports__section-title,
.page-sports__popular-markets .page-sports__section-description {
    color: #ffffff;
}

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

.page-sports__market-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-sports__market-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-sports__market-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-sports__market-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-sports__market-text {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* --- Live Betting Section --- */
.page-sports__live-betting {
    padding: 80px 0;
    background-color: #FFFFFF;
    color: #333333;
}

.page-sports__live-betting-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.page-sports__live-betting-content {
    flex: 1;
}

.page-sports__live-betting-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-sports__live-betting-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-sports__live-betting-benefits {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-sports__live-betting-benefits li {
    font-size: 1.1em;
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
    color: #555555;
}

.page-sports__live-betting-benefits li::before {
    content: '✓';
    color: #017439;
    font-weight: bold;
    position: absolute;
    left: 0;
}

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

.page-sports__promotions .page-sports__section-title,
.page-sports__promotions .page-sports__section-description {
    color: #ffffff;
}

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

.page-sports__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    min-height: 280px; /* Ensure cards have minimum height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.page-sports__promo-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-sports__promo-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 15px;
}

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

.page-sports__promo-card .page-sports__btn-secondary {
    background-color: #C30808; /* Use red for promo buttons on dark bg */
    border-color: #C30808;
    color: #FFFF00;
    margin-top: 20px;
}
.page-sports__promo-card .page-sports__btn-secondary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-sports__full-promo-banner {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 40px;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.page-sports__btn-full-promo {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

/* --- How to Start Section --- */
.page-sports__how-to-start {
    padding: 80px 0;
    background-color: #f9f9f9;
    color: #333333;
}

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

.page-sports__step-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    min-height: 300px; /* Ensure cards have minimum height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-sports__step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #017439;
    color: #ffffff;
    font-size: 2em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.page-sports__step-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 15px;
}

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

.page-sports__step-card .page-sports__btn-secondary {
    background-color: #017439; /* Green for step buttons on light bg */
    border-color: #017439;
    color: #FFFFFF;
}
.page-sports__step-card .page-sports__btn-secondary:hover {
    background-color: #005f2e;
    border-color: #005f2e;
}

/* --- Security Section --- */
.page-sports__security {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
}

.page-sports__security .page-sports__section-title,
.page-sports__security .page-sports__section-description {
    color: #ffffff;
}

.page-sports__security-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.page-sports__security-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-sports__security-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-sports__security-content {
    flex: 1;
}

.page-sports__security-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-sports__security-features li {
    font-size: 1.1em;
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
    color: #f0f0f0;
}

.page-sports__security-features li::before {
    content: '✓';
    color: #FFFF00; /* Yellow checkmark for visibility */
    font-weight: bold;
    position: absolute;
    left: 0;
}

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

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

.page-sports__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

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

.page-sports__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
    transform: rotate(0deg); /* No rotation for '-' */
}

.page-sports__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #555555;
}

.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 20px 25px;
}

.page-sports__faq-answer p {
    margin: 0;
    padding-bottom: 10px; /* Add some space at the bottom of the paragraph */
}

/* --- CTA Section --- */
.page-sports__cta-section {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
    text-align: center;
}

.page-sports__cta-section .page-sports__section-title,
.page-sports__cta-section .page-sports__section-description {
    color: #ffffff;
}

.page-sports__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-sports__cta-buttons .page-sports__btn-primary {
    background-color: #C30808;
    color: #FFFF00;
    border-color: #C30808;
}

.page-sports__cta-buttons .page-sports__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-sports__cta-buttons .page-sports__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
}

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

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 3em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__live-betting-layout,
    .page-sports__security-layout {
        flex-direction: column;
        text-align: center;
    }
    .page-sports__live-betting-content,
    .page-sports__security-content {
        text-align: center;
    }
    .page-sports__live-betting-benefits,
    .page-sports__security-features {
        padding-left: 0;
        text-align: left; /* Keep bullet points aligned */
        margin-left: auto;
        margin-right: auto;
        max-width: 500px;
    }
    .page-sports__live-betting-benefits li::before,
    .page-sports__security-features li::before {
        left: -10px; /* Adjust checkmark position */
    }
}

@media (max-width: 768px) {
    .page-sports {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-sports__hero-section {
        height: 60vh;
        min-height: 350px;
    }
    .page-sports__hero-title {
        font-size: 2.2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        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-buttons,
    .page-sports__hero-cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 15px;
    }
    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__section-description {
        font-size: 1em;
    }

    /* Images responsiveness for mobile */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__section,
    .page-sports__container,
    .page-sports__market-item,
    .page-sports__promo-card,
    .page-sports__step-card,
    .page-sports__live-betting-image-wrapper,
    .page-sports__security-image-wrapper,
    .page-sports__full-promo-banner,
    .page-sports__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-sports__full-promo-banner .page-sports__btn-primary {
        width: calc(100% - 30px); /* Adjust for padding */
    }
    .page-sports__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-sports__faq-answer {
        padding: 0 20px;
    }
    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 15px 20px;
    }
    .page-sports__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}