/* style/casino.css */

/* General styles for the casino page */
.page-casino {
    background-color: #08160F; /* Background */
    color: #F2FFF6; /* Text Main */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Add some padding at the bottom */
}

/* Ensure padding-top is handled by body in shared.css, this page only needs minimal top spacing for content */
.page-casino__hero-section,
.page-casino__introduction-section,
.page-casino__guide-section,
.page-casino__games-section,
.page-casino__promotions-section,
.page-casino__security-support-section,
.page-casino__faq-section,
.page-casino__conclusion-section {
    padding: 40px 20px;
    position: relative;
    z-index: 1; /* Ensure content is above any potential background layers */
}

.page-casino__hero-section {
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding for content below image */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Ensure no overflow from image */
}

.page-casino__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and text content */
}

.page-casino__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-casino__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-casino__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size for H1 */
    color: #F2C14E; /* Gold */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-casino__hero-description {
    font-size: 1.1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.page-casino__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    color: #F2FFF6; /* Text Main */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__btn-secondary {
    background-color: transparent;
    color: #57E38D; /* Glow */
    border: 2px solid #2E7A4E; /* Border */
}

.page-casino__btn-secondary:hover {
    background-color: rgba(87, 227, 141, 0.1);
    transform: translateY(-2px);
}

.page-casino__btn-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
    max-width: 300px; /* Limit width for centered buttons */
}


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

.page-casino__section-title {
    font-size: 2.5em;
    color: #F2C14E; /* Gold */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-casino__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #2E7A4E; /* Border */
    border-radius: 2px;
}

.page-casino__sub-title {
    font-size: 1.8em;
    color: #57E38D; /* Glow */
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: center;
}

.page-casino__text-block {
    font-size: 1.05em;
    margin-bottom: 15px;
    color: #F2FFF6; /* Text Main */
    text-align: justify;
}

.page-casino__text-block strong.highlight {
    color: #F2C14E; /* Gold */
}

.page-casino__numbered-list,
.page-casino__bullet-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-casino__numbered-list li,
.page-casino__bullet-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
    color: #A7D9B8; /* Text Secondary */
}

.page-casino__numbered-list li strong {
    color: #F2C14E; /* Gold */
}

.page-casino__numbered-list li::before {
    content: counter(list-item) ".";
    counter-increment: list-item;
    position: absolute;
    left: 0;
    color: #57E38D; /* Glow */
    font-weight: bold;
    width: 25px;
    text-align: right;
}

.page-casino__bullet-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #57E38D; /* Glow */
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

.page-casino__game-category {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E; /* Border */
}

.page-casino__game-image,
.page-casino__promotion-image,
.page-casino__security-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 20px auto;
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* FAQ Section */
.page-casino__faq-list {
    margin-top: 30px;
}

.page-casino__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background-color: rgba(17, 168, 78, 0.2); /* Slightly lighter background for question */
    color: #F2FFF6; /* Text Main */
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
    background-color: rgba(17, 168, 78, 0.4);
}

.page-casino__faq-qtext {
    flex-grow: 1;
    color: #F2FFF6; /* Text Main */
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
    color: #57E38D; /* Glow */
}

.page-casino__faq-item[open] .page-casino__faq-toggle {
    content: '−';
}

.page-casino__faq-answer {
    padding: 15px 20px;
    background-color: #08160F; /* Background */
    color: #A7D9B8; /* Text Secondary */
    border-top: 1px solid #1E3A2A; /* Divider */
    font-size: 1em;
}

.page-casino__faq-answer p {
    margin-bottom: 0;
}

/* Remove default details marker */
.page-casino__faq-item summary {
    list-style: none;
}
.page-casino__faq-item summary::-webkit-details-marker {
    display: none;
}


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

@media (max-width: 768px) {
    .page-casino__hero-section {
        padding-bottom: 40px;
    }

    .page-casino__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }

    .page-casino__hero-description {
        font-size: 1em;
    }

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

    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        padding: 12px 20px;
        width: 100%; /* Full width for buttons */
        max-width: 100% !important; /* Force full width */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-casino__btn-center {
        max-width: 100%;
    }

    .page-casino__section-title {
        font-size: 1.8em;
    }

    .page-casino__sub-title {
        font-size: 1.3em;
    }

    .page-casino__text-block {
        font-size: 0.95em;
    }

    .page-casino__container {
        padding: 0 15px; /* Adjust container padding for mobile */
    }

    /* Images responsiveness */
    .page-casino__hero-image,
    .page-casino__game-image,
    .page-casino__promotion-image,
    .page-casino__security-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px; /* Maintain minimum size */
        min-height: 200px; /* Maintain minimum size */
    }

    /* All image containers must adapt */
    .page-casino__hero-image-wrapper,
    .page-casino__game-category,
    .page-casino__promotions-section .page-casino__container,
    .page-casino__security-support-section .page-casino__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ items for mobile */
    .page-casino__faq-question {
        font-size: 1em;
        padding: 12px 15px;
    }
    .page-casino__faq-answer {
        padding: 12px 15px;
        font-size: 0.95em;
    }
}

/* Ensure content area images do not fall below 200px */
.page-casino img {
    min-width: 200px;
    min-height: 200px;
}