/* FAQ Block */

.faq-wrapper {
    margin: 2rem 0;
}

/* Category Filter */
.faq-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.faq-filter__btn {
    padding: 0.3rem 1.1rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50px;
    color: #333;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-filter__btn:hover {
    border-color: var(--accent);
    color: #fff;
}

.faq-filter__btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Groups */
.faq-group {
    margin-bottom: 2.5rem;
}

.faq-group:last-child {
    margin-bottom: 0;
}

.faq-group.is-hidden {
    display: none;
}

.faq-group__heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}

/* FAQ List */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    /*border: 1px solid #e8e8e8;*/
    border-radius: 8px;
    overflow: hidden;
}

/* FAQ Item */
.faq-item {
    border-bottom: 1px solid #e8e8e8;
}

.faq-item:last-child {
    border-bottom: none;
}

/* Question Button */
.faq-item__heading {
    margin: 0;
    font-size: 1rem;
}

.faq-item__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: none;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1.4;
}

button.faq-item__question {
    border-radius: 0;
}

.faq-item__question:hover {
    background: #f9f9f9;
    color: var(--accent);
}

.faq-item.is-open .faq-item__question {
    background: #f9f9f9;
    color: var(--accent);
}

.faq-item__chevron {
    flex-shrink: 0;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.faq-item.is-open .faq-item__chevron {
    transform: rotate(180deg);
}

/* Answer — grid-row trick for smooth height animation */
.faq-item__answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.faq-item.is-open .faq-item__answer {
    grid-template-rows: 1fr;
}

.faq-item__answer-inner {
    overflow: hidden;
    padding: 0 1.5rem;
    transition: padding 0.3s ease;
}

.faq-item.is-open .faq-item__answer-inner {
    padding: 0.25rem 1.5rem 1.5rem;
}

/* Answer content styles */
.faq-item__answer-inner p {
    margin: 0 0 1rem 0;
    /*color: #444;*/
    /*font-size: 0.975rem;*/
    line-height: 1.7;
}

.faq-item__answer-inner p:last-child {
    margin-bottom: 0;
}

.faq-item__answer-inner ul,
.faq-item__answer-inner ol {
    margin: 0 0 1rem 1.5rem;
    /*color: #444;*/
    /*font-size: 0.975rem;*/
    line-height: 1.7;
}

.faq-item__answer-inner li {
    margin-bottom: 0.4rem;
}

.faq-item__answer-inner a {
    color: var(--accent);
    text-decoration: underline;
}

.faq-item__answer-inner a:hover {
    text-decoration: none;
}

.faq-item__answer-inner strong {
    color: #1a1a1a;
}

/* Responsive */
@media (max-width: 767px) {
    .faq-item__question {
        font-size: 0.95rem;
        padding: 1rem 1.25rem;
    }

    .faq-item__answer-inner {
        padding: 0 1.25rem;
    }

    .faq-item.is-open .faq-item__answer-inner {
        padding: 0.25rem 1.25rem 1.25rem;
    }
}
