/* =========================================================
   소식 / News (ko|en/news.html, ko|en/news-view.html)
   Figma: list 109:990 KO, 283:2361 EN, 2803:3806 mobile
          view 187:5709 KO, 283:2402 EN, 2803:3839 mobile
   ========================================================= */

/* ---------- hero without tabs (320px) ---------- */
.news-hero { height: 320px; }
.news-hero .sub-hero__bg { height: 100%; background-position: center 48%; }
.news-hero .sub-hero__title { top: 50%; transform: translate(-50%, -50%); }

/* ---------- content wrapper ---------- */
.news-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  padding: 100px 0;
}
.news-content--view { gap: 100px; }

/* 34px heading with square dot (sec-title__h at H1 size) */
.news-heading.sec-title__h { font-size: 34px; white-space: normal; text-align: center; }
html[lang="ko"] .news-heading.sec-title__h { letter-spacing: -1.02px; }
html[lang="en"] .news-heading.sec-title__h { letter-spacing: -0.578px; text-transform: capitalize; }
.news-heading em { font-style: normal; }
html[lang="en"] .news-heading em { color: var(--point-2); }

/* =========================================================
   List page
   ========================================================= */
.news-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

/* ---------- search bar ---------- */
.news-search {
  display: flex;
  gap: 20px;
  width: 640px;
  max-width: 100%;
  height: 54px;
  font-family: var(--font-num);
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: normal;
  color: #101010;
}
.news-search__select { position: relative; flex: 0 0 160px; }
.news-search__select select {
  width: 100%;
  height: 100%;
  padding: 0 50px 0 20px;
  border: 1px solid var(--gray-4);
  border-radius: 0;
  background: #fff;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.news-search__select img {
  position: absolute;
  right: 20px;
  top: 50%;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  pointer-events: none;
}
.news-search__field { flex: 1 1 0; min-width: 0; display: flex; }
.news-search__input {
  flex: 1 1 auto;
  width: 341px;
  min-width: 0;
  padding: 0 20px;
  border: 1px solid var(--gray-4);
  border-radius: 0;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 20px;
  -webkit-appearance: none;
}
.news-search select:focus-visible,
.news-search__input:focus { outline: 2px solid var(--point-1); outline-offset: -2px; }
.news-search__btn {
  flex: 0 0 auto;
  min-width: 119px;
  padding: 0 20px;
  background: var(--point-1);
  color: #fff;
  line-height: inherit;
  white-space: nowrap;
  transition: background-color .2s;
}
.news-search__btn:hover { background: var(--point-2); }

/* ---------- card grid ---------- */
.news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 24px;
  width: 100%;
}
.news-card { min-width: 0; }
.news-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--gray-4);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.news-card__img { height: 200px; overflow: hidden; }
.news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.news-card__txt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 32px;
}
.news-card__title {
  height: 61px;
  font-family: 'Poppins', var(--font-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.34px;
  color: rgba(0, 0, 0, 0.87);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
html[lang="ko"] .news-card__title { line-height: 1.45; }
.news-card__date {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  letter-spacing: normal;
  color: rgba(0, 0, 0, 0.6);
}
.news-card a:hover { border-color: var(--point-1); box-shadow: 0 8px 20px rgba(16, 65, 139, 0.08); }
.news-card a:hover .news-card__img img { transform: scale(1.04); }
.news-card a:hover .news-card__title { color: var(--point-1); }

/* ---------- pagination ---------- */
.news-paging {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  width: 640px;
  max-width: 100%;
  font-size: 20px;
  letter-spacing: -0.6px;
  color: #101010;
}
.news-paging__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 10px 20px;
  border: 1px solid var(--gray-4);
  background: #fff;
  white-space: nowrap;
  transition: border-color .2s, color .2s;
}
.news-paging__btn img { width: 8px; height: 13.618px; flex-shrink: 0; }
.news-paging__btn:hover { border-color: var(--point-1); color: var(--point-1); }
.news-paging__nums { display: flex; border: 1px solid var(--gray-4); background: #fff; }
.news-paging__nums li + li { border-left: 1px solid var(--gray-4); }
.news-paging__nums a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 53px;
  height: 52px;
  font-weight: 500;
  transition: background-color .2s;
}
.news-paging__nums a:hover { background: var(--gray-6); }
.news-paging__nums a[aria-current] { background: var(--gray-1); color: #fff; }

/* =========================================================
   View page (article)
   ========================================================= */
.news-view { width: 100%; }
.news-view__title {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-4);
  font-family: var(--font-title);
  font-weight: 700;
  color: #000;
}
html[lang="ko"] .news-view__title { font-size: 30px; line-height: 40px; letter-spacing: 0.6px; }
html[lang="en"] .news-view__title { font-size: 28px; letter-spacing: -0.476px; text-transform: capitalize; }
.news-view__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 40px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-4);
  font-size: 20px;
  color: rgba(0, 0, 0, 0.6);
}
html[lang="ko"] .news-view__meta { letter-spacing: -0.6px; }
html[lang="en"] .news-view__meta { letter-spacing: -0.34px; }
.news-view__body {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding-top: 60px;
}
.news-view__img { position: relative; aspect-ratio: 996 / 561.36; overflow: hidden; }
.news-view__img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.96; }
.news-view__img::after {           /* inner shadow on the photo */
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 4px 100px rgba(186, 189, 193, 0.3);
  pointer-events: none;
}
.news-view__txt { font-size: 20px; color: #101010; }
html[lang="ko"] .news-view__txt { line-height: 36px; letter-spacing: -0.6px; }
html[lang="ko"] .news-view__txt p + p { margin-top: 36px; }
html[lang="en"] .news-view__txt { line-height: normal; letter-spacing: -0.34px; }
html[lang="en"] .news-view__txt p + p { margin-top: 32px; }

/* prev / next + list button */
.news-nav { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 60px; }
.news-nav__list { width: 100%; border-top: 1px solid var(--gray-4); }
.news-nav__list li { border-bottom: 1px solid var(--gray-4); }
.news-nav__list a {
  display: flex;
  align-items: center;
  gap: 100px;
  padding: 20px 40px;
  font-size: 20px;
  transition: background-color .2s;
}
html[lang="ko"] .news-nav__list a { letter-spacing: -0.6px; }
html[lang="en"] .news-nav__list a { letter-spacing: -0.34px; }
.news-nav__label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--font-title);
  font-weight: 700;
  color: #000;
}
.news-nav__label img { width: 12px; height: 12px; }
.news-nav__title {
  min-width: 0;
  color: var(--gray-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s;
}
html[lang="en"] .news-nav__title { text-transform: capitalize; }
.news-nav__list a:hover { background: var(--gray-6); }
.news-nav__list a:hover .news-nav__title { color: var(--point-1); }

.news-btn-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 72px;
  padding: 16px;
  background: var(--point-1);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 20px;
  transition: background-color .2s;
}
html[lang="ko"] .news-btn-list { letter-spacing: -0.6px; }
html[lang="en"] .news-btn-list { letter-spacing: -0.34px; }
.news-btn-list:hover { background: var(--point-2); }

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1024px) {
  .news-list { gap: 40px 16px; }
  .news-card__txt { padding: 24px; }
  .news-card__title { font-size: 18px; height: 55px; }
  .news-card__date { font-size: 16px; }
  .news-nav__list a { gap: 48px; padding: 20px 24px; }
}

/* =========================================================
   Mobile (Sub_소식_m / Sub_소식_게시물_m)
   ========================================================= */
@media (max-width: 768px) {
  .news-hero { height: 200px; }

  .news-content { gap: 60px; padding: 80px 0; }
  .news-heading.sec-title__h { font-size: 20px; }
  html[lang="ko"] .news-heading.sec-title__h,
  html[lang="en"] .news-heading.sec-title__h { letter-spacing: -0.6px; }
  .news-heading em,
  html[lang="en"] .news-heading em { color: var(--point-1); }

  /* ---- list ---- */
  .news-body { gap: 40px; }
  .news-search {
    gap: 8px;
    height: 36px;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: normal;
    letter-spacing: -0.42px;
  }
  .news-search__select { flex-basis: 100px; }
  .news-search__select select { padding: 0 32px 0 12px; }
  .news-search__select img { right: 12px; width: 16px; height: 16px; }
  .news-search__input { width: 160px; padding: 0 12px; border-right: 0; font-size: 14px; }
  .news-search__btn { min-width: 60px; padding: 4px 12px; }

  .news-list { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .news-card:nth-child(n+4) { display: none; }   /* mobile frame shows 3 posts */
  .news-card__txt { gap: 20px; padding: 28px 20px; }
  .news-card__title {
    height: 49px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: -0.48px;
  }
  html[lang="ko"] .news-card__title { line-height: normal; }
  html[lang="en"] .news-card__title { font-family: 'Poppins', sans-serif; line-height: 1.5; height: 48px; }
  .news-card__date { font-family: var(--font-num); font-size: 14px; }

  .news-paging { gap: 8px; font-size: 14px; letter-spacing: -0.42px; }
  .news-paging__btn { position: relative; width: 48px; height: 41px; padding: 10px 20px; gap: 0; }
  .news-paging__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .news-paging__nums li:nth-child(n+4) { display: none; }   /* 3 pages on mobile */
  .news-paging__nums a { width: 47px; height: 39px; font-family: var(--font-body); }

  /* ---- view ---- */
  .news-content--view { gap: 60px; }
  html[lang="ko"] .news-view__title,
  html[lang="en"] .news-view__title {
    font-size: 16px;
    line-height: normal;
    letter-spacing: -0.48px;
    color: rgba(0, 0, 0, 0.87);
  }
  html[lang="ko"] .news-view__title { text-align: justify; }
  .news-view__meta { padding: 12px 0; font-size: 14px; }
  html[lang="ko"] .news-view__meta, html[lang="en"] .news-view__meta { letter-spacing: -0.42px; }
  .news-view__body { padding-top: 20px; }
  .news-view__img { aspect-ratio: 328 / 184.87; }
  .news-view__txt { font-size: 16px; }
  html[lang="ko"] .news-view__txt, html[lang="en"] .news-view__txt { line-height: 29.76px; letter-spacing: -0.48px; }
  html[lang="ko"] .news-view__txt p + p, html[lang="en"] .news-view__txt p + p { margin-top: 29.76px; }

  .news-nav { gap: 60px; }
  .news-nav__list a { gap: 20px; padding: 16px 12px; font-size: 14px; }
  html[lang="ko"] .news-nav__list a, html[lang="en"] .news-nav__list a { letter-spacing: -0.42px; }
  .news-nav__label { gap: 12px; }
  .news-nav__label img { width: 8px; height: 8px; }
  .news-btn-list { width: 180px; height: auto; padding: 16px 0; font-size: 16px; }
  html[lang="ko"] .news-btn-list, html[lang="en"] .news-btn-list { letter-spacing: -0.48px; }
}
