.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #121212; /* Ensure consistency, though body bg is from shared */
}

.page-casino__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Color contrast classes */
.page-casino__dark-bg {
    background-color: #121212; /* Dark background from body */
    color: #ffffff; /* Light text */
}

.page-casino__light-bg {
    background-color: #ffffff; /* White background for sections */
    color: #333333; /* Dark text for light background */
}

.page-casino__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-casino__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Buttons */
.page-casino__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-casino__btn-primary:hover {
    background-color: #a30606;
}

.page-casino__btn-secondary {
    display: inline-block;
    background-color: #017439; /* Brand primary color */
    color: #ffffff; /* White text */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-casino__btn-secondary:hover {
    background-color: #005a2e;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-casino__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    /* No filter to change color */
}

.page-casino__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.page-casino__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-casino__hero-title {
    font-size: 3.8em;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-casino__hero-description {
    font-size: 1.5em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-casino__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Section Styling */
.page-casino__introduction-section,
.page-casino__promotions-section,
.page-casino__guide-section,
.page-casino__support-section,
.page-casino__faq-section {
    padding: 80px 0;
}

.page-casino__games-section,
.page-casino__security-section,
.page-casino__payment-section,
.page-casino__download-section,
.page-casino__conclusion-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
    color: #ffffff;
}

.page-casino__games-section .page-casino__section-title,
.page-casino__security-section .page-casino__section-title,
.page-casino__payment-section .page-casino__section-title,
.page-casino__download-section .page-casino__section-title,
.page-casino__conclusion-section .page-casino__section-title {
    color: #ffffff; /* White title on dark background */
}

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

.page-casino__game-card {
    background-color: #ffffff; /* White background for cards */
    color: #333333; /* Dark text for cards */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__game-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    /* No filter to change color */
}

.page-casino__game-card .page-casino__card-title {
    font-size: 1.5em;
    color: #017439;
    padding: 20px 20px 10px;
    font-weight: bold;
}

.page-casino__game-card .page-casino__card-description {
    padding: 0 20px 20px;
    flex-grow: 1;
    font-size: 1em;
}