:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-btn-color: #C30808;
    --login-btn-color: #C30808;
    --background-color: #FFFFFF;
    --register-login-text-color: #FFFF00;
}

.page-casino {
    padding-top: 10px; /* Minimal top padding, body handles --header-offset */
    background-color: var(--background-color);
    color: #333333; /* Default text color for good contrast */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    box-sizing: border-box;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.page-casino__hero-section {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.page-casino__hero-content-wrapper {
    display: flex;
    flex-direction: column; /* Default to column for mobile */
    gap: 20px;
    width: 100%;
    align-items: center;
}

.page-casino__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
}

.page-casino__hero-text-area {
    text-align: center;
    max-width: 800px;
}

.page-casino__main-title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-casino__description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #555555;
}

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

.page-casino__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    min-width: 120px; /* Ensure button minimum width */
}

.page-casino__btn--register {
    background-color: var(--register-btn-color);
    color: var(--register-login-text-color);
}

.page-casino__btn--register:hover {
    background-color: #a30606; /* Slightly darker red */
}

.page-casino__btn--login {
    background-color: var(--login-btn-color);
    color: var(--register-login-text-color);
}

.page-casino__btn--login:hover {
    background-color: #a30606; /* Slightly darker red */
}

.page-casino__btn--view-all,
.page-casino__btn--view-promotions,
.page-casino__btn--learn-more {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-casino__btn--view-all:hover,
.page-casino__btn--view-promotions:hover,
.page-casino__btn--learn-more:hover {
    background-color: #005a2b; /* Slightly darker green */
}

.page-casino__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    padding: 0 15px;
}

.page-casino__section-description {
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: #555555;
    padding: 0 15px;
}

/* Games Section */
.page-casino__games-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px 15px;
    background-color: #f9f9f9;
    border-radius: 12px;
}

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

.page-casino__game-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-casino__game-card:hover {
    transform: translateY(-5px);
}

.page-casino__game-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 4 / 3;
    min-width: 200px; /* Ensure images are not smaller than 200px */
    min-height: 150px; /* Corresponding height for 4:3 aspect ratio */
}

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

.page-casino__game-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #666666;
    padding: 0 15px 15px 15px;
}

.page-casino__cta-area {
    text-align: center;
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

/* Why Choose Section */
.page-casino__why-choose-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px 15px;
}

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

.page-casino__feature-item {
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
}

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

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

/* Promotions Section */
.page-casino__promotions-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px 15px;
    background-color: #e6f7ee; /* Light green background */
    border-radius: 12px;
}

.page-casino__promotions-content {
    display: flex;
    flex-direction: column; /* Default to column for mobile */
    align-items: center;
    gap: 30px;
}

.page-casino__promotions-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    object-position: center;
    max-width: 600px;
    aspect-ratio: 4 / 3;
    min-width: 200px; /* Ensure images are not smaller than 200px */
    min-height: 150px; /* Corresponding height for 4:3 aspect ratio */
}

.page-casino__promotions-text {
    text-align: center;
    max-width: 700px;
}

/* Responsible Gaming Section */
.page-casino__responsible-gaming-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px 15px;
}

.page-casino__responsible-gaming-content {
    display: flex;
    flex-direction: column; /* Default to column for mobile */
    align-items: center;
    gap: 30px;
}

.page-casino__responsible-gaming-text {
    text-align: center;
    max-width: 700px;
}

.page-casino__responsible-gaming-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    object-position: center;
    max-width: 600px;
    aspect-ratio: 4 / 3;
    min-width: 200px; /* Ensure images are not smaller than 200px */
    min-height: 150px; /* Corresponding height for 4:3 aspect ratio */
}

/* FAQ Section */
.page-casino__faq-section {
    max-width: 1000px;
    margin: 40px auto 60px auto;
    padding: 20px 15px;
    background-color: #f9f9f9;
    border-radius: 12px;
}

.page-casino__faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-casino__faq-item {
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

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

.page-casino__faq-answer {
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
}

.page-casino__faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-casino__faq-answer a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (min-width: 769px) {
    .page-casino__hero-content-wrapper {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }

    .page-casino__hero-image {
        flex: 1;
        max-width: 50%;
        margin-right: 30px;
    }

    .page-casino__hero-text-area {
        flex: 1;
        text-align: left;
    }

    .page-casino__hero-buttons {
        justify-content: flex-start;
    }

    .page-casino__promotions-content {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }

    .page-casino__promotions-image {
        flex: 1;
        max-width: 45%;
        margin-right: 30px;
    }

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

    .page-casino__responsible-gaming-content {
        flex-direction: row-reverse;
        text-align: left;
        justify-content: space-between;
    }

    .page-casino__responsible-gaming-image {
        flex: 1;
        max-width: 45%;
        margin-left: 30px;
    }

    .page-casino__responsible-gaming-text {
        flex: 1;
        text-align: left;
    }

    .page-casino__section-title,
    .page-casino__section-description {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-casino__hero-image,
    .page-casino__promotions-image,
    .page-casino__responsible-gaming-image,
    .page-casino__game-image {
        max-width: 100%;
        height: auto;
    }
    /* Explicitly ensure content area images are not smaller than 200px on mobile */
    .page-casino__game-image,
    .page-casino__promotions-image,
    .page-casino__responsible-gaming-image {
        min-width: 200px;
        min-height: 150px; /* For 4:3 aspect ratio */
    }
    .page-casino__main-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
    .page-casino__section-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }
    .page-casino__hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .page-casino__btn {
        width: 80%; /* Make buttons wider on small screens */
        max-width: 250px;
    }
}