.page-casino {
    padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
    background-color: #FFFFFF; /* Light background as per shared.css body */
    color: #333333; /* Dark text for light background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px; /* Adjust padding, no additional padding-top here if already on .page-casino */
    min-height: 500px;
}

.page-casino__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

.page-casino__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    padding: 40px;
    border-radius: 10px;
    color: #FFFFFF; /* Light text for dark overlay */
}

.page-casino__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FCBC45; /* Login button color for highlight */
    line-height: 1.2;
}

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

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

/* Buttons */
.page-casino__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-width: 200px; /* Ensure buttons are large enough */
    text-align: center;
    box-sizing: border-box;
}

.page-casino__button--register {
    background-color: #000000; /* Main color */
    color: #FFFFFF; /* Register text color */
    border: 2px solid #000000;
}

.page-casino__button--register:hover {
    background-color: #333333;
    border-color: #333333;
}

.page-casino__button--login {
    background-color: #FCBC45; /* Login color */
    color: #000000; /* Dark text for light background button */
    border: 2px solid #FCBC45;
}

.page-casino__button--login:hover {
    background-color: #e0a538;
    border-color: #e0a538;
}

.page-casino__button--view-details,
.page-casino__button--claim-bonus,
.page-casino__button--responsible {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-casino__button--view-details:hover,
.page-casino__button--claim-bonus:hover,
.page-casino__button--responsible:hover {
    background-color: #e0a538;
    border-color: #e0a538;
}


/* General Sections */
.page-casino__games-overview,
.page-casino__promo-section,
.page-casino__why-choose-us,
.page-casino__responsible-gaming {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 20px;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-casino__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
}

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

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

.page-casino__category-card {
    background-color: #F8F8F8;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-casino__category-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-casino__card-title {
    font-size: 1.6em;
    color: #000000;
    margin-bottom: 10px;
    padding: 0 20px;
}

.page-casino__card-title a {
    text-decoration: none;
    color: inherit;
}

.page-casino__card-title a:hover {
    color: #FCBC45;
}

.page-casino__card-description {
    font-size: 1em;
    color: #666666;
    margin-bottom: 20px;
    padding: 0 20px;
    flex-grow: 1; /* Allows description to take available space */
}

/* Promo Section */
.page-casino__promo-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    background-color: #000000; /* Main color */
    color: #FFFFFF; /* Light text for dark background */
    padding: 60px;
}

.page-casino__promo-content {
    flex: 1;
    text-align: left;
}

.page-casino__promo-title {
    font-size: 3em;
    color: #FCBC45;
    margin-bottom: 20px;
}

.page-casino__promo-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.8;
}

.page-casino__promo-image {
    flex: 1;
    text-align: center;
}

.page-casino__promo-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* Why Choose Us 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 {
    text-align: center;
    padding: 30px;
    background-color: #F8F8F8;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-casino__feature-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-casino__feature-title {
    font-size: 1.4em;
    color: #000000;
    margin-bottom: 10px;
}

.page-casino__feature-text {
    font-size: 1em;
    color: #666666;
}

/* Responsible Gaming */
.page-casino__responsible-gaming {
    text-align: center;
    background-color: #F0F0F0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 2.8em;
    }
    .page-casino__promo-section {
        flex-direction: column;
        text-align: center;
    }
    .page-casino__promo-content {
        text-align: center;
    }
    .page-casino__promo-title {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .page-casino__hero-section {
        padding: 60px 15px;
        min-height: 400px;
    }
    .page-casino__hero-title {
        font-size: 2.2em;
    }
    .page-casino__hero-description {
        font-size: 1em;
    }
    .page-casino__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-casino__button {
        width: 100%;
        max-width: 300px;
    }

    .page-casino__section-title {
        font-size: 2em;
    }
    .page-casino__section-text {
        font-size: 0.95em;
    }
    .page-casino__promo-section {
        padding: 40px 20px;
    }
    .page-casino__promo-title {
        font-size: 2em;
    }
    .page-casino__promo-description {
        font-size: 1em;
    }

    .page-casino__category-card img,
    .page-casino__promo-image img,
    .page-casino__feature-item img {
        max-width: 100%; /* Ensures images don't overflow */
        height: auto; /* Maintains aspect ratio */
        min-width: 200px; /* Enforce min size */
        min-height: 200px; /* Enforce min size */
    }

    /* Important: Content area images must not cause horizontal scroll */
    .page-casino img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-casino__hero-section {
        padding: 40px 10px;
    }
    .page-casino__hero-title {
        font-size: 1.8em;
    }
    .page-casino__hero-content {
        padding: 20px;
    }
    .page-casino__section-title {
        font-size: 1.8em;
    }
    .page-casino__promo-title {
        font-size: 1.8em;
    }
}

/* Ensure no content area image is smaller than 200px */
.page-casino img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Specific overrides to ensure min-size where needed */
.page-casino__category-card img {
    width: 100%;
    height: 250px;
}
.page-casino__feature-item img {
    width: 200px;
    
    object-fit: contain;
}