/* 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: 2px solid #225D73;
    border-radius: 999px;
    padding: 0.625rem 1.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.2;
    color: #225D73;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

.gf__pill:hover,
.gf__pill:focus {
    background: #225D73;
    color: #fff;
}

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

/* Decorative separator with star */
.gf__sep {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 18px 0 24px;
    height: 36px;
}

/* Gold line behind the star */
.gf__sep::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #F9C466;
}

.gf__star {
    position: relative;
    z-index: 1;
    background: transparent;
    padding: 0;
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}

/* Section heading */
.gf__h {
    font-family: "Heebo", sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.25;
    text-align: center;
    color: #4B2D45;
    margin: 0 0 3rem;
}

/* ── 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: 0.75rem;
    padding: 0.875rem 0.375rem;
    background: transparent;
    border: 0;
    text-align: right;
    cursor: pointer;
    font-family: inherit;
    overflow: hidden;
    white-space: normal;
    color: inherit;
    font-size: inherit;
    font-weight: 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 — emphasized but aligned with body scale */
.gf__qt {
    font-family: "Heebo", sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.5;
    text-align: right;
    color: #4B2D45;
    transition: color .15s ease;
    display: block;
    min-width: 0;
    flex: 1 1 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Answer panel — body-text scale (1.2rem), animated slide + fade */
.gf__a {
    padding: 0 0.375rem 0 2.375rem;
    font-family: "Heebo", sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: right;
    color: #2E404A;
    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;
    opacity: 1;
    padding-bottom: 1.125rem;
}

.gf__a p {
    margin: 0 0 0.625rem;
}

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

.gf__a ul,
.gf__a ol {
    margin: 0 0 0.625rem;
    padding-inline-start: 0;
}

.gf__a li {
    margin-bottom: 0.25rem;
}

.gf__a a {
    color: #225D73;
    text-decoration: underline;
}

.gf__a strong {
    font-weight: 700;
}

.gf__a h4, .gf__a h5, .gf__a h6 {
    font-weight: 700;
    color: #4B2D45;
    margin: 16px 0 8px;
}

/* ── CTA Button ── */
.gf__cta {
    margin-top: 1rem;
}

.gf__cta-btn {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    border-radius: 999px;
    background-color: #F9C466;
    font-family: "Heebo", sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.2;
    text-align: right;
    color: #4B2D45;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.gf__cta-btn:hover {
    opacity: 0.85;
    color: #4B2D45;
}

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

    .gf__pills {
        flex-direction: column;
        padding: 0;
        gap: 8px;
    }

    .gf__pill {
        padding: 0.625rem 1rem;
        font-size: 1rem;
        white-space: normal;
        text-align: center;
        width: 100%;
    }

    .gf__h {
        font-size: 1.75rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .gf__qt {
        font-size: 1.125rem;
        line-height: 1.5;
    }

    .gf__a {
        font-size: 1.125rem;
        line-height: 1.6;
        padding: 0 0.375rem 0 1.75rem;
    }

    .gf__icon {
        width: 16px;
        height: 16px;
    }

    .gf__icon img.gf__icon-plus,
    .gf__icon img.gf__icon-minus {
        width: 16px;
        height: 16px;
    }

    .gf__cta-btn {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}
