.page-casino {
    background-color: #0D0E12; /* Background */
    color: #FFF3E6; /* Text Main */
    font-family: Arial, sans-serif; /* Roboto气质 */
    line-height: 1.6;
    padding-bottom: 40px; /* Ensure some padding at the bottom */
}

/* Hero Section */
.page-casino__hero-section {
    display: flex;
    flex-direction: column; /* Enforce image above text */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 40px;
    position: relative;
    overflow: hidden; /* Ensure no overflow */
    max-width: 100%; /* Important for responsive */
}

.page-casino__hero-image-wrapper {
    width: 100%;
    margin-bottom: 20px; /* Space between image and content */
}

.page-casino__hero-image {
    width: 100%; /* Ensure image fills its container */
    height: auto;
    object-fit: cover;
    display: block;
    max-width: 100%;
}

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

.page-casino__hero-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFF3E6; /* Text Main */
}

.page-casino__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #FFF3E6; /* Text Main */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.page-casino__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
    color: #FFF3E6; /* Text Main */
    border: 1px solid transparent;
}

.page-casino__button--primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
    box-shadow: 0 4px 10px rgba(255, 140, 26, 0.3);
}

.page-casino__button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 140, 26, 0.5);
}

.page-casino__button--secondary {
    background-color: transparent;
    border: 1px solid #A84F0C; /* Border color */
    color: #FFF3E6; /* Text Main */
}

.page-casino__button--secondary:hover {
    background-color: rgba(255, 140, 26, 0.1);
    transform: translateY(-2px);
}

.page-casino__button--small {
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 5px;
}

.page-casino__button--text {
    background: none;
    border: none;
    color: #FFA53A; /* Auxiliary color for text links */
    padding: 0;
    text-decoration: underline;
}

.page-casino__button--text:hover {
    color: #FFB04D; /* Glow color for hover */
    transform: none;
    background: none;
}

/* Sections */
.page-casino__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #FFF3E6; /* Text Main */
    padding: 0 20px;
}

.page-casino__about-section,
.page-casino__games-section,
.page-casino__features-section,
.page-casino__cta-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-casino__about-content {
    max-width: 800px;
    margin: 0 auto 30px auto;
    text-align: center;
}

.page-casino__about-content p {
    margin-bottom: 20px;
    font-size: 1rem;
    color: #FFF3E6; /* Text Main */
}

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

.page-casino__game-card {
    background-color: #17191F; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #A84F0C; /* Border color */
    padding-bottom: 20px;
}

.page-casino__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

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

.page-casino__game-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFF3E6; /* Text Main */
    padding: 0 15px;
}

.page-casino__game-title a {
    color: #FFF3E6; /* Text Main */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__game-title a:hover {
    color: #FFA53A; /* Auxiliary color */
}

.page-casino__game-description {
    font-size: 0.95rem;
    color: #FFF3E6; /* Text Main */
    margin-bottom: 20px;
    padding: 0 15px;
}

.page-casino__view-all {
    text-align: center;
}

/* Features Section */
.page-casino__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-casino__feature-item {
    background-color: #17191F; /* Card BG */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #A84F0C; /* Border color */
    transition: transform 0.3s ease;
}

.page-casino__feature-item:hover {
    transform: translateY(-5px);
}

.page-casino__feature-icon {
    width: 100%; /* Ensure image fills its container */
    max-width: 250px; /* Max width for feature icons */
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFA53A; /* Auxiliary color */
}

.page-casino__feature-description {
    font-size: 0.95rem;
    color: #FFF3E6; /* Text Main */
}

/* CTA Section */
.page-casino__cta-section {
    text-align: center;
    padding-top: 60px;
}

.page-casino__cta-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #FFF3E6; /* Text Main */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-casino__hero-image {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .page-casino__hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .page-casino__hero-image {
        height: 400px;
    }

    .page-casino__section-title {
        font-size: clamp(1.6rem, 5vw, 2.5rem);
    }

    .page-casino__hero-buttons,
    .page-casino__cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-casino__button {
        width: 80%;
        max-width: 300px;
    }

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

    /* Mobile image overflow fix */
    .page-casino img {
        max-width: 100%;
        height: auto;
    }
    .page-casino__game-image {
        height: auto; /* Allow game images to scale */
    }
    .page-casino__feature-icon {
        height: auto; /* Allow feature icons to scale */
    }
}

@media (max-width: 480px) {
    .page-casino__hero-image {
        height: 300px;
    }

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

    .page-casino__hero-description {
        font-size: 0.95rem;
    }

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

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

    .page-casino__button {
        width: 90%;
    }
}

/* Ensure all content images in .page-casino maintain minimum size or scale responsively */
.page-casino img:not(.page-casino__hero-image, .page-casino__feature-icon, .page-casino__game-image) {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}
/* Specific overrides for elements to ensure minimum size for content images */
.page-casino__game-image,
.page-casino__feature-icon {
    min-width: 200px; /* Enforce min width */
    min-height: 200px; /* Enforce min height */
}