/* style/casino.css */
.page-casino {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #0a0a0a; /* Ensure consistency with body background */
    font-size: 16px;
}

.page-casino__hero-section {
    padding-top: var(--header-offset, 120px); /* Desktop and mobile offset */
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    text-align: center;
}

.page-casino__hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-casino__hero-title {
    font-size: 3.5em;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.page-casino__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 700px;
}

.page-casino__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

/* Section styling */
.page-casino__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-casino__section--dark {
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
}

.page-casino__section--primary-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
}

/* Buttons */
.page-casino__btn-primary {
    display: inline-block;
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid #26A9E0;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
    text-align: center;
}

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

.page-casino__btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
    text-align: center;
}

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

.page-casino__btn-login {
    background-color: #EA7C07; /* Specific login color */
    border-color: #EA7C07;
}

.page-casino__btn-login:hover {
    background-color: #d16b06;
    border-color: #d16b06;
}

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

/* Headings */
.page-casino h2 {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    font-weight: bold;
}

.page-casino h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #26A9E0;
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-casino h3 {
    font-size: 1.8em;
    color: #26A9E0; /* Brand primary color */
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.page-casino h4 {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Paragraphs and lists */
.page-casino p {
    margin-bottom: 15px;
    color: #f0f0f0;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino ul li {
    background: rgba(255, 255, 255, 0.05); /* Slightly transparent background for list items */
    margin-bottom: 10px;
    padding: 15px;
    border-left: 5px solid #26A9E0;
    border-radius: 5px;
    color: #ffffff;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.page-casino ul li::before {
    content: '✅'; /* Checkmark icon */
    font-size: 1.2em;
    margin-right: 5px;
    color: #26A9E0;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Image styling */
.page-casino img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    filter: none; /* Absolutely no filter */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-casino__image-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__image-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__image-card-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 600;
}

.page-casino__image-card-text {
    color: #f0f0f0;
    text-align: justify;
    flex-grow: 1;
}

.page-casino__image-card--no-shadow {
    box-shadow: none;
    background: transparent;
}

.page-casino__section-text-block {
    margin-top: 30px;
}

/* Video section */
.page-casino__video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background-color: #000;
}

.page-casino__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

.page-casino__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-casino__video-caption {
    text-align: center;
    color: #f0f0f0;
    margin-top: 15px;
    font-style: italic;
}

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

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

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

.page-casino__faq-question .page-casino__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #26A9E0;
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.page-casino__faq-item[open] .page-casino__faq-question .page-casino__faq-toggle {
    transform: rotate(45deg); /* Change + to X */
}

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

/* For <details> tag, handle native toggle */
.page-casino__faq-item details > summary {
    list-style: none; /* Remove default marker */
}
.page-casino__faq-item details > summary::-webkit-details-marker {
    display: none; /* Remove default marker for webkit */
}

/* Responsive design */
@media (max-width: 768px) {
    .page-casino {
        font-size: 15px;
    }

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

    .page-casino__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-casino__hero-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-casino h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-casino h3 {
        font-size: 1.4em;
        margin-bottom: 15px;
    }

    .page-casino__section {
        padding: 40px 15px;
    }

    /* 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;
    }
    
    .page-casino__video-section,
    .page-casino__video-container,
    .page-casino__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Mobile button responsiveness */
    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__btn-login,
    .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;
        text-align: center;
    }

    .page-casino__hero-buttons,
    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding-left: 0;
        padding-right: 0;
    }

    .page-casino__image-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-casino__image-card {
        margin-bottom: 15px;
    }

    .page-casino__faq-question {
        font-size: 1em;
        padding: 15px;
    }

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

    .page-casino ul li {
        padding: 10px;
        font-size: 0.95em;
    }
}