/* 공통 */
body {
  margin: 0;
  font-family: Arial;
}

    :root {
      --navy: #0d1b3f;
      --navy-2: #132659;
      --blue: #2d6cff;
      --blue-2: #4b86ff;
      --sky: #eef4ff;
      --text: #142033;
      --muted: #61708a;
      --line: #dfe6f2;
      --bg: #f7f9fc;
      --white: #ffffff;
      --success: #12a36e;
      --shadow: 0 20px 50px rgba(13, 27, 63, 0.08);
      --radius: 22px;
      --max: 1240px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
      color: var(--text);
      background: var(--bg);
      line-height: 1.65;
    }
    img { max-width: 100%; display: block; }
    a { color: inherit; text-decoration: none; }
    button, input, select, textarea { font: inherit; }

    .container {
      width: min(var(--max), calc(100% - 40px));
      margin: 0 auto;
    }

    .section {
      padding: clamp(48px, 5vh, 80px) 0;
      scroll-margin-top: 80px;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 14px;
      border-radius: 999px;
      background: #eaf0ff;
      color: var(--blue);
      font-size: 14px;
      font-weight: 700;
      letter-spacing: -0.02em;
    }

    .section-head {
      width: 100%;
      margin-bottom: clamp(24px, 3vh, 40px);
    }

    .section-head h2 {
      margin: 14px 0 10px;
      font-size: clamp(34px, 4.5vw, 52px);
      line-height: 1.15;
      letter-spacing: -0.04em;
    }

    .section-head p {
      margin: 0;
      color: var(--muted);
      font-size: clamp(20px, 2.7vw, 31px);
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: rgba(255,255,255,0.88);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid rgba(223,230,242,0.85);
    }

    .header-inner {
      min-height: 76px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 190px;
    }

    .brand-mark {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--blue), #7db1ff);
      box-shadow: 0 12px 24px rgba(45, 108, 255, 0.28);
    }

    .brand-name {
      font-size: 18px;
      font-weight: 800;
      letter-spacing: -0.03em;
    }

    .brand-sub {
      font-size: 12px;
      color: var(--muted);
      margin-top: 2px;
    }

    .menu-toggle { display: none; }

    .main-nav {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      flex: 1;
      gap: 22px;
      flex-wrap: wrap;
    }

    .main-nav a {
      font-size: 22px;
      font-weight: 700;
      color: #22304a;
      position: relative;
      padding: 4px 0;
    }

    .main-nav a::after {
      content: '';
      position: absolute;
      bottom: -3px;
      left: 0;
      width: 100%;
      height: 2px;
      background: #38bdf8;
      border-radius: 2px;
      transform: scaleX(0);
      transition: transform 0.2s ease;
    }

    .main-nav a.nav-active::after {
      transform: scaleX(1);
    }

    .header-cta {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 260px;
      justify-content: flex-end;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border-radius: 999px;
      padding: 14px 22px;
      font-weight: 800;
      letter-spacing: -0.02em;
      transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
      border: 0;
      cursor: pointer;
      white-space: nowrap;
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--blue), var(--blue-2));
      color: var(--white);
      box-shadow: 0 16px 34px rgba(45, 108, 255, 0.28);
    }

    .btn-primary:hover,
    .btn-outline:hover,
    .card:hover,
    .program-card:hover,
    .story-card:hover,
    .blog-card:hover,
    .book-card:hover { transform: translateY(-3px); }

    .btn-outline {
      background: var(--white);
      color: var(--navy);
      border: 1px solid var(--line);
      box-shadow: 0 10px 24px rgba(13, 27, 63, 0.06);
    }

    .hero {
      position: relative;
      min-height: 100vh;
      display: flex;
      align-items: center;
      overflow: hidden;
      color: var(--white);
      background:
        linear-gradient(115deg, rgba(5, 10, 25, 0.55), rgba(13, 27, 63, 0.45)),
        url('https://images.unsplash.com/photo-1462331940025-496dfbfc7564?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
    }

    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 80% 20%, rgba(123, 174, 255, 0.32), transparent 22%),
        radial-gradient(circle at 18% 85%, rgba(53, 104, 255, 0.22), transparent 24%);
      pointer-events: none;
    }

    .hero-grid {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
      gap: 34px;
      align-items: center;
      padding: 130px 0 84px;
    }

    .hero-copy h1 {
      margin: 18px 0;
      font-size: clamp(40px, 7vw, 76px);
      line-height: 1.05;
      letter-spacing: -0.05em;
    }

    .headline-2 {
      margin: 18px 0;
      font-size: clamp(40px, 7vw, 76px);
      line-height: 1.05;
      letter-spacing: -0.05em;
      display: inline-block;
    }

    .headline-1 {
      margin: 18px 0;
      font-size: clamp(40px, 7vw, 76px);
      line-height: 1.05;
      letter-spacing: -0.05em;
    }

    .hero-copy .quote {
      margin: 0;
      font-size: clamp(18px, 2vw, 28px);
      line-height: 1.45;
      max-width: 840px;
      color: rgba(255,255,255,0.95);
      font-weight: 700;
      letter-spacing: -0.03em;
    }

    .hero-copy .subcopy {
      margin: 0 0 8px;
      color: rgba(255,255,255,0.88);
      font-size: clamp(16px, 2vw, 20px);
      max-width: 760px;
    }

    .hero-copy .meta {
      margin-top: 20px;
      display: grid;
      gap: 8px;
      color: rgba(255,255,255,0.84);
      font-size: 15px;
    }

    .hero-actions {
      display: flex;
      gap: 12px;
      margin-top: 28px;
      flex-wrap: wrap;
    }

    .hero-panel {
      background: rgba(255,255,255,0.10);
      border: 1px solid rgba(255,255,255,0.16);
      border-radius: 28px;
      padding: 24px;
      box-shadow: 0 30px 80px rgba(0,0,0,0.18);
      backdrop-filter: blur(14px);
    }

    .hero-panel h2 {
      margin: 0 0 18px;
      font-size: 18px;
      letter-spacing: -0.03em;
    }

    .feature-stats {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .stat {
      padding: 18px;
      border-radius: 20px;
      background: rgba(255,255,255,0.12);
      border: 1px solid rgba(255,255,255,0.16);
    }

    .stat span {
      display: block;
      font-size: 1.3em;
      font-weight: 700;
      color: #a8ff3e;
      margin-bottom: 4px;
    }

    .stat {
      padding: 18px;
      border-radius: 20px;
      background: rgba(255,255,255,0.12);
      border: 1px solid rgba(255,255,255,0.16);
    }

    .stat strong {
      display: block;
      font-size: clamp(26px, 4vw, 36px);
      line-height: 1.05;
      margin-top: 6px;
      letter-spacing: -0.04em;
      color: #ffffff;
    }

    .hero-note {
      margin-top: 16px;
      font-size: 14px;
      color: rgba(255,255,255,0.8);
    }

    .problem-solution{display:flex;justify-content:center;align-items:center;margin-top:24px;overflow:visible}
.carousel3{position:relative;width:min(1000px,100%);height:500px;margin:0 auto; perspective:1200px;}
.c-card{position:absolute;top:20px;width:360px;height:420px;border-radius:24px;background:linear-gradient(135deg,#1f3fff,#2d6cff);box-shadow:0 30px 80px rgba(0,0,0,.2);transition:transform .6s cubic-bezier(.22,1,.36,1), left .6s cubic-bezier(.22,1,.36,1), opacity .4s;display:flex;align-items:center;justify-content:center;padding:24px;color:#fff; will-change: transform,left,opacity;}
.c-inner{background:rgba(255,255,255,.08);backdrop-filter:blur(12px);border-radius:20px;padding:24px;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;gap:16px;border:1px solid rgba(255,255,255,.15)}
.c-title{font-size:36px;font-weight:900;text-align:center}
.c-sub{font-size:26px;font-weight:800;text-align:center;white-space:nowrap}
.c-desc{font-size:18px;text-align:center;color:#eaf0ff}
.c-desc-box{margin-top:8px;padding:14px;border-radius:14px;background:rgba(255,255,255,.9);border:1px solid rgba(255,255,255,.6);color:#0d1b3f;font-weight:700;line-height:1.4}
.c-left{left:20%;transform:translateX(-50%) rotateY(25deg) scale(.8) translateY(20px);opacity:.6;z-index:1;}
.c-center{left:50%;transform:translateX(-50%) rotateY(0deg) scale(1.05);z-index:3;box-shadow:0 0 50px rgba(45,108,255,.9),0 30px 100px rgba(0,0,0,.4);}
.c-right{left:80%;transform:translateX(-50%) rotateY(-25deg) scale(.8) translateY(20px);opacity:.6;z-index:1;}

    .flash-wrap {
      width: min(820px, 100%);
      perspective: 1600px;
    }

    .flash-card {
      position: relative;
      width: 100%;
      min-height: 520px;
      transform-style: preserve-3d;
      transition: transform 0.8s ease;
      cursor: pointer;
    }

    .flash-card.is-flipped {
      transform: rotateY(180deg);
    }

    .flash-face {
      position: absolute;
      inset: 0;
      backface-visibility: hidden;
      border-radius: 28px;
      padding: 34px;
      box-shadow: var(--shadow);
      border: 1px solid var(--line);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .flash-face h3 {
      margin: 0 0 18px;
      font-size: 28px;
      letter-spacing: -0.03em;
    }

    .flash-face p,
    .flash-face li {
      color: #475872;
    }

    .flash-problem {
      background: linear-gradient(135deg, #ffe7ea 0%, #fff2f4 100%);
      border-top: 6px solid #f39aa6;
    }

    .flash-solution {
      background: linear-gradient(135deg, #e8f6ef 0%, #f3fff8 100%);
      border-top: 6px solid #7fd7ac;
      transform: rotateY(180deg);
    }

    .flash-kicker {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 14px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 800;
      letter-spacing: -0.02em;
      width: fit-content;
    }

    .flash-problem .flash-kicker {
      background: rgba(227, 108, 108, 0.14);
      color: #bf4355;
    }

    .flash-solution .flash-kicker {
      background: rgba(18, 163, 110, 0.14);
      color: #118457;
    }

    .flash-note {
      margin-top: 18px;
      font-size: 14px;
      font-weight: 700;
      color: #344766;
      opacity: 0.9;
    }

    .card {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 28px;
      box-shadow: var(--shadow);
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .problem-card {
      border-top: 5px solid #e36c6c;
    }

    .solution-card {
      border-top: 5px solid var(--success);
    }

    .card h3 {
      margin: 0 0 18px;
      font-size: 24px;
      letter-spacing: -0.03em;
    }

    .list {
      display: grid;
      gap: 14px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .list li {
      padding: 16px 18px;
      border-radius: 18px;
      background: #f8fbff;
      border: 1px solid #e4edf8;
    }

    .list strong { display: block; margin-bottom: 4px; }

    .program-grid,
    .diff-grid,
    .story-grid,
    .blog-grid,
    .book-grid,
    .mini-grid,
    .info-grid,
    .case-grid,
    .references-grid { 
      display: grid;
      gap: 22px;
    }

    .program-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .diff-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .info-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
    .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .references-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }

    .program-card,
    .story-card,
    .blog-card,
    .book-card {
      border-radius: 24px;
      padding: 28px;
      background: var(--white);
      border: 1px solid var(--line);
      box-shadow: var(--shadow);
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .program-card h3,
    .story-card h3,
    .blog-card h3,
    .book-card h3 {
      margin: 0 0 10px;
      font-size: 24px;
      line-height: 1.18;
      letter-spacing: -0.03em;
    }

    .program-card p,
    .story-card p,
    .blog-card p,
    .book-card p,
    .program-card li,
    .story-card li { color: var(--muted); }

    .program-card .icon,
    .diff-item .icon,
    .blog-card .icon {
      width: 52px;
      height: 52px;
      border-radius: 16px;
      background: linear-gradient(135deg, var(--sky), #dce8ff);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 18px;
      font-size: 24px;
    }

    .dark-section {
  background: linear-gradient(180deg, #1a3a7a 0%, #3f6fd1 100%);
  color: var(--white);
}

    .dark-section .section-head p,
    .dark-section .diff-item p,
    .dark-section .diff-item li { color: rgba(255,255,255,0.78); }

    .diff-item {
      border-radius: 24px;
      padding: 28px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(255,255,255,0.05);
      backdrop-filter: blur(6px);
      min-height: 100%;
    }

    .diff-item .icon {
      background: rgba(255,255,255,0.12);
    }

    .diff-item h3 {
      margin: 0 0 10px;
      font-size: 22px;
      line-height: 1.18;
      letter-spacing: -0.03em;
    }

    #연혁 {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

#연혁 .section-head h2 {
  color: #ffffff;
  font-size: clamp(34px, 4.5vw, 52px);
}

#연혁 .section-head p {
  color: #94a3b8;
  font-size: clamp(20px, 2.7vw, 31px);
}

.history-wrap {
      display: flex;
      gap: 24px;
      align-items: stretch;
    }

    .history-intro,
    .timeline,
    .references-panel,
    .teacher-panel,
    .system-panel,
    .contact-panel,
    .apply-panel {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 28px;
      box-shadow: var(--shadow);
      padding: 30px;
      min-height: 520px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .history-intro,
    .references-panel {
      flex: 1;
    }

    #연혁 .history-intro,
    #연혁 .references-panel {
      height: clamp(380px, calc(100vh - 370px), 520px);
      min-height: 380px;
      overflow: hidden;
    }

    .history-box,
    .ref-logo-section {
      flex: 1;
    }

    .panel-title {
      margin: 0 0 18px;
      text-align: center;
      font-size: 36px;
      font-weight: 900;
      line-height: 1.2;
      letter-spacing: -0.03em;
      color: #2d6cff;
      background: linear-gradient(135deg, #2d6cff, #4b86ff);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      text-shadow: none;
      position: relative;
    }

    #연혁 .panel-title {
      margin: 0 auto 24px;
      font-size: clamp(32px, 5vw, 42px);
      font-family: inherit;
      font-style: normal;
      letter-spacing: -0.02em;
      line-height: 1.2;
      text-align: center;
      white-space: normal;
      color: #20325b;
      background: none;
      -webkit-background-clip: border-box;
      -webkit-text-fill-color: currentColor;
      background-clip: border-box;
      text-shadow: none;
    }

    #연혁 .panel-title::after {
      content: '';
      position: absolute;
      bottom: -16px;
      left: 50%;
      transform: translateX(-50%);
      width: 100px;
      height: 5px;
      background: #ff2d2d;
      border-radius: 999px;
    }

    .timeline-list {
      display: grid;
      gap: 14px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .timeline-list li {
      display: grid;
      grid-template-columns: 110px 1fr;
      gap: 16px;
      padding: 16px 0;
      border-bottom: 1px solid #edf1f7;
    }

    .timeline-list li:last-child { border-bottom: 0; }

    .timeline-list strong {
      color: var(--blue);
      font-size: 15px;
      font-weight: 800;
    }

    .references-grid .ref-item {
      background: #f8fbff;
      border: 1px solid #e4edf8;
      border-radius: 18px;
      padding: 16px;
      text-align: center;
      font-weight: 700;
      color: #304260;
    }

    .teacher-summary {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      margin-top: 20px;
    }

    .teacher-box {
      border-radius: 22px;
      padding: 22px;
      background: #f8fbff;
      border: 1px solid #e4edf8;
    }

    .teacher-box h4 {
      margin: 0 0 12px;
      font-size: 18px;
    }

    .teacher-box ul,
    .story-card ul,
    .book-card ul,
    .system-panel ul,
    .teacher-panel ul {
      margin: 0;
      padding-left: 18px;
      color: var(--muted);
    }

    .story-card .result {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 12px;
      border-radius: 999px;
      background: #eef5ff;
      color: var(--blue);
      font-size: 13px;
      font-weight: 800;
      margin-bottom: 14px;
    }

    .score-box {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      gap: 12px;
      align-items: center;
      padding: 16px;
      border-radius: 20px;
      background: #f8fbff;
      border: 1px solid #e4edf8;
      margin: 18px 0;
    }

    .score-box strong {
      display: block;
      font-size: 28px;
      line-height: 1.05;
      letter-spacing: -0.04em;
      color: var(--navy);
    }

    .score-box span { color: var(--muted); font-size: 13px; }
    .score-box .arrow { font-size: 22px; color: var(--blue); font-weight: 900; }

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

    .blog-card .meta {
      font-size: 13px;
      color: var(--blue);
      font-weight: 800;
      letter-spacing: -0.02em;
    }

    .blog-card .link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--blue);
      font-weight: 800;
      margin-top: auto;
    }

    .blog-note {
      margin-top: 24px;
      padding: 22px;
      border-radius: 24px;
      background: #f1f6ff;
      border: 1px solid #dfeafe;
      color: #344766;
    }

    .system-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
    }

    .process-list {
      display: grid;
      gap: 12px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .process-list li {
      display: grid;
      grid-template-columns: 42px 1fr;
      gap: 14px;
      padding: 14px;
      border-radius: 18px;
      background: #f8fbff;
      border: 1px solid #e4edf8;
    }

    .step-no {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, var(--blue), var(--blue-2));
      color: var(--white);
      font-weight: 800;
    }

    .contact-wrap {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
    }

    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
      margin-top: 18px;
    }

    .form-grid .full { grid-column: 1 / -1; }

    label {
      display: block;
      margin-bottom: 6px;
      font-weight: 700;
      color: #23324d;
      font-size: 14px;
    }

    input, select, textarea {
      width: 100%;
      padding: 14px 16px;
      border-radius: 16px;
      border: 1px solid #d8e3f4;
      background: #fbfdff;
      color: var(--text);
      outline: none;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    input:focus, select:focus, textarea:focus {
      border-color: var(--blue);
      box-shadow: 0 0 0 4px rgba(45, 108, 255, 0.12);
    }

    textarea { min-height: 138px; resize: vertical; }

    .contact-points,
    .apply-points {
      display: grid;
      gap: 16px;
      margin-top: 18px;
    }

    .contact-point,
    .apply-point {
      padding: 18px;
      border-radius: 20px;
      background: #f8fbff;
      border: 1px solid #e4edf8;
    }

    .floating-cta {
      position: fixed;
      right: 18px;
      bottom: 18px;
      z-index: 1000;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .floating-cta a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 140px;
      padding: 14px 18px;
      border-radius: 999px;
      box-shadow: 0 16px 34px rgba(13, 27, 63, 0.18);
      font-weight: 800;
      letter-spacing: -0.02em;
    }

    .floating-cta .primary { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: var(--white); }
    .floating-cta .secondary { background: var(--white); color: var(--navy); border: 1px solid var(--line); }
    .floating-cta .back-top-btn { display: none; } /* PC에서 숨김 — 모바일 전용 */

    footer {
      background: #071022;
      color: rgba(255,255,255,0.9);
      padding: 24px 0;
    }

    .footer-single {
      display: flex;
      align-items: center;
      gap: 24px;
      flex-wrap: nowrap;
    }

    .footer-brand {
      flex-shrink: 0;
      text-decoration: none;
    }

    .footer-logo {
      height: 32px;
      width: auto;
      display: block;
    }

    .footer-nav {
      display: flex;
      flex-wrap: nowrap;
      gap: 4px 16px;
      align-items: center;
      flex: 1;
    }

    .footer-copy {
      font-size: 13px;
      color: rgba(255,255,255,0.5);
      white-space: nowrap;
      flex-shrink: 0;
    }

    .footer-addr {
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px solid rgba(255,255,255,0.08);
      font-size: 13px;
      color: rgba(255,255,255,0.45);
    }

    .muted { color: var(--muted); }
    .small { font-size: 14px; }

    .seo-block {
      position: absolute;
      left: -9999px;
      width: 1px;
      height: 1px;
      overflow: hidden;
    }

    @media (max-width: 1180px) {
      .program-grid,
      .diff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .story-grid,
      .blog-grid,
      .book-grid,
      .references-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .hero-grid,
      .info-grid,
      .system-grid,
      .contact-wrap,
      .footer-grid,
      .case-grid { grid-template-columns: 1fr; }
      .history-wrap { flex-direction: column; }
      .teacher-summary { grid-template-columns: 1fr; }
      .references-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .header-inner { flex-wrap: wrap; padding: 12px 0; }
      .header-cta { width: 100%; justify-content: flex-end; }
    }

    @media (max-width: 760px) {
      .section { padding: 74px 0; }
      .container { width: min(var(--max), calc(100% - 24px)); }
      .hero { min-height: auto; }
      .hero-grid { padding: 112px 0 64px; }
      .hero-copy h1 { font-size: 38px; }
      .feature-stats { grid-template-columns: 1fr 1fr; }
      .problem-solution,
      .form-grid,
      .program-grid,
      .diff-grid,
      .story-grid,
      .blog-grid,
      .book-grid,
      .references-grid,
      .mini-grid { grid-template-columns: 1fr; }
      .timeline-list li { grid-template-columns: 1fr; gap: 8px; }
      .header-cta { justify-content: stretch; }
      .header-cta .btn { flex: 1; }
      .floating-cta { right: 12px; left: 12px; bottom: 12px; }
      .floating-cta a { width: 100%; }
      .brand { min-width: auto; }
    }
  
/* ===== ?�이교육 차별??카드??===== */
.diff-cards{
  display:flex;
  flex-direction:column;
  gap:20px;
  margin-top:20px;
}

.diff-card{
  display:flex;
  align-items:flex-start;
  gap:24px;
  width:100%;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.15);
  border-radius:20px;
  padding:24px;
  transition:all .35s ease;
  backdrop-filter:blur(6px);
}



.diff-card:hover{
  transform:translateY(-6px);
  box-shadow:0 20px 40px rgba(0,0,0,0.2);
  gap:32px;
}

.diff-card:hover h3,
.diff-card:hover p{
  transform:scale(1.3);
}

.diff-card h3{
  margin:0 0 6px;
  font-size:25px;
  line-height:1.25;
  display:block;
  transform-origin:left center;
  transition:.3s;
}

.diff-card p{
  margin:0;
  font-size:18px;
  color:rgba(255,255,255,0.85);
  display:block;
  transform-origin:left center;
  transition:.3s;
}

.diff-no{
  font-size:35px;
  font-weight:900;
  color:#ffd700;
  min-width:44px;
  flex:0 0 44px;
}

@media(max-width:1100px){
  .diff-cards{flex-direction:column}
}
@media(max-width:600px){
  .diff-cards{flex-direction:column}
}


.diff-text{display:flex;flex-direction:column}


/* ===== References 로고 UI ===== */
.ref-logo-section{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:center;
  align-content:flex-start;
  flex:1;
  position:relative;
  z-index:1;
  overflow-y:auto;
  scrollbar-width:none;
  padding-top:12px;
  padding-left:56px;
}

.ref-logo-section::-webkit-scrollbar{
  width:0;
  height:0;
}
.ref-group h4{
  display:block;
  margin: 20px 0;
  font-size: 30px;
  font-weight: 800;
  color:#2d6cff;
  text-align: center;
}

.ref-logos{
  display:grid;                         /* 변�?*/
  grid-template-columns:repeat(3,1fr);  /* 추�? */
  gap:64px;
  justify-content:center;
}

/* 박스??같이 ?��? */
.logo-box {
  width: 160px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ?��?지 ?��? */
.logo-box img {
  width: 140px;   /* ?�� ?�기???�기 조절 */
  height: auto;
  max-width: none;
  max-height: none;
}
.references-panel{justify-content:flex-start}

.references-panel{
  position:relative;
}

.ref-scroll-ui{
  position:absolute;
  top:98px;
  bottom:30px;
  left:20px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  width:36px;
  padding:10px 0;
  border-radius:999px;
  background:rgba(255,255,255,0.55);
  border:1px solid #dfe8f7;
  z-index:3;
}

.ref-btn{
  width:34px;
  height:34px;
  border-radius:50%;
  border:0;
  background:#ffffff;
  color:#9aa4b2;
  cursor:pointer;
  box-shadow:0 6px 14px rgba(0,0,0,0.12);
}

.ref-track{
  position:relative;
  width:10px;
  flex:1;
  min-height:200px;
  border-radius:999px;
  background:#dbe8ff;
}

.ref-thumb{
  position:absolute;
  left:1px;
  width:8px;
  height:56px;
  border-radius:999px;
  background:linear-gradient(180deg,#7aa8ff 0%,#2d6cff 100%);
  box-shadow:0 6px 16px rgba(45,108,255,.28);
  transition:top .45s ease;
}

.ref-btn:active{transform:translateY(1px)}



.logo-box{
  width:112px;   /* 140 × 0.8 = 112 */
  height:72px;   /* 90 × 0.8 = 72 */
}

.logo-box img{
  width:100%;        /* 추�? */
  max-width:100%;    /* ?�정 */
  max-height:100%;   /* ?�정 */
}
.logo-box:hover img{
  filter:grayscale(0%);
  opacity:1;
}
@media(max-width:760px){
  .ref-logos{flex-wrap:wrap}
}

.ref-cat{
  background:#f8fbff;
  border:1px solid #e4edf8;
  border-radius:16px;
  padding:16px;
}

.ref-cat h4{
  margin:0 0 8px;
  font-size:15px;
  font-weight:800;
  color:#2d6cff;
}

.ref-cat p{
  margin:0;
  font-size:14px;
  line-height:1.5;
  color:#304260;
}

@media(max-width:760px){
  .references-categories{grid-template-columns:1fr}
}


/* ===== History ?�드?�인 ===== */
.history-head{
  text-align:center;
  margin-bottom:72px;
}
.history-switch-title{
  position:relative;
  margin:0;
  min-height:1.25em;
  font-size:clamp(32px,4.8vw,50px);
  font-weight:900;
  line-height:1.15;
  letter-spacing:-0.04em;
  color:#ffffff;
  text-shadow:0 4px 20px rgba(0,0,0,0.35);
}
.history-switch-title span{
  position:absolute;
  left:50%;
  top:0;
  width:100%;
  transform:translateX(-50%);
  text-align:center;
}
.history-title-a{
  color:#0d1b3f;
  animation:historyFadeA 4.8s ease-in-out infinite;
}
.history-title-b{
  color:#ffffff;
  opacity:0;
  animation:historyFadeB 4.8s ease-in-out infinite;
}
@keyframes historyFadeA{
  0%,40%{opacity:1}
  50%,90%{opacity:0}
  100%{opacity:1}
}
@keyframes historyFadeB{
  0%,40%{opacity:0}
  50%,90%{opacity:1}
  100%{opacity:0}
}

/* ===== History 롤링 ===== */
.history-roller-box{
  position:relative;
  min-height:380px;
  overflow:hidden;
  border-radius:18px;
  border:1px solid #e4edf8;
  background:linear-gradient(180deg,#f8fbff 0%,#eef5ff 100%);
  display:grid;
  grid-template-columns:1fr 56px;
  gap:0;
}
.history-roller-shell{
  position:relative;
  height:360px;
  overflow:hidden;
  padding:18px 12px;
}
.history-view{
  position:absolute;
  inset:18px 12px 18px 12px;
}
.history-item{
  position:absolute;
  left:0;
  width:100%;
  border-radius:18px;
  border:1px solid #d9e6fb;
  background:#ffffff;
  box-shadow:0 12px 28px rgba(13,27,63,0.08);
  padding:16px 18px;
  transition:transform .55s ease, opacity .45s ease, filter .45s ease;
  transform-origin:center center;
}
.history-item strong{
  display:flex;
  align-items:center;
  gap:10px;
  color:#2d6cff;
  margin-bottom:8px;
  font-size:18px;
  font-weight:900;
  letter-spacing:-0.03em;
}
.history-phase{
  font-size:0.9em;
  font-weight:700;
  color:#9aa4b2;
}
.history-item p{
  margin:0;
  color:#304260;
  font-size:14px;
  line-height:1.55;
}
.history-item.pos-top{
  transform:translateY(0) scale(0.84);
  opacity:.55;
  filter:blur(.2px);
}
.history-item.pos-center{
  transform:translateY(108px) scale(1);
  opacity:1;
  z-index:2;
}
.history-item.pos-center strong{font-size:22px}
.history-item.pos-center p{font-size:15px; line-height:1.62}
.history-item.pos-bottom{
  transform:translateY(238px) scale(0.84);
  opacity:.55;
  filter:blur(.2px);
}
.history-item.pos-hidden{
  transform:translateY(380px) scale(0.8);
  opacity:0;
  pointer-events:none;
}
.history-scroll-ui{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:16px 10px;
  border-left:1px solid #dfe8f7;
  background:rgba(255,255,255,0.55);
}
.history-btn{
  width:34px;
  height:34px;
  border-radius:50%;
  border:0;
  background:#ffffff;
  color:#9aa4b2;
  cursor:pointer;
  box-shadow:0 6px 14px rgba(0,0,0,0.12);
}
.history-track{
  position:relative;
  width:10px;
  flex:1;
  min-height:200px;
  border-radius:999px;
  background:#dbe8ff;
}
.history-thumb{
  position:absolute;
  left:1px;
  width:8px;
  height:56px;
  border-radius:999px;
  background:linear-gradient(180deg,#7aa8ff 0%,#2d6cff 100%);
  box-shadow:0 6px 16px rgba(45,108,255,.28);
  transition:top .45s ease;
}
.history-btn:active{transform:translateY(1px)}
.program-steps{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:28px;
  margin-top:10px;
}
.step-card{
  background:#ffffff;
  border-radius:18px;
  padding:28px;
  text-align:center;
  position:relative;
  border:1px solid #e0e0e0;
  box-shadow:0 10px 30px rgba(0,0,0,0.08);
  transition:transform .25s ease, box-shadow .4s ease, border-color .3s ease;
  cursor:pointer;
}
.step-tag{
  position:absolute;
  top:-24px;
  left:50%;
  transform:translateX(-50%);
  background:linear-gradient(135deg,#4b86ff,#2d6cff);
  color:#fff;
  padding:12px 28px;
  border-radius:999px;
  font-weight:800;
  font-size:21px;
  box-shadow:0 10px 24px rgba(45,108,255,0.5);
}
.step-card h3{
  margin-top:10px;
  font-size:20px;
  font-weight:800;
  margin-bottom:10px;
  color:#0d1b3f;
}
.step-card p{
  font-size:21px;
  line-height:1.5;
  color:#5a6b85;
  margin-top:28px;
  font-weight:800;
}
@media(max-width:900px){
  .program-steps{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:500px){
  .program-steps{grid-template-columns:1fr;}
}
.step-card:hover{
  transform:translateY(-6px);
  border-color:#e0e0e0;
  box-shadow:
    0 0 40px rgba(255,215,0,0.95),
    0 0 80px rgba(255,215,0,0.7),
    0 20px 40px rgba(0,0,0,0.12);
}
.hero-title {
  position: relative;
  min-height: 160px;
}

.hero-title .headline {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;

  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.hero-title .headline.active {
  opacity: 1;
  transform: translateY(0);
}

/* Teachers section ??stacked, scroll-triggered animations */
#강사 .hero-title {
  min-height: auto;
}
#강사 .hero-title .headline {
  position: relative;
  left: auto;
  top: auto;
  display: block;
}
#강사 .hero-title .headline-1 {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 1s ease, transform 1s ease;
}
#강사 .hero-title .headline-2 {
  opacity: 0;
  transform: none;
  transition: opacity 1s ease;
}
#강사 .hero-title .headline-1.active {
  opacity: 1;
  transform: translateX(0);
}
#강사 .hero-title .headline-2.active {
  opacity: 1;
  transform: none;
}
#강사 .hero-title .headline-2 {
  white-space: nowrap;
}

#강사 .teacher-feature-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e0a50 0%, #2d1070 100%);
  border: 1px solid rgba(196,181,253,0.15);
  box-shadow: 0 22px 36px rgba(45, 33, 22, 0.08);
}

#강사 .teacher-feature-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 26px 28px;
  height: 100%;
  align-items: stretch;
}

#강사 .teacher-feature-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#강사 .teacher-feature-divider {
  width: 2px;
  background: linear-gradient(180deg, rgba(196,181,253,0), rgba(196,181,253,0.4), rgba(196,181,253,0));
  border-radius: 999px;
  box-shadow: none;
}

#강사 .teacher-feature-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

#강사 .teacher-feature-desc {
  margin: 0;
  color: #c4b5fd;
  font-family: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', Arial, sans-serif;
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -0.02em;
  padding: 20px 0 0;
  border-top: 2px solid rgba(196,181,253,0.4);
}

#강사 .teacher-feature-nowrap {
  white-space: nowrap;
}

#강사 .teacher-feature-title {
  grid-column: 1 / -1;
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: #ffffff;
  font-family: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', Arial, sans-serif;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-align: center;
}

#강사 .teacher-feature-highlight {
  margin: 18px 0 26px;
  color: #2a5d89;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.4;
}

#강사 .teacher-feature-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}

#강사 .teacher-feature-list li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  color: #e2d9f3;
  font-family: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', Arial, sans-serif;
  font-size: clamp(17px, 1.45vw, 19px);
  font-weight: 700;
  line-height: 1.35;
  padding: 0 0 12px;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid rgba(196,181,253,0.2);
}

#강사 .teacher-feature-dot {
  width: 7px;
  height: 7px;
  background: #a855f7;
  border-radius: 50%;
  margin-right: 14px;
  flex-shrink: 0;
  box-shadow: 0 0 0 6px rgba(168,85,247,0.15);
}

#강사 .teacher-card-header {
  margin-bottom: 0;
  text-align: center;
}

#강사 .teacher-card {
  box-sizing: border-box;
}

#강사 .teacher-service-card {
  position: relative;
  overflow: visible;
  background: linear-gradient(135deg, #0d1545 0%, #1a1265 100%);
  border: 1px solid rgba(196,181,253,0.15);
  box-shadow: 0 22px 36px rgba(52, 37, 24, 0.1);
}

#강사 .teacher-card-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: #ffffff;
  font-family: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', Arial, sans-serif;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-align: center;
}

#강사 .teacher-card-sub {
  display: block;
  margin: 0 auto 4px;
  padding: 8px 0 6px;
  font-family: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', Arial, sans-serif;
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 700;
  color: #c4b5fd;
  line-height: 1.55;
  letter-spacing: -0.02em;
  text-align: center;
  border-top: 2px solid rgba(196,181,253,0.4);
  border-bottom: 1px solid rgba(196,181,253,0.2);
  width: 100%;
  box-sizing: border-box;
}


#강사 .filter-box {
  background: rgba(0,0,0,0.25);
  width: 70%;
  margin: 0 auto;
  padding: 8px 10px;
  border-radius: 16px;
  border: 1px solid rgba(196,181,253,0.2);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

#강사 .filter-box h4 {
  margin: 0 0 7px;
  font-size: 13px;
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-weight: 800;
  color: #f5eee7;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

#강사 .filter-box .filters {
  display: grid;
  gap: 6px;
  margin-bottom: 7px;
}

#강사 .filter-box select {
  width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 245, 233, 0.16);
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.14);
  color: #f5eee7;
  appearance: none;
}

#강사 .filter-box select option {
  color: #17120d;
  background: #f3ece4;
}

#강사 .filter-box button {
  width: 100%;
  padding: 7px 12px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: -0.02em;
}

#강사 .filter-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

#강사 #teacherMatchResult {
  margin-top: 12px;
  font-weight: 700;
  color: #f3f6fb;
  min-height: 24px;
}

#강사 .profile-showcase {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #220a48 0%, #380f68 100%);
  border: 1px solid rgba(196,181,253,0.15);
  box-shadow: 0 24px 40px rgba(0,0,0,0.35);
}

#강사 .teacher-profile-title {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  color: #f7efe6;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  letter-spacing: -0.05em;
  line-height: 0.96;
  text-align: center;
  text-transform: uppercase;
}

#강사 .teacher-profile-sub {
  margin: 12px auto 14px;
  padding: 16px 0 10px;
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 700;
  color: #f7efe6;
  line-height: 1.55;
  letter-spacing: -0.02em;
  text-align: center;
  border-top: 2px solid rgba(247, 239, 230, 0.82);
  border-bottom: 1px solid rgba(247, 239, 230, 0.18);
}

#강사 .teacher-image-roller {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(247, 239, 230, 0.12);
  background: transparent;
  box-shadow: none;
}

#강사 .teacher-image-roller.is-recommended {
  animation: teacherRollerPulse 1s ease;
}

#강사 .tir-track {
  display: flex;
  align-items: center;
  height: 100%;
  transition: transform 0.5s ease;
  will-change: transform;
}

#강사 .tir-item {
  flex-shrink: 0;
  width: 20%;       /* 5장 × 20% = 전체 너비 */
  height: 75%;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0.45;
  transform: scale(0.82);
  transform-origin: center center;
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
}

#강사 .tir-item.tir-active {
  opacity: 1;
  transform: scale(1.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  z-index: 2;
}

#강사 .tir-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#강사 .teacher-video-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #0a1a40 0%, #160a50 100%);
  border: 1px solid rgba(196,181,253,0.15);
  box-shadow: 0 26px 42px rgba(0,0,0,0.4);
}

#강사 .teacher-video-title {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: #ffffff;
  font-family: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', Arial, sans-serif;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-align: center;
}

#강사 .teacher-video-sub {
  margin: 0 0 16px;
  padding: 16px 0 10px;
  font-family: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', Arial, sans-serif;
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 700;
  color: #c4b5fd;
  line-height: 1.55;
  letter-spacing: -0.02em;
  text-align: center;
  border-top: 2px solid rgba(196,181,253,0.4);
  border-bottom: 1px solid rgba(196,181,253,0.2);
}

#강사 .teacher-video {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: #000;
  border: 1px solid rgba(247, 239, 230, 0.14);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.3);
  display: block;
}

#강사 .teacher-video-sound-btn {
  margin-top: 12px;
  align-self: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(247, 239, 230, 0.3);
  background: rgba(247, 239, 230, 0.12);
  color: #f7efe6;
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

#강사 .teacher-video-sound-btn[aria-pressed="true"] {
  background: #f3ece4;
  color: #17120d;
}

@keyframes teacherRollerPulse {
  0% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 12px 24px rgba(15, 23, 42, 0.14);
  }
  45% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 0 4px rgba(45, 108, 255, 0.24), 0 16px 30px rgba(45, 108, 255, 0.28);
  }
  100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 12px 24px rgba(15, 23, 42, 0.14);
  }
}
.he-solution-wrap{
  display:flex;
  align-items:center;
  gap:56px;
  padding:100px 5%;
  background:#f5f3ee;
}

.he-solution-text{
  width:38%;
}

.he-sol-num{
  font-size:18px;
  font-style:italic;
  color:#2457d6;
  margin-bottom:18px;
}

.he-solution-text h2{
  margin:0 0 18px;
  font-size:54px;
  line-height:1.05;
  color:#0f172a;
  font-weight:600;
}

.he-solution-text p{
  margin:0;
  font-size:17px;
  line-height:1.8;
  color:#475569;
  max-width:520px;
}

.he-solution-grid{
  width:62%;
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 180px 180px 180px;
  gap:18px;
  transition:all .45s ease;
}

.he-sol-item{
  position:relative;
  overflow:hidden;
  border-radius:26px;
  cursor:pointer;
  background:#dfe7f2;
  transition:
    transform .45s ease,
    opacity .35s ease,
    filter .35s ease,
    box-shadow .35s ease;
}

.he-sol-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .5s ease;
}

.he-sol-item::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.38), rgba(0,0,0,.08));
  pointer-events:none;
}

.he-sol-item span{
  position:absolute;
  left:20px;
  bottom:18px;
  z-index:2;
  color:#fff;
  font-size:22px;
  font-weight:600;
  line-height:1.2;
}

/* 기본 배치 */
.he-sol-item:nth-child(1){ grid-column:1 / 4; grid-row:1; }
.he-sol-item:nth-child(2){ grid-column:1; grid-row:2; }
.he-sol-item:nth-child(3){ grid-column:2 / 4; grid-row:2; }
.he-sol-item:nth-child(4){ grid-column:1 / 3; grid-row:3; }
.he-sol-item:nth-child(5){ grid-column:3; grid-row:3; }

/* 활성 카드 확대 */
.he-solution-grid.active-1 .he-sol-item:nth-child(1),
.he-solution-grid.active-2 .he-sol-item:nth-child(2),
.he-solution-grid.active-3 .he-sol-item:nth-child(3),
.he-solution-grid.active-4 .he-sol-item:nth-child(4),
.he-solution-grid.active-5 .he-sol-item:nth-child(5){
  grid-column:1 / 4 !important;
  grid-row:1 / 4 !important;
  z-index:5;
  box-shadow:0 24px 60px rgba(15, 23, 42, 0.18);
}

.he-solution-grid.active-1 .he-sol-item:not(:nth-child(1)),
.he-solution-grid.active-2 .he-sol-item:not(:nth-child(2)),
.he-solution-grid.active-3 .he-sol-item:not(:nth-child(3)),
.he-solution-grid.active-4 .he-sol-item:not(:nth-child(4)),
.he-solution-grid.active-5 .he-sol-item:not(:nth-child(5)){
  opacity:.18;
  transform:scale(.92);
  filter:blur(1px);
}

.he-sol-item:hover img{
  transform:scale(1.04);
}

/* 스크롤 등장 */
.fade-up{
  opacity:0;
  transform:translateY(32px);
  transition:opacity .8s ease, transform .8s ease;
}

.fade-up.show{
  opacity:1;
  transform:translateY(0);
}

/* 반응형 */
@media (max-width: 1100px){
  .he-solution-wrap{
    flex-direction:column;
    align-items:flex-start;
  }

  .he-solution-text,
  .he-solution-grid{
    width:100%;
  }
}

@media (max-width: 768px){
  .he-solution-text h2{
    font-size:34px;
  }

  .he-solution-grid{
    grid-template-columns:1fr 1fr;
    grid-template-rows:180px 180px 180px;
  }

  .he-sol-item:nth-child(1){ grid-column:1 / 3; grid-row:1; }
  .he-sol-item:nth-child(2){ grid-column:1; grid-row:2; }
  .he-sol-item:nth-child(3){ grid-column:2; grid-row:2; }
  .he-sol-item:nth-child(4){ grid-column:1; grid-row:3; }
  .he-sol-item:nth-child(5){ grid-column:2; grid-row:3; }

  .he-sol-item span{
    font-size:18px;
  }
}

/* ===== 성과 스크롤 스택 ===== */
#성과 {
  height: 550vh;
  position: relative;
  padding: 0;
  scroll-margin-top: 80px;
}

.case-sticky-outer {
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow: hidden;
}

.case-sticky-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

/* 성과 섹션 전용 헤드 */
.case-section-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  text-align: center;
  padding: 12px 24px 16px;
  background: linear-gradient(to bottom, rgba(8,12,32,0.96) 0%, rgba(8,12,32,0.85) 60%, transparent 100%);
  pointer-events: none;
}

.case-section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.case-section-head p {
  margin: 0;
  font-size: clamp(15px, 1.8vw, 22px);
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.stack-card {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(100px, 13vh, 150px) 60px clamp(16px, 2vh, 30px);
  transform: translateY(100%);
  opacity: 0;
  will-change: transform, opacity;
  overflow-y: hidden;
}

.stack-card[data-card="0"] {
  transform: translateY(0);
  opacity: 1;
}

.stack-card-inner {
  max-width: 860px;
  width: 100%;
  color: #fff;
}

.stack-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.stack-label {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.18);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.stack-company {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
}

.stack-headline {
  font-size: clamp(22px, 3.2vw, 40px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

.stack-headline em {
  color: #60a5fa;
  font-style: normal;
}

/* before/after 점수 */
.stack-score-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}

.stack-score-box {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 18px 32px;
  text-align: center;
  min-width: 120px;
}

.stack-score-box small {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
}

.stack-score-box strong {
  display: block;
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}

.stack-score-box span {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

.stack-score-after strong { color: #60a5fa; }

.stack-arrow {
  font-size: 28px;
  color: rgba(255,255,255,0.35);
}

/* 큰 단일 숫자 (카드 3–5) */
.stack-big-metric {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.stack-big-metric strong {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 900;
  line-height: 1;
}

.stack-big-metric span {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
}

/* 지표 3개 */
.stack-metrics {
  display: flex;
  gap: 36px;
  margin-bottom: 12px;
}

.stack-metric { text-align: left; }

.stack-metric strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: #60a5fa;
}

.stack-metric span {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

/* 임팩트 목록 */
.stack-impacts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.stack-impact-item {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  padding-left: 16px;
  position: relative;
}

.stack-impact-item::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.35);
}

/* 인용 */
.stack-quote {
  position: relative;
  border-left: 4px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
  border-radius: 0 12px 12px 0;
  padding: 10px 16px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
  font-style: italic;
  font-weight: 500;
  margin: 0;
}

.stack-quote::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 16px;
  font-size: 60px;
  color: rgba(255,255,255,0.2);
  font-style: normal;
  line-height: 1;
}

/* 우측 도트 인디케이터 */
.stack-indicator {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}

.stack-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: background 0.3s, transform 0.3s;
}

.stack-dot.active {
  background: #fff;
  transform: scale(1.4);
}

@media (max-width: 768px) {
  .stack-card { padding: 30px 24px; }
  .stack-score-row { flex-wrap: wrap; }
  .stack-metrics { gap: 20px; }
  .stack-indicator { right: 14px; }
}

/* ===== 특징 스크롤 강조형 카드 스택 ===== */
#특징 {
  height: 500vh;
  position: relative;
  padding: 0;
  scroll-margin-top: 80px;
}

.diff-sticky-outer {
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow: hidden;
  background: #060d1f;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diff-sticky-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 배경 장식 텍스트 */
.diff-bg-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(100px, 20vw, 220px);
  font-weight: 900;
  color: rgba(100,150,255,0.07);
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* 카드 공통 */
.diff-card-stack {
  position: absolute;
  width: 75%;
  max-width: 820px;
  background: linear-gradient(135deg, #0d1b3f 0%, #162d5e 100%);
  border: 1px solid rgba(100,150,255,0.15);
  border-radius: 28px;
  padding: 36px 52px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  transition: none;
  will-change: transform, opacity;
}

/* 카드별 따뜻한 파스텔 색상 */
.diff-card-stack[data-diff="0"] {
  opacity: 1;
  transform: translateY(0) scale(1);
  background: linear-gradient(135deg, #ffe8d6 0%, #ffd0b5 100%);
}
.diff-card-stack[data-diff="1"] {
  background: linear-gradient(135deg, #ffd6e8 0%, #ffb8d2 100%);
}
.diff-card-stack[data-diff="2"] {
  background: linear-gradient(135deg, #ead6ff 0%, #d4b0ff 100%);
}
.diff-card-stack[data-diff="3"] {
  background: linear-gradient(135deg, #fff4c0 0%, #ffe87a 100%);
}
.diff-card-stack[data-diff="4"] {
  background: linear-gradient(135deg, #d6f5e8 0%, #aaecd0 100%);
}

.diff-card-stack-inner {
  position: relative;
}

/* 숫자 */
.diff-num {
  display: block;
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 900;
  line-height: 1;
  color: rgba(0,0,0,0.07);
  letter-spacing: -0.04em;
  margin-bottom: -10px;
  position: relative;
  z-index: 0;
}

/* 활성 카드 숫자 강조 */
.diff-card-stack.diff-active .diff-num {
  color: rgba(0,0,0,0.12);
}

/* 제목 */
.diff-title {
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 900;
  color: #1a1a2e;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 10px;
  position: relative;
  z-index: 1;
}

/* 소제목 */
.diff-sub {
  font-size: clamp(15px, 1.8vw, 20px);
  color: #5a4a7a;
  font-weight: 600;
  margin: 0 0 12px;
}

/* 설명 */
.diff-desc {
  font-size: clamp(15px, 1.6vw, 19px);
  color: #4a4a6a;
  line-height: 1.7;
  margin: 0;
}

/* 활성 카드 강조 */
.diff-card-stack.diff-active {
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.06);
}

/* 도트 인디케이터 */
.diff-dots {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}

.diff-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background 0.3s, transform 0.3s, height 0.3s;
}

.diff-dot.active {
  background: #7db1ff;
  transform: scaleY(1.5);
  border-radius: 4px;
  height: 16px;
}

@media (max-width: 768px) {
  .diff-card-stack { width: 90%; padding: 36px 28px; }
  .diff-dots { right: 14px; }
}

/* 특징 섹션 헤드 */
.diff-section-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
  pointer-events: none;
  width: 100%;
  background: #060d1f;
  padding: 12px 24px 10px;
}

.diff-section-title {
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0 0 6px;
}

.diff-section-sub {
  font-size: clamp(14px, 1.7vw, 20px);
  color: #7db1ff;
  font-weight: 600;
  margin: 0;
}


/* Section keyword color */
.sec-kw { font-style: normal; }

/* Solutions title/desc typography */
.solutions-title { font-size: clamp(20px, 2.2vw, 28px); font-weight: 900; letter-spacing: -0.04em; }
.solutions-desc { font-size: clamp(28px, 4.5vw, 52px); font-weight: 700; }

/* Section padding fixes */
#운영 { padding: 48px 0; }
#자료 { padding: 48px 0; }
#교육문의 { padding: 48px 0; }
#강사지원 { scroll-margin-top: 80px; padding-top: 20px; }

/* 프로그램·운영·자료·교육문의·강사지원 제목/부제목 크기 = 특징 섹션과 동일 */
#프로그램 .section-head h2,
#운영 .section-head h2,
#자료 .section-head h2,
#교육문의 .section-head h2,
#강사지원 .section-head h2 {
  font-size: clamp(34px, 4.5vw, 52px) !important;
}
#프로그램 .section-head p,
#운영 .section-head p,
#자료 .section-head p,
#교육문의 .section-head p,
#강사지원 .section-head p {
  font-size: clamp(20px, 2.7vw, 31px) !important;
}

/* ===== 뷰포트 높이 1000px 이하 대응 ===== */
@media (max-height: 1000px) {
  .section { padding: 40px 0; }
  .section-head { margin-bottom: 20px; }
  .section-head h2 { font-size: clamp(22px, 3vw, 38px); }
  .section-head p { font-size: clamp(14px, 1.8vw, 22px); }
  .history-intro, .timeline, .references-panel,
  .teacher-panel, .system-panel, .contact-panel, .apply-panel {
    min-height: 380px;
  }
  #연혁 .history-intro,
  #연혁 .references-panel {
    height: clamp(320px, calc(100vh - 280px), 440px);
    min-height: 320px;
  }
  #운영 { padding: 32px 0; }
  #교육문의 { padding: 32px 0; }
  #강사지원 { padding-top: 12px; }
}

/* ===== 뷰포트 높이 700px 이하 대응 (작은 노트북/브라우저 줄인 경우) ===== */
@media (max-height: 700px) {
  .stack-card {
    padding-top: 80px !important;
    padding-bottom: 10px !important;
  }
  .stack-headline { font-size: 20px !important; margin-bottom: 8px !important; }
  .stack-big-metric { margin-bottom: 8px !important; }
  .stack-big-metric strong { font-size: 32px !important; }
  .stack-score-box strong { font-size: 28px !important; }
  .stack-score-row { margin-bottom: 8px !important; }
  .stack-metrics { margin-bottom: 6px !important; }
  .stack-impacts { margin-bottom: 6px !important; gap: 2px !important; }
  .stack-quote { font-size: 13px !important; padding: 8px 12px !important; line-height: 1.5 !important; }
  .diff-card-stack { padding: 24px 32px !important; }
  .diff-num { font-size: 36px !important; margin-bottom: -6px !important; }
  .diff-title { font-size: 22px !important; margin-bottom: 6px !important; }
  .diff-sub { font-size: 14px !important; margin-bottom: 8px !important; }
  .diff-desc { font-size: 14px !important; }
}

/* Book cover image on program cards */
.hi-book-cover-wrap {
  position: absolute;
  top: 12px;
  right: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
}
.hi-book-cover {
  width: 146px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  object-fit: contain;
  display: block;
}
.hi-buy-btn {
  display: block;
  width: 100%;
  padding: 2px 0;
  background: #aaaaaa;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  letter-spacing: -0.02em;
  box-shadow: none;
  transition: background 0.2s;
}
.hi-buy-btn:hover { background: #888888; }
.hi-card { position: relative; }
.hi-course-capsule { font-size: 11px !important; padding: 3px 10px !important; }

