/* ═══════════════════════════════════════════════════
   게시판 공통 — board.css
   Pages: support/notice.php, support/newsletter.php
   Prefix: bd-
═══════════════════════════════════════════════════ */

/* ── Hero ── */
.bd-hero {
  padding: calc(var(--header-h) + 40px) 0 0;
  background: var(--bg-1);
}
.bd-hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 60px 56px;
  box-sizing: border-box;
  border-radius: var(--r-xl);
  background: var(--us-blue-700);
  position: relative;
  overflow: hidden;
}
.bd-hero-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../imgs/reference/hero-bg.webp') right center / cover no-repeat;
  opacity: 0.12;
  z-index: 0;
}
.bd-hero-inner > * { position: relative; z-index: 1; }
.prod-breadcrumb { margin-bottom: 28px; }
.bd-hero-title {
  font-size: var(--fs-h1);
  font-weight: 700;
  color: #fff;
  letter-spacing: var(--ls);
  margin: 0 0 10px;
}
.bd-hero-desc {
  font-size: var(--fs-body-lg);
  color: rgba(255,255,255,0.65);
  letter-spacing: var(--ls);
  margin: 0;
}

/* ══════════════════════════════════════════════════
   공지사항 목록
══════════════════════════════════════════════════ */
.bd-notice-section {
  padding: 80px 0 100px;
  background: var(--bg-1);
}
.bd-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
  box-sizing: border-box;
}

.bd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-body);
  letter-spacing: var(--ls);
}
.bd-table thead tr {
  border-top: 2px solid var(--us-ink-900);
  border-bottom: 1px solid var(--border-subtle, rgba(0,0,0,0.1));
}
.bd-table th {
  padding: 14px 16px;
  font-size: var(--fs-body-sm);
  font-weight: 600;
  color: var(--us-ink-600);
  text-align: center;
  background: var(--bg-1);
}
.bd-th-subject { text-align: left !important; }
.bd-th-num   { width: 80px; }
.bd-th-date  { width: 120px; }
.bd-th-hit   { width: 80px; }

.bd-row {
  border-bottom: 1px solid var(--border-subtle, rgba(0,0,0,0.07));
  transition: background 0.15s;
}
.bd-row:hover { background: var(--bg-2, rgba(0,0,0,0.025)); }

.bd-table td {
  padding: 16px 16px;
  color: var(--us-ink-700);
  text-align: center;
  vertical-align: middle;
}
.bd-td-subject {
  text-align: left !important;
}
.bd-td-subject a {
  color: var(--us-ink-900);
  text-decoration: none;
  font-weight: 500;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 700px;
}
.bd-td-subject a:hover { color: var(--us-blue-700); }
.bd-td-date {
  font-size: var(--fs-body-sm);
  color: var(--us-ink-400);
}
.bd-td-hit {
  font-size: var(--fs-body-sm);
  color: var(--us-ink-400);
}
.bd-notice-badge {
  display: inline-block;
  background: var(--us-blue-700);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  letter-spacing: 0;
}

.bd-empty,
.bd-error {
  text-align: center;
  padding: 80px 0;
  color: var(--us-ink-400);
  font-size: var(--fs-body);
}

/* ── 페이지네이션 ── */
.bd-pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}
.bd-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--us-ink-200);
  background: transparent;
  color: var(--us-ink-500);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}
.bd-page-btn:hover {
  border-color: var(--us-blue-700);
  color: var(--us-blue-700);
}
.bd-page-btn.is-active {
  background: var(--us-blue-700);
  border-color: var(--us-blue-700);
  color: #fff;
}

/* ══════════════════════════════════════════════════
   공지사항 상세 뷰
══════════════════════════════════════════════════ */
.bd-view-section {
  padding: 80px 0 100px;
  background: var(--bg-1);
}
.bd-view-head {
  padding-bottom: 24px;
  border-bottom: 2px solid var(--us-ink-900);
  margin-bottom: 8px;
}
.bd-view-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--us-ink-900);
  letter-spacing: var(--ls);
  margin: 0 0 16px;
  line-height: 1.4;
}
.bd-view-meta {
  display: flex;
  gap: 24px;
  font-size: var(--fs-body-sm);
  color: var(--us-ink-400);
}
.bd-view-meta span { display: flex; align-items: center; gap: 6px; }
.bd-view-body {
  min-height: 300px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-subtle, rgba(0,0,0,0.1));
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--us-ink-700);
  letter-spacing: var(--ls);
  word-break: keep-all;
}
.bd-view-body img { max-width: 100%; height: auto; }
.bd-view-files {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle, rgba(0,0,0,0.07));
}
.bd-view-files-title {
  font-size: var(--fs-body-sm);
  font-weight: 600;
  color: var(--us-ink-500);
  margin: 0 0 10px;
}
.bd-view-files a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-body-sm);
  color: var(--us-blue-700);
  text-decoration: none;
  margin-right: 16px;
}
.bd-view-files a:hover { text-decoration: underline; }

/* 이전/다음 내비게이션 */
.bd-view-nav {
  margin-top: 0;
  border-bottom: 1px solid var(--border-subtle, rgba(0,0,0,0.07));
}
.bd-view-nav-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle, rgba(0,0,0,0.07));
  font-size: var(--fs-body-sm);
}
.bd-view-nav-label {
  flex-shrink: 0;
  width: 60px;
  font-weight: 600;
  color: var(--us-ink-400);
}
.bd-view-nav-row a {
  color: var(--us-ink-700);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bd-view-nav-row a:hover { color: var(--us-blue-700); }
.bd-view-nav-row.no-post { color: var(--us-ink-300); }

.bd-view-actions {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.bd-list-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--us-ink-200);
  background: transparent;
  color: var(--us-ink-600);
  font-size: var(--fs-body);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: var(--ls);
  transition: all 0.2s;
}
.bd-list-btn:hover {
  border-color: var(--us-blue-700);
  color: var(--us-blue-700);
}

/* ── 뉴스레터 뷰 대표 이미지 ── */
.bd-nl-cover {
  margin-bottom: 32px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--us-ink-100);
}
.bd-nl-cover img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* ══════════════════════════════════════════════════
   뉴스레터 갤러리
══════════════════════════════════════════════════ */
.bd-newsletter-section {
  padding: 80px 0 100px;
  background: var(--bg-1);
}
.bd-nl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}
.bd-nl-card {
  border-radius: var(--r-md);
  border: 1.5px solid var(--border-subtle, rgba(0,0,0,0.07));
  background: var(--bg-1);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: block;
}
.bd-nl-card:hover {
  border-color: var(--us-blue-700);
  box-shadow: 0 6px 24px rgba(0,80,200,0.08);
}
.bd-nl-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--us-ink-100);
}
.bd-nl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.bd-nl-card:hover .bd-nl-thumb img { transform: scale(1.04); }
.bd-nl-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--us-blue-700) 0%, #1a3fc4 100%);
}
.bd-nl-thumb-placeholder span {
  font-size: 32px;
  opacity: 0.3;
}
.bd-nl-body {
  padding: 20px 20px 24px;
}
.bd-nl-date {
  font-size: 12px;
  color: var(--us-ink-400);
  letter-spacing: var(--ls);
  margin: 0 0 8px;
}
.bd-nl-title {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--us-ink-900);
  letter-spacing: var(--ls);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .bd-hero-inner { padding: 40px 40px 48px; }
  .bd-inner      { padding: 0 40px; }
  .bd-nl-grid    { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 820px) {
  .bd-hero { padding: calc(var(--header-h) + 20px) 16px 0; }
  .bd-hero-inner { padding: 36px 24px; border-radius: var(--r-xl); }
  .bd-hero-title { font-size: clamp(24px, 6vw, 36px); }
  .bd-notice-section,
  .bd-view-section,
  .bd-newsletter-section { padding: 48px 0 64px; }
  .bd-inner { padding: 0 24px; }
  .bd-th-hit { display: none; }
  .bd-td-hit { display: none; }
  .bd-th-num { width: 56px; }
  .bd-th-date { width: 90px; }
  .bd-td-subject a { max-width: none; }
  .bd-view-title { font-size: var(--fs-h4); }
  .bd-nl-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 480px) {
  .bd-inner { padding: 0 20px; }
  .bd-hero-inner { padding: 28px 20px; }
  .bd-table th, .bd-table td { padding: 12px 10px; }
  .bd-view-meta { flex-direction: column; gap: 8px; }
}
