.page-casino {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --card-bg-color: #17191F;
    --page-bg-color: #0D0E12;
    --text-main-color: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange-color: #D96800;

    background-color: var(--page-bg-color);
    color: var(--text-main-color);
    line-height: 1.6;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    overflow-x: hidden; /* Prevent horizontal scroll on main */
}

.page-casino__hero-section {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
}

.page-casino__hero-image-wrapper {
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px; /* Space between image and content */
}

.page-casino__hero-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9; /* Adjust for common hero ratios like 1920x1080 */
    object-fit: cover;
    object-position: center;
    filter: none; /* Ensure no filter changes original image color */
}

.page-casino__hero-content {
    width: 100%;
    max-width: 800px; /* Constrain content width */
}

.page-casino__main-title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem); /* Adjusted for H1, not too big */
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-shadow: 0 0 8px rgba(255, 165, 58, 0.4);
}

.page-casino__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-main-color);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__cta-button {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
    color: var(--text-main-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.page-casino__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-casino__cta-button--secondary {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.page-casino__cta-button--secondary:hover {
    background: rgba(23, 25, 31, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(255, 140, 26, 0.2);
}

.page-casino__section-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-casino__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* Games Section */
.page-casino__games-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

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

.page-casino__game-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.page-casino__game-image-wrapper {
    width: 100%;
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.page-casino__game-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    filter: none; /* Ensure no filter changes original image color */
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px;
}

.page-casino__game-card:hover .page-casino__game-image {
    transform: scale(1.05);
}

.page-casino__game-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-casino__game-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-casino__game-text {
    font-size: 1rem;
    color: var(--text-main-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-casino__game-button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
    color: var(--text-main-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 10px rgba(255, 140, 26, 0.3);
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 0.95rem;
    align-self: flex-start;
}

.page-casino__game-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 140, 26, 0.5);
}

/* Why Choose Us Section */
.page-casino__why-choose-us {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.page-casino__why-choose-content {
    flex: 1;
    min-width: 300px;
}

.page-casino__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-casino__feature-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__feature-title {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.page-casino__feature-text {
    font-size: 0.95rem;
    color: var(--text-main-color);
}

.page-casino__why-choose-image-wrapper {
    flex: 1;
    min-width: 300px;
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    aspect-ratio: 4/3;
}

.page-casino__why-choose-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: none; /* Ensure no filter changes original image color */
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px;
}

/* FAQ Section */
.page-casino__faq-section {
    max-width: 1000px;
    margin: 60px auto 80px auto;
    padding: 0 15px;
    text-align: center;
}

.page-casino__faq-list {
    margin-top: 40px;
    text-align: left;
}

.page-casino__faq-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__faq-question {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
    cursor: pointer;
}

.page-casino__faq-answer {
    font-size: 0.95rem;
    color: var(--text-main-color);
    line-height: 1.7;
}

/* Responsive adjustments */
@media (max-width: 849px) {
    .page-casino__hero-section {
        margin-bottom: 30px;
    }

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

    .page-casino__description {
        font-size: 1rem;
    }

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

    .page-casino__game-list {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }

    .page-casino__game-content {
        padding: 20px;
    }

    .page-casino__game-title {
        font-size: 1.3rem;
    }

    .page-casino__why-choose-us {
        flex-direction: column;
        gap: 30px;
        margin: 40px auto;
    }

    .page-casino__why-choose-content,
    .page-casino__why-choose-image-wrapper {
        min-width: unset;
        width: 100%;
    }

    .page-casino__faq-question {
        font-size: 1.1rem;
    }
}

@media (max-width: 549px) {
    .page-casino {
        padding-top: 8px; /* Slightly less padding on very small screens */
    }
    .page-casino__hero-image-wrapper {
        border-radius: 8px;
    }
    .page-casino__hero-content {
        padding: 0 10px;
    }
    .page-casino__cta-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    .page-casino__game-card {
        border-radius: 8px;
    }
    .page-casino__game-content {
        padding: 15px;
    }
    .page-casino__game-button {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    .page-casino__feature-item {
        padding: 15px;
    }
    .page-casino__feature-title {
        font-size: 1.2rem;
    }
    .page-casino__faq-item {
        padding: 15px 20px;
    }
    .page-casino__faq-question {
        font-size: 1.05rem;
    }
    .page-casino__faq-answer {
        font-size: 0.9rem;
    }
}

/* Ensure all images in .page-casino do not cause horizontal overflow on mobile */
@media (max-width: 768px) {
    .page-casino img {
        max-width: 100%;
        height: auto;
    }
    .page-casino__hero-image {
        max-width: 100%;
        height: auto;
    }
    .page-casino__game-image {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce min width */
        min-height: 200px; /* Enforce min height */
    }
    .page-casino__why-choose-image {
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }
    /* Specific rule to prevent content area images from being too small */
    .page-casino__game-image,
    .page-casino__why-choose-image {
        width: 100%; /* Ensure they take full width of parent */
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce min width */
        min-height: 200px; /* Enforce min height */
    }
}

/* Ensure content area images CSS dimensions are not less than 200px */
.page-casino img {
    /* Default for all images in .page-casino */
    min-width: 200px;
    min-height: 200px;
    width: auto; /* Allow image to scale down */
    height: auto;
    max-width: 100%; /* Ensure responsiveness */
}

/* Override for specific elements where a different size is intended but still >=200px */
.page-casino__game-image,
.page-casino__why-choose-image {
    width: 100%; /* Take full width of parent, aspect-ratio will control height */
    height: auto;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* CSS for images in .page-casino to ensure no filter */
.page-casino img {
    filter: none;
}