/* ==========================================================================
   1986 NEWS - 아임웹 환경 대응 스타일
   ========================================================================== */

/* 아임웹 기본 스타일 초기화 */
#news-section-wrapper * {
  box-sizing: border-box !important;
}

#news-section-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* Body 기본 설정 */
body {
  background-color: #ffffff;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  color: #111;
  line-height: 1.6;
}

/* 뉴스 섹션 컨테이너 */
.home-news {
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 30px 70px 50px 70px !important;
  overflow: visible !important;
  background-color: #f7f7f7 !important;
  border-radius: 0 !important;
}

/* 섹션 헤더 */
.section-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
}

.section-header h1 {
  margin: 0 !important;
  padding: 0 !important;
}

.section-header h1 a {
  font-size: 40px !important;
  font-weight: 700 !important;
  color: #ff7f00 !important;
  text-decoration: none !important;
}

/* 네비게이션 버튼 컨테이너 */
.swiper-nav {
  display: flex !important;
  gap: 10px !important;
}

/* 네비게이션 버튼 */
.nav-button {
  width: 35px !important;
  height: 35px !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  border: none !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

.nav-button--prev {
  background-image: url('https://cdn.imweb.me/upload/S20200402f6a4097001dd3/24ba75811f808.png') !important;
}

.nav-button--next {
  background-image: url('https://cdn.imweb.me/upload/S20200402f6a4097001dd3/dbcd35a466814.png') !important;
}

/* Swiper 슬라이더 - 그림자 잘림 방지 */
.swiper {
  width: 100% !important;
  padding-bottom: 30px !important;
  overflow: visible !important;
  margin: 0 !important;
}

.swiper-wrapper {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
}

.news-carousel {
  display: block !important;
  overflow: visible !important;
}

/* 슬라이드 카드 */
.swiper-slide {
  background: #ffffff !important;
  border-radius: 24px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  height: auto !important;
  will-change: transform, box-shadow;
}

/* 호버 효과 */
.swiper-slide:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
  z-index: 10 !important;
}

/* 뉴스 아이템 링크 */
.news-item a {
  display: block !important;
  text-decoration: none !important;
  color: inherit !important;
  height: 100% !important;
}

/* 카드 내용 영역 */
.item-content {
  padding: 20px 40px 40px 40px !important;
  border-radius: 24px 24px 0 0 !important;
}

.item-content h4 {
  font-size: 20px !important;
  font-weight: 600 !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  color: #111 !important;
  line-height: 1.4 !important;
}

.item-divider {
  border: 0 !important;
  height: 1px !important;
  background-color: #e8e5e5 !important;
  margin: 10px 0 !important;
}

.item-content p {
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #899094 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 카드 하단 영역 */
.item-footer {
  padding: 0px 40px 45px 40px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-radius: 0 0 24px 24px !important;
}

/* 링크 버튼 */
.link-button {
  width: 37px !important;
  height: 37px !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-color: transparent !important;
  border-radius: 100% !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
  flex-shrink: 0 !important;
}

/* 날짜 텍스트 */
.date {
  font-size: 12px !important;
  color: #899094 !important;
  white-space: nowrap !important;
}

/* ==========================================================================
   반응형 디자인
   ========================================================================== */

/* 1024px 이하 - 태블릿 */
@media screen and (max-width: 1024px) {
  .section-header h1 a {
    font-size: 36px !important;
  }
  
  .nav-button {
    width: 32px !important;
    height: 32px !important;
  }
}

/* 768px 이하 - 작은 태블릿/큰 모바일 */
@media screen and (max-width: 768px) {
  .home-news {
    padding: 20px 20px 10px 20px !important;
  }
  
  .section-header {
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
  }
  
  .section-header h1 a {
    font-size: 28px !important;
  }
  
  .nav-button {
    width: 28px !important;
    height: 28px !important;
  }
}

/* 480px 이하 - 모바일 */
@media screen and (max-width: 480px) {
  .home-news {
    padding: 15px 15px 10px 15px !important;
  }
  
  .section-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin: 0 0 15px 0 !important;
  }
  
  .section-header h1 a {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }
  
  .swiper-nav {
    gap: 8px !important;
  }
  
  .nav-button {
    width: 26px !important;
    height: 26px !important;
  }
  
  .item-content {
    padding: 15px 25px 30px 25px !important;
  }
  
  .item-footer {
    padding: 0px 25px 30px 25px !important;
  }
  
  .item-content h4 {
    font-size: 18px !important;
  }
  
  .date {
    font-size: 11px !important;
  }
}
