/* 🔹 NEWS 전체 섹션 */
.news-section {
  background: linear-gradient(to bottom, #ffffff 0%, #f7f9fc 100%);
  width: 100%;
  overflow: hidden;
  position: relative;
}

.news-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

/* 🔹 내부 콘텐츠 정렬용 */
.news-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* 🔹 NEWS 제목 */
.news-title {
  font-size: 4.8rem;
  font-weight: 700;
  margin-bottom: 70px;
  color: #111;
  display: inline-block;
  position: relative;
  letter-spacing: -1px;
}

.news-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #0033cc, #4285F4);
  border-radius: 2px;
}

/* 🔹 뉴스 카드 리스트 */
.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 36px;
  padding: 10px 5px 30px;
}

/* 🔹 카드 */
.news-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(230, 236, 250, 0.5);
  min-height: 420px;
}

.news-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0033cc, #4285F4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.news-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(66, 133, 244, 0.15);
}

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

/* 🔹 카드 이미지 영역 */
.news-image-container {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.news-content img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.news-card:hover .news-content img {
  transform: scale(1.08);
}

/* 🔹 카드 내용 영역 */
.news-card-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

/* 🔹 카드 상단 넘버 */
.news-number {
  font-size: 4rem;
  font-weight: 800;
  color: #eaecf6;
  margin-bottom: 15px;
  transition: all 0.4s ease;
  font-family: 'Arial', sans-serif;
  letter-spacing: -2px;
  line-height: 1;
  display: inline-block;
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 2;
  text-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 하이라이트 클래스 제거하고 동일한 색상으로 통일 */
.news-number.highlight {
  color: #eaecf6;
}

.news-card:hover .news-number {
  color: rgba(66, 133, 244, 0.3);
  transform: translateY(-5px);
}

/* 🔹 카드 내용 */
.news-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 🔹 카드 제목 */
.news-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.6;
  color: #1a1a1a;
  margin-bottom: 15px;
  transition: color 0.3s ease;
  letter-spacing: -0.3px;
  min-height: 3.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-card:hover h3 {
  color: #0033cc;
}

/* 추가: 카드 읽기 버튼 */
.news-read-more {
  margin-top: 20px;
  color: #0033cc;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(10px);
}

.news-read-more i {
  margin-left: 6px;
  font-size: 0.85rem;
  transition: transform 0.4s ease;
}

.news-card:hover .news-read-more {
  opacity: 1;
  transform: translateY(0);
}

.news-card:hover .news-read-more i {
  transform: translateX(6px);
}

/* 모달 디자인 개선 */
.news-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  backdrop-filter: blur(8px);
}

.news-modal.show {
  opacity: 1;
  pointer-events: all;
}

.news-modal-content {
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  background: white;
  border-radius: 24px;
  overflow-y: auto;
  padding: 45px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.news-modal.show .news-modal-content {
  transform: scale(1);
}

.news-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 36px;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.news-close:hover {
  color: #0033cc;
  transform: rotate(90deg);
}

.news-modal-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-headline {
  font-size: 1.05rem;
  color: #666;
}

.news-link {
  color: #0033cc;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.news-link:hover {
  text-decoration: underline;
}

.news-modal-content h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.news-modal-content .date {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 35px;
}

.news-modal-content img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 35px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-body {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #444;
}

.news-body p {
  margin-bottom: 25px;
}

/* 반응형 */
@media (max-width: 1200px) {
  .news-list {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
  }
  
  .news-title {
    font-size: 3.8rem;
    margin-bottom: 60px;
  }
}

@media (max-width: 768px) {
  .news-section {
    padding: 100px 0 120px;
  }
  
  .news-inner {
    padding: 0 20px;
  }
  
  .news-title {
    font-size: 3rem;
    margin-bottom: 50px;
  }
  
  .news-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .news-content h3 {
    font-size: 1.25rem;
  }
  
  .news-modal-content {
    padding: 30px;
  }
  
  .news-modal-content h1 {
    font-size: 2rem;
  }
}
  