/* FAQ component styles */
.lubinik-faqs {
    margin: 3rem 0;
}

.lubinik-faqs .faq-title {
    text-align: center;
    margin-bottom: 2rem;
}

/* Accordion layout */
.lubinik-faqs.layout-accordion .faq-item {
    border-bottom: 1px solid var(--lubinik-border-color, #ddd);
    padding: 1rem 0;
}

.lubinik-faqs .faq-question {
    display: flex;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    font-size: var(--lubinik-font-size-lg);
    color: var(--lubinik-theme-faq-title-color);
    font-family: var(--lubinik-font-family-secondary);
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.lubinik-faqs .faq-toggle:after {
    content: '\25BC';
    transition: transform 0.3s ease;
}

.lubinik-faqs .faq-question[aria-expanded="true"] .faq-toggle:after {
    transform: rotate(180deg);
}

/* Rounded corners + subtle border for FAQ answers */
.lubinik-faqs .faq-answer {
    margin-top: 0.75rem;
    background-color: rgba(var(--lubinik-tertiary-color-rgb), 0.2);

    /* new styles */
    border: 1px solid rgba(var(--lubinik-tertiary-color-rgb), 0.3); /* or pick any colour */
    border-radius: var(--lubinik-border-radius-sm, 6px);             /* falls back to 6 px */
    padding: var(--lubinik-spacing-sm);                           /* keeps text off border */
}

/* List layout */
.lubinik-faqs.layout-list .faq-item {
    margin-bottom: 1.5rem;
}

.faq-item li {
    font-size: var(--lubinik-font-size-md);
}

.faq-category-group {
    margin-top: var(--lubinik-spacing-xl, 2.5rem);
}

.faq-category-group:first-of-type {
    margin-top: 0;
}

.faq-category-title {
    margin-bottom: var(--lubinik-spacing-md, 1.25rem);
    font-size: var(--lubinik-font-size-xl, 1.25rem);
    font-family: var(--lubinik-font-family-secondary);
    font-weight: 700;
    color: var(--lubinik-primary-color);
}

@media (max-width:480px){
    .lubinik-faqs {
        margin-left: var(--lubinik-spacing-sm);
        margin-right: var(--lubinik-spacing-sm);
    }
}