@charset "utf-8";

.board { line-height: 1.4; }

/* 필터 */
.board-filter { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 30px; }
.board-filter button { font-size: 14px; background: #fff; border: 1px solid #ccc; border-radius: 20px; padding: 8px 16px; cursor: pointer; }
.board-filter button.active { color: #fff; background: #1b1464; border-color: #1b1464; }

/* 리스트 (핵심) */
.board-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }

/* 카드 */
.card { background: #fff; border: 1px solid #eee; border-radius: 12px; transition: 0.2s; overflow: hidden; }
.card:hover { transform: translateY(-5px); }

/* 이미지 */
.card img { width: 100%; height: auto; object-fit: cover; }

/* 내용 */
.card-body { padding: 16px; }
.category { color: #1b1464; font-size: 12px; font-weight: 600; }
.title { font-size: 18px; font-weight: 600; margin: 8px 0; }
.desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #666; font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.date { display: block; color: #999; font-size: 12px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23888' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left center; background-size: 14px; padding-left: 18px; margin-top: 10px; }

/* 버튼 */
.more { display: inline-block; color: #1b1464; font-size: 13px; text-decoration: none; margin-top: 10px; }

/* 페이지네이션 */
.pagination { text-align: center; margin-top: 40px; }
.pagination ul { display: flex; justify-content: center; }
.pagination ul li { display: flex; justify-content: center; align-items: center; width: 30px; height: 30px; color: #454545; font-size: 12px; text-align: center; border-radius: 50%; overflow: hidden; }
.pagination ul li.first { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 5L1 10L6 15' stroke='%23666' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M13 5L8 10L13 15' stroke='%23666' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center center; background-size: 16px; }
.pagination ul li.prev { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M12 5L7 10L12 15' stroke='%23666' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center center; background-size: 16px; }
.pagination ul li.next { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M8 5L13 10L8 15' stroke='%23666' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center center; background-size: 16px; }
.pagination ul li.last { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M7 5L12 10L7 15' stroke='%23666' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M14 5L19 10L14 15' stroke='%23666' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center center; background-size: 16px; }
.pagination ul li a { display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; color: inherit; }
.pagination ul li.active a { color: #fff; font-weight: 600; background: #1b1464; }


/* 상세 페이지 */

.detail-wrap { line-height: 1.4; border-bottom: 1px solid #ddd; padding-bottom: 40px; }

/* 타이틀 */
.detail-title { color: #1b1464; font-size: 24px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 20px; }

/* meta */
.detail-meta { display: flex; justify-content: flex-end; gap: 18px; color: #888; font-size: 12px; margin-bottom: 30px; }
.detail-meta span { background-repeat: no-repeat; background-position: left center; background-size: 14px; padding-left: 18px; }
.detail-date { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23888' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E"); }
.detail-views { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23888' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }

/* 커버 이미지 */
.cover { display: flex; }
.cover img { display: block; width: 100%; max-width: 600px; }

/* 본문 */
.content { margin-top: 30px; }
.content p { margin-bottom: 12px; }
.content a { color: #1b1464; }
.content a:hover { color: #32367e; }

/* 다운로드 박스 */
.download-wrap { display: flex; flex-direction: column; gap: 12px; margin-top: 50px; }
.download-box { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: #f7f9fc; border-radius: 12px; padding: 20px; }
.file-info { display: flex; align-items: center; gap: 12px; }
.file-icon { font-size: 28px; }
.file-name { font-size: 14px; font-weight: 400; word-break: break-all; }
.file-meta { color: #888; font-size: 12px; }

/* 버튼 */
.download-btn { flex: 0 0 85px; padding: 10px 18px; background: #1b1464; color: #fff; border-radius: 50px; text-decoration: none; font-size: 14px; transition: 0.2s; }
.download-btn:hover { background: #32367e; }


/* 공지사항 */
.page-title { margin: 0 0 28px; font-size: 30px; font-weight: 700; color: #202a5a; letter-spacing: -0.02em; }
.notice-list { display: flex; flex-direction: column; gap: 18px; }
.notice-item { display: flex; align-items: stretch; gap: 24px; padding: 20px; border: 1px solid #e5e8f0; border-radius: 18px; background: #fff; transition: all 0.2s ease; }
.notice-item:hover { border-color: #cfd5e6; box-shadow: 0 6px 18px rgba(32, 42, 90, 0.06); transform: translateY(-2px); }
.notice-thumb { flex: 0 0 180px; width: 180px; border-radius: 14px; overflow: hidden; background: #eef1f7; }
.notice-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.notice-content { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.notice-top { margin-bottom: 40px; }
.notice-title { margin: 0 0 8px; font-size: 20px; font-weight: 700; line-height: 1.4; color: #1f2b5c; letter-spacing: -0.02em; }
.notice-desc { margin: 0 0 16px; font-size: 15px; line-height: 1.7; color: #666;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.notice-meta { display: flex; gap: 18px; color: #888; font-size: 12px; }
.notice-meta span { background-repeat: no-repeat; background-position: left center; background-size: 14px; padding-left: 18px; }
.notice-date { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23888' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E"); }
.notice-views { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23888' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.notice-more { flex: 0 0 110px; display: flex; align-items: center; justify-content: center; }
.notice-more a { display: inline-flex; align-items: center; justify-content: center; min-width: 78px; height: 38px; padding: 0 16px; border-radius: 999px; background: #1b1464; color: #fff; font-size: 14px; font-weight: 600; transition: background 0.2s ease; }
.notice-item:hover .notice-more a { background: #32367e; }


@media (max-width: 1024px) {
  .board-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 978px) {
  .notice-title { font-size: 18px; }
  .notice-desc { font-size: 14px; }
  .page-title { font-size: 26px; margin-bottom: 22px; }
  .notice-item { flex-direction: column; gap: 18px; padding: 16px; }
  .notice-thumb { width: 100%; flex: none; }
  .notice-more { justify-content: flex-start; flex: 0 0 40px; }
}

@media (max-width: 600px) {
  .board-list { grid-template-columns: 1fr; }
}