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

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

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-casino__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 20px; /* Space between image and content */
    border-radius: 10px;
}

.page-casino__hero-content {
    position: relative; /* Ensure content is above any background elements */
    z-index: 10;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-casino__main-title {
    color: var(--color-gold);
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px var(--color-glow);
}

.page-casino__hero-description {
    color: var(--color-text-main);
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Include padding in width calculation */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-casino__btn-primary {
    background: var(--color-button-gradient);
    color: #ffffff;
    border: 2px solid var(--color-glow);
    box-shadow: 0 0 15px rgba(87, 227, 141, 0.5);
}

.page-casino__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 20px rgba(87, 227, 141, 0.8);
    transform: translateY(-2px);
}

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

.page-casino__btn-secondary:hover {
    background-color: var(--color-glow);
    color: var(--color-deep-green);
    transform: translateY(-2px);
}

/* General Section Styles */
.page-casino__section-title {
    color: var(--color-gold);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    padding-top: 40px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-casino__section-description {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-casino__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-casino__text-block {
    flex: 1;
    color: var(--color-text-main);
    font-size: 1.05rem;
}

.page-casino__text-block p {
    margin-bottom: 15px;
}

.page-casino__text-block ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.page-casino__text-block li {
    margin-bottom: 8px;
}

.page-casino__image-right,
.page-casino__image-left {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 200px; /* Minimum size for content images */
}

.page-casino__highlight {
    color: var(--color-gold);
    font-weight: bold;
}

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

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

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

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

.page-casino__game-title {
    color: var(--color-gold);
    font-size: 1.4rem;
    margin: 20px 15px 10px;
}

.page-casino__game-description {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    padding: 0 15px 20px;
}

.page-casino__cta-center {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 60px;
}

/* Promotions Section */
.page-casino__promo-list {
    list-style-type: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-casino__promo-list li {
    background-color: var(--color-deep-green);
    border-left: 5px solid var(--color-glow);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: var(--color-text-main);
    font-size: 1.05rem;
}

.page-casino__promo-list li strong {
    color: var(--color-gold);
}

/* Guide Section */
.page-casino__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-casino__guide-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding-bottom: 20px;
}

.page-casino__guide-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-casino__guide-card-title {
    color: var(--color-gold);
    font-size: 1.5rem;
    margin: 0 20px 15px;
}

.page-casino__guide-list {
    list-style-type: decimal;
    padding-left: 40px;
    color: var(--color-text-secondary);
}

.page-casino__guide-list li {
    margin-bottom: 10px;
    color: var(--color-text-main);
}

.page-casino__guide-list li a {
    color: var(--color-glow);
    text-decoration: none;
}

.page-casino__guide-list li a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.page-casino__faq-list {
    max-width: 900px;
    margin: 0 auto 60px;
}

.page-casino__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-casino__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-text-main);
    background-color: var(--color-deep-green);
    border-bottom: 1px solid var(--color-divider);
    list-style: none; /* Remove default marker */
}

.page-casino__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit */
}

.page-casino__faq-question {
    color: var(--color-text-main);
}

.page-casino__faq-toggle {
    font-size: 1.5rem;
    font-weight: normal;
    color: var(--color-glow);
    margin-left: 15px;
    line-height: 1;
}

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

.page-casino__faq-item[open] .page-casino__faq-toggle {
    content: "−"; /* Change to minus when open */
}

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

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

/* Conclusion Section */
.page-casino__conclusion-section {
    padding-bottom: 80px;
}

/* Links within content */
.page-casino a {
    color: var(--color-glow);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino a:hover {
    color: var(--color-gold);
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-casino__main-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }

    .page-casino__section-title {
        font-size: 2rem;
    }

    .page-casino__content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .page-casino__image-right,
    .page-casino__image-left {
        max-width: 100%;
    }

    .page-casino__hero-image {
        max-height: 500px; /* Adjust hero image height for tablets */
    }
}

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

    .page-casino__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles header offset, small decorative top padding */
    }

    .page-casino__hero-content {
        padding: 15px;
    }

    .page-casino__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .page-casino__hero-description {
        font-size: 1rem;
    }

    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        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__section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
        padding-top: 30px;
    }

    .page-casino__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-casino__content-wrapper {
        gap: 30px;
    }

    .page-casino__image-right,
    .page-casino__image-left {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce minimum size */
        min-height: 200px !important; /* Enforce minimum size */
    }

    .page-casino__games-grid {
        grid-template-columns: 1fr;
    }

    .page-casino__game-image {
        height: auto; /* Allow height to adjust */
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-casino__guide-steps {
        grid-template-columns: 1fr;
    }

    .page-casino__guide-image {
        height: auto; /* Allow height to adjust */
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-casino__faq-item summary {
        font-size: 1.1rem;
        padding: 15px 20px;
    }

    .page-casino__faq-answer {
        padding: 15px 20px;
    }

    /* All images in content area must be responsive */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce minimum size */
        min-height: 200px !important; /* Enforce minimum size */
    }
    
    /* All containers with images/content must be responsive */
    .page-casino__section,
    .page-casino__card,
    .page-casino__container,
    .page-casino__hero-section,
    .page-casino__about-section,
    .page-casino__games-section,
    .page-casino__promotions-section,
    .page-casino__guide-section,
    .page-casino__faq-section,
    .page-casino__conclusion-section,
    .page-casino__content-wrapper,
    .page-casino__games-grid,
    .page-casino__guide-steps,
    .page-casino__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
}