:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --card-bg-color: #11271B;
    --background-color: #08160F;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    /* Button gradient */
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --deep-green-color: #0A4B2C;
}

.page-casino {
    font-family: Arial, sans-serif;
    color: var(--text-main-color); /* Default text color for the page, assuming dark body background */
    background-color: var(--background-color); /* Page specific background if different from body */
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Base section styling */
.page-casino__section {
    padding: 60px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

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

.page-casino__section-title {
    font-size: 2.5em;
    color: var(--text-main-color);
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.page-casino__section-description {
    font-size: 1.1em;
    color: var(--text-secondary-color);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 80px;
    text-align: center;
}

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

.page-casino__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
    min-width: 200px;
    min-height: 200px;
}

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    color: var(--text-main-color);
}

.page-casino__main-title {
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    font-size: clamp(2.5em, 5vw, 3.5em); /* Example clamp for responsive font size */
}

.page-casino__hero-description {
    font-size: 1.2em;
    color: var(--text-secondary-color);
    margin-bottom: 40px;
    line-height: 1.5;
}

.page-casino__hero-cta-buttons,
.page-casino__cta-buttons-bottom,
.page-casino__cta-buttons-final {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Button styles */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-casino__btn-primary {
    background: var(--btn-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

.page-casino__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-casino__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
}

.page-casino__btn-link {
    background: transparent;
    color: var(--gold-color);
    border: none;
    padding: 5px 0;
    font-size: 1em;
    text-decoration: underline;
}

.page-casino__btn-link:hover {
    color: var(--glow-color);
}

.page-casino__btn-center {
    margin: 40px auto 0 auto;
    display: block;
    width: fit-content;
}

/* Video Section */
.page-casino__video-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    background-color: var(--deep-green-color);
}

.page-casino__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    width: 100%; /* Ensure width is 100% on desktop */
    background: #000;
    margin: 0 auto 30px auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-casino__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block; /* Ensure it behaves as a block element */
    cursor: pointer;
    min-width: 200px;
    min-height: 200px;
}

.page-casino__video-cta {
    margin-top: 30px;
}

/* Games Overview */
.page-casino__games-overview {
    background-color: var(--background-color);
    padding-bottom: 80px;
}

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

.page-casino__game-card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards are same height */
}

.page-casino__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-casino__card-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin: 20px 20px 10px 20px;
    font-weight: bold;
}

.page-casino__card-title a {
    color: var(--gold-color);
    text-decoration: none;
}

.page-casino__card-title a:hover {
    color: var(--glow-color);
}

.page-casino__card-text {
    color: var(--text-secondary-color);
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
}

.page-casino__game-card .page-casino__btn-link {
    margin: 0 20px 20px 20px;
    align-self: flex-start; /* Align link button to start */
}


/* Promotions Section */
.page-casino__promotions-section {
    background-color: var(--deep-green-color);
    padding-bottom: 80px;
}

.page-casino__promotions-banner {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 10px;
    margin: 40px auto;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    min-width: 200px;
    min-height: 200px;
}

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

.page-casino__promotions-item {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.page-casino__promotions-item-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-casino__promotions-item-text {
    color: var(--text-secondary-color);
}

/* Why Choose Section */
.page-casino__why-choose {
    background-color: var(--background-color);
    padding-bottom: 80px;
}

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

.page-casino__feature-item {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__feature-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-casino__feature-text {
    color: var(--text-secondary-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-casino__feature-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 15px;
    min-width: 200px;
    min-height: 200px;
}


/* How to Play Section */
.page-casino__how-to-play {
    background-color: var(--deep-green-color);
    padding-bottom: 80px;
}

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

.page-casino__step-item {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.page-casino__step-number {
    font-size: 2.5em;
    color: var(--gold-color);
    font-weight: bold;
    margin-bottom: 15px;
    display: inline-block;
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    line-height: 60px;
}

.page-casino__step-title {
    font-size: 1.3em;
    color: var(--text-main-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-casino__step-text {
    color: var(--text-secondary-color);
}

/* FAQ Section */
.page-casino__faq-section {
    background-color: var(--background-color);
    padding-bottom: 80px;
}

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

.page-casino__faq-item {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-main-color);
    cursor: pointer;
    background-color: var(--card-bg-color);
    border-bottom: 1px solid var(--divider-color);
    list-style: none; /* For details/summary */
}

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

.page-casino__faq-question:hover {
    background-color: var(--deep-green-color);
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.page-casino__faq-answer {
    padding: 20px;
    padding-top: 0;
    color: var(--text-secondary-color);
    font-size: 1em;
    line-height: 1.5;
    background-color: var(--card-bg-color);
}

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

.page-casino__faq-answer .page-casino__btn-link {
    margin-top: 10px;
    display: inline-block;
}

/* Contact CTA Section */
.page-casino__contact-cta {
    background-color: var(--primary-color); /* Light background for contrast fix */
    color: #ffffff; /* Text color for light background */
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-casino__contact-cta .page-casino__section-title,
.page-casino__contact-cta .page-casino__section-description {
    color: #ffffff; /* Ensure text is white on primary color background */
}

.page-casino__cta-buttons-final .page-casino__btn-secondary {
    border-color: #ffffff;
    color: #ffffff;
}

.page-casino__cta-buttons-final .page-casino__btn-secondary:hover {
    background-color: #ffffff;
    color: var(--primary-color);
}


/* Responsive styles */
@media (max-width: 1024px) {
    .page-casino__section-title {
        font-size: 2em;
    }

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

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

    .page-casino__card-image {
        height: 200px;
    }

    .page-casino__promotions-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-casino__section {
        padding: 40px 0;
    }

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

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

    .page-casino__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-casino__main-title {
        font-size: clamp(2em, 8vw, 2.8em);
    }

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

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

    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .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: 12px 20px; /* Adjust padding for mobile */
    }

    .page-casino__hero-section {
        padding-bottom: 60px;
    }

    /* Video responsiveness */
    .page-casino video,
    .page-casino__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-casino__video-section,
    .page-casino__video-container,
    .page-casino__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-casino__video-section {
        padding-top: 10px !important; /* Small top padding */
    }

    /* Image responsiveness */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-casino__card-image,
    .page-casino__promotions-banner,
    .page-casino__feature-image {
        height: auto !important; /* Allow height to adjust */
        min-height: 200px !important; /* Ensure minimum height */
    }

    .page-casino__card,
    .page-casino__section,
    .page-casino__container,
    .page-casino__game-card,
    .page-casino__promotions-item,
    .page-casino__feature-item,
    .page-casino__step-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Remove padding from container to allow section padding to handle it */
    .page-casino__container {
        padding-left: 0;
        padding-right: 0;
    }
    .page-casino__games-overview .page-casino__container,
    .page-casino__promotions-section .page-casino__container,
    .page-casino__why-choose .page-casino__container,
    .page-casino__how-to-play .page-casino__container,
    .page-casino__faq-section .page-casino__container,
    .page-casino__contact-cta .page-casino__container {
        padding: 0 15px;
    }

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

/* Contrast rules based on background-color: var(--background-color) which is #08160F (dark) */
.page-casino {
  color: var(--text-main-color); /* #F2FFF6 */
}

/* Card and dark sections */
.page-casino__card,
.page-casino__promotions-item,
.page-casino__feature-item,
.page-casino__step-item,
.page-casino__faq-item {
  background-color: var(--card-bg-color); /* #11271B */
  color: var(--text-main-color); /* #F2FFF6 */
}

.page-casino__dark-section {
  background-color: var(--deep-green-color); /* #0A4B2C */
  color: #ffffff; /* Explicitly white for strong contrast */
}

/* Contact CTA with primary color background */
.page-casino__contact-cta {
  background-color: var(--primary-color); /* #11A84E */
  color: #ffffff; /* Explicitly white for strong contrast */
}
.page-casino__contact-cta .page-casino__section-title,
.page-casino__contact-cta .page-casino__section-description {
    color: #ffffff;
}

/* Buttons on primary color background */
.page-casino__cta-buttons-final .page-casino__btn-secondary {
    border-color: #ffffff;
    color: #ffffff;
}
.page-casino__cta-buttons-final .page-casino__btn-secondary:hover {
    background-color: #ffffff;
    color: var(--primary-color);
}

/* Ensure images smaller than 200px are not used */
.page-casino img {
  min-width: 200px;
  min-height: 200px;
}
.page-casino__card-image,
.page-casino__promotions-banner,
.page-casino__feature-image {
  min-width: 200px;
  min-height: 200px;
}