/* Archive Page Shell Overrides */
.archive-page .archive-hero-bg {
  background-image: url('/front/img/archive/hero-bg.jpg');
}

.archive-page .footprints-hero-bg {
  background-image: url('/front/img/archive/hero-bg.jpg');
}

.archive-page .page-hero-bg::before {
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.70) 0%,
    rgba(0,0,0,0.40) 60%,
    rgba(0,0,0,0.10) 100%
  );
}

.archive-page .archive-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 40px 80px;
}

/* Card Grid */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
  margin-bottom: 60px;
}

/* Archive Card */
.archive-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  cursor: pointer;
}
.archive-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transform: translateY(-4px);
}

/* Card Thumbnail */
.card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8eaf0;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.archive-card:hover .card-thumb img {
  transform: scale(1.04);
}
.card-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d0d5e0;
  font-size: 13px;
  color: #888;
}

/* Card Badge */
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
  z-index: 1;
}
.card-badge--news    { background: #4b7fdf; }
.card-badge--column  { background: #0d9488; }
.card-badge--pr      { background: #d97706; }
.card-badge--event   { background: #7c3aed; }

/* Card Body */
.card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.card-date {
  font-size: 12px;
  color: var(--color-gray-light);
  font-family: var(--font-en);
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}
.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.5;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}
.card-desc {
  font-size: 13px;
  color: var(--color-gray);
  line-height: 1.7;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 18px;
}
.card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s, color 0.2s;
  align-self: flex-start;
}
.card-link:hover {
  color: #1a3e8f;
  gap: 9px;
}
.card-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.board-title-line,
.card-link-icon {
  display: inline-flex;
  align-items: center;
}

.board-title-line {
  gap: 6px;
}

.board-link-icon,
.card-link-icon {
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #1542b2;
  border-radius: 999px;
  flex: 0 0 30px;
  background: rgba(21, 66, 178, 0.12);
  border: 1px solid rgba(21, 66, 178, 0.14);
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.board-link-icon:hover,
.card-link-icon:hover {
  color: #0f3a9d;
  background: rgba(21, 66, 178, 0.18);
  border-color: rgba(21, 66, 178, 0.24);
  transform: translateY(-1px);
}

.board-link-icon svg,
.card-link-icon svg {
  width: 18px;
  height: 18px;
}

.card-link-icon--news {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  color: #264aa5;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.card-link-icon--news:hover {
  color: #132b66;
  background: transparent;
}

.card-link-icon--news img {
  width: 42px;
  height: 34px;
  display: block;
  object-fit: contain;
}

/* Pagination */
.archive-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 12px;
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray-dark);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  text-decoration: none;
}
.pagination-btn:hover {
  background: var(--color-bg-light);
  border-color: #c0c8d8;
  color: var(--color-dark);
}
.pagination-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 700;
  pointer-events: none;
}
.pagination-btn.disabled {
  color: var(--color-gray-light);
  cursor: default;
  pointer-events: none;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 14px;
  color: var(--color-gray-light);
  cursor: default;
  user-select: none;
}

/* Board Table (그리드형) */
.board-wrap {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 40px;
}
.board-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* 컬럼 너비 */
.board-table col.col-num    { width: 90px; }
.board-table col.col-title  { width: auto; }
.board-table col.col-author { width: 120px; }
.board-table col.col-date   { width: 140px; }

/* 헤더 */
.board-table thead th {
  padding: 13px 16px;
  background: var(--color-bg-light);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gray-dark);
  text-align: center;
  border-top: 1.5px solid var(--color-primary);
  border-bottom: 1px solid var(--color-border);
}

/* 데이터 행 */
.board-row td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--color-gray-dark);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  height: 52px;
}
.board-num   { text-align: center; color: var(--color-gray-light); }
.board-title { text-align: center; }
.board-title-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
}
.board-title a {
  color: var(--color-gray-dark);
  transition: color 0.18s;
  display: inline-block;
  line-height: 1.35;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.board-title a:hover { color: var(--color-primary); }
.board-badge.badge-attach {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #eef3ff;
  border: 1px solid #cfdcff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.board-badge.badge-attach img {
  width: 11px;
  height: 11px;
  object-fit: contain;
  display: block;
}
.board-author { text-align: center; color: var(--color-gray); }
.board-date { text-align: center; color: var(--color-gray); }

/* 빈 행 */
.board-row--empty td { color: transparent; }

/* Search Bar (그리드형) */
.board-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  justify-content: center;
}
.board-search-select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px 0 0 4px;
  font-size: 13px;
  font-family: var(--font-ko);
  color: var(--color-gray-dark);
  background: var(--color-white);
  cursor: pointer;
  appearance: auto;
  min-width: 90px;
}
.board-search-select:focus { outline: none; border-color: var(--color-primary); }

.board-search-input-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 340px;
  border: 1px solid var(--color-border);
  border-radius: 0 4px 4px 0;
  overflow: hidden;
  background: var(--color-white);
  transition: border-color 0.18s;
}
.board-search-input-wrap:focus-within { border-color: var(--color-primary); }

.board-search-input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: none;
  outline: none;
  font-size: 13px;
  font-family: var(--font-ko);
  color: var(--color-gray-dark);
  background: transparent;
}
.board-search-input::placeholder { color: var(--color-gray-light); }

.board-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-gray);
  flex-shrink: 0;
  transition: color 0.18s;
}
.board-search-btn:hover { color: var(--color-primary); }

/* Empty State */
.archive-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--color-gray-light);
}
.archive-empty p {
  font-size: 15px;
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
  }
}

@media (max-width: 768px) {
  .archive-page .archive-content {
    padding: 36px 24px 60px;
  }
  .archive-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .archive-page .section-heading {
    font-size: 22px;
  }
  .board-table col.col-num    { width: 60px; }
  .board-table col.col-author { width: 80px; }
  .board-table col.col-date   { width: 96px; }
  .board-row td { font-size: 13px; padding: 12px 10px; height: 48px; }
  .board-search { flex-wrap: wrap; gap: 8px; }
  .board-search-select { border-right: 1px solid var(--color-border); border-radius: 4px; }
  .board-search-input-wrap { border-radius: 4px; max-width: 100%; flex: 1 1 200px; }
}
