.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is #000000 (dark), so text must be light */
    background-color: #000000; /* Ensure the main content area has a consistent dark background */
}

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

.page-casino__section-title {
    font-size: 2.8em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-casino__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0; /* Slightly off-white for readability on dark background */
}

/* Links within content */
.page-casino p a,
.page-casino li a,
.page-casino__card-text a,
.page-casino__faq-answer a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-casino p a:hover,
.page-casino li a:hover,
.page-casino__card-text a:hover,
.page-casino__faq-answer a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap for buttons */
    word-wrap: break-word; /* Allow text wrap for buttons */
}

.page-casino__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

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

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

.page-casino__btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-casino__btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    background-color: #000000;
    overflow: hidden;
    padding-bottom: 60px;
}

.page-casino__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4; /* Slightly transparent to let text stand out */
    overflow: hidden;
}

.page-casino__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.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.7);
}

.page-casino__hero-description {
    font-size: 1.4em;
    color: #f0f0f0;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* About Section */
.page-casino__about-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Darker background for contrast with #000000 body */
    color: #f0f0f0;
}

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

.page-casino__card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__card-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-casino__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block; /* Ensure image behaves as block for max-width */
    margin-left: auto;
    margin-right: auto;
}

.page-casino__card-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* Games Section */
.page-casino__games-section {
    padding: 80px 0;
    background-color: #000000; /* Match body background for consistency */
    color: #ffffff;
}

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

.page-casino__game-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__game-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__game-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-casino__game-title a {
    color: #26A9E0;
    text-decoration: none;
}

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

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

.page-casino__all-games-cta {
    text-align: center;
    margin-top: 50px;
}

/* Benefits Section */
.page-casino__benefits-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color as background */
    color: #ffffff; /* White text on brand color background */
}

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

.page-casino__benefit-item {
    background-color: rgba(255, 255, 255, 0.15); /* Semi-transparent white on brand color */
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    height: 100%;
}

.page-casino__benefit-icon {
    width: 200px; /* Fixed width as per image guidelines, will be responsive */
    height: 150px; /* Fixed height as per image guidelines, will be responsive */
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__benefit-title {
    font-size: 1.6em;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-casino__benefit-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* Guide Section */
.page-casino__guide-section {
    padding: 80px 0;
    background-color: #000000;
    color: #ffffff;
}

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

.page-casino__step-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    height: 100%;
}

.page-casino__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #26A9E0;
    color: #ffffff;
    font-size: 2em;
    font-weight: bold;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #000000;
}

.page-casino__step-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-top: 20px;
    margin-bottom: 15px;
}

.page-casino__step-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-casino__guide-cta {
    text-align: center;
    margin-top: 50px;
}

/* Tips Section */
.page-casino__tips-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #f0f0f0;
}

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

.page-casino__tip-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    height: 100%;
}

.page-casino__tip-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-casino__tip-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-casino__faq-section {
    padding: 80px 0;
    background-color: #000000;
    color: #ffffff;
}

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

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

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-casino__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an X or simply change to minus */
    color: #ffffff;
}

.page-casino__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
}

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

.page-casino__faq-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* CTA Section */
.page-casino__cta-section {
    padding: 80px 0;
    background-color: #26A9E0;
    color: #ffffff;
    text-align: center;
}

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

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

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

    .page-casino__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-bottom: 40px;
    }

    .page-casino__hero-title {
        font-size: 2.5em;
    }
    .page-casino__hero-description {
        font-size: 1.1em;
    }

    .page-casino__hero-cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100%; /* Take full width */
        padding: 0 15px; /* Add padding to prevent overflow */
        box-sizing: border-box;
    }

    .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; /* Adjust padding for full width buttons */
        padding-right: 15px; /* Adjust padding for full width buttons */
    }
    
    .page-casino__cta-buttons,
    .page-casino__button-group,
    .page-casino__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        overflow: hidden !important; /* Prevent overflow */
    }

    .page-casino__section-title {
        font-size: 1.8em;
    }
    .page-casino__section-description {
        font-size: 0.95em;
    }

    .page-casino__about-section,
    .page-casino__games-section,
    .page-casino__benefits-section,
    .page-casino__guide-section,
    .page-casino__tips-section,
    .page-casino__faq-section,
    .page-casino__cta-section {
        padding: 40px 0;
    }

    .page-casino__container {
        padding: 0 15px; /* Smaller padding for mobile */
    }

    .page-casino__feature-cards,
    .page-casino__game-categories,
    .page-casino__benefits-grid,
    .page-casino__guide-steps,
    .page-casino__tips-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-casino__card,
    .page-casino__game-card,
    .page-casino__benefit-item,
    .page-casino__step-item,
    .page-casino__tip-card,
    .page-casino__faq-item {
        padding: 20px;
    }

    .page-casino__card-image,
    .page-casino__game-image,
    .page-casino__benefit-icon {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        display: block !important;
        box-sizing: border-box !important;
        object-fit: contain; /* Ensure image fits within container */
    }
}