/* style/casino.css */
.page-casino {
    color: #333333; /* Dark text for default light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

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

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    padding: 80px 20px;
    background-color: #007bff; /* Primary color background for hero text */
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

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

.page-casino__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    display: block;
}

.page-casino__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-casino__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffc107; /* Secondary color for main title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-casino__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.page-casino__button--primary {
    background-color: #ffc107; /* Secondary color for primary button */
    color: #007bff; /* Primary color for text */
    border: 2px solid #ffc107;
}

.page-casino__button--primary:hover {
    background-color: #e0a800;
    color: #0056b3;
    transform: translateY(-3px);
}

.page-casino__button--secondary {
    background-color: transparent;
    color: #ffc107;
    border: 2px solid #ffc107;
}

.page-casino__button--secondary:hover {
    background-color: rgba(255, 193, 7, 0.1);
    transform: translateY(-3px);
}

.page-casino__button--register {
    background-color: #ffc107;
    color: #007bff;
    border: 2px solid #ffc107;
    padding: 12px 25px;
    margin-top: 20px;
}

.page-casino__button--register:hover {
    background-color: #e0a800;
    color: #0056b3;
}

.page-casino__button--small {
    padding: 10px 20px;
    font-size: 0.9em;
    background-color: #007bff;
    color: #ffffff;
    border: 2px solid #007bff;
}

.page-casino__button--small:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.page-casino__button--large {
    padding: 18px 35px;
    font-size: 1.1em;
    border-radius: 10px;
}

.page-casino__button--cta-primary {
    background-color: #ffc107;
    color: #007bff;
    border: 2px solid #ffc107;
    margin-top: 30px;
}

.page-casino__button--cta-primary:hover {
    background-color: #e0a800;
    color: #0056b3;
}

.page-casino__button--text-link {
    background: none;
    border: none;
    color: #007bff;
    padding: 0;
    font-size: 1.1em;
    text-decoration: underline;
    display: inline-block;
    margin-top: 20px;
}

.page-casino__button--text-link:hover {
    color: #0056b3;
}

/* Section Titles & Descriptions */
.page-casino__section-title {
    font-size: 2.5em;
    color: #007bff; /* Primary color */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 60px;
}

.page-casino__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #555555;
}

/* About Section */
.page-casino__about-section {
    padding: 80px 0;
    background-color: #f8f9fa; /* Light background */
}

.page-casino__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-casino__image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-casino__image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-casino__text-content {
    flex: 2;
    min-width: 300px;
}

.page-casino__text-content p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #444444;
}

/* Games Section */
.page-casino__games-section {
    padding: 80px 0;
}

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

.page-casino__game-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.page-casino__game-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-casino__card-title {
    font-size: 1.8em;
    color: #007bff;
    margin-bottom: 15px;
}

.page-casino__game-card p {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Why Choose Us Section */
.page-casino__why-choose-us {
    padding: 80px 0;
    background-color: #007bff; /* Primary color background */
    color: #ffffff;
}

.page-casino__why-choose-us .page-casino__section-title {
    color: #ffc107; /* Secondary color for title on primary background */
    padding-top: 0;
}

.page-casino__why-choose-us .page-casino__section-description {
    color: #e0e0e0;
}

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

.page-casino__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-casino__feature-item img {
    width: 200px; /* Explicitly set to minimum for consistency */
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    max-width: 100%;
}

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

.page-casino__feature-item p {
    font-size: 1em;
    color: #e0e0e0;
}

/* Promo CTA Section */
.page-casino__promo-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #007bff, #0056b3); /* Primary gradient */
    text-align: center;
    color: #ffffff;
}

.page-casino__promo-cta-content {
    max-width: 900px;
}

.page-casino__promo-cta-title {
    font-size: 2.8em;
    color: #ffc107;
    margin-bottom: 20px;
}

.page-casino__promo-cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #e0e0e0;
}

/* Responsible Gaming Section */
.page-casino__responsible-gaming-section {
    padding: 60px 0;
    text-align: center;
    background-color: #f1f1f1;
}

/* FAQ Section */
.page-casino__faq-section {
    padding: 80px 0;
}

.page-casino__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-casino__faq-question {
    font-size: 1.4em;
    color: #007bff;
    margin-bottom: 10px;
    cursor: pointer; /* Indicate clickability */
}

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

.page-casino__faq-item--active .page-casino__faq-answer {
    display: block; /* Show when active */
}

.page-casino__faq-answer a {
    color: #007bff;
    text-decoration: underline;
}

.page-casino__faq-answer a:hover {
    color: #0056b3;
}

/* Call to Action Section */
.page-casino__call-to-action {
    padding: 100px 0;
    background-color: #ffc107; /* Secondary color background */
    text-align: center;
    color: #007bff; /* Primary color for text */
}

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

.page-casino__cta-title {
    font-size: 3em;
    color: #007bff;
    margin-bottom: 20px;
}

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

/* 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: 2.2em;
    }
    .page-casino__promo-cta-title, .page-casino__cta-title {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .page-casino {
        padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
    }
    .page-casino__hero-section {
        padding: 60px 20px;
    }
    .page-casino__hero-title {
        font-size: 2.5em;
    }
    .page-casino__hero-description {
        font-size: 1.1em;
    }
    .page-casino__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-casino__button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-casino__content-wrapper {
        flex-direction: column;
    }
    .page-casino__text-content, .page-casino__image-wrapper {
        min-width: unset;
        width: 100%;
    }
    .page-casino__section-title {
        font-size: 2em;
    }
    .page-casino__section-description {
        font-size: 1em;
    }
    .page-casino__game-categories, .page-casino__features-grid {
        grid-template-columns: 1fr;
    }
    .page-casino__game-card, .page-casino__feature-item {
        padding: 20px;
    }
    .page-casino__card-title {
        font-size: 1.5em;
    }
    .page-casino__feature-title {
        font-size: 1.4em;
    }
    .page-casino__promo-cta-title, .page-casino__cta-title {
        font-size: 2em;
    }
    .page-casino__promo-cta-description, .page-casino__cta-description {
        font-size: 1.1em;
    }
    .page-casino__button--large {
        width: 100%;
        max-width: 300px;
        margin: 10px auto;
    }
    .page-casino__promo-cta-content .page-casino__button {
        display: block;
    }

    /* Mobile image overflow prevention */
    .page-casino img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-casino__hero-title {
        font-size: 2em;
    }
    .page-casino__hero-description {
        font-size: 0.95em;
    }
    .page-casino__button {
        padding: 12px 20px;
        font-size: 0.9em;
    }
    .page-casino__section-title {
        font-size: 1.8em;
    }
    .page-casino__promo-cta-title, .page-casino__cta-title {
        font-size: 1.8em;
    }
    .page-casino__faq-question {
        font-size: 1.2em;
    }
}

/* Ensure content images meet minimum size requirements */
.page-casino__image-wrapper img,
.page-casino__game-card img,
.page-casino__feature-item img {
    min-width: 200px;
    min-height: 200px;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: cover;
}

.page-casino__feature-item img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

/* Global image rules for content area to prevent small sizes */
.page-casino img:not(.shared-header img):not(.shared-footer img) {
    min-width: 200px;
    min-height: 200px;
    height: auto;
    max-width: 100%;
}