/* 자주 묻는 질문 (AEO 3단계) — /faq, /faq/{slug}, 제품 페이지 하단 FAQ */

.faq-wrap {
    padding: 50px 15px 100px 15px;
    font-family: 'Noto Sans KR', sans-serif;
    color: #171717;
}

.faq-lead {
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    text-align: center;
}

.faq-lead a {
    color: #036868;
    text-decoration: underline;
}

/* 분류 바로가기 */
.faq-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 50px;
}

.faq-tabs a {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid #C0C0C0;
    font-size: 15px;
    color: #171717;
}

.faq-tabs a:hover,
.faq-tabs a:focus {
    background-color: #036868;
    border-color: #036868;
    color: #FFF;
}

/* 분류 묶음 */
.faq-group {
    margin-bottom: 60px;
    scroll-margin-top: 120px;
}

.faq-group-title {
    padding-bottom: 14px;
    border-bottom: 2px solid #171717;
    font-size: 22px;
    font-weight: 500;
}

/* 질문 하나 */
.faq-item {
    border-bottom: 1px solid #DDD;
    scroll-margin-top: 120px;
}

.faq-item > summary {
    position: relative;
    display: block;
    padding: 22px 50px 22px 34px;
    cursor: pointer;
    list-style: none;
}

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

.faq-item > summary:before {
    content: 'Q';
    position: absolute;
    left: 0;
    top: 21px;
    font-size: 18px;
    font-weight: 700;
    color: #036868;
}

.faq-item > summary:after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-top: -7px;
    border-right: 2px solid #777;
    border-bottom: 2px solid #777;
    transform: rotate(45deg);
    transition: transform .2s;
}

.faq-item[open] > summary:after {
    margin-top: -2px;
    transform: rotate(-135deg);
}

.faq-item > summary:focus-visible {
    outline: 2px solid #036868;
    outline-offset: 2px;
}

.faq-q {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
}

.faq-a {
    position: relative;
    padding: 0 20px 24px 34px;
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

.faq-a:before {
    content: 'A';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    color: #999;
}

.faq-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: 500;
    color: #036868;
    text-decoration: underline;
}

.faq-empty {
    padding: 60px 0;
    text-align: center;
    color: #777;
}

/* 개별 페이지 */
.faq-article {
    max-width: 820px;
    margin: 0 auto;
}

.faq-article-title {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.4;
}

.faq-article-date {
    margin: 12px 0 30px 0;
    font-size: 13px;
    color: #888;
}

.faq-summary {
    padding: 24px 28px;
    margin-bottom: 40px;
    background-color: #F2F7F7;
    border-left: 4px solid #036868;
    font-size: 17px;
    line-height: 1.8;
}

.faq-body {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
}

.faq-body h2,
.faq-body h3 {
    margin: 36px 0 14px 0;
    font-weight: 500;
    color: #171717;
}

.faq-body h2 { font-size: 22px; }
.faq-body h3 { font-size: 18px; }
.faq-body p { margin-bottom: 14px; }
.faq-body ul, .faq-body ol { margin: 0 0 14px 20px; }
.faq-body ul li { list-style: disc; }
.faq-body ol li { list-style: decimal; }

.faq-body table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.faq-body th,
.faq-body td {
    padding: 10px 12px;
    border: 1px solid #DDD;
    text-align: left;
}

.faq-body th { background-color: #F5F5F5; }
.faq-body img { max-width: 100%; height: auto; }

.faq-products {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #DDD;
}

.faq-products h2 {
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 500;
}

.faq-products li {
    display: inline-block;
    margin: 0 8px 8px 0;
}

.faq-products a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #036868;
    color: #036868;
}

.faq-back {
    margin-top: 50px;
    text-align: center;
}

.faq-back a {
    display: inline-block;
    padding: 14px 40px;
    background-color: #036868;
    color: #FFF;
}

/* 제품 페이지 하단 FAQ */
.product-faq {
    margin-top: 60px;
    padding: 0 0 40px 0;
}

.faq-more-all {
    margin-top: 16px;
}

.product-faq .faq-group-title {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .faq-wrap { padding: 30px 15px 60px 15px; }
    .faq-lead { font-size: 14px; text-align: left; }
    .faq-tabs { justify-content: flex-start; margin-bottom: 30px; }
    .faq-tabs a { padding: 8px 12px; font-size: 13px; }
    .faq-group-title { font-size: 19px; }
    .faq-q { font-size: 15px; }
    .faq-a { font-size: 14px; padding-right: 0; }
    .faq-article-title { font-size: 24px; }
    .faq-summary { padding: 18px; font-size: 15px; }
    .faq-body { font-size: 15px; }
}
