/* AfricGuide FAQ — editorial layout */
html {
    scroll-behavior: smooth;
}

.faq-page {
    background: #fffdf9;
}

.faq-main {
    color: #10233d;
}

.faq-shell {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
    box-sizing: border-box;
}

.faq-hero {
    padding: 78px 0 70px;
    background:
        radial-gradient(circle at 86% 12%, rgba(245,101,12,.08), transparent 24%),
        linear-gradient(180deg, #fffaf2 0%, #fffdf9 100%);
    border-bottom: 1px solid #eee6db;
}

.faq-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 28px;
    color: #788495;
    font: 500 12px/1.4 "Inter", sans-serif;
}

.faq-breadcrumb a {
    color: #345d82;
    text-decoration: none;
}

.faq-breadcrumb a:hover {
    color: #f5650c;
}

.faq-hero-copy {
    max-width: 760px;
}

.faq-kicker {
    margin: 0 0 10px;
    color: #f5650c;
    text-transform: uppercase;
    letter-spacing: .20em;
    font: 700 11px/1.3 "Inter", sans-serif;
}

.faq-hero h1 {
    margin: 0;
    color: #10233d;
    font-family: "Playfair Display", "Playfair", Georgia, serif;
    font-size: clamp(46px, 5vw, 72px);
    line-height: .98;
    letter-spacing: -.025em;
}

.faq-hero-copy > p:last-child {
    max-width: 670px;
    margin: 20px 0 0;
    color: #56677c;
    font: 400 18px/1.7 "Inter", sans-serif;
}

.faq-content {
    padding: 70px 0 100px;
    background: #fff;
}

.faq-layout {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}

.faq-sidebar {
    position: sticky;
    top: 105px;
    padding-top: 6px;
}

.faq-sidebar-title {
    margin: 0 0 17px;
    color: #9a765c;
    text-transform: uppercase;
    letter-spacing: .18em;
    font: 700 9px/1.4 "Inter", sans-serif;
}

.faq-side-nav {
    border-left: 1px solid #e7ddd2;
}

.faq-side-nav a {
    position: relative;
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 9px;
    align-items: baseline;
    padding: 11px 0 11px 18px;
    color: #566477;
    text-decoration: none;
    font: 500 13px/1.4 "Inter", sans-serif;
    transition: color .2s ease;
}

.faq-side-nav a::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 10px;
    width: 3px;
    height: calc(100% - 20px);
    background: transparent;
}

.faq-side-nav a span {
    color: #b2a497;
    font-size: 10px;
    font-weight: 700;
}

.faq-side-nav a:hover,
.faq-side-nav a.active {
    color: #10233d;
}

.faq-side-nav a.active::before {
    background: #f5650c;
}

.faq-side-nav a.active span {
    color: #f5650c;
}

.faq-section {
    scroll-margin-top: 110px;
    padding-bottom: 58px;
}

.faq-section + .faq-section {
    padding-top: 4px;
}

.faq-section-heading {
    display: grid;
    grid-template-columns: 45px auto 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.faq-section-heading::after {
    content: "";
    height: 1px;
    margin-left: 8px;
    background: linear-gradient(90deg, rgba(245,101,12,.55), #eadfd4);
}

.faq-section-number {
    color: #f5650c;
    font-family: "Playfair Display", "Playfair", Georgia, serif;
    font-size: 18px;
    font-weight: 600;
}

.faq-section h2 {
    margin: 0;
    color: #10233d;
    font-family: "Playfair Display", "Playfair", Georgia, serif;
    font-size: clamp(31px, 3vw, 43px);
    line-height: 1.05;
}

.faq-item {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0 18px;
}

.faq-item + .faq-item {
    border-top: 1px solid #f0e9e1;
}

.faq-item-number {
    padding-top: 4px;
    color: #f5650c;
    font: 700 10px/1.4 "Inter", sans-serif;
}

.faq-item h3 {
    margin: 0 0 7px;
    color: #162a45;
    font-family: "Playfair Display", "Playfair", Georgia, serif;
    font-size: 20px;
    line-height: 1.32;
}

.faq-item p {
    max-width: 860px;
    margin: 0;
    color: #59697c;
    font: 400 14px/1.7 "Inter", sans-serif;
}

.faq-item a {
    color: #f5650c;
    text-decoration: none;
}

.faq-item a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .faq-shell {
        width: min(100% - 40px, 1300px);
    }

    .faq-layout {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .faq-sidebar {
        position: relative;
        top: auto;
        overflow-x: auto;
        padding: 0 0 8px;
        scrollbar-width: thin;
    }

    .faq-sidebar-title {
        display: none;
    }

    .faq-side-nav {
        display: flex;
        min-width: max-content;
        gap: 6px;
        border-left: 0;
        border-bottom: 1px solid #eadfd4;
    }

    .faq-side-nav a {
        display: block;
        padding: 10px 12px 12px;
        white-space: nowrap;
    }

    .faq-side-nav a span {
        margin-right: 5px;
    }

    .faq-side-nav a::before {
        left: 10px;
        right: 10px;
        top: auto;
        bottom: -1px;
        width: auto;
        height: 2px;
    }

    .faq-content {
        padding-top: 45px;
    }
}

@media (max-width: 620px) {
    .faq-shell {
        padding-left: 20px;
        padding-right: 20px;
    }

    .faq-hero {
        padding: 54px 0 48px;
    }

    .faq-hero h1 {
        font-size: 43px;
    }

    .faq-hero-copy > p:last-child {
        font-size: 16px;
    }

    .faq-section-heading {
        grid-template-columns: 38px auto;
        gap: 8px;
    }

    .faq-section-heading::after {
        grid-column: 1 / -1;
        margin: 2px 0 0;
    }

    .faq-section h2 {
        font-size: 31px;
    }

    .faq-item {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 8px;
    }

    .faq-item h3 {
        font-size: 18px;
    }

    .faq-item p {
        font-size: 13.5px;
    }
}
