.page-casino {
    background-color: var(--background, #F4F7FB);
    color: var(--text-main, #1F2D3D);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-casino__container {
    max-width: 1200px; /* Aligns with 3WIN style boxed feeling */
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.page-casino__hero-section {
    display: flex;
    flex-direction: column; /* Enforce image above text */
    align-items: center;
    text-align: center;
    padding: 10px 0 40px; /* Small top padding, larger bottom padding */
    background-color: var(--primary-color, #2F6BFF); /* Use primary color for hero background */
    color: #FFFFFF;
    position: relative;
    overflow: hidden; /* Ensure content doesn't spill */
}

.page-casino__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Match container width for image */
    margin-bottom: 30px; /* Space between image and text */
}

.page-casino__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce minimum image size */
    min-height: 200px;
}

.page-casino__hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.page-casino__main-title {
    color: #FFFFFF;
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Use clamp for H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-casino__description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: #E0EFFF; /* Lighter text for contrast on dark blue */
}

.page-casino__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px var(--glow, #A5C4FF); /* Glow color */
}

.page-casino__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--glow, #A5C4FF);
}

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

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

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

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

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

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

.page-casino__game-image {
    width: 100%;
    height: auto; /* Let HTML attributes define aspect ratio, or auto for responsiveness */
    aspect-ratio: 4 / 3; /* Based on 400x300 HTML attributes */
    object-fit: cover;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce minimum image size */
    min-height: 200px;
}

.page-casino__game-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-casino__game-title a {
    color: var(--custom-color-1776249996415, #000000); /* Black for titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__game-title a:hover {
    color: var(--primary-color, #2F6BFF);
}

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

.page-casino__game-link {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: var(--secondary-color, #6FA3FF); /* Secondary color for internal links */
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.page-casino__game-link:hover {
    background-color: var(--primary-color, #2F6BFF);
}

/* Features Section */
.page-casino__features-section {
    background-color: var(--primary-color, #2F6BFF);
    padding: 60px 0;
    color: #FFFFFF;
}

.page-casino__features-section .page-casino__section-title,
.page-casino__features-section .page-casino__section-description {
    color: #FFFFFF;
}

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

.page-casino__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

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

.page-casino__feature-icon {
    width: 200px; /* Must display at least 200px */
    height: 200px; /* Must display at least 200px */
    object-fit: contain;
    margin-bottom: 20px;
    display: block; /* To center */
    margin-left: auto;
    margin-right: auto;
}

.page-casino__feature-heading {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-casino__feature-description {
    font-size: 1rem;
    color: #E0EFFF;
    margin-bottom: 20px;
}

.page-casino__feature-link {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 5px;
    background-color: #FFFFFF;
    color: var(--primary-color, #2F6BFF);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-casino__feature-link:hover {
    background-color: var(--secondary-color, #6FA3FF);
    color: #FFFFFF;
}

/* Responsible Gaming Section */
.page-casino__responsible-gaming {
    padding: 60px 0;
    background-color: var(--background, #F4F7FB);
    text-align: center;
}

.page-casino__cta-button--secondary {
    background: var(--secondary-color, #6FA3FF);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__cta-button--secondary:hover {
    background: var(--primary-color, #2F6BFF);
}

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

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

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

    .page-casino__section-title {
        font-size: 2rem;
        margin-top: 40px;
    }

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

    /* Important: Mobile images must be responsive */
    .page-casino img {
        max-width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Ensure min size on mobile too */
        min-height: 200px !important;
    }

    .page-casino__feature-icon {
        width: 200px; /* Maintain 200px display width */
        height: 200px; /* Maintain 200px display height */
    }
}

/* Ensure all content area images (any img under .page-casino) are not smaller than 200px */
.page-casino img {
    min-width: 200px;
    min-height: 200px;
}

/* Specific overrides to ensure img width/height are not set below 200px by any selector */
.page-casino__game-image,
.page-casino__feature-icon {
    /* These properties are already set to ensure minimums and responsiveness */
    /* No conflicting rules that would set them below 200px */
}