html {
  font-size: 16px;
}

* {
  margin: 0 auto;
  max-width: 640px;
}

body {
  font-size: 1rem;
  line-height: 1.5;
  font-family: 'Pretendard', sans-serif;
  color: #333;
  background: #f0f4f8;
  /* #f2f2f7; */
}

header {
  font-weight: bold;
  padding: 1.4rem;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}

.tab-menu {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 12px 16px;
  background: #f7f7fb;
}

.tab-menu button {
  background: #e0e0ea;
  border: none;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 14px;
  white-space: nowrap;
}

.tab-menu button.active {
  background: #333;
  color: white;
}

/* 슬라이드 시작 */

.main-banner {
  margin: 0 auto;
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 0 0 30px 0;
  min-height: 420px;
  background: #f2f2f2;
}

.main-banner h1 {
  font-size: 2rem;
}

.banner-text {
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: white;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.funnel {
  background: linear-gradient(to bottom, #f2f2f7, #e6f4ea);
  padding: 100px 20px;
  border-radius: 20px;
  text-align: center;
  font-family: 'Pretendard', sans-serif;
}

.funnel h2 {
  font-size: 1.4rem;
  font-weight: bold;
  color: #ff0000;
  margin-bottom: 20px;
}

.funnel p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #333;
}

.card {
  padding: 1.5rem 1rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: inline-block;
  background: #fff;

  margin: 0 auto;
}

.card h3 {
  font-size: 20px;
  color: #444;
  margin-bottom: 10px;
}

.card p {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.card a {
  display: inline-block;
  padding: 12px 24px;
  background: #2e7d32;
  /* 1a5d1a*/
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

/* === 버튼 스타일 가이드: 브랜드 색상 기반 === */
/* 기준 색상: 카이로스/SMILE ParkGolf에 어울리는 색 조합 */

/* 공통 버튼 스타일 */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

/* 1. 딥그린 테마 (브랜드 기본) */
.button-green {
  background-color: #1a5d1a;
  color: #ffffff;
}

.button-green:hover {
  background-color: #144b14;
}

/* 2. 포레스트 올리브 */
.button-olive {
  background-color: #3e5622;
  color: #ffffff;
}

.button-olive:hover {
  background-color: #2c3f18;
}

/* 3. 딥블루 포인트 */
.button-blue {
  background-color: #003a9a;
  color: #ffffff;
}

.button-blue:hover {
  background-color: #002a75;
}

/* 4. 라이트 옐로우 포인트 (주의용, 강조) */
.button-yellow {
  background-color: #fccc00;
  color: #003a9a;
}

.button-yellow:hover {
  background-color: #e6b800;
}

/* 5. 미드나잇 블랙 (고급감) */
.button-black {
  background-color: #222222;
  color: #ffffff;
}

.button-black:hover {
  background-color: #000000;
}

/* 6. 크림 화이트 (부드러운 톤) */
.button-cream {
  background-color: #f2f2f2;
  color: #1a1a1a;
  border: 1px solid #cccccc;
}

.button-cream:hover {
  background-color: #e6e6e6;
}

/* 버튼 끝 */

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider {
  display: flex;
  width: 100%;
  /* 이미지 4장 */
  height: 100%;
  animation: slide-center-4 12s infinite ease-in-out;
}

@keyframes slide-center-4 {
  0% {
    transform: translateX(100%);
  }

  /* 1번: 오른쪽 밖에서 들어옴 */
  10% {
    transform: translateX(0%);
  }

  /* 1번: 가운데 */
  20% {
    transform: translateX(0%);
  }

  /* 정지 */
  30% {
    transform: translateX(-100%);
  }

  /* 2번 */
  40% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(-200%);
  }

  /* 3번 */
  60% {
    transform: translateX(-200%);
  }

  70% {
    transform: translateX(-300%);
  }

  /* 4번 */
  80% {
    transform: translateX(-300%);
  }

  100% {
    transform: translateX(-300%);
  }
}

.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

/* 슬리이드 끝 */

.quick-links {
  max-width: 600px;
  margin: 0 auto;
}

/* accordion-item 시작 */
.accordion-item {
  background: #ffffff;
  border: 1px solid #d0e3f0;
  border-radius: 30px;
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-title {
  padding: 16px;
  cursor: pointer;
  background: #fff;
  font-weight: bold;
  transition: background 0.3s ease;
  text-align: center;
}

.accordion-title:hover {
  background: #bce4ff;
}

.accordion-content {
  padding: 16px;
  display: none;
  border-top: 1px solid #aad4f5;
  background: #ffffff;
  animation: slideDown 0.3s ease-in-out;
}

.accordion-title.active {
  background: #a6dbf9;
}

.accordion-item.active .accordion-content {
  max-height: 600px;
  padding: 32px 16px;
}

/* hover & active 색상 1~10 */
.accordion-item:nth-child(1) .accordion-title:hover,
.accordion-item:nth-child(1).active .accordion-title {
  background: #bce4ff;
}

.accordion-item:nth-child(2) .accordion-title:hover,
.accordion-item:nth-child(2).active .accordion-title {
  background: #ffd8a8;
}

.accordion-item:nth-child(3) .accordion-title:hover,
.accordion-item:nth-child(3).active .accordion-title {
  background: #d3f9d8;
}

.accordion-item:nth-child(4) .accordion-title:hover,
.accordion-item:nth-child(4).active .accordion-title {
  background: #ffe0f0;
}

.accordion-item:nth-child(5) .accordion-title:hover,
.accordion-item:nth-child(5).active .accordion-title {
  background: #e0e0ff;
}

.accordion-item:nth-child(6) .accordion-title:hover,
.accordion-item:nth-child(6).active .accordion-title {
  background: #fff3bf;
}

.accordion-item:nth-child(7) .accordion-title:hover,
.accordion-item:nth-child(7).active .accordion-title {
  background: #d0ebff;
}

.accordion-item:nth-child(8) .accordion-title:hover,
.accordion-item:nth-child(8).active .accordion-title {
  background: #e6fcf5;
}

.accordion-item:nth-child(9) .accordion-title:hover,
.accordion-item:nth-child(9).active .accordion-title {
  background: #f8f0fc;
}

.accordion-item:nth-child(10) .accordion-title:hover,
.accordion-item:nth-child(10).active .accordion-title {
  background: #ffe8cc;
}

/* accordion-item 끝 */

.close-btn {
  display: block;
  margin: 10px auto 0;
  padding: 10px 20px;
  background: #eee;
  color: #333;
  font-size: 14px;
  border-radius: 20px;
  text-align: center;
  margin-top: 20px;
  cursor: pointer;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.copyright {
  font-size: 0.75rem;
  width: 100%;
  justify-content: space-around;
  padding: 30px 0;
  margin: 1rem auto;
  text-align: center;
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex;
  background: #fff;
  border-top: 1px solid #ccc;
  justify-content: space-around;
  padding: 10px 0;
}

footer div {
  font-size: 16px;
  text-align: center;
}

/* 수강후기 시작 */
.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding: 1rem;
  scroll-behavior: smooth;
  text-align: justify;
}

.testimonial-slide {
  flex: 0 0 85%;
  scroll-snap-align: center;
  background: #f1f8f5;
  padding: 1.2rem;
  border-top: 4px solid #52b788;
  border-bottom: 4px solid #52b788;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.testimonial-slide p {
  font-size: 1rem;
  line-height: 1.6;
}

.testimonial {
  background: #f1f8f5;
  padding: 1.2rem;
  margin-bottom: 1.2rem;
  border-top: 4px solid #52b788;
  border-bottom: 4px solid #52b788;
  border-radius: 8px;
}

.testimonial:nth-child(1) {
  background: #e8f5e9;
  border-top: 4px solid #66bb6a;
}

.testimonial:nth-child(2) {
  background: #e3f2fd;
  border-top: 4px solid #42a5f5;
  border-bottom: 4px solid #42a5f5;
}

.testimonial:nth-child(3) {
  background: #fff3e0;
  border-top: 4px solid #ffb74d;
  border-bottom: 4px solid #ffb74d;
}

.testimonial:nth-child(4) {
  background: #f3e5f5;
  border-top: 4px solid #ab47bc;
  border-bottom: 4px solid #ab47bc;
}

.testimonial:nth-child(5) {
  background: #ede7f6;
  border-top: 4px solid #7e57c2;
  border-bottom: 4px solid #7e57c2;
}

.testimonial p {
  margin: 0.4rem 0;
}

/* 수강후기 끝 */

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: auto;
  overflow: hidden;
  border-radius: 12px;
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 파트너사 슬라이드 시작 */
.partner-cards {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 30px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.partner-card {
  flex: 0 0 280px;
  height: 180px;
  background: #f1f8f5;
  /* #f1f8f5 */
  border-radius: 20px 20px;
  gap: 1rem;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  scroll-snap-align: start;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #52b788;
  border-bottom: 4px solid #52b788;
}

.partner-card:nth-child(1) {
  background: #fff;
  /* #f1f8f5 */
}

.partner-card:nth-child(2) {
  background: #fff;
  /* #e3f2fd; */
  border-top: 4px solid #42a5f5;
  border-bottom: 4px solid #42a5f5;
}

.partner-card:nth-child(3) {
  background: #fff;
  /* #fff3e0; */
  border-top: 4px solid #ffb74d;
  border-bottom: 4px solid #ffb74d;
}

.partner-card:nth-child(4) {
  background: #fff;
  /* #f3e5f5; */
  border-top: 4px solid #ab47bc;
  border-bottom: 4px solid #ab47bc;
}

.partner-card:nth-child(5) {
  background: #fff;
  /* #ede7f6; */
  border-top: 4px solid #7e57c2;
  border-bottom: 4px solid #7e57c2;
}

.partner-card:nth-child(6) {
  background: #fff;
  /* #e0f7fa; */
  border-top: 4px solid #00acc1;
  border-bottom: 4px solid #00acc1;
}

.partner-card:nth-child(7) {
  background: #fff;
  /* #fce4ec; */
  border-top: 4px solid #ec407a;
  border-bottom: 4px solid #ec407a;
}

.partner-card:nth-child(8) {
  background: #fff;
  /* #f9fbe7; */
  border-top: 4px solid #c0ca33;
  border-bottom: 4px solid #c0ca33;
}

.partner-card:nth-child(9) {
  background: #fff;
  /* #fff8e1; */
  border-top: 4px solid #fbc02d;
  border-bottom: 4px solid #fbc02d;
}

.partner-card:nth-child(10) {
  background: #fff;
  /* #f1f8e9; */
  border-top: 4px solid #8bc34a;
  border-bottom: 4px solid #8bc34a;
}


.card-text {
  font-size: 1em;
  color: #333;
  line-height: 1.5;
  flex-grow: 1;
}

.card-footer {
  margin-top: 0.75rem;
  font-weight: bold;
  font-family: 'Cafe24Ssurround', sans-serif;
  color: #1976d2;
}

.card-footer.highlight1 {
  color: #0077b6;
}

.card-footer.highlight2 {
  color: #f57c00;
}

.card-footer.highlight3 {
  color: #6a4c93;
}

/* 파트너사 슬라이드 끝 */

.partner-item {
  flex: 0 0 auto;
  width: 140px;
  height: 80px;
  gap: 1rem;
  margin: 30px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  color: #000;
  border-radius: 10px 30px;
  background: #fff;
  /* 기본 배경색 */
  box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.1);
}

.partner-track {
  will-change: transform;
}

/* 강조 파트너 색상 */
.partner-item.highlight1 {
  color: #0077b6;
}

.partner-item.highlight2 {
  color: #2b9348;
}

.partner-item.highlight3 {
  color: #f4a261;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.partner-marquee {
  overflow-x: auto;
  /* 수동 스크롤 허용 */
  scroll-snap-type: x mandatory;
  /* 스냅 정렬 */
  -webkit-overflow-scrolling: touch;
  /* 모바일 스크롤 부드럽게 */
  max-width: 100%;
  white-space: nowrap;
}

.partner-track {
  display: flex;
  min-width: 100vw;
  will-change: transform;
}

.partner-item {
  scroll-snap-align: start;
}

.cta {
  text-align: center;
  margin-top: 2rem;
}

.cta a,
.cta button {
  background: #1976d2;
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  display: inline-block;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
  }

  .main-banner {
    height: 280px;
    /* 모바일에서 높이 축소 */
    min-height: 300px;
    border-radius: 0 0 30px 0;
  }

  .main-banner h1 {
    font-size: 1.5rem;
  }

  .section {
    padding: 32px 5px;
    margin: 30px 0;
    text-align: left;
  }

  .cta a {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }
}