/* ==================================================
   FAQ PAGE CSS
   ================================================== */

.faq-hero-banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../assets/Commercial.webp');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 140px 0 100px 0;
    text-align: center;
    position: relative;
    border-bottom: 20px solid var(--bg-light);
    /* To separate from next section */
}

.faq-hero-banner h1 {
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: -2px;
    position: relative;
    z-index: 2;
}

/* FAQ Main Section */
.faq-main-section {
    background-color: var(--bg-light);
    /* Light gray #f4f5f7 */
    padding: 100px 0 150px 0;
    position: relative;
}

.faq-section-title {
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--primary-black);
    text-transform: uppercase;
    margin-bottom: 60px;
    line-height: 1.1;
    letter-spacing: -1px;
}

/* FAQ Accordion Grid */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.faq-item {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    height: max-content;
    transition: background-color 0.3s ease;
}

.faq-item.active {
    background-color: var(--accent-yellow);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question h4 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary-black);
    margin: 0;
    text-transform: uppercase;
    padding-right: 20px;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-black);
    transition: transform 0.3s ease, color 0.3s ease;
    font-weight: bold;
}

.faq-item.active .faq-question h4,
.faq-item.active .faq-icon {
    color: #ffffff;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    padding: 0 30px 25px 30px;
    max-height: 500px;
    /* Arbitrary large height for animation */
}

.faq-answer p {
    font-family: "DM Sans", sans-serif;
    font-size: 0.95rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.7;
    transition: color 0.3s ease;
}

.faq-item.active .faq-answer p {
    color: #ffffff;
}

/* Bottom Accents */
.faq-bottom-accents {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.faq-accent-left {
    display: flex;
    align-items: flex-end;
}

.faq-accent-left .yellow-block {
    width: 150px;
    height: 30px;
    background-color: var(--accent-yellow);
}

.faq-accent-left .black-block {
    width: 30px;
    height: 50px;
    background-color: var(--primary-black);
}

.faq-accent-right {
    display: flex;
    align-items: flex-end;
}

.faq-accent-right .yellow-block {
    width: 100px;
    height: 50px;
    background-color: var(--accent-yellow);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.faq-accent-right .black-block {
    width: 30px;
    height: 30px;
    background-color: var(--primary-black);
}


@media (max-width: 991px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-hero-banner::before {
        width: 100px;
    }
}

@media (max-width: 767px) {
    .faq-hero-banner {
        padding: 140px 0 60px;
    }
}