@charset "utf-8";
/* ═══════════════════════════════════════════
   news.css — news.php(뉴스 목록) 전용 스타일
   공통 영역(reset/root/body/sub-nav/page-title/breadcrumb)은
   style.css + page-common.css 에 있으므로 여기서는 재정의하지 않습니다.
═══════════════════════════════════════════ */


/* ══════════════════════════
   NEWS SECTION
══════════════════════════ */
.news-section {
  max-width:1400px;
  margin: 0 auto;
  padding: 0 48px 30px;
}


/* ══════════════════════════
   RESPONSIVE  ≤ 1024px 
══════════════════════════ */
@media (max-width: 1024px){
  .sub-nav { top: 76px; }
  .sub-nav-inner {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 16px; 
    scrollbar-width: none;
  }
  .sub-nav-inner::-webkit-scrollbar { display: none; }
  
  .sub-nav-inner a { padding: 0 20px; font-size: 14px; }
  .sub-nav-inner a::before { display: none; } 

  
  .breadcrumb-bar::after {
    margin: 0 auto 30px;  /* 기존 PC용 60px에서 30px로 절반 축소 */
  }
  .news-section {
    padding: 10px 48px 20px; /* 아래쪽 패딩을 52px에서 20px로 줄여 컴팩트하게 배치 */
  }

  /* Footer */
  footer { padding: 36px 24px 20px !important; width: 100% !important; box-sizing: border-box !important; }
  .footer-inner { width: 100% !important; max-width: 100% !important; padding: 0 28px; box-sizing: border-box !important; }
  .footer-top { flex-direction: column; gap: 20px; }
}


/* ══════════════════════════
   PAGE TITLE
══════════════════════════ */
.page-title-block {
  text-align: center;
  padding: 80px 0 0;   /* 💡 위쪽 여백을 넓혀 헤더 아래에 시원하게 배치하고, 하단 패딩은 0으로 만듭니다 */
}

.page-title-block h1 {
  font-size: 48px;       /* 💡 시안의 시각적 밸런스에 맞춰 타이틀 크기를 살짝 키웠습니다 */
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #111;
  line-height: 1.2;
}

/* ⚙ 이 페이지만 breadcrumb 여백이 공통값(page-common.css)과 달라서 오버라이드 */
.breadcrumb { padding-bottom: 70px; }
.breadcrumb-bar::after { margin-bottom: 60px; }

/* ══════════════════════════
   RESPONSIVE  ≤ 768px
══════════════════════════ */
@media (max-width: 768px) {

  /* 기존 모바일 스타일 유지 */
  .sub-nav { top: 52px; }
  .sub-nav-inner {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 8px;
    scrollbar-width: none;
  }
  .sub-nav-inner::-webkit-scrollbar { display: none; }
  .sub-nav-inner a { padding: 0 18px; font-size: 14px; }
  .page-title-block h1 { font-size: 24px; }


  /* Page title */
  .page-title-block {padding: 60px 0 0;}
  .page-title-block h1 { font-size: 24px; }

  /* Person section */
  .news-section { padding: 0 20px 14px; }
  /* 가로선 모바일 여백 보정 */
  .breadcrumb-bar::after {
    margin: 0 20px 40px; /* 모바일 좌우 패딩에 맞춰 마진 조절 */
  }

 /* Footer */
  footer { padding: 28px 16px 16px !important; }
  .footer-top { flex-direction: column; gap: 16px; }
  .footer-info {font-size: 16px; color: var(--text); line-height: 2;}
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-inner{padding: 0 14px;}
  .footer-family {margin-top: 20px;}
}

/* ═══════════════════════════════════════════
     SMALL MOBILE (≤ 390px)  
═══════════════════════════════════════════ */

@media (max-width: 390px) {
  .footer-links { gap: 10px; }
  .footer-links a { font-size: 11px; }
}

/* ══════════════════════════
   NEWS LIST
══════════════════════════ */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 0;
  border-bottom: 1px solid #e8e8e8;
  padding: 48px 0;
  cursor: pointer;
  transition: background 0.2s;
}

.news-item:first-child { border-top: 1px solid #e8e8e8; }
.news-item:hover { background: #fafafa; }

.news-item-img {
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #eee;
  flex-shrink: 0;
}

.news-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.news-item:hover .news-item-img img { transform: scale(1.03); }

.news-item-body {
  padding: 8px 0 8px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  position: relative;
}

.news-category {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.news-item:first-child .news-category {
  margin-top: 80px;
  display: inline-block;
}

.news-title {
  font-size: 26px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.news-date {
  font-size: 13px;
  color: #999;
  background: #f3f3f3;
  padding: 5px 12px;
  border-radius: 2px;
  display: inline-block;
  width: fit-content;
  letter-spacing: 0.05em;
}

.news-excerpt {
  font-size: 15px;
  color: #555;
  line-height: 1.75;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

.news-more-btn {
  display: inline-block;
  width: fit-content;
  padding: 9px 36px;
  border: 1.5px solid var(--green);
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  border-radius: 24px;
  transition: background 0.2s, color 0.2s;
  margin-top: 4px;
}

.news-more-btn:hover {
  background: var(--green);
  color: #fff;
}

.news-share {
  position: absolute;
  bottom: 8px;
  right: 0;
  display: flex;
  gap: 6px;
}

.share-btn {
  width: 30px;
  height: 30px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  font-style: normal;
}

.share-fb   { background: #1877f2; }
.share-line { background: #06c755; }
.share-li   { background: #0a66c2; }

/* ══════════════════════════
   PAGINATION
══════════════════════════ */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 56px 0 20px;
}

.pg-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
}

.pg-btn:hover:not(:disabled):not(.active) { border-color: var(--green); color: var(--green); }
.pg-btn.active { background: var(--green); border-color: var(--green); color: #fff; }
.pg-btn:disabled { opacity: 0.35; cursor: default; }

/* ══════════════════════════
   NEWS LIST RESPONSIVE
══════════════════════════ */
@media (max-width: 1024px) {
  .news-item { grid-template-columns: 360px 1fr; }
  .news-title { font-size: 22px; }
  .news-item-body { padding-left: 36px; }
}

@media (max-width: 768px) {
  .news-item {
    grid-template-columns: 1fr;
    padding: 28px 0;
    gap: 18px;
  }
  .news-item-img { aspect-ratio: 16/9; }
  .news-item-body { padding: 0; }
  .news-title { font-size: 18px; }
  .news-excerpt { font-size: 14px; -webkit-line-clamp: 2; }
	.news-item:first-child .news-category {margin-top: 0px;}
/*
  .news-more-btn { align-self: flex-end; }
  .news-share { position: static; margin-top: 8px; align-self: flex-end; }
*/
}
