/* style/faq.css */

/* Variables based on brand colors */
:root {
    --bingoplus-primary: #F2C14E;
    --bingoplus-secondary: #FFD36B;
    --bingoplus-bg-dark: #0A0A0A;
    --bingoplus-card-bg: #111111;
    --bingoplus-text-main: #FFF6D6;
    --bingoplus-border: #3A2A12;
    --bingoplus-glow: #FFD36B;
    --bingoplus-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

/* Base styles for the FAQ page, assuming body has a dark background from shared.css */
.page-faq {
    font-family: Arial, sans-serif;
    color: var(--bingoplus-text-main); /* Light text for dark background */
    line-height: 1.6;
    background-color: var(--bingoplus-bg-dark); /* Ensure consistency if body bg is not fully covering */
}

.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px 60px; /* Minimal top padding, relies on body padding-top */
    overflow: hidden;
    background-color: var(--bingoplus-bg-dark);
}

.page-faq__hero-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 0;
    display: flex; /* Ensures image is treated as a block for layout */
    justify-content: center;
    align-items: center;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-faq__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin-top: -150px; /* Pull content up over the image */
    padding: 0 20px;
    color: var(--bingoplus-text-main);
}

.page-faq__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--bingoplus-secondary);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.4);
}

.page-faq__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.page-faq__btn-primary {
    background: var(--bingoplus-button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-faq__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-faq__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: var(--bingoplus-bg-dark);
}

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

.page-faq__intro-text {
    font-size: 1.05rem;
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--bingoplus-text-main);
}

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

.page-faq__faq-list {
    margin-top: 50px;
    border-top: 1px solid var(--bingoplus-border);
}

.page-faq__faq-item {
    background-color: var(--bingoplus-card-bg);
    border: 1px solid var(--bingoplus-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-faq__faq-item:hover {
    background-color: rgba(242, 193, 78, 0.05);
    border-color: var(--bingoplus-primary);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    color: var(--bingoplus-text-main);
    font-weight: bold;
    font-size: 1.15rem;
}

.page-faq__faq-question h3 {
    margin: 0;
    color: inherit;
    font-size: inherit;
}

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

.page-faq__faq-item.active .page-faq__faq-toggle {
    transform: rotate(45deg);
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--bingoplus-text-main);
    font-size: 1rem;
}

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

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

.page-faq__btn-secondary {
    background: none;
    color: var(--bingoplus-primary);
    border: 2px solid var(--bingoplus-primary);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-faq__btn-secondary:hover {
    background: var(--bingoplus-primary);
    color: var(--bingoplus-bg-dark);
    box-shadow: 0 2px 10px rgba(242, 193, 78, 0.4);
}

.page-faq__cta-section {
    background-color: var(--bingoplus-card-bg);
    padding: 80px 20px;
    text-align: center;
    color: var(--bingoplus-text-main);
    border-top: 1px solid var(--bingoplus-border);
    border-bottom: 1px solid var(--bingoplus-border);
    margin-top: 60px;
}

.page-faq__cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--bingoplus-secondary);
    margin-bottom: 20px;
    font-weight: 700;
}

.page-faq__cta-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
    .page-faq__hero-content {
        margin-top: -100px;
    }
}

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

    .page-faq__hero-section {
        padding: 10px 15px 40px; /* Adjust padding for mobile */
    }

    .page-faq__hero-content {
        margin-top: -80px;
        padding: 0 15px;
    }

    .page-faq__main-title {
        font-size: 2rem;
    }

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

    .page-faq__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .page-faq__content-area {
        padding: 40px 15px;
    }

    .page-faq__section-title {
        font-size: 2rem;
    }

    .page-faq__intro-text {
        font-size: 0.95rem;
    }

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

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

    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 10px 20px 20px;
    }

    .page-faq__cta-section {
        padding: 60px 15px;
    }

    .page-faq__cta-title {
        font-size: 2rem;
    }

    .page-faq__cta-description {
        font-size: 1rem;
    }

    /* Mobile image, video, and button adaptation - IMPORTANT */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-faq__hero-image-wrapper,
    .page-faq__content-area,
    .page-faq__cta-section,
    .page-faq__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons adaptation */
    .page-faq__cta-button,
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq a[class*="button"],
    .page-faq 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 !important;
      padding-right: 15px !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
    }
    .page-faq__hero-content .page-faq__cta-button {
        margin-top: 20px;
    }
    .page-faq__cta-section .page-faq__cta-button {
        margin-top: 20px;
    }

    /* Multiple buttons in a row should stack or wrap */
    .page-faq__button-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}