/* style/casino-live-game-rules.css */

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-dark: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-casino-live-game-rules {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Default text color for dark background */
    background-color: var(--background-dark); /* Assume body background is dark */
    line-height: 1.6;
}

/* Hero Section */
.page-casino-live-game-rules__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--background-dark);
    overflow: hidden;
}

.page-casino-live-game-rules__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    position: relative;
    z-index: 1;
    opacity: 0.7;
    max-height: 675px;
}

.page-casino-live-game-rules__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-top: -200px; /* Pull content up over the image bottom, but not covering text */
    padding: 20px;
    background: linear-gradient(0deg, var(--background-dark) 0%, rgba(8, 22, 15, 0.8) 50%, rgba(8, 22, 15, 0.5) 100%);
    border-radius: 10px;
}

.page-casino-live-game-rules__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-casino-live-game-rules__description {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino-live-game-rules__description a {
    color: var(--glow-color);
    text-decoration: underline;
}

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

.page-casino-live-game-rules__btn-primary,
.page-casino-live-game-rules__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.1em;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-casino-live-game-rules__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-casino-live-game-rules__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-casino-live-game-rules__btn-secondary {
    background: transparent;
    color: var(--glow-color);
    border: 2px solid var(--glow-color);
    box-shadow: 0 0 10px rgba(87, 227, 141, 0.3);
}

.page-casino-live-game-rules__btn-secondary:hover {
    background: var(--glow-color);
    color: var(--background-dark);
    box-shadow: 0 0 15px rgba(87, 227, 141, 0.6);
    transform: translateY(-2px);
}

.page-casino-live-game-rules__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* General Section Styling */
.page-casino-live-game-rules__section {
    padding: 60px 20px;
    margin: 0 auto;
    max-width: 1200px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.page-casino-live-game-rules__content-area {
    background-color: var(--card-bg);
    color: var(--text-main);
}

.page-casino-live-game-rules__game-rules-section {
    background-color: var(--background-dark);
    color: var(--text-main);
}

.page-casino-live-game-rules__betting-payout-section,
.page-casino-live-game-rules__security-section,
.page-casino-live-game-rules__support-section,
.page-casino-live-game-rules__conclusion-section {
    background-color: var(--card-bg);
    color: var(--text-main);
}

.page-casino-live-game-rules__faq-section {
    background-color: var(--background-dark);
    color: var(--text-main);
}

.page-casino-live-game-rules__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-casino-live-game-rules__sub-title {
    font-size: clamp(1.4em, 2.5vw, 2em);
    color: var(--glow-color);
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-casino-live-game-rules p {
    font-size: 1em;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.page-casino-live-game-rules p a {
    color: var(--glow-color);
    text-decoration: underline;
}

.page-casino-live-game-rules__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

.page-casino-live-game-rules__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.page-casino-live-game-rules__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 1em;
}

.page-casino-live-game-rules__list-item::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--glow-color);
    font-weight: bold;
    font-size: 1.2em;
}

.page-casino-live-game-rules__list-item strong {
    color: var(--text-main);
}

/* Game Cards Grid */
.page-casino-live-game-rules__game-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino-live-game-rules__game-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 450px;
}

.page-casino-live-game-rules__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-casino-live-game-rules__card-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-casino-live-game-rules__card-image {
    width: 100%;
    max-width: 400px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-casino-live-game-rules__game-card p {
    color: var(--text-secondary);
    font-size: 0.95em;
    flex-grow: 1;
}

.page-casino-live-game-rules__card-list {
    list-style: none;
    padding-left: 0;
    text-align: left;
    width: 100%;
    margin-top: 15px;
}

.page-casino-live-game-rules__card-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.page-casino-live-game-rules__card-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--glow-color);
    font-weight: bold;
    font-size: 1.2em;
}

/* FAQ Section */
.page-casino-live-game-rules__faq-list {
    margin-top: 30px;
}

.page-casino-live-game-rules__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-casino-live-game-rules__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-main);
    font-size: 1.1em;
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--border-color);
    list-style: none; /* For <details> summary */
}

.page-casino-live-game-rules__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for <details> summary */
}

.page-casino-live-game-rules__faq-qtext {
    flex-grow: 1;
    color: var(--text-main);
}

.page-casino-live-game-rules__faq-toggle {
    font-size: 1.5em;
    color: var(--glow-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-casino-live-game-rules__faq-item[open] .page-casino-live-game-rules__faq-toggle {
    transform: rotate(45deg);
}

.page-casino-live-game-rules__faq-answer {
    padding: 20px;
    padding-top: 0;
    color: var(--text-secondary);
    font-size: 1em;
    line-height: 1.5;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-casino-live-game-rules__faq-item[open] .page-casino-live-game-rules__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 20px;
}

.page-casino-live-game-rules__faq-answer p a {
    color: var(--glow-color);
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-casino-live-game-rules {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-casino-live-game-rules__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-casino-live-game-rules__hero-image {
        max-height: 400px;
    }

    .page-casino-live-game-rules__hero-content {
        margin-top: -100px; /* Adjust for smaller screens */
        padding: 15px;
    }

    .page-casino-live-game-rules__main-title {
        font-size: 2em; /* Ensure readability */
        margin-bottom: 15px;
    }

    .page-casino-live-game-rules__description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

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

    .page-casino-live-game-rules__btn-primary,
    .page-casino-live-game-rules__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-casino-live-game-rules__section {
        padding: 30px 15px;
        margin-bottom: 20px;
    }

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

    .page-casino-live-game-rules__sub-title {
        font-size: 1.3em;
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .page-casino-live-game-rules p,
    .page-casino-live-game-rules__list-item {
        font-size: 0.95em;
    }

    .page-casino-live-game-rules__image {
        margin: 20px auto;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-casino-live-game-rules__game-card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-casino-live-game-rules__game-card {
        min-height: auto;
        padding: 20px;
    }

    .page-casino-live-game-rules__card-title {
        font-size: 1.3em;
    }

    .page-casino-live-game-rules__card-image {
        height: 200px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-casino-live-game-rules__faq-question {
        font-size: 1em;
        padding: 15px;
    }

    .page-casino-live-game-rules__faq-answer {
        padding: 15px;
        padding-top: 0;
    }
    
    .page-casino-live-game-rules__faq-item[open] .page-casino-live-game-rules__faq-answer {
        padding-top: 15px;
    }

    /* Ensure containers for images/buttons/videos are responsive */
    .page-casino-live-game-rules__section,
    .page-casino-live-game-rules__game-card-grid,
    .page-casino-live-game-rules__game-card,
    .page-casino-live-game-rules__cta-buttons,
    .page-casino-live-game-rules__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* General image responsiveness */
.page-casino-live-game-rules img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure min size for content images */
.page-casino-live-game-rules__image,
.page-casino-live-game-rules__card-image {
    min-width: 200px;
    min-height: 200px;
}

/* Ensure no filter on images */
.page-casino-live-game-rules img {
    filter: none; /* Explicitly disable any potential filters */
}

.page-casino-live-game-rules__faq-item[open] .page-casino-live-game-rules__faq-answer {
    max-height: 500px; /* Sufficient for content */
    padding-top: 20px;
}