:root {
  --bg-color: #ffeee7;
  --text-color: #7a6a64;
}

body {
  background-color: var(--bg-color);
  margin: 0;
  padding: 40px 0;
  font-family: "Pretendard", sans-serif;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.swiper {
  width: 100%;
  height: 1200px;
  padding-bottom: 60px !important;
  /* 숫자를 키울수록 점들이 아래로 내려갈 공간이 생깁니다 */
}

.swiper-slide {
  height: calc((100% - 60px) / 4) !important;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.img-box {
  width: 100%;
  height: 90%;
  /* 이미지 영역 비율 */
  overflow: hidden;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-box {
  height: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-color);
  background: #fff;
}

.swiper-pagination {
  bottom: 0px !important;
  /* 기본값이 10px 정도이므로, 더 낮추고 싶으면 0이나 마이너스 값을 줍니다 */
}

.swiper-pagination-bullet-active {
  background: var(--text-color);
}

/* Inter 폰트 설정 */
body {
  font-family: "Inter", sans-serif;
  background-color: #f4f1ed;
  /* 전체 배경색 유지 */
  color: #333;
  padding: 0;
  /* 전체 너비 배경을 위해 body 패딩 제거 */
}

.bottom {
  background: #f3f3f3;
  font-size: 12px;
  padding: 50px;
  line-height: 20px;
  color: #545454;
  text-align: center;
}

/* [추가된 부분]: 신청 폼 전용 스타일 */
.form-bg {
  background-color: #f7f3f0;
  /* 이미지 배경색과 유사하게 조정 */
}

.submit-btn {
  background-color: #5c4033;
  transition: background-color 0.2s;
}

.submit-btn:hover {
  background-color: #4b3a33;
}

.cursive-title {
  font-family: "Brush Script MT", cursive;
  /* 이미지의 필기체 폰트 (시스템 폰트 사용) */
  font-size: 2.5rem;
  line-height: 1;
}

/* / [추가된 부분] */

/* 트랜지션 효과를 위한 CSS */
.content-area {
  /* opacity 속성의 변화에 0.4초 동안 ease-in-out 효과 적용 */
  transition: opacity 0.4s ease-in-out;
}

/* 버튼 기본 스타일 (라운드 제거, 대괄호 상태) */
.tab-button {
  padding: 8px 15px;
  margin: 0 1px;
  /* border: 1px solid #7d726b; <- 테두리 제거 */
  /* border-radius: 9999px; <- 라운드 제거 */
  border-radius: 5.55rem;
  /* 살짝 둥근 모서리 유지 */
  color: #957575;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 900;
  white-space: nowrap;
  /* 버튼 내용이 줄바꿈되지 않도록 */
}

/* 활성화된 버튼 스타일 - 공통 속성 */
.tab-button.active {
  color: white;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.youtube-container {
  position: relative;
  padding-bottom: 140%;
  /* 16:9 비율을 위한 패딩 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.youtube-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 섹션별 활성화된 버튼 색상 설정 */
#dress-section .tab-button.active {
  background-color: #957575;
  /* Dress (Dusty Rose) */
  border-color: #957575;
}

#studio-section .tab-button.active {
  background-color: #c66a8f;
  /* Studio (Soft Blue/Grey) */
  border-color: #90a9b2;
}

#movie-section .tab-button.active {
  background-color: #5eb16e;
  /* Movie (Warm Taupe) */
  border-color: #b4a5a5;
}

#smallwedding-section .tab-button.active {
  background-color: #9c89b8;
  /* smallwedding (Soft Purple) */
  border-color: #9c89b8;
}

#suit-section .tab-button.active {
  background-color: #c66a8f;
  /* smallwedding (Soft Purple) */
  border-color: #9c89b8;
}

#hanbok-section .tab-button.active {
  background-color: #5eb16e;
  /* smallwedding (Soft Purple) */
  border-color: #9c89b8;
}

#jewelry-section .tab-button.active {
  background-color: #957575;
  /* smallwedding (Soft Purple) */
  border-color: #957575;
}

#honeymoon-section .tab-button.active {
  background-color: #c66a8f;
  /* smallwedding (Soft Purple) */
  border-color: #957575;
}

#Financial-section .tab-button.active {
  background-color: #5eb16e;
  /* smallwedding (Soft Purple) */
  border-color: #9c89b8;
}

#aesthetic-section .tab-button.active {
  background-color: #957575;
  /* smallwedding (Soft Purple) */
  border-color: #957575;
}

#personal-section .tab-button.active {
  background-color: #c66a8f;
  /* smallwedding (Soft Purple) */
  border-color: #957575;
}

#electronics-section .tab-button.active {
  background-color: #5eb16e;
  /* smallwedding (Soft Purple) */
  border-color: #9c89b8;
}

/* 섹션별 배경색 및 스타일 설정: 전체 너비 적용 */
#dress-section,
#studio-section,
#movie-section,
#smallwedding-section,
#suit-section,
#hanbok-section,
#jewelry-section,
#honeymoon-section,
#Financial-section,
#aesthetic-section,
#personal-section,
#electronics-section {
  /* 상하 패딩만 남기고, 좌우 마진/패딩, 그림자, 모서리 둥글게 제거 */
  padding-top: 5rem;
  padding-bottom: 5rem;
  margin-bottom: 0;
  /* 섹션 간격 제거 */
}

/* 명확하게 구분되는 파스텔 톤으로 배경색 변경 */
#dress-section {
  background-color: #fefbf9;
}

#studio-section {
  background-color: #f2edef;
}

#movie-section {
  background-color: #edf2ee;
}

/* [새로운 섹션] 한복 섹션 배경색 */
#smallwedding-section {
  background-color: #fefbf9;
  /* Soft Lavender/Purple */
}

#suit-section {
  background-color: #f2edef;
  /* Soft Lavender/Purple */
}

#hanbok-section {
  background-color: #edf2ee;
  /* Soft Lavender/Purple */
}

#jewelry-section {
  background-color: #fefbf9;
}

#honeymoon-section {
  background-color: #f2edef;
}

#Financial-section {
  background-color: #edf2ee;
  /* Soft Lavender/Purple */
}

#aesthetic-section {
  background-color: #fefbf9;
}

#personal-section {
  background-color: #f2edef;
}

#electronics-section {
  background-color: #edf2ee;
  /* Soft Lavender/Purple */
}

/* 이미지 컨테이너 설정 */
.image-container {
  width: 100%;
  padding-bottom: 125%;
  /* 4:5 비율 */
  position: relative;
}

.main-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* 섹션 구분선 제거 (전체 배경색으로 구분되므로 불필요) */
.section-divider {
  display: none;
}

/* 모바일 레이아웃 */
@media (max-width: 767px) {
  .grid-layout {
    grid-template-columns: 1fr;
  }

  .image-container {
    padding-bottom: 110%;
    /* 모바일에서 이미지 비율 조정 */
  }

  .content-text {
    margin-top: 1.5rem;
  }

  #dress-section,
  #studio-section,
  #movie-section,
  #smallwedding-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  /* [추가] 모바일 메인 비주얼 이미지 높이 설정 (picture 태그의 <img>에 적용) */
  .main-visual-container img {
    height: auto;
    max-height: 80vh;
    object-fit: cover;
  }
}
