.page-casino {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background handled by shared.css */
}

/* Fixed header offset for the first main content section */
.page-casino__hero-section {
    padding-top: var(--header-offset, 120px);
}

.page-casino__section {
    padding: 60px 20px;
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
}

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

.page-casino__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Auxiliary color for titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-casino__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #B80000; /* Main color for underline */
    border-radius: 2px;
}

.page-casino__text-block {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0; /* Slightly off-white for readability */
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), #121212; /* Dark overlay on hero image area */
    text-align: center;
    overflow: hidden;
    padding-bottom: 60px;
}

.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 the background image */
}

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

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

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

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

.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: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-casino__btn-primary {
    background-color: #B80000;
    color: #ffffff;
    border: 2px solid #B80000;
}

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

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

.page-casino__btn-secondary:hover {
    background-color: #FFD700;
    color: #121212;
    border-color: #FFD700;
}

.page-casino__btn-text {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-casino__btn-text:hover {
    color: #B80000;
}

/* About Section */
.page-casino__about-section {
    background-color: #1a1a1a;
}

/* Games Section */
.page-casino__games-section {
    background-color: #0d0d0d;
}

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

.page-casino__game-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.page-casino__game-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-casino__card-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-casino__card-title a {
    color: inherit;
    text-decoration: none;
}

.page-casino__card-title a:hover {
    color: #B80000;
}

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

/* Features Section */
.page-casino__features-section {
    background-color: #121212;
}

.page-casino__dark-section {
    background-color: #B80000;
    color: #ffffff;
}

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

.page-casino__dark-section .page-casino__section-title::after {
    background-color: #FFD700;
}

.page-casino__dark-section .page-casino__text-block {
    color: #ffffff;
}

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

.page-casino__feature-item {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.page-casino__feature-icon {
    width: 200px; /* Adjusted to meet minimum size */
    height: 200px; /* Adjusted to meet minimum size */
    object-fit: contain;
    margin: 0 auto 20px auto;
    filter: brightness(1.2); /* Slightly brighten icons if needed, but no color change */
}

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

.page-casino__feature-description {
    font-size: 0.95em;
    color: #cccccc;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* How-to-join Section */
.page-casino__how-to-join-section {
    background-color: #1a1a1a;
}

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

.page-casino__step-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__step-number {
    font-size: 3em;
    color: #B80000;
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
}

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

.page-casino__step-description {
    font-size: 0.95em;
    color: #cccccc;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-casino__faq-section {
    background-color: #0d0d0d;
}

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

.page-casino__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    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 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

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

.page-casino__faq-toggle {
    font-size: 1.8em;
    color: #B80000;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
    transform: rotate(0deg);
    color: #FFD700;
}

.page-casino__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(0, 0, 0, 0.2);
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 1000px !important;
    padding: 15px 25px;
}

.page-casino__faq-answer p {
    font-size: 0.95em;
    color: #cccccc;
    margin: 0;
}

/* Final CTA Section */
.page-casino__cta-final-section {
    text-align: center;
    background-color: #B80000;
    color: #ffffff;
}

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

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

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

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

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

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

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

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

    .page-casino__section {
        padding: 40px 0;
    }

    .page-casino__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-casino__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-casino__text-block {
        font-size: 0.95em;
    }

    /* Image responsive */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video responsive (if any, though none currently in HTML) */
    .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__game-card,
    .page-casino__feature-item,
    .page-casino__step-item {
        padding: 20px;
    }

    .page-casino__faq-question {
        padding: 15px 20px;
    }
    .page-casino__faq-title {
        font-size: 1.1em;
    }
    .page-casino__faq-answer {
        padding: 0 20px;
    }
    .page-casino__faq-item.active .page-casino__faq-answer {
        padding: 15px 20px;
    }
}

/* Ensure no filter on images */
.page-casino img {
    filter: none;
}

/* Content area image CSS dimensions lower bound (by scope, not class name) */
/* Any img rule within .page-casino must not cause display size to be less than 200px */
.page-casino__game-image,
.page-casino__feature-icon {
    /* min-width and min-height are already set to 200px in the base styles for these elements. */
    /* This ensures they meet the 200x200px minimum requirement. */
}

/* Contrast fixes for critical areas */
.page-casino__dark-bg {
  color: #ffffff;
  background: #B80000;
}

.page-casino__light-bg {
  color: #333333;
  background: #ffffff;
}

.page-casino__medium-bg {
  color: #000000;
  background: #FFD700;
}