.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #ffffff); /* Fallback to white if var not defined */
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure header offset */
    min-height: 600px;
    background-color: #26A9E0; /* Brand primary color for hero */
    color: #ffffff;
    overflow: hidden;
}

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

.page-casino__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay */
    display: block;
}

.page-casino__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-casino__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

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

/* Section General Styles */
.page-casino__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    color: #000000; /* Default for light backgrounds */
}

.page-casino__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #333333; /* Default for light backgrounds */
}

.page-casino__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Dark Background Sections */
.page-casino__dark-bg {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
}

.page-casino__dark-bg .page-casino__section-title {
    color: #ffffff;
}

.page-casino__dark-bg .page-casino__section-description,
.page-casino__dark-bg p,
.page-casino__dark-bg li {
    color: #f0f0f0;
}

/* Light Background Sections */
.page-casino__light-bg {
    background-color: #ffffff;
    color: #333333;
}

/* Buttons */
.page-casino__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.page-casino__cta-buttons--center {
    margin-top: 40px;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* Responsive button */
    box-sizing: border-box; /* Responsive button */
    white-space: normal; /* Responsive button text */
    word-wrap: break-word; /* Responsive button text */
}

.page-casino__btn-primary {
    background-color: #EA7C07; /* Login/Action color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

.page-casino__btn-secondary {
    background-color: transparent;
    color: #ffffff; /* Default for hero (dark bg) */
    border: 2px solid #ffffff; /* Default for hero (dark bg) */
}

/* Override for light background sections */
.page-casino__light-bg .page-casino__btn-secondary {
    color: #26A9E0;
    border-color: #26A9E0;
}

.page-casino__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Subtle hover on dark bg */
    border-color: #f0f0f0;
}

.page-casino__light-bg .page-casino__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Video Section */
.page-casino__video-section {
    padding: 60px 20px;
}

.page-casino__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto 20px auto;
    border-radius: 12px;
}

.page-casino__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
    border-radius: 12px;
}

.page-casino__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

/* About Section */
.page-casino__about-section {
    padding: 80px 20px;
}

.page-casino__grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-casino__text-block p {
    margin-bottom: 15px;
    text-align: justify;
}

.page-casino__image-block {
    text-align: center;
}

.page-casino__image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    display: block;
}

/* Game Cards Section */
.page-casino__games-section {
    padding: 80px 20px;
}

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

.page-casino__card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    text-decoration: none;
    color: #333333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-casino__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.page-casino__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-casino__card-title {
    font-size: 1.5em;
    margin: 20px 20px 10px 20px;
    color: #26A9E0; /* Brand primary color for titles */
    flex-grow: 1; /* Ensure titles take available space */
}

.page-casino__card-text {
    font-size: 0.95em;
    margin: 0 20px 15px 20px;
    line-height: 1.5;
}

.page-casino__card-link {
    display: block;
    padding: 15px 20px;
    background-color: #26A9E0;
    color: #ffffff;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: auto; /* Push link to bottom */
}

.page-casino__card-link:hover {
    background-color: #1e87b7;
}

/* Strategies Section */
.page-casino__strategies-section {
    padding: 80px 20px;
}

.page-casino__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-casino__strategy-item {
    background-color: rgba(255, 255, 255, 0.1); /* White transparent on dark bg */
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-casino__strategy-heading {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-casino__strategy-item p {
    color: #f0f0f0;
}

/* Promotions Section */
.page-casino__promotions-section {
    padding: 80px 20px;
}

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