body {
    background: #F4F7F7;
}

/* ── Page layout ─────────────────────────────────── */
.wrapper {
    /* Bootstrap .row has negative side margins; without a container they add a sideways scrollbar */
    margin: 0;
    padding: 1.5rem 1rem 1rem;
}

.faq-sidebar-col {
    margin-bottom: 1rem;
}

/* ── Topics sidebar ──────────────────────────────── */
#sidebar {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin: 0;
    padding: 1rem;
    position: sticky;
    top: 5rem;
}

#my-classes-header {
    color: #6B6B6B;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    margin: .25rem .25rem .5rem;
    text-transform: uppercase;
}

.topic {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #FFFFFF;
    border: 1px solid #E3E8E8;
    border-left: 4px solid transparent;
    border-radius: 8px;
    color: #282828;
    cursor: pointer;
    font-size: .92rem;
    font-weight: 600;
    margin: 0;
    padding: .65rem .75rem;
    transition: background .12s, border-color .12s;
}

.topic:hover {
    background: #FAFCFC;
    border-color: #CFDCDD;
}

.topic .bi-chevron-right {
    color: #6B6B6B;
    font-size: .75rem;
    transition: transform .15s;
}

/* Selected topic */
.bold-active {
    background: #EEF6F6;
    border-color: #CFDCDD;
    border-left-color: #08727C;
    color: #08727C;
}

.bold-active > .bi-chevron-right {
    color: #08727C;
    transform: rotate(90deg);
}

/* Questions under the selected topic */
.list-unstyled {
    margin: .15rem 0 .5rem .75rem;
}

.setup-item {
    background: transparent;
    border-radius: 6px;
    margin: 0;
}

.view-setup-item {
    border-radius: 6px;
    color: #4E4E4E;
    cursor: pointer;
    font-size: .86rem;
    line-height: 1.35;
    margin: 0;
    padding: .45rem .6rem;
}

.view-setup-item:hover {
    background: #EEF6F6;
    color: #08727C;
}

/* The question last opened from the sidebar */
.bold .view-setup-item {
    color: #08727C;
    font-weight: 700;
}

.hide {
    display: none !important;
}

/* ── Header ──────────────────────────────────────── */
.faq-header {
    margin-bottom: 1rem;
}

/* ── Questions (Bootstrap accordion) ─────────────── */
.faq-list .accordion {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.card {
    background: #FFFFFF;
    border: 1px solid #E3E8E8 !important;
    border-radius: 12px !important;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}

.card:hover {
    border-color: #CFDCDD !important;
}

.card:has(.collapse.show) {
    border-color: #08727C !important;
    box-shadow: 0 0 0 3px rgba(8, 114, 124, .1);
}

.card-header {
    background: transparent;
    border-bottom: none;
    padding: 0;
}

.card-header h2 {
    margin: 0;
}

.btn-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #1F2933;
    font-size: 1rem;
    font-weight: 700;
    padding: 1rem 1.25rem;
    text-align: left;
    text-decoration: none;
    white-space: normal;
    width: 100%;
}

.btn-link:hover,
.btn-link:focus {
    color: #08727C;
    text-decoration: none;
}

.btn-link:focus {
    box-shadow: none;
    outline: none;
}

.btn-link .bi-chevron-down {
    color: #6B6B6B;
    flex: none;
    font-size: .9rem;
    transition: transform .2s;
}

.btn-link:not(.collapsed) .bi-chevron-down {
    color: #08727C;
    transform: rotate(180deg);
}

.card-body {
    border-top: 1px solid #F0F3F3;
    color: #3D4B55;
    font-size: .95rem;
    line-height: 1.6;
    padding: 1rem 1.25rem 1.25rem;
}

.explain-pic {
    border: 1px solid #E3E8E8;
    border-radius: 10px;
    display: block;
    margin: 1rem 0 0;
    max-width: 100%;
    width: 100%;
}

.answer {
    margin: 1rem 0;
}

/* ── Footer ──────────────────────────────────────── */
.footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .5rem 1.25rem;
    background: #F4F7F7;
    color: #6B6B6B;
    font-size: .85rem;
    padding: 1.5rem 1rem 2rem;
    text-align: center;
}

.footer a {
    color: #3D7A80;
    text-decoration: none;
}

.footer a:hover {
    color: #08727C;
    text-decoration: underline;
}

/* ── Signed-out navbar ───────────────────────────── */
#faq {
    margin: 0;
}

.bottom {
    margin-bottom: 3rem;
}

/* ── Phones and tablets ──────────────────────────── */
@media (max-width: 991.98px) {
    .wrapper {
        padding: 1rem .25rem;
    }

    #sidebar {
        position: static;
    }

    .btn-link {
        font-size: .95rem;
        padding: .9rem 1rem;
    }

    .card-body {
        padding: .9rem 1rem 1rem;
    }
}
