.page-casino {
    background-color: var(--background-color, #F4F7FB); /* Default if not overridden */
    color: var(--text-main-color, #1F2D3D);
    padding-top: 10px; /* Small top padding, relying on body padding for header offset */
}

/* Hero Section */
.page-casino__hero-section {
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    text-align: center;
    padding: 20px;
    background-color: #0a0909; /* Deep red/wine background for hero */
    position: relative;
    overflow: hidden; /* For potential background elements if any, but main image is img tag */
}

.page-casino__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 20px;
}

.page-casino__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.page-casino__hero-content {
    max-width: 900px;
    padding: 0 15px;
    position: relative; /* Ensure content is in normal flow, not absolute */
    z-index: 1; /* Ensure text is above any subtle background textures if present */
    color: #FFFFFF; /* White text on dark background */
}

.page-casino__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
    color: #FFFFFF;
    /* No fixed font-size, rely on clamp if needed, otherwise default browser scaling */
    /* clamp(2.5rem, 5vw, 3.5rem) example if needed, but not fixed */
}

.page-casino__description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #E0E0E0;
}

.page-casino__hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.page-casino__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: none;
}

.page-casino__button--primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
}

.page-casino__button--primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-casino__button--secondary {
    background-color: transparent;
    color: var(--primary-color, #2F6BFF);
    border: 2px solid var(--primary-color, #2F6BFF);
}

.page-casino__button--secondary:hover {
    background-color: var(--primary-color, #2F6BFF);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.page-casino__button--small {
    padding: 8px 18px;
    font-size: 0.9rem;
    border-radius: 30px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
}

.page-casino__button--small:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.page-casino__button--large {
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 50px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
}

.page-casino__button--large:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}


/* General Section Styling */
.page-casino__section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-main-color, #1F2D3D);
    padding-top: 40px;
}

.page-casino__section-description {
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-main-color, #1F2D3D);
}

/* Games Section */
.page-casino__games-section {
    padding: 60px 20px;
    background-color: var(--background-color, #F4F7FB);
}

.page-casino__games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-casino__game-card {
    background-color: var(--card-bg-color, #FFFFFF);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.page-casino__game-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, will be object-fit */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-casino__game-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main-color, #1F2D3D);
    padding: 0 15px;
}

.page-casino__game-card-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-main-color, #1F2D3D);
    margin-bottom: 20px;
    padding: 0 15px;
}

/* Features Section */
.page-casino__features-section {
    padding: 60px 20px;
    background-color: #0a0909; /* Dark background for this section */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.page-casino__features-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
    color: #FFFFFF;
}

.page-casino__features-content .page-casino__section-title,
.page-casino__features-content .page-casino__section-description {
    text-align: left;
    color: #FFFFFF;
}

.page-casino__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-casino__feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.page-casino__feature-icon {
    font-size: 1.8rem;
    margin-right: 15px;
    color: #d6d604; /* Yellow-green accent */
    line-height: 1;
}

.page-casino__feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #FFFFFF;
}

.page-casino__feature-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #E0E0E0;
}

.page-casino__features-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
}

.page-casino__features-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* CTA Section */
.page-casino__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--background-color, #F4F7FB);
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .page-casino__hero-section {
        padding: 15px;
    }

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

    .page-casino__main-title {
        font-size: 2rem; /* Adjusted for mobile, still not fixed large */
    }

    .page-casino__description {
        font-size: 1rem;
    }

    .page-casino__hero-actions {
        flex-direction: column;
        gap: 10px;
    }

    .page-casino__button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .page-casino__section-title {
        font-size: 1.8rem;
        padding-top: 30px;
    }

    .page-casino__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .page-casino__games-section,
    .page-casino__features-section,
    .page-casino__cta-section {
        padding: 40px 15px;
    }

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

    .page-casino__game-card-image {
        height: 180px; /* Adjust height for smaller screens */
    }

    .page-casino__features-section {
        flex-direction: column;
    }

    .page-casino__features-content,
    .page-casino__features-image-wrapper {
        max-width: 100%;
        text-align: center;
    }

    .page-casino__features-content .page-casino__section-title,
    .page-casino__features-content .page-casino__section-description {
        text-align: center;
    }

    .page-casino__feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-casino__feature-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    /* All content area images must be max-width: 100% on mobile */
    .page-casino img {
        max-width: 100%;
        height: auto;
    }
}

/* Ensure content area images are not smaller than 200px */
.page-casino img:not(.page-casino__hero-image) { /* Exclude hero image from this specific rule if it's meant to be larger */
    min-width: 200px;
    min-height: 200px;
    /* This rule ensures that if an image is meant to be small, it will still be at least 200x200 */
    /* However, for cards, we set a fixed height and object-fit, so min-width/height might not apply directly to display size */
    /* The primary mechanism is the card image height and the width: 100% on card */
}

/* Specific for card images to meet the 200px minimum in content */
.page-casino__game-card-image {
    width: 100%;
    height: 200px; /* This ensures the image display height is at least 200px */
    object-fit: cover;
}

/* Ensure color contrast */
.page-casino__hero-content,
.page-casino__features-content {
    color: #FFFFFF; /* White on dark background */
}

.page-casino__main-title,
.page-casino__description,
.page-casino__feature-title,
.page-casino__feature-text {
    color: #FFFFFF;
}

.page-casino__section-title,
.page-casino__section-description,
.page-casino__game-card-title,
.page-casino__game-card-text {
    color: var(--text-main-color, #1F2D3D); /* Dark text on light background */
}

/* Button colors are defined to have good contrast */