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

/* Header offset for desktop */
.page-casino__hero-section {
    padding-top: var(--header-offset, 120px);
}

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

.page-casino__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-casino__section-text {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Backgrounds for contrast */
.page-casino__dark-bg {
    background-color: #0d0d0d; /* Slightly lighter than body background for distinction */
    color: #ffffff;
    padding: 60px 0;
}

.page-casino__light-bg {
    background-color: #1a1a1a; /* Dark gray for "light" sections to maintain overall dark theme but provide contrast */
    color: #ffffff;
    padding: 60px 0;
}

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

.page-casino__btn-primary {
    background-color: #017439; /* Main brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

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

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

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

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

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

/* Specific button colors for register/login */
.page-casino__hero-cta-buttons a:first-child { /* Register button */
    background-color: #C30808;
    border-color: #C30808;
    color: #FFFF00;
}
.page-casino__hero-cta-buttons a:first-child:hover {
    background-color: #a30606;
    border-color: #a30606;
}
.page-casino__hero-cta-buttons a:nth-child(2) { /* Login button */
    background-color: #C30808;
    border-color: #C30808;
    color: #FFFF00;
}
.page-casino__hero-cta-buttons a:nth-child(2):hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-casino__btn-primary--large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* --- Hero Section --- */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    color: #ffffff;
}

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

.page-casino__hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

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

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

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

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

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

.page-casino__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #ffffff;
}

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

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

/* --- Games Section --- */
.page-casino__games-section .page-casino__section-title {
    color: #ffffff;
}
.page-casino__games-section .page-casino__section-text {
    color: #f0f0f0;
}

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

.page-casino__game-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
}

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

.page-casino__game-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-casino__game-title {
    font-size: 1.4em;
    padding: 15px 20px 5px;
    color: #017439;
}

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

.page-casino__game-link:hover {
    text-decoration: underline;
}

.page-casino__game-description {
    font-size: 0.95em;
    color: #f0f0f0;
    padding: 0 20px 20px;
}

/* --- Promotions Section --- */
.page-casino__promotions-section .page-casino__section-title {
    color: #ffffff;
}
.page-casino__promotions-section .page-casino__section-text {
    color: #f0f0f0;
}

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

.page-casino__promo-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-casino__promo-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 15px;
}

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

/* --- Mobile Section --- */
.page-casino__mobile-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

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

.page-casino__mobile-text .page-casino__section-title {
    text-align: left;
    color: #ffffff;
}
.page-casino__mobile-text .page-casino__section-text {
    text-align: left;
    color: #f0f0f0;
}

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

.page-casino__mobile-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

/* --- FAQ Section --- */
.page-casino__faq-section .page-casino__section-title {
    color: #ffffff;
}

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

.page-casino__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-casino__faq-question h3 {
    margin: 0;
    color: #ffffff;
    flex-grow: 1;
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
    transform: rotate(45deg);
}

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

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 1000px !important;
    padding: 15px 25px 20px;
}

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

/* --- Final CTA Section --- */
.page-casino__cta-final-section {
    padding: 80px 0;
    text-align: center;
}
.page-casino__cta-final-section .page-casino__section-title {
    color: #ffffff;
}
.page-casino__cta-final-section .page-casino__section-text {
    color: #f0f0f0;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 2.8em;
    }
    .page-casino__hero-description {
        font-size: 1.2em;
    }
    .page-casino__section-title {
        font-size: 2em;
    }
    .page-casino__mobile-content {
        flex-direction: column;
        text-align: center;
    }
    .page-casino__mobile-text {
        text-align: center;
    }
    .page-casino__mobile-text .page-casino__section-title,
    .page-casino__mobile-text .page-casino__section-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-casino {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-casino__container {
        padding: 0 15px;
    }

    .page-casino__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        height: auto;
        min-height: 50vh;
    }

    .page-casino__hero-title {
        font-size: 2.2em;
    }
    .page-casino__hero-description {
        font-size: 1.1em;
    }
    .page-casino__section-title {
        font-size: 1.8em;
    }
    .page-casino__section-text {
        font-size: 1em;
    }

    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-casino__mobile-image {
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-casino__game-image {
        height: auto !important;
    }

    .page-casino video,
    .page-casino__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-casino__hero-video-wrapper {
        position: relative !important;
        height: auto !important;
    }
    .page-casino__hero-section {
        flex-direction: column;
    }
    .page-casino__hero-content {
        padding: 20px 15px;
    }

    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino a[class*="button"],
    .page-casino a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-casino__hero-cta-buttons,
    .page-casino__cta-buttons,
    .page-casino__button-group,
    .page-casino__btn-container {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-casino__section,
    .page-casino__card,
    .page-casino__container,
    .page-casino__promo-card,
    .page-casino__game-card,
    .page-casino__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-casino__mobile-content {
        padding: 0 15px;
    }
    .page-casino__mobile-text,
    .page-casino__mobile-image-wrapper {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-casino__hero-title {
        font-size: 1.8em;
    }
    .page-casino__hero-description {
        font-size: 0.95em;
    }
    .page-casino__section-title {
        font-size: 1.5em;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
}