/* 공지사항 섹션 스타일 */
.notice-section {
  width: 100%;
  padding: 0;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.notice-section h2 {
  text-align: center;
  margin: 0;
  color: #333;
  font-size: 1.3rem;
}

/* 공지사항 컨테이너 스타일 */
.notice-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 슬라이더 래퍼 스타일 */
.notice-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: height 0.3s ease; /* 높이 변화를 부드럽게 */
}

/* 공지사항 아이템 스타일 */
.notice-item {
  width: 100%;
  background-color: white;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.notice-item a,
.notice-item .notice-content {
  transition: opacity 0.3s ease;
}

.notice-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.notice-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* 이미지 컨테이너 */
.notice-image-container {
  width: 100%;
  position: relative;
  padding-top: 43%; /* 고정된 높이 비율 */
  overflow: hidden;
  background-color: #f6f6f6;
  min-height: 100px; /* 최소 높이 설정 */
}

.notice-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* 이미지 비율 유지 */
  margin: auto;
  inset: 0; /* 중앙 정렬 */
}

.notice-title {
  background-color: white;
  color: #333;
  padding: 6px 10px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top: 1px solid #f0f0f0;
}

.notice-item:hover .notice-title {
  color: #0066cc;
}

/* 네비게이션 버튼 */
.notice-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  z-index: var(--z-content);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
}

.notice-container:hover .notice-nav {
  opacity: 1;
}

.notice-nav:hover {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.notice-nav.prev {
  left: 10px;
}

.notice-nav.next {
  right: 10px;
}

/* 인디케이터 스타일 */
.notice-indicators {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 5px 0;
  padding: 0;
}

.notice-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.notice-indicator.active {
  background-color: #0066cc;
  transform: scale(1.2);
}

.notice-indicator:hover {
  background-color: #999;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .notice-nav {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .notice-title {
    padding: 4px 8px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .notice-nav {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .notice-title {
    padding: 3px 6px;
    font-size: 0.8rem;
  }

  .notice-indicator {
    width: 6px;
    height: 6px;
  }
}
