/* Guild FAQ — RTL accordion with category pills. */

/* Container */
.gf {
    max-width: 980px;
    margin: 0 auto;
    padding: 10px 14px 30px;
}

/* ── Category pills nav ── */
.gf__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 0 0 26px;
}

.gf__pill {
    border: 1px solid rgba(10, 70, 80, .55);
    border-radius: 999px;
    padding: 8px 18px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    color: #0a4650;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

.gf__pill:hover,
.gf__pill:focus {
    background: #0a4650;
    color: #fff;
}

/* ── Section ── */
.gf__section {
    margin: 24px 0 34px;
}

/* Decorative separator with star */
.gf__sep {
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 2px solid rgba(120, 60, 120, .35);
    position: relative;
    margin: 18px 0 16px;
}

.gf__star {
    position: relative;
    top: -12px;
    background: #fff;
    padding: 0 8px;
    color: #d4a843;
    font-size: 18px;
    font-weight: 900;
}

/* Section heading */
.gf__h {
    text-align: center;
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 900;
    color: #3a2a44;
}

/* ── Accordion items ── */
.gf__list {
    /* container for items */
}

.gf__item {
    border-top: 1px solid rgba(120, 60, 120, .35);
}

.gf__item:last-child {
    border-bottom: 1px solid rgba(120, 60, 120, .35);
}

/* Question button — text on the right, icon on the left (RTL) */
.gf__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 6px;
    background: transparent;
    border: 0;
    text-align: right;
    cursor: pointer;
    font-family: inherit;
}

.gf__q:hover .gf__qt {
    color: #0a4650;
}

.gf__q:focus-visible {
    outline: 2px solid #0a4650;
    outline-offset: -2px;
    border-radius: 4px;
}

/* Plus / minus SVG icon — stacked on top of each other */
.gf__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    position: relative;
}

.gf__icon img.gf__icon-plus,
.gf__icon img.gf__icon-minus {
    position: absolute;
    inset: 0;
    width: 20px;
    height: 20px;
    transition: opacity .3s ease, transform .3s ease;
}

/* Default: plus visible, minus hidden */
.gf__icon img.gf__icon-plus {
    opacity: 1;
    transform: rotate(0deg);
}

.gf__icon img.gf__icon-minus {
    opacity: 0;
    transform: rotate(-90deg);
}

/* Open: plus spins out, minus spins in */
.gf__item.is-open .gf__icon img.gf__icon-plus {
    opacity: 0;
    transform: rotate(90deg);
}

.gf__item.is-open .gf__icon img.gf__icon-minus {
    opacity: 1;
    transform: rotate(0deg);
}

/* Question text */
.gf__qt {
    font-weight: 800;
    font-size: 15px;
    color: #3a2a44;
    line-height: 1.6;
    transition: color .15s ease;
}

/* Answer panel — animated slide + fade */
.gf__a {
    padding: 0 6px 0 38px;
    line-height: 1.7;
    color: #444;
    font-size: 14px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .35s ease, opacity .25s ease, padding-bottom .35s ease;
}

.gf__item.is-open .gf__a {
    max-height: 800px; /* generous upper bound; transition handles the visual */
    opacity: 1;
    padding-bottom: 18px;
}

.gf__a p {
    margin: 0 0 10px;
}

.gf__a p:last-child {
    margin-bottom: 0;
}

/* ── Mobile ── */
@media (max-width: 767px) {
    .gf {
        max-width: 420px;
        padding: 10px 10px 24px;
    }

    .gf__pills {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 0 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .gf__pills::-webkit-scrollbar {
        display: none;
    }

    .gf__h {
        font-size: 20px;
    }

    .gf__qt {
        font-size: 14px;
    }
}
