/* =============================================
   Insight (News / Notice) 스킨 스타일
   ============================================= */


/* 공통 리셋 */
.insight-wrap,
.insight-view,
.insight-write {
	font-family:'Pretendard';
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
    color: #1a1a1a;
}

/* ── 페이지 헤더 ── */
.insight-header {
    margin-bottom: 36px;
}
.insight-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 12px;
}
.insight-desc {
    font-size: 15px;
    color: #666;
    margin: 0;
}

/* ── 탭 ── */
.insight-tabs,
.view-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}
.tab-btn {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid #d0d0d0;
    color: #555;
    background: #fff;
    transition: all .2s;
}
.tab-btn:hover {
    border-color: #1976d2;
    color: #1976d2;
}
.tab-btn.active {
    background: #1976d2;
    color: #fff;
    border-color: #1976d2;
}

/* ── 카드 그리드 ── */
.insight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.insight-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px 24px;
    background: #fff;
    border: 1.5px solid #e4e4e4;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    min-height: 170px;
    transition: border-color .2s, box-shadow .2s;
}
.insight-card:hover {
    border-color: #1976d2;
    box-shadow: 0 4px 16px rgba(25, 118, 210, .1);
}

/* 뱃지 */
.card-badge {
    font-size: 12px;
    font-weight: 700;
    color: #1976d2;
    letter-spacing: .5px;
}

/* 카드 제목 */
.card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 날짜 */
.card-date {
    font-size: 13px;
    color: #999;
    margin-top: auto;
}

/* 빈 목록 */
.insight-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: #aaa;
    font-size: 15px;
}

/* ── 페이징 (그누보드 기본 클래스 오버라이드) ── */
.insight-paging {
    text-align: center;
    margin-bottom: 20px;
}
.insight-paging .pg_wrap {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.insight-paging .pg_page,
.insight-paging .pg_current,
.insight-paging .pg_prev,
.insight-paging .pg_next,
.insight-paging .pg_first,
.insight-paging .pg_last,
.insight-paging a,
.insight-paging strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    border: 1.5px solid #e0e0e0;
    color: #555;
    background: #fff;
    transition: all .15s;
    font-weight: 500;
}
.insight-paging .pg_page:hover,
.insight-paging a:hover {
    border-color: #1976d2;
    color: #1976d2;
}
.insight-paging .pg_current,
.insight-paging strong {
    background: #1976d2;
    color: #fff !important;
    border-color: #1976d2;
}

/* ── 관리자 글쓰기 버튼 ── */
.insight-admin-bar {
    text-align: right;
    margin-top: 40px;
}
.btn-write {
    display: inline-block;
    padding: 16px 22px;
    background: #0063EA;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}
.btn-write:hover { background: #1565c0; }

/* =============================================
   View (상세 보기)
   ============================================= */
.view-header {
    margin-bottom: 24px;
}
.view-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.4;
    margin: 12px 0 10px;
}
.view-meta {
    display: flex;
    gap: 16px;
    align-items: center;
}
.view-date {
    font-size: 14px;
    color: #999;
}
.view-divider {
    border: none;
    border-top: 1.5px solid #e8e8e8;
    margin: 0 0 36px;
}

/* 본문 */
.view-content {
	padding:16px 0;
	border-top:2px solid #F8F8F8;
	border-bottom:2px solid #F8F8F8;
	min-height:350px;
	font-size: 16px;
    line-height: 1.9;
    color: #2a2a2a;
    margin-bottom: 40px;
    word-break: keep-all;
}
.view-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 16px 0;
    display: block;
}
.view-content p { margin: 0 0 16px; }
/*.view-content p,
.view-content span {
	font-size: 16px !important;
}*/
/* 첨부파일 */
.view-files {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 32px;
    font-size: 14px;
}

/* 버튼 영역 */
.view-footer {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}
.btn-back {
    display: inline-block;
    padding: 9px 20px;
    border: 1.5px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #555;
    background: #fff;
    transition: all .15s;
}
.btn-back:hover { border-color: #1976d2; color: #1976d2; }
.btn-edit {
    display: inline-block;
    padding: 9px 20px;
    background: #555;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.btn-edit:hover { background: #333; }
.btn-delete {
    display: inline-block;
    padding: 9px 20px;
    background: #e53935;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.btn-delete:hover { background: #c62828; }

/* 이전/다음 글 */
.view-nav {
    border-top: 1.5px solid #e8e8e8;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: color .15s;
}
.nav-item:hover { color: #1976d2; }
.nav-label {
    min-width: 46px;
    font-size: 12px;
    color: #999;
    font-weight: 600;
}
.nav-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =============================================
   Write (글쓰기)
   ============================================= */
.write-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid #1976d2;
}
.write-form { display: flex; flex-direction: column; gap: 20px; }
.write-field { display: flex; flex-direction: column; gap: 6px; }
.write-field label { font-size: 14px; font-weight: 600; color: #444; }
.write-field .required { color: #e53935; }
.write-input {
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    width: 100%;
    transition: border-color .15s;
}
.write-input:focus { border-color: #1976d2; outline: none; }
.write-field textarea {
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    width: 100%;
    transition: border-color .15s;
	resize:none;
}
.write-field textarea:focus { border-color: #1976d2; outline: none; }
.write-btn-wrap {
    display: flex;
	justify-content:center;
    gap: 10px;
    margin-top: 28px;
}
.btn-submit {
    padding: 11px 32px;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}
.btn-submit:hover { background: #1565c0; }
.btn-cancel {
    padding: 11px 24px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: #555;
    background: #fff;
}
.btn-cancel:hover { border-color: #999; }

/* ── 반응형 ── */
@media (max-width: 900px) {
    .insight-grid { grid-template-columns: repeat(2, 1fr); }
    .insight-title { font-size: 36px; }
}
@media (max-width: 600px) {
    .insight-grid { grid-template-columns: 1fr; }
    .insight-title { font-size: 28px; }
    .view-title { font-size: 22px; }
}
