/* FAQs page — works in LTR and RTL (logical properties + [dir=rtl] tweaks) */
.faqs-page {
    --faq-primary: #CDA243; /* site primary colour ($primary in scss) */
    --faq-text: #000;
    --faq-bg: #eff3f6;
    background: var(--faq-bg);
    color: var(--faq-text);
    padding: 0 0 70px;
}

/* The site header is fixed + transparent (white links): same banner image + dark overlay as the other pages (.page-header) */
.faqs-page::before {
    content: "";
    display: block;
    height: 100px;
    margin-bottom: 20px;
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url("../img/page-header.webp") center / cover no-repeat;
}

/* JS enabled: only the current page is displayed, answers start collapsed */
.faq-js .faqs-page .faq-item { display: none; }
.faq-js .faqs-page .faq-item.is-visible { display: block; }
.faq-js .faqs-page .faq-a { display: none; }

/* breadcrumb */
.faqs-page .faqs-bc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    font-size: 13px;
}
.faqs-page .faqs-bc li { display: flex; align-items: center; }
.faqs-page .faqs-bc a { color: var(--faq-text); text-decoration: none; display: inline-flex; align-items: center; }
.faqs-page .faqs-bc a svg { margin-inline-end: 4px; }
.faqs-page .faqs-bc li + li::before { content: ">"; margin: 0 8px; }
[dir="rtl"] .faqs-page .faqs-bc li + li::before { content: "<"; }
.faqs-page .faqs-bc li[aria-current] { font-weight: 700; }

/* hero */
.faqs-page .faqs-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 30px 0 50px;
}
.faqs-page .faqs-hero-text { flex: 1 1 55%; max-width: 640px; }
.faqs-page .faqs-hero h1 {
    margin: 0 0 12px;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--faq-text);
}
.faqs-page .faqs-hero p { margin: 0; font-size: 14px; line-height: 1.6; max-width: 620px; }
.faqs-page .faqs-hero-img { flex: 0 1 420px; }
.faqs-page .faqs-hero-img svg { width: 100%; height: auto; display: block; }

/* search */
.faqs-page .faqs-search {
    position: relative;
    margin-bottom: 18px;
}
.faqs-page .faqs-search svg {
    position: absolute;
    inset-inline-start: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.faqs-page .faqs-search input {
    width: 100%;
    height: 44px;
    border: 1px solid #dfe5ea;
    border-radius: 999px;
    background: #fff;
    padding: 0 20px;
    padding-inline-start: 46px;
    font-size: 14px;
    color: var(--faq-text);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.faqs-page .faqs-search input:focus {
    border-color: var(--faq-primary);
    box-shadow: 0 0 0 3px rgba(205, 162, 67, .12);
}
.faqs-page .faqs-search input::placeholder { color: #777; }

.faqs-page .faqs-count { font-size: 13px; color: #666; margin: 0 4px 12px; min-height: 20px; }

/* accordion */
.faqs-page .faq-item {
    border: 1px solid var(--faq-primary);
    border-radius: 8px;
    margin-bottom: 14px;
    background: transparent;
    transition: background .2s, box-shadow .2s;
}
.faqs-page .faq-item.is-open { background: #fff; box-shadow: 0 4px 14px rgba(205, 162, 67, .08); }
.faqs-page .faq-q { margin: 0; font-size: inherit; line-height: inherit; }
.faqs-page .faq-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 14px;
    background: none;
    border: 0;
    color: var(--faq-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-align: start;
    cursor: pointer;
}
.faqs-page .faq-toggle:focus-visible { outline: 2px solid var(--faq-primary); outline-offset: 2px; border-radius: 8px; }
.faqs-page .faq-icon { position: relative; flex: 0 0 14px; width: 14px; height: 14px; }
.faqs-page .faq-icon::before,
.faqs-page .faq-icon::after {
    content: "";
    position: absolute;
    background: var(--faq-primary);
    border-radius: 1px;
    transition: transform .25s;
}
.faqs-page .faq-icon::before { top: 6px; left: 0; width: 14px; height: 2px; }
.faqs-page .faq-icon::after { top: 0; left: 6px; width: 2px; height: 14px; }
.faqs-page .faq-item.is-open .faq-icon::after { transform: scaleY(0); }
.faqs-page .faq-a { padding: 0 14px 16px; font-size: 14px; line-height: 1.8; color: #333; }
.faqs-page .faq-a p { margin: 0; }

.faqs-page .faqs-empty {
    text-align: center;
    padding: 40px 0;
    font-size: 15px;
    color: #666;
}

/* pagination */
.faqs-page .faq-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 34px;
}
.faqs-page .faq-page {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border: 0;
    border-radius: 4px;
    background: #c9c9c9;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 28px;
    cursor: pointer;
    transition: background .2s, box-shadow .2s;
}
.faqs-page .faq-page:hover { background: #a8b3bb; }
.faqs-page .faq-page.is-active {
    background: var(--faq-primary);
    box-shadow: 0 0 10px rgba(205, 162, 67, .55);
    cursor: default;
}
.faqs-page .faq-page:focus-visible { outline: 2px solid var(--faq-primary); outline-offset: 2px; }
.faqs-page .faq-page[disabled] { opacity: .45; cursor: default; }
/* NB: no manual flip for RTL - browsers already mirror the ‹ › glyphs inside right-to-left text */
.faqs-page .faq-dots { min-width: 20px; height: 28px; line-height: 28px; text-align: center; color: #777; font-weight: 700; }

@media (max-width: 767.98px) {
    .faqs-page .faqs-hero { flex-direction: column-reverse; align-items: flex-start; padding: 10px 0 30px; }
    .faqs-page .faqs-hero h1 { font-size: 26px; }
    .faqs-page .faqs-hero-img { flex-basis: auto; width: 70%; align-self: center; }
}
