/* style/casino.css */

/* Base Styles & Typography */
.page-casino {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.page-casino__section-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #F2FFF6; /* Text Main */
}

.page-casino__main-title {
    font-size: clamp(32px, 5vw, 56px); /* H1 font-size clamp */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #F2C14E; /* Gold */
    max-width: 900px;
}

.page-casino__description {
    font-size: 18px;
    margin-bottom: 30px;
    color: #A7D9B8; /* Text Secondary */
    max-width: 800px;
    text-align: center;
}

.page-casino__text-block {
    margin-bottom: 20px;
    color: #F2FFF6; /* Text Main */
    font-size: 17px;
}

.page-casino__text-light {
    color: #A7D9B8; /* Text Secondary */
}

.page-casino__text-center {
    text-align: center;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    min-height: 70vh;
    overflow: hidden; /* Ensure no overflow from image */
}

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

.page-casino__hero-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image for text readability */
    /* No filter to change color, only brightness */
}

.page-casino__hero-content {
    position: relative;
    z-index: 1;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.page-casino__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Limit button group width */
    box-sizing: border-box;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    max-width: 100%; /* Ensure button does not overflow container */
}

.page-casino__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #F2FFF6; /* Text Main */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__btn-secondary {
    background-color: transparent;
    color: #2AD16F; /* Main color */
    border: 2px solid #2AD16F;
}

.page-casino__btn-secondary:hover {
    background-color: #2AD16F;
    color: #F2FFF6; /* Text Main */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-small {
    padding: 10px 20px;
    font-size: 14px;
}

.page-casino__btn-large {
    padding: 18px 35px;
    font-size: 18px;
}

/* Intro Section */
.page-casino__intro-section,
.page-casino__games-section,
.page-casino__why-choose-us-section,
.page-casino__faq-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #08160F; /* Background */
    color: #F2FFF6; /* Text Main */
}

.page-casino__dark-bg {
    background-color: #11271B; /* Card BG */
    color: #F2FFF6; /* Text Main */
}

/* Games Section */
.page-casino__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-casino__game-card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #2E7A4E; /* Border */
}

.page-casino__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
}

.page-casino__game-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #F2C14E; /* Gold */
}

.page-casino__game-description {
    font-size: 15px;
    color: #A7D9B8; /* Text Secondary */
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1; /* Make description take available space */
}

/* Promotions Section */
.page-casino__promotions-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #11271B; /* Card BG */
    color: #F2FFF6; /* Text Main */
}

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

.page-casino__promo-card {
    background-color: #0A4B2C; /* Deep Green */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    border: 1px solid #2E7A4E; /* Border */
    display: flex;
    flex-direction: column;
}

.page-casino__promo-card img {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
}

.page-casino__promo-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #F2C14E; /* Gold */
    padding: 0 15px;
}

.page-casino__promo-description {
    font-size: 15px;
    color: #A7D9B8; /* Text Secondary */
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Why Choose Us Section */
.page-casino__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__feature-item {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #2E7A4E; /* Border */
}

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

.page-casino__feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #F2C14E; /* Gold */
}

.page-casino__feature-description {
    font-size: 15px;
    color: #A7D9B8; /* Text Secondary */
}

/* How To Join Section */
.page-casino__how-to-join-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #11271B; /* Card BG */
    color: #F2FFF6; /* Text Main */
}

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

.page-casino__step-item {
    background-color: #0A4B2C; /* Deep Green */
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #2E7A4E; /* Border */
}

.page-casino__step-item img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}

.page-casino__step-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #F2C14E; /* Gold */
}

.page-casino__step-description {
    font-size: 14px;
    color: #A7D9B8; /* Text Secondary */
}

/* FAQ Section */
.page-casino__faq-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

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

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

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
    cursor: pointer;
    background-color: #0A4B2C; /* Deep Green */
    border-bottom: 1px solid #1E3A2A; /* Divider */
    list-style: none; /* Remove default marker */
}

.page-casino__faq-question::-webkit-details-marker {
    display: none; /* Remove default marker for webkit browsers */
}

.page-casino__faq-item[open] .page-casino__faq-question {
    border-bottom: 1px solid #2E7A4E; /* Border */
}

.page-casino__faq-toggle {
    font-size: 24px;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #2AD16F; /* Main color */
}

.page-casino__faq-item[open] .page-casino__faq-toggle {
    transform: rotate(45deg);
}

.page-casino__faq-answer {
    padding: 20px 25px;
    font-size: 16px;
    color: #A7D9B8; /* Text Secondary */
}

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

/* Call to Action Section */
.page-casino__cta-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
    background-color: #11271B; /* Card BG */
    color: #F2FFF6; /* Text Main */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__hero-section {
        padding: 40px 15px;
    }
    .page-casino__section-title {
        font-size: clamp(24px, 3.5vw, 40px);
    }
    .page-casino__main-title {
        font-size: clamp(28px, 4.5vw, 50px);
    }
    .page-casino__game-grid,
    .page-casino__promo-grid,
    .page-casino__features-grid,
    .page-casino__steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .page-casino {
      font-size: 16px;
      line-height: 1.6;
    }

    .page-casino__hero-section {
        padding: 30px 15px;
        min-height: 60vh;
    }

    .page-casino__hero-content {
        padding: 0 10px;
    }

    .page-casino__main-title {
        font-size: 32px; /* Fixed for mobile */
        margin-bottom: 15px;
    }

    .page-casino__description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 90%; /* Ensure container takes full width */
        margin-left: auto;
        margin-right: auto;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-casino__intro-section,
    .page-casino__games-section,
    .page-casino__promotions-section,
    .page-casino__why-choose-us-section,
    .page-casino__how-to-join-section,
    .page-casino__faq-section,
    .page-casino__cta-section {
        padding: 40px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-casino__game-grid,
    .page-casino__promo-grid,
    .page-casino__features-grid,
    .page-casino__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-casino__game-card img,
    .page-casino__promo-card img {
         /* Adjust height for mobile */
    }

    /* Images responsive */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-casino__section,
    .page-casino__card,
    .page-casino__container,
    .page-casino__image-wrapper,
    .page-casino__game-card,
    .page-casino__promo-card,
    .page-casino__feature-item,
    .page-casino__step-item,
    .page-casino__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left: 15px; */ /* Handled by section padding */
        /* padding-right: 15px; */ /* Handled by section padding */
        overflow: hidden !important; /* Ensure no overflow */
    }

    /* Video section top padding, body handles --header-offset */
    .page-casino__video-section {
        padding-top: 10px !important;
    }
}

/* Ensure content area images CSS size is not less than 200px */
.page-casino__game-card img,
.page-casino__promo-card img {
    min-width: 200px; /* Enforce min size if not explicitly set larger */
    min-height: 200px;
}
.page-casino__feature-item img,
.page-casino__step-item img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}