/* /css/news_style.css */

.news-container {
  max-width: 950px;
  margin: 30px auto;
  padding: 0 20px 40px;
  font-family: 'Noto Sans KR', sans-serif;
}
.sub { width: 950px !important; }

.news-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #272725;
  border-bottom: 2px solid #272725;
  padding-bottom: 8px;
}

.news-card {
  display: flex;
  gap: 18px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgb(0 0 0 / 0.1);
  margin-bottom: 25px;
  background: #fff;
  transition: box-shadow 0.3s ease;
}
.news-card:hover { box-shadow: 0 6px 20px rgb(0 0 0 / 0.15); }

.news-thumb {
  flex-shrink: 0;
  width: 140px;
  height: 105px;
  border-radius: 8px;
  overflow: hidden;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Á¦¸ñ: 2ÁÙ Å¬·¥ÇÁ(µ¥½ºÅ©Åé ±âÁØ) */
.news-title-link {
  font-size: 1.3rem;
  font-weight: 600;
  color: #272725;
  text-decoration: none;
  margin-bottom: 6px;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* µ¥½ºÅ©Åé 2ÁÙ */
  overflow: hidden;
}
.news-title-link:hover { text-decoration: underline; }

/* ºÎÁ¦: 2ÁÙ Å¬·¥ÇÁ(µ¥½ºÅ©Åé ±âÁØ) */
.news-subtitle {
  font-size: 1rem;
  color: #555;
  margin-bottom: 8px;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* µ¥½ºÅ©Åé 2ÁÙ */
  overflow: hidden;
}

.news-meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 12px;
}

/* ? »ó¼¼º¸±â¿¡¼± ¿ä¾à ÀüÃ¼ ¼û±è */
.news-excerpt {
  display: none !important;
}

.pagination {
  text-align: center;
  margin-top: 40px;
  user-select: none;
}
.pagination a,
.pagination strong {
  display: inline-block;
  margin: 0 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  color: #272725;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.pagination a:hover { background-color: #007bff; color: #fff; }
.pagination strong {
  background-color: #007bff; color: #fff; cursor: default;
  box-shadow: 0 0 10px rgba(0,123,255,0.5);
}

/* ¡å¡å¡å¡å¡å ¹ÝÀÀÇü ½ºÅ¸ÀÏ (ÅÂºí¸´ ¹× ¸ð¹ÙÀÏ) ¡å¡å¡å¡å¡å */
@media (max-width: 991px) {
  .news-container { margin: 20px auto; padding: 0 15px 20px; }
  .sub { width: 100% !important; }

  .news-title { font-size: 1.8rem; margin-bottom: 20px; }

  .news-card { flex-direction: column; padding: 15px; gap: 12px; }

  .news-thumb { width: 100%; height: 220px; }

  .news-title-link { font-size: 1.2rem; -webkit-line-clamp: 2; }
  /* ¸ð¹ÙÀÏ/ÅÂºí¸´: ºÎÁ¦ 1ÁÙ */
  .news-subtitle { font-size: 1rem; -webkit-line-clamp: 1; }
}

/* ¡å¡å¡å¡å¡å ¸ð¹ÙÀÏ Àü¿ë Ãß°¡ ½ºÅ¸ÀÏ ¡å¡å¡å¡å¡å */
@media (max-width: 480px) {
  .news-title { font-size: 1.5rem; }
  .news-thumb { height: 250px; }
  .news-title-link { font-size: 1.15rem; -webkit-line-clamp: 2; }
}
