.page-game-rules {
    background-color: #FFFFFF; /* Default background for main content */
    color: #333333; /* Default text color */
}

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

.page-game-rules__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #26A9E0; /* Primary color for hero background */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-game-rules__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Adjust max height for hero image */
    overflow: hidden;
}

.page-game-rules__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Ensure image is not too small */
}

.page-game-rules__hero-content {
    padding: 40px 20px;
    color: #FFFFFF;
    max-width: 800px;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-game-rules__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-game-rules__description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
}

.page-game-rules__cta-button {
    display: inline-block;
    background-color: #EA7C07; /* Login/CTA color */
    color: #FFFFFF;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    min-width: 200px; /* Ensure button is not too small */
    text-align: center;
}

.page-game-rules__cta-button:hover {
    background-color: #d16b06;
}

.page-game-rules__cta-button--secondary {
    background-color: #26A9E0; /* Primary color for secondary CTA */
}

.page-game-rules__cta-button--secondary:hover {
    background-color: #1f8ec7;
}

.page-game-rules__intro-section,
.page-game-rules__category-section,
.page-game-rules__fair-play-section,
.page-game-rules__responsible-gaming-section,
.page-game-rules__faq-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* White background for content sections */
}

.page-game-rules__intro-section {
    text-align: center;
}

.page-game-rules__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    font-weight: 700;
    color: #26A9E0; /* Primary color for section titles */
    margin-bottom: 40px;
    text-align: center;
}

.page-game-rules__text-content {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #333333;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-rules__content-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Ensure content image is not too small */
    min-height: 200px;
}

.page-game-rules__category-item {
    background-color: #f7f7f7;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-game-rules__category-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-game-rules__learn-more-link {
    display: inline-block;
    color: #26A9E0;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.page-game-rules__learn-more-link:hover {
    color: #1f8ec7;
    text-decoration: underline;
}

.page-game-rules__faq-section {
    padding-bottom: 60px;
}

.page-game-rules__faq-item {
    background-color: #f7f7f7;
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.03);
}

.page-game-rules__faq-question {
    font-size: 1.1em;
    color: #333333;
    font-weight: 600;
    margin-bottom: 10px;
    cursor: pointer;
}

.page-game-rules__faq-answer {
    font-size: 0.95em;
    color: #555555;
    line-height: 1.6;
    display: none; /* Hidden by default, toggled by JS */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-game-rules__container {
        padding: 15px;
    }

    .page-game-rules__hero-content {
        padding: 30px 15px;
    }

    .page-game-rules__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

    .page-game-rules__description {
        font-size: 0.95em;
    }

    .page-game-rules__cta-button {
        padding: 12px 25px;
        min-width: unset;
        width: 100%;
        max-width: 300px; /* Constrain width on mobile */
        margin-left: auto;
        margin-right: auto;
    }

    .page-game-rules__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
    }

    .page-game-rules__text-content {
        font-size: 0.9em;
    }

    .page-game-rules__category-item {
        padding: 20px;
    }

    .page-game-rules__category-title {
        font-size: 1.5em;
    }

    .page-game-rules__faq-item {
        padding: 15px 20px;
    }

    .page-game-rules__faq-question {
        font-size: 1em;
    }

    /* Ensure images in content area are not too small on mobile */
    .page-game-rules img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce minimum size even on mobile */
        min-height: 200px;
    }
}