/* style/casino.css */

/* --- General Page Styling --- */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--dark-bg-1); /* Inherit from shared, but ensure contrast for content */
}

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

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

.page-casino__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333333;
}

/* --- Color Contrast & Backgrounds --- */
.page-casino__dark-bg {
    background-color: #017439; /* Main brand color for dark sections */
    color: #ffffff; /* Light text for dark backgrounds */
}

.page-casino__dark-bg .page-casino__section-title {
    color: #ffffff; /* Titles in dark sections are white */
}

.page-casino__dark-bg .page-casino__text-block {
    color: #f0f0f0; /* Slightly off-white for paragraphs */
}

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

.page-casino__light-bg .page-casino__section-title {
    color: #017439; /* Titles in light sections are brand color */
}

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

.page-casino__btn-primary {
    background-color: #C30808; /* Red for primary actions (Register/Login) */
    color: #FFFF00; /* Yellow text for primary buttons */
    border: 2px solid #C30808;
}

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

.page-casino__btn-secondary {
    background-color: transparent;
    color: #ffffff; /* White text for secondary buttons */
    border: 2px solid #ffffff;
}

.page-casino__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Specific button styles for light background sections */
.page-casino__light-bg .page-casino__btn-secondary {
    color: #017439;
    border-color: #017439;
}

.page-casino__light-bg .page-casino__btn-secondary:hover {
    background-color: rgba(1, 116, 57, 0.1);
    color: #017439;
}


/* --- Hero Section --- */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-casino__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-casino__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
    z-index: 2;
}

.page-casino__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    color: #ffffff;
}

.page-casino__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: #ffffff;
}

.page-casino__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-casino__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* --- About Section --- */
.page-casino__about-section .page-casino__container {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-casino__image-item {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- Games Section --- */
.page-casino__games-section .page-casino__container {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-casino__game-category {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__game-title {
    font-size: 2em;
    color: #FFFF00; /* Yellow for game titles */
    margin-bottom: 20px;
}

.page-casino__game-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-casino__game-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* --- Promotions Section --- */
.page-casino__promotions-section .page-casino__container {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-casino__card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 30px;
    transition: transform 0.3s ease;
    color: #333333;
}

.page-casino__card:hover {
    transform: translateY(-5px);
}

.page-casino__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
}

.page-casino__card-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
    padding: 0 20px;
}

.page-casino__card-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 25px;
    padding: 0 20px;
}

.page-casino__card .page-casino__btn-primary {
    background-color: #017439; /* Green for card primary buttons */
    color: #ffffff;
    border-color: #017439;
}

.page-casino__card .page-casino__btn-primary:hover {
    background-color: #005a2d;
    border-color: #005a2d;
}

.page-casino__cta-center {
    text-align: center;
}

/* --- Mobile Section --- */
.page-casino__mobile-section .page-casino__container {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-casino__flex-reverse {
    flex-direction: row-reverse; /* Image on right, text on left for desktop */
}

.page-casino__content-block {
    flex: 1;
    text-align: left;
}

.page-casino__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-casino__image-full {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__app-download-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* --- FAQ Section --- */
.page-casino__faq-section .page-casino__container {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-casino__faq-list {
    margin-top: 30px;
}

.page-casino__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-casino__faq-item.active {
    background-color: #e6ffe6; /* Light green when active */
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #017439;
    transition: color 0.3s ease;
}

.page-casino__faq-question:hover {
    color: #005a2d;
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
    transform: rotate(45deg); /* Rotate for minus sign */
}

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

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to reveal content */
    padding: 15px 25px;
}

.page-casino__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
}

/* --- Contact CTA Section --- */
.page-casino__contact-cta {
    padding: 80px 20px;
    text-align: center;
}

.page-casino__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-casino__cta-title {
    font-size: 2.8em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-casino__cta-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 3em;
    }
    .page-casino__hero-description {
        font-size: 1.2em;
    }
    .page-casino__section-title {
        font-size: 2em;
    }
    .page-casino__cta-title {
        font-size: 2.2em;
    }
    .page-casino__mobile-section .page-casino__container {
        flex-direction: column;
        text-align: center;
    }
    .page-casino__content-block {
        text-align: center;
    }
    .page-casino__app-download-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-casino {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Fixed header padding for mobile */
    .page-casino__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        min-height: 500px;
    }

    .page-casino__container {
        padding: 20px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-casino__hero-title {
        font-size: 2.2em;
    }
    .page-casino__hero-description {
        font-size: 1em;
    }
    .page-casino__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-casino__game-title {
        font-size: 1.6em;
    }
    .page-casino__card-title {
        font-size: 1.3em;
    }
    .page-casino__cta-title {
        font-size: 1.8em;
    }

    /* Images responsiveness */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-casino__image-grid,
    .page-casino__promotion-cards {
        grid-template-columns: 1fr;
    }

    /* Buttons responsiveness */
    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino a[class*="button"],
    .page-casino 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__hero-cta-buttons,
    .page-casino__app-download-buttons,
    .page-casino__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to button containers */
    }

    /* Video responsiveness (if any, though none currently in HTML) */
    .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;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Content area images CSS dimensions lower limit check */
    /* Ensure no img within .page-casino is styled to be less than 200px */
    .page-casino__image-item,
    .page-casino__game-image,
    .page-casino__card-image,
    .page-casino__image-full {
        min-width: 200px;
        min-height: 200px;
    }
}

/* Ensure content area images are never less than 200px wide/high */
.page-casino img {
    min-width: 200px;
    min-height: 200px;
    /* Reset filter if any was accidentally applied */
    filter: none !important;
}

/* Specific overrides for logo/icons if they were to appear in content,
   though the prompt states no small icons */
.page-casino__logo-in-content,
.page-casino__icon-in-content {
    min-width: 200px !important;
    min-height: 200px !important;
    width: auto !important;
    height: auto !important;
}