/* =========================================================
   COALAB — 컬러 시스템 정리판
   웜 뉴트럴 배경 + 소프트 세이지 그린 포인트
   ========================================================= */

:root {
  --bg:            #FBF9F5;
  --bg-soft:       #F5F1E8;
  --surface:       #FFFFFF;

  --line:          #E9E3D6;
  --line-soft:     #F0EBE0;

  --ink:           #2C2A25;
  --ink-2:         #5B564C;
  --ink-3:         #726C60;

  --brand:         #33835A;
  --brand-deep:    #2A6E4A;
  --brand-ink:     #2E6448;
  --brand-tint:    #E6F0E8;

  --dark:          #2B302B;
  --dark-2:        #D6D1C4;
  --dark-3:        #A8B5A6;
  --dark-brand:    #8FC9A6;

  --shadow-sm:     0 1px 3px rgba(60, 50, 35, 0.05);
  --shadow-md:     0 4px 14px rgba(60, 50, 35, 0.07);
  --shadow-lg:     0 10px 30px rgba(60, 50, 35, 0.10);

  --radius:        16px;
  --radius-lg:     20px;
  --radius-pill:   999px;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
  background-color: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { color: var(--ink); }

/* 헤더 */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 40px;
  background: rgba(251, 249, 245, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
header h1 { margin: 0; display: flex; align-items: center; line-height: 1; flex-shrink: 0; }
header h1 a { display: block; line-height: 0; }
.logo-img { height: 56px; width: auto; display: block; }

nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; justify-content: flex-end; }
nav a {
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}
nav a:hover { color: var(--brand-ink); }
nav a.nav-cta {
  background: var(--brand);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: background 0.2s ease;
}
nav a.nav-cta:hover { background: var(--brand-deep); color: #fff; }

/* 히어로 */
.hero {
  text-align: center;
  padding: 100px 20px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
}
.hero h2 {
  font-size: 40px;
  font-weight: 700;
  margin: 0 auto 16px;
  max-width: 18ch;
  letter-spacing: -0.03em;
  line-height: 1.35;
}
.hero p { color: var(--ink-2); font-size: 18px; margin: 0 auto; max-width: 46ch; }
.hero button {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 14px 34px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero button:hover { background: var(--brand-deep); transform: translateY(-1px); }

.cta-area { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, transform 0.2s ease;
}
.cta-button:hover { background: var(--brand-deep); transform: translateY(-2px); }
.cta-button.secondary {
  background: transparent;
  border: 1.5px solid var(--brand);
  color: var(--brand-ink);
  box-shadow: none;
  padding: 13.5px 28.5px;
}
.cta-button.secondary:hover { background: var(--brand-tint); color: var(--brand-ink); }

/* 섹션 */
.section { padding: 80px 60px; text-align: center; background: var(--bg); }
.section h3 { font-size: 28px; font-weight: 700; margin-bottom: 60px; letter-spacing: -0.02em; }

/* 카드 — 3열 그리드, 높이 통일 */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
  align-items: stretch;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-tint); }
.card .emoji { font-size: 30px; line-height: 1; margin-bottom: 14px; }
.card h4 { margin: 0 0 8px; font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: -0.01em; }
.card p { color: var(--ink-2); font-size: 14px; margin: 0 0 18px; line-height: 1.65; }
.card small { display: block; color: var(--ink-3); margin-bottom: 10px; }
.card .details-link {
  margin-top: auto;
  padding-top: 16px;
  color: var(--brand-ink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.card .details-link:hover { text-decoration: underline; }
.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
  display: block;
  box-shadow: var(--shadow-sm);
}

/* 배지 */
.badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  background: var(--bg-soft);
  color: var(--ink-3);
  border: 1px solid var(--line);
}
.badge.active { background: var(--brand-tint); color: var(--brand-ink); border-color: transparent; }

/* 카드 메타 */
.meta { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 4px; }
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--ink-3);
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  white-space: nowrap;
}

/* 배너 3종 */
.kakao-banner, .ainews-banner, .blog-strip {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-lg);
  box-sizing: border-box;
}
.kakao-banner {
  background: var(--dark);
  padding: 44px 32px;
  text-align: center;
  margin-top: 16px;
  margin-bottom: 20px;
}
.kakao-banner h3 { color: #fff; font-size: 24px; margin: 0 0 10px; letter-spacing: -0.02em; }
.kakao-banner p { color: var(--dark-2); margin: 0 0 26px; font-size: 15px; }
.kakao-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FEE500;
  color: #191919;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.kakao-btn:hover { transform: translateY(-2px); filter: brightness(0.96); }

.ainews-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}
.ainews-banner .text strong { display: block; color: var(--ink); font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.ainews-banner .text span { color: var(--ink-3); font-size: 14px; }
.ainews-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.ainews-btn:hover { background: var(--brand-deep); }

.blog-strip {
  text-align: center;
  padding: 18px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  font-size: 14.5px;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.blog-strip a { color: var(--brand-ink); font-weight: 600; text-decoration: none; }
.blog-strip a:hover { text-decoration: underline; }

/* 블로그 미리보기 */
.blog-preview { padding: 80px 60px 40px; }
.blog-preview-header { text-align: center; margin-bottom: 40px; }
.blog-preview-header h3 { font-size: 28px; font-weight: 700; color: var(--ink); margin-bottom: 10px; letter-spacing: -0.02em; }
.blog-preview-header p { font-size: 14.5px; color: var(--ink-2); }
.blog-preview-header a { color: var(--brand-ink); font-weight: 600; text-decoration: none; }
.blog-preview-header a:hover { text-decoration: underline; }

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.blog-post-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bp-img { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-soft); }
.bp-img img { width: 100%; height: 100%; object-fit: cover; }
.bp-body { padding: 16px; }
.bp-body h4 { font-size: 14.5px; font-weight: 700; color: var(--ink); margin: 0 0 6px; line-height: 1.4; }
.bp-body p { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; margin: 0; }

/* 푸터 */
footer { background: var(--dark); color: var(--dark-2); text-align: center; padding: 90px 20px; }
footer h4 { font-size: 24px; font-weight: 700; margin-bottom: 25px; color: var(--dark-brand); }
footer .social { margin-bottom: 30px; font-size: 20px; color: var(--dark-3); }
footer .social a { color: var(--dark-3); text-decoration: none; transition: color 0.2s ease; }
footer .social a:hover { color: var(--dark-brand); }
footer p { font-size: 15px; color: var(--dark-2); margin-top: 30px; line-height: 1.7; }
footer .policy {
  margin-top: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px;
  border-radius: var(--radius);
  color: var(--dark-2);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  font-size: 15px;
  text-align: left;
}
footer .policy h5 { font-size: 17px; font-weight: 700; color: var(--dark-brand); margin-bottom: 12px; }
footer .policy-link { color: var(--dark-brand); text-decoration: underline; font-weight: 600; transition: color 0.3s; }
footer .policy-link:hover { color: #B4DDC3; }

/* 팀 소개 */
.instructors {
  background: var(--bg-soft);
  padding: 100px 60px;
  text-align: center;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.instructors h3 { font-size: 30px; font-weight: 700; margin-bottom: 15px; color: var(--ink); letter-spacing: -0.02em; }
.instructors p { color: var(--ink-2); font-size: 15px; margin-bottom: 60px; }
.instructor-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.instructor-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.instructor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.instructor-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--brand-tint);
  transition: transform 0.3s ease;
}
.instructor-card:hover img { transform: scale(1.04); }
.instructor-card h4 { margin: 10px 0 6px; font-weight: 700; color: var(--ink); }
.instructor-card p { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin-bottom: 15px; }

/* 교육 만족도 */
.satisfaction {
  background: var(--bg);
  padding: 90px 60px;
  text-align: center;
}
.satisfaction h3 { font-size: 28px; font-weight: 700; color: var(--ink); margin-bottom: 10px; letter-spacing: -0.02em; }
.satisfaction > p { color: var(--ink-2); font-size: 15px; margin-bottom: 44px; }
.satisfaction-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}
.satisfaction-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  min-width: 220px;
  flex: 1 1 220px;
  box-shadow: var(--shadow-sm);
}
.satisfaction-stat strong {
  display: block;
  font-size: 40px;
  font-weight: 800;
  color: var(--brand-deep);
  line-height: 1.1;
  margin-bottom: 10px;
}
.satisfaction-stat span {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.satisfaction-quote {
  max-width: 640px;
  margin: 32px auto 0;
  padding: 24px 28px;
  background: var(--brand-tint);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
  text-align: left;
}
.satisfaction-quote cite {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-style: normal;
  color: var(--ink-3);
}
.satisfaction-note {
  margin-top: 28px;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* 대표 소개 */
.founder {
  background: var(--bg-soft);
  padding: 100px 60px;
  text-align: center;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.founder h3 { font-size: 30px; font-weight: 700; margin-bottom: 15px; color: var(--ink); letter-spacing: -0.02em; }
.founder > p { color: var(--ink-2); font-size: 15px; margin-bottom: 60px; }

.founder-brief { max-width: 780px; margin: 0 auto 36px; text-align: center; }
.founder-brief h4 { font-size: 24px; margin: 0 0 8px; color: var(--ink); }
.founder-brief h4 span { display: block; font-size: 14px; font-weight: 500; color: var(--brand-deep); margin-top: 6px; }
.founder-brief p { font-size: 14.5px; color: var(--ink-2); line-height: 1.7; margin: 0; }

/* 강의 이력 요약 (다크 카드) */
.lecture-card {
  max-width: 640px;
  margin: 0 auto;
  background: #10141F;
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.lecture-stat strong {
  display: block;
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.lecture-stat span { font-size: 14px; color: #A6B0C8; }
.lecture-summary-note {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: #8F98B3;
  line-height: 1.6;
}

/* 태그 */
.tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--brand-tint);
  color: var(--brand-ink);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}
.tag:hover { background: var(--brand); color: #fff; }

/* 모달 */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44, 42, 37, 0.55);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.modal.show { display: flex; }
.modal-content {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px;
  width: 400px;
  max-width: 90%;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 0.2s;
}
.close:hover { color: var(--ink); }

/* 폼 */
#applyForm label { display: block; margin-top: 10px; font-weight: 500; font-size: 14px; color: var(--ink); }
#applyForm input,
#applyForm select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#applyForm input:focus,
#applyForm select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(51, 131, 90, 0.18);
}
#applyForm button {
  margin-top: 20px;
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  width: 100%;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s ease;
}
#applyForm button:hover { background: var(--brand-deep); }
#privacy {
  background: var(--bg-soft);
  font-size: 12px;
  padding: 12px;
  margin-top: 15px;
  border-radius: 8px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* 소개 섹션 */
.about-header { text-align: center; padding: 100px 20px 40px; background: var(--bg); }
.about-header h2 { font-size: 34px; font-weight: 800; color: var(--ink); margin-bottom: 15px; letter-spacing: -0.02em; }
.about-header p { font-size: 17px; color: var(--ink-2); line-height: 1.7; max-width: 720px; margin: 0 auto; }

.about-scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  padding: 40px 40px 120px;
  background: var(--bg);
}
.scroll-container {
  position: relative;
  width: 520px;
  height: 420px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.image-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s ease, transform 2s ease, filter 1.2s ease;
  filter: brightness(85%);
}
.image-box img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.image-box.active { opacity: 1; transform: scale(1); filter: brightness(100%); }

.about-info { max-width: 450px; }
.about-info h3 { font-size: 36px; font-weight: 800; color: var(--ink); margin-bottom: 20px; letter-spacing: -0.02em; }
.about-info h3 span { color: var(--brand-ink); }
.about-info p { font-size: 17px; line-height: 1.8; color: var(--ink-2); margin-bottom: 30px; }
.about-btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s, transform 0.2s ease;
}
.about-btn:hover { background: var(--brand-deep); transform: translateY(-1px); }

/* 신청 섹션 */
.apply-section {
  text-align: center;
  padding: 70px 20px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
}
.apply-section h2 { font-size: 28px; margin-bottom: 10px; color: var(--ink); letter-spacing: -0.02em; }
.apply-section p { color: var(--ink-2); font-size: 16px; margin-bottom: 25px; }
.apply-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 13px 30px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, transform 0.2s ease;
}
.apply-btn:hover { background: var(--brand-deep); transform: translateY(-1px); }

/* 반응형 */
@media (max-width: 1140px) {
  .section, .instructors, .founder, .satisfaction { padding: 80px 40px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; }
  .instructor-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
  .kakao-banner, .ainews-banner, .blog-strip { margin-left: 40px; margin-right: 40px; }
  .blog-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  header { padding: 14px 20px; gap: 12px; }
  .logo-img { height: 44px; }
  nav { gap: 16px; }
  nav a { font-size: 14px; }
  .hero { padding: 64px 20px; }
  .hero h2 { font-size: 28px; max-width: none; }
  .hero p { font-size: 16px; }
  .cta-button { padding: 13px 24px; font-size: 15px; }
  .section, .instructors, .founder, .satisfaction { padding: 60px 20px; }
  .section h3 { margin-bottom: 40px; }
  .founder-profile { flex-direction: column; align-items: center; text-align: center; padding: 32px 24px; }
  .lecture-card { padding: 28px 20px; }
  .lecture-stat strong { font-size: 38px; }
  .about-header { padding: 60px 20px 30px; }
  .about-scroll { flex-direction: column; gap: 40px; padding: 20px 20px 70px; }
  .scroll-container { width: 100%; max-width: 520px; height: 300px; }
  .about-info h3 { font-size: 28px; }
  .kakao-banner, .ainews-banner, .blog-strip { margin-left: 20px; margin-right: 20px; }
  .blog-preview { padding: 60px 20px 30px; }
  .blog-preview-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .kakao-banner { padding: 34px 22px; }
  .ainews-banner { flex-direction: column; align-items: flex-start; }
  footer { padding: 60px 20px; }
  footer .policy { padding: 24px; }
}

@media (max-width: 600px) {
  .cards, .instructor-cards { grid-template-columns: minmax(0, 1fr); max-width: 400px; }
  .cta-area { flex-direction: column; }
  .cta-button { width: 100%; text-align: center; box-sizing: border-box; }
  header { flex-direction: column; align-items: stretch; }
  nav { justify-content: center; }
}
