/* ============================
   써밋 수학개발연구 - Design System v2
   수능선배 스타일 레퍼런스
   ============================ */

:root {
  /* Colors - from logo */
  --color-primary: #173E6B;
  --color-primary-light: #205694;
  --color-primary-dark: #0E2642;
  --color-primary-bg: rgba(23, 62, 107, 0.06);

  --color-secondary: #4E5E1C;
  --color-secondary-light: #5F7224;
  --color-secondary-bg: rgba(78, 94, 28, 0.08);

  --color-dark: #1A1A1A;
  --color-dark-bg: #1B1F2A;
  --color-dark-bg-2: #232838;
  --color-text: #2D2D2D;
  --color-text-secondary: #6B6B6B;
  --color-text-muted: #999999;

  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F6F8;
  --color-border: #E5E7EB;
  --color-border-light: #F0F0F0;

  /* Typography */
  --font-primary: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container-max: 1200px;
  --nav-height: 72px;

  /* Radius - unified to 8px based on square.png */
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ========================
   NAVIGATION - 수능선배 style
   ======================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1010;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
  /* For absolute centering of nav__menu */
}

.nav__logo {
  display: flex;
  align-items: center;
  height: 36px;
  flex-shrink: 0;
  z-index: 10;
}

.nav__logo img {
  height: 100%;
  width: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 36px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 8px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__cta-btn {
  display: inline-block;
  text-align: center;
  padding: 12px 28px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all var(--transition-base);
}

.nav__cta-btn:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 26, 26, 0.3);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 1020;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.nav__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 1005;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-slow);
}

.mobile-menu.active .mobile-menu__link {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu.active .mobile-menu__link:nth-child(1) {
  transition-delay: 0.1s;
}

.mobile-menu.active .mobile-menu__link:nth-child(2) {
  transition-delay: 0.15s;
}

.mobile-menu.active .mobile-menu__link:nth-child(3) {
  transition-delay: 0.2s;
}

.mobile-menu.active .mobile-menu__link:nth-child(4) {
  transition-delay: 0.25s;
}

.mobile-menu.active .mobile-menu__link:nth-child(5) {
  transition-delay: 0.3s;
}

.mobile-menu__link:hover {
  color: var(--color-primary);
}


/* ========================
   HERO SECTION - Full bleed B&W image
   ======================== */
.hero {
  position: relative;
  width: 100%;
  height: 88vh;
  height: 88dvh;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.45);
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.1) 40%,
      rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 0 24px;
}

.hero__subtitle {
  font-size: 1.0rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.05em;
  line-height: 1.7;
  margin-bottom: 16px;
}

.hero__title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  word-break: keep-all;
  max-width: 700px;
}

.hero__description {
  font-size: 1.0rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.05em;
  line-height: 1.7;
  margin-top: 24px;
  max-width: 600px;
  word-break: keep-all;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  animation: bounceDown 2s ease-in-out infinite;
  cursor: pointer;
}

.hero__scroll svg {
  width: 28px;
  height: 28px;
}

@keyframes bounceDown {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(10px);
  }
}


/* ========================
   STATS SECTION - Dark background like 수능선배
   ======================== */
.stats {
  background: var(--color-dark-bg);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

/* Chart line decoration */
.stats__chart-line {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  z-index: 0;
  overflow: hidden;
}

.stats__chart-line svg {
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 80%;
  opacity: 0.15;
}

.stats__inner {
  position: relative;
  z-index: 1;
}

.stats__heading {
  text-align: center;
  margin-bottom: 30px;
}

.stats__heading h2 {
  font-size: 1.8rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.4;
  word-break: keep-all;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.stats__item {
  text-align: center;
}

.stats__item-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  margin-bottom: 6px;
}

.stats__item-value {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stats__item-value .suffix {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 4px;
}

.stats__date {
  margin-top: 24px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}


/* ========================
   REVIEWS SECTION - Marquee-style auto-scroll
   ======================== */
.reviews {
  padding: 100px 0 80px;
  background: var(--color-bg-alt);
  overflow: hidden;
}

.reviews__heading {
  text-align: center;
  margin-bottom: 56px;
}

.reviews__heading h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.4;
  word-break: keep-all;
}

/* Marquee rows */
.reviews__marquee {
  overflow: hidden;
  margin-bottom: 20px;
  padding: 8px 0;
}

.reviews__track {
  display: flex;
  gap: 20px;
  width: max-content;
}

.reviews__track--left {
  animation: marqueeLeft 60s linear infinite;
}

.reviews__track--right {
  animation: marqueeRight 60s linear infinite;
}

@keyframes marqueeLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes marqueeRight {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

.reviews__marquee:hover .reviews__track {
  animation-play-state: paused;
}

/* Review card - 수능선배 style */
.review-card {
  flex-shrink: 0;
  width: 360px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-base);
}

.review-card:hover {
  box-shadow: var(--shadow-md);
}

.review-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.review-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.4;
  word-break: keep-all;
}

.review-card__uni-logo {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #ffffff;
  /* Solid white background for image contrast */
  border: 1px solid var(--color-border);
  padding: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.review-card__uni-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Fallback letter styles if image logo is not used */
.review-card__uni-logo span {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

/* School Colors for Logos (Fallback) */
.uni--snu {
  background-color: #0F0F70;
}

.uni--yonsei {
  background-color: #003C71;
}

.uni--korea {
  background-color: #8C1D40;
}

.uni--skku {
  background-color: #005E3A;
}

.uni--hanyang {
  background-color: #005A9C;
}

.uni--sogang {
  background-color: #B00020;
}

.uni--knu {
  background-color: #DA1A32;
}

.uni--gachon {
  background-color: #005BAC;
}

.uni--ewha {
  background-color: #115740;
}

.uni--cau {
  background-color: #004F9F;
}

.uni--parent {
  background-color: #E75B70;
}

/* Grade Card component based on image.png */
.grade-card {
  flex-shrink: 0;
  width: 500px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: box-shadow var(--transition-base);
}

.grade-card:hover {
  box-shadow: var(--shadow-md);
}

.grade-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.grade-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark);
}

.grade-card__total-improvement {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-secondary);
  /* Logo green accent color */
}

/* Grade Boxes Grid */
.grade-card__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.grade-card__box {
  background: #f4f6fa;
  border-radius: 8px;
  padding: 12px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.grade-card__subject {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  font-weight: 600;
}

.grade-card__transition {
  font-size: 0.85rem;
  font-weight: 700;
  color: #8c98a5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.grade-card__transition span.after {
  color: var(--color-secondary);
  /* Highlighting the improved grade */
}

.grade-card__arrow {
  color: var(--color-secondary);
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Tip Box */
.grade-card__tip-box {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
}

.grade-card__tip-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.grade-card__tip-desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  word-break: keep-all;
}

.review-card__body {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
}

.review-card__school-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

/* Specific Badge Accent Colors (matching school) */
.uni-badge--snu {
  background: rgba(15, 15, 112, 0.06);
  color: #0F0F70;
  border-color: rgba(15, 15, 112, 0.15);
}

.uni-badge--yonsei {
  background: rgba(0, 60, 113, 0.06);
  color: #003C71;
  border-color: rgba(0, 60, 113, 0.15);
}

.uni-badge--korea {
  background: rgba(140, 29, 64, 0.06);
  color: #8C1D40;
  border-color: rgba(140, 29, 64, 0.15);
}

.uni-badge--skku {
  background: rgba(0, 94, 58, 0.06);
  color: #005E3A;
  border-color: rgba(0, 94, 58, 0.15);
}

.uni-badge--hanyang {
  background: rgba(0, 90, 156, 0.06);
  color: #005A9C;
  border-color: rgba(0, 90, 156, 0.15);
}

.uni-badge--sogang {
  background: rgba(176, 0, 32, 0.06);
  color: #B00020;
  border-color: rgba(176, 0, 32, 0.15);
}

.uni-badge--knu {
  background: rgba(218, 26, 50, 0.06);
  color: #DA1A32;
  border-color: rgba(218, 26, 50, 0.15);
}

.uni-badge--gachon {
  background: rgba(0, 91, 172, 0.06);
  color: #005BAC;
  border-color: rgba(0, 91, 172, 0.15);
}

.uni-badge--ewha {
  background: rgba(17, 87, 64, 0.06);
  color: #115740;
  border-color: rgba(17, 87, 64, 0.15);
}

.uni-badge--cau {
  background: rgba(0, 79, 159, 0.06);
  color: #004F9F;
  border-color: rgba(0, 79, 159, 0.15);
}

.uni-badge--pnu {
  background: rgba(0, 86, 150, 0.06);
  color: #005696;
  border-color: rgba(0, 86, 150, 0.15);
}

.uni-badge--donga {
  background: rgba(0, 40, 85, 0.06);
  color: #002855;
  border-color: rgba(0, 40, 85, 0.15);
}

.uni-badge--yeungnam {
  background: rgba(0, 56, 147, 0.06);
  color: #003893;
  border-color: rgba(0, 56, 147, 0.15);
}

.uni-badge--parent {
  background: rgba(231, 91, 112, 0.06);
  color: #E75B70;
  border-color: rgba(231, 91, 112, 0.15);
}

.review-card__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-dark);
}


/* ========================
   ABOUT / DIRECTOR PROFILE
   ======================== */
.about {
  padding: 100px 0;
  background: var(--color-bg);
}

.about__inner {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.about__profile {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}

.about__profile-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 4;
}

.about__profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%) contrast(1.05);
}

.about__profile-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(139, 26, 26, 0.3);
}

.about__profile-info {
  display: flex;
  flex-direction: column;
}

.about__profile-sub {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.about__profile-name {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.about__profile-slogan {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  border-left: 3px solid var(--color-primary);
  padding-left: 16px;
  margin-bottom: 32px;
  line-height: 1.5;
  word-break: keep-all;
}

.about__history {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__history li {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 20px;
}

.about__history li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.history-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
}

.history-detail {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

.about__philosophy-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.about__philosophy-card::before {
  content: '“';
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 10rem;
  font-weight: 900;
  color: rgba(139, 26, 26, 0.03);
  font-family: serif;
  line-height: 1;
}

.about__philosophy-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.about__philosophy-card p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
  word-break: keep-all;
}

.about__philosophy-card p:last-child {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--color-dark);
}


/* ========================
   SYSTEM / TABS SECTION
   ======================== */
.system {
  padding: 100px 0;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.system__header {
  text-align: center;
  margin-bottom: 56px;
}

.system__header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.4;
}

.system__header p {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  margin-top: 12px;
}

.system__tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.system__tab-btn {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.system__tab-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-bg);
  transform: translateY(-2px);
}

.system__tab-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 26, 26, 0.18);
}

.tab-num {
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.6;
  letter-spacing: 0.1em;
}

.system__tab-btn.active .tab-num {
  opacity: 0.9;
}

.tab-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  word-break: keep-all;
}

/* Tab contents */
.system__content-wrapper {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  min-height: 380px;
}

.system__tab-content {
  display: none;
  opacity: 0;
}

.system__tab-content.active {
  display: block;
  animation: fadeInTab 0.5s ease forwards;
}

@keyframes fadeInTab {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.system__content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.system__content-text h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 16px;
  line-height: 1.4;
  word-break: keep-all;
}

.system__content-text p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
  word-break: keep-all;
}

.system__feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.system__feature-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.5;
}

.system__feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-secondary);
  font-weight: 900;
}

.system__content-visual {
  width: 100%;
}

.visual-placeholder {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, var(--color-primary-bg) 0%, rgba(107, 125, 46, 0.04) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.visual-icon {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary);
  background: #fff;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
}

.visual-caption {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}


/* ========================
   CONTACT SECTION
   ======================== */
.contact {
  padding: 100px 0;
  background: var(--color-bg-alt);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact__info h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.4;
  margin-bottom: 12px;
  word-break: keep-all;
}

.contact__info p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
  word-break: keep-all;
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact__channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.contact__channel:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.contact__channel-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact__channel-icon--phone {
  background: var(--color-primary-bg);
  color: var(--color-primary);
}

.contact__channel-icon--kakao {
  background: #FEE500;
  color: #3C1E1E;
}

.contact__channel-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.contact__channel-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-dark);
}

.contact__phone-large {
  margin-top: 24px;
}

.contact__phone-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--color-bg);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  text-decoration: none;
}

.contact__phone-link:hover {
  background: var(--color-primary-bg);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  border-color: var(--color-primary-hover);
}

.contact__phone-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(139, 26, 26, 0.15);
}

.contact__phone-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact__phone-label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.contact__phone-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.naver-map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background-color: #03C75A;
  color: #ffffff !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: 0 2px 4px rgba(3, 199, 90, 0.1);
  border: none;
}

.naver-map-btn:hover {
  background-color: #02b34f;
  box-shadow: 0 4px 12px rgba(3, 199, 90, 0.2);
  transform: translateY(-1px);
}

/* Form */
.contact__form-wrapper {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
}

.contact__form-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 24px;
}

.form__group {
  margin-bottom: 18px;
}

.form__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form__label .required {
  color: var(--color-primary);
  margin-left: 2px;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: all var(--transition-fast);
  outline: none;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--color-text-muted);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.08);
}

.form__textarea {
  min-height: 100px;
  resize: vertical;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form__submit {
  width: 100%;
  padding: 14px;
  background: var(--color-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  margin-top: 4px;
}

.form__submit:hover {
  background: var(--color-primary-light);
  box-shadow: 0 4px 12px rgba(139, 26, 26, 0.25);
}

.form__notice {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 12px;
  text-align: center;
}


/* ========================
   LOCATION SECTION
   ======================== */
.location {
  padding: 100px 0;
  background: var(--color-bg);
}

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

.location__header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-dark);
}

.location__header p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-top: 8px;
}

.location__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.location__map {
  width: 100%;
  height: 380px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  display: block;
  overflow: hidden;
}

.location__map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.location__map-placeholder svg {
  width: 40px;
  height: 40px;
  opacity: 0.4;
}

.location__details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.location__item {
  display: flex;
  gap: 16px;
}

.location__item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-bg);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location__item-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.location__item-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-dark);
  word-break: keep-all;
}

.location__item-sub {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: 2px;
}


/* ========================
   FOOTER
   ======================== */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 0 32px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__logo {
  height: 28px;
  width: auto;
  align-self: flex-start;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer__tagline {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  max-width: 280px;
  line-height: 1.6;
}

.footer__links {
  display: flex;
  gap: 48px;
}

.footer__link-group-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.footer__link-group a {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  padding: 3px 0;
  transition: color var(--transition-fast);
}

.footer__link-group a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__info {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.8;
}

.footer__copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}


/* ========================
   SCROLL ANIMATIONS
   ======================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll[data-delay="1"] {
  transition-delay: 0.1s;
}

.animate-on-scroll[data-delay="2"] {
  transition-delay: 0.2s;
}

.animate-on-scroll[data-delay="3"] {
  transition-delay: 0.3s;
}


/* ========================
   FLOATING CTA (Mobile)
   ======================== */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  z-index: 900;
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.floating-cta.visible {
  transform: translateY(0);
}

.floating-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--color-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
}


/* ========================
   RESPONSIVE
   ======================== */

/* Tablet */
@media (max-width: 1024px) {
  .about__profile {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .about__profile-image {
    width: 260px;
    margin: 0 auto;
  }

  .about__profile-slogan {
    border-left: none;
    border-top: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    padding: 16px 0;
    max-width: 500px;
    margin: 0 auto 32px;
  }

  .about__history li {
    padding-left: 0;
    align-items: center;
  }

  .about__history li::before {
    display: none;
  }

  .system__content-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .system__content-visual {
    order: -1;
    /* visual first on mobile/tablet */
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 48px;
  }

  .contact__grid,
  .location__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__top {
    flex-direction: column;
    gap: 32px;
  }

  .review-card {
    width: 320px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    padding: 0 40px;
  }

  /* Nav */
  .nav__menu {
    display: none;
  }

  .nav__logo {
    flex-grow: 0.8;
  }

  .nav__cta-btn {
    display: block;
    padding: 6px 12px;
    font-size: 0.8rem;
    margin-left: auto;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav {
    height: 60px;
  }

  /* Hero */
  .hero__title {
    font-size: 1.8rem;
  }

  .hero__subtitle {
    font-size: 0.85rem;
  }

  .hero__description {
    font-size: 0.85rem;
    margin-top: 16px;
    line-height: 1.6;
  }

  .hero__scroll {
    bottom: 24px;
  }

  /* Stats */
  .stats {
    padding: 30px 0;
  }

  .stats__heading h2 {
    font-size: 1.4rem;
  }

  .stats__heading {
    margin-bottom: 20px;
  }

  .stats__item-value {
    font-size: 2.5rem;
  }

  .stats__item-value .suffix {
    font-size: 1.4rem;
  }

  .stats__grid {
    gap: 32px 24px;
    max-width: 100%;
  }

  /* Reviews */
  .reviews {
    padding: 64px 0 48px;
  }

  .reviews__heading h2 {
    font-size: 1.6rem;
  }

  .review-card {
    width: 280px;
    padding: 24px;
  }

  .grade-card {
    width: 320px;
    padding: 18px;
    gap: 14px;
  }

  .grade-card__grid {
    gap: 6px;
  }

  .grade-card__box {
    padding: 8px 2px;
  }

  .grade-card__subject {
    font-size: 0.7rem;
  }

  .grade-card__transition {
    font-size: 0.75rem;
    gap: 2px;
  }

  .grade-card__arrow {
    font-size: 0.65rem;
  }

  .grade-card__tip-desc {
    font-size: 0.8rem;
  }

  /* About */
  .about {
    padding: 64px 0;
  }

  .about__inner {
    gap: 40px;
  }

  .about__profile-name {
    font-size: 2rem;
  }

  .about__profile-slogan {
    font-size: 1rem;
  }

  .about__philosophy-card {
    padding: 24px;
  }

  .about__philosophy-card h3 {
    font-size: 1.2rem;
  }

  /* System */
  .system {
    padding: 64px 0;
  }

  .system__header h2 {
    font-size: 1.6rem;
  }

  .system__header {
    margin-bottom: 40px;
  }

  .system__tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
  }

  .system__tab-btn {
    padding: 16px;
    gap: 4px;
    border-radius: var(--radius-sm);
  }

  .tab-num {
    font-size: 0.75rem;
  }

  .tab-title {
    font-size: 0.85rem;
  }

  .system__content-wrapper {
    padding: 24px;
    min-height: auto;
    border-radius: var(--radius-md);
  }

  .system__content-text h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
  }

  .system__content-text p {
    font-size: 0.9rem;
    margin-bottom: 16px;
  }

  .system__feature-list li {
    font-size: 0.85rem;
  }

  .visual-placeholder {
    height: 200px;
  }

  .visual-icon {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
  }

  /* Contact */
  .contact {
    padding: 64px 0;
  }

  .contact__info h2 {
    font-size: 1.5rem;
  }

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

  /* Location */
  .location {
    padding: 64px 0;
  }

  .location__header h2 {
    font-size: 1.6rem;
  }

  .location__map {
    height: 240px;
  }

  /* Footer */
  .footer__links {
    flex-direction: column;
    gap: 24px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__logo {
    align-self: center;
  }

  .footer {
    padding-bottom: 80px;
  }

  /* Floating CTA */
  .floating-cta {
    display: block;
  }
}

@media (max-width: 380px) {
  .hero__title {
    font-size: 1.5rem;
  }

  .stats__item-value {
    font-size: 2rem;
  }

  .stats__item-value .suffix {
    font-size: 1.2rem;
  }

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


/* ==========================================================================
   SUBPAGES & NAVIGATION DROPDOWN STYLES
   ========================================================================== */

/* Dropdown Menu (Desktop) */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 1020;
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-link {
  display: block;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  text-align: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav__dropdown-link:hover {
  background: var(--color-primary-bg);
  color: var(--color-primary);
}

/* Mobile Accordion Menu */
.mobile-menu__dropdown {
  width: 100%;
  text-align: center;
}

.mobile-dropdown-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 0;
}

.mobile-dropdown-toggle::after {
  content: '▾';
  font-size: 0.9rem;
  transition: transform var(--transition-base);
}

.mobile-menu__dropdown.active .mobile-dropdown-toggle::after {
  transform: rotate(180deg);
}

.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-md);
}

.mobile-menu__dropdown.active .mobile-dropdown-menu {
  max-height: 200px;
  padding: 16px 0;
  margin-top: 12px;
}

.mobile-menu__sub-link {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.mobile-menu__sub-link:hover {
  color: var(--color-primary);
}

/* Common Subpage Styles */
.subpage {
  padding-top: var(--nav-height);
  background: var(--color-bg);
}

.sub-hero {
  position: relative;
  padding: 120px 0 80px;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  text-align: center;
  overflow: hidden;
}

.sub-hero__title {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: 20px;
  word-break: keep-all;
}

.sub-hero__desc {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  word-break: keep-all;
}

/* 1. Director Page Specifics */
.director-hero {
  padding: 140px 0 100px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
  position: relative;
  overflow: hidden;
}

.director-hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.director-hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.director-hero__subtitle {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.director-hero__name-container {
  margin-bottom: 30px;
  position: relative;
  text-align: left;
}

.director-hero__title-text {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.director-hero__name {
  font-size: 5.5rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
  display: inline-block;
  position: relative;
  padding-bottom: 8px;
  text-shadow: none;
  white-space: nowrap;
}

.director-hero__slogan {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
  word-break: keep-all;
  border-left: 4px solid var(--color-secondary);
  padding-left: 20px;
  text-align: left;
}

/* 수학 기호 배경 데코레이션 */
.math-bg-decor {
  position: relative;
  overflow: hidden;
}

@keyframes floatSymbol1 {
  0% {
    translate: 0 0;
    rotate: -10deg;
    scale: 1;
  }

  50% {
    translate: 45px -60px;
    rotate: 15deg;
    scale: 1.2;
  }

  100% {
    translate: 0 0;
    rotate: -10deg;
    scale: 1;
  }
}

@keyframes floatSymbol2 {
  0% {
    translate: 0 0;
    rotate: 10deg;
    scale: 1;
  }

  50% {
    translate: -40px -50px;
    rotate: -15deg;
    scale: 0.85;
  }

  100% {
    translate: 0 0;
    rotate: 10deg;
    scale: 1;
  }
}

@keyframes floatSymbol3 {
  0% {
    translate: 0 0;
    rotate: 0deg;
    scale: 1;
  }

  50% {
    translate: 35px -65px;
    rotate: 20deg;
    scale: 1.15;
  }

  100% {
    translate: 0 0;
    rotate: 0deg;
    scale: 1;
  }
}

.math-symbol {
  position: absolute;
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
  color: var(--color-primary);
  opacity: 0.12;
  /* 가시성 향상 */
  pointer-events: none;
  user-select: none;
  z-index: 0;
  animation: floatSymbol1 12s ease-in-out infinite;
}

/* Vary animation speeds, delays, and names for organic natural motion */
.sym-1,
.sym-5,
.sym-9,
.sym-13 {
  animation-duration: 9s;
  animation-delay: 0s;
  animation-name: floatSymbol1;
}

.sym-2,
.sym-6,
.sym-10,
.sym-14 {
  animation-duration: 11s;
  animation-delay: -2s;
  animation-name: floatSymbol2;
}

.sym-3,
.sym-7,
.sym-11 {
  animation-duration: 10s;
  animation-delay: -4s;
  animation-name: floatSymbol3;
}

.sym-4,
.sym-8,
.sym-12 {
  animation-duration: 13s;
  animation-delay: -6s;
  animation-name: floatSymbol1;
}

.sym-1 {
  top: 12%;
  left: 8%;
  font-size: 5.5rem;
  transform: rotate(-15deg);
}

.sym-2 {
  top: 22%;
  right: 10%;
  font-size: 4.8rem;
  transform: rotate(10deg);
}

.sym-3 {
  bottom: 15%;
  left: 12%;
  font-size: 6.2rem;
  transform: rotate(5deg);
}

.sym-4 {
  bottom: 12%;
  right: 14%;
  font-size: 4rem;
  transform: rotate(-20deg);
}

.sym-5 {
  top: 48%;
  left: 18%;
  font-size: 3.8rem;
  transform: rotate(12deg);
}

.sym-6 {
  bottom: 42%;
  right: 22%;
  font-size: 5rem;
  transform: rotate(-8deg);
}

.sym-7 {
  top: 8%;
  left: 35%;
  font-size: 3.2rem;
  transform: rotate(-5deg);
}

.sym-8 {
  bottom: 8%;
  right: 40%;
  font-size: 4.5rem;
  transform: rotate(18deg);
}

.sym-9 {
  top: 30%;
  left: 45%;
  font-size: 4.2rem;
  transform: rotate(-12deg);
}

.sym-10 {
  top: 60%;
  right: 8%;
  font-size: 5rem;
  transform: rotate(22deg);
}

.sym-11 {
  bottom: 30%;
  left: 5%;
  font-size: 3.6rem;
  transform: rotate(-25deg);
}

.sym-12 {
  top: 15%;
  right: 35%;
  font-size: 4rem;
  transform: rotate(8deg);
}

.sym-13 {
  bottom: 45%;
  left: 30%;
  font-size: 3.4rem;
  transform: rotate(15deg);
}

.sym-14 {
  top: 55%;
  right: 30%;
  font-size: 4.8rem;
  transform: rotate(-10deg);
}

.director-details {
  padding: 100px 0;
  background: var(--color-bg-alt);
}

.director-details__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.director-details__block h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--color-primary);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-item {
  display: flex;
  gap: 20px;
}

.timeline-badge {
  background: var(--color-primary-bg);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  height: fit-content;
  white-space: nowrap;
}

.timeline-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

/* 2. Academy Page Specifics (Refactored to Premium Light Theme) */
.academy-hero {
  min-height: auto;
  padding: 100px 0;
  background: var(--color-bg-alt);
  color: var(--color-text);
  position: relative;
  overflow: hidden;
}

.academy-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(139, 26, 26, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.academy-hero__tag {
  color: var(--color-primary);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  text-align: center;
}

.academy-hero__title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 40px;
  word-break: keep-all;
  color: var(--color-dark);
  text-align: center;
}

.academy-hero__title span {
  color: var(--color-primary);
}

.vs-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.vs-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.vs-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.vs-card--left {
  background: rgba(0, 0, 0, 0.015);
  border: 1px dashed var(--color-border);
  opacity: 0.75;
}

.vs-card--right {
  border: 2px solid var(--color-primary);
  box-shadow: 0 10px 30px rgba(139, 26, 26, 0.04);
}

.vs-card__badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.vs-card--left .vs-card__badge {
  background: var(--color-border);
  color: var(--color-text-secondary);
}

.vs-card--right .vs-card__badge {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(139, 26, 26, 0.2);
}

.vs-card__title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.vs-card--left .vs-card__title {
  color: var(--color-text-secondary);
}

.vs-card--right .vs-card__title {
  color: var(--color-primary);
}

.vs-card__desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  word-break: keep-all;
}

.vs-card--right .vs-card__desc {
  color: var(--color-text);
}

.vs-card__list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--color-border-light);
  padding-top: 24px;
}

.vs-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.vs-card--right .vs-card__list li {
  color: var(--color-text);
  font-weight: 500;
}

.vs-card__list li::before {
  content: '✕';
  color: #ff5252;
  font-weight: bold;
}

.vs-card--right .vs-card__list li::before {
  content: '✓';
  color: var(--color-secondary);
  font-weight: bold;
}

/* 3. Curriculum Page Specifics */
.curriculum-hero {
  background: #ffffff;
  padding: 120px 0 60px;
}

.curriculum-roadmap {
  padding: 80px 0 120px;
  background: var(--color-bg-alt);
  position: relative;
}

.curriculum-roadmap__inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.curriculum-roadmap__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: var(--color-border);
  z-index: 0;
}

.roadmap-step {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}

.roadmap-step:last-child {
  margin-bottom: 0;
}

.roadmap-step__badge {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 0 0 8px #ffffff, var(--shadow-md);
  z-index: 2;
}

.roadmap-step:nth-child(even) .roadmap-step__badge {
  background: var(--color-secondary);
}

.roadmap-step__card {
  width: 44%;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.roadmap-step__card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.roadmap-step:nth-child(odd) .roadmap-step__card {
  margin-left: auto;
}

.roadmap-step__num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  display: inline-block;
}

.roadmap-step:nth-child(even) .roadmap-step__num {
  color: var(--color-secondary);
}

.roadmap-step__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.roadmap-step__desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  word-break: keep-all;
  margin-bottom: 20px;
}

.roadmap-step__features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--color-border-light);
  padding-top: 16px;
}

.roadmap-step__features li {
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.roadmap-step__features li::before {
  content: '•';
  color: var(--color-primary);
  font-size: 1.2rem;
}

.roadmap-step:nth-child(even) .roadmap-step__features li::before {
  color: var(--color-secondary);
}

/* Subpages Responsive */
@media (max-width: 1024px) {
  .director-hero__inner {
    gap: 40px;
  }

  .director-hero__name {
    font-size: 5rem;
  }

  .vs-container {
    gap: 24px;
  }

  .vs-card {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .director-hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .director-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .director-hero__slogan {
    border-left: none;
    border-top: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    padding: 16px 0;
    max-width: 100%;
  }

  .director-hero__name {
    font-size: 4.5rem;
  }

  .director-hero__name-bg {
    font-size: 7rem;
    left: 50%;
    transform: translateX(-50%);
    top: -30px;
  }

  .director-hero__visual-container {
    max-width: 300px;
    position: relative;
    z-index: 20;
  }

  .director-hero__visual {
    width: 100%;
    height: auto;
    border: none !important;
    box-shadow: none !important;
    border-radius: 12px;
  }

  .director-details {
    padding: 60px 0;
  }

  .director-details__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .academy-hero {
    padding: 100px 0 60px;
  }

  .academy-hero__title {
    font-size: 2.2rem;
  }

  .vs-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .curriculum-roadmap {
    padding: 60px 0;
  }

  .curriculum-roadmap__line {
    left: 24px;
    transform: none;
  }

  .roadmap-step {
    flex-direction: column;
    gap: 0;
    margin-bottom: 48px;
  }

  .roadmap-step__badge {
    left: 24px;
    transform: translateY(0);
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }

  .roadmap-step__card {
    width: calc(100% - 48px);
    margin-left: 48px !important;
    padding: 24px;
  }

  .roadmap-step__title {
    font-size: 1.25rem;
  }

  .sub-hero__title {
    font-size: 2.2rem;
  }
}

/* ========================
   PRIVACY CONSENT CHECKBOXES
   ======================== */
.form__consent-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.form__consent-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.form__consent-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
  cursor: pointer;
}

.form__consent-label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  word-break: keep-all;
  cursor: pointer;
}

.form__consent-label a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 500;
}

.form__consent-label a:hover {
  color: var(--color-primary-light);
}

.form__consent-detail {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

/* Director Subtitle multi-color */
.director-hero__subtitle .sub-cy {
  color: var(--color-primary);
  font-weight: 800;
}

.director-hero__subtitle .sub-cy-title {
  color: #1A1A1A;
  font-weight: 800;
}

.director-hero__subtitle .sub-summit {
  color: #1A1A1A;
  font-weight: 800;
}

.director-hero__subtitle .sub-underbar {
  color: #999999;
}

.director-hero__subtitle .sub-math {
  color: #8B1A1A;
  font-weight: 700;
}

.director-hero__subtitle .sub-develop {
  color: #8B1A1A;
  font-weight: 700;
}

.director-hero__subtitle .sub-research {
  color: #6B7D2E;
  font-weight: 700;
}

.director-hero__subtitle .sub-title {
  color: #2D2D2D;
  font-weight: 600;
}

/* ========================
   PROMO BANNER
   ======================== */
.promo-banner {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 8px 16px;
  display: none;
  /* Controlled by JS */
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1011;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all var(--transition-base);
}

.promo-banner__content {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 24px;
}

.promo-banner__link {
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity var(--transition-fast);
}

.promo-banner__link:hover {
  opacity: 0.9;
}

.promo-banner__close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
  padding: 4px;
}

.promo-banner__close:hover {
  opacity: 1;
}

/* Make navbar height auto to allow the banner to sit above the nav__inner */
.nav {
  height: auto !important;
  min-height: var(--nav-height);
}

.nav__inner {
  height: 72px !important;
}

@media (max-width: 768px) {
  .nav__inner {
    height: 60px !important;
  }
}

/* ==========================================================================
   INTEGRATED MAIN DIRECTOR SECTION (Minimalist Dark Theme)
   ========================================================================== */
.main-director {
  position: relative;
  /* 짙은 네이비/블랙 배경 위에 테마 색상(블루 등)에서 퍼져나오는 은은한 광채 효과 */
  background: radial-gradient(circle at 75% 40%, rgba(96, 165, 250, 0.08), transparent 45%), var(--color-dark-bg);
  padding: 80px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.main-director__inner {
  position: relative;
  z-index: 2;
}

.main-director__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 60px;
  align-items: center;
}

.main-director__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.main-director__subtitle {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
  line-height: 1.7;
  margin-bottom: 16px;
}

.main-director__subtitle span {
  color: inherit !important;
  font-weight: inherit !important;
  font-size: inherit !important;
}

.main-director__name {
  font-size: 4rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.main-director__slogan {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  border-left: 4px solid var(--color-primary);
  padding-left: 18px;
  line-height: 1.4;
  word-break: keep-all;
}

.main-director__action {
  margin-top: 10px;
}

.btn-more {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--color-primary);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-base);
}

.btn-more:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
}

/* 다크 테마 내 수학 데코레이션 기호 밝기 보정 */
.main-director .math-symbol {
  color: #ffffff !important;
  opacity: 0.05 !important;
}

/* Right Content: Philosophy declaration */
.main-director__right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.director-philosophy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.director-philosophy__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 12px;
  word-break: keep-all;
}

.director-philosophy__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

.director-philosophy__text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  word-break: keep-all;
}

/* Tablet & Mobile responsive styles for integrated section */
@media (max-width: 1024px) {
  .main-director__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .main-director__left {
    text-align: center;
    align-items: center;
  }

  .main-director__slogan {
    border-left: none;
    border-top: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    padding: 16px 0;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
  }
  
  .main-director__right {
    align-items: center;
    text-align: center;
  }
  
  .director-philosophy__title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .main-director {
    padding: 60px 0;
  }

  .main-director__name {
    font-size: 3rem;
  }

  .main-director__slogan {
    font-size: 1.35rem;
  }
}

/* ======== Main Page Popup Style ======== */
.popup-overlay {
  position: fixed;
  top: 120px; /* Below navigation bar */
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  pointer-events: none;
  z-index: 10000;
  background: none;
}

.popup-container {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  max-width: 360px;
  width: 100%;
  pointer-events: auto;
  animation: popupFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.popup-body {
  position: relative;
  width: 100%;
  display: block;
}

.popup-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 70vh;
  object-fit: contain;
}

.popup-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1a1a1a;
  padding: 12px 18px;
}

.popup-btn-today, .popup-btn-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 10px;
  transition: color var(--transition-fast);
}

.popup-btn-today:hover, .popup-btn-close:hover {
  color: #ffffff;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}