.page-casino-live-game-rules {
    background-color: #F4F7FB;
    color: #1F2D3D;
    padding-bottom: 40px; /* Adjust as needed, but no header-offset here */
}

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

/* Hero Section */
.page-casino-live-game-rules__hero-section {
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
    background-color: #FFFFFF; /* Card BG for hero section */
}

.page-casino-live-game-rules__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Ensure it can go wide but doesn't overflow */
    margin-bottom: 20px;
}

.page-casino-live-game-rules__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Enforce minimum size */
    filter: none; /* Ensure no filter is applied */
}

.page-casino-live-game-rules__hero-content {
    max-width: 800px;
    padding: 0 20px 40px;
}

.page-casino-live-game-rules__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #000000; /* Custom Color_1776249996415 */
    margin-bottom: 15px;
    /* No fixed font-size, rely on clamp if needed but avoid huge values */
}

.page-casino-live-game-rules__description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #1F2D3D; /* Text Main */
}

.page-casino-live-game-rules__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-casino-live-game-rules__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    color: #FFFFFF;
}

.page-casino-live-game-rules__button--register {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

.page-casino-live-game-rules__button--register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(47, 107, 255, 0.3);
}

.page-casino-live-game-rules__button--explore {
    background-color: #6FA3FF; /* Auxiliary color */
}

.page-casino-live-game-rules__button--explore:hover {
    transform: translateY(-2px);
    background-color: #4A8BFF;
}

.page-casino-live-game-rules__button--responsible {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

.page-casino-live-game-rules__button--responsible:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(47, 107, 255, 0.3);
}

/* Sections */
.page-casino-live-game-rules__rules-overview,
.page-casino-live-game-rules__detailed-rules,
.page-casino-live-game-rules__specific-game-rules,
.page-casino-live-game-rules__responsible-gaming-promo {
    padding: 40px 0;
    margin-bottom: 20px;
}

.page-casino-live-game-rules__rules-overview .page-casino-live-game-rules__container,
.page-casino-live-game-rules__detailed-rules .page-casino-live-game-rules__container,
.page-casino-live-game-rules__specific-game-rules .page-casino-live-game-rules__container,
.page-casino-live-game-rules__responsible-gaming-promo .page-casino-live-game-rules__container {
    background-color: #FFFFFF; /* Card BG */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
    border: 1px solid #D6E2FF; /* Border color */
}

.page-casino-live-game-rules__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #000000; /* Custom Color_1776249996415 */
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.3;
}

.page-casino-live-game-rules__paragraph {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
    color: #1F2D3D; /* Text Main */
}

.page-casino-live-game-rules__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px; /* Enforce min width */
    min-height: 200px; /* Enforce min height */
    filter: none; /* Ensure no filter is applied */
}

/* Rule Cards */
.page-casino-live-game-rules__rule-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
    margin-bottom: 40px;
}

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

.page-casino-live-game-rules__rule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.page-casino-live-game-rules__card-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #2F6BFF; /* Primary color */
    margin-bottom: 10px;
}

.page-casino-live-game-rules__card-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: #1F2D3D; /* Text Main */
}

/* Specific Game Rules */
.page-casino-live-game-rules__game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.page-casino-live-game-rules__game-item {
    background-color: #FFFFFF; /* Card BG */
    border: 1px solid #D6E2FF; /* Border color */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: transform 0.2s ease;
}

.page-casino-live-game-rules__game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.page-casino-live-game-rules__game-item-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #2F6BFF; /* Primary color */
    margin-bottom: 10px;
}

.page-casino-live-game-rules__game-item-text {
    font-size: 0.9em;
    line-height: 1.5;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 15px;
}

.page-casino-live-game-rules__game-item-link {
    display: inline-block;
    color: #2F6BFF; /* Primary color */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.page-casino-live-game-rules__game-item-link:hover {
    color: #6FA3FF; /* Auxiliary color */
    text-decoration: underline;
}

/* Responsible Gaming Promo */
.page-casino-live-game-rules__responsible-gaming-promo .page-casino-live-game-rules__container {
    text-align: center;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-casino-live-game-rules__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-casino-live-game-rules__hero-content {
        padding: 0 15px 30px;
    }

    .page-casino-live-game-rules__main-title {
        font-size: clamp(1.8em, 5vw, 2.5em); /* Using clamp as suggested */
    }

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

    .page-casino-live-game-rules__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-casino-live-game-rules__button {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }

    .page-casino-live-game-rules__rules-overview .page-casino-live-game-rules__container,
    .page-casino-live-game-rules__detailed-rules .page-casino-live-game-rules__container,
    .page-casino-live-game-rules__specific-game-rules .page-casino-live-game-rules__container,
    .page-casino-live-game-rules__responsible-gaming-promo .page-casino-live-game-rules__container {
        padding: 25px;
    }

    .page-casino-live-game-rules__section-title {
        font-size: 1.8em;
    }

    /* Enforce mobile image scaling */
    .page-casino-live-game-rules__container img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-casino-live-game-rules__main-title {
        font-size: clamp(1.5em, 6vw, 2em);
    }
    .page-casino-live-game-rules__section-title {
        font-size: 1.5em;
    }
    .page-casino-live-game-rules__button {
        width: 100%;
    }
}

/* Content area image size enforcement */
.page-casino-live-game-rules img:not(.page-casino-live-game-rules__hero-image) {
    min-width: 200px;
    min-height: 200px;
}
/* Ensure no filter is applied to images */
.page-casino-live-game-rules img {
    filter: none;
}