/* =============================================
   게시글 상세 페이지 공통 스타일
   ============================================= */

/* 상단 히어로 */
.gd-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 48px 0 36px;
  color: #000;
}

.gd-breadcrumb {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 18px;
}

.gd-breadcrumb a {
  color: rgba(0, 0, 0, 0.8);
  text-decoration: none;
}

.gd-breadcrumb a:hover {
  text-decoration: underline;
}

.gd-breadcrumb span {
  margin: 0 8px;
  opacity: 0.6;
}

.gd-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #000;
}

.gd-hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.3;
  color: #000;
  margin: 0;
  padding: 48px 0 48px;
  word-break: keep-all;
  text-align: center;
}

.gd-hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.6);
}

.gd-hero-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
}

/* 본문 영역 */
.bd-wrap {
  background: #fff;
  padding: 60px 0 80px;
}

.bd-article {
  width: 100%;
}

.bd-content {
  padding: 30px 0 38px;
  min-height: 220px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--gray-700);
  word-break: keep-all;
  border-bottom: 1px solid #ebebeb;
}

.bd-content p {
  margin: 0 0 1em;
}

/* 첨부파일 */
.bd-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 14px 18px;
}

.bd-file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.bd-file-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.bd-file-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bd-file-size {
  font-size: 0.76rem;
  color: var(--gray-400);
  margin-top: 2px;
}

.bd-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}

.bd-download:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* 이전 / 다음 글 */
.bd-nav {
  margin-top: 28px;
  border-top: 1px solid var(--gray-200);
}

.bd-nav a,
.bd-nav span.empty {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 6px;
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none;
  color: var(--gray-700);
  transition: background 0.15s;
}

.bd-nav a:hover {
  background: var(--gray-50);
}

.bd-nav a:hover .bd-nav-title {
  color: var(--primary);
}

.bd-nav span.empty {
  color: var(--gray-400);
  cursor: default;
}

.bd-nav-label {
  flex-shrink: 0;
  width: 64px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-400);
}

.bd-nav-title {
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s;
}

/* 목록으로 — danbipay .btnbox / .btn-violet 스타일 */
.bd-actions {
  padding: 45px 0 35px;
  text-align: center;
}

.bd-list-btn {
  display: inline-block;
  padding: 17px 63px;
  background: #fff;
  color: #6b3cec;
  border: 1px solid #6b3cec;
  border-radius: 0;
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.bd-list-btn:hover {
  background: #6b3cec;
  color: #fff;
  opacity: 0.9;
}

/* 게시글 제목/메타 — danbipay .tbl-tit 스타일 */
.bd-tit {
  width: 100%;
  padding: 19px 0 20px 0;
  border-top: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
  margin-top: 30px;
}

.bd-tit p {
  font-size: 21px;
  font-weight: 500;
  color: #222;
  line-height: 1.4;
  word-break: keep-all;
}

.bd-tit span {
  position: relative;
  display: inline-block;
  font-size: 15px;
  color: #8a8a8a;
  margin-top: 8px;
}

.bd-tit span + span {
  margin-left: 15px;
  padding-left: 17px;
}

.bd-tit span + span::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 0;
  width: 1px;
  height: 14px;
  background: #ccc;
}

@media (max-width: 768px) {
  .gd-hero {
    padding: 36px 0 32px;
  }

  .gd-hero h1 {
    font-size: 1.6rem;
    padding: 32px 0 32px;
  }

  .bd-content {
    font-size: 0.95rem;
  }

  .bd-file {
    flex-direction: column;
    align-items: stretch;
  }

  .bd-download {
    justify-content: center;
  }

  .bd-nav-label {
    width: 52px;
    font-size: 0.78rem;
  }

  .bd-tit {
    margin-bottom: 24px;
  }

  .bd-tit p {
    font-size: 18px;
  }

  .bd-actions {
    padding: 35px 0 25px;
  }

  .bd-list-btn {
    font-size: 15px;
    padding: 13px 40px;
  }
}