/* style/casino.css */
.page-casino {
    color: #333333; /* Dark text for default light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Desktop padding for fixed header */
    background-color: #000000; /* Dark background for hero to make image pop */
    color: #ffffff;
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-casino__hero-container {
    position: relative;
    max-width: 100%; /* Ensure container respects padding/margin */
    margin: 0 auto;
}

.page-casino__hero-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.7; /* Slightly dim the background image */
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

.page-casino__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 90%;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-casino__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FCBC45; /* Login button color for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-casino__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ffffff;
}

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

.page-casino__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-width: 200px; /* Ensure buttons are not too small */
    text-align: center;
}

.page-casino__button--register {
    background-color: #FFFFFF;
    color: #000000;
    border: 2px solid #FFFFFF;
}

.page-casino__button--register:hover {
    background-color: #f0f0f0;
    color: #333333;
}

.page-casino__button--login {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-casino__button--login:hover {
    background-color: #e0a53b;
    color: #000000;
}

.page-casino__button--play-slots,
.page-casino__button--play-table,
.page-casino__button--play-live,
.page-casino__button--view-promo,
.page-casino__button--learn-more {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
    padding: 10px 20px;
    font-size: 1em;
    min-width: 150px;
}

.page-casino__button--play-slots:hover,
.page-casino__button--play-table:hover,
.page-casino__button--play-live:hover,
.page-casino__button--view-promo:hover,
.page-casino__button--learn-more:hover {
    background-color: #e0a53b;
    color: #000000;
}

.page-casino__button--large {
    padding: 18px 40px;
    font-size: 1.3em;
    min-width: 250px;
}

/* General Sections */
.page-casino__about-section,
.page-casino__games-section,
.page-casino__promotions-section,
.page-casino__security-section,
.page-casino__faq-section,
.page-casino__cta-section {
    padding: 60px 0;
    background-color: #ffffff; /* Default light background */
    border-bottom: 1px solid #f0f0f0;
}

.page-casino__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-casino__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FCBC45;
    border-radius: 2px;
}

.page-casino__text-content {
    font-size: 1.1em;
    margin-bottom: 30px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section Specific */
.page-casino__about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.page-casino__feature-item {
    flex: 1 1 calc(33% - 40px);
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    min-width: 280px; /* Ensure cards are not too small */
}

.page-casino__feature-title {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 15px;
}

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

/* Games Section Specific */
.page-casino__game-category {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-casino__category-title {
    font-size: 2em;
    color: #000000;
    margin-bottom: 25px;
}

.page-casino__category-image {
    width: 100%;
    height: auto;
    max-width: 800px; /* Max width for images in content sections */
    display: block;
    margin: 0 auto 30px auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px;
}

.page-casino__category-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
    text-align: justify;
}

/* Promotions Section Specific */
.page-casino__promo-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.page-casino__promo-card {
    flex: 1 1 calc(33% - 40px);
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    min-width: 280px; /* Ensure cards are not too small */
}

.page-casino__card-title {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 15px;
}

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

/* Security Section Specific */
.page-casino__security-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 0 auto 30px auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px;
}

/* FAQ Section Specific */
.page-casino__faq-item {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-casino__faq-question {
    font-size: 1.3em;
    color: #000000;
    margin-bottom: 10px;
    cursor: pointer; /* Indicate interactivity */
}

.page-casino__faq-answer {
    font-size: 1em;
    color: #555555;
    display: none; /* Hidden by default, toggled by JS */
}

.page-casino__faq-question.active + .page-casino__faq-answer {
    display: block;
}

.page-casino__faq-answer a {
    color: #FCBC45;
    text-decoration: none;
}

.page-casino__faq-answer a:hover {
    text-decoration: underline;
}

/* Call to Action Section Specific */
.page-casino__cta-section {
    text-align: center;
    background-color: #000000; /* Dark background for strong CTA */
    color: #ffffff;
    padding: 80px 0;
}

.page-casino__cta-section .page-casino__section-title {
    color: #FCBC45;
}

.page-casino__cta-section .page-casino__section-title::after {
    background-color: #FCBC45;
}

.page-casino__cta-section .page-casino__text-content {
    color: #ffffff;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 2.8em;
    }
    .page-casino__hero-description {
        font-size: 1.1em;
    }
    .page-casino__section-title {
        font-size: 2.2em;
    }
    .page-casino__feature-item,
    .page-casino__promo-card {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    /* Mobile content overflow prevention */
    .page-casino {
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    .page-casino__hero-section {
        padding-top: var(--header-offset, 80px); /* Mobile padding for fixed header */
        padding: 40px 15px;
    }

    .page-casino__hero-image {
        /* max-width: 100%; height: auto; is already on img element */
    }

    .page-casino__hero-content {
        width: 95%;
        padding: 15px;
    }

    .page-casino__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-casino__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-casino__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-casino__button {
        width: 100%;
        min-width: unset; /* Allow buttons to scale */
    }

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

    .page-casino__text-content {
        font-size: 1em;
    }

    .page-casino__about-section,
    .page-casino__games-section,
    .page-casino__promotions-section,
    .page-casino__security-section,
    .page-casino__faq-section,
    .page-casino__cta-section {
        padding: 40px 0;
    }

    .page-casino__feature-item,
    .page-casino__promo-card {
        flex: 1 1 100%;
        min-width: unset; /* Allow cards to scale */
    }

    .page-casino__game-category {
        padding: 20px;
    }

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

    .page-casino__category-image {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce min image size for content images */
        min-height: 200px;
    }

    .page-casino__security-image {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce min image size for content images */
        min-height: 200px;
    }

    .page-casino__faq-question {
        font-size: 1.1em;
    }

    /* Enforce min-width for all images within .page-casino */
    .page-casino img {
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }
}

/* Ensure no small images get through in content area */
.page-casino img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
    /* No filter properties allowed */
}