/* style/resources-understanding-odds.css */

/* Base styles for the page content */
.page-resources-understanding-odds {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Explicitly set for clarity */
}

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

/* Hero Section */
.page-resources-understanding-odds__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF; /* Light text for dark background */
}

.page-resources-understanding-odds__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(1, 116, 57, 0.8), rgba(1, 116, 57, 0.6)); /* Overlay for text readability */
    z-index: 1;
}

.page-resources-understanding-odds__hero-section .page-resources-understanding-odds__container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.page-resources-understanding-odds__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFF00; /* Register/Login font color for main title */
}

.page-resources-understanding-odds__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* General Section Styles */
.page-resources-understanding-odds__section {
    padding: 60px 0;
}

.page-resources-understanding-odds__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-resources-understanding-odds__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #017439;
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-resources-understanding-odds__sub-title {
    font-size: 1.8em;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 20px;
}

.page-resources-understanding-odds__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: justify;
}

/* Color Contrast sections */
.page-resources-understanding-odds__dark-bg {
    background-color: #017439;
    color: #FFFFFF;
}

.page-resources-understanding-odds__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

/* Images */
.page-resources-understanding-odds__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources-understanding-odds__image-centered {
    display: block;
    max-width: 800px;
    height: auto;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.page-resources-understanding-odds__btn-primary,
.page-resources-understanding-odds__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding/border are included in width */
}

.page-resources-understanding-odds__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
    margin-right: 15px;
}

.page-resources-understanding-odds__btn-primary:hover {
    background-color: #e02a2a;
    border-color: #e02a2a;
    color: #FFFFFF;
}

.page-resources-understanding-odds__btn-secondary {
    background-color: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
}

.page-resources-understanding-odds__btn-secondary:hover {
    background-color: #017439;
    color: #FFFFFF;
}

.page-resources-understanding-odds__btn-large {
    padding: 18px 35px;
    font-size: 1.2em;
    min-width: 200px; /* Minimum width for larger buttons */
}

/* CTA Section */
.page-resources-understanding-odds__cta-section {
    text-align: center;
    padding: 80px 0;
}

.page-resources-understanding-odds__cta-content {
    max-width: 800px;
}

.page-resources-understanding-odds__cta-content .page-resources-understanding-odds__section-title {
    color: #FFFFFF;
}

.page-resources-understanding-odds__cta-content .page-resources-understanding-odds__section-title::after {
    background-color: #FFFFFF;
}

.page-resources-understanding-odds__cta-content .page-resources-understanding-odds__paragraph {
    color: #f0f0f0;
    margin-bottom: 40px;
}

/* FAQ Section */
.page-resources-understanding-odds__faq-section {
    padding-bottom: 80px;
}

.page-resources-understanding-odds__faq-list {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid #e0e0e0;
}

.page-resources-understanding-odds__faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.page-resources-understanding-odds__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    background-color: #FFFFFF;
    transition: background-color 0.3s ease;
}

.page-resources-understanding-odds__faq-question:hover {
    background-color: #f9f9f9;
}

.page-resources-understanding-odds__faq-title {
    font-size: 1.2em;
    color: #017439;
    margin: 0;
    flex-grow: 1;
}

.page-resources-understanding-odds__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    margin-left: 20px;
    transition: transform 0.3s ease;
}

.page-resources-understanding-odds__faq-item.active .page-resources-understanding-odds__faq-toggle {
    transform: rotate(45deg);
}

.page-resources-understanding-odds__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px; /* Initial padding 0 */
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-resources-understanding-odds__faq-item.active .page-resources-understanding-odds__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show all content */
    padding: 15px !important; /* Padding for expanded state */
}

.page-resources-understanding-odds__faq-answer .page-resources-understanding-odds__paragraph {
    margin-bottom: 0; /* Remove bottom margin for paragraphs inside FAQ answer */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-understanding-odds__main-title {
        font-size: 2.8em;
    }
    .page-resources-understanding-odds__section-title {
        font-size: 2em;
    }
    .page-resources-understanding-odds__sub-title {
        font-size: 1.5em;
    }
    .page-resources-understanding-odds__paragraph {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    /* Mobile specific overrides */
    .page-resources-understanding-odds {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources-understanding-odds__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-bottom: 40px;
    }

    .page-resources-understanding-odds__main-title {
        font-size: 2em;
    }

    .page-resources-understanding-odds__intro-text {
        font-size: 1em;
    }

    .page-resources-understanding-odds__section {
        padding: 40px 0;
    }

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

    .page-resources-understanding-odds__sub-title {
        font-size: 1.3em;
    }

    .page-resources-understanding-odds__container {
        padding: 0 15px !important; /* Add horizontal padding for mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images responsiveness */
    .page-resources-understanding-odds img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Buttons responsiveness */
    .page-resources-understanding-odds__btn-primary,
    .page-resources-understanding-odds__btn-secondary,
    .page-resources-understanding-odds a[class*="button"],
    .page-resources-understanding-odds 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;
        margin-right: 0 !important;
        margin-bottom: 15px; /* Add margin-bottom for stacking */
    }

    .page-resources-understanding-odds__cta-content {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
        align-items: center;
        gap: 15px; /* Space between stacked buttons */
    }

    /* FAQ responsiveness */
    .page-resources-understanding-odds__faq-list {
        padding: 0 15px;
    }
    .page-resources-understanding-odds__faq-question {
        padding: 15px 0;
    }
    .page-resources-understanding-odds__faq-title {
        font-size: 1.1em;
    }
    .page-resources-understanding-odds__faq-toggle {
        font-size: 1.3em;
    }
    .page-resources-understanding-odds__faq-answer {
        padding: 0 10px;
    }
    .page-resources-understanding-odds__faq-item.active .page-resources-understanding-odds__faq-answer {
        padding: 10px !important;
    }

    /* Ensure content containers don't cause overflow */
    .page-resources-understanding-odds__section,
    .page-resources-understanding-odds__card,
    .page-resources-understanding-odds__container,
    .page-resources-understanding-odds__hero-section,
    .page-resources-understanding-odds__cta-section,
    .page-resources-understanding-odds__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-resources-understanding-odds__main-title {
        font-size: 1.8em;
    }
    .page-resources-understanding-odds__section-title {
        font-size: 1.6em;
    }
    .page-resources-understanding-odds__btn-large {
        padding: 12px 20px;
        font-size: 1em;
    }
}