.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #f8f8f8; /* A light background for the page content */
}

/* Ensure the main content has padding-top to clear the fixed header */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed */
    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 {
    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.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
}

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

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

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

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

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

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-link {
    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;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't make buttons too wide */
}

.page-sports__btn-primary {
    background-color: #C30808; /* Registration/Login Red */
    color: #FFFF00; /* Registration/Login Yellow Font */
    border: 2px solid #C30808;
}

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

.page-sports__btn-secondary {
    background-color: transparent;
    color: #FFFFFF; /* White text for dark backgrounds */
    border: 2px solid #FFFFFF;
}

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

.page-sports__btn-link {
    background-color: transparent;
    color: #017439;
    border: 1px solid #017439;
    padding: 10px 20px;
    font-size: 1em;
    margin-top: 10px;
}

.page-sports__btn-link:hover {
    background-color: #017439;
    color: #FFFFFF;
}

/* Section specific styles */
.page-sports__intro-section,
.page-sports__how-to-bet-section,
.page-sports__promotions-section,
.page-sports__app-download-section {
    background-color: #ffffff; /* Light background for content */
    color: #333333;
}

.page-sports__betting-types-section,
.page-sports__live-betting-section,
.page-sports__security-support-section,
.page-sports__faq-section {
    background-color: #017439; /* Brand green background */
    color: #ffffff; /* White text for dark background */
}

.page-sports__betting-types-section .page-sports__section-title,
.page-sports__live-betting-section .page-sports__section-title,
.page-sports__security-support-section .page-sports__section-title,
.page-sports__faq-section .page-sports__section-title {
    color: #ffffff;
}

.page-sports__betting-types-section .page-sports__text-block,
.page-sports__live-betting-section .page-sports__text-block,
.page-sports__security-support-section .page-sports__text-block,
.page-sports__faq-section .page-sports__text-block {
    color: #f0f0f0;
}

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

.page-sports__card {
    background-color: #ffffff;
    color: #333333;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.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;
    display: block;
}

.page-sports__card-title {
    font-size: 1.4em;
    color: #017439;
    margin: 20px 20px 10px;
    font-weight: bold;
}

.page-sports__card-text {
    font-size: 1em;
    color: #555555;
    padding: 0 20px 20px;
    flex-grow: 1; /* Ensures text block takes available space */
}

.page-sports__card .page-sports__btn-link {
    margin: 0 20px 20px;
    align-self: flex-start;
}

.page-sports__numbered-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
    margin-top: 30px;
}

.page-sports__list-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    padding-left: 60px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-sports__list-item::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 20px;
    background-color: #017439;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
}

.page-sports__list-title {
    font-size: 1.3em;
    color: #017439;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-sports__list-description {
    color: #555555;
    margin-bottom: 10px;
}

.page-sports__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 10px;
}

.page-sports__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

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

.page-sports__cta-buttons--left {
    justify-content: flex-start;
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.page-sports__app-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-sports__app-content {
    flex: 1;
    min-width: 300px;
}

.page-sports__app-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 250px;
    max-width: 400px; /* Limit image size on larger screens */
}

.page-sports__app-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.page-sports__faq-item {
    background-color: #1a8a4f; /* Slightly lighter green for FAQ items */
    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: #017439; /* Brand green for question */
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-sports__faq-heading {
    margin: 0;
    font-size: 1.2em; /* Ensure heading inside question is readable */
    color: #ffffff;
}

.page-sports__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to X, or change to minus */
    content: "−"; /* Visually change */
}

.page-sports__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: #1a8a4f; /* Lighter green for answer background */
    color: #f0f0f0;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-sports__faq-text {
    margin: 0;
    font-size: 1em;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 2.8em;
    }
    .page-sports__hero-description {
        font-size: 1.1em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-sports__app-flex {
        flex-direction: column;
        text-align: center;
    }
    .page-sports__app-image-wrapper {
        max-width: 300px;
    }
    .page-sports__cta-buttons--left {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-sports__hero-title {
        font-size: 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 {
        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-title {
        font-size: 1.8em;
    }
    .page-sports__text-block {
        font-size: 1em;
    }
    .page-sports__container {
        padding: 20px 15px; /* Add side padding for mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Images responsiveness */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__card-image {
        height: 180px; /* Adjust height for mobile cards */
    }
    .page-sports__app-image {
        max-width: 80% !important;
        margin: 0 auto;
    }

    /* Video responsiveness */
    .page-sports video,
    .page-sports__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-sports__live-betting-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure video section has header offset */
    }

    /* Button containers responsiveness */
    .page-sports__cta-buttons,
    .page-sports__button-group,
    .page-sports__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column; /* Stack buttons vertically on mobile */
    }
    .page-sports__cta-buttons--center,
    .page-sports__cta-buttons--left {
        flex-direction: column;
        align-items: center; /* Center stacked buttons */
    }

    /* FAQ adjustments */
    .page-sports__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-sports__faq-heading {
        font-size: 1.1em;
    }
    .page-sports__faq-answer {
        padding: 15px 20px;
    }
}