.page-casino {
    background-color: #F4F7FB; /* Background color from custom配色 */
    color: #1F2D3D; /* Text Main color */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 10px; /* Small top padding for the first section as per rule */
}

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

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 40px; /* Separates from next section */
    background-color: #2d0000; /* Deep red/wine red background for section */
    color: #FFFFFF; /* Text color for hero content */
    display: flex;
    flex-direction: column; /* Ensure image is above text in DOM order */
    align-items: center;
    text-align: center;
}

.page-casino__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Max height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px; /* Space between image and text */
}

.page-casino__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
}

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

.page-casino__hero-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #d6d604; /* Yellow-green/lemon yellow accent */
    margin-bottom: 15px;
    /* No fixed font-size for H1 */
}

.page-casino__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
}

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

/* General Button Styles */
.page-casino__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1em;
}

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

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

.page-casino__button--secondary {
    background-color: transparent;
    border: 2px solid #6FA3FF; /* Auxiliary color for border */
    color: #6FA3FF; /* Auxiliary color for text */
}

.page-casino__button--secondary:hover {
    background-color: #6FA3FF;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.page-casino__button--small {
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-casino__button--large {
    padding: 15px 35px;
    font-size: 1.2em;
}

/* Section Titles */
.page-casino__section-title {
    font-size: 2.2em;
    color: #1F2D3D; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px; /* Consistent spacing */
    font-weight: bold;
}

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

/* Games Grid Section */
.page-casino__games-section {
    padding: 60px 0;
    background-color: #F4F7FB; /* Background color */
}

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

.page-casino__game-card {
    background-color: #FFFFFF; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    border: 1px solid #D6E2FF; /* Border color */
}

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

.page-casino__game-card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency, ensures min 200px */
    object-fit: cover;
    display: block;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    min-height: 200px; /* Ensure images are not too small */
}

.page-casino__game-card-title {
    font-size: 1.5em;
    color: #000000; /* Custom Color_1776249996415 */
    margin: 20px 15px 10px;
}

.page-casino__game-card-text {
    font-size: 0.95em;
    color: #1F2D3D; /* Text Main */
    padding: 0 15px 20px;
    flex-grow: 1; /* Pushes button to bottom */
}

.page-casino__game-card .page-casino__button {
    margin: 0 15px 20px;
}

.page-casino__view-all {
    text-align: center;
    margin-top: 20px;
}

/* Features Section */
.page-casino__features-section {
    background-color: #2d0000; /* Deep red/wine red background */
    padding: 60px 0;
    color: #FFFFFF;
}

.page-casino__features-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: rgba(255, 255, 255, 0.1); /* Slightly transparent white card */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-casino__feature-title {
    font-size: 1.6em;
    color: #d6d604; /* Yellow-green/lemon yellow accent */
    margin-bottom: 15px;
}

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

/* CTA Section */
.page-casino__cta-section {
    padding: 80px 0;
    background-color: #F4F7FB; /* Background color */
    text-align: center;
}

.page-casino__cta-title {
    font-size: 2.5em;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-casino__cta-description {
    font-size: 1.2em;
    color: #1F2D3D;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-casino__hero-title {
        font-size: clamp(1.8em, 7vw, 2.5em); /* Using clamp for H1 on mobile */
    }

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

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

    .page-casino__button {
        width: 100%;
    }

    .page-casino__section-title {
        font-size: 1.8em;
    }

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

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

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

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

    .page-casino__cta-title {
        font-size: 2em;
    }

    /* Ensure all images in .page-casino content area are responsive */
    .page-casino img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Ensure minimum width for content images */
        min-height: 200px; /* Ensure minimum height for content images */
    }

    .page-casino__game-card-image {
        min-width: unset; /* Override for card images if needed, but still respects 200px min */
        min-height: unset;
    }
}

/* Global image size constraint check for content area */
/* This rule applies to any img within .page-casino, ensuring minimum display size */
.page-casino img:not(.shared-header img):not(.shared-footer img) {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Helps maintain aspect ratio if dimensions are fixed */
}

/* Override for responsive images to allow shrinking but not below min */
@media (max-width: 768px) {
    .page-casino img {
        max-width: 100%;
        height: auto;
    }
}