.page-game-rules {
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #F4F7FB; /* Background color from custom scheme */
    color: #1F2D3D; /* Main text color */
    font-family: Arial, sans-serif; /* Example font */
    line-height: 1.6;
}

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

/* Hero Section */
.page-game-rules__hero-section {
    position: relative;
    text-align: center;
    overflow: hidden;
    margin-bottom: 40px;
    padding-bottom: 40px; /* Spacing below content */
}

.page-game-rules__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 10px;
}

.page-game-rules__hero-content {
    padding: 0 20px;
}

.page-game-rules__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 font size */
    color: #000000; /* Custom Color_1776249996415 */
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-rules__description {
    font-size: 1.1em;
    color: #1F2D3D;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-rules__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-rules__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Section Styling */
.page-game-rules__section {
    padding: 60px 0;
    margin-bottom: 40px;
    background-color: #FFFFFF; /* Card BG for sections */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-game-rules__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: #000000; /* Custom Color_1776249996415 */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

.page-game-rules__image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin: 30px 0;
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px; /* Minimum size for content images */
}

/* Rules List Grid */
.page-game-rules__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-game-rules__card {
    background-color: #FFFFFF;
    border: 1px solid #D6E2FF; /* Border color */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-game-rules__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-game-rules__card-title {
    font-size: 1.4em;
    color: #2F6BFF; /* Primary color for card titles */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-game-rules__card p {
    font-size: 1em;
    color: #1F2D3D;
    margin-bottom: 15px;
}

.page-game-rules__card-link {
    color: #2F6BFF; /* Primary color for links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.page-game-rules__card-link:hover {
    color: #6FA3FF; /* Auxiliary color on hover */
    text-decoration: underline;
}

/* FAQ Section */
.page-game-rules__faq-section {
    text-align: center;
}

.page-game-rules__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-rules__faq-item {
    background-color: #F4F7FB; /* Background color for FAQ items */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
    border: 1px solid #D6E2FF; /* Border color */
}

.page-game-rules__faq-question {
    font-size: 1.2em;
    color: #2F6BFF; /* Primary color for questions */
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: 600;
}

.page-game-rules__faq-answer {
    font-size: 1em;
    color: #1F2D3D;
    display: none; /* Initially hidden, to be toggled by JS */
    padding-top: 10px;
    border-top: 1px solid #D6E2FF;
    margin-top: 10px;
}

.page-game-rules__faq-question.active + .page-game-rules__faq-answer {
    display: block;
}

.page-game-rules__faq-more-button {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 25px;
    background: #6FA3FF; /* Auxiliary color for secondary button */
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.page-game-rules__faq-more-button:hover {
    background: #2F6BFF; /* Primary color on hover */
}

/* Contact CTA Section */
.page-game-rules__contact-cta {
    text-align: center;
    padding: 80px 0;
    background-color: #2F6BFF; /* Primary color for background */
    color: #FFFFFF;
    border-radius: 10px;
}

.page-game-rules__contact-cta .page-game-rules__section-title {
    color: #FFFFFF;
    margin-bottom: 20px;
}

.page-game-rules__contact-cta p {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-rules__cta-button--secondary {
    background: #FFFFFF;
    color: #2F6BFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-rules__cta-button--secondary:hover {
    background: #F4F7FB;
    color: #2F6BFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}


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

    .page-game-rules__hero-section {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .page-game-rules__hero-image {
        margin-bottom: 20px;
    }

    .page-game-rules__main-title {
        font-size: 2em; /* Smaller H1 on mobile */
    }

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

    .page-game-rules__section {
        padding: 40px 0;
        margin-bottom: 20px;
    }

    .page-game-rules__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-game-rules__grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    .page-game-rules__image {
        max-width: 100%; /* Ensure images don't overflow */
        height: auto;
    }

    .page-game-rules__contact-cta {
        padding: 50px 0;
    }
}

/* Ensure all images within content area are responsive and not too small */
.page-game-rules__overview .page-game-rules__image,
.page-game-rules__card .page-game-rules__image,
.page-game-rules__faq-section .page-game-rules__image {
    max-width: 100%;
    height: auto;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}