.page-casino {
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #FFFFFF; /* Page background as per custom color rules */
    color: #333333; /* Default text color */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

.page-casino__hero-section {
    display: flex;
    flex-direction: column; /* Default to column for mobile-first, then row for desktop */
    align-items: center;
    padding: 20px;
    background-color: #017439; /* Main color for hero background */
    color: #FFFFFF;
    text-align: center;
}

.page-casino__hero-content {
    max-width: 800px;
    margin-bottom: 20px; /* Space between content and image on mobile */
}

.page-casino__hero-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFFFF; /* Changed from #FFFF00 to #FFFFFF for WCAG AA contrast on #017439 */
}

.page-casino__hero-description {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.page-casino__hero-image-wrapper {
    margin: 0; /* Reset default figure margin */
    width: 100%;
    max-width: 1200px; /* Max width for the image */
    order: -1; /* Image first on mobile */
}

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

.page-casino__cta-button {
    display: inline-block;
    background-color: #C30808; /* Register/Login button color */
    color: #000000; /* Changed from #FFFF00 to #000000 for WCAG AA contrast on #C30808 */
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 200px; /* Ensure button minimum size */
    min-height: 44px; /* Ensure button minimum height for touch */
}

.page-casino__cta-button:hover {
    background-color: #a30606;
}

.page-casino__cta-button--centered {
    margin: 30px auto 0 auto;
    display: block;
    width: fit-content;
}

.page-casino__introduction-section,
.page-casino__games-section,
.page-casino__advantages-section,
.page-casino__faq-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #FFFFFF; /* Ensure sections have white background */
}

.page-casino__section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    color: #017439; /* Main color for H2 titles */
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

.page-casino__section-paragraph {
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: justify;
    color: #333333;
}

.page-casino__games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Min card width 280px */
    gap: 20px;
    margin-top: 30px;
}

.page-casino__game-tile {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    background-color: #f9f9f9;
}

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

.page-casino__game-tile img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
    aspect-ratio: 4/3; /* Maintain aspect ratio */
}

.page-casino__advantages-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-casino__advantage-item {
    background-color: #f0f8f0; /* Lighter green/white background */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-casino__advantage-title {
    font-size: 1.3rem;
    color: #017439;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-casino__advantage-description {
    font-size: 0.95rem;
    color: #555555;
}

.page-casino__faq-list {
    margin-top: 30px;
}

.page-casino__faq-item {
    background-color: #f0f8f0;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.03);
}

.page-casino__faq-question {
    font-size: 1.15rem;
    color: #017439;
    margin-bottom: 10px;
    font-weight: 600;
    cursor: pointer; /* Indicate it's clickable for JS accordion */
}

.page-casino__faq-answer {
    font-size: 1rem;
    color: #555555;
    display: none; /* Hidden by default, shown with JS */
    padding-top: 5px;
}

.page-casino__faq-question--active + .page-casino__faq-answer {
    display: block;
}

/* Desktop styles */
@media (min-width: 850px) {
    .page-casino__hero-section {
        flex-direction: row; /* Text and image side-by-side */
        text-align: left;
        padding: 50px 20px;
    }

    .page-casino__hero-content {
        margin-right: 40px;
        margin-bottom: 0;
        max-width: 50%;
    }

    .page-casino__hero-image-wrapper {
        order: 0; /* Image after content */
        max-width: 50%;
    }

    .page-casino__games-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    }

    .page-casino__advantages-list {
        grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    }
}

/* Tablet styles */
@media (max-width: 849px) {
    .page-casino__hero-section {
        flex-direction: column; /* Ensure column layout */
        text-align: center;
    }
    .page-casino__hero-image-wrapper {
        order: -1; /* Image always on top */
        margin-bottom: 20px;
    }
    .page-casino__games-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on tablet */
    }
    .page-casino__advantages-list {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
}

/* Mobile styles */
@media (max-width: 549px) {
    .page-casino__hero-section {
        padding: 30px 15px;
    }
    .page-casino__hero-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }
    .page-casino__hero-description {
        font-size: 1rem;
    }
    .page-casino__cta-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
    .page-casino__introduction-section,
    .page-casino__games-section,
    .page-casino__advantages-section,
    .page-casino__faq-section {
        padding: 30px 15px;
    }
    .page-casino__section-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }
    .page-casino__games-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller mobile */
    }
    .page-casino__advantages-list {
        grid-template-columns: 1fr; /* 1 column on smaller mobile */
    }
    .page-casino__faq-question {
        font-size: 1.05rem;
    }
    .page-casino__faq-answer {
        font-size: 0.95rem;
    }
    /* Enforce min-width/height for content images for mobile */
    .page-casino img {
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }
}