/* =============================================
   경남 미래형 하이브리드 수학교육연구소 - 메인 스타일시트
   Color: DeepBlue #0D2137, Green #2E8B57, White #F8FAFB
   ============================================= */

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

:root {
  --blue: #0D2137;
  --blue-mid: #163352;
  --blue-light: #1E4D78;
  --green: #2E8B57;
  --green-light: #3CB371;
  --green-pale: #E8F5EE;
  --white: #F8FAFB;
  --gray-100: #EFF3F7;
  --gray-200: #D8E2EC;
  --gray-400: #8FA6BF;
  --gray-600: #4D6680;
  --font-serif: 'Noto Serif KR', Georgia, serif;
  --font-sans: 'Noto Sans KR', sans-serif;
  --shadow-sm: 0 2px 8px rgba(13,33,55,0.08);
  --shadow-md: 0 6px 24px rgba(13,33,55,0.13);
  --shadow-lg: 0 16px 48px rgba(13,33,55,0.18);
  --radius: 8px;
  --radius-lg: 16px;
  --nav-h: 76px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--white); color: var(--blue); overflow-x: hidden; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 2rem; }
a { color: inherit; text-decoration: none; }
h1,h2,h3 { font-family: var(--font-serif); }

.cta-primary {
  display: inline-block; background: var(--green); color: #fff;
  font-weight: 700; font-size: .95rem; padding: .85rem 2rem;
  border-radius: var(--radius); border: none; cursor: pointer;
  transition: background .2s, transform .15s; letter-spacing: .03em;
}
.cta-primary:hover { background: var(--green-light); transform: translateY(-2px); }

/* ---- 네비게이션 ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(248,250,251,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 1.25rem;
  height: 100%; display: flex; align-items: center; gap: .5rem;
}
.logo { display: flex; align-items: baseline; gap: 2px; font-family: var(--font-serif); flex-shrink: 0; }
.logo-main { font-size: 1rem; font-weight: 900; color: var(--blue); }
.logo-accent { font-size: 1rem; font-weight: 900; color: var(--green); }
.logo-sub { font-size: .68rem; font-weight: 500; color: var(--gray-600); margin-left: 6px; white-space: nowrap; }

.nav-links { display: flex; list-style: none; margin-left: auto; }
.nav-links a {
  display: block; padding: .5rem .65rem;
  font-size: .88rem; font-weight: 500; color: var(--gray-600);
  border-radius: var(--radius); transition: color .2s, background .2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--blue); background: var(--gray-100); }
.nav-links a.active { color: var(--green); font-weight: 700; }

.nav-actions { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.btn-contact {
  display: inline-block; background: var(--green); color: #fff;
  font-size: .8rem; font-weight: 700; padding: .45rem .9rem; border-radius: 20px;
  transition: background .2s; white-space: nowrap;
}
.btn-contact:hover { background: var(--green-light); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--blue); border-radius: 2px; transition: all .3s; }
.mobile-menu {
  display: none; flex-direction: column;
  background: var(--white); border-top: 1px solid var(--gray-200); padding: 1rem 2rem;
}
.mobile-menu a { padding: .75rem 0; font-size: .95rem; border-bottom: 1px solid var(--gray-100); color: var(--blue); }

/* ---- 히어로 ---- */
.hero {
  min-height: 100vh;
  background: linear-gradient(150deg, #0D2137 0%, #163352 45%, #0D2B1E 100%);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 3rem) 2rem 4rem;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(46,139,87,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,139,87,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-accent { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.accent-1 { width: 500px; height: 500px; background: rgba(46,139,87,.12); top: -100px; right: -150px; }
.accent-2 { width: 400px; height: 400px; background: rgba(13,33,55,.7); bottom: -100px; left: -100px; }
.accent-3 { width: 300px; height: 300px; background: rgba(46,139,87,.07); bottom: 100px; right: 200px; }

.hero-content { position: relative; text-align: center; max-width: 860px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(46,139,87,.5); background: rgba(46,139,87,.1); color: #6FCF97;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em;
  padding: .4rem 1.2rem; border-radius: 20px; margin-bottom: 2rem;
  animation: fadeUp .7s ease both;
}
.hero-badge::before { content: '◆'; font-size: .5rem; }
.hero-title {
  font-family: var(--font-serif); display: flex; flex-direction: column;
  color: var(--white); margin-bottom: 1.5rem; line-height: 1.25;
}
.hero-title .line1 { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 400; color: rgba(248,250,251,.7); animation: fadeUp .7s .1s ease both; }
.hero-title .line2 { font-size: clamp(2rem, 5vw, 3.8rem); font-weight: 900; animation: fadeUp .7s .2s ease both; }
.hero-title em { color: #6FCF97; font-style: normal; }
.hero-sub { color: rgba(248,250,251,.6); font-size: 1rem; line-height: 2; margin-bottom: 2.5rem; animation: fadeUp .7s .3s ease both; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; animation: fadeUp .7s .4s ease both; }
.cta-secondary {
  display: inline-block;
  border: 1.5px solid rgba(248,250,251,.25); color: var(--white);
  font-size: .95rem; font-weight: 500; padding: .85rem 2rem; border-radius: var(--radius);
  transition: border-color .2s, background .2s;
}
.cta-secondary:hover { border-color: #6FCF97; background: rgba(46,139,87,.15); }

.hero-stats {
  position: relative; margin-top: 5rem;
  display: flex; align-items: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(46,139,87,.25);
  border-radius: var(--radius-lg); padding: 1.5rem 3rem;
  animation: fadeUp .7s .6s ease both;
}
.stat-item { text-align: center; padding: 0 2.5rem; }
.stat-num { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 900; color: #6FCF97; }
.stat-unit { font-size: 1.1rem; color: #A8E0BF; font-weight: 500; }
.stat-label { display: block; font-size: .78rem; color: rgba(248,250,251,.45); margin-top: .3rem; letter-spacing: .06em; }
.stat-divider { width: 1px; height: 50px; background: rgba(46,139,87,.25); }

/* ---- 특징 섹션 ---- */
.features { padding: 7rem 0; background: var(--white); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-eyebrow { font-size: .78rem; letter-spacing: .15em; color: var(--green); font-weight: 600; text-transform: uppercase; margin-bottom: .75rem; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; color: var(--blue); line-height: 1.3; }
.section-title strong { color: var(--green); font-weight: 900; }

.features-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.feature-card {
  background: var(--gray-100); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 2rem 1.5rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  opacity: 0; transform: translateY(30px);
}
.feature-card.visible { opacity: 1; transform: translateY(0); }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--green); }
.feature-icon { width: 52px; height: 52px; color: var(--green); margin-bottom: 1.2rem; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .7rem; color: var(--blue); }
.feature-card p { font-size: .88rem; line-height: 1.75; color: var(--gray-600); }

/* ---- 수업 모형 섹션 ---- */
.model-section { padding: 7rem 0; background: var(--blue); }
.model-section .section-eyebrow { color: #6FCF97; }
.model-section .section-title { color: var(--white); }
.model-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 3rem; }
.model-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(46,139,87,.2);
  border-radius: var(--radius-lg); padding: 2rem 1.5rem; text-align: center;
  transition: transform .25s, background .25s, border-color .25s;
  opacity: 0; transform: translateY(30px);
}
.model-card.visible { opacity: 1; transform: translateY(0); }
.model-card:hover { transform: translateY(-5px); background: rgba(46,139,87,.12); border-color: var(--green); }
.model-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: var(--green); color: #fff;
  border-radius: 50%; font-weight: 900; font-size: 1.1rem;
  margin-bottom: 1.2rem; font-family: var(--font-serif);
}
.model-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: .6rem; }
.model-card p { font-size: .85rem; line-height: 1.7; color: rgba(248,250,251,.55); }

/* ---- 공지사항 ---- */
.notice-section { padding: 5rem 0; background: var(--gray-100); }
.notice-wrap { max-width: 760px; margin: 0 auto; }
.notice-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.notice-header h2 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--blue); }
.notice-header a { font-size: .85rem; color: var(--green); font-weight: 500; }
.notice-list { list-style: none; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.notice-list li { border-bottom: 1px solid var(--gray-100); }
.notice-list li:last-child { border-bottom: none; }
.notice-list li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.5rem; color: var(--gray-600); font-size: .9rem;
  transition: color .2s, background .2s;
}
.notice-list li a:hover { color: var(--green); background: var(--green-pale); }
.notice-list .notice-date { font-size: .78rem; color: var(--gray-400); white-space: nowrap; margin-left: 1rem; }
.notice-list .notice-badge { font-size: .7rem; background: var(--green); color: #fff; padding: .15rem .5rem; border-radius: 10px; margin-right: .6rem; font-weight: 700; }
.notice-loading { color: var(--gray-400); font-size: .9rem; text-align: center; padding: 2rem 0; }

/* ---- CTA 배너 ---- */
.cta-banner { padding: 6rem 0; background: var(--green-pale); }
.cta-banner .container { display: grid; grid-template-columns: 1fr auto; gap: 4rem; align-items: center; }
.cta-content h2 { font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--blue); margin-bottom: .8rem; }
.cta-content p { color: var(--gray-600); line-height: 1.8; margin-bottom: 2rem; }
.cta-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta-info { text-align: center; background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); min-width: 200px; }
.info-icon { font-size: 2rem; margin-bottom: .5rem; }
.info-name { font-size: .95rem; font-weight: 700; color: var(--blue); margin-bottom: .4rem; }
.info-detail { font-size: .83rem; line-height: 1.7; color: var(--gray-600); }

/* ---- 푸터 ---- */
.footer { background: var(--blue); color: rgba(248,250,251,.5); padding: 3rem 0 2rem; }
.footer-top { margin-bottom: 2rem; }
.footer-brand { display: flex; align-items: baseline; gap: .3rem; margin-bottom: 1rem; }
.footer-brand .f-main { color: #fff; font-family: var(--font-serif); font-size: 1.2rem; font-weight: 900; }
.footer-brand .f-accent { color: #6FCF97; font-family: var(--font-serif); font-size: 1.2rem; font-weight: 900; }
.footer p { font-size: .82rem; line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .78rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: rgba(248,250,251,.4); transition: color .2s; }
.footer-links a:hover { color: #6FCF97; }

/* ---- 애니메이션 ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- 반응형 ---- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .hero-stats { flex-direction: column; gap: 1.5rem; padding: 1.5rem; }
  .stat-divider { width: 60px; height: 1px; }
  .stat-item { padding: 0; }
  .cta-banner .container { grid-template-columns: 1fr; }
  .cta-info { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .model-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .model-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
  .logo-sub { display: none; }
}
