@charset "utf-8";

/* 전체 래퍼 */
.latest-news-wrap {
  max-width: 1230px;
  margin: 50px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  width: 100%;
}

/* 뉴스 카드 리스트 */
.latest-news-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.latest-news-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center; /* 카드 중앙 정렬 */
}

/* 개별 카드 */
.latest-news-card {
  width: 100%;
  max-width: 1000px; /* 카드 중앙 고정 폭 */
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 30px 40px;
  gap: 30px;
  transition: all 0.35s ease;
  border: 1px solid #e0e4ee;
  transform: scale(1);
}
.latest-news-card:hover {
  transform: scale(1.06);
  border-color: #132f88;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* 날짜 */
.latest-news-date {
  min-width: 80px;
  text-align: center;
}
.latest-news-date .date-ym {
  display: block;
  font-size: 14px;
  color: #888;
  margin-bottom: 5px;
}
.latest-news-date .date-d {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #2b3a59;
}

/* 텍스트 영역 (내부 좌측 정렬) */
.latest-news-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.latest-news-text .latest-news-title {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  text-decoration: none;
  transition: color 0.3s ease;
}
.latest-news-text .latest-news-desc {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
}
.latest-news-card:hover .latest-news-title { color: #0a3ccf; }
.latest-news-card:hover .latest-news-desc { color: #333; }

.latest-news-card.empty {
  text-align: center;
  justify-content: center;
  color: #aaa;
  font-size: 16px;
  height: 120px;
}

/* + 아이콘 */
.latest-news-plus {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #132f88;
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  display: flex;
  align-items: flex-start;
  justify-content: center;    
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.35s ease;
  text-decoration: none; 
}
.latest-news-card:hover .latest-news-plus {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 더보기 버튼 */
.latest-news-title-box {
  text-align: center;
}
.latest-news-btn-more {
  display: inline-flex;
  align-items: center;
  border: 1px solid #0a3ccf;
  border-radius: 6px;
  padding: 14px 28px;
  font-size: 17px;
  font-weight: 600;
  color: #0a3ccf;
  gap: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  transform: translateY(0);
}
.latest-news-btn-more span {
  display: inline-block;
  background: #0a3ccf;
  color: #fff; margin: 0 0 0 30px;
  padding: 0 14px;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.latest-news-btn-more:hover {
  background: #0a3ccf;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(10, 60, 207, 0.25);
}
.latest-news-btn-more:hover span {
  background: #0032b3;
}

/* 반응형 */
@media (max-width: 768px) {
  .latest-news-wrap { padding: 0 15px; }
  .latest-news-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .latest-news-date { text-align: left; }
  .latest-news-date .date-d { font-size: 24px; }
  .latest-news-text .latest-news-title { font-size: 16px; }
  .latest-news-text .latest-news-desc { font-size: 14px; }
  .latest-news-btn-more {
    font-size: 14px;
    padding: 10px 20px;
  }
  .latest-news-btn-more span {
    padding: 0 10px;
  }
}
