.page-casino {
    color: #ffffff; /* Default text color for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Background color handling based on body background (dark) */
.page-casino__dark-bg {
    background-color: #017439; /* Brand primary color for dark sections */
    color: #ffffff;
}

.page-casino__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-casino__hero-section {
    position: relative;
    padding: 120px 0 60px; /* Base padding, will be adjusted by header offset */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-casino__hero-section .page-casino__container {
    position: relative;
    z-index: 1;
    padding-top: var(--header-offset, 120px); /* Ensure content is below header, use var for consistency */
    padding-bottom: 40px;
}

.page-casino__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-casino__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-casino__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.page-casino__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image for text readability, not changing color */
}

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

.page-casino__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    color: inherit;
}

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

.page-casino__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login font color */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

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

.page-casino__btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #017439;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid #017439;
    cursor: pointer;
    box-sizing: border-box;
}

.page-casino__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

.page-casino__about-section,
.page-casino__promotions-section,
.page-casino__mobile-section,
.page-casino__faq-section {
    padding: 80px 0;
}

.page-casino__games-section,
.page-casino__security-section,
.page-casino__video-section,
.page-casino__cta-section {
    padding: 80px 0;
}

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

.page-casino__game-card,
.page-casino__promo-card,
.page-casino__feature-item {
    background-color: #ffffff; /* For light-bg cards on dark sections */
    color: #333333; /* Dark text for light background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.page-casino__promo-card.page-casino__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-casino__game-card:hover,
.page-casino__promo-card:hover,
.page-casino__feature-item:hover {
    transform: translateY(-10px);
}

.page-casino__card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.page-casino__game-card .page-casino__card-title,
.page-casino__promo-card .page-casino__card-title {
    font-size: 1.4em;
    margin: 20px 15px 10px;
}

.page-casino__game-card .page-casino__card-title a,
.page-casino__promo-card .page-casino__card-title a {
    color: #017439; /* Link color for light cards */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__promo-card.page-casino__dark-bg .page-casino__card-title a {
    color: #FFFF00; /* Link color for dark cards */
}

.page-casino__game-card .page-casino__card-title a:hover,
.page-casino__promo-card .page-casino__card-title a:hover {
    color: #C30808; /* Hover color */
}

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

.page-casino__promo-card .page-casino__btn-primary,
.page-casino__promo-card .page-casino__btn-secondary {
    margin: 0 15px 20px;
}

.page-casino__cta-center {
    text-align: center;
    margin-top: 60px;
}

.page-casino__feature-item {
    padding: 30px;
}

.page-casino__feature-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

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

.page-casino__feature-description {
    font-size: 0.95em;
    color: #555;
}

.page-casino__mobile-content {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-casino__mobile-text {
    flex: 1;
}

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