/* FAQs Component Styling */
.pb-faq-container {
    width: var(--faq-width, 100%);
    height: var(--faq-height, auto);
    box-sizing: border-box;
    padding: 40px;
}

.pb-faq-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* 2 Column Layout Grid */
.pb-faq-2-col .pb-faq-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start; /* Prevents accordion items from stretching to row height */
}

/* 1 Column Layout */
.pb-faq-1-col .pb-faq-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

/* Base Item Styles */
.pb-faq-content-container {
    background-color: var(--faq-item-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px -3px rgba(0, 0, 0, 0.1);
}

.pb-faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.pb-faq-header h3 {
    margin: 0;
    color: var(--faq-title-col);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    padding-right: 20px;
}

.pb-faq-toggle-btn {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--faq-toggle-col);
    flex-shrink: 0;
}

.pb-faq-open, .pb-faq-close {
    position: absolute;
    font-size: 28px;
    font-weight: 300;
    transition: opacity var(--faq-anim-speed), transform var(--faq-anim-speed);
    line-height: Math.ceil(1);
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
}

.pb-faq-open.active, .pb-faq-close.active {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Content Area - Max-height transition strategy */
.pb-faq-content {
    background-color: var(--faq-item-bg);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--faq-anim-speed) ease-in-out;
}

.pb-faq-content.active {
    max-height: 2000px; /* high enough for most content, transition will animate quickly based on easing */
}

.pb-faq-inner {
    padding: 0 25px 25px 25px;
    color: var(--faq-ans-col);
    font-size: 1rem;
    line-height: 1.6;
}

.pb-faq-inner p {
    margin-top: 0;
}

.pb-faq-inner img {
    border-radius: 4px;
    margin-top: 10px;
    max-width: 100%;
    height: auto;
}

/* Responsive Handling */
@media (max-width: 768px) {
    .pb-faq-2-col .pb-faq-wrapper {
        grid-template-columns: 1fr;
    }
}
