/* news-notice.css - Auto-merged from 3 section files */
/* Do not edit directly - regenerate with merge_section_css.py */

/* ========== 01-hero-section ========== */
/* News & Notice - Hero Section */
.news-hero {
  width: 100%;
  display: flex;
  justify-content: center;
  /* Figma: single full-bleed composite image (gradient + cells already blended) */
  background-image: url("../assets/images/news-notice/hero-bg-composite.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #b7bec4; /* fallback */
  overflow: hidden;
}

.news-hero__inner {
  position: relative;
  width: 100%;
  max-width: 120rem; /* 1920px */
  height: 33.75rem; /* 540px */
  box-sizing: border-box;
}

/* ===== 좌측 타이틀 ===== */
.news-hero__content {
  position: absolute;
  top: 19.875rem; /* 318px */
  left: 0;
  right: 0;
  width: 80rem; /* 1280px 고정 */
  margin-inline: auto; /* 좌우 마진 auto → 1920 컨테이너 안에서 가운데 정렬(1920에서 left 320px와 동일) */
}

.news-hero__title {
  margin: 0;
  font-family: "Pretendard", sans-serif;
  font-size: 4.375rem; /* 70px */
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  color: #222222;
}

.news-hero__line {
  display: block;
}

.news-hero__bold {
  font-weight: 700;
}

.news-hero__light {
  font-weight: 400;
}

.news-hero__white {
  color: #ffffff;
}

/* ===== Tablet ===== */
@media (max-width: 1199px) {
  .news-hero__inner {
    height: auto;
    min-height: 26rem;
  }

  .news-hero__content {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
    padding: 12rem 6% 4rem;
    box-sizing: border-box;
  }

  .news-hero__title {
    font-size: clamp(2.25rem, 5.5vw, 4.375rem);
  }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  /* Figma 모바일 히어로: 402x540 세로 배경, 하단 좌측 정렬, 타이틀 48px */
  .news-hero {
    background-image: url("../assets/images/news-notice/hero-bg-mobile.jpg");
  }

  .news-hero__inner {
    min-height: 0;
    height: auto;
    aspect-ratio: 402 / 540;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .news-hero__content {
    width: 100%;
    max-width: 100%;
    padding: 2rem 0.9375rem; /* 32px 15px */
  }

  .news-hero__title {
    font-size: clamp(2.5rem, 12vw, 3rem); /* 48px @402 */
    line-height: 1.19;
  }
}

/* ========== 02-news-notice-목록-섹션 ========== */
/* ============================================
   News & Notice 목록 섹션
   ============================================ */

.news-list-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6.25rem 0 12.5rem; /* 100 0 200 */
  background-color: #ffffff;
}

.news-list-section__inner {
  width: 100%;
  max-width: 80rem; /* 1280 */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7.5rem; /* 120 */
}

/* ---------- 인덱싱 (브레드크럼 + 타이틀) ---------- */
.news-list-section__indexing {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.625rem; /* 10 */
}

.news-list-section__breadcrumb {
  font-family: "Pretendard", sans-serif;
  font-weight: 400;
  font-size: 1.25rem; /* 20 */
  line-height: 1.4;
  color: #0e1b2b;
}

.news-list-section__heading {
  display: flex;
  align-items: center;
}

.news-list-section__title {
  font-family: "Pretendard", sans-serif;
  font-weight: 300; /* Light */
  font-size: 3.125rem; /* 50 */
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #222222;
}

.news-list-section__title strong {
  font-weight: 700;
}

/* ---------- 뉴스 카드 목록 ---------- */
.news-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.news-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

/* 미디어 영역 (썸네일 / 로고 플레이스홀더) */
.news-card__media {
  flex: 0 0 16.875rem; /* 270 */
  width: 16.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #c2c6d8;
}

.news-card__media--logo {
  background-color: transparent;
}

.news-card__logo {
  width: 11.3125rem; /* 181 */
  height: 2.125rem; /* 34 */
  object-fit: contain;
}

/* 본문 영역 */
.news-card__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* 12 */
  padding: 2rem 3rem; /* 32 48 */
}

.news-card__title {
  font-family: "Pretendard", sans-serif;
  font-weight: 700;
  font-size: 1.5rem; /* 24 */
  line-height: 1.4;
  color: #141b2c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-card__excerpt {
  padding-top: 0.25rem; /* 4 */
  font-family: "Pretendard", sans-serif;
  font-weight: 400;
  font-size: 1.125rem; /* 18 */
  line-height: 1.5;
  color: #424656;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-card__date {
  display: block;
  padding: 1.25rem 0; /* 20 0 */
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.875rem; /* 14 */
  line-height: 1;
  letter-spacing: 0.0857em;
  text-transform: uppercase;
  color: #727687;
}

/* ---------- 페이지네이션 ---------- */
.news-pagination {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem; /* 12 */
  padding: 2.5rem 0; /* 40 0 */
}

.news-pagination__page,
.news-pagination__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem; /* 52 */
  height: 3.25rem; /* 52 */
  border-radius: 4px;
  background-color: #ffffff;
  text-decoration: none;
}

.news-pagination__page {
  font-family: "Pretendard", sans-serif;
  font-weight: 400;
  font-size: 1.125rem; /* 18 */
  line-height: 1.5;
  color: #283c36;
  text-decoration: underline;
}

.news-pagination__page.is-active {
  font-weight: 700;
  font-size: 1.5rem; /* 24 */
  color: #e33345;
  text-decoration: none;
}

.news-pagination__nav img {
  width: 2.5rem; /* 40 */
  height: 2.5rem; /* 40 */
  display: block;
}

/* 첫/마지막 페이지에서 이전/다음 비활성 */
.news-pagination__nav.is-disabled {
  opacity: 0.3;
  pointer-events: none;
  cursor: default;
}

/* 다음 버튼 화살표 방향 반전 */
.news-pagination__next img {
  transform: scaleX(-1);
}

/* ============================================
   반응형 - 태블릿
   ============================================ */
@media (max-width: 1199px) {
  .news-list-section__inner {
    max-width: 100%;
    padding-inline: 5%;
  }
}

/* ============================================
   반응형 - 모바일
   ============================================ */
@media (max-width: 768px) {
  .news-list-section {
    padding: 3.75rem 0 6.25rem;
  }

  .news-list-section__inner {
    gap: 3.75rem;
  }

  .news-list-section__title {
    font-size: 2.25rem; /* 36 */
  }

  /* 카드: 가로 → 세로 적재 */
  .news-card {
    flex-direction: column;
  }

  .news-card__media {
    flex: 0 0 auto;
    width: 100%;
  }

  .news-card__thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .news-card__media--logo {
    padding: 2.5rem 0;
  }

  .news-card__body {
    padding: 1.5rem 0;
  }

  .news-card__title {
    font-size: 1.25rem; /* 20 */
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .news-card__excerpt {
    font-size: 1rem;
  }

  /* 터치 영역 확보 */
  .news-pagination__page,
  .news-pagination__nav {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }
}

