/**
 * OfficialHosts FAQ Accordion
 */

.ohfaq-wrap {
    --ohfaq-navy: #071b3d;
    --ohfaq-blue: #075cf5;
    --ohfaq-green: #26a953;
    --ohfaq-ink: #10213f;
    --ohfaq-muted: #52627b;
    --ohfaq-line: #dce4ee;
    --ohfaq-pale: #f5f9ff;
    width: 100%;
    color: var(--ohfaq-ink);
    font-family: inherit;
}

.ohfaq-wrap,
.ohfaq-wrap * {
    box-sizing: border-box;
}

.ohfaq-heading {
    margin: 0 0 24px;
    color: var(--ohfaq-navy);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.ohfaq-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.ohfaq-search-wrap {
    position: relative;
    display: block;
    flex: 1 1 620px;
    /*
    max-width: 720px;
    */
}

.ohfaq-search-icon {
    position: absolute;
    top: 50%;
    left: 17px;
    color: var(--ohfaq-blue);
    font-size: 1.3rem;
    line-height: 1;
    transform: translateY(-50%);
    pointer-events: none;
}

.ohfaq-search {
    width: 100%;
    min-height: 52px;
    padding: 12px 18px 12px 48px;
    border: 1px solid var(--ohfaq-line);
    border-radius: 9px;
    color: var(--ohfaq-ink);
    background: #fff;
    box-shadow: 0 7px 22px rgba(9, 35, 76, 0.05);
    font: inherit;
}

.ohfaq-search:focus {
    border-color: var(--ohfaq-blue);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(7, 92, 245, 0.12);
}

.ohfaq-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ohfaq-control {
    min-height: 42px;
    padding: 9px 17px;
    border: 1px solid var(--ohfaq-blue);
    border-radius: 6px;
    color: var(--ohfaq-blue);
    background: #fff;
    font-size: 0.85rem;
    font-weight: 750;
    line-height: 1.2;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.ohfaq-control:hover,
.ohfaq-control:focus-visible {
    color: #fff;
    background: var(--ohfaq-blue);
    transform: translateY(-1px);
}

.ohfaq-sections {
    display: grid;
    gap: 38px;
}

.ohfaq-section[hidden],
.ohfaq-item[hidden] {
    display: none !important;
}

.ohfaq-section-header {
    margin-bottom: 16px;
}

.ohfaq-section-title {
    margin: 0 0 6px;
    color: var(--ohfaq-navy);
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.ohfaq-section-description {
    max-width: 780px;
    color: var(--ohfaq-muted);
    line-height: 1.65;
}

.ohfaq-section-description > :last-child {
    margin-bottom: 0;
}

.ohfaq-accordion {
    display: grid;
    gap: 14px;
}

.ohfaq-item {
    overflow: hidden;
    border: 1px solid var(--ohfaq-line) !important;
    border-radius: 12px !important;
    background: #fff;
    box-shadow: 0 8px 28px rgba(9, 35, 76, 0.045);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ohfaq-item:hover {
    border-color: #bfd2f3 !important;
    box-shadow: 0 15px 36px rgba(9, 35, 76, 0.1);
    transform: translateY(-2px);
}

.ohfaq-item-heading {
    margin: 0;
}

.ohfaq-question {
    gap: 18px;
    min-height: 72px;
    padding: 20px 24px;
    color: var(--ohfaq-navy);
    background: #fff;
    box-shadow: none !important;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.ohfaq-question:not(.collapsed) {
    color: white;
    background:#062351;
}

.ohfaq-question:focus {
    border-color: transparent;
    box-shadow: inset 0 0 0 2px rgba(7, 92, 245, 0.18) !important;
}

.ohfaq-question::after {
    width: 34px;
    height: 34px;
    margin-left: auto;
    border: 1px solid #cfe0f5;
    border-radius: 50%;
    background-color: #eef4ff;
    background-position: center;
    background-size: 15px;
}

.ohfaq-answer {
    padding: 24px 24px 24px;
    color: var(--ohfaq-muted);
    font-size: 0.96rem;
    line-height: 1.7;
}

.ohfaq-answer > :first-child {
    margin-top: 0;
}

.ohfaq-answer > :last-child {
    margin-bottom: 0;
}

.ohfaq-answer a {
    color: var(--ohfaq-blue);
    font-weight: 700;
}

.ohfaq-empty,
.ohfaq-no-results {
    padding: 20px;
    border: 1px solid var(--ohfaq-line);
    border-radius: 10px;
    color: var(--ohfaq-muted);
    background: var(--ohfaq-pale);
}

.editor-styles-wrapper .ohfaq-wrap {
    max-width: none;
}

@media (max-width: 767.98px) {
    .ohfaq-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .ohfaq-search-wrap {
        flex-basis: auto;
        max-width: none;
    }

    .ohfaq-controls {
        justify-content: stretch;
    }

    .ohfaq-control {
        flex: 1 1 calc(50% - 5px);
    }
}

@media (max-width: 575.98px) {
    .ohfaq-question {
        min-height: 64px;
        padding: 17px 18px;
        font-size: 0.95rem;
    }

    .ohfaq-answer {
        padding: 0 18px 20px;
        font-size: 0.92rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ohfaq-item,
    .ohfaq-control {
        transition: none;
    }
}
