:root {
    --primary-color: #0A192F;
    --secondary-color: #FFD700;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-dark: #0A192F;
    --border-color: #e0e0e0;
    --card-bg-light: #fdfdfd;
    --card-bg-dark: rgba(255, 255, 255, 0.05);
}

.page-casino {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--bg-light); /* Assuming body background is light */
}

/* Helper classes for background/text color contrast */
.page-casino__dark-bg {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-casino__light-bg {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

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

.page-casino__section {
    padding: 80px 0;
    text-align: center;
}

.page-casino__section-title {
    font-size: 38px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-casino__section-description {
    font-size: 18px;
    color: #555555;
    max-width: 800px;
    margin: 0 auto 50px;
}

.page-casino__dark-bg .page-casino__section-title,
.page-casino__dark-bg .page-casino__section-description {
    color: var(--text-light);
}

.page-casino__text-block {
    margin-top: 40px;
    padding: 0 20px;
}

.page-casino__text-block p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #444;
}

.page-casino__dark-bg .page-casino__text-block p {
    color: #ccc;
}

.page-casino__centered-text {
    text-align: center;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    margin: 10px;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-casino__cta-button {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 18px 45px;
    font-size: 20px;
    border: 2px solid transparent;
}

.page-casino__cta-button:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-casino__btn-primary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-casino__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* HERO Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    overflow: hidden; /* Prevent image overflow */
    background-color: var(--primary-color); /* Fallback/base color */
}

.page-casino__hero-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-casino__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-casino__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    filter: none; /* Ensure no filter is applied */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-casino__hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--secondary-color);
}

.page-casino__hero-description {
    font-size: 24px;
    max-width: 900px;
    margin: 0 auto 40px;
    color: var(--text-light);
}

/* Module 1: Introduction Section */
.page-casino__introduction-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

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

.page-casino__feature-item {
    background-color: var(--card-bg-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.page-casino__feature-item img {
    
    
    object-fit: contain;
    margin-bottom: 20px;
    filter: none; /* Ensure no filter is applied */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

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

.page-casino__feature-item p {
    font-size: 16px;
    color: #666;
}

/* Module 2: Quick Access Section */
.page-casino__quick-access-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-casino__quick-access-section .page-casino__section-title,
.page-casino__quick-access-section .page-casino__section-description {
    color: var(--text-light);
}

.page-casino__button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%; /* Ensure responsiveness */
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    overflow: hidden;
}

.page-casino__button-group .page-casino__btn-secondary {
    flex-grow: 1;
    max-width: 280px;
    min-width: 200px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.page-casino__button-group .page-casino__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.page-casino__note {
    margin-top: 30px;
    font-size: 15px;
    color: #aaa;
}

/* Module 3: Games Showcase Section */
.page-casino__games-showcase-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

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

.page-casino__game-card {
    background-color: var(--card-bg-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.page-casino__game-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: none; /* Ensure no filter is applied */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-casino__game-card h3 {
    padding: 20px 25px 0;
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
}

.page-casino__game-card h3 a.page-casino__game-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__game-card h3 a.page-casino__game-link:hover {
    color: var(--secondary-color);
}

.page-casino__game-card p {
    padding: 10px 25px 25px;
    font-size: 16px;
    color: #666;
}

/* Module 4: Promotions Section */
.page-casino__promotions-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-casino__promotions-section .page-casino__section-title,
.page-casino__promotions-section .page-casino__section-description {
    color: var(--text-light);
}

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