/* style/casino.css */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is #121212 (dark), so text must be light */
    background-color: transparent; /* Main content background is handled by body in shared.css, or specific sections */
}

/* Header offset for desktop */
.page-casino__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Apply header offset to the first main section */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    background-color: #1a1a1a; /* Slightly lighter dark for hero section */
    color: #ffffff;
    overflow: hidden; /* Ensure hero image doesn't overflow */
}

.page-casino__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.page-casino__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken hero image slightly for text readability */
}

.page-casino__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

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

.page-casino__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* General section styling */
.page-casino__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #121212; /* Match body background for content */
    color: #ffffff;
}

.page-casino__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.page-casino__content-area p {
    margin-bottom: 20px;
    color: #f0f0f0;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-casino__btn-primary {
    background: #C30808; /* Register/Login color */
    color: #ffffff; /* Overriding #FFFF00 for contrast */
    border: 2px solid #C30808;
}

.page-casino__btn-primary:hover {
    background: #a30606;
    border-color: #a30606;
}

.page-casino__btn-secondary {
    background: #ffffff;
    color: #017439; /* Brand color */
    border: 2px solid #017439;
}

.page-casino__btn-secondary:hover {
    background: #f0f0f0;
    border-color: #005a2b;
}

.page-casino__button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
}

/* Card styling */
.page-casino__game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__card {
    background: rgba(255, 255, 255, 0.08); /* Slightly visible card background on dark body */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

.page-casino__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, object-fit will handle aspect ratio */
    object-fit: cover;
    display: block; /* Ensure image behaves as block */
}

.page-casino__card-title {
    font-size: 1.4em;
    margin: 15px 15px 10px;
    color: #017439; /* Brand color for card titles */
}

.page-casino__card-link {
    color: #017439; /* Brand color for links */
    text-decoration: none;
}

.page-casino__card-link:hover {
    text-decoration: underline;
    color: #00a04c;
}

.page-casino__card-description {
    font-size: 0.95em;
    margin: 0 15px 15px;
    flex-grow: 1; /* Make description take available space */
    color: #e0e0e0;
}

/* Image styling within content */
.page-casino__image-full-width {
    width: 100%;
    margin: 40px 0;
    text-align: center;
}

.page-casino__image-center {
    width: 100%;
    margin: 40px auto;
    text-align: center;
    max-width: 800px; /* Constrain width for better presentation */
}

.page-casino__image-responsive {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure image behaves as block */
    margin: 0 auto;
}

/* Steps grid */
.page-casino__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__step-card {
    background: rgba(255, 255, 255, 0.05); /* Lighter background for steps */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

.page-casino__step-title {
    font-size: 1.3em;
    color: #017439;
    margin-bottom: 15px;
}

.page-casino__text-link {
    color: #017439;
    text-decoration: none;
}

.page-casino__text-link:hover {
    text-decoration: underline;
    color: #00a04c;
}

/* Promotion banner */
.page-casino__promotion-banner {
    position: relative;
    margin: 60px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.page-casino__promotion-banner img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.7); /* Darken image for text overlay */
}

.page-casino__promotion-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3); /* Semi-transparent overlay */
    padding: 20px;
    box-sizing: border-box;
}

.page-casino__promotion-title {
    font-size: 2.2em;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* FAQ Section */
.page-casino__faq-list {
    margin-top: 40px;
}

.page-casino__faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #017439; /* Brand color for toggle icon */
}

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

.page-casino__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #e0e0e0;
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content, !important as per rule */
    padding: 15px 25px 20px;
}

.page-casino__faq-answer p {
    margin-bottom: 0;
}

/* Final CTA section */
.page-casino__cta-final {
    margin-top: 60px;
    text-align: center;
    padding: 30px;
    background: rgba(1, 116, 57, 0.1); /* Light brand color background */
    border-radius: 10px;
}

/* Video Section */
.page-casino__video-section {
    position: relative;
    width: 100%;
    padding: 60px 20px;
    background-color: #1a1a1a; /* Dark background for video section */
    color: #ffffff;
    text-align: center;
    box-sizing: border-box;
}

.page-casino__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px; /* Max width for video */
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-casino__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer; /* Indicate clickable video */
}

.page-casino__video-cta {
    margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 3em;
    }
    .page-casino__section-title {
        font-size: 2em;
    }
    .page-casino__promotion-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    /* Mobile header offset */
    .page-casino__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset is applied */
        min-height: 400px;
    }

    .page-casino__hero-title {
        font-size: 2.5em;
    }

    .page-casino__hero-description {
        font-size: 1em;
    }

    .page-casino__hero-actions {
        flex-direction: column;
        gap: 10px;
    }

    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 0.9em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-casino__button-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px; /* Add padding to button group */
    }

    .page-casino__content-area,
    .page-casino__video-section {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    /* Images responsive for mobile */
    .page-casino img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Content area images should not be smaller than 200px (display size) */
    .page-casino__card-image,
    .page-casino__image-responsive {
        min-width: 200px !important; /* Enforce min display size */
        min-height: 200px !important; /* Enforce min display size */
    }

    /* Video responsive for mobile */
    .page-casino video,
    .page-casino__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Video container mobile adaptation */
    .page-casino__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        height: 0 !important;
        overflow: hidden !important;
        margin: 20px auto !important;
    }

    /* Containers for images/videos/buttons */
    .page-casino__section,
    .page-casino__card,
    .page-casino__container,
    .page-casino__image-full-width,
    .page-casino__image-center,
    .page-casino__promotion-banner,
    .page-casino__video-section,
    .page-casino__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-casino__card {
        padding-bottom: 15px; /* Adjust card padding */
    }

    .page-casino__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-casino__faq-answer {
        padding: 0 20px;
    }

    .page-casino__faq-item.active .page-casino__faq-answer {
        padding: 10px 20px 15px;
    }

    .page-casino__promotion-title {
        font-size: 1.5em;
    }

    .page-casino__cta-final {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-casino__hero-title {
        font-size: 2em;
    }
    .page-casino__section-title {
        font-size: 1.5em;
    }
    .page-casino__promotion-title {
        font-size: 1.2em;
    }
}