/* MAIN QNA */

.main_qna { background: #ECEFF3; }

.main_qna * { box-sizing: border-box; }

.main_qna_wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* LEFT */

.main_qna_left { width: 32%; max-width: 504px; flex-shrink: 0; }

.main_qna_left h2 { color: #222; font-size: 36px; font-weight: 700; line-height: 54px; /* 150% */ }

.main_qna_left p { color: #4E4E4E; font-size: 20px; font-weight: 400; line-height: 28px; margin: 20px 0 40px; }

/* VIEW MORE */

.qna_more { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 20px 14px 24px; border: 1px solid #999; border-radius: 100px; color: #656565; font-size: 16px; font-weight: 500; line-height: 24px; /* 150% */ transition: all 0.3s ease; }

.qna_more .arrow { display: block; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); transition: transform 0.3s ease; }

.qna_more:hover { background: #1E293B; border-color: #1E293B; color: #fff; }

.qna_more:hover .arrow { transform: translateX(3px) rotate(45deg); }

/* RIGHT */

.main_qna_right { flex: 1; max-width: 1082px; }

/* TABLE HEADER */

.qna_header { display: flex; height: 56px; padding: 16px 0; justify-content: center; align-items: center; flex: 1 0 0; border-radius: 8px; background: #1E293B; color: #FFF; text-align: center; font-size: 16px; font-weight: 600; line-height: 100%; /* 16px */ margin-bottom: 8px; }

.qna_col_title { width: 55%; }

.qna_col_writer { width: 13%; }

.qna_col_date { width: 17%; }

.qna_col_status { width: 15%; }

/* QNA LIST */

.qna_list_wrap { display: flex; flex-direction: column; gap: 6px; padding: 0; margin: 0; list-style: none; }

.qna_item { width: 100%; background: #fff; border-radius: 6px; overflow: hidden; transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; }

.qna_item > a { display: flex; align-items: center; width: 100%; min-height: 76px; padding: 16px 0; text-decoration: none; color: inherit; }

/* TITLE */

.qna_item_title { width: 55%; min-width: 0; padding: 0 22px; }

.qna_item_category { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }

.qna_item_category .category { color: #1E293B; font-size: 14px; font-weight: 500; line-height: 18px; /* 128.571% */ }

/* NEW BADGE */

.new_badge { display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 16px; background: #1E293B; border-radius: 100px; font-size: 10px; font-weight: 500; line-height: 1.2; color: #fff; }

/* SUBJECT */

.qna_item_title .subject { width: 100%; margin: 0; color: #222; font-size: 18px; font-weight: 600; line-height: 100%; /* 18px */ letter-spacing: -0.36px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* WRITER / DATE */

.qna_item_writer { width: 13%; padding: 0 5px; color: #7A7A7A; font-size: 16px; font-weight: 400; line-height: 100%; /* 16px */ text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.qna_item_date { width: 17%; color: #7A7A7A; font-size: 16px; font-weight: 400; line-height: 100%; text-align: center; }

/* STATUS */

.qna_item_status { width: 15%; display: flex; align-items: center; justify-content: center; }

.qna_item_status .status { display: inline-flex; align-items: center; justify-content: center; min-width: 96px; height: 36px; padding: 0 12px; border-radius: 100px; color: #FFF; font-size: 16px; font-weight: 600; line-height: 100%; /* 16px */ white-space: nowrap; }

/* 답변 완료 */

.qna_item_status .complete { background: #1E293B; color: #fff; }

/* 답변 대기 */

.qna_item_status .waiting { background: #D4D4D4; color: #fff; }

/* HOVER */

.qna_item:hover { background: #FAFBFC; transform: translateY(-2px); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); }

.qna_item:hover .subject { color: #1E293B; }

/* EMPTY */

.qna_empty { padding: 50px 20px; background: #fff; border-radius: 6px; text-align: center; font-size: 14px; color: #888; }

/* 공통 보완 · 긴 제목이 우측 영역을 밀지 않도록 너비를 제한합니다. */
.main_qna_wrap, .main_qna_wrap * { box-sizing: border-box; }
.main_qna_right { min-width: 0; }
.main_qna_left h2 { margin: 0; }
.qna_more { text-decoration: none; }
.main_qna_wrap a:focus-visible { outline: 2px solid #1e293b; outline-offset: -3px; }

/* ==================================================
 1200px 이하 · 제목 위 / 질문 카드 아래로 전환
 배경과 바깥 여백은 기존 .main_qna 및 .container를 사용합니다.================================================== */
@media (max-width: 1200px) {
 /* 전체 배치 · 부모 컨테이너 너비를 그대로 채웁니다. */
	.main_qna_wrap { width: 100%; flex-direction: column; align-items: stretch; gap: 32px; }
 .main_qna_left,
	.main_qna_right { width: 100%; max-width: none; }

 /* 소개 문구 · 이미지 기준 제목과 설명 크기 */
	.main_qna_left h2 { font-size: 28px; line-height: 36px; letter-spacing: -1px; word-break: keep-all; }
	.main_qna_left p { margin: 8px 0 16px; font-size: 14px; line-height: 20px; letter-spacing: -0.4px; word-break: keep-all; }
	.qna_more { min-height: 34px; gap: 20px; padding: 6px 18px; font-size: 12px; line-height: 20px; }
	.qna_more .arrow { width: 6px; height: 6px; }

 /* 카드 목록 · 표 헤더, 글쓴이, 날짜를 숨깁니다. */
 .qna_header,
 .qna_item_writer,
	.qna_item_date { display: none; }
	.qna_list_wrap { gap: 8px; }
	.qna_item { border-radius: 8px; }
	.qna_item > a { display: flex; align-items: center; gap: 12px; min-height: 96px; padding: 16px 12px; }

 /* 질문 · 카테고리 아래에 제목을 최대 두 줄로 표시합니다. */
	.qna_item_title { flex: 1; width: auto; min-width: 0; padding: 0; }
	.qna_item_category { gap: 3px; margin-bottom: 8px; }
	.qna_item_category .category { font-size: 12px; line-height: 16px; }
	.main_qna_wrap .new_badge { width: 12px; height: 12px; padding: 0; border-radius: 50%; font-size: 9px; line-height: 12px; }
	.new_badge_text { display: none; }
	.main_qna_wrap .new_badge::before { content: "N"; }
	.qna_item_title .subject { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-height: 40px; overflow: hidden; font-size: 13px; font-weight: 600; line-height: 20px; letter-spacing: -0.26px; white-space: normal; overflow-wrap: anywhere; }

 /* 상태 배지 · 제목 오른쪽 중앙에 작은 알약 모양으로 표시합니다. */
	.qna_item_status { flex: 0 0 auto; width: auto; }
	.qna_item_status .status { min-width: 57px; height: 20px; padding: 0 8px; font-size: 11px; font-weight: 500; line-height: 20px; }
	.qna_item:hover { transform: none; box-shadow: none; }
	.qna_empty { border-radius: 9px; }
}

/* 접근성 · 모션 최소화 설정에서는 이동 효과를 끕니다. */
@media (prefers-reduced-motion: reduce) {
 .qna_more,
 .qna_more .arrow,
	.qna_item { transition: none; }
	.qna_item:hover { transform: none; }
}

/* 최고관리자 전용 글쓰기 버튼 */
.qna_admin_write { margin-left: 8px; background: #1E293B; border-color: #1E293B; color: #fff; }
.qna_admin_write:hover { background: #334155; border-color: #334155; }
