.faq-page,
.faq-page * {
    box-sizing: border-box;
}

.faq-page {
    color: #17191c;
    background: #fff;
}

.resource-section-nav {
    display: flex;
    width: 1200px;
    max-width: 90%;
    margin: 24px auto 0;
    padding: 0;
    border-bottom: 1px solid #cfd6dd;
}

.resource-section-nav a {
    min-width: 112px;
    padding: 12px 18px;
    border-bottom: 3px solid transparent;
    color: #59636e;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.resource-section-nav a.active {
    border-color: #1f73a9;
    color: #15191d;
}

.faq-content {
    overflow: visible;
}

.faq-content .resource-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.faq-toolbar {
    display: grid;
    grid-template-columns: 170px minmax(220px, 1fr) auto;
    width: min(100%, 620px);
    gap: 8px;
}

.faq-toolbar select,
.faq-toolbar input {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #cfd5dc;
    border-radius: 0;
    background: #fff;
    font-size: 16px;
}

.faq-toolbar button {
    min-width: 68px;
    min-height: 40px;
    padding: 10px 18px;
    border: 0;
    border-radius: 0;
    background: #183f86;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.faq-meta {
    margin-bottom: 8px;
    color: #68717d;
    font-size: 15px;
}

.faq-list {
    border-top: 2px solid #274d98;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.faq-item {
    margin: 0;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
}

.faq-item summary {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 32px;
    gap: 16px;
    align-items: center;
    min-height: 66px;
    padding: 16px;
    list-style: none;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-category {
    color: #274d98;
    font-size: 16px;
    font-weight: 700;
}

.faq-question {
    min-width: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.55;
}

.faq-toggle {
    display: flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfd5dc;
    border-radius: 0;
    color: #274d98;
    font-size: 20px;
    line-height: 1;
}

.faq-toggle::before {
    content: '+';
}

.faq-item[open] .faq-toggle::before {
    content: '-';
}

.faq-item[open] summary {
    background: #f7f9fc;
}

.faq-answer {
    padding: 20px 64px 24px 152px;
    background: #f8fafc;
    color: #3e4852;
    font-size: 16px;
    line-height: 1.8;
    word-break: keep-all;
}

.faq-empty {
    padding: 64px 20px;
    border-top: 2px solid #274d98;
    border-bottom: 1px solid #e0e0e0;
    color: #68717d;
    text-align: center;
}

.faq-pagination a.active {
    color: #274d98;
    font-weight: 700;
}

@media (max-width: 1200px) {
    .resource-section-nav {
        width: 90%;
        max-width: none;
    }
}

@media (max-width: 767px) {
    .resource-section-nav {
        width: calc(100% - 32px);
        margin-top: 16px;
    }

    .resource-section-nav a {
        flex: 1;
        min-width: 0;
    }

    .faq-content {
        overflow: visible;
    }

    .faq-content .resource-toolbar {
        justify-content: stretch;
    }

    .faq-toolbar {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .faq-item summary {
        grid-template-columns: 82px minmax(0, 1fr) 30px;
        gap: 9px;
        padding: 13px 10px;
    }

    .faq-category,
    .faq-question {
        font-size: 15px;
    }

    .faq-answer {
        padding: 17px 16px 20px;
        font-size: 15px;
        word-break: normal;
    }
}
