/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #121212; /* Matches body background */
}

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

.page-casino__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-casino__section-subtitle {
    font-size: 1.2em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
}

.page-casino__text-block p,
.page-casino__feature-list p,
.page-casino__faq-answer p {
    color: #f0f0f0;
}

.page-casino a {
    color: #FFD700; /* Gold for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino a:hover {
    color: #e0b300;
    text-decoration: underline;
}

.page-casino__highlight {
    color: #FFD700;
    font-weight: bold;
}

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

.page-casino__btn-primary {
    background-color: #FFD700; /* Gold */
    color: #0A2463; /* Dark blue text for contrast */
    border: 2px solid #FFD700;
}

.page-casino__btn-primary:hover {
    background-color: #e0b300;
    border-color: #e0b300;
    color: #0A2463;
}

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

.page-casino__btn-secondary:hover {
    background-color: #FFD700;
    color: #0A2463;
}

.page-casino__btn-tertiary {
    background-color: #0A2463; /* Dark blue */
    color: #FFD700; /* Gold text */
    border: 2px solid #0A2463;
}

.page-casino__btn-tertiary:hover {
    background-color: #061a47;
    border-color: #061a47;
    color: #FFD700;
}

.page-casino__btn-large {
    padding: 15px 35px;
    font-size: 1.2em;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-casino__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
}

.page-casino__hero-section .page-casino__container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

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

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

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

/* Content Sections */
.page-casino__about-section,
.page-casino__promotions-section,
.page-casino__mobile-section,
.page-casino__video-showcase {
    padding: 80px 0;
}

.page-casino__dark-bg {
    background-color: #0A2463; /* Main brand color */
    color: #ffffff;
}

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

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

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

.page-casino__text-block {
    flex: 1;
}

.page-casino__text-block h2 {
    text-align: left;
    color: #FFD700;
    font-size: 2em;
    margin-bottom: 20px;
}

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

.page-casino__image-block {
    flex: 1;
    text-align: center;
}

.page-casino__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Game Categories */
.page-casino__game-categories {
    padding: 80px 0;
}

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

.page-casino__game-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 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;
    align-items: center;
}

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

.page-casino__card-image {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-casino__card-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 10px;
}
.page-casino__card-title a {
    color: #FFD700;
    text-decoration: none;
}
.page-casino__card-title a:hover {
    color: #e0b300;
    text-decoration: underline;
}

.page-casino__card-description {
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Why Choose Us Section */
.page-casino__why-choose-us {
    padding: 80px 0;
}

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

.page-casino__feature-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__feature-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 10px;
}

/* Video Showcase */
.page-casino__video-showcase {
    padding: 80px 0;
}

.page-casino__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    margin-top: 40px;
}

.page-casino__video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: block;
    cursor: pointer; /* Indicate clickability */
}

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

/* FAQ Section */
.page-casino__faq-section {
    padding: 80px 0;
}

.page-casino__faq-list {
    max-width: 800px;
    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.1);
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #0A2463; /* Dark blue for question background */
    color: #FFD700; /* Gold for question text */
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
    background-color: #061a47;
}

.page-casino__faq-heading {
    margin: 0;
    color: #FFD700;
    font-size: 1.1em;
}
.page-casino__faq-heading a {
    color: #FFD700;
}
.page-casino__faq-heading a:hover {
    color: #e0b300;
}

.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 20px;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for answer */
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-casino__faq-answer p {
    margin: 0;
    color: #f0f0f0;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 3em;
    }
    .page-casino__section-title {
        font-size: 2em;
    }
    .page-casino__content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-casino__content-wrapper--reverse {
        flex-direction: column; /* Keep column for reverse on smaller screens */
    }
    .page-casino__text-block h2 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-casino__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-casino__hero-title {
        font-size: 2.5em;
    }
    .page-casino__hero-description {
        font-size: 1.1em;
    }
    .page-casino__cta-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-left: 15px;
        padding-right: 15px;
    }
    .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;
    }
    .page-casino__cta-buttons {
        display: flex;
        flex-direction: column;
    }

    .page-casino__container {
        padding: 0 15px;
    }
    .page-casino__section-title {
        font-size: 1.8em;
    }
    .page-casino__section-subtitle {
        font-size: 1em;
    }
    .page-casino__about-section,
    .page-casino__game-categories,
    .page-casino__promotions-section,
    .page-casino__live-experience-section,
    .page-casino__mobile-section,
    .page-casino__why-choose-us,
    .page-casino__video-showcase,
    .page-casino__faq-section,
    .page-casino__cta-section {
        padding: 40px 0;
    }
    .page-casino__text-block h2 {
        font-size: 1.5em;
    }
    .page-casino__game-grid {
        grid-template-columns: 1fr;
    }
    .page-casino__feature-list {
        grid-template-columns: 1fr;
    }

    /* Images and Videos Responsive */
    .page-casino img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-casino__section,
    .page-casino__card,
    .page-casino__container,
    .page-casino__image-block,
    .page-casino__text-block,
    .page-casino__video-showcase,
    .page-casino__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-casino__video-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-casino video,
    .page-casino__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}