/* ==========================================================================
   회사소개 > 홍보자료 (Figma 1:5557)
   Hero/stage: sp-common.css + sp-hero.js
   This file: section tabs -> 보도자료 board -> 홍보 영상 -> CI -> 카탈로그
   ========================================================================== */
.news-page {
  --news-line: #ddd;
  --news-border: #ebedf1;
  --news-gray: #f8f8f8;
}

/* ---------- Section tabs (1:5621) ---------- */
.news-tabs {
  margin-top: clamp(64px, 6.25vw, 120px);
  border-bottom: 1px solid var(--news-line);
  background: #fff;
}
/* data-sp-spy makes the bar sticky; section anchors land below it */
.news-page .news-section { scroll-margin-top: 80px; }
.news-tabs-inner {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.news-tabs-inner::-webkit-scrollbar { display: none; }
.news-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(96px, 7.292vw, 140px);
  padding: 16px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  font-size: clamp(16px, 1.042vw, 20px);
  line-height: 1.6;
  letter-spacing: -0.03em;
  color: #999;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.news-tab:hover { color: var(--sp-navy); }
.news-tab.is-active {
  border-bottom-color: var(--sp-navy);
  font-weight: 700;
  color: var(--sp-navy);
}

/* Stage fallback image: set here, not as an inline --sp-stage-img var,
   because a url() inside a custom property resolves against sp-common.css. */
.news-page .news-stage::before { background-image: url('../../img/about/news/hero.jpg'); }

/* ---------- Sections ---------- */
.news-section {
  padding-block: clamp(64px, 6.25vw, 120px);
  scroll-margin-top: 80px;
}
/* Cancel style.css `section:not(.hero)… > *` 1440 shell so the content runs 1600 wide like the tabs */
.news-page section.news-section > .sp-container {
  width: min(1600px, 100% - 2 * clamp(16px, 8.333vw, 160px));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}
.news-section--board { padding-top: clamp(48px, 4.167vw, 80px); }
.news-section--gray { background: var(--news-gray); }
.news-page .news-title {
  margin-bottom: 30px;
  font-weight: 600;
  font-size: clamp(28px, 2.083vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: #111;
}

/* ---------- 보도자료 board (1:5630) ---------- */
.news-board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.news-page .news-board-head .news-title { margin-bottom: 0; }
.news-search {
  position: relative;
  flex: 0 1 400px;
  display: flex;
  align-items: center;
  height: 56px;
  border: 1.5px solid var(--sp-navy);
  border-radius: 8px;
  background: #fff;
}
.news-search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0 0 0 16px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.015em;
  color: #111;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.news-search-input::placeholder { color: #999; }
.news-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.news-search:focus-within { box-shadow: 0 0 0 3px rgba(0, 33, 101, 0.12); }
.news-search-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.news-search-btn img { width: 24px; height: 24px; }

.news-board-body {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 5.208vw, 100px);
}
.news-list {
  list-style: none;
  border-top: 1px solid #666;
}
.news-row { border-bottom: 1px solid var(--news-line); }
.news-row-link {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 96px;
  padding: 20px clamp(16px, 1.667vw, 32px);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s;
}
.news-row-link:hover { background: rgba(0, 33, 101, 0.03); }
.news-row-link:hover .news-row-title { color: var(--sp-navy); }
.news-row-cat {
  flex: 0 0 112px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  color: #666;
}
.news-row-title {
  flex: 1 1 0;
  min-width: 0;
  font-weight: 600;
  font-size: clamp(16px, 1.042vw, 20px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #333;
  word-break: keep-all;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}
.news-row-date {
  flex: 0 1 440px;
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: #999;
  text-align: right;
  white-space: nowrap;
}
.news-empty {
  padding: 80px 16px;
  border-bottom: 1px solid var(--news-line);
  font-size: 16px;
  color: #999;
  text-align: center;
}

/* Pagination (1:5723) */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.news-pagination:empty { display: none; }
.news-page-arrows,
.news-page-nums {
  display: flex;
  align-items: center;
  gap: 6px;
}
.news-page-arrow,
.news-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}
.news-page-arrow img { width: 18px; height: 18px; }
.news-page-arrow.is-prev img { transform: scaleX(-1); }
.news-page-arrow:disabled { opacity: 0.4; cursor: default; }
.news-page-num {
  min-width: 20px;
  height: 20px;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.04em;
  color: #999;
}
.news-page-num:hover { color: var(--sp-navy); }
.news-page-num.is-active { font-weight: 600; color: var(--sp-navy); cursor: default; }

/* ---------- 홍보 영상 (1:5742) ---------- */
.news-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 1.667vw, 32px);
}
.news-video-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--news-border);
  border-radius: 20px;
  background: #fff;
}
.news-video-embed {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #888;
}
.news-video-caption {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(20px, 1.667vw, 32px);
}
.news-video-label {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  color: var(--sp-navy);
}
.news-video-title {
  font-weight: 600;
  font-size: clamp(18px, 1.25vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #333;
  word-break: keep-all;
}

/* ---------- CI (1:5757) ---------- */
.news-ci-panel {
  overflow: hidden;
  border: 1px solid var(--news-border);
  border-radius: 20px;
  background: #fff;
}
.news-ci-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(220px, 20.833vw, 400px);
  padding: 24px;
  border-bottom: 1px solid var(--news-border);
  background:
    url('../../img/about/news/ci-grid.svg') calc(50% - 0.5px) calc(50% + 0.5px) / 1878px 1138.9px no-repeat,
    rgba(0, 33, 101, 0.04);
}
.news-ci-logo img {
  width: clamp(200px, 23.75vw, 456px);
  height: auto;
  aspect-ratio: 316 / 190;
}
.news-page .news-ci-desc {
  padding: clamp(24px, 2.083vw, 40px);
  font-size: clamp(15px, 0.9375vw, 18px);
  line-height: 1.7;
  letter-spacing: -0.015em;
  color: #333;
  word-break: keep-all;
}

/* ---------- 카탈로그 (1:5833, 1:5847) ---------- */
.news-catalog-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 1.667vw, 32px);
  border: 1px solid var(--news-border);
  border-radius: 20px;
  background: #fff;
}
.news-catalog-info {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.083vw, 40px);
  min-width: 0;
}
.news-catalog-thumb {
  flex: 0 0 auto;
  display: block;
  width: clamp(80px, 5.833vw, 112px);
  aspect-ratio: 112 / 156;
  overflow: hidden;
  border-radius: 4px;
  background: #888;
}
/* Source covers carry a baked-in white frame; crop it like the design */
.news-catalog-thumb img,
.news-archive-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transform-origin: 50% 48%;
}
.news-catalog-text {
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-width: 0;
}
.news-page .news-catalog-name {
  margin-bottom: 6px;
  font-weight: 600;
  font-size: clamp(18px, 1.042vw, 20px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #111;
}
.news-catalog-desc {
  font-size: clamp(14px, 0.833vw, 16px);
  line-height: 1.7;
  letter-spacing: -0.015em;
  color: #666;
  word-break: keep-all;
}
.news-catalog-meta {
  font-size: 14px;
  line-height: 1.5;
  color: var(--sp-navy);
}
.news-download-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 30px;
  border-radius: 8px;
  background: var(--sp-navy);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s;
}
.news-download-btn:hover { background: #00184a; color: #fff; }
.news-download-btn img { width: 24px; height: 24px; }

.news-archive {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 3.125vw, 60px);
  margin-top: 30px;
}
.news-archive-track {
  display: flex;
  gap: 20px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.news-archive-track::-webkit-scrollbar { display: none; }
.news-archive-item {
  flex: 0 0 calc((100% - 4 * 20px) / 5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  scroll-snap-align: start;
}
.news-archive-cover {
  width: 100%;
  aspect-ratio: 335 / 474;
  overflow: hidden;
  border-radius: 8px;
  background: #888;
}
.news-archive-name {
  font-weight: 500;
  font-size: clamp(16px, 0.9375vw, 18px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #333;
  text-align: center;
}
.news-archive-bar {
  position: relative;
  height: 6px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.news-archive-bar[hidden] { display: none; }
.news-archive-thumb {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 25%;
  border-radius: 99px;
  background: #bababa;
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .news-row-date { flex-basis: 160px; }
}
@media (max-width: 1024px) {
  .news-archive-item { flex-basis: calc((100% - 3 * 20px) / 4); }
}
@media (max-width: 768px) {
  .news-board-head { flex-direction: column; align-items: stretch; gap: 20px; }
  .news-search { flex-basis: auto; height: 52px; }
  .news-row-link {
    flex-wrap: wrap;
    gap: 6px 16px;
    min-height: 0;
    padding: 18px 4px;
  }
  .news-row-cat { flex: 0 0 auto; }
  .news-row-date { flex: 0 0 auto; margin-left: auto; text-align: right; }
  .news-row-title { flex: 1 0 100%; order: 3; }
  .news-video-grid { grid-template-columns: minmax(0, 1fr); }
  .news-catalog-card { flex-direction: column; align-items: stretch; }
  .news-download-btn { padding: 16px 24px; }
  .news-archive-item { flex-basis: calc((100% - 2 * 16px) / 2.6); }
  .news-archive-track { gap: 16px; }
}
@media (max-width: 600px) {
  .news-tab { padding: 12px 10px; min-width: 0; }
  .news-catalog-text { gap: 16px; }
  .news-ci-desc br { display: none; }
  .news-archive-item { flex-basis: 62%; gap: 16px; }
}
