.page-casino {
    background-color: #0a0909; /* Deep dark background inspired by 3WIN, using a very dark grey */
    color: #F4F7FB; /* Light text for contrast */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-casino__hero-section {
    padding-top: 10px; /* Small top padding for non-homepage */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #1a1a1a; /* Slightly lighter dark for hero background */
    padding-bottom: 40px;
    position: relative;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-casino__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit hero image height */
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and text */
}

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

.page-casino__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1; /* Ensure content is above any subtle background effects */
}

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

.page-casino__description {
    font-size: 1.2rem;
    color: #D6E2FF; /* Lighter blue for description */
    margin-bottom: 30px;
}

.page-casino__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Ensure button is not too small */
}

.page-casino__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px #A5C4FF; /* Glow effect */
}

/* General Section Styles */
.page-casino__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #2F6BFF; /* Primary blue for section titles */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-casino__section-description,
.page-casino__text-content {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 30px;
    color: #F4F7FB;
}

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

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

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

.page-casino__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4), 0 0 20px #A5C4FF; /* Glow on hover */
}

.page-casino__game-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px; /* Ensure minimum size */
}

.page-casino__game-title {
    font-size: 1.8rem;
    color: #6FA3FF; /* Accent color for game titles */
    margin: 20px 0 10px;
    padding: 0 15px;
}

.page-casino__game-text {
    font-size: 1rem;
    color: #F4F7FB;
    padding: 0 15px 20px;
    flex-grow: 1; /* Allow text to take available space */
}

.page-casino__game-link {
    display: inline-block;
    padding: 10px 20px;
    background: #2F6BFF; /* Solid blue for game links */
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
    min-width: 120px; /* Ensure button is not too small */
}

.page-casino__game-link:hover {
    background-color: #4A8BFF;
}

.page-casino__button-wrapper {
    text-align: center;
    margin-top: 50px;
}

.page-casino__cta-button--wide {
    min-width: 250px;
}

/* Features Section */
.page-casino__features-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Dark background for this section */
}

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

.page-casino__feature-item {
    background-color: #1F2D3D; /* Darker card background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #D6E2FF;
    transition: transform 0.3s ease;
}

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

.page-casino__feature-title {
    font-size: 1.5rem;
    color: #2F6BFF; /* Primary blue for feature titles */
    margin-bottom: 15px;
}

.page-casino__feature-description {
    font-size: 1rem;
    color: #F4F7FB;
}

/* About Section */
.page-casino__about-section {
    padding: 60px 0;
    background-color: #0a0909;
}

.page-casino__text-link {
    display: inline-block;
    color: #6FA3FF; /* Accent blue for text links */
    text-decoration: underline;
    font-weight: 600;
    margin-top: 20px;
    transition: color 0.3s ease;
}

.page-casino__text-link:hover {
    color: #2F6BFF;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-casino__hero-image-wrapper {
        margin-bottom: 15px;
    }

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

    .page-casino__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-casino__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-casino__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
        min-width: unset;
    }

    .page-casino__section-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        padding-top: 30px;
    }

    .page-casino__game-grid,
    .page-casino__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-casino__game-image,
    .page-casino__hero-image {
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }

    /* Important: Mobile content image overflow fix */
    .page-casino img {
        max-width: 100%;
        height: auto;
    }
}

/* Ensure all images within .page-casino are at least 200px wide/high */
.page-casino img:not(.page-casino__hero-image) {
    min-width: 200px;
    min-height: 200px;
}