/* style/casino.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #000000; /* Body background is dark */
}

/* Fixed header offset */
.page-casino__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* General container for content sections */
.page-casino__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Section specific styles */
.page-casino__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-casino__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #f0f0f0; /* Slightly off-white for body text on dark backgrounds */
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    overflow: hidden;
    background-color: #000000; /* Explicitly dark background */
}

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

.page-casino__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4; /* Slightly dim the image for text readability */
    /* No filter property to change color */
}

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background for text */
    border-radius: 10px;
}

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

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

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

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Crucial for mobile responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-casino__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

.page-casino__btn-secondary {
    background-color: transparent;
    color: #26A9E0; /* Brand primary color */
    border: 2px solid #26A9E0;
}

.page-casino__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-casino__cta-button {
    background-color: #EA7C07; /* Login/CTA color */
    color: #ffffff;
    border: 2px solid #EA7C07;
    padding: 18px 35px;
    font-size: 1.2em;
}

.page-casino__cta-button:hover {
    background-color: #c96a06;
    border-color: #c96a06;
}

/* About Section */
.page-casino__about-section {
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
    color: #ffffff;
    padding: 60px 0;
}

/* Games Section */
.page-casino__games-section {
    background-color: #000000; /* Dark background */
    color: #ffffff;
    padding: 60px 0;
}

.page-casino__game-category {
    margin-bottom: 50px;
}

.page-casino__category-title {
    font-size: 2em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 30px;
}

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

.page-casino__card {
    background-color: #1a1a1a; /* Light background for card content */
    color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}

.page-casino__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
    /* No filter property to change color */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-casino__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin: 0 15px 10px;
}

.page-casino__card-text {
    font-size: 1em;
    color: #f0f0f0;
    margin: 0 15px 20px;
    flex-grow: 1; /* Ensures buttons align at bottom */
}

.page-casino__card .page-casino__btn-secondary {
    align-self: flex-start; /* Align button to start */
    margin: 0 15px;
}


/* Advantages Section */
.page-casino__advantages-section {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 60px 0;
}

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

.page-casino__feature-item {
    background-color: #000000;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__feature-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 15px;
}

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

.page-casino__feature-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 15px;
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
    /* No filter property to change color */
}

/* Promotions Section */
.page-casino__promotions-section {
    background-color: #000000;
    color: #ffffff;
    padding: 60px 0;
}

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

.page-casino__promotion-card {
    background-color: #1a1a1a;
    color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}

.page-casino__promotion-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    /* No filter property to change color */
    min-width: 200px;
    min-height: 200px;
}

.page-casino__promotion-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin: 0 15px 10px;
}

.page-casino__promotion-description {
    font-size: 1em;
    color: #f0f0f0;
    margin: 0 15px 20px;
    flex-grow: 1;
}

/* Guide Section */
.page-casino__guide-section {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 60px 0;
}

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

.page-casino__guide-item {
    background-color: #000000;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.page-casino__guide-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-casino__guide-list {
    list-style: decimal;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #f0f0f0;
    flex-grow: 1;
}

.page-casino__guide-list li {
    margin-bottom: 10px;
}

/* FAQ Section */
.page-casino__faq-section {
    background-color: #000000;
    color: #ffffff;
    padding: 60px 0;
}

.page-casino__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

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

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #26A9E0; /* Brand primary color for question background */
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-casino__faq-question:hover {
    background-color: #1e87b7;
}

.page-casino__faq-title {
    margin: 0;
    color: #ffffff;
    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); /* Plus sign rotates to a cross for active */
}

.page-casino__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #000000; /* Dark background for answer content */
    color: #f0f0f0;
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 1000px !important; /* Sufficiently large for content */
    padding: 20px !important; /* Apply padding when active */
}

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

/* CTA Section */
.page-casino__cta-section {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
}

/* 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;
    }
}

@media (max-width: 768px) {
    .page-casino__container {
        padding: 30px 15px;
    }

    .page-casino__hero-section {
        min-height: 60vh;
    }

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

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

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

    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__cta-button,
    .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; /* Add some padding to prevent text touching edges */
        padding-right: 15px; /* Add some padding to prevent text touching edges */
    }
    
    .page-casino__hero-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important; /* Ensure buttons wrap if they are horizontal */
        gap: 10px; /* Adjust gap for vertical stacking */
    }

    .page-casino__section-title {
        font-size: 1.8em;
    }
    
    .page-casino__category-title,
    .page-casino__feature-title,
    .page-casino__promotion-title,
    .page-casino__guide-title {
        font-size: 1.5em;
    }

    .page-casino__card-image,
    .page-casino__feature-image,
    .page-casino__promotion-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size */
        min-height: 200px !important; /* Ensure min size */
    }

    /* All image containers in content area */
    .page-casino__card,
    .page-casino__feature-item,
    .page-casino__promotion-card,
    .page-casino__guide-item,
    .page-casino__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent overflow */
    }

    .page-casino__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-casino__faq-answer {
        padding: 0 15px;
    }
    .page-casino__faq-item.active .page-casino__faq-answer {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-casino__hero-title {
        font-size: 2em;
    }
    .page-casino__hero-description {
        font-size: 0.9em;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__cta-button {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-casino__section-title {
        font-size: 1.5em;
    }
    .page-casino__category-title,
    .page-casino__feature-title,
    .page-casino__promotion-title,
    .page-casino__guide-title {
        font-size: 1.3em;
    }
}