/* ========== Reset & Base ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

/* ========== Header & Nav ========== */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #2c5282;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover { color: #2c5282; }

/* Mobile nav toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #2c5282;
}
.menu-toggle:focus {
  outline: 2px solid #a0aec0;
  outline-offset: 2px;
  border-radius: 6px;
}

/* ========== Generic Layout Helpers (from CSS1) ========== */
.main-content {               /* ÆäÀÌÁö »ó´Ü °íÁ¤ Çì´õ º¸Á¤¿ë ¸¶Áø */
  margin-top: 70px;
  padding: 40px 20px;
  min-height: calc(100vh - 140px);
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.card {
  border: 1px solid #e5e7eb;
  border-radius: 15px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  margin-top: 20px;
}

.row { margin: 12px 0; }

.btn {
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
  color: #fff;
  box-shadow: 0 5px 15px rgba(44, 82, 130, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(44, 82, 130, 0.4);
}
.btn-outline {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #2c5282;
}
.btn-outline:hover {
  background: #2c5282;
  color: #fff;
  transform: translateY(-2px);
}

.muted { color: #6b7280; font-size: 14px; }

.log {
  max-height: 300px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 15px;
  padding: 20px;
  background: rgba(248, 250, 252, 0.8);
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 15px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 13px;
  margin-right: 8px;
  font-weight: 500;
}

.kv { display: flex; gap: 12px; flex-wrap: wrap; }
.kv div {
  background: #f8fafc;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 13px;
  border: 1px solid #e2e8f0;
}

/* ========== Hero ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero-content { max-width: 800px; }

.hero h1 {
  font-size: 3.5rem;
  font-weight: 300;
  color: #2d3436;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero .subtitle {
  font-size: 1.3rem;
  color: #636e72;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero .description {
  font-size: 1.1rem;
  color: #636e72;
  margin-bottom: 50px;
  line-height: 1.8;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
  color: white;
  padding: 18px 40px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(44, 82, 130, 0.3);
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(44, 82, 130, 0.4);
}

/* ========== Features ========== */
.features { padding: 100px 20px; background: white; }

.container { max-width: 1200px; margin: 0 auto; }

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 300;
  color: #2d3436;
  margin-bottom: 20px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #636e72;
  margin-bottom: 80px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 50px;
  margin-top: 60px;
}

.feature-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 1px solid #f8f9fa;
}
.feature-card:hover { transform: translateY(-10px); }

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 24px;
  color: white;
}

.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 15px;
}
.feature-card p { color: #636e72; line-height: 1.7; }

/* ========== Program Info ========== */
.program-info {
  padding: 100px 20px;
  background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
  color: white;
}

.program-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.program-content h2 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 30px;
}

.program-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  opacity: 0.9;
}

.program-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 60px 0;
}

.program-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}
.program-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.program-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #fff;
}

.program-card p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 0;
}

.section-divider {
  width: 100px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  margin: 50px auto;
}

/* ========== Image Slider ========== */
.slider-section { padding: 100px 20px; background: #f8f9fa; }

.slider-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.slider-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 300;
  color: #2d3436;
  margin-bottom: 20px;
}

.slider-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #636e72;
  margin-bottom: 60px;
}

.slider {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 40px;
}
.slide-content h3 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 20px;
}
.slide-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #6c5ce7;
  transition: all 0.3s ease;
  z-index: 10;
}
.slider-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}
.slider-nav.prev { left: 20px; }
.slider-nav.next { right: 20px; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: background 0.3s ease;
}
.dot.active { background: #6c5ce7; }
.dot:hover { background: #a29bfe; }

/* Sample gradient slides */
.slide-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.slide-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.slide-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.slide-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }

/* ========== Footer ========== */
.footer {
  background: #2d3436;
  color: white;
  padding: 60px 20px 30px; /* ¿©À¯ ÀÖ´Â ÆÐµù Ã¤ÅÃ */
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #3182ce;
}
.footer-section p,
.footer-section li {
  color: #b2bec3;
  line-height: 1.6;
  margin-bottom: 10px;
}
.footer-section ul { list-style: none; }
.footer-section a {
  color: #b2bec3;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-section a:hover { color: #3182ce; }
.footer-bottom {
  border-top: 1px solid #636e72;
  padding-top: 30px;
  text-align: center;
  color: #b2bec3;
}

/* ========== Floating Consultation Button ========== */
.consultation-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 24px;
  box-shadow: 0 10px 30px rgba(44, 82, 130, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}
.consultation-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(44, 82, 130, 0.4);
}

/* ========== Typography (merge) ========== */
h1 {
  color: #2d3436;
  font-size: 2.5rem;   /* ±âº»Àº CSS1 °ª */
  font-weight: 300;
  margin-bottom: 30px;
  text-align: center;
}
h3 {
  color: #2d3436;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 15px;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  /* Mobile Nav Drawer */
  .menu-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px;
    flex-direction: column;
    gap: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
  }
  .nav-menu.open { display: flex; }
  /* Ãß°¡: ¸ð¹ÙÀÏÀÏ ¶§ ¸Þ´º Ç×¸ñ °£°Ý Ãà¼Ò */
  .nav-menu { gap: 20px; }

  /* Hero */
  .hero h1 { font-size: 2.5rem; }
  .hero .subtitle { font-size: 1.1rem; }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .feature-card { padding: 30px; }

  /* Program */
  .program-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .program-card { padding: 25px; }

  /* Slider */
  .slider-title { font-size: 2rem; }
  .slider-subtitle { font-size: 1rem; }
  .slide { height: 300px; }
  .slide-content { padding: 30px; }
  .slide-content h3 { font-size: 1.5rem; }
  .slide-content p { font-size: 1rem; }
  .slider-nav {
    width: 40px; height: 40px; font-size: 16px;
  }
  .slider-nav.prev { left: 10px; }
  .slider-nav.next { right: 10px; }

  /* Floating Button */
  .consultation-btn {
    bottom: 20px; right: 20px;
    width: 50px; height: 50px; font-size: 20px;
  }

  /* Generic helpers */
  .wrap { padding: 20px; margin: 20px; }
  h1 { font-size: 2rem; }
  .kv { flex-direction: column; }
  .btn { padding: 10px 16px; font-size: 14px; }
}
