/* style/casino.css */

/* Base Styles for .page-casino content */
.page-casino {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Dark body background #1a1a2e, so light text */
    background-color: #1a1a2e; /* Inherited from shared, but for safety */
}

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

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

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

.page-casino__highlight {
    color: #26A9E0; /* Brand primary color */
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    padding-bottom: 60px;
    background-color: #1a1a2e;
}

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

.page-casino__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay */
    filter: brightness(0.7); /* Darken image to ensure text contrast */
}

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

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

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

.page-casino__hero-description a {
    color: #26A9E0;
    text-decoration: underline;
}

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

/* General Button Styles */
.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-casino__btn-primary {
    background-color: #26A9E0; /* Primary brand color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-casino__btn-primary:hover {
    background-color: #1e87b7;
    border-color: #1e87b7;
    transform: translateY(-2px);
}

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

.page-casino__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.page-casino__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-casino__btn-large {
    padding: 18px 35px;
    font-size: 1.1em;
}

/* Video Section */
.page-casino__video-section {
    padding: 80px 0;
    background-color: #1a1a2e;
}

.page-casino__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px; /* Max width for video */
    margin: 0 auto 40px auto;
    aspect-ratio: 16 / 9; /* Maintain aspect ratio */
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-casino__video-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2; /* Ensure link is clickable over video */
    cursor: pointer;
}

.page-casino__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Important for responsive images/videos */
}

/* Game Grid Section */
.page-casino__game-grid,
.page-casino__promo-grid,
.page-casino__features-grid,
.page-casino__info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__game-card,
.page-casino__promo-card,
.page-casino__feature-card {
    background-color: rgba(255, 255, 255, 0.1); /* Light background for card on dark body */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    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;
    height: 100%; /* Ensure cards are same height in grid */
}

.page-casino__game-card:hover,
.page-casino__promo-card:hover,
.page-casino__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__game-image,
.page-casino__promo-image,
.page-casino__feature-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
    object-fit: cover;
}

.page-casino__card-title {
    font-size: 1.5em;
    color: #26A9E0; /* Brand primary color for titles */
    margin-bottom: 10px;
    font-weight: bold;
}

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

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

.page-casino__card-text {
    font-size: 1em;
    color: #e0e0e0;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to take available space */
}

.page-casino__card-text a {
    color: #26A9E0;
    text-decoration: underline;
}

/* Promotions Section */
.page-casino__promotions-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Light background for section, but still dark */
}

.page-casino__section-footer-text {
    text-align: center;
    font-size: 1.1em;
    color: #f0f0f0;
    margin-top: 40px;
}

.page-casino__section-footer-text a {
    color: #26A9E0;
    text-decoration: underline;
}

/* Why Choose Section */
.page-casino__why-choose-section {
    padding: 80px 0;
    background-color: #1a1a2e;
}

.page-casino__feature-card .page-casino__card-title {
    font-size: 1.4em;
}

/* Info Section (Payment & Responsible Gambling) */
.page-casino__info-section {
    padding: 80px 0;
    background-color: #1a1a2e;
}

.page-casino__info-block {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.page-casino__info-subtitle {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-casino__info-subtitle a {
    color: #26A9E0;
    text-decoration: none;
}

.page-casino__info-subtitle a:hover {
    text-decoration: underline;
}

.page-casino__info-text {
    font-size: 1em;
    color: #e0e0e0;
    margin-bottom: 25px;
}

.page-casino__info-text a {
    color: #26A9E0;
    text-decoration: underline;
}

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

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

.page-casino__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    color: #ffffff; /* Ensure text is light on dark background */
}

.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: #26A9E0;
    transition: background-color 0.3s ease;
    list-style: none; /* Hide default marker for details/summary */
}

.page-casino__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-casino__faq-item[open] .page-casino__faq-question {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-casino__faq-qtext {
    flex-grow: 1;
    color: #ffffff; /* Text inside summary should be white */
}

.page-casino__faq-qtext a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    color: #ffffff;
    margin-left: 15px;
    line-height: 1;
}

.page-casino__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #e0e0e0;
    line-height: 1.7;
}

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

.page-casino__faq-answer a {
    color: #26A9E0;
    text-decoration: underline;
}

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

.page-casino__cta-content {
    max-width: 900px;
}

.page-casino__cta-title {
    font-size: 3em;
    color: #FFFFFF;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-casino__cta-description a {
    color: #FFFFFF;
    text-decoration: underline;
}

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

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

@media (max-width: 768px) {
    /* Mobile image responsiveness */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile video responsiveness */
    .page-casino video,
    .page-casino__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Important: Video section padding-top must be reset in mobile media query */
    .page-casino__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}