/* 활동소식 목록 / 상세(현장사진 갤러리 포함) */

.page-news .sub-visual,
.page-news-detail .sub-visual,
.page-gallery .sub-visual {
  position: relative;
  overflow: hidden;
  padding: 56px 0 48px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(224, 122, 47, 0.16), transparent 26%),
    radial-gradient(circle at 78% 72%, rgba(60, 154, 107, 0.14), transparent 28%),
    linear-gradient(125deg, #072a4d 0%, #0b3d6e 58%, #13497f 100%);
}

.page-news .sub-visual__eyebrow,
.page-news-detail .sub-visual__eyebrow,
.page-gallery .sub-visual__eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.page-news .sub-visual__title,
.page-news-detail .sub-visual__title,
.page-gallery .sub-visual__title {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-news .sub-visual__desc,
.page-gallery .sub-visual__desc {
  margin: 14px 0 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
  line-height: 1.65;
}

.page-news .breadcrumb,
.page-news-detail .breadcrumb,
.page-gallery .breadcrumb {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}

.page-news .breadcrumb ol,
.page-news-detail .breadcrumb ol,
.page-gallery .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.page-news .breadcrumb a,
.page-news-detail .breadcrumb a,
.page-gallery .breadcrumb a { color: var(--color-text-muted); }

.page-news .breadcrumb a:hover,
.page-news-detail .breadcrumb a:hover,
.page-gallery .breadcrumb a:hover { color: var(--color-primary); }

.page-news .breadcrumb__sep,
.page-news-detail .breadcrumb__sep,
.page-gallery .breadcrumb__sep { opacity: 0.45; }

.page-news .breadcrumb__current,
.page-news-detail .breadcrumb__current,
.page-gallery .breadcrumb__current {
  color: var(--color-primary);
  font-weight: 650;
}

.page-news .news-toolbar {
  padding: 28px 0 8px;
  background: #fff;
}

.page-news .news-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-news .news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-news .news-filters button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: #fff;
  color: var(--color-text-muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
}

.page-news .news-filters button.is-active,
.page-news .news-filters button:hover {
  border-color: rgba(11, 61, 110, 0.28);
  background: rgba(11, 61, 110, 0.06);
  color: var(--color-primary);
}

.page-news .news-search {
  position: relative;
  width: min(100%, 320px);
}

.page-news .news-search input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: #f8fafc;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
}

.page-news .news-search input:focus {
  border-color: rgba(11, 61, 110, 0.35);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(11, 61, 110, 0.06);
}

.page-news .news-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.page-news .news-search__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-news .news-archive {
  padding: 28px 0 96px;
  background: linear-gradient(180deg, #fff 0%, #f6f9fc 100%);
}

.page-news .archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.page-news .archive-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: #fff;
  color: inherit;
  transition: border-color 0.2s ease;
}

.page-news .archive-card:hover {
  border-color: rgba(11, 61, 110, 0.28);
}

.page-news .archive-card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, #e8f0f7, #f5f8fb);
}

.page-news .archive-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-news .archive-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px 22px;
  flex: 1;
}

.page-news .archive-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  color: var(--color-text-muted);
  font-size: 0.84rem;
}

.page-news .archive-card__category {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(11, 61, 110, 0.07);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.76rem;
}

.page-news .archive-card__title {
  margin: 0;
  color: var(--color-primary-dark);
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.4;
  word-break: keep-all;
}

.page-news .archive-card__summary {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-news .archive-empty {
  grid-column: 1 / -1;
  min-height: 120px;
}

/* Detail */
.page-news-detail .detail-body {
  padding: 48px 0 96px;
  background: #fff;
}

.page-news-detail .detail-article {
  max-width: 820px;
  margin: 0 auto;
}

.page-news-detail .detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 14px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.page-news-detail .detail-category {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(11, 61, 110, 0.07);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.78rem;
}

.page-news-detail .detail-title {
  margin: 0 0 24px;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.35;
  color: var(--color-primary-dark);
  word-break: keep-all;
}

.page-news-detail .detail-cover {
  margin-bottom: 28px;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  background: #eef3f8;
}

.page-news-detail .detail-inline-figure {
  margin: 24px 0;
}

.page-news-detail .detail-inline-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.page-news-detail .detail-inline-figure figcaption {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.page-news-detail .detail-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 8px;
}

.page-news-detail .detail-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.page-news-detail .detail-content p {
  margin: 0 0 18px;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--color-text);
}

.page-news-detail .detail-gallery-wrap {
  margin: 36px 0 8px;
}

.page-news-detail .detail-gallery__heading {
  margin: 0 0 14px;
  color: var(--color-primary-dark, #072a4d);
  font-size: 1.05rem;
  font-weight: 750;
}

.page-news-detail .detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-news-detail .detail-gallery__item {
  margin: 0;
}

.page-news-detail .detail-gallery__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: #eef3f8;
  cursor: zoom-in;
  overflow: hidden;
}

.page-news-detail .detail-cover .detail-gallery__btn {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.page-news-detail .detail-gallery__btn img,
.page-news-detail .detail-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-news-detail .detail-cover .detail-gallery__btn img {
  height: auto;
}

.page-news-detail .detail-gallery__item figcaption,
.page-news-detail .detail-inline-figure figcaption {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 0.86rem;
}

.page-news-detail .lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 24, 42, 0.86);
}

.page-news-detail .lightbox.is-open {
  display: flex;
}

.page-news-detail .lightbox img {
  max-width: min(100%, 980px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
}

.page-news-detail .lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary-dark, #072a4d);
  font-size: 1.4rem;
  cursor: pointer;
}

.page-news-detail .detail-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.page-news-detail .detail-nav a {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.92rem;
}

.page-news-detail .detail-nav__center {
  margin-left: auto;
  margin-right: auto;
}

/* Gallery page */
.page-gallery .gallery-body {
  padding: 40px 0 96px;
  background: linear-gradient(180deg, #fff 0%, #f6f9fc 100%);
}

.page-gallery .photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.page-gallery .photo-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
}

.page-gallery .photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.page-gallery .photo-card:hover img {
  transform: scale(1.03);
}

.page-gallery .photo-card__caption {
  padding: 14px 14px 16px;
}

.page-gallery .photo-card__caption strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-primary-dark);
  font-size: 0.98rem;
}

.page-gallery .photo-card__caption span {
  color: var(--color-text-muted);
  font-size: 0.86rem;
}

.page-gallery .lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 24, 42, 0.86);
}

.page-gallery .lightbox.is-open {
  display: flex;
}

.page-gallery .lightbox img {
  max-width: min(100%, 980px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
}

.page-gallery .lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary-dark);
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 960px) {
  .page-news .archive-grid,
  .page-gallery .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-news .sub-visual,
  .page-news-detail .sub-visual,
  .page-gallery .sub-visual {
    padding: 44px 0 36px;
  }

  .page-news .news-toolbar__row {
    align-items: stretch;
  }

  .page-news .news-search {
    width: 100%;
  }

  .page-news .archive-grid,
  .page-gallery .photo-grid,
  .page-news-detail .detail-gallery {
    grid-template-columns: 1fr;
  }
}
