/* 네비게이션 메뉴 a 태그 밑줄 제거 및 색상 상속 */
.navbar-menu a {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 0 8px;
  white-space: nowrap; /* 텍스트 줄바꿈 방지 */
}

/* Pretendard 웹폰트 적용 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

body {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
}

/* 네비게이션 바 전체 스타일 */
.navbar {
  display: flex;
  align-items: center;
  padding: 18px 40px 10px 10px;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  position: relative;
}

/* 로고 영역 */
.navbar-logo img {
  height: 32px;
  margin-right: 32px;
}

/* 메뉴 리스트 */
.navbar-menu {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: all 0.2s;
}

/* 메뉴 항목 */
.navbar-menu li {
  font-size: 17px;
  color: #222;
  cursor: pointer;
  position: relative;
  padding: 0 8px;
  transition: color 0.2s, font-size 0.2s;
  white-space: nowrap; /* 텍스트 줄바꿈 방지 */
}

.navbar-menu li:hover {
  color: #03c75a;
}

/* 햄버거 메뉴 버튼 (모바일용) */
.hamburger {
  display: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
  margin-left: auto;
  background: url('svg/ham.svg') center center no-repeat;
  background-size: 24px 24px;
  border: none;
}
.hamburger span { display: none; }

/* 반응형: 425px 이하에서 메뉴 숨기고 햄버거 메뉴 표시, 메뉴 세로 정렬 및 폰트 크기 축소 */
@media (max-width: 1140px) {
  body {
    overflow-x: hidden; /* 가로 스크롤 방지 */
  }
  .navbar {
    padding: 10px 6px 10px 6px;
  }
  .navbar-menu {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    width: 100vw;
    flex-direction: column;
    /* 반투명 흰색 + 블러 효과 */
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #e5e5e5;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 10px 0;
  }
  .navbar-menu.active {
    display: flex;
  }
  .navbar-menu li {
    font-size: 15px; /* 모바일에서 폰트 크기 축소 */
    padding: 10px 0;
    text-align: center;
    border-bottom: 1px solid #e5e5e5; /* 각 항목 구분선 */
  }
  .navbar-menu li:last-child {
    border-bottom: none; /* 마지막 항목은 구분선 제거 */
  }
  .hamburger {
    display: block;
  }
}

/* 메인 텍스트 영역 스타일 */
.main-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 60px;
  margin-bottom: 40px;
  text-align: center;
  padding-left: 10px;  /* 최소 좌우 패딩 */
  padding-right: 10px;
}

.main-title {
  font-size: clamp(1.1rem, 3vw + 1.1rem, 3.8rem); /* 최소값 더 낮게 */
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -1px;
  word-break: keep-all; /* 단어 단위 줄바꿈 방지 */
}

.gradient-text {
  background: linear-gradient(90deg, #84fab0, #8fd3f4, #84fab0 120%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 2.5s linear infinite;
  font-weight: 900;
  font-size: clamp(1.5rem, 5vw + 1.1rem, 4.5rem); /* 최소값 더 낮게 */
  word-break: keep-all; /* 단어 단위 줄바꿈 방지 */
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.main-subtitle {
  font-size: clamp(1.5rem, 5vw + 1.1rem, 4.5rem); /* 최소값 더 낮게 */
  color: #222;
  font-weight: 900;
  margin-top: 0;
  word-break: keep-all; /* 단어 단위 줄바꿈 방지 */
}

.sub-desc {
  font-size: clamp(0.95rem, 1vw + 0.7rem, 1.1rem);
  color: #888;
  font-weight: 700;
  text-align: center;
  margin-top: -15px;
  line-height: 1.6;
}

@media (max-width: 1440px) and (min-width: 320px) {
  .main-section {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* 케러셀(슬라이더) 영역 스타일 */
.carousel-section {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 420px;
}

.carousel-track {
  display: flex;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-slide {
  min-width: 100%;
  transition: opacity 0.4s, transform 0.4s;
  opacity: 0;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  display: none; /* 기본적으로 숨김 */
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative; /* 버튼 위치 기준 */
}
.carousel-slide.active {
  display: flex; /* active만 보임 */
  opacity: 1;
  position: relative;
  z-index: 2;
  transform: translateX(0);
}
.carousel-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 0;
  display: block;
}
.carousel-caption {
  position: absolute;
  left: 32px;
  bottom: 32px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.carousel-caption h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
}
.carousel-caption p {
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0;
}
.carousel-btn {
  background: rgba(35, 198, 248, 0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  bottom: 16px;
  z-index: 10;
  transition: background 0.2s;
}
.carousel-btn:hover {
  background: rgba(35, 198, 248, 0.5);
}
.carousel-btn.prev {
  left: 16px;
}
.carousel-btn.next {
  right: 16px;
}

/* PC/태블릿(600px 이상) 케러셀 이미지 반응형 처리 */
@media (min-width: 601px) {
  .carousel-section {
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 3 / 1; /* 1200:400 = 3:1 비율 고정 */ /*이때 이미지 크기는 무조건 1200 px x 400px를 맞춰야지 알맞게 표시됨 */
    min-height: unset;
    height: 400px;
    margin: 40px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  .carousel-slide img {
    width: 100%;
    height: 100%;
    max-width: 1200px;
    max-height: 400px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
  }
}

@media (max-width: 1440px) and (min-width: 900px) {
  .carousel-section {
    max-width: 100vw;
  }
  .carousel-slide img {
    max-width: 700px;
    max-height: 400px;
  }
}
@media (max-width: 900px) and (min-width: 601px) {
  .carousel-section {
    min-height: 220px;
  }
  .carousel-slide img {
    max-height: 220px;
  }
}

@media (max-width: 600px) {
  .carousel-section {
    min-height: 100vw;
    margin-top: 20px;
    max-width: 100vw;
  }
  .carousel-slide img {
    width: 100vw;
    height: 100vw;
    max-width: 600px;
    max-height: 600px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
  }
  .carousel-caption {
    left: 10px;
    bottom: 10px;
  }
  .carousel-caption h3 {
    font-size: 0.95rem;
  }
  .carousel-caption p {
    font-size: 0.7rem;
  }
  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }
}

/* 케러셀 상단 버튼 영역 */
.carousel-top-btns {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
  margin-top: 24px;
}
.carousel-btn-link {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(90deg, #84fab0 0%, #8fd3f4 100%);
  color: #222;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 32px;
  border: none;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap; /* 줄바꿈 방지 */
}
.carousel-btn-link:hover {
  background: linear-gradient(90deg, #8fd3f4 0%, #84fab0 100%);
  color: #03c75a;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
@media (max-width: 600px) {
  .carousel-top-btns {
    gap: 10px;
    margin-bottom: 10px;
    margin-top: 12px;
  }
  .carousel-btn-link {
    padding: 8px 18px;
    font-size: 0.98rem;
  }
}



