/* style/casino.css */
/* Base styles for the casino page */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #121212; /* Inherited from body, or explicit if needed */
}

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

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

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

/* Reusable Button Styles */
.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* For responsiveness */
    box-sizing: border-box; /* For responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

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

/* HERO Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    padding-top: 0; /* Assuming shared.css handles body padding-top */
    margin-top: 0;
}

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

.page-casino__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.5); /* Dark blue overlay for text contrast */
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-casino__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

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

.page-casino__hero-description {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 40px;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

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

/* Introduction Section */
.page-casino__intro-section {
    padding: 80px 0;
    background-color: #003366; /* Dark blue background */
    color: #ffffff;
}

.page-casino__intro-button {
    margin-top: 20px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Popular Games Section */
.page-casino__games-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
    color: #f0f0f0;
}

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

.page-casino__game-card {
    background-color: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-casino__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

.page-casino__game-title {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-casino__game-text {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 20px;
}

.page-casino__game-button {
    width: 100%;
}

/* Live Casino Experience Section */
.page-casino__live-section {
    padding: 80px 0;
    background-color: #003366; /* Dark blue background */
    color: #ffffff;
    text-align: center;
}

.page-casino__live-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 10px;
    margin: 40px auto;
    display: block;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.page-casino__live-button {
    margin-top: 20px;
}

/* Promotions Section */
.page-casino__promotions-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
    color: #f0f0f0;
}

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

.page-casino__promo-card {
    background-color: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-casino__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.page-casino__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-casino__promo-title {
    font-size: 22px;
    color: #FFD700;
    padding: 20px 20px 0;
    margin-bottom: 10px;
}

.page-casino__promo-text {
    font-size: 16px;
    color: #cccccc;
    padding: 0 20px 20px;
    flex-grow: 1;
}

.page-casino__promo-button {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

.page-casino__all-promos-cta {
    text-align: center;
    margin-top: 50px;
}

/* Security and Support Section */
.page-casino__security-section {
    padding: 80px 0;
    background-color: #003366; /* Dark blue background */
    color: #ffffff;
    text-align: center;
}

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

.page-casino__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-casino__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: brightness(1.5); /* Make icons brighter on dark background */
}

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

.page-casino__feature-text {
    font-size: 16px;
    color: #cccccc;
}

.page-casino__support-cta {
    margin-top: 50px;
}

/* FAQ Section */
.page-casino__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
    color: #f0f0f0;
}

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

.page-casino__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: #2a2a2a; /* FAQ item background */
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-casino__faq-question:hover {
    background: #3a3a3a;
    border-color: #4a4a4a;
}

.page-casino__faq-question:active {
    background: #4a4a4a;
}

.page-casino__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #ffffff; /* White text for questions */
    pointer-events: none;
}

.page-casino__faq-toggle {
    font-size: 28px; /* Slightly larger for visibility */
    font-weight: bold;
    line-height: 1;
    color: #FFD700; /* Gold for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
    color: #FFD700; /* Keep gold */
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-casino__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    background-color: #3a3a3a; /* Darker background for answer */
    color: #cccccc; /* Lighter grey for answer text */
    border-radius: 0 0 5px 5px;
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 2000px !important;
    padding: 20px !important;
    opacity: 1;
}

.page-casino__faq-answer p {
    margin: 0;
    font-size: 16px;
}

/* Call to Action Final Section */
.page-casino__cta-final-section {
    padding: 80px 0;
    background-color: #003366; /* Dark blue background */
    color: #ffffff;
    text-align: center;
}

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

/* --- Responsive Design --- */

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 48px;
    }

    .page-casino__hero-description {
        font-size: 20px;
    }

    .page-casino__section-title {
        font-size: 32px;
    }

    .page-casino__section-description {
        font-size: 16px;
    }

    .page-casino__games-grid,
    .page-casino__promotions-grid,
    .page-casino__security-features {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    .page-casino__faq-list {
        max-width: 700px;
    }
}


/* Mobile devices */
@media (max-width: 768px) {
    /* General content area padding and image responsiveness */
    .page-casino__container,
    .page-casino__hero-content,
    .page-casino__intro-section,
    .page-casino__games-section,
    .page-casino__live-section,
    .page-casino__promotions-section,
    .page-casino__security-section,
    .page-casino__faq-section,
    .page-casino__cta-final-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

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

    /* HERO Section - Responsive adjustments */
    .page-casino__hero-section {
        min-height: 450px;
        padding-top: 0 !important; /* Ensure no double padding if shared.css handles body */
    }

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

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

    .page-casino__hero-cta {
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* Buttons - Responsive adjustments */
    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .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 20px !important; /* Adjust padding for smaller screens */
        font-size: 16px !important;
    }

    .page-casino__hero-cta,
    .page-casino__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }

    /* Section titles and descriptions */
    .page-casino__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-casino__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    /* Introduction Section */
    .page-casino__intro-section {
        padding: 60px 0;
    }

    /* Popular Games Section */
    .page-casino__games-section {
        padding: 60px 0;
    }

    .page-casino__games-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }

    .page-casino__game-image {
        height: 180px; /* Slightly smaller fixed height */
    }

    .page-casino__game-title {
        font-size: 20px;
    }

    .page-casino__game-text {
        font-size: 15px;
    }

    /* Live Casino Experience Section */
    .page-casino__live-section {
        padding: 60px 0;
    }

    /* Promotions Section */
    .page-casino__promotions-section {
        padding: 60px 0;
    }

    .page-casino__promotions-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }

    .page-casino__promo-image {
        height: 180px; /* Slightly smaller fixed height */
    }

    .page-casino__promo-title {
        font-size: 20px;
    }

    .page-casino__promo-text {
        font-size: 15px;
    }

    .page-casino__all-promos-cta {
        margin-top: 40px;
    }

    /* Security and Support Section */
    .page-casino__security-section {
        padding: 60px 0;
    }

    .page-casino__security-features {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }

    .page-casino__feature-item {
        padding: 25px;
    }

    .page-casino__feature-icon {
        width: 80px;
        height: 80px;
    }

    .page-casino__feature-title {
        font-size: 20px;
    }

    .page-casino__feature-text {
        font-size: 15px;
    }

    .page-casino__support-cta {
        margin-top: 40px;
    }

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

    .page-casino__faq-list {
        margin-top: 30px;
    }

    .page-casino__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }

    .page-casino__faq-question h3 {
        font-size: 16px;
        width: calc(100% - 40px); /* Adjust width to make space for toggle */
    }

    .page-casino__faq-toggle {
        font-size: 24px;
        width: 26px;
        height: 26px;
        margin-left: 10px;
    }

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

    .page-casino__faq-item.active .page-casino__faq-answer {
        padding: 15px !important;
    }

    .page-casino__faq-answer p {
        font-size: 15px;
    }

    /* Call to Action Final Section */
    .page-casino__cta-final-section {
        padding: 60px 0;
    }
}