.page-casino {
    background-color: #FFFFFF; /* Default background */
    color: #333333; /* Default text color */
    font-family: Arial, sans-serif;
}

.page-casino__hero-section {
    background: linear-gradient(135deg, #017439, #005f2c); /* Primary color gradient */
    padding-top: 10px; /* Small top padding to account for body padding-top */
    padding-bottom: 40px;
    color: #FFFFFF;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-casino__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for desktop image */
    margin-bottom: 20px;
}

.page-casino__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-casino__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #FFD700, #FFA500); /* Gold to Orange gradient for H1 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.page-casino__hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

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

.page-casino__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 150px;
    text-align: center;
    cursor: pointer;
}

.page-casino__btn--register {
    background-color: #C30808; /* Register color */
    color: #FFFF00; /* Register font color */
}

.page-casino__btn--register:hover {
    background-color: #a30606;
    transform: translateY(-2px);
}

.page-casino__btn--login {
    background-color: #C30808; /* Login color */
    color: #FFFF00; /* Login font color */
}

.page-casino__btn--login:hover {
    background-color: #a30606;
    transform: translateY(-2px);
}

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

.page-casino__introduction-section,
.page-casino__why-choose-section,
.page-casino__cta-section {
    background-color: #FFFFFF; /* White background for text sections */
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-casino__section-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #017439; /* Primary color */
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.3;
}

.page-casino__section-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #555555;
    text-align: center;
    margin-bottom: 20px;
}

.page-casino__games-section {
    background-color: #f8f8f8;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-casino__game-tile {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* Ensure no underline */
}

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

.page-casino__game-tile img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Minimum image size for content */
}

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

.page-casino__feature-item {
    background-color: #f0f0f0;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.page-casino__feature-item img {
    width: 100%;
    max-width: 300px; /* Ensure feature images are not too wide */
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
    border-radius: 4px;
    min-height: 200px; /* Minimum image size for content */
}

.page-casino__feature-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #017439; /* Primary color */
    margin-bottom: 10px;
}

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

.page-casino__cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.page-casino__btn--primary {
    background-color: #017439; /* Primary color */
    color: #FFFFFF;
}

.page-casino__btn--primary:hover {
    background-color: #005f2c;
    transform: translateY(-2px);
}

.page-casino__btn--secondary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
}

.page-casino__btn--secondary:hover {
    background-color: #a30606;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 849px) {
    .page-casino__hero-section {
        padding-top: 10px;
        padding-bottom: 30px;
    }

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

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

    .page-casino__hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .page-casino__btn {
        width: 100%;
        max-width: 280px;
    }

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

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

    .page-casino__game-tile img,
    .page-casino__feature-item img {
        max-width: 100%;
        height: auto;
        min-height: 200px; /* Ensure images are not too small */
    }
}

@media (max-width: 549px) {
    .page-casino__section {
        padding: 30px 15px;
    }

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

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

    .page-casino__section-title {
        font-size: 1.5rem;
    }

    .page-casino__game-grid,
    .page-casino__features-grid {
        grid-template-columns: 1fr; /* Single column layout for very small screens */
    }

    .page-casino__game-tile img,
    .page-casino__feature-item img {
        max-width: 100%;
        height: auto;
        min-height: 200px; /* Ensure images are not too small */
    }

    .page-casino__cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Ensure content area images are never smaller than 200px */
.page-casino img {
    max-width: 100%; /* Important for mobile overflow prevention */
    height: auto;
}

.page-casino__game-tile img,
.page-casino__feature-item img {
    min-width: 200px;
    min-height: 200px;
}