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

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

.page-casino__section-title {
    font-size: 2.5em;
    color: #B80000; /* Primary brand color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    padding-top: 40px;
    padding-bottom: 20px;
}

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

.page-casino__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

.page-casino__btn--primary {
    background-color: #B80000; /* Primary brand color */
    color: #FFFFFF;
}

.page-casino__btn--primary:hover {
    background-color: #9c0000;
    transform: translateY(-2px);
}

.page-casino__btn--secondary {
    background-color: #FFD700; /* Secondary brand color */
    color: #333333;
    border: 1px solid #FFD700;
}

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

.page-casino__btn--small {
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-casino__btn--large {
    padding: 15px 35px;
    font-size: 1.2em;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #1a1a1a; /* Dark background for hero */
    color: #ffffff;
    min-height: 600px; /* Minimum height for hero */
}

.page-casino__hero-image-wrapper {
    width: 100%;
    max-height: 700px;
    overflow: hidden;
}

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

.page-casino__hero-content {
    position: absolute;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-casino__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700; /* Secondary brand color for highlight */
    line-height: 1.2;
}

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

.page-casino__hero-buttons .page-casino__btn {
    margin: 10px;
}

/* About Section */
.page-casino__about-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

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

.page-casino__feature-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 400px; /* Ensure cards are not too small */
}

.page-casino__feature-icon {
    width: 200px; /* Minimum image size */
    height: 200px; /* Minimum image size */
    object-fit: contain;
    margin-bottom: 20px;
}

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

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

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

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

.page-casino__category-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 550px;
}

.page-casino__category-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-casino__category-card h3 {
    font-size: 1.5em;
    color: #B80000;
    margin: 20px 15px 10px 15px;
}

.page-casino__category-description {
    font-size: 0.95em;
    color: #666666;
    padding: 0 20px 20px 20px;
    flex-grow: 1;
}

.page-casino__category-card .page-casino__btn {
    margin-bottom: 20px;
}

/* GCash Guide Section */
.page-casino__gcash-guide {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.page-casino__guide-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.page-casino__step-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.page-casino__step-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-casino__step-description {
    font-size: 1em;
    color: #666666;
}

.page-casino__guide-cta {
    text-align: center;
    margin-top: 40px;
}

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

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

.page-casino__promo-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px;
}

.page-casino__promo-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.page-casino__promo-card h3 {
    font-size: 1.5em;
    color: #B80000;
    margin: 20px 15px 10px 15px;
}

.page-casino__promo-description {
    font-size: 0.95em;
    color: #666666;
    padding: 0 20px 20px 20px;
    flex-grow: 1;
}

.page-casino__promo-card .page-casino__btn {
    margin-bottom: 20px;
}

/* Mobile App Section */
.page-casino__mobile-app {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.page-casino__app-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.page-casino__app-image {
    width: 400px; /* Example size, adjust as needed */
    height: auto;
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.page-casino__responsible-gaming .page-casino__section-title {
    color: #FFD700;
}

.page-casino__responsible-gaming .page-casino__section-intro {
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-casino__responsible-gaming .page-casino__btn--secondary {
    background-color: #FFD700;
    color: #B80000;
    border: none;
}

.page-casino__responsible-gaming .page-casino__btn--secondary:hover {
    background-color: #e6c200;
}

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

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

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

.page-casino__faq-question {
    padding: 18px 25px;
    font-size: 1.2em;
    color: #B80000;
    cursor: pointer;
    position: relative;
    display: block;
    margin: 0;
}

.page-casino__faq-answer {
    padding: 0 25px 18px 25px;
    font-size: 1em;
    color: #666666;
    display: none; /* Hidden by default, toggled by JS */
}

/* CTA Section */
.page-casino__cta-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background */
    color: #ffffff;
    text-align: center;
}

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

.page-casino__cta-section .page-casino__section-intro {
    color: #f0f0f0;
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 3em;
    }
    .page-casino__hero-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-casino__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px);
    }

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

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

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

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

    .page-casino__btn {
        width: 80%;
        margin: 5px auto;
    }

    .page-casino__section-title {
        font-size: 2em;
    }

    .page-casino__section-intro {
        font-size: 0.95em;
    }

    .page-casino__features-grid,
    .page-casino__game-categories,
    .page-casino__promo-grid {
        grid-template-columns: 1fr;
    }

    .page-casino__feature-card,
    .page-casino__category-card,
    .page-casino__promo-card {
        min-height: auto;
    }

    .page-casino__app-cta {
        flex-direction: column;
    }

    .page-casino__app-image {
        width: 100%;
        max-width: 300px;
    }

    .page-casino__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-casino__faq-answer {
        padding: 0 20px 15px 20px;
    }

    /* CRITICAL: Mobile content area images must be responsive */
    .page-casino img {
        max-width: 100%;
        height: auto;
    }
    .page-casino {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .page-casino__hero-title {
        font-size: 2em;
    }
    .page-casino__hero-description {
        font-size: 0.9em;
    }
    .page-casino__btn--large {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-casino__btn {
        width: 90%;
    }
}