
/* 부모 컨테이너 - 3개 항목이 잘 보이도록 너비 조정 */
.news_section .container {
  max-width: 1640px;
  margin: 0 auto;
  padding: 20px;
}

/* 타이틀 영역 */
.mainTitlebx {
  text-align: center;
  margin-bottom: 2rem;
}
.mainTitlebx .maintitle {
  font-size: 2.8rem;
  font-weight: bold;
  color: #171717;
  margin: 0;
}
.mainTitlebx .subtit {
  font-size: 1.25rem;
  font-weight: 500;
  color: #555;
  padding-top: 1.25rem;
  line-height: 1.4;
  margin: 0;
}
.blue { color: #0289fd; }

/* 슬라이더 컨테이너 수정 */
.news_swiper-container {
  position: relative;
  margin-top: 30px;
  overflow: hidden;
  padding: 0 40px;
}

/* 슬라이드 아이템 수정 */
.swiper-slide.news-item {
  background: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  box-sizing: border-box;
  height: auto;
}

/* 이미지 호버 효과 */
.news-image:hover img {
  transform: scale(1.05);
}

/* 이미지 영역 스타일 수정 */
.news-image {
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 56.36%; /* 620/1100 * 100 */
  position: relative;
  overflow: hidden;
  background-color: #f5f5f5;
}


.news-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* 꽉 채우되, 중앙을 기준으로 잘림 */
  object-position: center;
  transition: transform 0.3s ease;
}


/* 텍스트 영역 */
.news-title {
  display: inline-block; /* 텍스트 길이만큼 너비 적용 */
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  margin: 10px 0 10px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative; /* ::after를 위한 relative 위치 지정 */
}

.news-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px; /* 줄의 두께 */
  width: 100%;
  background-color: #000;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-in-out;
}

.news-title:hover::after {
  transform: scaleX(1);
}

.news-title:hover {
  text-decoration: none;
}


.news-content {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2em;
}

/* 커스텀 화살표 */
.news_swiper-container .news-custom-arrow-prev,
.news_swiper-container .news-custom-arrow-next {
  width: 40px !important;
  height: 40px !important;
  background-color: #fff !important;
  border-radius: 50% !important;
  box-shadow: 0 0 14px rgba(0,0,0,0.3) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999 !important;
  cursor: pointer;
}
.news_swiper-container .news-custom-arrow-prev { left: 0 !important; }
.news_swiper-container .news-custom-arrow-next { right: 0 !important; }
.news_swiper-container .news-custom-arrow-prev i,
.news_swiper-container .news-custom-arrow-next i {
  font-size: 20px !important;
  color: #000 !important;
}

/* 반응형 처리 */
@media screen and (max-width: 1200px) {
  .news_swiper-container {
    padding: 0 30px;
  }
}


@media screen and (max-width: 768px) {
  .news_swiper-container {
    padding: 0 30px;
  }
  .news-title {
    font-size: 1.1rem;
  }
  .news-content {
    font-size: 0.9rem;
  }
  .news-image {
    padding-bottom: 56.36%;
}
}
@media screen and (max-width: 480px) {
  .news_swiper-container {
    padding: 0 25px;
  }
  .mainTitlebx .maintitle {
    font-size: 2rem;
  }
  .mainTitlebx .subtit {
    font-size: 1rem;
  }
}
