/* General styles for the page content */
.page-resources-understanding-game-odds {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #ffffff; /* Default body background is white */
}

/* Section specific styles */
.page-resources-understanding-game-odds__section {
    padding: 60px 0;
    text-align: center;
}

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

.page-resources-understanding-game-odds__section-title {
    font-size: 32px;
    color: #017439; /* Primary color for titles */
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.page-resources-understanding-game-odds__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 3px;
    background-color: #017439;
    border-radius: 2px;
}

.page-resources-understanding-game-odds__sub-title {
    font-size: 24px;
    color: #017439;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-resources-understanding-game-odds__text-block {
    font-size: 17px;
    margin-bottom: 25px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

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

/* Hero Section */
.page-resources-understanding-game-odds__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background: linear-gradient(135deg, #e0ffe0, #ffffff); /* Light gradient background */
    overflow: hidden;
}

.page-resources-understanding-game-odds__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-resources-understanding-game-odds__hero-image {
    width: 100%;
    max-width: 1000px; /* Adjust max-width for image in hero */
    height: auto;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.page-resources-understanding-game-odds__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-50px); /* Lift content slightly over image */
    margin-top: -50px; /* Adjust to pull content up */
}

.page-resources-understanding-game-odds__hero-content h1 {
    font-size: 42px;
    color: #017439;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-resources-understanding-game-odds__hero-description {
    font-size: 19px;
    color: #555555;
    margin-bottom: 30px;
    text-align: center;
}

.page-resources-understanding-game-odds__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #C30808; /* Red for CTA, as per custom color rules */
    color: #FFFF00; /* Yellow font for CTA, as per custom color rules */
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources-understanding-game-odds__cta-button:hover {
    background: #a80707; /* Darker red on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Card styles */
.page-resources-understanding-game-odds__grid-3-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-resources-understanding-game-odds__grid-2-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-resources-understanding-game-odds__card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-understanding-game-odds__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-resources-understanding-game-odds__card-title {
    font-size: 22px;
    color: #017439;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-resources-understanding-game-odds__list {
    list-style: disc;
    padding-left: 30px;
    margin-bottom: 25px;
    text-align: left;
    font-size: 17px;
}

.page-resources-understanding-game-odds__list li {
    margin-bottom: 10px;
}

/* Dark Section for contrast */
.page-resources-understanding-game-odds__dark-section {
    background-color: #017439; /* Primary color as background */
    color: #ffffff; /* White text for dark background */
}

.page-resources-understanding-game-odds__dark-section .page-resources-understanding-game-odds__section-title,
.page-resources-understanding-game-odds__dark-section .page-resources-understanding-game-odds__sub-title {
    color: #ffffff; /* Ensure titles are white */
}

.page-resources-understanding-game-odds__dark-section .page-resources-understanding-game-odds__section-title::after {
    background-color: #ffffff; /* White underline for dark section titles */
}

.page-resources-understanding-game-odds__dark-section .page-resources-understanding-game-odds__cta-button {
    background: #C30808; /* Red for CTA */
    color: #FFFF00; /* Yellow font for CTA */
}

.page-resources-understanding-game-odds__dark-section .page-resources-understanding-game-odds__cta-button:hover {
    background: #a80707; /* Darker red on hover */
}

.page-resources-understanding-game-odds__center-text {
    text-align: center;
}

/* FAQ Section Styles */
.page-resources-understanding-game-odds__faq-section {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.page-resources-understanding-game-odds__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-resources-understanding-game-odds__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-resources-understanding-game-odds__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-resources-understanding-game-odds__faq-item.active .page-resources-understanding-game-odds__faq-answer {
    max-height: 2000px !important; /* 🚨 Use !important and large value */
    padding: 20px 15px !important;
    opacity: 1;
    background: #ffffff;
    border-radius: 0 0 5px 5px;
    border: 1px solid #e0e0e0;
    border-top: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-resources-understanding-game-odds__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-resources-understanding-game-odds__faq-item.active .page-resources-understanding-game-odds__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #017439; /* Highlight active question */
    background-color: #e0ffe0; /* Light green for active question */
}

.page-resources-understanding-game-odds__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-resources-understanding-game-odds__faq-question:active {
    background: #eeeeee;
}

.page-resources-understanding-game-odds__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: #333333;
}

.page-resources-understanding-game-odds__faq-item.active .page-resources-understanding-game-odds__faq-question h3 {
    color: #017439;
}

.page-resources-understanding-game-odds__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f0f0f0;
}

.page-resources-understanding-game-odds__faq-item.active .page-resources-understanding-game-odds__faq-toggle {
    color: #ffffff;
    background-color: #017439;
    transform: rotate(45deg); /* Rotate for minus sign effect */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-understanding-game-odds__section-title {
        font-size: 28px;
    }
    .page-resources-understanding-game-odds__hero-content h1 {
        font-size: 36px;
    }
    .page-resources-understanding-game-odds__hero-description {
        font-size: 18px;
    }
    .page-resources-understanding-game-odds__card-title {
        font-size: 20px;
    }
    .page-resources-understanding-game-odds__text-block,
    .page-resources-understanding-game-odds__list li {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .page-resources-understanding-game-odds__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources-understanding-game-odds__hero-image {
        margin-bottom: 20px;
        border-radius: 8px;
    }
    .page-resources-understanding-game-odds__hero-content {
        padding: 15px;
        transform: translateY(-30px);
        margin-top: -30px;
    }
    .page-resources-understanding-game-odds__hero-content h1 {
        font-size: 28px;
    }
    .page-resources-understanding-game-odds__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-resources-understanding-game-odds__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        margin-top: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-resources-understanding-game-odds__section {
        padding: 40px 0;
    }
    .page-resources-understanding-game-odds__container {
        padding: 0 15px;
    }
    .page-resources-understanding-game-odds__section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    .page-resources-understanding-game-odds__sub-title {
        font-size: 20px;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-resources-understanding-game-odds__text-block,
    .page-resources-understanding-game-odds__list li {
        font-size: 15px;
        text-align: left;
    }
    .page-resources-understanding-game-odds__grid-3-cols,
    .page-resources-understanding-game-odds__grid-2-cols {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }
    .page-resources-understanding-game-odds__card {
        padding: 25px;
    }
    .page-resources-understanding-game-odds__card-title {
        font-size: 18px;
    }
    .page-resources-understanding-game-odds__image-full {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px auto;
        border-radius: 8px;
    }
    .page-resources-understanding-game-odds__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-resources-understanding-game-odds__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-resources-understanding-game-odds__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    .page-resources-understanding-game-odds__faq-answer {
        padding: 0 15px;
    }
    .page-resources-understanding-game-odds__faq-item.active .page-resources-understanding-game-odds__faq-answer {
        padding: 15px !important;
    }
    /* Ensure all containers for images/buttons adapt */
    .page-resources-understanding-game-odds__section,
    .page-resources-understanding-game-odds__container,
    .page-resources-understanding-game-odds__faq-list,
    .page-resources-understanding-game-odds__grid-3-cols,
    .page-resources-understanding-game-odds__grid-2-cols {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources-understanding-game-odds__cta-button {
        display: block; /* Make buttons block level on mobile */
        margin-left: auto;
        margin-right: auto;
    }
}