/* 게시판 */

#jb-board {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* 상단 */

.jb-board-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.jb-board-title h2 {
  font-size: 34px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.jb-board-title p {
  font-size: 15px;
  color: #777;
}

.jb-board-title strong {
  color: #111;
}

/* 글쓰기 */

.jb-write-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  transition: .2s;
}

.jb-write-btn:hover {
  background: #1d4ed8;
}

/* 카테고리 */

.jb-board-cate {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.jb-board-cate a {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.jb-board-cate .on {
  background: #111;
  border-color: #111;
  color: #fff;
}

/* 리스트 */

.jb-board-list {
  background: #fff;
  border-top: 2px solid #111;
}

.jb-board-item {
  display: block;
  padding: 24px 6px;
  border-bottom: 1px solid #eee;
  transition: .2s;
}

.jb-board-item:hover {
  background: #fafafa;
}

.jb-board-item.is-notice {
  background: #fcfcfc;
}

/* 공지 */

.jb-badge-notice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fee2e2;
  color: #dc2626;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* 제목 */

.jb-board-subject {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  line-height: 1.5;
  word-break: keep-all;
}

.jb-comment-count {
  color: #2563eb;
  font-size: 15px;
  margin-left: 4px;
}

.jb-badge-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
  vertical-align: middle;
}

/* 메타 */

.jb-board-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 14px;
  color: #888;
}

.jb-board-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ccc;
}

/* 빈글 */

.jb-empty {
  padding: 80px 20px;
  text-align: center;
  color: #888;
  font-size: 15px;
}

/* 페이지 */

.jb-pagination {
  margin-top: 40px;
  text-align: center;
}

/* 검색 */

.jb-board-search {
  margin-top: 40px;
}

.jb-board-search form {
  display: flex;
  gap: 10px;
}

.jb-board-search select,
.jb-board-search input {
  height: 48px;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 0 16px;
  background: #fff;
  font-size: 14px;
}

.jb-board-search select {
  width: 140px;
}

.jb-board-search input {
  flex: 1;
}

.jb-board-search button {
  width: 100px;
  border: none;
  border-radius: 12px;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

/* 모바일 */

@media (max-width:768px) {

  #jb-board {
    padding: 24px 16px 50px;
  }

  .jb-board-top {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
  }

  .jb-board-title h2 {
    font-size: 28px;
  }

  .jb-board-title p {
    font-size: 14px;
  }

  .jb-write-btn {
    width: 100%;
    height: 50px;
  }

  .jb-board-item {
    padding: 20px 4px;
  }

  .jb-board-subject {
    font-size: 17px;
  }

  .jb-board-meta {
    margin-top: 10px;
    font-size: 13px;
  }

  .jb-board-search form {
    flex-direction: column;
  }

  .jb-board-search select,
  .jb-board-search input,
  .jb-board-search button {
    width: 100%;
    height: 52px;

    padding: 0 16px;

    font-size: 14px;

    line-height: 1;

    box-sizing: border-box;
  }

  .jb-board-search input {
    line-height: 52px !important;
  }

}


/* =========================================
   BOARD WRITE 2.0
========================================= */

#jb-write {
  padding: 32px 20px 60px;
  background: #f5f7fb;
}

.jb-write-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 4px;
}

/* 상단 */

.jb-write-header {
  margin-bottom: 32px;
}

.jb-write-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.jb-write-header p {
  font-size: 15px;
  color: #777;
}

/* 그룹 */

.jb-form-group {
  margin-bottom: 24px;
}

.jb-form-group label {
  display: block;
  margin-bottom: 10px;

  font-size: 15px;
  font-weight: 700;
  color: #111;
}

/* input */

.jb-input {
  width: 100%;
  height: 52px;

  padding: 0 16px;

  border: 1px solid #dbe2ea;
  border-radius: 10px;

  background: #fff;

  font-size: 15px;
  color: #111;

  box-sizing: border-box;

  transition: .2s;
}

.jb-input:focus {
  outline: none;

  border-color: #2563eb;

  box-shadow:
    0 0 0 3px rgba(37, 99, 235, .08);
}

/* 에디터 */

.jb-editor {
  padding: 16px;

  border: 1px solid #e5e7eb;
  border-radius: 10px;

  background: #fff;

  box-sizing: border-box;
}

/* 파일 */

.jb-file {
  width: 100%;

  padding: 12px;

  border: 1px dashed #cbd5e1;
  border-radius: 10px;

  background: #fff;

  box-sizing: border-box;
}

.jb-file-del {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-top: 12px;

  font-size: 14px;
  color: #666;
}

/* 버튼 */

.jb-write-btns {
  display: flex;
  gap: 12px;

  margin-top: 36px;
}

.jb-write-btn-outline,
.jb-write-btn-primary {
  flex: 1;

  height: 54px;

  border: none;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 15px;
  font-weight: 700;

  transition: .2s;

  cursor: pointer;
}

/* 취소 */

.jb-write-btn-outline {
  background: #e5e7eb;
  color: #111827;

  border: 1px solid #d1d5db;
}

/* 등록 */

.jb-write-btn-primary {
  background: #2563eb;
  color: #fff;
}

/* hover */

.jb-write-btn-outline:hover {
  background: #dbe2ea;
}

.jb-write-btn-primary:hover {
  background: #1d4ed8;
}


/* 모바일 */

@media(max-width:768px) {

  #jb-write {
    padding: 20px 16px 40px;
  }

  .jb-write-header {
    margin-bottom: 24px;
  }

  .jb-write-header h2 {
    font-size: 26px;
  }

  .jb-write-header p {
    font-size: 14px;
  }

  .jb-form-group {
    margin-bottom: 20px;
  }

  .jb-form-group label {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .jb-input {
    height: 50px;
    font-size: 14px;
  }

  .jb-editor {
    border-radius: 10px;
  }

  .jb-write-btns {
    display: flex;
    flex-direction: column;

    gap: 12px;

    margin-top: 28px;
  }

  .jb-write-btn-outline,
  .jb-write-btn-primary {
    width: 100%;
    min-height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 18px;

    font-size: 15px;
    font-weight: 700;

    box-sizing: border-box;
  }

}


/* =========================================
   BOARD VIEW 2.0
========================================= */

#jb-view {
  padding: 40px 20px 80px;
  background: #f5f7fb;
}

.jb-view-inner {
  max-width: 980px;
  margin: 0 auto;
}

/* 헤더 */

.jb-view-header {
  padding-bottom: 28px;
  margin-bottom: 34px;

  border-bottom: 1px solid #e5e7eb;
}

/* 카테고리 */

.jb-view-cate {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 34px;

  padding: 0 14px;

  margin-bottom: 18px;

  border-radius: 999px;

  background: #2563eb;
  color: #fff;

  font-size: 13px;
  font-weight: 700;
}

/* 제목 */

.jb-view-title {
  font-size: 38px;
  line-height: 1.45;
  font-weight: 800;

  letter-spacing: -1px;

  color: #111827;

  word-break: keep-all;
}

/* 메타 */

.jb-view-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 10px;

  margin-top: 18px;

  font-size: 14px;
  color: #777;
}

.jb-view-meta .dot {
  width: 4px;
  height: 4px;

  border-radius: 50%;

  background: #d1d5db;
}

/* 이미지 */

.jb-view-image {
  margin-bottom: 32px;
}

.jb-view-image img {
  width: 100% !important;
  height: auto;

  border-radius: 16px;

  display: block;
}

/* =========================================
   본문
========================================= */

.jb-view-content {
  padding: 40px;

  border: 1px solid #e5e7eb;
  border-radius: 18px;

  background: #fff;

  font-size: 17px;
  line-height: 1.8;
  color: #222;

  word-break: keep-all;

  box-sizing: border-box;
}

/* 본문 간격 정리 */


.jb-view-content p {
  margin: 0 0 10px;
}

.jb-view-content p:last-child {
  margin-bottom: 0;
}

/* 스마트에디터 빈 줄 */

.jb-view-content p:has(br:only-child) {
  margin: 0;
  height: 8px;
}

.jb-view-content br {
  display: block;
  content: "";
  margin-top: 8px;
}

.jb-view-content *:first-child {
  margin-top: 0 !important;
}

.jb-view-content *:last-child {
  margin-bottom: 0 !important;
}

.jb-view-content img {
  max-width: 100%;
  height: auto;

  border-radius: 12px;
}

.jb-view-content iframe {
  max-width: 100%;
}

/* =========================================
   첨부파일
========================================= */

.jb-view-file {
  margin-top: 36px;

  padding: 28px;

  border: 1px solid #e5e7eb;
  border-radius: 18px;

  background: #fff;
}

.jb-view-file h3 {
  font-size: 18px;
  font-weight: 700;

  margin-bottom: 18px;

  color: #111827;
}

.jb-view-file ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jb-view-file li {
  list-style: none;
}

.jb-view-file a {
  display: flex;
  align-items: center;

  min-height: 52px;

  padding: 0 18px;

  border: 1px solid #e5e7eb;
  border-radius: 12px;

  background: #fafafa;

  color: #111827;
  font-size: 15px;
  font-weight: 600;

  text-decoration: none;

  transition: .2s;

  box-sizing: border-box;
}

.jb-view-file a:hover {
  border-color: #2563eb;
  background: #fff;

  color: #2563eb;
}

/* =========================================
   버튼
========================================= */

.jb-view-btns {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  margin-top: 36px;
}

.jb-view-btn-left,
.jb-view-btn-right {
  display: flex;
  gap: 12px;
}

/* 공통 버튼 */

.jb-view-btns a {
  min-width: 120px;
  height: 52px;

  padding: 0 22px;

  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 15px;
  font-weight: 700;

  text-decoration: none;

  transition: .2s;

  box-sizing: border-box;
}

/* 기본 */

.jb-btn-outline {
  border: 1px solid #d1d5db;

  background: #fff;
  color: #111827;
}

.jb-btn-outline:hover {
  background: #f3f4f6;
}

/* 메인 */

.jb-btn-primary {
  background: #2563eb;
  color: #fff;
}

.jb-btn-primary:hover {
  background: #1d4ed8;
}

/* 삭제 */

.jb-btn-delete {
  background: #ef4444;
  color: #fff;
}

.jb-btn-delete:hover {
  background: #dc2626;
}

/* =========================================
   모바일
========================================= */

@media(max-width:768px) {

  #jb-view {
    padding: 24px 16px 50px;
  }

  .jb-view-header {
    padding-bottom: 22px;
    margin-bottom: 28px;
  }

  .jb-view-cate {
    height: 30px;
    padding: 0 12px;

    margin-bottom: 14px;

    font-size: 12px;
  }

  .jb-view-title {
    font-size: 28px;
    line-height: 1.45;
  }

  .jb-view-meta {
    gap: 8px;

    margin-top: 14px;

    font-size: 13px;
  }

  .jb-view-image {
    margin-bottom: 24px;
  }

  .jb-view-image img {
    border-radius: 12px;
  }

  .jb-view-content {
    padding: 24px 20px;

    border-radius: 16px;

    font-size: 15px;
    line-height: 1.75;
  }

  .jb-view-content p {
    margin: 0 0 16px;
  }

  .jb-view-content br {
    margin-top: 6px;
  }

  .jb-view-file {
    margin-top: 28px;

    padding: 22px 18px;

    border-radius: 16px;
  }

  .jb-view-file h3 {
    font-size: 16px;
    margin-bottom: 14px;
  }

  .jb-view-file a {
    min-height: 50px;
    font-size: 14px;
  }

  .jb-view-btns {
    flex-direction: column;

    margin-top: 28px;
  }

  .jb-view-btn-left,
  .jb-view-btn-right {
    width: 100%;
  }

  .jb-view-btn-left a,
  .jb-view-btn-right a {
    flex: 1;
    height: 52px;
  }

}

/* =========================================
   COMMENT
========================================= */

/* 댓글 영역 */

#bo_vc {
  margin-top: 40px;

  padding: 32px;

  border: 1px solid #e5e7eb;
  border-radius: 18px;

  background: #fff;

  box-sizing: border-box;
}

/* 제목 */

#bo_vc h2,
#bo_vc_w h2 {
  font-size: 24px;
  font-weight: 800;

  margin-bottom: 24px;

  color: #111827;
}

/* 댓글 item */

#bo_vc article {
  padding: 22px 0;

  border-top: 1px solid #f1f5f9;
}

#bo_vc article:first-of-type {
  border-top: none;
  padding-top: 0;
}

/* 작성자 */

#bo_vc header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 10px;

  margin-bottom: 14px;

  font-size: 14px;
  color: #777;
}

/* 작성자명 */

#bo_vc header strong,
#bo_vc .sv_member {
  color: #111827;
  font-weight: 700;
}

/* 내용 */

.cmt_contents {
  font-size: 15px;
  line-height: 1.8;
  color: #222;
}

/* 액션버튼 */

.bo_vc_act {
  display: flex;
  gap: 8px;

  margin-top: 16px;
}

.bo_vc_act a {
  height: 38px;

  padding: 0 14px;

  border: 1px solid #dbe2ea;
  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #fff;

  font-size: 13px;
  font-weight: 600;

  color: #444;

  text-decoration: none;

  transition: .2s;
}

.bo_vc_act a:hover {
  border-color: #2563eb;
  color: #2563eb;
}

/* =========================================
   댓글목록
========================================= */

#bo_vc {
  width: 100%;
  max-width: 980px;

  margin: 40px auto 0;

  padding: 32px;

  border: 1px solid #e5e7eb;
  border-radius: 18px;

  background: #fff;

  box-sizing: border-box;

  overflow: hidden;
}

/* 제목 */

#bo_vc h2 {
  font-size: 24px;
  font-weight: 800;

  margin-bottom: 24px;

  color: #111827;
}

/* 댓글 item */

.jb-comment-item {
  padding: 24px 0;

  border-top: 1px solid #f1f5f9;

  box-sizing: border-box;
}

.jb-comment-item:first-of-type {
  padding-top: 0;
  border-top: none;
}

/* 헤더 */

.jb-comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  margin-bottom: 14px;
}

.jb-comment-user {
  font-size: 15px;
  font-weight: 700;

  color: #111827;
}

.jb-comment-date {
  font-size: 13px;
  color: #888;
}

/* 내용 */

.cmt_contents {
  font-size: 15px;
  line-height: 1.8;

  color: #222;

  word-break: keep-all;
}

.cmt_contents p {
  margin: 0 0 10px;
}

.cmt_contents p:last-child {
  margin-bottom: 0;
}

/* 액션 */

.bo_vc_act {
  display: flex;
  gap: 8px;

  margin-top: 16px;
}

.bo_vc_act a {
  height: 38px;

  padding: 0 14px;

  border: 1px solid #dbe2ea;
  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #fff;

  font-size: 13px;
  font-weight: 600;

  color: #555;

  text-decoration: none;

  transition: .2s;
}

.bo_vc_act a:hover {
  border-color: #2563eb;
  color: #2563eb;
}

/* 댓글 없음 */

#bo_vc_empty {
  padding: 8px 0;

  font-size: 15px;
  color: #888;
}

/* =========================================
   댓글쓰기
========================================= */

#bo_vc_w {
  width: 100%;
  max-width: 980px;

  margin: 24px auto 0;

  padding: 32px;

  border: 1px solid #e5e7eb;
  border-radius: 18px;

  background: #fff;

  box-sizing: border-box;

  overflow: hidden;
 
}


/* 제목 */

#bo_vc_w h2 {
  font-size: 24px;
  font-weight: 800;

  margin-bottom: 24px;

  color: #111827;
}

/* label */

.jb-comment-label {
  display: block;

  margin-bottom: 10px;

  font-size: 15px;
  font-weight: 700;

  color: #111827;
}

/* textarea */

#bo_vc_w textarea {
  width: 100% !important;
  min-height: 140px;

  padding: 16px;

  border: 1px solid #dbe2ea;
  border-radius: 12px;

  background: #fff;

  font-size: 15px;
  line-height: 1.7;

  resize: none;

  box-sizing: border-box;

  appearance: none;
  -webkit-appearance: none;
}

#bo_vc_w textarea:focus {
  outline: none;

  border-color: #2563eb;

  box-shadow:
    0 0 0 3px rgba(37, 99, 235, .08);
}

/* 하단 */

.jb-comment-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  margin-top: 18px;
}

/* 비밀글 */

.jb-comment-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jb-comment-left label {
  font-size: 14px;
  color: #555;
}

/* 등록버튼 */

#bo_vc_w .btn_submit {
  min-width: 120px;
  height: 50px;

  padding: 0 20px;

  border: none;
  border-radius: 12px;

  background: #2563eb;
  color: #fff;

  font-size: 15px;
  font-weight: 700;

  cursor: pointer;

  transition: .2s;

  flex-shrink: 0;
}

#bo_vc_w .btn_submit:hover {
  background: #1d4ed8;
}

/* =========================================
   모바일
========================================= */

@media(max-width:768px) {

  #bo_vc,
  #bo_vc_w {
    max-width: 100%;

    margin-left: 0;
    margin-right: 0;

    padding: 24px 18px;

    border-radius: 16px;
  }

  #bo_vc {
    margin-top: 28px;
  }

  #bo_vc_w {
    margin-top: 20px;
  }

  #bo_vc h2,
  #bo_vc_w h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .jb-comment-head {
    flex-direction: column;
    align-items: flex-start;

    gap: 4px;
  }

  .jb-comment-user {
    font-size: 14px;
  }

  .jb-comment-date {
    font-size: 12px;
  }

  .cmt_contents {
    font-size: 14px;
    line-height: 1.75;
  }

  #bo_vc_w textarea {
    min-height: 120px;

    padding: 14px;

    font-size: 14px;
  }

  .jb-comment-bottom {
    flex-direction: column;
    align-items: stretch;

    gap: 14px;
  }

  .jb-comment-left {
    justify-content: flex-start;
  }

  #bo_vc_w .btn_submit {
    width: 100%;
    min-width: 100%;

    height: 52px;

    font-size: 15px;
  }

}