
/* 기본 설정 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
  background: #fff;
  color: #222;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 100px 0;
}

.section-dark {
  background: #f5f5f5;
}

/* 버튼 */
.btn {
  display: inline-block;
  background: #d9ff43;
  color: #111;
  padding: 15px 30px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  transition: 0.3s;
}

.btn:hover {
  background: #bde52e;
  transform: translateY(-3px);
}

.btn-small {
  padding: 10px 20px;
}

/* 헤더 */
.header {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  color: #fff;
}

.nav {
  height: 85px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -1px;
}

.logo span,
.footer span {
  color: #d9ff43;
}

.menu {
  display: flex;
  gap: 35px;
}

.menu a {
  font-size: 15px;
  transition: color 0.3s;
}

.menu a:hover {
  color: #d9ff43;
}

/* 메인 배너 */
.hero {
  min-height: 750px;
  height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(
      rgba(0, 0, 0, 0.65),
      rgba(0, 0, 0, 0.55)
    ),
    url("https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1600")
    center / cover no-repeat;
}

.hero-content {
  padding-top: 70px;
}

.sub-title {
  color: #d9ff43;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.25;
  font-weight: 900;
  margin-bottom: 25px;
}

.hero-desc {
  color: #ddd;
  font-size: 18px;
  margin-bottom: 35px;
}

/* 공통 섹션 제목 */
.section-title {
  text-align: center;
  margin-bottom: 55px;
}

.section-title > p {
  color: #8aab18;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-title span {
  color: #777;
  font-size: 16px;
}

/* 센터 소개 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.card {
  background: #f8f8f8;
  padding: 45px 30px;
  border-radius: 12px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.card-icon {
  color: #9cbd25;
  font-size: 35px;
  font-weight: 900;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.card p {
  color: #777;
  font-size: 15px;
}

/* 프로그램 */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.program-card {
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}

.program-card img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s;
}

.program-card:hover img {
  transform: scale(1.05);
}

.program-info {
  padding: 25px;
}

.program-info h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.program-info p {
  color: #777;
  font-size: 14px;
}

/* 멤버십 */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.price-card {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 45px 25px;
  text-align: center;
}

.price-card.featured {
  border: 2px solid #a5ca2a;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.popular {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #d9ff43;
  color: #111;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.price-card h3 {
  font-size: 23px;
  margin-bottom: 20px;
}

.price {
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 25px;
}

.price-card > p:not(.price) {
  margin-bottom: 15px;
  color: #666;
}

.price-card .btn {
  margin-top: 25px;
}

.price-note {
  margin-top: 25px;
  text-align: center;
  font-size: 13px;
  color: #888;
}

/* 상담 */
.contact {
  background: #161616;
  color: #fff;
  text-align: center;
  padding: 100px 0;
}

.contact h2 {
  font-size: 38px;
  margin-bottom: 15px;
}

.contact p {
  color: #bbb;
  margin-bottom: 30px;
}

/* 푸터 */
.footer {
  background: #0e0e0e;
  color: #888;
  padding: 40px 0;
  text-align: center;
}

.footer h3 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 10px;
}

.footer p {
  font-size: 13px;
  margin-top: 5px;
}

/* 태블릿 */
@media (max-width: 900px) {
  .card-grid,
  .program-grid,
  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu {
    gap: 18px;
  }

  .section {
    padding: 75px 0;
  }
}

/* 모바일 */
@media (max-width: 600px) {
  .nav {
    height: 75px;
  }

  .logo {
    font-size: 23px;
  }

  .menu {
    display: none;
  }

  .btn-small {
    font-size: 12px;
    padding: 9px 13px;
  }

  .hero {
    min-height: 600px;
    height: 85vh;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .section {
    padding: 65px 0;
  }

  .section-title h2 {
    font-size: 26px;
  }

  .card-grid,
  .program-grid,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .program-card img {
    height: 240px;
  }

  .contact {
    padding: 70px 0;
  }

  .contact h2 {
    font-size: 27px;
  }
}

/* 프로그램 상세 페이지 */
a.program-card {
  display: block;
  color: inherit;
}

.page-hero {
  min-height: 480px;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.55)),
    var(--bg) center / cover no-repeat;
}

.detail-box {
  max-width: 760px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.check-list li {
  background: #fff;
  border-radius: 10px;
  padding: 18px 22px 18px 54px;
  position: relative;
  font-size: 16px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 22px;
  color: #8aab18;
  font-weight: 900;
}

.detail-plan {
  margin-top: 30px;
  text-align: center;
  color: #555;
}

.back-link {
  margin-top: 30px;
  margin-bottom: 0;
}

.back-link a:hover {
  color: #d9ff43;
}

@media (max-width: 600px) {
  .page-hero {
    min-height: 400px;
  }
}
