.page-casino {
    background-color: #0A0A0A;
    color: #FFF6D6;
    padding-top: 10px; /* Small top padding for inner pages */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

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

/* Hero Banner */
.page-casino__hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, #100224 0%, #0A0A0A 100%);
    display: flex;
    flex-direction: column; /* Default to column for mobile first approach */
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-casino__hero-image {
    width: 100%;
    height: auto; /* Responsive height */
    display: block;
    object-fit: cover;
    aspect-ratio: 16/5; /* Adjust aspect ratio for banners */
    filter: brightness(0.7); /* Slightly darken image for text readability, but NO color filters */
}

.page-casino__hero-content {
    position: relative; /* Changed from absolute to relative to follow "上图下文" for mobile, and avoid text overlap */
    padding: 20px 15px;
    max-width: 800px;
    z-index: 2;
}

.page-casino__main-title {
    font-size: clamp(1.8rem, 5vw, 3rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    color: #FFD36B; /* Using glow color for main title */
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

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

.page-casino__cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #100224; /* Dark text on bright button */
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-casino__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

/* Section Titles */
.page-casino__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #F2C14E; /* Main brand color for section 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: linear-gradient(90deg, #FFD36B 0%, #F2C14E 100%);
    border-radius: 2px;
}

.page-casino__paragraph {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Game Categories */
.page-casino__game-categories {
    padding: 60px 0;
    background-color: #100224; /* Darker background for game section */
}

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

.page-casino__game-card {
    background-color: #111111; /* Card BG color */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #FFF6D6;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%; /* Ensure cards take full width in their grid cell */
    max-width: 400px; /* Max width for individual cards */
}

.page-casino__game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(255, 211, 107, 0.2);
}

.page-casino__game-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency, will be responsive via object-fit */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #3A2A12;
    min-width: 200px; /* Card images minimum size */
    min-height: 200px;
    height: auto; /* Allow auto height to maintain aspect ratio with min-height */
}

.page-casino__game-title {
    font-size: 1.3rem;
    font-weight: 600;
    padding: 15px;
    text-align: center;
    color: #F2C14E;
}

/* Features Section */
.page-casino__features-section {
    padding: 60px 0;
}

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

.page-casino__feature-item {
    background-color: #111111;
    border: 1px solid #3A2A12;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #FFD36B;
    margin-bottom: 15px;
}

.page-casino__feature-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #FFF6D6;
}

/* CTA Section */
.page-casino__cta-section {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(180deg, #100224 0%, #0A0A0A 100%);
    border-top: 1px solid #3A2A12;
}

.page-casino__cta-button--large {
    padding: 15px 40px;
    font-size: 1.2rem;
    margin-top: 20px;
}

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

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

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

    .page-casino__cta-button {
        padding: 10px 25px;
        font-size: 1rem;
    }

    .page-casino__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

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

    .page-casino__game-card img {
        height: 200px;
    }

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

@media (max-width: 768px) {
    /* Enforce image responsiveness for content area images */
    .page-casino img {
        max-width: 100%;
        height: auto;
        display: block;
    }
}

@media (max-width: 549px) {
    .page-casino__main-title {
        font-size: clamp(1.3rem, 9vw, 2rem);
    }

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

    .page-casino__cta-button {
        font-size: 0.95rem;
    }

    .page-casino__section-title {
        font-size: clamp(1.3rem, 7vw, 1.8rem);
    }

    .page-casino__game-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
        gap: 15px;
    }

    .page-casino__game-card img {
        
    }

    .page-casino__feature-item {
        padding: 20px;
    }

    .page-casino__feature-title {
        font-size: 1.2rem;
    }
}

/* Ensure content area images meet min size requirements */
.page-casino img:not(.page-casino__hero-image) { /* Exclude hero image from this specific rule if needed, though hero is already large */
    min-width: 200px; /* Enforce min width */
    min-height: 200px; /* Enforce min height */
}