.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light body background */
    background-color: #FFFFFF; /* Explicitly set for clarity, though shared.css defines body */
}

/* Header offset - applied to the first content section to prevent it from being hidden by fixed header */
.page-casino__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content starts below the fixed header */
}

/* General section styling */
.page-casino__section-title {
    font-size: 2.5em;
    color: #017439; /* Primary brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

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

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    color: #ffffff; /* Light text on dark background */
    background-color: #017439; /* Primary brand color for hero background */
    padding-bottom: 60px;
    overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-casino__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay for text readability */
    display: block;
}

.page-casino__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 20px;
}

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

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

.page-casino__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Ensure responsiveness for buttons */
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
    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;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
}

.page-casino__btn-primary {
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

.page-casino__btn-secondary {
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-casino__btn-secondary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

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

/* Why Choose Us Section */
.page-casino__why-choose-us {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

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

.page-casino__feature-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-casino__feature-item:hover {
    transform: translateY(-5px);
}

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

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

/* Game Categories Section */
.page-casino__game-categories {
    background-color: #017439; /* Primary brand color background */
    color: #ffffff; /* Light text on dark background */
    padding: 60px 0;
}

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

.page-casino__game-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.page-casino__game-card:hover {
    transform: translateY(-5px);
}

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

.page-casino__card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-casino__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #FFFFFF; /* White text for card titles */
}

.page-casino__card-title a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__card-title a:hover {
    color: #FFFF00; /* Yellow hover for links */
}

.page-casino__card-description {
    font-size: 0.95em;
    color: #f0f0f0;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-casino__card-link {
    display: inline-block;
    color: #FFFF00; /* Yellow link */
    text-decoration: none;
    font-weight: bold;
    margin-top: auto; /* Push to bottom */
    transition: color 0.3s ease;
}

.page-casino__card-link:hover {
    color: #ffffff;
}

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

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

.page-casino__promo-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.page-casino__promo-card:hover {
    transform: translateY(-5px);
}

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

/* Gameplay Guide Section */
.page-casino__gameplay-guide {
    background-color: #017439;
    color: #ffffff;
    padding: 60px 0;
}

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

.page-casino__guide-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease;
}

.page-casino__guide-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-casino__guide-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.page-casino__guide-title a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__guide-title a:hover {
    color: #FFFF00;
}

.page-casino__guide-description {
    font-size: 0.9em;
    color: #f0f0f0;
}

/* Video Section */
.page-casino__video-section {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

.page-casino__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-casino__video-link {
    display: block; /* Make the link cover the video area */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-casino__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

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

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

.page-casino__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    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: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.page-casino__faq-title {
    font-size: 1.2em;
    color: #FFFFFF;
    margin: 0;
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFFF00;
    transition: transform 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
    color: #FFFFFF;
}

.page-casino__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

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

.page-casino__faq-answer p {
    margin-bottom: 0;
    color: #f0f0f0;
}

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

/* Final CTA Section */
.page-casino__cta-final {
    background-color: #ffffff;
    color: #333333;
    padding: 80px 0;
    text-align: center;
}

.page-casino__cta-final .page-casino__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

.page-casino__cta-final .page-casino__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #017439;
}

/* Responsive adjustments */
@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__hero-section {
        min-height: 450px;
        padding-bottom: 40px;
    }
    .page-casino__hero-title {
        font-size: 2.2em;
    }
    .page-casino__hero-description {
        font-size: 1em;
    }
    .page-casino__section-title {
        font-size: 1.8em;
    }
    .page-casino__container {
        padding: 30px 15px; /* Adjust padding for mobile */
    }

    /* Mobile image responsiveness */
    .page-casino img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-casino__game-image,
    .page-casino__promo-image {
        height: auto !important; /* Allow height to adjust naturally */
    }

    /* Mobile video responsiveness */
    .page-casino video,
    .page-casino__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-casino__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-casino__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure video section respects header offset on mobile */
    }

    /* Mobile button responsiveness */
    .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-left: 15px;
        padding-right: 15px;
    }
    .page-casino__hero-cta-buttons,
    .page-casino__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-casino__features-grid,
    .page-casino__game-grid,
    .page-casino__promotions-grid,
    .page-casino__guide-grid {
        grid-template-columns: 1fr; /* Single column layout for grids */
    }
    .page-casino__faq-answer {
        padding: 0 15px;
    }
    .page-casino__faq-item.active .page-casino__faq-answer {
        padding: 15px 15px;
    }

    /* Ensure content containers have padding for mobile */
    .page-casino__section,
    .page-casino__card,
    .page-casino__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-casino__hero-title {
        font-size: 1.8em;
    }
    .page-casino__hero-description {
        font-size: 0.9em;
    }
    .page-casino__section-title {
        font-size: 1.5em;
    }
}