
/* ============================================================
   FAQ 페이지 전용 스타일
   ------------------------------------------------------------
   공통 CSS와 충돌하지 않도록 faq-* 접두사를 사용합니다.
   목적:
   - 고령층이 읽기 쉬운 큰 글자와 넓은 클릭 영역
   - 질문을 빠르게 검색하고 분야별로 필터링
   - 광고가 삽입되어도 FAQ 본문 폭과 간격이 무너지지 않도록
     콘텐츠 영역을 독립적으로 구성
   ============================================================ */

.faq-page {
    background: #f6f8f7;
    color: #17201d;
}

.faq-hero {
    padding: 72px 0 58px;
    background:
        radial-gradient(circle at 82% 20%, rgba(15,118,110,.13), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f4f8f6 100%);
    border-bottom: 1px solid #e4e9e6;
}

.faq-eyebrow {
    color: #0f766e;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .1em;
}

.faq-hero h1 {
    margin: 14px 0 16px;
    max-width: 820px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.14;
    letter-spacing: -.065em;
}

.faq-hero h1 strong {
    color: #2457a6;
}

.faq-hero > .container > p {
    max-width: 760px;
    margin: 0;
    color: #5f6d67;
    font-size: 18px;
    line-height: 1.75;
}

.faq-search {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 780px;
    margin-top: 30px;
    border: 2px solid #d8e3df;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(19,38,32,.08);
}

.faq-search:focus-within {
    border-color: #0f766e;
}

.faq-search-icon {
    flex: 0 0 auto;
    margin-left: 18px;
    color: #0f766e;
    font-size: 27px;
    line-height: 1;
}

.faq-search input {
    width: 100%;
    min-height: 62px;
    padding: 0 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #17201d;
    font-size: 18px;
}

.faq-search button {
    width: 46px;
    height: 46px;
    margin-right: 8px;
    border: 0;
    border-radius: 12px;
    background: #eef4f1;
    color: #66736d;
    font-size: 24px;
    cursor: pointer;
}

.faq-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    margin-top: 15px;
    color: #718079;
    font-size: 14px;
}

.faq-summary strong {
    color: #0f766e;
    font-size: 17px;
}

.faq-main {
    padding: 62px 0 80px;
}

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

.faq-sidebar {
    position: sticky;
    top: 20px;
    padding: 18px;
    border: 1px solid #e0e7e3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(19,38,32,.05);
}

.faq-sidebar-title {
    margin: 4px 4px 12px;
    font-size: 16px;
    font-weight: 850;
}

.faq-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 46px;
    padding: 9px 11px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #52615a;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.faq-filter b {
    min-width: 24px;
    color: #87928d;
    font-size: 12px;
    text-align: right;
}

.faq-filter:hover {
    background: #f2f7f5;
}

.faq-filter.is-active {
    background: #e7f5f2;
    color: #0b5f59;
    font-weight: 800;
}

.faq-filter.is-active b {
    color: #0f766e;
}

.faq-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.faq-section-kicker {
    margin-bottom: 4px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .1em;
}

.faq-toolbar h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 38px);
    letter-spacing: -.05em;
}

.faq-toolbar-actions {
    display: flex;
    gap: 7px;
}

.faq-toolbar-actions button {
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid #dce5e1;
    border-radius: 9px;
    background: #fff;
    color: #506059;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.faq-toolbar-actions button:hover {
    border-color: #a9cfc7;
    color: #0b5f59;
}

.faq-group {
    margin-bottom: 38px;
}

.faq-group[hidden] {
    display: none;
}

.faq-group-head {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 12px;
}

.faq-group-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    border-radius: 14px;
    background: #e7f5f2;
    font-size: 22px;
}

.faq-group-label {
    color: #0f766e;
    font-size: 13px;
    font-weight: 850;
}

.faq-group-head p {
    margin: 2px 0 0;
    color: #6c7872;
    font-size: 14px;
}

.faq-list {
    display: grid;
    gap: 9px;
}

.faq-item {
    overflow: hidden;
    border: 1px solid #dfe7e3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(19,38,32,.035);
}

.faq-item[open] {
    border-color: #b8d8d1;
}

.faq-item summary {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 11px;
    min-height: 67px;
    padding: 13px 17px;
    list-style: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.45;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-q {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #edf6f4;
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
}

.faq-chevron {
    color: #8c9993;
    font-size: 20px;
    text-align: center;
    transition: transform .18s ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    color: #0f766e;
}

.faq-answer {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 11px;
    padding: 0 17px 20px;
    color: #5d6a64;
    font-size: 16px;
    line-height: 1.78;
}

.faq-answer-label {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #f1f3f2;
    color: #68746f;
    font-size: 12px;
    font-weight: 900;
}

.faq-answer p {
    margin: 0;
}

.faq-no-result {
    margin-bottom: 28px;
    padding: 28px;
    border: 1px dashed #cbd8d3;
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.faq-no-result strong {
    font-size: 18px;
}

.faq-no-result p {
    margin: 7px 0 0;
    color: #6b7872;
}

.faq-notice {
    margin-top: 38px;
    padding: 21px 23px;
    border-left: 4px solid #0f766e;
    border-radius: 0 12px 12px 0;
    background: #edf7f5;
}

.faq-notice strong {
    color: #0b5f59;
}

.faq-notice p {
    margin: 7px 0 0;
    color: #5f6c66;
    font-size: 14px;
    line-height: 1.7;
}

.faq-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 26px;
    padding: 30px;
    border-radius: 20px;
    background: #17201d;
    color: #fff;
}

.faq-next-label {
    color: #8fe0d4;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .1em;
}

.faq-next h3 {
    margin: 7px 0 8px;
    font-size: 24px;
    letter-spacing: -.04em;
}

.faq-next p {
    margin: 0;
    color: #c8d2ce;
    font-size: 14px;
    line-height: 1.7;
}

.faq-next-links {
    display: grid;
    gap: 8px;
    align-content: center;
}

.faq-next-links a {
    display: block;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    color: #fff;
    font-size: 14px;
    font-weight: 750;
}

.faq-next-links a:hover {
    background: rgba(255,255,255,.11);
}

.faq-sources {
    margin-top: 34px;
    padding-top: 25px;
    border-top: 1px solid #dfe6e2;
}

.faq-sources h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.faq-sources p {
    margin: 0;
    color: #6b7872;
    font-size: 14px;
}

.faq-source-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.faq-source-links a {
    padding: 9px 12px;
    border: 1px solid #dce5e1;
    border-radius: 9px;
    background: #fff;
    color: #315b54;
    font-size: 13px;
    font-weight: 750;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 900px) {
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .faq-sidebar {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 12px;
    }

    .faq-sidebar-title {
        width: 100%;
        margin-bottom: 4px;
    }

    .faq-filter {
        width: auto;
        min-height: 40px;
    }

    .faq-filter b {
        margin-left: 8px;
    }
}

@media (max-width: 680px) {
    .faq-hero {
        padding: 46px 0 40px;
    }

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

    .faq-hero > .container > p {
        font-size: 16px;
    }

    .faq-search input {
        min-height: 56px;
        font-size: 16px;
    }

    .faq-main {
        padding: 42px 0 60px;
    }

    .faq-toolbar {
        display: block;
    }

    .faq-toolbar-actions {
        margin-top: 13px;
    }

    .faq-item summary {
        grid-template-columns: 28px minmax(0, 1fr) 22px;
        padding: 12px 13px;
        font-size: 15px;
    }

    .faq-answer {
        padding: 0 13px 18px;
        font-size: 15px;
    }

    .faq-next {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .faq-next h3 {
        font-size: 21px;
    }
}
