:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --body-bg: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-casino {
    background-color: var(--body-bg);
    color: var(--text-main); /* Light text 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;
}

.page-casino__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.page-casino__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--button-gradient);
    border-radius: 2px;
}

.page-casino__text-block {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: center;
}

.page-casino__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, body handles --header-offset */
    overflow: hidden;
}

.page-casino__hero-image-wrapper {
    width: 100%;
    position: relative;
    z-index: 0;
}

.page-casino__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px; /* Limit height for aesthetic */
    filter: brightness(0.7);
}

.page-casino__hero-content {
    position: relative;
    z-index: 1;
    margin-top: -200px; /* Overlap slightly for visual effect, but not text on image */
    max-width: 900px;
    padding: 0 20px;
}

.page-casino__main-title {
    font-size: 3.2em;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.page-casino__hero-description {
    font-size: 1.3em;
    color: var(--text-secondary);
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

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

.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: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-casino__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text for gradient button */
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-casino__btn-secondary {
    background-color: transparent;
    color: var(--primary-color); /* Primary color text for secondary button */
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

/* Intro Section */
.page-casino__intro-section {
    padding: 60px 0;
    text-align: center;
}

/* Games Section */
.page-casino__games-section {
    padding: 60px 0;
}

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

.page-casino__game-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-main); /* Light text for dark card background */
}

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

.page-casino__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.page-casino__card-title {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-casino__card-description {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-casino__game-card .page-casino__btn-primary {
    width: auto;
    margin: 0 auto;
}

/* Promotions Section */
.page-casino__promotions-section {
    padding: 60px 0;
    text-align: center;
}

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

.page-casino__promo-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main); /* Light text for dark card background */
}

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

.page-casino__promo-card .page-casino__card-image {
    height: 250px;
}

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

/* Security Section */
.page-casino__dark-section {
    background-color: var(--deep-green);
    color: var(--text-main); /* Light text for deep green background */
    padding: 60px 0;
}

.page-casino__dark-section .page-casino__section-title {
    color: var(--text-main);
}

.page-casino__dark-section .page-casino__text-block {
    color: var(--text-secondary);
}

/* Mobile Section */
.page-casino__mobile-section {
    padding: 60px 0;
}

.page-casino__mobile-content {
    text-align: center;
    margin-bottom: 40px;
}

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

.page-casino__mobile-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-casino__faq-section {
    padding: 60px 0;
}

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

.page-casino__faq-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--gold-color);
    cursor: pointer;
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--divider-color);
}

.page-casino__faq-question::-webkit-details-marker {
    display: none;
}

.page-casino__faq-item[open] .page-casino__faq-question {
    border-bottom: 1px solid var(--divider-color);
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    color: var(--text-main);
    transition: transform 0.3s ease;
}

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

.page-casino__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--text-secondary);
}

.page-casino__faq-answer p {
    margin-bottom: 10px;
    text-align: left;
}

.page-casino__faq-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

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

/* Final CTA Section */
.page-casino__cta-final {
    padding: 80px 0;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-main);
}

.page-casino__cta-final .page-casino__section-title {
    color: var(--text-main);
}

.page-casino__cta-final .page-casino__text-block {
    color: var(--text-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__main-title {
        font-size: 2.8em;
    }
    .page-casino__hero-description {
        font-size: 1.1em;
    }
    .page-casino__section-title {
        font-size: 2em;
    }
    .page-casino__hero-content {
        margin-top: -150px;
    }
}

@media (max-width: 768px) {
    .page-casino {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-casino__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-casino__hero-section {
        padding: 10px 0 40px 0;
    }
    .page-casino__hero-content {
        margin-top: -100px; /* Adjust overlap for smaller screens */
        padding: 0 15px;
    }
    .page-casino__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-casino__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        width: 100% !important; /* Force full width for buttons */
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-casino__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-casino__text-block {
        font-size: 0.95em;
    }
    .page-casino__game-grid,
    .page-casino__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-casino__card-image {
        height: 180px;
    }
    .page-casino__promo-card .page-casino__card-image {
        height: 200px;
    }
    .page-casino__mobile-section {
        flex-direction: column;
    }
    .page-casino__mobile-content {
        order: 2;
        margin-bottom: 20px;
    }
    .page-casino__mobile-image-wrapper {
        order: 1;
        margin-bottom: 30px;
    }
    .page-casino__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-casino__faq-answer {
        padding: 15px 20px;
    }

    /* Ensure all images are responsive */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Ensure all image/video/button containers are responsive */
    .page-casino__hero-section,
    .page-casino__intro-section,
    .page-casino__games-section,
    .page-casino__promotions-section,
    .page-casino__security-section,
    .page-casino__mobile-section,
    .page-casino__faq-section,
    .page-casino__cta-final,
    .page-casino__game-card,
    .page-casino__promo-card,
    .page-casino__faq-item,
    .page-casino__video-section,
    .page-casino__video-container,
    .page-casino__video-wrapper,
    .page-casino__cta-buttons,
    .page-casino__button-group,
    .page-casino__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent overflow */
    }
    
    .page-casino__mobile-section .page-casino__container {
        flex-direction: column;
    }
    .page-casino__mobile-image {
        max-width: 100% !important;
    }
}

@media (min-width: 769px) {
    .page-casino__mobile-section .page-casino__container {
        display: flex;
        align-items: center;
        gap: 50px;
        text-align: left;
    }
    .page-casino__mobile-content {
        flex: 1;
        text-align: left;
        margin-bottom: 0;
    }
    .page-casino__mobile-image-wrapper {
        flex: 1;
        text-align: right;
    }
    .page-casino__mobile-section .page-casino__section-title {
        text-align: left;
    }
    .page-casino__mobile-section .page-casino__text-block {
        text-align: left;
    }
}