/* ===== Variables (학원·교육 — Navy/Blue 테마) ===== */
:root {
  --primary:       #1a3a8f;
  --primary-dark:  #0f2460;
  --primary-light: #4a6fcc;
  --accent:        #f0a500;
  --bg:            #ffffff;
  --bg-light:      #f0f4ff;
  --bg-warm:       #fafbff;
  --text:          #1e2b3a;
  --text-muted:    #5a6a7e;
  --text-light:    #9aa5b4;
  --footer-bg:     #0d1b3e;
  --radius:        12px;
  --shadow:        0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg:     0 12px 40px rgba(0,0,0,0.12);
  --transition:    0.3s ease;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Section Common ===== */
.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 48px;
  line-height: 1.25;
}

/* ===== Loading ===== */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--footer-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}
.loading-screen.hide { opacity: 0; pointer-events: none; }
.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Header ===== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}
.site-header {
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
}
.site-header.header-hide { transform: translateY(-100%); }

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  transition: color var(--transition);
}
.logo-text { color: inherit; }
.scrolled .header-logo { color: var(--primary); }

.header-nav {
  display: flex;
  gap: 28px;
}
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-link:hover::after { width: 100%; }
.scrolled .nav-link { color: var(--text); }
.scrolled .nav-link:hover { color: var(--primary); }

.header-cta-btn {
  padding: 9px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.header-cta-btn:hover { background: #d48f00; transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  transition: var(--transition);
}
.scrolled .hamburger span { background: var(--text); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  padding: 12px 20px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid #f0f4ff;
}
.mobile-nav-link:hover { color: var(--primary); }
.mobile-nav-cta {
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-align: center;
}

/* ===== Hero ===== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-color: var(--footer-bg);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,24,70,0.55) 0%, rgba(10,24,70,0.72) 100%);
}
.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  max-width: 760px;
}
.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(240,165,0,0.15);
  border: 1px solid rgba(240,165,0,0.4);
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: 58px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.hero-subtitle {
  font-size: 20px;
  font-weight: 400;
  opacity: 0.88;
  margin-bottom: 10px;
}
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero-btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 32px;
  font-size: 16px;
  font-weight: 700;
  transition: 0.3s ease;
}
.hero-btn-primary { background: var(--accent); color: #fff; }
.hero-btn-primary:hover { background: #d48f00; transform: translateY(-2px); }
.hero-btn-secondary { border: 2px solid rgba(255,255,255,0.75); color: #fff; }
.hero-btn-secondary:hover { background: rgba(255,255,255,0.12); }

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
}
.hero-scroll-indicator span {
  display: block;
  width: 24px; height: 40px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
}

/* ===== Courses (강의 과정) ===== */
.courses-section {
  padding: 120px 0;
  background: var(--bg);
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.course-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid transparent;
}
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--primary);
}
.course-icon {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1;
}
.course-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.course-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
}
.course-cta {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  transition: background var(--transition);
}
.course-cta:hover { background: var(--primary-dark); }

/* ===== About (학원 소개) ===== */
.about-section {
  padding: 120px 0;
  background: var(--bg-warm);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-grid-single {
  grid-template-columns: 1fr;
  max-width: 760px;
}
.about-text .section-title { margin-bottom: 24px; }
.about-desc {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.about-points {
  list-style: none;
  padding: 0;
}
.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--text);
}
.point-check {
  color: var(--primary);
  font-weight: 800;
  flex-shrink: 0;
}
.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* ===== Features (학원 특징) ===== */
.features-section {
  padding: 120px 0;
  background: var(--primary);
  color: #fff;
}
.features-section .section-label { color: rgba(255,255,255,0.6); }
.features-section .section-title { color: #fff; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  transition: background var(--transition), transform var(--transition);
}
.feature-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-4px);
}
.feature-icon { font-size: 40px; margin-bottom: 16px; line-height: 1; }
.feature-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.feature-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
}

/* ===== Gallery (수업 사진) ===== */
.gallery-section {
  padding: 120px 0;
  background: var(--bg);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

/* ===== Testimonials (수강 후기) ===== */
.testimonials-section {
  padding: 120px 0;
  background: var(--bg-light);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial-quote {
  font-size: 56px;
  line-height: 1;
  color: var(--primary);
  opacity: 0.15;
  font-family: Georgia, serif;
  position: absolute;
  top: 16px; left: 20px;
}
.testimonial-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 24px;
  padding-top: 24px;
}
.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #e8edf5;
  padding-top: 16px;
}
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.testimonial-course {
  font-size: 13px;
  color: var(--text-muted);
}
.testimonial-notice {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 24px;
}

/* ===== FAQ ===== */
.faq-section {
  padding: 120px 0;
  background: var(--bg);
}
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}
.faq-item { border-bottom: 1px solid #e5eaf2; }
.faq-item:first-child { border-top: 1px solid #e5eaf2; }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  font-family: inherit;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--primary); }
.faq-q[aria-expanded="true"] { color: var(--primary); }
.faq-arrow { font-size: 20px; flex-shrink: 0; color: var(--primary); }
.faq-a {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}
.faq-a[hidden] { display: none; }

/* ===== Consult CTA (수강 상담) ===== */
.consult-cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
}
.consult-title {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}
.consult-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 40px;
}
.consult-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.consult-btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 32px;
  font-size: 16px;
  font-weight: 700;
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  transition: 0.3s ease;
}
.consult-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}
.consult-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.consult-btn.primary:hover { background: #d48f00; border-color: #d48f00; }
.consult-info {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 15px;
  color: rgba(255,255,255,0.75);
}
.consult-info strong { color: #fff; }

/* ===== Location (오시는 길) ===== */
.location-section {
  padding: 120px 0;
  background: var(--bg-warm);
}
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.location-address {
  margin-bottom: 24px;
}
.location-address strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}
.location-address p {
  font-size: 15px;
  color: var(--text-muted);
}
.hours-table { margin-bottom: 20px; }
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 15px;
  border-bottom: 1px solid #e8edf5;
}
.hours-row:first-child { border-top: 1px solid #e8edf5; }
.hours-day { font-weight: 600; color: var(--text); }
.hours-time { color: var(--text-muted); }
.hours-row.closed .hours-time { color: #e05252; }
.location-note {
  font-size: 14px;
  color: var(--primary);
  background: var(--bg-light);
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.map-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.map-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s ease;
}
.naver-btn { background: #03c75a; color: #fff; }
.naver-btn:hover { background: #029e48; }
.kakao-btn { background: #fee500; color: #3c1e1e; }
.kakao-btn:hover { background: #e6cf00; }
.location-map { border-radius: var(--radius); overflow: hidden; }
.map-placeholder {
  height: 320px;
  background: var(--bg-light);
  border: 2px dashed #c5d0e8;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 16px;
  text-align: center;
  padding: 24px;
}
.map-placeholder-sub { font-size: 13px; color: var(--text-light); }

/* ===== Footer ===== */
.footer-inner {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.72);
  padding-top: 64px;
  padding-bottom: 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}
.footer-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.footer-slogan {
  font-size: 14px;
  opacity: 0.65;
  margin-bottom: 20px;
}
.footer-sns { display: flex; gap: 14px; }
.footer-sns a {
  font-size: 18px;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}
.footer-sns a:hover { color: var(--accent); }
.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-link {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-link:hover { color: #fff; }
.footer-info {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.9;
}
.footer-bottom {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
.footer-biz { margin-bottom: 8px; }
.footer-legal {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
}
.footer-legal a {
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-legal a:hover { color: #fff; }
.footer-copyright { margin-bottom: 6px; }
.footer-demo-notice {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
}

/* ===== Top Button ===== */
#topBtn {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
}
#topBtn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#topBtn:hover { background: var(--primary-dark); }

/* ===== Responsive 1024px ===== */
@media (max-width: 1024px) {
  .hero-title { font-size: 46px; }
  .section-title { font-size: 30px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Responsive 768px ===== */
@media (max-width: 768px) {
  .header-nav, .header-cta-btn { display: none; }
  .hamburger { display: flex; }
  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 17px; }
  .section-title { font-size: 26px; margin-bottom: 36px; }
  .courses-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { order: -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .courses-section,
  .about-section,
  .features-section,
  .gallery-section,
  .testimonials-section,
  .faq-section,
  .location-section { padding: 80px 0; }
  .consult-cta-section { padding: 80px 0; }
}

/* ===== Responsive 480px ===== */
@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 15px; }
  .section-title { font-size: 22px; margin-bottom: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .consult-btns { flex-direction: column; align-items: center; }
  .consult-btn { width: 100%; max-width: 300px; text-align: center; }
  .courses-section,
  .about-section,
  .features-section,
  .gallery-section,
  .testimonials-section,
  .faq-section,
  .location-section { padding: 60px 0; }
  .consult-cta-section { padding: 60px 0; }
  .map-btns { flex-direction: column; }
}
