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

/* Header offset for main content */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height for hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
}

.page-casino__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.page-casino__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: -1;
}

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

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

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

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

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__step-button,
.page-casino a[class*="button"],
.page-casino a[class*="btn"] {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%;
}

.page-casino__btn-primary {
    background-color: #C30808; /* Register/Login red */
    color: #FFFF00; /* Register/Login yellow text */    border: 2px solid #C30808;
}

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

.page-casino__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

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

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

.page-casino__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: #FFFFFF; /* Default for dark sections */
}

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

.page-casino__highlight {
    color: #FFFF00; /* Highlight color */
    font-weight: bold;
}

.page-casino__image-content {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Section specific styles */
.page-casino__dark-bg {
    background-color: #017439; /* Brand primary color */
    color: #ffffff; /* Light text for dark background */
}

.page-casino__light-bg {
    background-color: #FFFFFF; /* Auxiliary color */
    color: #333333; /* Dark text for light background */
}

.page-casino__text-dark {
    color: #333333; /* Explicitly dark text for light sections */
}

.page-casino__about-section,
.page-casino__promotions-section,
.page-casino__get-started-section,
.page-casino__cta-section {
    padding: 60px 0;
}

.page-casino__games-section,
.page-casino__why-choose-section,
.page-casino__faq-section {
    padding: 60px 0;
}

/* 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: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards are same height */
}

.page-casino__game-card:hover {
    transform: translateY(-5px);
}

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

.page-casino__game-title {
    font-size: 1.5em;
    margin: 15px 15px 10px;
    color: #017439; /* Brand color for titles */
}

.page-casino__game-link {
    text-decoration: none;
    color: inherit;
}

.page-casino__game-link:hover {
    text-decoration: underline;
    color: #C30808; /* Hover color for links */
}

.page-casino__game-description {
    font-size: 0.95em;
    color: #555555;
    padding: 0 15px 15px;
    flex-grow: 1; /* Push content to bottom */
}

/* Promotions List */
.page-casino__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-casino__promo-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__promo-title {
    font-size: 1.4em;
    color: #FFFF00; /* Highlight color for promo titles */
    margin-bottom: 10px;
}

.page-casino__promo-description {
    font-size: 1em;
    color: #f0f0f0;
}

.page-casino__promo-cta {
    margin-top: 40px;
    text-align: center;
}

/* Why Choose Section */
.page-casino__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__feature-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-casino__feature-icon {
    width: 80px; /* Adjusted from 200x200 to display as icon, but placeholder is 200x200 */
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    display: inline-block; /* Ensure it respects width/height */
}

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

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

/* Get Started Section */
.page-casino__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__step-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.page-casino__step-title {
    font-size: 1.4em;
    color: #FFFF00;
    margin-bottom: 15px;
}

.page-casino__step-description {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-casino__step-button {
    margin-top: auto; /* Push button to bottom */
}

/* FAQ Section */
.page-casino__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__faq-item {
    background-color: #f8f8f8;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #FFFFFF;
    border-bottom: 1px solid #eee;
}

.page-casino__faq-question:hover {
    background-color: #f0f0f0;
}

.page-casino__faq-title {
    font-size: 1.2em;
    color: #017439;
    margin: 0;
}

.page-casino__faq-toggle {
    font-size: 1.8em;
    color: #017439;
    font-weight: bold;
    transition: transform 0.3s ease;
    line-height: 1; /* Ensure +/- are vertically centered */
}

.page-casino__faq-item.active .page-casino__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect, or just change text */
}

.page-casino__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px;
}

.page-casino__faq-answer p {
    margin: 0;
}

/* CTA Section */
.page-casino__cta-section {
    text-align: center;
    padding: 80px 0;
}

.page-casino__cta-buttons {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Floating Buttons */
.page-casino__floating-button {
    position: fixed;
    right: 20px;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
    max-width: 100%; /* Ensure responsive */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-casino__floating-button:hover {
    transform: translateY(-3px);
}

.page-casino__floating-register {
    background-color: #C30808; /* Register red */
    color: #FFFF00; /* Register yellow text */
    bottom: 140px; /* Higher for register */
}

.page-casino__floating-login {
    background-color: #C30808; /* Login red */
    color: #FFFF00; /* Login yellow text */
    bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 3em;
    }
    .page-casino__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-casino__hero-section {
        height: auto;
        min-height: 60vh;
        padding-top: var(--header-offset, 120px) !important;
    }}