/*!
 * Plugins/Faq/faq_asset/faq_public.css
 * ------------------------------------------------------------------
 * A nyilvános GYIK oldal (faq.php) stílusa: bal oldalon egy PONTOSAN
 * 220px széles kategória-menü (a felhasználó kérésének megfelelően),
 * jobb oldalon a harmonika (accordion) stílusú bejegyzés-lista.
 */

.faq-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 20px 0 60px;
}

/* ------------------------------------------------------------------
 * Bal oldali menü - 220px, ahogy kérve volt
 * ------------------------------------------------------------------ */
.faq-sidebar {
    flex: 0 0 220px;
    width: 220px;
    position: sticky;
    top: 20px;
}

.faq-sidebar__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 14px;
    opacity: .85;
}

.faq-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.faq-sidebar__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    color: inherit;
    opacity: .85;
    transition: background-color .15s ease, opacity .15s ease;
}

.faq-sidebar__link:hover {
    background-color: rgba(127, 127, 127, .12);
    opacity: 1;
    text-decoration: none;
}

.faq-sidebar__link.is-active {
    background-color: rgba(31, 111, 120, .15);
    color: #1F6F78;
    opacity: 1;
    font-weight: 600;
}

.faq-sidebar__count {
    flex: 0 0 auto;
    min-width: 22px;
    text-align: center;
    padding: 1px 6px;
    border-radius: 999px;
    background-color: rgba(127, 127, 127, .18);
    font-size: 12px;
}

.faq-sidebar__link.is-active .faq-sidebar__count {
    background-color: #1F6F78;
    color: #fff;
}

/* ------------------------------------------------------------------
 * Jobb oldal - keresés + harmonika
 * ------------------------------------------------------------------ */
.faq-content {
    flex: 1 1 auto;
    min-width: 0;
}

.faq-content__toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.faq-search {
    flex: 1 1 280px;
    max-width: 420px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(127, 127, 127, .3);
    font-size: 14px;
    background: transparent;
    color: inherit;
}

.faq-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background-color: rgba(31, 111, 120, .15);
    color: #1F6F78;
    font-size: 13px;
    font-weight: 600;
}

.faq-active-tag__clear {
    color: inherit;
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
}

.faq-empty {
    opacity: .7;
    padding: 30px 0;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid rgba(127, 127, 127, .2);
    border-radius: 10px;
    overflow: hidden;
}

/* [JAVÍTÁS] Egységes "rejtve" osztály - ugyanaz kezeli a kategória szerinti
   ÉS a kereséses elrejtést is (lásd faq_public.js applyFilters()). */
.faq-item.is-hidden {
    display: none;
}

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: inherit;
}

.faq-item__question-text {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* [ÚJ] Kis, halvány kategória-címke minden kérdés mellett - főleg akkor
   hasznos, amikor "Összes kérdés" nézetben vagy kereséskor több kategória
   találatai keverednek egy listában. */
.faq-item__category {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 999px;
    background-color: rgba(127, 127, 127, .14);
    color: inherit;
    opacity: .7;
    white-space: nowrap;
}

.faq-item__question:hover {
    background-color: rgba(127, 127, 127, .06);
}

.faq-item__icon {
    flex: 0 0 auto;
    transition: transform .18s ease;
    opacity: .6;
}

.faq-item.is-open .faq-item__icon {
    transform: rotate(180deg);
}

.faq-item__answer {
    padding: 0 16px 16px;
}

.faq-item__answer-inner {
    line-height: 1.6;
    font-size: 14px;
}

.faq-item__answer-inner img {
    max-width: 100%;
    height: auto;
}

.faq-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.faq-tag {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background-color: rgba(127, 127, 127, .12);
    color: inherit;
    text-decoration: none;
}

.faq-tag:hover {
    background-color: rgba(31, 111, 120, .18);
    color: #1F6F78;
    text-decoration: none;
}

/* ------------------------------------------------------------------
 * Mobil: a menü fölé kerül, teljes szélességben (a 220px csak
 * asztali nézeten kötelező elvárás)
 * ------------------------------------------------------------------ */
@media (max-width: 768px) {
    .faq-layout {
        flex-direction: column;
    }
    .faq-sidebar {
        width: 100%;
        flex: 1 1 auto;
        position: static;
    }
    .faq-sidebar__nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* ------------------------------------------------------------------
 * Szerkesztőből érkező képek igazítása (CKEditor: bal / közép / jobb,
 * méret 25 / 50 / 75 / 100%)
 * ------------------------------------------------------------------ */
.faq-item__answer-inner figure.image {
    display: table;
    clear: both;
    text-align: center;
    margin: 1em auto;
    max-width: 100%;
}
.faq-item__answer-inner figure.image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}
.faq-item__answer-inner figure.image.image_resized {
    display: block;
    box-sizing: border-box;
}
.faq-item__answer-inner figure.image-style-align-center {
    margin-left: auto;
    margin-right: auto;
}
.faq-item__answer-inner figure.image-style-align-left {
    float: left;
    margin: .4em 1.2em .8em 0;
}
.faq-item__answer-inner figure.image-style-align-right {
    float: right;
    margin: .4em 0 .8em 1.2em;
}
.faq-item__answer-inner figure.image-style-side {
    float: right;
    max-width: 50%;
    margin: .4em 0 .8em 1.5em;
}
.faq-item__answer-inner figure.image figcaption {
    font-size: 12px;
    opacity: .75;
    padding: 4px 0;
}
.faq-item__answer-inner::after {
    content: "";
    display: block;
    clear: both;
}
@media (max-width: 600px) {
    .faq-item__answer-inner figure.image-style-align-left,
    .faq-item__answer-inner figure.image-style-align-right,
    .faq-item__answer-inner figure.image-style-side {
        float: none;
        margin: 1em auto;
    }
}
