:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --text: #1d2321;
  --muted: #5f6965;
  --brand: #1d4b37;
  --brand-strong: #133729;
  --accent: #d6b36f;
  --line: #dde4e1;
  --shadow: 0 14px 28px rgba(12, 35, 26, 0.08);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-weight: 300;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.7rem;
  background: rgba(255, 255, 255, 1);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transition:
    padding 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.site-header.scrolled {
  padding: 0.65rem 1.35rem;
  background: rgba(255, 255, 255, 0.48);
  border-color: rgba(221, 228, 225, 0.36);
  box-shadow: 0 10px 24px rgba(12, 35, 26, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: auto;
  height: clamp(30px, 3vw, 44px);
}

.site-header.scrolled .brand-logo {
  height: clamp(28px, 2.4vw, 36px);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0;
  font-size: 1.1rem;
  width: 38px;
  height: 38px;
  cursor: pointer;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.single-link {
  padding: 0.35rem 0.15rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.single-link:hover {
  color: var(--brand);
  border-color: #8fa89d;
}

.nav-group {
  position: relative;
}

.has-submenu::after {
  content: '';
  position: absolute;
  left: 0;
  top: 100%;
  width: 260px;
  height: 14px;
}

.nav-group .main-link {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.has-submenu .main-link::after {
  content: '▾';
  font-size: 0.64rem;
  color: #7a8a84;
}

.has-submenu:hover .main-link,
.has-submenu:focus-within .main-link {
  color: var(--brand);
  border-color: #8fa89d;
}

.sub-links {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  min-width: 240px;
  display: grid;
  gap: 0.35rem;
  padding: 0.55rem;
  border-radius: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 30px rgba(17, 42, 31, 0.13);
  font-size: 0.84rem;
  color: var(--muted);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.has-submenu:hover .sub-links,
.has-submenu:focus-within .sub-links {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.sub-links a {
  border: 1px solid transparent;
  border-radius: 0;
  padding: 0.3rem 0.5rem;
  white-space: nowrap;
}

.sub-links a:hover {
  border-color: #c9d6d0;
  background: #f4f8f6;
  color: var(--brand);
}

.section {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0 2rem;
  scroll-margin-top: 95px;
}

.section-header {
  margin-bottom: 1.8rem;
  position: relative;
  padding-bottom: 0.9rem;
}

.section-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #2a664e 0%, #8fb3a4 45%, rgba(143, 179, 164, 0.22) 100%);
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
  color: var(--brand-strong);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  padding-left: 0.1rem;
}

.section-header h2::before {
  content: '';
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 0;
  background: linear-gradient(135deg, #1d4b37, #3c7c63);
}

.section-header p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.hero {
  position: relative;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100svh;
  padding: 0;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 39, 30, 0.72) 0%, rgba(13, 39, 30, 0.4) 45%, rgba(13, 39, 30, 0.1) 100%);
}

.hero-content {
  position: absolute;
  z-index: 1;
  left: min(7vw, 7rem);
  top: 50%;
  transform: translateY(-50%);
  width: min(620px, calc(100% - 2.5rem));
  color: #fff;
}

.hero-kicker {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  opacity: 0.9;
  margin: 0 0 0.35rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin: 0;
}

.hero-content p {
  margin-top: 1rem;
  max-width: 52ch;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 0;
  padding: 0.62rem 1.15rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-strong);
}

.btn-secondary {
  background: #fff;
  color: var(--brand-strong);
  border-color: #c6d2cd;
}

.btn-secondary:hover {
  border-color: var(--brand);
}

.section-intro-anchor {
  padding-top: 3.2rem;
  padding-bottom: 0;
}

.split-card {
  display: grid;
  grid-template-columns: minmax(240px, 42%) minmax(0, 58%);
  gap: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow);
  margin-bottom: 1.2rem;
  overflow: hidden;
  min-height: 0;
}

.split-card.reverse {
  grid-template-columns: minmax(240px, 42%) minmax(0, 58%);
}

.split-card img {
  width: 100%;
  height: clamp(210px, 23vw, 260px);
  min-height: 0;
  object-fit: cover;
}

.split-card > div {
  padding: 1.35rem 1.3rem;
  align-self: start;
}

.split-card h3 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  color: var(--brand-strong);
  line-height: 1.35;
  position: relative;
  padding-left: 0.85rem;
}

.split-card h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.3rem;
  height: 1.05rem;
  border-radius: 0;
  background: linear-gradient(180deg, #2f6f55, #7fa795);
}

.split-card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.62;
}

.vision-section {
  position: relative;
}

.vision-banner {
  position: relative;
  width: 100vw;
  width: 100dvw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50dvw);
  margin-right: calc(50% - 50dvw);
  margin-bottom: 1.2rem;
  height: clamp(260px, 34vw, 470px);
  overflow: hidden;
}

.vision-banner .gdlr-core-pbf-background-wrap,
.musical-wide-image .gdlr-core-pbf-background-wrap,
.admission-wide-image .gdlr-core-pbf-background-wrap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  z-index: 0;
}

.vision-banner .gdlr-core-pbf-background,
.musical-wide-image .gdlr-core-pbf-background,
.admission-wide-image .gdlr-core-pbf-background {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  backface-visibility: hidden;
}

.vision-banner .gdlr-core-pbf-wrapper-content,
.musical-wide-image .gdlr-core-pbf-wrapper-content,
.admission-wide-image .gdlr-core-pbf-wrapper-content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.vision-banner .gdlr-core-pbf-wrapper-container,
.musical-wide-image .gdlr-core-pbf-wrapper-container,
.admission-wide-image .gdlr-core-pbf-wrapper-container {
  height: 100%;
}

.vision-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  gap: 1.2rem;
  align-items: start;
}

.vision-text {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

.vision-text p {
  margin: 0 0 0.85rem;
}

.vision-text p:last-child {
  margin-bottom: 0;
}

.vision-images {
  display: block;
}

.vision-images img {
  width: 100%;
  border-radius: 0;
  border: 1px solid var(--line);
  object-fit: cover;
  height: clamp(220px, 24vw, 290px);
  min-height: 0;
  max-height: none;
}

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.curriculum-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.curriculum-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.curriculum-body {
  padding: 1.15rem;
}

.curriculum-body h3 {
  margin: 0 0 0.5rem;
  color: var(--brand-strong);
}

.curriculum-body p {
  margin: 0 0 0.7rem;
}

.curriculum-body p:last-child {
  margin-bottom: 0;
}

.musical-wide-image {
  position: relative;
  width: 100vw;
  width: 100dvw;
  margin-top: 1.2rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50dvw);
  margin-right: calc(50% - 50dvw);
  margin-bottom: 1.1rem;
  height: clamp(260px, 34vw, 470px);
  overflow: hidden;
}

.admission-wide-image {
  position: relative;
  width: 100vw;
  width: 100dvw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50dvw);
  margin-right: calc(50% - 50dvw);
  margin-bottom: 1rem;
  height: clamp(250px, 32vw, 430px);
  overflow: hidden;
}

.admission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.admission-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.admission-card h3 {
  margin-top: 0;
  color: var(--brand-strong);
}

.admission-card ol,
.admission-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.community-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.community-image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid var(--line);
}

.community-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow);
  padding: 1.2rem;
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.community-note {
  margin: 0;
  color: var(--muted);
}

.community-private {
  background: #f4f8f6;
  border: 1px dashed #b8c9c0;
  border-radius: 0;
  padding: 0.9rem;
}

.community-private h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
}

.community-private ul {
  margin: 0;
  padding-left: 1.15rem;
}

.community-gallery {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.community-gallery img {
  width: 100%;
  height: 200px;
  border-radius: 0;
  border: 1px solid var(--line);
  object-fit: cover;
}

.hidden {
  display: none;
}

.site-footer {
  margin-top: 3.2rem;
  padding: 2.1rem 0 2rem;
  background: #12372a;
  color: #d7e4dc;
  border-top: none;
}

.footer-inner {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  gap: 0.5rem;
}

.footer-title {
  margin: 0;
  font-size: 1.16rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-home {
  width: fit-content;
  color: #d9efe4;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-contact {
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.footer-contact p {
  margin: 0;
  font-size: 0.92rem;
}

.footer-contact a,
.footer-copy a {
  color: #ffffff;
}

.footer-copy {
  margin: 0.4rem 0 0;
  font-size: 0.84rem;
  color: #b7cac0;
}

@media (max-width: 960px) {
  .main-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 60px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-group {
    width: 100%;
  }

  .sub-links {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    min-width: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0.2rem 0 0.5rem;
    gap: 0.25rem;
    font-size: 0.82rem;
  }

  .sub-links a {
    white-space: normal;
    padding-left: 0.1rem;
  }

  .has-submenu .main-link::after {
    content: '';
  }

  .has-submenu::after {
    content: none;
  }

  .split-card {
    min-height: auto;
  }

  .split-card img {
    height: 220px;
    min-height: 0;
  }

  .split-card > div {
    align-self: start;
  }

  .vision-images img {
    height: 230px;
  }

  .vision-banner .gdlr-core-pbf-background,
  .musical-wide-image .gdlr-core-pbf-background,
  .admission-wide-image .gdlr-core-pbf-background {
    background-attachment: scroll !important;
  }

  .single-link,
  .nav-group .main-link {
    border-bottom: none;
    gap: 0.4rem;
  }

  .single-link {
    display: block;
    width: 100%;
    text-align: left;
    padding-left: 0.1rem;
  }

  .split-card,
  .split-card.reverse,
  .vision-layout,
  .curriculum-grid,
  .admission-grid,
  .community-wrap,
  .community-gallery {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .admission-wide-image {
    height: 230px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0.8rem 1rem;
  }

  .brand-logo {
    height: 30px;
  }

  .site-header.scrolled .brand-logo {
    height: 28px;
  }

  .section {
    width: min(1100px, calc(100% - 1.2rem));
    padding-top: 3.8rem;
  }

  .hero {
    height: 100vh;
    height: 100svh;
  }

  .hero-content {
    left: 1rem;
    width: calc(100% - 1.8rem);
  }

  .hero-actions {
    gap: 0.55rem;
  }

  .btn {
    font-size: 0.88rem;
  }

  .site-footer {
    padding: 1.8rem 0 1.7rem;
  }

  .footer-title {
    font-size: 1.05rem;
  }

  .footer-contact p,
  .footer-copy {
    font-size: 0.85rem;
  }
}
