/* style/casino.css */
.page-casino {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background handled by shared.css */
}

.page-casino__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure content is below header */
    background-color: #121212; /* Fallback for video */
}

.page-casino__video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-casino__hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    cursor: pointer;
}

.page-casino__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
}

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

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

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

/* General Section Styles */
.page-casino__about-section,
.page-casino__live-casino-section,
.page-casino__download-app-section {
    padding: 80px 0;
    background-color: #f0f0f0;
    color: #333333;
}

.page-casino__games-section,
.page-casino__promotions-section,
.page-casino__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-casino__gold-bg {
    background-color: #FFD700;
    color: #1a1a1a;
}

.page-casino__section-title {
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 20px;
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

/* Content Grid for text and image */
.page-casino__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

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

.page-casino__text-block {
    flex: 1;
    font-size: 1.1em;
}

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

.page-casino__image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-casino__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Game Cards */
.page-casino__games-grid,
.page-casino__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-casino__game-card,
.page-casino__promotion-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__game-card:hover,
.page-casino__promotion-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-casino__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-casino__card-title {
    font-size: 1.8em;
    color: #FFD700;
    margin: 20px 15px 10px;
}

.page-casino__card-text {
    font-size: 1em;
    color: #f0f0f0;
    padding: 0 15px;
    flex-grow: 1;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.page-casino__btn-primary {
    background-color: #FFD700;
    color: #1a1a1a;
    border: 2px solid #FFD700;
}

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

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

.page-casino__btn-secondary:hover {
    background-color: #FFD700;
    color: #1a1a1a;
    transform: translateY(-2px);
}

.page-casino__btn-tertiary {
    background-color: #8B0000;
    color: #ffffff;
    border: 2px solid #8B0000;
    margin-top: 15px;
}

.page-casino__btn-tertiary:hover {
    background-color: #a00000;
    transform: translateY(-2px);
}

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

/* Call to Action Section */
.page-casino__cta-section {
    padding: 60px 0;
    background-color: #FFD700;
    color: #1a1a1a;
    text-align: center;
}

.page-casino__cta-title {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.page-casino__cta-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #333333;
}

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

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

.page-casino__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    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: rgba(255, 255, 255, 0.15);
    color: #FFD700;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-casino__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-casino__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 1000px !important;
    padding: 15px 25px 20px;
}

.page-casino__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
}

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

@media (max-width: 768px) {
    .page-casino__hero-section {
        height: auto;
        min-height: 600px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-casino__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-casino__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-casino__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__btn-tertiary,
    .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: 12px 15px;
    }

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

    .page-casino__content-grid {
        flex-direction: column;
        gap: 30px;
    }

    .page-casino__content-grid--reverse {
        flex-direction: column;
    }

    .page-casino__image {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-casino video,
    .page-casino__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-casino__section,
    .page-casino__card,
    .page-casino__container,
    .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;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-casino__section-title {
        font-size: 1.8em;
    }
    .page-casino__cta-title {
        font-size: 1.8em;
    }
    .page-casino__card-title {
        font-size: 1.5em;
    }
    .page-casino__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-casino__faq-answer {
        padding: 0 20px;
    }
    .page-casino__faq-item.active .page-casino__faq-answer {
        padding: 10px 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-casino__main-title {
        font-size: 1.8em;
    }
    .page-casino__hero-description {
        font-size: 0.9em;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        font-size: 1em;
        padding: 10px 15px;
    }
    .page-casino__section-title {
        font-size: 1.6em;
    }
    .page-casino__cta-title {
        font-size: 1.6em;
    }
}