/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #FFFFFF; /* Explicitly setting for clarity, though body is white */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-casino__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-casino__section {
    padding: 60px 0;
    text-align: center;
}

.page-casino__section.page-casino__dark-bg {
    background-color: #017439; /* Main brand color */
    color: #ffffff; /* White text for dark background */
}

.page-casino__section.page-casino__light-bg {
    background-color: #ffffff; /* Auxiliary brand color / white */
    color: #333333; /* Dark text for light background */
}

.page-casino__heading {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #017439; /* Brand color for headings */
}

.page-casino__heading--white {
    color: #ffffff; /* White headings on dark backgrounds */
}

.page-casino__sub-heading {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #017439; /* Brand color for sub-headings */
}

.page-casino__sub-heading--white {
    color: #ffffff; /* White sub-headings on dark backgrounds */
}

.page-casino__text {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__text--white {
    color: #ffffff; /* White text on dark backgrounds */
}

.page-casino__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-casino__list-item {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 1.1em;
}

.page-casino__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #017439; /* Brand color for list icons */
}

.page-casino__list--white .page-casino__list-item::before {
    color: #FFFF00; /* Yellow checkmark on dark background for contrast */
}

.page-casino__list--white .page-casino__list-item {
    color: #ffffff; /* White text for list items on dark backgrounds */
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin: 10px;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't push width */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
}

.page-casino__btn-primary {
    background-color: #C30808; /* Register/Login red */
    color: #FFFF00; /* Register/Login yellow font */
    border: 2px solid #C30808;
}

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

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

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

.page-casino__btn-primary--center,
.page-casino__btn-secondary--center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 300px;
}

.page-casino__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-casino__image--feature {
    max-width: 100%; /* Ensure responsiveness */
    height: auto;
    width: auto; /* Allow image to scale down */
    margin: 15px auto;
    border-radius: 8px;
    box-shadow: none; /* No shadow for smaller feature images */
    min-width: 200px;
    min-height: 200px;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensure content is below header */
    box-sizing: border-box;
}

.page-casino__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-casino__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 0;
}

.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;
    line-height: 1.2;
    color: #FFFF00; /* Yellow for hero title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

/* Games Section */
.page-casino__games-section .page-casino__game-category {
    margin-bottom: 50px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Why Choose Us Section */
.page-casino__why-choose-us-section {
    padding-bottom: 80px;
}

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

.page-casino__feature-item {
    background-color: rgba(255, 255, 255, 0.1); /* Light background for contrast */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* How to Start Section */
.page-casino__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-casino__steps-item {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.page-casino__steps-description {
    font-size: 1em;
    color: #555555;
}

/* FAQ Section */
.page-casino__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

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

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background-color: #ffffff;
    color: #017439;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
    background-color: #e6ffe6; /* Lighter green on hover */
}

.page-casino__faq-title {
    margin: 0;
    font-size: 1.2em;
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
    transform: rotate(45deg); /* For '+' to 'x' effect, or just change text to '-' */
}

.page-casino__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f2fcf2; /* Very light green background for answer */
    color: #333333;
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 20px;
}

.page-casino__faq-text {
    margin: 0;
    font-size: 1em;
}

/* CTA Section */
.page-casino__cta-section {
    padding: 80px 0;
    background-color: #017439; /* Brand green */
    color: #ffffff;
}

.page-casino__container--cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.page-casino__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 500px; /* Limit max width of button group */
    margin: 0 auto;
    box-sizing: border-box;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 3em;
    }
    .page-casino__hero-description {
        font-size: 1.3em;
    }
    .page-casino__heading {
        font-size: 2em;
    }
    .page-casino__sub-heading {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-casino {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-casino__container,
    .page-casino__section,
    .page-casino__game-category,
    .page-casino__feature-item,
    .page-casino__steps-item,
    .page-casino__faq-item {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-casino__hero-section {
        height: 70vh; /* Adjust hero height for mobile */
        padding-top: var(--header-offset, 120px) !important;
    }

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

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

    .page-casino__hero-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
    }

    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 5px 0 !important; /* Adjust margins for stacked buttons */
    }

    .page-casino__heading {
        font-size: 1.8em;
    }

    .page-casino__sub-heading {
        font-size: 1.4em;
    }

    .page-casino__feature-grid,
    .page-casino__steps-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* Video section specific mobile padding-top (placeholder for consistency) */
    .page-casino__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-casino video,
    .page-casino__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-casino__video-section,
    .page-casino__video-container,
    .page-casino__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }
}