/* 로딩 스타일 */@charset "utf-8";

/* =========================
   FAQ 아코디언 스타일
   ========================= */

/* FAQ 전체 컨테이너 */
.faq-accordion {
    background: #fff;
}

/* FAQ 개별 아이템 */
.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

/* 공지사항 스타일 */
.faq-item.faq-notice {
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
    border-color: #2196f3;
    order: -1; /* 맨 위로 이동 */
}

/* FAQ 질문 부분 */
.faq-question {
    padding: 18px 20px;
    cursor: pointer;
    background: #fff;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-item.faq-notice .faq-question {
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
}

.faq-item.faq-notice .faq-question:hover {
    background: linear-gradient(135deg, #f0f4ff 0%, #d1e7fd 100%);
}

/* 활성화된 상태 */
.faq-answer.show + .faq-question,
.faq-answer.collapsing + .faq-question {
    border-bottom-color: #dee2e6;
    background: #f8f9fa;
}

/* Q/A 마크 */
.faq-number, .faq-notice-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex-shrink: 0;
}

.faq-notice-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    font-size: 11px;
    width: 40px;
    border-radius: 20px;
}

.faq-answer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #10ac84 0%, #00d2d3 100%);
    flex-shrink: 0;
}

/* FAQ 제목 */
.faq-title {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
    color: #333;
    word-break: break-word;
}

.faq-item.faq-notice .faq-title {
    font-weight: 600;
    color: #1976d2;
    font-size: 18px;
}

/* 메타 정보 */
.faq-meta {
    font-size: 12px;
    color: #6c757d;
}

.faq-author {
    font-weight: 500;
}

.faq-date {
    font-family: 'Courier New', monospace;
}

.faq-hit {
    font-size: 11px;
}

/* 댓글 수 */
.faq-comment-count {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    background: #e3f2fd;
    border-radius: 12px;
    font-size: 11px;
    color: #1976d2;
    font-weight: 500;
}

/* 토글 아이콘 */
.faq-toggle i {
    font-size: 14px;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.faq-answer.show ~ .faq-question .faq-toggle i,
.faq-answer.collapsing ~ .faq-question .faq-toggle i {
    transform: rotate(180deg);
}

/* FAQ 답변 부분 */
.faq-answer {
    background: #fdfdfd;
    border-top: 1px solid #e9ecef;
}

.faq-content {
    padding: 22px 20px;
}

.faq-answer-content {
    position: relative;
}

.faq-a-mark {
    margin-bottom: 15px;
}

.faq-answer-text {
    color: #495057;
    line-height: 1.8;
    font-size: 16px;
}

/* FAQ 내용 스타일링 */
.faq-answer-text h1,
.faq-answer-text h2,
.faq-answer-text h3,
.faq-answer-text h4,
.faq-answer-text h5,
.faq-answer-text h6 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
}

.faq-answer-text p {
    margin-bottom: 12px;
}

.faq-answer-text ul,
.faq-answer-text ol {
    margin-bottom: 12px;
    padding-left: 20px;
}

.faq-answer-text li {
    margin-bottom: 4px;
}

.faq-answer-text img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}

.faq-answer-text blockquote {
    padding: 10px 15px;
    margin: 15px 0;
    border-left: 4px solid #ddd;
    background: #f9f9f9;
    font-style: italic;
}

.faq-answer-text code {
    padding: 2px 4px;
    background: #f1f3f4;
    border-radius: 3px;
    font-size: 13px;
}

.faq-answer-text pre {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    overflow-x: auto;
    font-size: 13px;
}

/* 체크박스 스타일 */
.faq-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    cursor: pointer;
}

/* FAQ 관리 버튼 */
.faq-question-admin-buttons .btn {
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 3px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.faq-question:hover .faq-question-admin-buttons .btn {
    opacity: 1;
}

.faq-admin-buttons .btn {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
}

.faq-answer-meta {
    border-top: 1px solid #e9ecef !important;
}

.faq-meta-info {
    flex-grow: 1;
}

.faq-admin-buttons {
    white-space: nowrap;
}

/* 관리자 전용 요소들 */
.btn-xs {
    padding: 1px 4px;
    font-size: 10px;
    line-height: 1.2;
    border-radius: 2px;
}
.faq-loading {
    color: #6c757d;
    font-size: 13px;
}

.faq-loading i {
    color: #007bff;
    margin-right: 8px;
}

/* 빈 목록 스타일 */
.faq-empty {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 40px 20px;
}

.faq-empty i {
    color: #6c757d;
    opacity: 0.7;
}

.faq-empty p {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
}

/* 카테고리 배지 */
.badge {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .faq-question {
        padding: 12px 16px;
    }
    
    .faq-content {
        padding: 16px;
    }
    
    .faq-title {
        font-size: 18px; /* 16px → 18px */
    }
    
    .faq-meta {
        display: none !important;
    }
    
    .faq-number, .faq-notice-badge, .faq-answer-badge {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .faq-notice-badge {
        width: 36px;
        font-size: 10px;
    }
    
    .faq-item {
        margin-bottom: 6px;
        border-radius: 6px;
    }
    
    .faq-answer-text {
        font-size: 17px; /* 15px → 17px */
    }
    
    /* 모바일에서 관리 버튼 스타일 */
    .faq-answer-meta {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .faq-meta-info {
        margin-bottom: 8px;
    }
    
    .faq-admin-buttons .btn {
        font-size: 14px; /* 12px → 14px */
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 12px 14px;
    }
    
    .faq-content {
        padding: 14px;
    }
    
    .faq-title {
        font-size: 17px; /* 15px → 17px */
    }
    
    .faq-number, .faq-answer-badge {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }
    
    .faq-notice-badge {
        width: 34px;
        font-size: 9px;
    }
    
    .faq-answer-text {
        font-size: 16px; /* 14px → 16px */
    }
    
    /* 질문 제목의 관리 버튼을 모바일에서는 숨김 */
    .faq-question-admin-buttons {
        display: none !important;
    }
}

/* 애니메이션 개선 */
.faq-answer-content {
    /* fadeIn 애니메이션 제거하고 CSS transition으로 대체 */
}

/* 다크모드 대응 */
@media (prefers-color-scheme: dark) {
    .faq-item {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .faq-question {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .faq-question:hover {
        background: #374151;
    }
    
    .faq-title {
        color: #e2e8f0;
    }
    
    .faq-answer {
        background: #374151;
        border-color: #4a5568;
    }
    
    .faq-answer-text {
        color: #cbd5e0;
    }
}

/* =========================
   기존 게시판 스타일
   ========================= */

/* 모바일 목록 */
@media all and (max-width:767px) {
	.responsive #bo_list .float-left.float-md-none {
		margin-right:1.0rem;
	}
	.responsive #bo_list .na-title {
		margin-bottom:0.14rem;
	}
}

/* 게시판 읽기 */
#bo_v_title {
	font-size:23px;
	font-weight:bold;
	line-height:1.4;
	letter-spacing:-1px;
}
#bo_v_con {
	min-height:200px; 
	word-break:break-all;
	overflow:hidden
}
@media all and (max-width:575px) {
	.responsive #bo_v_title {
		font-size:20px;
		line-height:1.5;
	}
	.responsive #bo_v_con { 
		min-height:140px; 
	}
}
#bo_v_con img {
	max-width:100%;
	height:auto
}
#bo_v_img {
	width:100%;
	text-align:center;
	overflow:hidden;
	zoom:1;
}
#bo_v_img:after {
	display:block;
	visibility:hidden;
	clear:both;
	content:"";
}
#bo_v_img a.view_image {
	display:block;
}
#bo_v_img img {
	margin-bottom:1.0rem;
}

/* 게시판 읽기 : SNS 공유 */
#bo_v_sns_icon { 
	margin:-5px auto; 
}
#bo_v_sns_icon img { 
	width:40px; 
	border-radius:50%; 
	margin:5px;
}

/* 게시판 댓글 : 내용 */
.cmt-reply {
	top:0;
	left:-16px;
}
.by-writer { 
	background:#fbefef !important;
	border-top:1px solid #f6cece !important;
}
.cmt-content {
	word-break:break-all;
	overflow:hidden
}
.cmt-content img {
	max-width:100%;
	height:auto
}

/* 게시판 댓글 : 대댓글, 수정, 삭제 */
.cmt-btn ul { 
	list-style: none; 
	margin: 0; 
}
.cmt-btn ul > li { 
	float: left; 
	font-size:12px;
	padding: 0 10px; 
}
.cmt-btn ul > li::before { 
	float: left; 
	color:#ccc; 
	content: "|"; 
	margin-left:-12px;
}
.cmt-btn ul > li:last-child { 
	padding-right:0;
}
.cmt-btn ul > li:first-child::before, 
.cmt-btn ul > li.no-bar::before { 
	content: ""; 
	margin-left:0; 
}
.cmt-btn ul > li > a { 
	float:left;
	color:#888;
	white-space:nowrap;	
}

/* 게시판 댓글 : 쓰기폼 */
#fviewcomment #wr_content { 
	resize:none; 
}
@media all and (max-width:575px) {
	.responsive .cmt-box {
		border-right:0 !important;
	}
	.responsive #bo_vc_w .cmt-box {
		border-left:0 !important;
		border-radius:0 !important;
	}
	.responsive #bo_vc_login {
		border-left:0 !important;
		border-right:0 !important;
		border-radius:0 !important;
	}
}

/* 게시판 댓글 : SNS 등록 */
#bo_vc_opt ol {	
	margin:0;
	padding:0;
	list-style:none;
	zoom:1; 
	background:#ccc;
	border-radius:3px;
}
#bo_vc_opt ol:after { 
	display:block;
	visibility:hidden;
	clear:both;
	content:""; 
}
#bo_vc_opt ol li { 
	float:left;
	margin:0; 
}
#bo_vc_send_sns ul { 
	margin:0;
	padding:0;
	list-style:none;
	zoom:1; 
}
#bo_vc_send_sns ul:after { 
	display:block;
	visibility:hidden;
	clear:both;
	content:""; 
}
#bo_vc_send_sns ul li {	
	float:left;
	margin:0 1.0rem 0 0;
}
#bo_vc_send_sns input {	
	margin:0 0 0 0.5rem;
}

/* 게시판 쓰기 */
#bo_w .list-group-item {
	padding-left:0;
	padding-right:0;
	border-left:0;
	border-right:0;
}
#bo_w #wr_content { 
	margin-bottom:1.0rem !important;
}
@media all and (max-width:575px) {
	#bo_w .list-group-item {
		padding-left:1.0rem;
		padding-right:1.0rem;
	}
	.responsive #bo_w #wr_content {
		max-height:160px !important;
	}
}