/* =========================================================
   Board Detail
   ========================================================= */
.board-detail-page .content {
  flex: 1;
  padding-bottom: 40px;
}

.board-detail {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #d6d6d6;
  border-radius: 20px;
  padding: 36px 40px;
}

/* 제목 */
.board-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* 메타 정보 */
.board-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: #666;
  border-bottom: 1px solid #d6d6d6;
  padding-bottom: 12px;
  margin-bottom: 15px;
}

/* 본문 */
.board-content {
  font-size: 15px;
  line-height: 1.7;
  color: #222;
  flex: 1;
}

.board-content p {
  margin-bottom: 16px;
}

/* =========================
   첨부파일
   ========================= */

.board-attach {
  margin-bottom: 15px;
  padding: 20px 24px;
  background: #f8fafc; 
  border-radius: 8px;
}

.board-attach.is-empty {
  display: none;
}

/* 제목 + 아이콘 */
.attach-title {
  display: flex;
  align-items: center;
  gap: 6px;               /* 아이콘과 텍스트 간격 */
  font-size: 14px;
  font-weight: 600;
  color: #004fac;
}

/* 아이콘 */
.attach-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.attach-icon img {
  width: 20px;
  height: 20px;
}

/* 파일 링크 */
.attach-title a {
  font-size: 14px;
  color: #666;
  text-decoration: none;
  font-weight: 400;
}

.board-attach ul li a:hover {
  text-decoration: underline;
}

/* 이전글 / 다음글 영역 */
.board-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-top: 110px;
  border-top: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
}

.board-nav-item.disabled {
  color: #aaa;
  border-color: #e5e7eb;
  background: #f9fafb;
  pointer-events: none;   /* 클릭 불가 */
  cursor: default;
}

/* 화살표도 흐리게 */
.board-nav-item.disabled::before,
.board-nav-item.disabled::after {
  color: #ccc;
}

/* 공통 버튼 */
.board-nav-item {
  display: inline-flex;            /* 핵심: 텍스트 너비만큼 */
  align-items: center;
  padding: 10px 18px;
  font-size: 14px;
  color: #888;
  border: 1px solid #d6d6d6;
  border-radius: 999px;            /* pill 형태 */
  background: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* hover */
.board-nav-item:hover {
  background: #f1f5f9;
  border-color: #004fac;
  color: #004fac;
}

/* 방향 아이콘 느낌 (선택) */
.board-nav-item.prev::before {
  content: "←";
  margin-right: 6px;
}

.board-nav-item.next::after {
  content: "→";
  margin-left: 6px;
}

/* 하단 버튼 */
.board-actions{
  margin-top: 30px;
  text-align: center;
}

.detail-btn {
  display: inline-block;
  padding: 5px 40px;
  background: #004fac;
  color: #ffffff;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 600;
}

.detail-btn:hover {
  background: #003b8a;
}

/* 모바일 */
@media (max-width: 768px) {
  .board-detail {
    padding: 24px 20px;
  }

  .board-title {
    font-size: 18px;
  }

  .board-nav {
    justify-content: center;
    gap: 16px;
  }

  .board-nav-item.next {
    justify-content: flex-start;
    text-align: left;
  }
}
