/*
 * 蹂댄뿕 Q&A styles - synced from the QUBEBOX (astra-child) build 2026-08-30.
 * QUBE BOX purple recoloured to the Bohumnachimban navy & gold palette.
 * Do not hand-edit; re-run scratchpad/build-qna-css.ps1 to resync.
 */
/* 큐브박스 댓글 폼 - 이미지 참고 스타일 */

.qbx-comment-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    max-width: 1100px;
    margin: 32px auto;
}

.qbx-comment-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px;
}

.qbx-comment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #eef1f6;
    border-radius: 6px;
    font-size: 13px;
}

/* 댓글 노출 안내 문구 */
.qbx-comment-notice {
    font-size: 12px;
    color: #94a3b8;
    margin: 0 0 8px;
}

/* 기본 필드(이름/이메일/웹사이트) 입력창 스타일 */
.qbx-comment-form input[type="text"],
.qbx-comment-form input[type="email"],
.qbx-comment-form input[type="url"],
.qbx-comment-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    margin-bottom: 12px;
}

.qbx-comment-form textarea {
    resize: vertical;
    min-height: 160px;
}

.qbx-comment-form input::placeholder,
.qbx-comment-form textarea::placeholder {
    color: #94a3b8;
}

/* 취소 / 댓글 등록 */
.qbx-comment-form .qbx-submit-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin: 0;
}

.qbx-comment-form .qbx-cancel-btn {
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
}

.qbx-comment-form .qbx-submit-btn,
#comments .qbx-comment-form .qbx-submit-btn.submit {
    background: #16264a !important;
    background-color: #16264a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 11px 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background .15s !important;
}

.qbx-comment-form .qbx-submit-btn:hover,
#comments .qbx-comment-form .qbx-submit-btn.submit:hover {
    background: #0e1a33 !important;
    background-color: #0e1a33 !important;
}
/* ============================================================
 * 큐브박스 댓글 목록 (상담사 답변 카드)
 * ============================================================ */

.qna-comment-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}

.qna-comment-item {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.qna-comment-item:last-child {
    margin-bottom: 28px;
}

.qna-comment-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
}

.qna-comment-card--admin {
    background: #fbfcfd;
    border-color: #c9d2e0;
}

.qna-comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.qna-comment-header img {
    border-radius: 50%;
    flex-shrink: 0;
}

.qna-comment-author-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}

.qna-comment-author {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.qna-comment-official-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #1e2a5e;
    padding: 2px 8px;
    border-radius: 999px;
}

.qna-comment-pending-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #0e1a33;
    background: #e6ebf3;
    padding: 2px 8px;
    border-radius: 999px;
}

.qna-comment-sub {
    width: 100%;
    font-size: 12px;
    color: #94a3b8;
}

.qna-comment-body {
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 16px;
}

.qna-contact-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
}

.qna-contact-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.qna-contact-row {
    font-size: 13px;
    color: #475569;
    margin-bottom: 6px;
}

.qna-contact-row span {
    font-weight: 600;
    color: #1e293b;
    margin-left: 4px;
}

.qna-contact-btn {
    display: inline-block;
    margin-top: 10px;
    background: #1e2a5e;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    padding: 9px 18px;
    border-radius: 999px;
}

.qna-contact-btn:hover {
    background: #16204a;
}

.qna-comments-closed {
    font-size: 14px;
    color: #94a3b8;
    text-align: center;
    padding: 20px 0;
}

/* 댓글 페이지네이션 */
.comments-pagination,
.comment-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.comments-pagination a,
.comments-pagination span {
    font-size: 13px;
    color: #475569;
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
}

.comments-pagination .current {
    background: #1e2a5e;
    color: #fff;
    border-color: #1e2a5e;
}

/* ============================================================
 * 댓글 폼 - 클릭 전에는 댓글 입력창만, 클릭하면 나머지 필드 펼침
 * ============================================================ */

/* 기본 상태: 이름/이메일/웹사이트/버튼 숨김 */
.qbx-comment-form .comment-form-author,
.qbx-comment-form .comment-form-email,
.qbx-comment-form .comment-form-url,
.qbx-comment-form .comment-form-cookies-consent,
.qbx-comment-form .qbx-submit-row {
    display: none;
}

/* 펼쳐진 상태 */
.qbx-comment-form.is-expanded .comment-form-author,
.qbx-comment-form.is-expanded .comment-form-email,
.qbx-comment-form.is-expanded .comment-form-url,
.qbx-comment-form.is-expanded .comment-form-cookies-consent,
.qbx-comment-form.is-expanded .qbx-submit-row {
    display: block;
    margin-top: 12px;
}

.qbx-comment-form.is-expanded .qbx-submit-row {
    display: flex;
}

/* 접혀있을 때 textarea 높이를 한 줄 정도로 작게 */
.qbx-comment-form:not(.is-expanded) textarea {
    min-height: 0;
    height: 44px;
    resize: none;
}

/* 펼쳐지면 다시 여러 줄 입력 가능하게 */
.qbx-comment-form.is-expanded textarea {
    height: auto;
    min-height: 160px;
    resize: vertical;
}
.qna-detail-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    overflow-x: hidden; /* 본문 안의 넓은 표/이미지가 페이지 전체를 밀지 않도록 */
}

/* Astra의 ast-narrow-container가 단일 글 페이지에서 .ast-container를 750px로 좁혀서
   .qna-detail-wrap(1100px)이 그 안에 눌리는 문제 보정 (single-post 페이지에만 한정) */
body.single-post .ast-container {
    max-width: 1140px !important;
}

.qna-detail-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
}

/* 헤더 뱃지 */
.qna-detail-header {
    margin-bottom: 20px;
}

.qna-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    margin-right: 6px;
    margin-bottom: 10px;
}

.qna-badge--board {
    background: #1e2a5e;
    color: #fff;
}

.qna-badge--cat {
    background: #eef1f6;
    color: #1e2a5e;
}

.qna-badge--sm {
    background: #eef1f6;
    color: #1e2a5e;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    margin-right: 8px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    box-sizing: border-box;
    text-align: center;
}
.qna-badge--link {
    text-decoration: none;
    cursor: pointer;
    transition: opacity .15s, filter .15s;
}
.qna-badge--link:hover {
    opacity: 0.85;
    filter: brightness(0.95);
}
.qna-detail-title {
    font-size: 24px;
    line-height: 1.4;
    font-weight: 700;
    color: #1a1a1a;
    margin: 8px 0 14px;
    word-break: keep-all;
}

.qna-detail-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #94a3b8;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 28px;
}

/* 본문 */
.qna-detail-body {
    font-size: 16px;
    line-height: 1.8;
    color: #1e293b;
    word-break: break-word;
    overflow-x: auto; /* 넓은 표는 본문 영역 안에서만 가로 스크롤 */
    margin-bottom: 28px;
}

.qna-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.qna-detail-body table {
    border-collapse: collapse;
    max-width: 100%;
}

.qna-detail-body table td,
.qna-detail-body table th {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    white-space: nowrap;
}

/* 해시태그 */
.qna-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.qna-tag-pill {
    font-size: 12px;
    color: #7a7a7a;
    background: #f6f6f9;
    padding: 5px 12px;
    border-radius: 999px;
    text-decoration: none;
}

.qna-tag-pill:hover {
    background: #ececf2;
}

/* 좋아요 / 링크복사 */
.qna-action-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 28px;
}

.qna-like-btn,
.qna-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
}

.qna-like-btn:hover,
.qna-copy-btn:hover {
    background: #eef1f6;
}

/* 이전글/다음글 박스 */
.qna-adjacent-box {
    margin-top: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 8px 28px;
}

.qna-adjacent-post {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    padding: 14px 0;
}

.qna-adjacent-post:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.qna-adjacent-label {
    font-weight: 700;
    color: #1e293b;
    flex-shrink: 0;
}

.qna-adjacent-post a {
    color: #475569;
    text-decoration: none;
}

.qna-adjacent-post a:hover {
    text-decoration: underline;
}

.qna-related-box {
    margin-top: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
}

.qna-related-posts h3 {
    font-size: 16px;
    margin-bottom: 14px;
}

.qna-related-posts ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 24px;
}

.qna-related-posts li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
}
.qna-related-posts .qna-badge--sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
}

.qna-related-posts a {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: #1e293b;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qna-related-posts a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .qna-related-posts ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .qna-detail-title {
        font-size: 20px;
    }
    .qna-detail-body {
        font-size: 15px;
    }
}

/******************************************
*  카드그리드 슬라이더
*
********************************************/
/* 전체 슬라이더 */
.qube-post-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 4px 28px;
    box-sizing: border-box;
}

/* 이동 영역 */
.qube-post-track {
    display: flex;
    gap: 24px;
    transition: transform 0.6s ease;
    will-change: transform;
}

/* 카드 하나 */
.qube-post-slide {
    flex: 0 0 calc((100% - 72px) / 4);
    min-width: 0;
}

/* 카드 */
.qube-post-card {
    height: 100%;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

/* Hover */
.qube-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* 대표 이미지 */
.qube-post-image {
    display: block;
    overflow: hidden;
}

.qube-post-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.qube-post-card:hover .qube-post-image img {
    transform: scale(1.05);
}

/* 내용 */
.qube-post-content {
    padding: 20px;
}

/* 카테고리 */
.qube-post-category {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #8a94a8;
}

/* 제목 */
.qube-post-title {
    margin: 0 0 12px;
    font-size: 19px;
    line-height: 1.45;
}

.qube-post-title a {
    color: #0e1a33;
    text-decoration: none;
}

/* 요약 */
.qube-post-excerpt {
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.7;
    color: #666;
}

/* 자세히 보기 */
.qube-post-more {
    display: inline-block;
    color: #0e1a33;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

/* 태블릿 - 2개 */
@media (max-width: 1024px) {

    .qube-post-slide {
        flex: 0 0 calc((100% - 24px) / 2);
    }

}

/* 모바일 - 1개 */
@media (max-width: 767px) {

    .qube-post-track {
        gap: 15px;
    }

    .qube-post-slide {
        flex: 0 0 100%;
    }

}

/* 댓글 스팸 방지 - 허니팟 + 숫자 캡차 */
.qbx-hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    height: 0 !important;
    overflow: hidden !important;
}

.qbx-captcha-notice {
    font-size: 12px;
    color: #94a3b8;
    margin: 0 0 6px;
}

.qbx-inline-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-bottom: 12px !important;
}

.qbx-inline-row .qbx-captcha-label {
    font-size: 14px !important;
    color: #333 !important;
    white-space: nowrap !important;
    line-height: 44px !important;
}

.qbx-inline-row input.qbx-captcha-input,
.qbx-inline-row input.qbx-pw-input {
    height: 44px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    line-height: 44px !important;
    vertical-align: middle !important;
    display: inline-block !important;
}

.qbx-inline-row input.qbx-captcha-input {
    width: 60px !important;
}

.qbx-inline-row input.qbx-pw-input {
    width: 220px !important;
}
/* 댓글 수정 버튼 */
.qna-comment-actions { margin-top: 10px; }
.qna-comment-edit-btn {
    display: inline-flex;
    align-items: center;
    background: #eef1f6;
    color: #16264a;
    border: 1px solid #c9d2e0;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.qna-comment-edit-btn:hover {
    background: #16264a;
    color: #fff;
    border-color: #16264a;
}
.qna-comment-edit-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    resize: vertical;
    margin-top: 8px;
    font-family: inherit;
}
.qna-comment-edit-textarea:focus {
    outline: none;
    border-color: #16264a;
}

.qna-comment-edit-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.qna-comment-save-btn,
.qna-comment-cancel-edit-btn {
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background .15s, color .15s;
}

.qna-comment-save-btn {
    background: #16264a;
    color: #fff;
}
.qna-comment-save-btn:hover {
    background: #0e1a33;
}

.qna-comment-cancel-edit-btn {
    background: #f0f0f3;
    color: #555;
}
.qna-comment-cancel-edit-btn:hover {
    background: #e4e4e9;
}

/** 게시판 검색 버튼 **/
.ins-search-btn {
    position:absolute !important;
    right:6px !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    width:36px !important;
    min-width:36px !important;
    max-width:36px !important;
    height:36px !important;
    min-height:36px !important;
    max-height:36px !important;
    border-radius:50% !important;
    background:#16264a !important;
    color:#fff !important;
    border:none !important;
    padding: 0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    cursor:pointer !important;
    transition: background .15s !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}
.ins-search-btn:hover {
    background: #0e1a33 !important;
}
.ins-search-btn svg {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    display: block !important;
    flex-shrink: 0 !important;
}
.ins-search-btn svg,
.ins-search-btn svg circle,
.ins-search-btn svg line {
    stroke: #fff !important;
}

.ins-archive-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 48px 20px 80px;
    box-sizing: border-box;
}

.ins-page-header { margin-bottom: 28px; }
.ins-page-header-top {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.ins-page-kicker {
    display: inline-block; font-size: 13px; font-weight: 700;
    color: #d4af37; letter-spacing: 0.5px; margin-bottom: 8px;
}
.ins-page-title {
    font-size: 30px; font-weight: 800; color: #1a1a1a;
    margin: 0 0 10px;
}
.ins-page-desc { font-size: 14px; color: #888; margin: 0; }

.ins-ask-toggle-btn {
    flex-shrink: 0; background: #16264a !important; color: #fff !important; border: none !important;
    border-radius: 999px; padding: 12px 22px; font-size: 14px; font-weight: 700;
    cursor: pointer; white-space: nowrap;
}

.ins-ask-toggle-btn:hover,
.ins-ask-toggle-btn:focus { background: #0e1a33 !important; color: #fff !important; }

.ins-ask-notice {
    padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 20px;
}
.ins-ask-notice--submitted { background: #eef1f6; color: #16264a; }
.ins-ask-notice--error { background: #fef2f2; color: #b91c1c; }

.ins-ask-form-wrap {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px;
    padding: 24px; margin-bottom: 24px;
}
/* display:none 대신 사용 - 안에 있는 TinyMCE 에디터가 숨김 상태에서 초기화되면
   너비 0으로 깨지는 문제가 있어, 레이아웃 너비는 유지한 채 접어둔다 */
.ins-ask-form-wrap.qbx-ask-collapsed {
    height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0;
    border-width: 0; overflow: hidden; visibility: hidden;
}
.ins-ask-row { display: flex; gap: 10px; margin-bottom: 10px; }
.ins-ask-row input[name="qbx_author"] { flex: 1; }
.ins-ask-row select[name="qbx_category"] {
    flex: 1.2;
    min-width: 180px;
    padding-right: 28px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.ins-ask-input {
    flex: 1; box-sizing: border-box; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 12px 14px; font-size: 14px; background: #fff;
    line-height: normal;
}
select.ins-ask-input {
    font-size: 13px;
    line-height: normal;
    height: auto;
    padding: 12px 28px 12px 14px;
    box-sizing: border-box;
    -webkit-appearance: menulist;
    appearance: menulist;
    vertical-align: middle;
}
.ins-ask-input--full { width: 100%; margin-bottom: 10px; }
.ins-ask-editor-wrap { margin-bottom: 14px; }
.ins-ask-textarea {
    width: 100%; box-sizing: border-box; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 12px 14px; font-size: 14px; background: #fff; resize: vertical; margin-bottom: 14px;
    min-height: 220px;
}

.ins-ask-dropzone {
    border: 2px dashed #cbd5e1; border-radius: 12px; padding: 20px;
    text-align: center; cursor: pointer; margin-bottom: 14px;
    background: #fff; transition: .15s;
}
.ins-ask-dropzone.is-dragover { border-color: #16264a; background: #eef1f6; }
.ins-ask-dropzone-text { font-size: 13px; color: #94a3b8; margin: 0; }
.ins-ask-attach-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: #eef1f6; color: #16264a;
    border: 1px solid #16264a; border-radius: 999px;
    padding: 9px 18px; font-size: 13px; font-weight: 700; cursor: pointer;
    transition: background .15s, color .15s;
}
.ins-ask-attach-btn:hover { background: #16264a; color: #fff; }
.ins-ask-attach-btn svg { flex-shrink: 0; }
.ins-ask-dropzone-hint { font-size: 12px; color: #94a3b8; margin: 8px 0 0; }
.ins-ask-preview-tag {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.62); color: #fff;
    font-size: 11px; font-weight: 700; text-align: center;
    padding: 2px 0; line-height: 1.4;
}
.ins-ask-dropzone-previews {
    display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; justify-content: center;
}
.ins-ask-preview-item {
    position: relative; width: 80px; height: 80px; border-radius: 8px; overflow: hidden;
}
.ins-ask-preview-item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.ins-ask-preview-remove {
    position: absolute; top: 2px; right: 2px; width: 20px; height: 20px;
    border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; border: none;
    font-size: 13px; line-height: 1; cursor: pointer;
}

.ins-ask-submit-row { display: flex; justify-content: flex-end; gap: 14px; align-items: center; }
.ins-ask-cancel-btn {
    background: none; border: none; color: #64748b; font-size: 14px; cursor: pointer;
}
.ins-ask-submit-btn {
    background: #16264a; color: #fff; border: none; border-radius: 999px;
    padding: 11px 22px; font-size: 14px; font-weight: 700; cursor: pointer;
    transition: background .15s;
}
.ins-ask-submit-btn:hover { background: #0e1a33; }

@media (max-width: 600px) {
    .ins-page-header-top { flex-direction: column; }
    .ins-ask-row { flex-direction: column; }
}

.ins-search { position:relative; margin-bottom:20px; max-width:100%; }
.ins-search-input {
    width:100%; padding:14px 50px 14px 18px; border-radius:999px;
    border:1px solid #e2e2e2; font-size:14px; outline:none; box-sizing:border-box;
}

.ins-search-input:focus { border-color:#16264a; }

.ins-tabs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.ins-tab {
    padding:8px 18px; border-radius:999px; border:1px solid #e2e2e2;
    background:#fff; color:#333; font-size:14px; cursor:pointer; transition:.15s;
}
.ins-tab.is-active { background:#16264a; color:#fff; border-color:#16264a; }
.ins-tab:hover {
    background: #eef1f6;
    color: #16264a;
    border-color: #c9d2e0;
}
.ins-tab.is-active:hover {
    background: #16264a;
    color: #fff;
    border-color: #16264a;
}
.ins-sort { display:flex; justify-content:flex-end; gap:16px; margin-bottom:12px; font-size:13px; }
.ins-sort-btn { background:none; border:none; cursor:pointer; color:#999; padding:4px 0; }
.ins-sort-btn.is-active { color:#16264a; font-weight:700; }

.ins-post-list { display:flex; flex-direction:column; min-height: 100px; }
.ins-row { padding:22px 0; border-bottom:1px solid #eee; }
.ins-row:first-child { border-top:1px solid #eee; }

.ins-row-top { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.ins-row-cat {
    font-size:12px; font-weight:700; color:#666; background:#f0f0f3;
    padding:4px 10px; border-radius:6px; white-space: nowrap;
}
.ins-row-new {
    font-size:11px; font-weight:700; color:#fff; background:#ec4899;
    padding:3px 8px; border-radius:5px;
}
.ins-row-pending {
    font-size:11px; font-weight:700; color:#9a7b22; background:#faefd2;
    padding:3px 8px; border-radius:5px;
}
.qna-detail-header-top {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px;
}
.qna-detail-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.qna-detail-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.qna-approve-btn {
    font-size:12px; font-weight:700; color:#fff; background:#15803d;
    border:none; padding:5px 12px; border-radius:6px; cursor:pointer;
    flex-shrink: 0;
}
.qna-approve-btn:hover { background:#116932; }
.qna-approve-btn:disabled { opacity:.6; cursor:default; }

/** 질문글 수정 버튼 / 인라인 수정 폼 (댓글 수정 스타일과 동일) **/
.qna-post-edit-btn {
    display: inline-flex;
    align-items: center;
    background: #eef1f6;
    color: #16264a;
    border: 1px solid #c9d2e0;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}
.qna-post-edit-btn:hover {
    background: #16264a;
    color: #fff;
    border-color: #16264a;
}
.qna-post-edit-title-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
}
.qna-post-edit-title-input:focus {
    outline: none;
    border-color: #16264a;
}
.qna-post-edit-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    resize: vertical;
    margin-top: 8px;
}
.qna-post-edit-textarea:focus {
    outline: none;
    border-color: #16264a;
}
.qna-post-edit-tags-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    margin-top: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
}
.qna-post-edit-tags-input:focus {
    outline: none;
    border-color: #16264a;
}
.qna-tag-list:empty {
    display: none;
}
.qna-post-edit-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}
.qna-post-save-btn,
.qna-post-cancel-edit-btn {
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background .15s, color .15s;
}
.qna-post-save-btn {
    background: #16264a;
    color: #fff;
}
.qna-post-save-btn:hover {
    background: #0e1a33;
}
.qna-post-cancel-edit-btn {
    background: #f0f0f3;
    color: #555;
}
.qna-post-cancel-edit-btn:hover {
    background: #e4e4e9;
}
.ins-row-title {
    font-size:17px; font-weight:700; color:#1a1a1a; text-decoration:none;
}
.ins-row-title:hover { text-decoration:underline; }
.ins-row-comments { margin-left:auto; font-size:13px; color:#999; white-space: nowrap; }

.ins-row-meta { display:flex; gap:14px; font-size:13px; color:#999; margin-top:8px; }

.ins-row-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.ins-row-tag {
    font-size:12px; color:#7a7a7a; background:#f6f6f9; padding:5px 10px;
    border-radius:999px; text-decoration:none;
}
.ins-row-tag:hover { background:#ececf2; }

.ins-empty-msg { text-align:center; color:#999; padding:60px 0; font-size:14px; }

.ins-pagination-wrap { margin-top: 20px; }
.ins-pagination {
    display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap;
}
.ins-page-btn {
    min-width: 36px; height: 36px; padding: 0 10px;
    border: 1px solid #e2e2e2; border-radius: 8px; background: #fff;
    color: #333; font-size: 13px; cursor: pointer;
}
.ins-page-btn.is-active { background: #16264a; color: #fff; border-color: #16264a; }
.ins-page-btn:disabled { opacity: .4; cursor: default; }
.ins-page-dots { color: #999; font-size: 13px; padding: 0 4px; }

.ins-loading { text-align: center; color: #999; padding: 40px 0; font-size: 14px; }

@media (max-width: 600px) {
    .ins-page-title { font-size: 24px; }
    .ins-row-comments { margin-left: 0; }
}

/* 홈페이지 - 온라인보험문의 최신글 그리드 */
.qbx-recent-grid-wrap { width: 100%; }
.qbx-recent-grid-header {
    display: flex; align-items: center; justify-content: flex-end;
    margin-bottom: 20px;
}
.qbx-recent-grid-more {
    font-size: 14px; font-weight: 600; color: #16264a; text-decoration: none;
    white-space: nowrap;
}
.qbx-recent-grid-more:hover { text-decoration: underline; }

/* 자주 묻는 질문 (FAQ) */
.qbx-faq-wrap { width: 100%; max-width: 760px; margin: 0 auto; }
.qbx-faq-title { font-size: 26px; font-weight: 800; color: #1a1a1a; margin: 0 0 8px; }
.qbx-faq-desc { font-size: 14px; color: #888; margin: 0 0 24px; }

.qbx-faq-list {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
    overflow: hidden;
}
.qbx-faq-item {
    padding: 18px 22px;
    border-bottom: 1px solid #eee;
}
.qbx-faq-item:last-child { border-bottom: none; }

.qbx-faq-question {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer; list-style: none;
    font-size: 15px; font-weight: 700; color: #1a1a1a;
}
.qbx-faq-question::-webkit-details-marker { display: none; }

.qbx-faq-q-mark { flex-shrink: 0; color: #16264a; font-weight: 800; }
.qbx-faq-q-text { flex: 1; }

.qbx-faq-chevron {
    flex-shrink: 0; width: 16px; height: 16px; color: #bbb;
    transition: transform .2s;
}
.qbx-faq-item[open] .qbx-faq-chevron { transform: rotate(180deg); }

.qbx-faq-answer {
    display: flex; align-items: flex-start; gap: 10px;
    margin: 12px 0 0;
    font-size: 14px; line-height: 1.7; color: #666;
}
.qbx-faq-a-mark { flex-shrink: 0; font-weight: 700; color: #aeb9cc; }

@media (max-width: 600px) {
    .qbx-faq-title { font-size: 22px; }
    .qbx-faq-item { padding: 14px 16px; }
}
.qna-comment-delete-btn {
    display: inline-flex;
    align-items: center;
    background: #fdecec;
    color: #b91c1c;
    border: 1px solid #f5c2c2;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.qna-comment-delete-btn:hover {
    background: #b91c1c;
    color: #fff;
    border-color: #b91c1c;
}
.qbx-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity .15s;
}
.qbx-confirm-overlay.is-open {
    opacity: 1;
}
.qbx-confirm-box {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    transform: scale(0.92);
    transition: transform .15s;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
.qbx-confirm-overlay.is-open .qbx-confirm-box {
    transform: scale(1);
}
.qbx-confirm-msg {
    font-size: 15px;
    color: #1e293b;
    margin: 0 0 20px;
    line-height: 1.5;
    white-space: nowrap;
}
.qbx-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.qbx-confirm-cancel,
.qbx-confirm-ok {
    flex: 1;
    padding: 10px 0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background .15s;
}
.qbx-confirm-cancel {
    background: #f0f0f3;
    color: #555;
}
.qbx-confirm-cancel:hover {
    background: #e4e4e9;
}
.qbx-confirm-ok {
    background: #b91c1c;
    color: #fff;
}
.qbx-confirm-ok:hover {
    background: #8f1616;
}

/** 보험정보 페이지 블로그 카드 그리드 **/
.qbx-blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    min-height: 100px;
}
@media (max-width: 700px) {
    .qbx-blog-grid { grid-template-columns: 1fr; }
}

.qbx-blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow .15s, transform .15s;
}
.qbx-blog-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

.qbx-blog-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #eef1f6;
    overflow: hidden;
}
.qbx-blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.qbx-blog-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #eef1f6, #eef1f6);
}
.qbx-blog-card-new {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #ec4899;
    padding: 3px 8px;
    border-radius: 5px;
}

.qbx-blog-card-body {
    padding: 18px 20px 20px;
}
.qbx-blog-card-cat {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #16264a;
    margin-bottom: 8px;
}
.qbx-blog-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.4;
}
.qbx-blog-card-excerpt {
    font-size: 13px;
    color: #7a7a7a;
    line-height: 1.6;
    margin: 0 0 14px;
}
.qbx-blog-card-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #999;
}

.qbx-summary-box {
    background: #faf5e6;
    border: 1px solid #f0e6c8;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 0 0 24px;
}
.qbx-summary-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #9a7b22;
    background: #faefd2;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.qbx-summary-box ul {
    margin: 8px 0 0;
    padding-left: 20px;
}
.qbx-summary-box li {
    font-size: 14px;
    line-height: 1.7;
    color: #9a7b22;
    margin-bottom: 4px;
}

.qbx-cta-box {
    background: #eef1f6;
    border: 1px solid #c9d2e0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin: 28px 0;
}
.qbx-cta-box p {
    font-size: 14px;
    color: #5c6472;
    margin: 0 0 22px;
}
.qbx-cta-btn {
    display: inline-block;
    background: #16264a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 999px;
    text-decoration: none;
}
.qbx-cta-btn:hover {
    background: #0e1a33;
}

/** 이용약관 / 개인정보처리방침 등 약관 페이지 **/
.qbx-terms-page {
    max-width: 800px; margin: 0 auto; padding: 40px 20px 80px;
    font-size: 15px; line-height: 1.8; color: #333;
}
.qbx-terms-updated { font-size: 13px; color: #999; margin: 0 0 32px; }
.qbx-terms-page h2 {
    font-size: 18px; font-weight: 700; color: #1a1a1a;
    margin: 36px 0 12px;
}
.qbx-terms-page h2:first-of-type { margin-top: 0; }
.qbx-terms-page p { margin: 0 0 14px; }
.qbx-terms-footer { margin-top: 40px; color: #666; font-size: 13px; }

/* ============================================================
 * 큐브박스 Q&A 대댓글 (계층형 댓글)
 * ============================================================ */

/* 답글 링크 + 수정/삭제 버튼을 한 줄에 */
.qna-comment-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.qna-comment-actions .comment-reply-link {
    font-size: 13px;
    font-weight: 600;
    color: #16264a;
    text-decoration: none;
    cursor: pointer;
}
.qna-comment-actions .comment-reply-link:hover {
    text-decoration: underline;
}

/* 비로그인(익명) 댓글은 프로필 사진 없이 이름만 표시 */
.qna-comment-header--no-avatar {
    gap: 0;
}

/* 답글(자식) 카드는 살짝 다른 톤으로 */
.qna-comment-card--reply {
    border-color: #c9d2e0;
}

/* 삭제됐지만 아래 답글 때문에 자리만 남긴 댓글(묘비) */
.qna-comment-card--deleted {
    background: #f1f2f4;
    border-color: #e2e4e8;
    border-style: dashed;
    padding: 14px 20px;
}
.qna-comment-deleted-msg {
    font-size: 13px;
    color: #94a3b8;
    font-style: italic;
}

/* 답글 작성 중 안내 배너 (폼 상단) */
.qbx-replying-to {
    background: #eef1f6;
    border: 1px solid #c9d2e0;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #5c6472;
    line-height: 1.5;
}

/* ------------------------------------------------------------
 * 자식(대댓글) 목록 - 부모와 이어지는 연결선(스레드 라인)
 * ------------------------------------------------------------ */
.qna-comment-list .children {
    --thread-gutter: 26px;
    list-style: none;
    margin: 14px 0 0 10px;
    padding-left: var(--thread-gutter);
    position: relative;
}
@media (max-width: 600px) {
    .qna-comment-list .children {
        --thread-gutter: 18px;
        margin-left: 4px;
    }
}

.qna-comment-list .children > .qna-comment-item {
    position: relative;
    margin-bottom: 12px;
}
.qna-comment-list .children > .qna-comment-item:last-child {
    margin-bottom: 0;
}

/* 세로 연결선: 위 형제/부모 → 이 댓글의 팔꿈치 지점까지 */
.qna-comment-list .children > .qna-comment-item::before {
    content: "";
    position: absolute;
    left: calc(var(--thread-gutter) * -1);
    top: -14px;
    width: 2px;
    height: 40px;
    background: #c9d2e0;
}
/* 마지막 답글이 아니면 세로선을 아래 형제까지 연장 */
.qna-comment-list .children > .qna-comment-item:not(:last-child)::before {
    height: auto;
    bottom: -14px;
}

/* 가로 연결선(팔꿈치): 세로선 → 카드 */
.qna-comment-list .children > .qna-comment-item::after {
    content: "";
    position: absolute;
    left: calc(var(--thread-gutter) * -1);
    top: 26px;
    width: calc(var(--thread-gutter) - 5px);
    height: 2px;
    background: #c9d2e0;
}

.qna-comment-list .children .qna-comment-card {
    background: #fff;
}

/* 답글 작성 시 폼이 댓글 아래로 이동했을 때 여백 */
.qna-comment-item #respond {
    margin: 16px 0 8px;
}

/* "답글 취소" 링크 (평소 숨김, comment-reply.js 가 답글 작성 중에만 노출) */
.qbx-cancel-reply {
    display: inline-block;
    margin-bottom: 10px;
}
#cancel-comment-reply-link {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
}
#cancel-comment-reply-link:hover {
    color: #ef4444;
}