/* style/casino.css */

/* Core styling for the casino page */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Text Main */
    background-color: #F5F7FA; /* Custom background color */
}

.page-casino__highlight {
    color: #E53935; /* Main color for highlights */
    font-weight: bold;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #E53935; /* Main brand color as background */
    color: #ffffff; /* White text for contrast */
    overflow: hidden; /* Ensure no overflow */
}

.page-casino__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px; /* Space between image and content */
}

.page-casino__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    max-width: 1200px; /* Constrain image width */
    margin: 0 auto;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-casino__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1; /* Ensure content is above any background effects */
}

.page-casino__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

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

.page-casino__hero-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 for flex-wrap */
}

/* Common button styles */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-casino__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Custom button color */
    color: #ffffff;
    border: none;
}

.page-casino__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-secondary {
    background-color: #ffffff;
    color: #E53935; /* Main brand color */
    border: 2px solid #E53935;
}

.page-casino__btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.page-casino__btn-tertiary {
    background-color: #E53935; /* Main brand color */
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
}

.page-casino__btn-tertiary:hover {
    background-color: #FF5A4F; /* Auxiliary color on hover */
    transform: translateY(-1px);
}

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

.page-casino__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherit color from parent section */
}

.page-casino__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: justify;
}

.page-casino__image-full {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin: 30px 0;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* About Section */
.page-casino__about-section {
    padding: 80px 0;
    background-color: #F5F7FA; /* Custom background color */
    color: #333333; /* Text Main */
}

/* Games Section */
.page-casino__games-section {
    padding: 80px 0;
    background-color: #E53935; /* Main brand color */
    color: #ffffff; /* White text for contrast */
}

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

.page-casino__game-card {
    background-color: #ffffff; /* Card BG */
    color: #333333; /* Text Main */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px; /* Space for button */
}

.page-casino__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-casino__card-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0 20px 10px;
    color: #E53935; /* Main brand color for titles */
}

.page-casino__card-description {
    font-size: 1rem;
    margin: 0 20px 20px;
    flex-grow: 1;
}

.page-casino__game-card .page-casino__btn-tertiary {
    margin: 0 20px;
    align-self: flex-start;
}

.page-casino__center-buttons {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-casino__center-buttons .page-casino__btn-primary,
.page-casino__center-buttons .page-casino__btn-secondary {
    margin: 0 10px;
}

/* Promotions Section */
.page-casino__promotions-section {
    padding: 80px 0;
    background-color: #F5F7FA; /* Custom background color */
    color: #333333; /* Text Main */
}

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

.page-casino__promo-item {
    background-color: #ffffff; /* Card BG */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding-bottom: 20px;
    text-align: center;
}

.page-casino__promo-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-casino__promo-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0 20px 10px;
    color: #E53935; /* Main brand color */
}

.page-casino__promo-description {
    font-size: 1rem;
    margin: 0 20px;
}

/* Why Choose Section */
.page-casino__why-choose-section {
    padding: 80px 0;
    background-color: #E53935; /* Main brand color */
    color: #ffffff; /* White text for contrast */
}

.page-casino__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-casino__feature-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__feature-icon {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Make icons white on dark background if they are originally dark */
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-casino__feature-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-casino__feature-description {
    font-size: 1rem;
    color: #f0f0f0;
}

/* FAQ Section */
.page-casino__faq-section {
    padding: 80px 0;
    background-color: #F5F7FA; /* Custom background color */
    color: #333333; /* Text Main */
}

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

.page-casino__faq-item {
    background-color: #ffffff; /* Card BG */
    border: 1px solid #E0E0E0; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-casino__faq-question {
    display: block;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    color: #333333;
    transition: background-color 0.3s ease;
}

.page-casino__faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #E53935;
}

.page-casino__faq-item[open] .page-casino__faq-question::after {
    content: '−';
}

.page-casino__faq-answer {
    padding: 0 20px 20px;
    font-size: 1rem;
    color: #555555;
}

/* Final CTA Section */
.page-casino__final-cta-section {
    padding: 80px 0;
    background-color: #FF5A4F; /* Auxiliary brand color */
    color: #ffffff; /* White text for contrast */
    text-align: center;
}

.page-casino__final-cta-section .page-casino__section-title {
    color: #ffffff;
}

.page-casino__final-cta-section .page-casino__text-block {
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-casino__hero-image {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .page-casino__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset, this is decorative */
    }

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

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

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

    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__btn-tertiary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0 !important; /* Remove horizontal margin for full width */
    }
    
    .page-casino__center-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-casino__center-buttons .page-casino__btn-primary,
    .page-casino__center-buttons .page-casino__btn-secondary {
        margin: 0 !important; /* Remove horizontal margin for full width */
    }

    .page-casino__container {
        padding: 0 15px;
    }

    .page-casino__section-title {
        font-size: 1.8rem;
    }

    .page-casino__text-block {
        font-size: 1rem;
    }

    /* All images must be responsive */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce minimum size */
        min-height: 200px !important; /* Enforce minimum size */
    }

    /* All containers with images/videos/buttons must be responsive */
    .page-casino__hero-image-wrapper,
    .page-casino__about-section,
    .page-casino__games-section,
    .page-casino__promotions-section,
    .page-casino__why-choose-section,
    .page-casino__faq-section,
    .page-casino__final-cta-section,
    .page-casino__game-card,
    .page-casino__promo-item,
    .page-casino__feature-item,
    .page-casino__faq-item,
    .page-casino__hero-cta-buttons,
    .page-casino__center-buttons,
    .page-casino__features-grid,
    .page-casino__game-cards,
    .page-casino__promo-list,
    .page-casino__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }
    .page-casino__games-section .page-casino__container,
    .page-casino__promotions-section .page-casino__container,
    .page-casino__why-choose-section .page-casino__container,
    .page-casino__faq-section .page-casino__container,
    .page-casino__final-cta-section .page-casino__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-casino__feature-icon {
        width: 200px !important; /* Override fixed width to ensure min size */
        height: 200px !important; /* Override fixed height to ensure min size */
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Ensure no CSS filters are used on images */
.page-casino img {
    filter: none !important;
}

/* Text contrast fixes if needed for specific sections */
.page-casino__dark-bg {
    color: #ffffff;
}
.page-casino__light-bg {
    color: #333333;
}