:root {
    --kingbet86-primary: #11A84E;
    --kingbet86-secondary: #22C768;
    --kingbet86-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --kingbet86-card-bg: #11271B;
    --kingbet86-background: #08160F;
    --kingbet86-text-main: #F2FFF6;
    --kingbet86-text-secondary: #A7D9B8;
    --kingbet86-border: #2E7A4E;
    --kingbet86-glow: #57E38D;
    --kingbet86-gold: #F2C14E;
    --kingbet86-divider: #1E3A2A;
    --kingbet86-deep-green: #0A4B2C;
}

.page-faq {
    background-color: var(--kingbet86-background);
    color: var(--kingbet86-text-main); /* Main text color for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Ensure space above footer */
}

.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding for the first section */
    overflow: hidden;
    background-color: var(--kingbet86-deep-green); /* A darker shade for the hero background */
}

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

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    filter: none; /* No CSS filter on images */
}

.page-faq__hero-content {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    z-index: 1;
}

.page-faq__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: var(--kingbet86-gold); /* Gold for main title */
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Soft glow */
}

.page-faq__description {
    font-size: 1.2rem;
    color: var(--kingbet86-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--kingbet86-button-gradient);
    color: var(--kingbet86-text-main);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none; /* No border for primary button */
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Ensure padding is included in width */
}

.page-faq__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--kingbet86-glow);
}

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

.page-faq__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--kingbet86-primary);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-faq__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--kingbet86-gold);
    border-radius: 2px;
}

.page-faq__sub-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 600;
    color: var(--kingbet86-text-main);
    margin-top: 30px;
    margin-bottom: 20px;
}

.page-faq__text-block p {
    color: var(--kingbet86-text-secondary);
    margin-bottom: 15px;
}

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

.page-faq__list-item {
    color: var(--kingbet86-text-secondary);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.page-faq__list-item::before {
    content: '✓';
    color: var(--kingbet86-gold);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.page-faq__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.page-faq__faq-item {
    background-color: var(--kingbet86-card-bg);
    border: 1px solid var(--kingbet86-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 10px var(--kingbet86-primary);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--kingbet86-text-main);
    background-color: var(--kingbet86-deep-green);
    border-bottom: 1px solid var(--kingbet86-divider);
    list-style: none; /* For details/summary */
}

.page-faq__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome/Safari */
}

.page-faq__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    font-weight: bold;
    color: var(--kingbet86-gold);
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-faq__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--kingbet86-text-secondary);
    max-height: 0; /* Hidden by default for JS fallback */
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-faq__faq-item[open] .page-faq__faq-answer {
    max-height: 1000px; /* Adjust as needed for content height */
    padding: 20px 25px;
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
}

.page-faq__faq-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
    border-radius: 8px;
    object-fit: cover;
    filter: none; /* No CSS filter on images */
}

.page-faq__faq-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--kingbet86-button-gradient);
    color: var(--kingbet86-text-main);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box; /* Ensure padding is included in width */
}

.page-faq__faq-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 8px var(--kingbet86-glow);
}

.page-faq__conclusion-section {
    text-align: center;
    padding-bottom: 80px;
}

.page-faq__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-faq__btn-primary {
    background: var(--kingbet86-button-gradient);
    color: var(--kingbet86-text-main);
    border: none;
}

.page-faq__btn-secondary {
    background: transparent;
    color: var(--kingbet86-primary);
    border: 2px solid var(--kingbet86-primary);
}

.page-faq__btn-secondary:hover {
    background: var(--kingbet86-primary);
    color: var(--kingbet86-text-main);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--kingbet86-glow);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__hero-content {
        max-width: 700px;
    }
}

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

    .page-faq__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-faq__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .page-faq__description {
        font-size: 1rem;
    }

    .page-faq__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-faq__section {
        padding: 30px 15px;
    }

    .page-faq__section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-faq__sub-title {
        font-size: clamp(1.2rem, 4vw, 1.6rem);
    }

    .page-faq__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-faq__faq-toggle {
        font-size: 1.5rem;
    }

    .page-faq__faq-answer {
        padding: 15px 20px;
    }

    /* All images must be responsive */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure containers of images/buttons/videos are also constrained */
    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__hero-image-wrapper,
    .page-faq__faq-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by specific sections, not generic container */
    }

    /* Button containers for multiple buttons */
    .page-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to container if not already present */
    }
    
    .page-faq__cta-buttons .page-faq__cta-button {
        width: 100% !important;
        max-width: 100% !important;
    }

    .page-faq__faq-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Ensure no filter on images */
.page-faq img {
    filter: none;
}