/* ===== TOKENS ===== */
:root {
  --navy: #0A2463;
  --navy-dark: #071840;
  --blue: #1E5EBF;
  --gold: #E8A020;
  --gold-light: #F5C562;
  --cream: #FAFAF7;
  --gray-50: #F7F8FA;
  --gray-100: #EEF0F5;
  --gray-200: #D8DCE8;
  --gray-400: #8892A8;
  --gray-600: #4A5568;
  --gray-800: #1A202C;
  --white: #FFFFFF;
  --red: #E53E3E;
  --green: #2D8A4E;
  --teal: #0891B2;

  --font-display: 'Noto Serif KR', 'Georgia', serif;
  --font-body: 'Noto Sans KR', 'Apple SD Gothic Neo', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 20px rgba(10,36,99,0.10);
  --shadow-lg: 0 12px 40px rgba(10,36,99,0.18);

  --max-w: 1160px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--gray-800); background: var(--white); line-height: 1.7; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ===== UTILITY ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.badge { display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.badge--gold { background: var(--gold-light); color: var(--navy-dark); }
.badge--navy { background: var(--navy); color: var(--white); }
.badge--green { background: #D4EDDA; color: var(--green); }
.section-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.section-title { font-family: var(--font-display); font-size: clamp(24px, 4vw, 38px); font-weight: 700; color: var(--navy); line-height: 1.25; margin-bottom: 16px; }
.section-subtitle { font-size: 16px; color: var(--gray-600); max-width: 600px; }
.section { padding: 80px 0; }
.section--alt { background: var(--gray-50); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 50px; font-weight: 700; font-size: 15px; transition: all .2s; cursor: pointer; }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--gold { background: var(--gold); color: var(--navy-dark); }
.btn--gold:hover { background: #d4911a; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--outline { border: 2px solid var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--sm { padding: 8px 18px; font-size: 13px; }

/* ===== EDIT MODE ===== */
body.edit-mode [data-editable] { outline: 2px dashed var(--gold); border-radius: 4px; cursor: text; transition: outline .15s; }
body.edit-mode [data-editable]:hover { outline-color: var(--blue); background: rgba(30,94,191,.04); }
.edit-toolbar { display: none; position: fixed; bottom: 24px; right: 24px; z-index: 9999; flex-direction: column; gap: 10px; align-items: flex-end; }
.edit-toolbar.visible { display: flex; }
.edit-fab { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: var(--shadow-lg); transition: transform .2s; }
.edit-fab:hover { transform: scale(1.08); }
.edit-fab--toggle { background: var(--navy); color: var(--white); }
.edit-fab--publish { background: var(--green); color: var(--white); }
.edit-fab--label { font-size: 12px; font-weight: 700; background: var(--white); color: var(--gray-800); border: 1px solid var(--gray-200); padding: 4px 10px; border-radius: 50px; box-shadow: var(--shadow-sm); }

/* ===== HEADER / NAV ===== */
#header { position: sticky; top: 0; z-index: 900; background: rgba(10,36,99,.97); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.nav__logo { display: flex; flex-direction: column; }
.nav__logo-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--white); letter-spacing: -.01em; }
.nav__logo-sub { font-size: 10px; color: var(--gold); letter-spacing: .12em; text-transform: uppercase; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { color: rgba(255,255,255,.82); font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 8px; transition: all .15s; }
.nav__links a:hover, .nav__links a.active { color: var(--white); background: rgba(255,255,255,.1); }
.nav__cta { background: var(--gold); color: var(--navy-dark); padding: 9px 20px; border-radius: 50px; font-size: 14px; font-weight: 700; transition: all .2s; white-space: nowrap; }
.nav__cta:hover { background: var(--gold-light); }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.nav__hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all .25s; }
.nav__mobile { display: none; background: var(--navy-dark); padding: 16px 20px 24px; }
.nav__mobile a { display: block; color: rgba(255,255,255,.85); font-size: 15px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.nav__mobile a:last-child { border-bottom: none; }

/* ===== HERO ===== */
#hero { background: linear-gradient(135deg, var(--navy-dark) 0%, #0d3080 55%, #1240a8 100%); color: var(--white); padding: 80px 0 100px; position: relative; overflow: hidden; }
#hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; }
.hero__eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.hero__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(1.4)} }
.hero__eyebrow-text { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--gold); text-transform: uppercase; }
.hero__title { font-family: var(--font-display); font-size: clamp(28px, 4.5vw, 52px); font-weight: 700; line-height: 1.18; margin-bottom: 24px; }
.hero__title em { font-style: normal; color: var(--gold); }
.hero__desc { font-size: 17px; color: rgba(255,255,255,.78); line-height: 1.8; margin-bottom: 36px; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero__stat { text-align: center; }
.hero__stat-num { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--gold); }
.hero__stat-label { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 2px; }
.hero__visual { display: flex; flex-direction: column; gap: 16px; }
.score-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 24px; backdrop-filter: blur(8px); }
.score-card__title { font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.score-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.score-row:last-child { border-bottom: none; }
.score-row__school { font-size: 14px; color: rgba(255,255,255,.85); font-weight: 500; }
.score-row__score { display: flex; gap: 10px; }
.score-chip { padding: 3px 10px; border-radius: 50px; font-size: 12px; font-weight: 700; }
.score-chip--sat { background: rgba(232,160,32,.2); color: var(--gold); }
.score-chip--ap { background: rgba(45,138,78,.2); color: #6EE7A0; }
.score-chip--gpa { background: rgba(8,145,178,.2); color: #7DD3FC; }

/* ===== BLOG HERO ===== */
#blog-hero { background: linear-gradient(135deg, #0A2463 0%, #1540a0 100%); padding: 60px 0 40px; color: var(--white); }
.blog-hero__badge { display: inline-block; background: var(--gold); color: var(--navy-dark); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 14px; border-radius: 50px; margin-bottom: 16px; }
.blog-hero__title { font-family: var(--font-display); font-size: clamp(22px, 3.5vw, 40px); font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.blog-hero__meta { font-size: 13px; color: rgba(255,255,255,.6); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.blog-hero__meta span { display: flex; align-items: center; gap: 5px; }

/* ===== ARTICLE ===== */
.article-wrap { display: grid; grid-template-columns: 1fr 280px; gap: 40px; padding: 60px 0; align-items: start; }
.article { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-100); overflow: hidden; }
.article__body { padding: 40px; }
.article__body h2 { font-family: var(--font-display); font-size: 22px; color: var(--navy); margin: 36px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); }
.article__body h3 { font-size: 18px; color: var(--navy); margin: 28px 0 12px; font-weight: 700; }
.article__body p { margin-bottom: 18px; color: var(--gray-600); line-height: 1.85; }
.article__body ul, .article__body ol { margin: 0 0 18px 20px; color: var(--gray-600); }
.article__body ul { list-style: disc; }
.article__body ol { list-style: decimal; }
.article__body li { margin-bottom: 8px; line-height: 1.7; }
.article__body strong { color: var(--gray-800); font-weight: 700; }
.article__body .highlight-box { background: linear-gradient(135deg, #EEF3FF, #F0F7FF); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; margin: 24px 0; }
.article__body .highlight-box p { margin-bottom: 0; color: var(--gray-700); }
.article__body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.article__body th { background: var(--navy); color: var(--white); padding: 12px 16px; text-align: left; font-weight: 600; font-size: 13px; }
.article__body td { padding: 11px 16px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); }
.article__body tr:nth-child(even) td { background: var(--gray-50); }
.article__body .comparison-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin: 24px 0; }
.article__body .comparison-card { border: 2px solid var(--gray-200); border-radius: var(--radius); padding: 20px; }
.article__body .comparison-card.best { border-color: var(--gold); background: #FFFBF0; }
.article__body .comparison-card h4 { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.article__body .comparison-card .tag { font-size: 11px; background: var(--navy); color: var(--white); padding: 2px 8px; border-radius: 50px; margin-bottom: 10px; display: inline-block; }
.article__body .comparison-card.best .tag { background: var(--gold); color: var(--navy-dark); }
.article__body .comparison-card ul { list-style: none; margin: 0; }
.article__body .comparison-card li { font-size: 13px; color: var(--gray-600); padding: 5px 0; border-bottom: 1px solid var(--gray-100); display: flex; gap: 8px; }
.article__body .comparison-card li:last-child { border-bottom: none; }
.article__body .faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.article__body .faq-q { padding: 16px 20px; font-weight: 700; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: var(--gray-50); }
.article__body .faq-a { padding: 16px 20px; color: var(--gray-600); font-size: 15px; line-height: 1.8; display: none; background: var(--white); }
.article__body .faq-item.open .faq-a { display: block; }
.article__body .verdict-box { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 28px; margin: 28px 0; }
.article__body .verdict-box h3 { color: var(--gold); margin: 0 0 12px; }
.article__body .verdict-box p { color: rgba(255,255,255,.85); margin: 0; }
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 24px; }
.sidebar-card__title { font-size: 14px; font-weight: 800; color: var(--navy); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--gray-100); }
.sidebar-toc a { display: block; font-size: 14px; color: var(--gray-600); padding: 7px 0; border-bottom: 1px solid var(--gray-100); transition: color .15s; }
.sidebar-toc a:last-child { border-bottom: none; }
.sidebar-toc a:hover { color: var(--navy); }
.sidebar-toc a::before { content: '→ '; color: var(--gold); font-weight: 700; }
.sidebar-cta { background: var(--navy); color: var(--white); }
.sidebar-cta .sidebar-card__title { color: var(--gold); border-color: rgba(255,255,255,.1); }
.sidebar-cta p { font-size: 14px; color: rgba(255,255,255,.78); margin-bottom: 16px; line-height: 1.7; }
.sidebar-cta-btn { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 50px; font-size: 14px; font-weight: 700; transition: all .2s; width: 100%; justify-content: center; margin-bottom: 10px; }
.sidebar-cta-btn--kakao { background: #FEE500; color: #3C1E1E; }
.sidebar-cta-btn--naver { background: #03C75A; color: var(--white); }
.sidebar-cta-btn--phone { background: rgba(255,255,255,.1); color: var(--white); border: 1px solid rgba(255,255,255,.2); }

/* ===== ABOUT SECTION ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text .section-title { margin-bottom: 20px; }
.about-text p { color: var(--gray-600); margin-bottom: 16px; line-height: 1.85; }
.about-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.about-features { display: flex; flex-direction: column; gap: 16px; }
.about-feature { display: flex; gap: 16px; align-items: flex-start; }
.about-feature__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.about-feature__text h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.about-feature__text p { font-size: 14px; color: var(--gray-600); margin: 0; }
.campus-cards { display: flex; flex-direction: column; gap: 16px; }
.campus-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px 24px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
.campus-card:hover { box-shadow: var(--shadow); }
.campus-card__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.campus-card__name { font-weight: 700; color: var(--navy); font-size: 16px; }
.campus-card__access { font-size: 13px; color: var(--gray-400); margin-top: 2px; }

/* ===== EXAMS ===== */
.exam-tabs { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.exam-tab { padding: 10px 24px; border-radius: 50px; font-weight: 700; font-size: 14px; border: 2px solid var(--gray-200); color: var(--gray-600); transition: all .2s; cursor: pointer; }
.exam-tab.active, .exam-tab:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.exam-panel { display: none; }
.exam-panel.active { display: block; }
.exam-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.exam-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); padding: 28px; box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
.exam-card:hover { box-shadow: var(--shadow); }
.exam-card__tag { display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.exam-card__tag--sat { background: #EBF4FF; color: #1E5EBF; }
.exam-card__tag--act { background: #FFF3E0; color: #E65100; }
.exam-card__tag--ap { background: #E8F5E9; color: #2D7D32; }
.exam-card__tag--ib { background: #F3E5F5; color: #7B1FA2; }
.exam-card__name { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.exam-card__desc { font-size: 14px; color: var(--gray-600); line-height: 1.75; margin-bottom: 18px; }
.exam-card__stats { display: flex; flex-direction: column; gap: 8px; }
.exam-stat-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 7px 0; border-bottom: 1px solid var(--gray-100); }
.exam-stat-row:last-child { border-bottom: none; }
.exam-stat-row span:first-child { color: var(--gray-500); }
.exam-stat-row span:last-child { font-weight: 700; color: var(--navy); }

/* ===== COLLEGE TABLE ===== */
.college-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); }
.college-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.college-table thead th { background: var(--navy); color: var(--white); padding: 14px 18px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.college-table tbody tr { border-bottom: 1px solid var(--gray-100); transition: background .15s; }
.college-table tbody tr:hover { background: var(--gray-50); }
.college-table td { padding: 13px 18px; color: var(--gray-700); vertical-align: middle; }
.college-table td:first-child { font-weight: 700; color: var(--navy); }
.rank-badge { display: inline-block; background: var(--navy); color: var(--white); font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 50px; margin-right: 8px; }
.score-range { font-family: var(--font-mono); font-size: 13px; color: var(--blue); font-weight: 700; }
.req-chip { display: inline-block; font-size: 11px; padding: 3px 9px; border-radius: 50px; font-weight: 700; margin: 2px; }
.req-chip--req { background: #FFEBE8; color: var(--red); }
.req-chip--rec { background: #E8F5E9; color: var(--green); }
.req-chip--opt { background: var(--gray-100); color: var(--gray-600); }

/* ===== CURRICULUM ===== */
.curriculum-tabs { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.curriculum-tab { padding: 10px 22px; border-radius: 50px; font-weight: 700; font-size: 14px; border: 2px solid var(--gray-200); color: var(--gray-600); cursor: pointer; transition: all .2s; }
.curriculum-tab.active { border-color: var(--gold); background: var(--gold); color: var(--navy-dark); }
.curriculum-panel { display: none; }
.curriculum-panel.active { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.curriculum-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 28px; }
.curriculum-card__icon { font-size: 32px; margin-bottom: 14px; }
.curriculum-card__level { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.curriculum-card__title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.curriculum-card__topics { display: flex; flex-direction: column; gap: 6px; }
.curriculum-card__topic { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gray-600); }
.curriculum-card__topic::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ===== CLASS TYPES ===== */
.class-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.class-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.class-card__header { padding: 28px; }
.class-card--group .class-card__header { background: var(--navy); }
.class-card--private .class-card__header { background: linear-gradient(135deg, #1240a8, #0d3080); }
.class-card--online .class-card__header { background: linear-gradient(135deg, #0891B2, #0A2463); }
.class-card__emoji { font-size: 36px; margin-bottom: 14px; }
.class-card__type { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.class-card__name { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.class-card__tagline { font-size: 14px; color: rgba(255,255,255,.75); }
.class-card__body { background: var(--white); border: 1px solid var(--gray-200); border-top: none; padding: 24px; }
.class-card__features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.class-card__feature { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--gray-600); }
.class-card__feature::before { content: '→'; color: var(--gold); font-weight: 700; margin-top: 1px; flex-shrink: 0; }

/* ===== GRADES ===== */
.grade-timeline { display: flex; flex-direction: column; gap: 0; }
.grade-item { display: grid; grid-template-columns: 140px 1fr; }
.grade-item__label { background: var(--navy); color: var(--white); padding: 24px 20px; display: flex; flex-direction: column; justify-content: center; }
.grade-item:first-child .grade-item__label { border-radius: var(--radius) 0 0 0; }
.grade-item:last-child .grade-item__label { border-radius: 0 0 0 var(--radius); }
.grade-item__level { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.grade-item__grade { font-size: 16px; font-weight: 700; color: var(--white); }
.grade-item__content { background: var(--white); border: 1px solid var(--gray-200); border-left: none; padding: 24px 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: center; }
.grade-item:first-child .grade-item__content { border-radius: 0 var(--radius) 0 0; }
.grade-item:last-child .grade-item__content { border-radius: 0 0 var(--radius) 0; }
.grade-subject { font-size: 13px; color: var(--gray-700); }
.grade-subject strong { color: var(--navy); font-weight: 700; display: block; font-size: 14px; margin-bottom: 2px; }

/* ===== REVIEWS ===== */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.review-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); position: relative; }
.review-card::before { content: '"'; position: absolute; top: -12px; left: 24px; font-size: 64px; color: var(--gold); font-family: var(--font-display); line-height: 1; }
.review-stars { display: flex; gap: 3px; margin-bottom: 14px; }
.review-star { color: var(--gold); font-size: 16px; }
.review-text { font-size: 15px; color: var(--gray-700); line-height: 1.8; margin-bottom: 20px; font-style: italic; }
.review-footer { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; flex-shrink: 0; }
.review-meta { font-size: 13px; }
.review-name { font-weight: 700; color: var(--navy); }
.review-detail { color: var(--gray-400); margin-top: 2px; }
.review-result { display: inline-block; background: #E8F5E9; color: var(--green); font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 50px; margin-top: 6px; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-buttons { display: flex; flex-direction: column; gap: 14px; }
.contact-btn { display: flex; align-items: center; gap: 16px; padding: 18px 24px; border-radius: var(--radius); font-size: 15px; font-weight: 700; transition: all .2s; border: 2px solid transparent; }
.contact-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-btn__icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.contact-btn__text { flex: 1; }
.contact-btn__label { font-size: 12px; font-weight: 600; opacity: .7; display: block; margin-bottom: 2px; }
.contact-btn--kakao { background: #FEE500; color: #3C1E1E; }
.contact-btn--kakao .contact-btn__icon { background: rgba(0,0,0,.1); }
.contact-btn--naver { background: #03C75A; color: var(--white); }
.contact-btn--naver .contact-btn__icon { background: rgba(0,0,0,.15); }
.contact-btn--phone { background: var(--navy); color: var(--white); }
.contact-btn--phone .contact-btn__icon { background: rgba(255,255,255,.15); }
.contact-btn--free { background: linear-gradient(135deg, var(--gold), #F5A020); color: var(--navy-dark); }
.contact-btn--free .contact-btn__icon { background: rgba(0,0,0,.1); }
.contact-info-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-info-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px 24px; }
.contact-info-card__title { font-weight: 800; color: var(--navy); font-size: 15px; margin-bottom: 6px; }
.contact-info-card__text { font-size: 14px; color: var(--gray-600); line-height: 1.7; }

/* ===== BLOG ===== */
.blog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.blog-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.blog-card__thumb { height: 180px; background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); display: flex; align-items: center; justify-content: center; font-size: 48px; position: relative; overflow: hidden; }
.blog-card__thumb::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E"); }
.blog-card__cat { position: absolute; top: 14px; left: 14px; }
.blog-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card__title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.4; margin: 8px 0 12px; }
.blog-card__excerpt { font-size: 14px; color: var(--gray-600); line-height: 1.75; flex: 1; }
.blog-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--gray-100); }
.blog-card__date { font-size: 12px; color: var(--gray-400); }
.blog-card__action { font-size: 13px; color: var(--blue); font-weight: 700; display: flex; align-items: center; gap: 4px; }
.blog-add-btn { display: flex; align-items: center; gap: 8px; padding: 12px 24px; background: var(--navy); color: var(--white); border-radius: 50px; font-weight: 700; font-size: 14px; cursor: pointer; transition: all .2s; }
.blog-add-btn:hover { background: var(--navy-dark); box-shadow: var(--shadow); }
.blog-del-btn { position: absolute; top: 10px; right: 10px; background: var(--red); color: var(--white); border: none; border-radius: 50%; width: 28px; height: 28px; font-size: 14px; cursor: pointer; display: none; align-items: center; justify-content: center; z-index: 2; font-weight: 700; }
body.edit-mode .blog-del-btn { display: flex; }
.blog-card { position: relative; }

/* ===== FOOTER ===== */
#footer { background: var(--navy-dark); color: rgba(255,255,255,.65); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.footer-logo-sub { font-size: 11px; color: var(--gold); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-desc { font-size: 14px; line-height: 1.8; max-width: 280px; }
.footer-col h4 { font-size: 13px; font-weight: 800; color: var(--white); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,.6); padding: 6px 0; transition: color .15s; }
.footer-col a:hover { color: var(--gold); }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.08); margin-bottom: 24px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.footer-bottom-right { display: flex; gap: 20px; }
.footer-bottom-right a { color: rgba(255,255,255,.5); transition: color .15s; font-size: 12px; }
.footer-bottom-right a:hover { color: var(--white); }

/* ===== FILE INPUT (hidden) ===== */
#blog-file-input { display: none; }

/* ===== MODAL ===== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 9000; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: var(--radius-lg); max-width: 500px; width: 100%; padding: 36px; box-shadow: var(--shadow-lg); }
.modal h3 { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.modal p { color: var(--gray-600); margin-bottom: 24px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .class-cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .article-wrap { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .article__body .comparison-grid { grid-template-columns: 1fr; }
  .grade-item { grid-template-columns: 110px 1fr; }
  .grade-item__content { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero__stats { gap: 20px; }
  .blog-grid { grid-template-columns: 1fr; }
  .college-table { font-size: 13px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .article__body { padding: 24px 18px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* ===== ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  .fade-in { opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s; }
  .fade-in.visible { opacity: 1; transform: none; }
}

/* ===== ADDED: BREADCRUMB ===== */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--gray-400); padding: 16px 0; }
.breadcrumb a { color: var(--gray-600); }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumb span[aria-current] { color: var(--navy); font-weight: 600; }
.breadcrumb .sep { color: var(--gray-200); }

/* ===== ADDED: PAGE HERO (sub-pages) ===== */
.page-hero { background: linear-gradient(135deg, var(--navy-dark) 0%, #0d3080 60%, #1240a8 100%); color: var(--white); padding: 52px 0 60px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.page-hero__inner { position: relative; }
.page-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 6px 14px; border-radius: 50px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--gold); text-transform: uppercase; margin-bottom: 18px; }
.page-hero__title { font-family: var(--font-display); font-size: clamp(26px, 4vw, 44px); font-weight: 700; line-height: 1.22; margin-bottom: 18px; max-width: 780px; }
.page-hero__title em { font-style: normal; color: var(--gold); }
.page-hero__desc { font-size: 16px; color: rgba(255,255,255,.78); line-height: 1.8; max-width: 620px; margin-bottom: 28px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero .breadcrumb { color: rgba(255,255,255,.55); }
.page-hero .breadcrumb a { color: rgba(255,255,255,.75); }
.page-hero .breadcrumb span[aria-current] { color: var(--gold); }
.page-hero .breadcrumb .sep { color: rgba(255,255,255,.25); }

/* ===== ADDED: CONTENT LAYOUT ===== */
.content-wrap { display: grid; grid-template-columns: 1fr 280px; gap: 40px; padding: 60px 0; align-items: start; }
.content-main { background: var(--white); }
.prose h2 { font-family: var(--font-display); font-size: 24px; color: var(--navy); margin: 40px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; color: var(--navy); margin: 26px 0 12px; font-weight: 700; }
.prose p { margin-bottom: 18px; color: var(--gray-600); line-height: 1.85; font-size: 15.5px; }
.prose ul, .prose ol { margin: 0 0 20px 22px; color: var(--gray-600); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 9px; line-height: 1.75; font-size: 15.5px; }
.prose strong { color: var(--gray-800); font-weight: 700; }
.prose .highlight-box { background: linear-gradient(135deg, #EEF3FF, #F0F7FF); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; margin: 26px 0; }
.prose .highlight-box p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.prose th { background: var(--navy); color: var(--white); padding: 12px 16px; text-align: left; font-weight: 600; font-size: 13px; }
.prose td { padding: 11px 16px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); }
.prose tr:nth-child(even) td { background: var(--gray-50); }

.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 88px; }
.sidebar-box { background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 22px; }
.sidebar-box__title { font-size: 13px; font-weight: 800; color: var(--navy); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.sidebar-toc a { display: block; font-size: 14px; color: var(--gray-600); padding: 7px 0; border-bottom: 1px solid var(--gray-100); }
.sidebar-toc a:last-child { border-bottom: none; }
.sidebar-toc a:hover { color: var(--navy); }
.sidebar-toc a::before { content: '→ '; color: var(--gold); font-weight: 700; }
.sidebar-cta { background: var(--navy); border-radius: var(--radius-lg); padding: 24px; color: var(--white); }
.sidebar-cta h4 { font-family: var(--font-display); font-size: 17px; margin-bottom: 8px; }
.sidebar-cta p { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 16px; line-height: 1.6; }
.sidebar-links a { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--gray-600); padding: 8px 0; }
.sidebar-links a:hover { color: var(--navy); }

/* ===== ADDED: PILLAR CARDS (keyword hub links) ===== */
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 20px 0 8px; }
.pillar-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 24px 20px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.pillar-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--gold); }
.pillar-card__icon { font-size: 26px; margin-bottom: 12px; }
.pillar-card__title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.pillar-card__desc { font-size: 13.5px; color: var(--gray-600); line-height: 1.6; margin-bottom: 12px; }
.pillar-card__link { font-size: 13px; font-weight: 700; color: var(--blue); }

/* ===== ADDED: CTA BAND ===== */
.cta-band { background: linear-gradient(135deg, var(--navy-dark) 0%, #0d3080 100%); color: var(--white); border-radius: var(--radius-lg); padding: 44px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band__title { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.cta-band__desc { font-size: 14px; color: rgba(255,255,255,.72); }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== ADDED: FAQ ACCORDION (native details) ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.faq-item summary { padding: 16px 20px; font-weight: 700; color: var(--navy); cursor: pointer; background: var(--gray-50); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--gold); font-weight: 400; flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-a { padding: 16px 20px; color: var(--gray-600); font-size: 15px; line-height: 1.8; }

/* ===== ADDED: BLOG LIST PAGE FILTER ===== */
.blog-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.blog-filter a { padding: 8px 16px; border-radius: 50px; font-size: 13.5px; font-weight: 600; color: var(--gray-600); background: var(--gray-100); }
.blog-filter a.active, .blog-filter a:hover { background: var(--navy); color: var(--white); }

/* ===== ADDED: LOCATION PAGE ===== */
.location-hero-stats { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.location-hero-stats .hero__stat-num { color: var(--gold); }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-200); height: 320px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ===== ADDED: KEYWORD TAG LIST ===== */
.keyword-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.keyword-tags span { font-size: 12.5px; color: var(--gray-400); background: var(--gray-50); border: 1px solid var(--gray-100); padding: 5px 12px; border-radius: 50px; }

/* ===== ADDED: RESPONSIVE for new blocks ===== */
@media (max-width: 900px) {
  .content-wrap { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .pillar-grid { grid-template-columns: 1fr; }
}
