.school-faq__panel {
    container: school-faq / inline-size;
}

.school-faq__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

.school-faq__item {
    min-width: 0;
    border: 1px solid #dce7e6;
    border-radius: 12px;
    background: #f8fbfa;
}

.school-faq__item[open] {
    border-color: #b7d8d1;
    background: #f1f8f5;
}

.school-faq__item > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 8px 12px;
    border-radius: 11px;
    cursor: pointer;
    font-weight: 700;
    line-height: 1.6;
    list-style: none;
}

.school-faq__item > summary::-webkit-details-marker {
    display: none;
}

.school-faq__item > summary .lucide {
    width: 16px;
    height: 16px;
    color: #08786d;
    flex: none;
}

.school-faq__item[open] > summary .lucide {
    transform: rotate(180deg);
}

.school-faq__answer {
    display: grid;
    justify-items: start;
    gap: 6px;
    padding: 0 12px 10px;
    color: #405261;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.school-faq__answer > p,
.school-faq__answer > ul {
    margin: 0;
}

.school-faq__answer > ul {
    padding-inline-start: 1.25em;
}

.school-faq__contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.school-faq__phone,
.school-faq__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    color: #086a5f;
    font-weight: 700;
}

.school-faq__phone {
    justify-content: center;
    padding: 3px 10px;
    border: 1px solid #c4ded7;
    border-radius: 8px;
    background: #fff;
}

.school-faq__link .lucide {
    width: 16px;
    height: 16px;
}

.school-faq__footer {
    margin-top: 8px;
}

@container school-faq (min-width: 631px) {
    .school-faq__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}
