/* 메인 사진 처음 로드 시 천천히 나오게 */
.hero-slider {
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-slider.loaded {
  opacity: 1;
}

/* 메인 사진 넘기는거 */
.hero-slider {
  position: relative;
  width: 100%;
  height: 75vh;
  overflow: hidden;
}

/* 각 슬라이드 */
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

/* 현재 보이는 슬라이드 */
.slide.active {
  opacity: 1;
}

/* 중앙 문구 */
.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  background: rgba(0, 0, 0, 0.25); /* 가독성 */
}

.hero-text-inner {
  transform: translateY(-40px); /* 글자만 위로 */
  color: #fff;
}

/* inner는 중앙문구 전용 레이어 */
.hero-text-inner h1 {
  font-size: 52px;
  margin-bottom: 10px;
}

/* 하단 작은 글자 */
.hero-text-inner p {
  font-size: 20px;
  margin-top: 8px;
  letter-spacing: 1px;
}


/* 이미지 전환 버튼 */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: none;
  font-size: 42px;
  padding: 6px 14px;
  cursor: pointer;
}

.nav-btn.prev {
  left: 20px;
  top: calc(50% - 24px);
}

.nav-btn.next {
  right: 20px;
  top: calc(50% - 24px);
}

.nav-btn {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(0,0,0,0.35);
  border-radius: 50%;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-btn::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;

  position: absolute;
}

.nav-btn.prev::before {
  transform: translateX(2px) rotate(-135deg);
}

.nav-btn.next::before {
  transform: translateX(-2px) rotate(45deg);
}

.nav-btn:hover {
  background: rgba(0,0,0,0.55);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}


/* 이미지 배너 */
.banner-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 30px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* 개별 배너 */
.banner-item {
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

/* 배너 이미지 */
.banner-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;

  transition: transform 0.3s ease;
}

.banner-item:hover img {
  transform: scale(1.03);
}

/* 배너 텍스트 */
.banner-item p {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 500;
}


/* 게시판 진행정보 */
.board-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 30px;

  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

/* 게시판 박스 */
.board-box h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 8px; /* +버튼 우측 여백 */

  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.2px;

  border-bottom: 2px solid #e0e0e0; /* 선 두께 */
  padding-bottom: 10px;
  margin-bottom: 8px;
}

.board-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.board-box li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

/* 게시글 미리보기 스타일 */
.board-box .title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-box .date {
  margin-left: auto;
  font-size: 13px;
  color: #999;
  flex-shrink: 0;
}

/* '+'버튼 스타일 */
.board-box h3 .more {
  font-size: 14px;
  font-weight: 600;
  line-height: 0;
  text-decoration: none;
  color: #996;
}

.board-box h3 .more:hover {
  color: #000;
}

.board-box h3 a {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
}
.board-box li a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  width: 100%;
}

.board-box li a:hover {
  color: #000;
}

/* 진행정보 카드 */
.progress-box {
  background: #e9e8e5;
  border-radius: 8px;
  padding: 30px;
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: center;

  text-decoration: none;
  color: inherit;
  cursor: pointer;

  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.progress-box:hover {
  background: #e2e1dd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.progress-icon {
  font-size: 58px;
  margin-bottom: 5px;
}

.progress-box h4 {
  font-size: 22px; /* 위에 큰 글씨 */
  margin-bottom: 10px;
}

.progress-box p {
  font-size: 14px; /* 아래 작은 글씨 */
  color: #555;
  line-height: 1.5;
}


@media (max-width: 768px) {

  /* ===== Hero 영역 ===== */
  .hero-slider {
    height: 50vh;            /* 모바일에서 너무 크지 않게 */
  }

  .hero-text-inner {
    transform: translateY(0); /* 위로 밀린 텍스트 복구 */
    padding: 0 16px;
  }

  .hero-text-inner h1 {
    font-size: 26px;
    line-height: 1.3;
  }

  .hero-text-inner p {
    font-size: 14px;
    letter-spacing: 0.5px;
  }

  /* 좌우 버튼 줄이기 */
  .nav-btn {
    width: 40px;
    height: 40px;
  }

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

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

  /* ===== 배너 영역 ===== */
  .banner-section {
    grid-template-columns: 1fr;  /* 3열 → 1열 */
    gap: 20px;
    margin: 40px auto;
    padding: 0 16px;
  }

  .banner-item img {
    width: 100%;
    height: auto;                 /* 고정 높이 제거 */
    aspect-ratio: 16 / 9;         /* 핵심 */
    object-fit: cover;
  }

  .banner-item p {
    font-size: 15px;
  }

  /* ===== 게시판 영역 ===== */
  .board-section {
    grid-template-columns: 1fr;  /* 3열 → 1열 */
    gap: 24px;
    margin: 50px auto;
    padding: 0 16px;
  }

  .board-box h3 {
    font-size: 17px;
  }

  .board-box li {
    font-size: 13px;
  }

  .board-box .date {
    font-size: 12px;
  }

  /* ===== 진행정보 카드 ===== */
  .progress-box {
    padding: 24px;
  }

  .progress-icon {
    font-size: 44px;
  }

  .progress-box h4 {
    font-size: 18px;
  }

  .progress-box p {
    font-size: 13px;
  }
}
