/* 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: #000000; /* Body background is dark */
}

.page-casino__section {
    padding: 60px 20px;
    margin-bottom: 20px;
    background-color: #000000; /* Ensure sections also have a dark background */
}

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

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

.page-casino__section-paragraph {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__section-paragraph a {
    color: #FFD700;
    text-decoration: underline;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background-color: #0A2463; /* Main brand color for hero background */
    overflow: hidden;
}

.page-casino__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay for text readability */
    border-radius: 10px;
}

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

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

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

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    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;
    box-sizing: border-box; /* Ensure padding/border are included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure buttons don't exceed container */
}

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

.page-casino__btn-primary:hover {
    background-color: #e0b800;
    border-color: #e0b800;
    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-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Image styles */
.page-casino__image-full-width {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

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

.page-casino__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text contrast */
    display: block; /* Ensure it's a block element */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* Game Categories */
.page-casino__game-category {
    background-color: #0A2463; /* Dark blue background for game cards */
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.page-casino__game-title {
    font-size: 2em;
    color: #FFD700;
    margin-bottom: 15px;
    text-align: center;
}

.page-casino__game-description {
    font-size: 1.05em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-casino__game-list {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
    font-size: 1.05em;
}

.page-casino__game-list li {
    margin-bottom: 8px;
}

/* Promotions Section */
.page-casino__promotions {
    background-color: #0A2463; /* Dark blue background */
    color: #ffffff;
}

.page-casino__promotion-list {
    list-style: circle inside;
    margin: 0 auto 30px auto;
    padding-left: 20px;
    max-width: 800px;
    font-size: 1.1em;
}

.page-casino__promotion-list li {
    margin-bottom: 10px;
    color: #f0f0f0;
}

/* Security Section */
.page-casino__security-features {
    list-style: none;
    padding: 0;
    margin: 0 auto 30px auto;
    max-width: 800px;
    font-size: 1.1em;
    text-align: center;
}

.page-casino__security-features li {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 5px;
    color: #f0f0f0;
}

.page-casino__security-features li a {
    color: #FFD700;
    text-decoration: underline;
}

/* Registration Section */
.page-casino__registration-steps {
    list-style: none;
    padding: 0;
    margin: 0 auto 30px auto;
    max-width: 900px;
    font-size: 1.1em;
    text-align: left;
}

.page-casino__registration-steps li {
    background-color: #0A2463;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-casino__step-title {
    color: #FFD700;
    font-size: 1.2em;
    margin-bottom: 5px;
    display: block;
}

/* Support Section */
.page-casino__support {
    background-color: #0A2463;
    color: #ffffff;
}

.page-casino__support-channels {
    list-style: none;
    padding: 0;
    margin: 0 auto 30px auto;
    max-width: 800px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.page-casino__support-channels li {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 8px;
    color: #f0f0f0;
    flex: 1 1 calc(50% - 20px); /* Two columns on larger screens */
    text-align: center;
    box-sizing: border-box;
}

.page-casino__support-channels li a {
    color: #FFD700;
    text-decoration: underline;
}

/* FAQ Section */
.page-casino__faq-list {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

.page-casino__faq-heading {
    margin: 0;
    color: #FFD700;
    font-size: 1em; /* Relative to parent font-size */
}

.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: #0A2463;
    color: #f0f0f0;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 1000px !important; /* Important to override any other max-height */
    padding: 20px !important; /* Ensure padding is applied when active */
}

.page-casino__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
    text-align: justify;
}

.page-casino__faq-answer p a {
    color: #FFD700;
    text-decoration: underline;
}

/* Conclusion Section */
.page-casino__conclusion {
    background-color: #0A2463;
    color: #ffffff;
}

.page-casino__text-center {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 2.8em;
    }
    .page-casino__hero-description {
        font-size: 1.2em;
    }
    .page-casino__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-casino {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-casino__hero-section {
        min-height: 500px;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }

    .page-casino__hero-content {
        padding: 15px;
    }

    .page-casino__hero-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; /* Stack buttons vertically on mobile */
        gap: 15px;
    }

    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-casino__container {
        padding: 0 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-casino__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-casino__section-paragraph,
    .page-casino__game-description,
    .page-casino__game-list,
    .page-casino__promotion-list,
    .page-casino__security-features,
    .page-casino__registration-steps,
    .page-casino__support-channels,
    .page-casino__faq-answer p {
        font-size: 0.95em;
        text-align: left; /* Adjust text alignment for better mobile readability */
    }

    /* All images responsive for mobile */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure minimum size is still met */
        min-height: 200px !important; /* Ensure minimum size is still met */
    }

    /* Image containers responsive for mobile */
    .page-casino__hero-image-wrapper,
    .page-casino__game-category,
    .page-casino__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-casino__support-channels li {
        flex: 1 1 100%; /* Single column on mobile */
    }

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

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