/* style/casino-live-games.css */

/* Base styles for the page content */
.page-casino-live-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--bg-color, #FFFFFF); /* Inherit from shared or default to white */
}

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

/* Hero Section */
.page-casino-live-games__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    background-size: cover;
    background-position: center;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    box-sizing: border-box;
}

.page-casino-live-games__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}

.page-casino-live-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.page-casino-live-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-casino-live-games__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

/* Video Section */
.page-casino-live-games__video-section {
    padding: 60px 20px;
    background-color: #FFFFFF; /* Light background for this section */
    text-align: center;
}

.page-casino-live-games__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1280px; /* Max width for video container */
    margin: 30px auto 0;
    box-sizing: border-box;
    overflow: hidden; /* Prevent video overflow */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino-live-games__video-link {
    display: block;
    cursor: pointer;
}

.page-casino-live-games__video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Section Titles and Descriptions */
.page-casino-live-games__section-title {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #017439; /* Brand color for titles */
    text-align: center;
}

.page-casino-live-games__section-title--light {
    color: #FFFFFF; /* White for dark backgrounds */
}

.page-casino-live-games__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

.page-casino-live-games__section-description--light {
    color: #f0f0f0;
}

/* About Section */
.page-casino-live-games__about-section {
    padding: 60px 20px;
    background-color: #f8f8f8; /* Light grey background */
}

.page-casino-live-games__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino-live-games__feature-item {
    text-align: center;
    padding: 25px;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-casino-live-games__feature-icon {
    width: 200px; /* Min size 200x200 */
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-casino-live-games__feature-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 10px;
}

.page-casino-live-games__feature-text {
    color: #666666;
}

/* Games Section */
.page-casino-live-games__games-section {
    padding: 60px 20px;
    background-color: #017439; /* Brand dark green background */
    color: #FFFFFF;
}

.page-casino-live-games__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino-live-games__game-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark bg */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.page-casino-live-games__game-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-casino-live-games__game-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-casino-live-games__game-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #FFFF00; /* Yellow for game titles on dark background */
}

.page-casino-live-games__game-title a {
    color: #FFFF00; /* Yellow for game titles on dark background */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino-live-games__game-title a:hover {
    color: #FFFFFF;
}

.page-casino-live-games__game-description {
    font-size: 0.95em;
    color: #f0f0f0;
    flex-grow: 1;
}

/* Promotions Section */
.page-casino-live-games__promotions-section {
    padding: 60px 20px;
    background-color: #FFFFFF;
}

.page-casino-live-games__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino-live-games__promotion-card {
    background-color: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.page-casino-live-games__promotion-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-casino-live-games__promotion-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-casino-live-games__promotion-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

.page-casino-live-games__promotion-description {
    font-size: 0.95em;
    color: #666666;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* How To Join Section */
.page-casino-live-games__how-to-join-section {
    padding: 60px 20px;
    background-color: #017439; /* Brand dark green background */
    color: #FFFFFF;
}

.page-casino-live-games__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino-live-games__step-item {
    text-align: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1);;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino-live-games__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #FFFF00; /* Yellow for step numbers */
    color: #017439; /* Dark green text on yellow */
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-casino-live-games__step-title {
    font-size: 1.5em;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.page-casino-live-games__step-text {
    color: #f0f0f0;
}

/* FAQ Section */
.page-casino-live-games__faq-section {
    padding: 60px 20px;
    background-color: #f8f8f8; /* Light grey background */
}

.page-casino-live-games__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino-live-games__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-casino-live-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #FFFFFF;
    transition: background-color 0.3s ease;
}

.page-casino-live-games__faq-question:hover {
    background-color: #f0f0f0;
}

.page-casino-live-games__faq-title {
    font-size: 1.2em;
    color: #333333;
    margin: 0;
    flex-grow: 1;
}

.page-casino-live-games__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-casino-live-games__faq-item.active .page-casino-live-games__faq-toggle {
    transform: rotate(45deg); /* Plus to X (or rotate to minus) */
}

.page-casino-live-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

.page-casino-live-games__faq-item.active .page-casino-live-games__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 15px 20px 20px;
}

/* Final CTA Section */
.page-casino-live-games__cta-final-section {
    padding: 80px 20px;
    background-color: #017439; /* Brand dark green background */
    color: #FFFFFF;
    text-align: center;
}

.page-casino-live-games__cta-final-content {
    max-width: 900px;
}

/* Buttons */
.page-casino-live-games__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background-color: #C30808; /* Register/Login red */
    color: #FFFF00; /* Register/Login font yellow */
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino-live-games__btn-primary:hover {
    background-color: #a30606;
    transform: translateY(-2px);
}

.page-casino-live-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background-color: #FFFFFF;
    color: #017439; /* Brand green */
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: 2px solid #017439;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-casino-live-games__btn-secondary:hover {
    background-color: #e0e0e0;
    color: #005a2e;
    transform: translateY(-2px);
}

.page-casino-live-games__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Dark/Light Background helpers for text contrast */
.page-casino-live-games__dark-bg {
    color: #ffffff;
}

.page-casino-live-games__light-bg {
    color: #333333;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino-live-games__hero-title {
        font-size: 3em;
    }
    .page-casino-live-games__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-casino-live-games__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-casino-live-games__hero-title {
        font-size: 2.5em;
    }
    .page-casino-live-games__hero-description {
        font-size: 1em;
    }
    .page-casino-live-games__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-casino-live-games__section-title {
        font-size: 1.8em;
    }
    .page-casino-live-games__section-description {
        font-size: 0.95em;
    }

    /* Images responsiveness */
    .page-casino-live-games img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video responsiveness */
    .page-casino-live-games video,
    .page-casino-live-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-casino-live-games__video-section,
    .page-casino-live-games__video-container,
    .page-casino-live-games__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Buttons responsiveness */
    .page-casino-live-games__btn-primary,
    .page-casino-live-games__btn-secondary,
    .page-casino-live-games a[class*="button"],
    .page-casino-live-games a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-casino-live-games__hero-cta-buttons,
    .page-casino-live-games__button-group,
    .page-casino-live-games__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
    }

    /* General container padding for mobile */
    .page-casino-live-games__content-container,
    .page-casino-live-games__about-section,
    .page-casino-live-games__games-section,
    .page-casino-live-games__promotions-section,
    .page-casino-live-games__how-to-join-section,
    .page-casino-live-games__faq-section,
    .page-casino-live-games__cta-final-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-casino-live-games__feature-icon {
        width: 150px;
        height: 100px;
    }

    .page-casino-live-games__game-image,
    .page-casino-live-games__promotion-image {
        height: 180px; /* Adjust height for smaller screens */
    }

    /* Ensure content area images are not too small */
    .page-casino-live-games__feature-item img,
    .page-casino-live-games__game-card img,
    .page-casino-live-games__promotion-card img {
        min-width: 200px !important; /* Enforce min width */
        min- /* Enforce min height for content images */
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .page-casino-live-games__hero-title {
        font-size: 2em;
    }
    .page-casino-live-games__section-title {
        font-size: 1.5em;
    }
}