*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --bg-section: #f5f5f5;
  --bg-card: #ffffff;
  --accent: #4a4a4a;
  --accent-dark: #2d2d2d;
  --accent-light: #8a8a8a;
  --text: #1a1a1a;
  --text-sub: #5c5c5c;
  --text-dim: #8a8a8a;
  --border: #e0e0e0;
  --font: 'Noto Sans KR', -apple-system, sans-serif;
  --max: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== Quick Menu ===== */
.quick-menu {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
}

.quick-item {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 16px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--accent-dark);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background 0.15s;
}

.quick-item:first-child { border-radius: 8px 0 0 0; }
.quick-item:last-child { border-radius: 0 0 0 8px; border-bottom: none; }

.quick-item:hover { background: var(--accent); }

.quick-item--yt { background: #6b6b6b; }
.quick-item--yt:hover { background: #555; }
.quick-item--ig { background: #7a7a7a; }
.quick-item--ig:hover { background: #636363; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 64px;
}

.logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  color: var(--text);
}

.logo span {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-left: 6px;
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  transition: color 0.15s;
  white-space: nowrap;
}

.nav a:hover { color: var(--accent-dark); }

.nav a.is-active {
  color: var(--accent-dark);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Sub page hero ===== */
.page-hero {
  margin-top: 64px;
  padding: 56px 0 48px;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.page-hero p:last-child {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.7;
  max-width: 560px;
}

.page-content {
  max-width: 720px;
}

.page-lead {
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.85;
  margin-bottom: 16px;
}

/* ===== Home quick links ===== */
.home-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.home-link-card {
  display: block;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.home-link-card:hover {
  border-color: var(--accent-light);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.home-link-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.home-link-card p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.6;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  max-height: 800px;
  margin-top: 64px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide--photo .hero-dim {
  background: linear-gradient(90deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.55) 45%, rgba(255,255,255,0.15) 100%);
}

.hero-slide--photo-1 {
  background: url('images/hero-slide-1.png') center / cover no-repeat;
}

.hero-slide--photo-2 {
  background: url('images/hero-slide-2.png') center / cover no-repeat;
}

.hero-slide--photo-3 {
  background: url('images/hero-slide-3.png') center / cover no-repeat;
}

.hero-dim {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -1px;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-sub {
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.85;
  max-width: 520px;
}

.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--accent-light);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}

.dot.active,
.dot:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

/* ===== Brand tag ===== */
.brand-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 12px;
}

/* ===== Stats bar ===== */
.stats-bar {
  background: var(--accent-dark);
  color: #fff;
  padding: 40px 24px;
}

.stats-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.stats-copy {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 28px;
  line-height: 1.7;
}

.stats-copy strong { font-weight: 800; }

.stats-nums {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat-item strong {
  display: block;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 4px;
}

.stat-item span {
  font-size: 13px;
  opacity: 0.75;
}

/* ===== Sections ===== */
.section {
  padding: 80px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.section--dark {
  max-width: none;
  background: var(--bg-section);
  padding-left: 0;
  padding-right: 0;
}

.section--dark .section-head,
.section--dark .vision-grid,
.section--dark .program-grid {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--text);
}

.section-desc {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== Video grid ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.video-card {
  display: block;
  transition: transform 0.2s;
}

.video-card:hover { transform: translateY(-4px); }

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #e8e8e8, #d4d4d4);
}

.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: rgba(255,255,255,0.55);
  transition: background 0.2s, color 0.2s;
}

.video-card:hover .play-btn {
  background: rgba(45, 45, 45, 0.75);
  color: #fff;
}

.video-card p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub);
}

/* ===== Vision ===== */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.vision-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.vision-card:hover {
  border-color: var(--accent-light);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.vision-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.vision-card p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* ===== Teachers ===== */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.teacher-item {
  text-align: center;
  padding: 36px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.teacher-photo {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6b6b6b, #3d3d3d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 900;
  color: #fff;
}

.teacher-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.teacher-field {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.teacher-item p:last-child {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.65;
}

/* ===== Programs ===== */
.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.program-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

a.program-item {
  display: block;
  text-decoration: none;
  color: inherit;
}

.program-item:hover {
  border-color: var(--accent-light);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.program-item h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.program-item p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===== Facility slider ===== */
.facility-slider {
  max-width: 900px;
  margin: 0 auto;
}

.facility-track {
  display: flex;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.facility-slide {
  min-width: 100%;
  height: 400px;
  background-image: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.facility-slide span {
  font-size: 28px;
  font-weight: 800;
  color: rgba(0,0,0,0.15);
  letter-spacing: 4px;
}

.facility-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
}

.fac-prev,
.fac-next {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  border-radius: 4px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.fac-prev:hover,
.fac-next:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--bg-section);
}

.fac-count {
  font-size: 14px;
  color: var(--text-sub);
}

.fac-count em {
  font-style: normal;
  color: var(--accent-dark);
  font-weight: 700;
}

/* ===== News ===== */
.section--news {
  background: var(--bg-section);
  max-width: none;
}

.section--news {
  padding-left: 24px;
  padding-right: 24px;
}

.section--news .section-head,
.section--news .news-list {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.news-list li {
  border-bottom: 1px solid var(--border);
}

.news-list a {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  transition: color 0.15s;
}

.news-list a:hover { color: var(--accent-dark); }

.news-date {
  font-size: 13px;
  color: var(--text-dim);
  flex-shrink: 0;
  width: 100px;
}

.news-title {
  font-size: 15px;
  font-weight: 500;
}

/* ===== Contact ===== */
.contact-section {
  max-width: none;
  background: var(--bg-section);
}

.contact-section .section-head,
.contact-section .contact-box {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.contact-box {
  text-align: center;
}

.contact-phone {
  margin-bottom: 32px;
}

.phone-num {
  display: block;
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--accent-dark);
  margin-bottom: 8px;
  transition: opacity 0.15s;
}

.phone-num:hover { opacity: 0.7; }

.contact-phone p {
  font-size: 14px;
  color: var(--text-sub);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  font-size: 14px;
  background: var(--bg-card);
}

.hours-table th,
.hours-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}

.hours-table th {
  width: 100px;
  background: var(--bg-section);
  font-weight: 700;
  color: var(--accent-dark);
}

.hours-table td { color: var(--text-sub); }

.contact-extra {
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 2;
}

.contact-extra a { color: var(--text); }
.contact-extra a:hover { color: var(--accent-dark); }

.btn-contact {
  display: inline-block;
  padding: 16px 48px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
  transition: background 0.15s;
}

.btn-contact:hover { background: var(--accent); }

/* ===== Footer ===== */
.footer {
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--bg);
}

.footer-logo {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.footer p:last-child {
  font-size: 12px;
  color: var(--text-dim);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .vision-grid { grid-template-columns: repeat(2, 1fr); }
  .program-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .quick-menu { display: none; }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }

  .nav.open { display: flex; }

  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .menu-toggle { display: flex; }

  .hero-content { padding: 0 24px; }

  .video-grid { grid-template-columns: repeat(2, 1fr); }

  .teacher-grid { grid-template-columns: 1fr; }

  .program-grid { grid-template-columns: repeat(2, 1fr); }

  .stats-nums { gap: 24px; }

  .facility-slide { height: 260px; }

  .news-list a { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (max-width: 900px) {
  .home-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .video-grid,
  .program-grid,
  .vision-grid,
  .home-links {
    grid-template-columns: 1fr;
  }
}
