@charset "utf-8";

/* 반려동물학과(SITE_NO=54) 전용.
   IncHeaderS.jsp / IncHeaderM.jsp 에서 SITE_NO 조건으로만 물린다 — 다른 사이트엔 로드되지 않는다. */

/* ============================================================
   학과FAQ (MENU_ID=120) — FAQ 게시판 표를 카드형 아코디언으로
   마크업은 WEB-INF/jsp/hpg/bbs/BoardListFaq.jsp (공용) 그대로 두고 CSS 로만 바꾼다.
   펼침 동작도 기존 fn_faq_q() → td.on 을 그대로 쓴다.
   ============================================================ */

.board_area {
	--faq-brand: #194f90;
	--faq-brand2: #0e6b5f;
	--faq-ink: #182230;
	--faq-body: #344054;
	--faq-line: #e6eaf0;
	--faq-soft: #f7f9fc;
	--faq-font: 'Noto Sans KR', 'Apple SD Gothic Neo', Arial, sans-serif;
}

/* --- 머리말 : 검색줄(.BBS_option) 자리를 안내문으로 바꿔 쓴다 --- */
/* 10문항짜리 FAQ 라 검색을 뺐다. 되살리려면 아래 .BBS_option > * 규칙만 지우면 된다. */
.board_area .BBS_option > * { display: none; }

.board_area .BBS_option {
	height: auto;
	padding: 0 0 26px;
}
.board_area .BBS_option::before {
	content: 'SEOUL DIGITAL UNIVERSITY · COMPANION ANIMAL SCIENCE';
	display: block;
	color: var(--faq-brand2);
	font-family: var(--faq-font);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .05em;
	line-height: 1.4;
}
.board_area .BBS_option::after {
	content: '서울디지털대학교 반려동물학과에 대해 자주 묻는 질문과 답변입니다.';
	display: block;
	max-width: 820px;
	margin-top: 10px;
	color: #475467;
	font-family: var(--faq-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.72;
	word-break: keep-all;
}

/* --- 표 해체 --- */
.lineList_tb.typeFaq > table > caption,
.lineList_tb.typeFaq > table > colgroup,
.lineList_tb.typeFaq > table > thead { display: none; }

.lineList_tb.typeFaq > table,
.lineList_tb.typeFaq > table > tbody,
.lineList_tb.typeFaq > table > tbody > tr,
.lineList_tb.typeFaq > table > tbody > tr > td {
	display: block;
	width: auto;
	height: auto;
	border: 0;
}
.lineList_tb.typeFaq > table { border-top: 1px solid var(--faq-line); }

/* --- 질문 줄 --- */
.lineList_tb.typeFaq > table > tbody > tr:not(.typeFaqA) {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 22px 4px;
}
.lineList_tb.typeFaq > table > tbody > tr:not(.typeFaqA) > td { padding: 0; }
.lineList_tb.typeFaq > table > tbody > tr:not(.typeFaqA) > td:nth-child(2) { display: none; } /* 카테고리 미사용 */

.lineList_tb.typeFaq > table > tbody > tr > td.no {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	margin-top: -3px;
	border-radius: 50%;
	background: #eef4fb;
	color: var(--faq-brand);
	font-family: var(--faq-font);
	font-size: 13px;
	font-weight: 700;
	line-height: 34px;
	text-align: center;
}

.lineList_tb.typeFaq > table > tbody > tr > td.txtL {
	flex: 1;
	min-width: 0;
}
.lineList_tb.typeFaq.typeSort > table > tbody > tr > td.txtL { padding: 0; } /* board.css 754·785줄 상쇄 */

.lineList_tb.typeFaq > table > tbody > tr > td.txtL > button {
	position: relative;
	width: 100%;
	height: auto;
	padding: 0 34px 0 0;
	color: var(--faq-ink);
	font-family: var(--faq-font);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.55;
	letter-spacing: -.015em;
	text-align: left;
	white-space: normal;
	word-break: keep-all;
	cursor: pointer;
}
.lineList_tb.typeFaq > table > tbody > tr > td.txtL > button::after {
	content: '+';
	position: absolute;
	right: 0;
	top: 0;
	color: #98a2b3;
	font-family: var(--faq-font);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.2;
	transition: transform .2s;
}
.lineList_tb.typeFaq > table > tbody > tr > td.txtL.on > button::after { transform: rotate(45deg); }

/* --- 답변 --- */
.lineList_tb.typeFaq > table > tbody > tr.typeFaqA { border-bottom: 1px solid var(--faq-line); }
.lineList_tb.typeFaq > table > tbody > tr.typeFaqA > td { padding: 0; }
.lineList_tb.typeFaq > table > tbody > tr.typeFaqA > td .faqA_wrap {
	padding: 0 52px 28px;
	background: none;
}
.lineList_tb.typeFaq > table > tbody > tr.typeFaqA > td.on .faqA_wrap { height: auto; }

/* [답변] 라벨은 화면에서만 감춘다 — 스크린리더에는 남긴다 */
.lineList_tb.typeFaq > table > tbody > tr.typeFaqA .faq_a {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.lineList_tb.typeFaq > table > tbody > tr.typeFaqA > td .faqA_wrap > p {
	margin: 0;
	padding: 0;
	color: var(--faq-body);
	font-family: var(--faq-font);
	font-size: 15px;
	line-height: 1.7;
	word-break: keep-all;
}

/* --- 답변 본문(에디터가 심은 인라인 스타일)을 눌러 통일 --- */
.faqA_wrap > p p { margin: 9px 0 !important; line-height: 1.7 !important; }

/* board.css 의 소형기기 규칙(.lineList_tb tr/td → block·inline-block)과
   common.css 의 table{table-layout:fixed} 가 답변 안의 표까지 먹는다. 되돌린다. */
.faqA_wrap > p table {
	display: table;
	width: 100% !important;
	height: auto !important;
	margin: 16px 0 22px;
	border-collapse: collapse !important;
	table-layout: auto;
}
.faqA_wrap > p thead { display: table-header-group; }
.faqA_wrap > p tbody { display: table-row-group; }
.faqA_wrap > p tr { display: table-row; }
.faqA_wrap > p td,
.faqA_wrap > p th { display: table-cell; }
.faqA_wrap > p colgroup { display: table-column-group; }
.faqA_wrap > p td,
.faqA_wrap > p th {
	width: auto !important;
	height: auto !important;
	padding: 10px 12px !important;
	border: 1px solid #d7dde5 !important;
	vertical-align: top !important;
	word-break: keep-all;
}
.faqA_wrap > p tr:first-child td,
.faqA_wrap > p th {
	background: var(--faq-soft);
	font-weight: 700;
}
.faqA_wrap > p span,
.faqA_wrap > p p,
.faqA_wrap > p td {
	color: var(--faq-body) !important;
	font-family: var(--faq-font) !important;
	font-size: 15px !important;
}
.faqA_wrap > p strong,
.faqA_wrap > p b,
.faqA_wrap > p span[style*="font-weight: bold"] {
	color: #1f2937 !important;
	font-weight: 700 !important;
}

/* --- 모바일 --- */
@media all and (max-device-width: 768px) {
	.board_area .BBS_option::before { font-size: 12px; }
	.board_area .BBS_option::after { font-size: 15px; }
	.lineList_tb.typeFaq > table > tbody > tr:not(.typeFaqA) { padding: 19px 0; }
	.lineList_tb.typeFaq.typeSort > table > tbody > tr > td.txtL > button { font-size: 16px; }
	.lineList_tb.typeFaq > table > tbody > tr.typeFaqA > td .faqA_wrap { padding: 0 0 22px 48px; }
	.faqA_wrap > p { overflow-x: auto; }
	.faqA_wrap > p table { min-width: 650px; }
}
