.page-game-rules {
    font-family: Arial, sans-serif;
    color: #1F2D3D;
    background-color: #F4F7FB;
    line-height: 1.6;
}

.page-game-rules__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
    background: linear-gradient(180deg, #6FA3FF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.page-game-rules__hero-image-wrapper {
    width: 100%;
    max-width: 1920px;
    margin-bottom: 20px;
}

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

.page-game-rules__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1;
}

.page-game-rules__main-title {
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: 15px;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-game-rules__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #E0EFFF;
}

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

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

.page-game-rules__section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.page-game-rules__section-title {
    font-size: 2.2rem;
    color: #1F2D3D;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    position: relative;
}

.page-game-rules__section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #2F6BFF;
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-game-rules__content-wrapper p {
    margin-bottom: 15px;
    color: #1F2D3D;
}

.page-game-rules__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-game-rules__list-item {
    background-color: #F4F7FB;
    border: 1px solid #D6E2FF;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1F2D3D;
}

.page-game-rules__list-item::before {
    content: '✅';
    font-size: 1.2em;
    line-height: 1;
}

.page-game-rules__general-rules p:last-of-type {
    font-size: 0.9em;
    color: #666;
    text-align: right;
    margin-top: 20px;
}

.page-game-rules__game-specific-rules .page-game-rules__content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.page-game-rules__card {
    background-color: #FFFFFF;
    border: 1px solid #D6E2FF;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-game-rules__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-game-rules__card-title {
    font-size: 1.5rem;
    color: #2F6BFF;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-game-rules__card-description {
    font-size: 0.95rem;
    color: #1F2D3D;
    margin-bottom: 20px;
    padding: 0 15px;
}

.page-game-rules__card-button {
    display: inline-block;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-game-rules__card-button:hover {
    background: #4A8BFF; /* Slightly lighter blue on hover */
}

.page-game-rules__responsible-gaming a {
    color: #2F6BFF;
    text-decoration: none;
    font-weight: bold;
}

.page-game-rules__responsible-gaming a:hover {
    text-decoration: underline;
}

.page-game-rules__cta-section {
    text-align: center;
    padding: 50px 20px;
    background: #A5C4FF; /* Using Glow color for CTA section background */
    color: #000000; /* Using Custom Color_1776249996415 for text */
    border-radius: 12px;
    margin-bottom: 40px;
}

.page-game-rules__cta-section .page-game-rules__section-title {
    color: #000000;
}

.page-game-rules__cta-section .page-game-rules__section-title::after {
    background-color: #2F6BFF;
}

.page-game-rules__cta-section .page-game-rules__description {
    max-width: 800px;
    margin: 0 auto 30px;
    color: #000000;
}

.page-game-rules__cta-button--large {
    font-size: 1.2rem;
    padding: 18px 35px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-game-rules__hero-section {
        padding-bottom: 30px;
    }

    .page-game-rules__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

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

    .page-game-rules__section {
        margin: 20px auto;
        padding: 15px;
    }

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

    .page-game-rules__list-item {
        padding: 12px 15px;
    }

    .page-game-rules__game-specific-rules .page-game-rules__content-grid {
        grid-template-columns: 1fr;
    }

    .page-game-rules__card-image {
        height: auto; /* Allow height to adjust */
        min-height: 200px; /* Still enforce min height */
        max-width: 100%; /* Ensure images don't overflow */
    }

    .page-game-rules__card-title {
        font-size: 1.3rem;
    }

    .page-game-rules__card-description {
        font-size: 0.9rem;
    }

    .page-game-rules__cta-section {
        padding: 30px 15px;
        margin-bottom: 20px;
    }

    .page-game-rules__cta-button--large {
        font-size: 1rem;
        padding: 15px 25px;
    }

    /* Ensure all content images in .page-game-rules do not overflow */
    .page-game-rules img {
        max-width: 100%;
        height: auto;
    }
}

/* Ensure content area images maintain minimum size and responsiveness */
.page-game-rules__content-area img,
.page-game-rules__card-image {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .page-game-rules__content-area img,
    .page-game-rules__card-image {
        max-width: 100%;
        height: auto;
    }
}