/* style/casino.css */

/* Base styles for the page-casino scope */
.page-casino {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f5f5f5; /* Inherited from shared, but for clarity */
}

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

.page-casino__section-title {
    font-size: 2.5rem;
    color: #26A9E0; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-casino__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: justify;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Crucial for responsive buttons */
    max-width: 100%; /* Ensure buttons don't overflow */
}

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

.page-casino__btn-primary:hover {
    background-color: #1e87c2;
    border-color: #1e87c2;
}

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

.page-casino__btn-secondary:hover {
    background-color: #e0f0f8;
    color: #1e87c2;
    border-color: #1e87c2;
}

.page-casino__btn-text {
    background: none;
    border: none;
    color: #26A9E0;
    padding: 0;
    font-weight: bold;
    text-decoration: underline;
    font-size: 1rem;
}

.page-casino__btn-text:hover {
    color: #1e87c2;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    padding: 100px 20px;
    text-align: center;
    background-color: #26A9E0; /* Darker background for hero */
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-casino__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay */
    z-index: 0;
}

.page-casino__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-casino__hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
    font-weight: bold;
}

.page-casino__hero-description {
    font-size: 1.3rem;
    margin-bottom: 40px;
    line-height: 1.5;
}

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

/* Introduction Section */
.page-casino__introduction-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333;
}

/* Games Section */
.page-casino__games-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand primary color for section background */
    color: #ffffff;
}

.page-casino__games-section .page-casino__section-title {
    color: #ffffff; /* White title on dark background */
}

.page-casino__games-section .page-casino__text-block {
    color: #f0f0f0; /* Lighter text on dark background */
}

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

.page-casino__game-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    color: #333333; /* Dark text on light card background */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
}

.page-casino__card-title {
    font-size: 1.8rem;
    color: #26A9E0;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-casino__card-description {
    font-size: 1rem;
    color: #555555;
    padding: 0 15px 20px;
    flex-grow: 1; /* Allows description to take available space */
}

/* Features Section */
.page-casino__features-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

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

.page-casino__feature-item {
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-casino__feature-icon {
    width: 100%;
    height: 200px; /* Ensure minimum size and good display */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-casino__feature-title {
    font-size: 1.5rem;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-casino__feature-description {
    font-size: 1rem;
    color: #555555;
}

/* How to Play Section */
.page-casino__how-to-play-section {
    padding: 80px 0;
    background-color: #26A9E0;
    color: #ffffff;
}

.page-casino__how-to-play-section .page-casino__section-title {
    color: #ffffff;
}

.page-casino__how-to-play-section .page-casino__text-block {
    color: #f0f0f0;
}

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

.page-casino__step-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    color: #333333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__step-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #EA7C07; /* Login color for steps */
    margin-bottom: 15px;
}

.page-casino__step-title {
    font-size: 1.6rem;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-casino__step-description {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Strategy Section */
.page-casino__strategy-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

.page-casino__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-casino__strategy-item {
    background-color: #f9f9f9;
    border-left: 5px solid #26A9E0;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-casino__strategy-heading {
    font-size: 1.4rem;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Video Section */
.page-casino__video-section {
    padding: 80px 0;
    background-color: #000000; /* Dark background for video */
    color: #ffffff;
    text-align: center;
}

.page-casino__video-section .page-casino__section-title {
    color: #ffffff;
}

.page-casino__video-section .page-casino__text-block {
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-casino__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 12px;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-casino__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.page-casino__video-link {
    display: block; /* Make the whole video wrapper clickable */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

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

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

.page-casino__faq-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #eaf7ff; /* Lighter brand color background */
    border-bottom: 1px solid #d0e7f8;
}

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

.page-casino__faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #26A9E0;
}

.page-casino__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

.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;
    background-color: #ffffff;
    color: #555555;
}

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

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

/* Call to Action Section */
.page-casino__cta-section {
    padding: 80px 0;
    background-color: #26A9E0;
    color: #ffffff;
    text-align: center;
}

.page-casino__cta-section .page-casino__section-title {
    color: #ffffff;
    margin-bottom: 20px;
}

.page-casino__cta-section .page-casino__text-block {
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 40px;
}

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

.page-casino__cta-buttons--center {
    margin-top: 40px;
}

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

@media (max-width: 768px) {
    .page-casino__hero-section {
        padding: 80px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
    .page-casino__hero-title {
        font-size: 2.5rem;
    }
    .page-casino__hero-description {
        font-size: 1.1rem;
    }
    .page-casino__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-casino__text-block {
        font-size: 1rem;
    }
    .page-casino__container {
        padding: 0 15px;
    }

    /* Mobile image adaptation */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-casino__card-image,
    .page-casino__feature-icon {
        height: auto !important; /* Let height adjust to aspect ratio */
        min-height: 200px !important; /* Ensure minimum height */
    }
    
    /* Mobile video adaptation */
    .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;
    }
    /* Specific override for video section padding-top on mobile */
    .page-casino__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* Mobile button adaptation */
    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__btn-text,
    .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; /* Add some padding to prevent text touching edges */
        padding-right: 15px;
    }
    .page-casino__hero-cta-buttons,
    .page-casino__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-casino__faq-question {
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    .page-casino__faq-question h3 {
        font-size: 1.1rem;
    }
    .page-casino__faq-answer {
        padding: 0 20px;
    }
    .page-casino__faq-item.active .page-casino__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-casino__hero-title {
        font-size: 2rem;
    }
    .page-casino__section-title {
        font-size: 1.5rem;
    }
    .page-casino__game-grid,
    .page-casino__feature-list,
    .page-casino__steps-grid {
        grid-template-columns: 1fr;
    }
    .page-casino__card-title {
        font-size: 1.5rem;
    }
    .page-casino__feature-title {
        font-size: 1.3rem;
    }
    .page-casino__step-title {
        font-size: 1.4rem;
    }
}