:root {
  --navy: #0b2545;
  --navy-2: #143e5d;
  --mint: #53d6b4;
  --mint-dark: #1ca985;
  --lime: #d9f671;
  --cream: #f7f5ee;
  --ink: #14222d;
  --muted: #65727b;
  --line: #dce5e5;
  --white: #fff;
  --shadow: 0 24px 70px rgba(11, 37, 69, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: "Noto Sans KR", sans-serif; background: #fff; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  height: 78px; padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.9); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(11,37,69,.07);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 21px; letter-spacing: -.7px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px 11px 11px 3px; color: var(--navy); background: var(--lime); font-family: "Jua"; font-size: 20px; transform: rotate(-4deg); }
.main-nav { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; }
.main-nav a:not(.nav-cta) { padding: 11px 16px; background: #f4f8f7; border: 1px solid var(--line); border-radius: 100px; }
.main-nav a:not(.nav-cta):hover { color: var(--mint-dark); background: #edf7f4; border-color: #cde8e0; }
.main-nav a.active:not(.nav-cta) { color: #fff; background: var(--navy); border-color: var(--navy); }
.nav-cta { padding: 12px 20px; color: #fff; background: var(--navy); border-radius: 100px; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--navy); }

.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 75% 30%, #236b7a 0, transparent 34%), linear-gradient(135deg, #081e39 0%, #0d3954 56%, #12675f 100%); }
.hero-inner { min-height: 590px; max-width: 1180px; margin: auto; padding: 90px 24px 70px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 80px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: inline-block; margin-bottom: 18px; color: var(--mint-dark); font-size: 12px; font-weight: 900; letter-spacing: 1.7px; }
.eyebrow.light { padding: 8px 13px; color: #d8fff5; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 100px; }
.hero h1 { margin: 0; font-size: clamp(43px, 5vw, 68px); line-height: 1.2; letter-spacing: -3px; }
em { color: var(--mint); font-style: normal; }
.hero p { max-width: 570px; margin: 24px 0 32px; color: rgba(255,255,255,.72); font-size: 18px; line-height: 1.8; }
.hero-actions { display: flex; gap: 12px; }
.button { display: inline-flex; min-height: 54px; padding: 0 25px; align-items: center; justify-content: center; border: 0; border-radius: 14px; font-weight: 800; cursor: pointer; transition: .25s ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: var(--navy); background: var(--lime); box-shadow: 0 12px 30px rgba(217,246,113,.2); }
.button-muted { color: var(--navy); background: #eef2f1; border: 1px solid var(--line); }
.button-ghost { gap: 12px; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-one { width: 380px; height: 380px; right: -170px; top: -100px; background: rgba(83,214,180,.12); }
.orb-two { width: 220px; height: 220px; left: 38%; bottom: -150px; background: rgba(217,246,113,.08); }
.hero-visual { position: relative; min-height: 390px; }
.visual-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 35px 80px rgba(0,0,0,.22); backdrop-filter: blur(10px); }
.main-card { width: 360px; margin: 0 auto; padding: 14px; border-radius: 32px; transform: rotate(2deg); }
.student-scene { position: relative; height: 260px; overflow: hidden; background: linear-gradient(150deg, #e5fff7, #a7e1d7); border-radius: 22px; }
.sun { position: absolute; width: 80px; height: 80px; right: 30px; top: 25px; border-radius: 50%; background: var(--lime); }
.desk { position: absolute; width: 280px; height: 22px; left: 27px; bottom: 50px; border-radius: 6px; background: #c08254; box-shadow: 0 47px 0 -7px #754d3d; }
.book { position: absolute; z-index: 3; width: 110px; height: 18px; left: 72px; bottom: 74px; border-radius: 4px; background: #fff; transform: rotate(5deg); box-shadow: 0 5px 0 #f2ba54; }
.student { position: absolute; left: 138px; bottom: 66px; }
.student .head { width: 78px; height: 82px; border-radius: 45% 45% 50% 50%; background: #f0b68f; box-shadow: inset 0 20px 0 #183249; }
.student .body { width: 118px; height: 94px; margin-left: -20px; border-radius: 45px 45px 10px 10px; background: var(--navy-2); }
.card-caption { padding: 18px 10px 9px; }
.card-caption span { color: rgba(255,255,255,.7); font-size: 12px; }
.card-caption strong { float: right; color: var(--lime); }
.progress { height: 7px; margin-top: 12px; overflow: hidden; background: rgba(255,255,255,.12); border-radius: 20px; }
.progress i { display: block; width: 92%; height: 100%; background: var(--lime); border-radius: inherit; }
.float-card { position: absolute; padding: 14px 18px; background: #fff; color: var(--ink); border-radius: 16px; box-shadow: var(--shadow); font-size: 13px; font-weight: 700; }
.float-one { left: -20px; top: 75px; }
.float-one span { display: inline-grid; width: 24px; height: 24px; margin-right: 7px; place-items: center; color: #fff; background: var(--mint-dark); border-radius: 50%; }
.float-two { right: -5px; bottom: 38px; display: grid; grid-template-columns: auto auto; gap: 1px 7px; }
.float-two strong { font-size: 22px; }.float-two span { color: #f6b53b; font-size: 10px; }.float-two small { grid-column: 1 / -1; color: var(--muted); }
.quick-stats { position: relative; z-index: 3; max-width: 1180px; margin: auto; padding: 28px 24px; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(3,20,37,.32); border-top: 1px solid rgba(255,255,255,.1); }
.quick-stats div { display: flex; align-items: center; flex-direction: column; gap: 5px; border-right: 1px solid rgba(255,255,255,.12); }
.quick-stats div:last-child { border: 0; }.quick-stats strong { font-size: 23px; }.quick-stats span { color: rgba(255,255,255,.58); font-size: 12px; }

.home-gate {
  min-height: calc(100vh - 78px);
  padding: 90px max(24px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 56px;
  align-items: center;
  background: linear-gradient(135deg, #f7fbfa 0%, #eef7f4 100%);
}
.home-copy h1 { margin: 0; color: var(--navy); font-size: clamp(42px, 5vw, 68px); line-height: 1.18; letter-spacing: -3px; }
.home-copy p { max-width: 520px; margin: 24px 0 0; color: var(--muted); font-size: 18px; line-height: 1.85; }
.home-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.home-page-card {
  min-height: 190px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(11,37,69,.07);
  transition: .25s ease;
}
.home-page-card:hover { transform: translateY(-6px); border-color: var(--mint); box-shadow: var(--shadow); }
.home-page-card span { width: 42px; height: 42px; display: grid; place-items: center; color: var(--navy); background: var(--lime); border-radius: 50% 50% 50% 10px; font-size: 13px; font-weight: 900; }
.home-page-card strong { display: block; margin-top: 26px; color: var(--navy); font-size: 26px; letter-spacing: -1px; }
.home-page-card small { display: block; margin-top: 8px; color: var(--muted); line-height: 1.6; }
.home-page-card.active { color: #fff; background: var(--navy); border-color: var(--navy); }
.home-page-card.active span { background: var(--lime); }
.home-page-card.active strong { color: #fff; }
.home-page-card.active small { color: rgba(255,255,255,.68); }
.home-page-card.admin-card { grid-column: 1 / -1; min-height: 150px; }

.home-hero {
  min-height: calc(100vh - 78px);
  padding: 96px max(24px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 54px;
  align-items: center;
  background:
    radial-gradient(circle at 82% 20%, rgba(83,214,180,.18), transparent 30%),
    linear-gradient(135deg, #f9fcfb 0%, #eef8f5 100%);
}
.home-hero-copy h1 { margin: 0; color: var(--navy); font-size: clamp(40px, 5vw, 66px); line-height: 1.18; letter-spacing: -3px; }
.home-hero-copy p { max-width: 610px; margin: 24px 0 32px; color: var(--muted); font-size: 18px; line-height: 1.85; }
.home-search-card {
  padding: 34px;
  display: grid;
  gap: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.home-search-card strong { color: var(--navy); font-size: 30px; letter-spacing: -1px; }
.home-search-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.home-search-tags span { padding: 11px 14px; color: var(--navy); background: #f1f8f6; border: 1px solid #d6ece6; border-radius: 999px; font-size: 14px; font-weight: 900; }
.home-info-section { max-width: 1180px; margin: auto; padding: 100px 24px; }
.home-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.home-info-grid article {
  min-height: 230px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(11,37,69,.06);
}
.home-info-grid span { width: 40px; height: 40px; display: grid; place-items: center; color: var(--navy); background: var(--lime); border-radius: 50% 50% 50% 10px; font-size: 13px; font-weight: 900; }
.home-info-grid h3 { margin: 26px 0 12px; color: var(--navy); font-size: 27px; letter-spacing: -1px; }
.home-info-grid p { margin: 0; color: var(--muted); line-height: 1.75; }

.section { max-width: 1180px; margin: auto; padding: 120px 24px; }
.section-heading { max-width: 720px; margin-bottom: 54px; }
.section-heading.centered { margin-right: auto; margin-left: auto; text-align: center; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 4vw, 48px); line-height: 1.35; letter-spacing: -2px; }
.section-heading p { margin: 20px 0 0; color: var(--muted); line-height: 1.8; }
.diagnosis-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card { min-height: 250px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; transition: .25s ease; }
.feature-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card .number { color: var(--mint-dark); font-size: 12px; font-weight: 900; }
.feature-card .icon { float: right; display: grid; width: 42px; height: 42px; margin-top: -10px; place-items: center; color: var(--navy); background: #edfaf6; border-radius: 13px; font-size: 20px; }
.feature-card h3 { margin: 62px 0 12px; font-size: 19px; }.feature-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }

.process-section { max-width: none; padding-right: max(24px, calc((100vw - 1180px) / 2)); padding-left: max(24px, calc((100vw - 1180px) / 2)); background: var(--cream); }
.process-list { display: grid; grid-template-columns: repeat(5, 1fr); }
.process-item { position: relative; padding: 0 25px; border-left: 1px solid #d7ded8; }
.process-item:first-child { border: 0; padding-left: 0; }
.process-item > span { display: grid; width: 48px; height: 48px; margin-bottom: 26px; place-items: center; color: var(--navy); background: var(--lime); border-radius: 50% 50% 50% 12px; font-weight: 900; }
.process-item h3 { font-size: 17px; }.process-item p { color: var(--muted); font-size: 13px; line-height: 1.75; }

.teachers { max-width: none; padding-right: max(24px, calc((100vw - 1180px) / 2)); padding-left: max(24px, calc((100vw - 1180px) / 2)); }
.teacher-panel { max-width: 1180px; min-height: 560px; margin: auto; padding: 70px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: center; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--navy), #145866); border-radius: 38px; }
.teacher-copy h2 { margin: 0; font-size: 43px; line-height: 1.4; letter-spacing: -2px; }.teacher-copy p { max-width: 590px; color: rgba(255,255,255,.67); line-height: 1.8; }
.teacher-copy ul { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 32px 0 0; padding: 0; list-style: none; font-size: 14px; }
.teacher-copy li span { display: inline-grid; width: 22px; height: 22px; margin-right: 6px; place-items: center; color: var(--navy); background: var(--mint); border-radius: 50%; }
.quote-card { position: relative; padding: 44px; color: var(--ink); background: var(--lime); border-radius: 28px 28px 28px 6px; transform: rotate(2deg); }
.quote-mark { position: absolute; right: 24px; top: 5px; color: rgba(11,37,69,.13); font-family: Georgia; font-size: 95px; }
.quote-card > p { position: relative; margin: 0 0 45px; font-family: "Gowun Dodum"; font-size: 26px; font-weight: 700; line-height: 1.65; }
.quote-card div { display: flex; flex-direction: column; gap: 4px; }.quote-card small { color: #4d6350; }

.class-finder { padding-top: 70px; }
.finder-box { overflow: hidden; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 25px 60px rgba(11,37,69,.07); }
.tabs { display: flex; background: #f3f7f6; }
.tab { flex: 1; padding: 22px; color: var(--muted); background: transparent; border: 0; font-weight: 800; cursor: pointer; }
.tab.active { color: #fff; background: var(--navy); }
.chips { display: none; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 30px; }
.chips.active { display: grid; }
.chips a { padding: 20px; display: flex; justify-content: space-between; background: #f7faf9; border: 1px solid transparent; border-radius: 14px; font-weight: 700; transition: .2s; }
.chips a:hover { border-color: var(--mint); background: #edfaf6; }.chips span { color: var(--mint-dark); }

.reviews { max-width: none; padding-right: max(24px, calc((100vw - 1180px) / 2)); padding-left: max(24px, calc((100vw - 1180px) / 2)); background: #f6faf9; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-card { padding: 32px; background: #fff; border-radius: 22px; box-shadow: 0 12px 40px rgba(11,37,69,.06); }
.review-card.featured { color: #fff; background: var(--navy); transform: translateY(-16px); }
.stars { color: #efb32f; letter-spacing: 2px; }.review-card > p { min-height: 120px; margin: 25px 0; line-height: 1.8; font-weight: 600; }
.review-card div:last-child { display: flex; flex-direction: column; gap: 5px; }.review-card div:last-child span { color: var(--muted); font-size: 13px; }.review-card.featured div:last-child span { color: rgba(255,255,255,.55); }

.contact-section { padding: 100px max(24px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: 1fr 480px; gap: 90px; align-items: center; color: #fff; background: linear-gradient(135deg, #0a223f, #0d5b62); }
.contact-copy h2 { margin: 0; font-size: 42px; line-height: 1.45; letter-spacing: -2px; }.contact-copy p { color: rgba(255,255,255,.66); }
.contact-form { padding: 32px; display: grid; gap: 15px; color: var(--ink); background: #fff; border-radius: 24px; box-shadow: 0 25px 60px rgba(0,0,0,.18); }
.contact-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.contact-form input:not([type="checkbox"]), .contact-form select { width: 100%; height: 48px; padding: 0 14px; color: var(--ink); background: #f6f8f8; border: 1px solid #e3e9e8; border-radius: 10px; outline: 0; }
.contact-form input:focus, .contact-form select:focus { border-color: var(--mint-dark); }
.contact-form .consent { display: flex; grid-template-columns: auto 1fr; align-items: center; color: var(--muted); font-weight: 500; }
.contact-form .button { width: 100%; }.form-message { margin: 0; color: var(--mint-dark); text-align: center; font-size: 13px; font-weight: 700; }

footer { padding: 50px max(24px, calc((100vw - 1180px) / 2)); color: var(--muted); font-size: 13px; }
footer .brand { color: var(--ink); }.copyright { margin-top: 30px; color: #9aa5aa; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; font-weight: 700; }
.footer-links a:hover { color: var(--mint-dark); }
.floating-cta { position: fixed; z-index: 90; right: 24px; bottom: 24px; padding: 15px 21px; color: #fff; background: var(--navy); border-radius: 100px; box-shadow: 0 14px 35px rgba(11,37,69,.3); font-size: 14px; font-weight: 800; }.floating-cta span { color: var(--lime); }

.reveal { opacity: 0; transform: translateY(25px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* sub pages */
.sub-hero { position: relative; overflow: hidden; padding: 105px 24px 100px; color: #fff; text-align: center; background: radial-gradient(circle at 70% 20%, #20716f 0, transparent 30%), linear-gradient(135deg, #081e39, #0e4f5d); }
.sub-hero::after { content: ""; position: absolute; width: 280px; height: 280px; left: -100px; bottom: -180px; border-radius: 50%; background: rgba(217,246,113,.1); }
.sub-hero .eyebrow { color: var(--lime); }.sub-hero h1 { max-width: 850px; margin: 0 auto; font-size: clamp(42px, 6vw, 66px); line-height: 1.25; letter-spacing: -3px; }
.sub-hero p { max-width: 660px; margin: 22px auto 0; color: rgba(255,255,255,.68); font-size: 17px; line-height: 1.8; }
.board-hero { padding: 48px 24px 48px; }
.board-hero::after { width: 190px; height: 190px; left: -80px; bottom: -130px; }
.board-hero .eyebrow { margin-bottom: 10px; font-size: 11px; }
.board-hero h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -1.5px; }
.board-hero p { max-width: 560px; margin-top: 14px; font-size: 15px; line-height: 1.7; }
.sub-nav { position: sticky; top: 78px; z-index: 50; display: flex; justify-content: center; gap: 8px; padding: 15px 20px; overflow-x: auto; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.sub-nav a { flex: 0 0 auto; padding: 10px 17px; color: var(--muted); border-radius: 100px; font-size: 13px; font-weight: 800; }
.sub-nav a:hover { color: var(--navy); background: #edf7f4; }
.content-section { max-width: 1180px; margin: auto; padding: 100px 24px; }
.content-section.alt { max-width: none; padding-right: max(24px, calc((100vw - 1180px) / 2)); padding-left: max(24px, calc((100vw - 1180px) / 2)); background: #f5f9f8; }
.split-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.split-intro h2, .content-title h2 { margin: 0; font-size: clamp(33px, 4vw, 47px); line-height: 1.35; letter-spacing: -2px; }
.split-intro .lead { margin-top: 0; color: var(--muted); font-size: 18px; line-height: 1.9; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.info-card { padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 22px; transition: .25s; }
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.info-card .card-icon { display: grid; width: 50px; height: 50px; place-items: center; color: var(--navy); background: var(--lime); border-radius: 15px 15px 15px 5px; font-size: 20px; font-weight: 900; }
.info-card h3 { margin: 0 0 10px; font-size: 21px; }.info-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.subject-row { padding: 62px 0; display: grid; grid-template-columns: 170px 1fr 260px; gap: 48px; align-items: center; border-bottom: 1px solid var(--line); }
.subject-row:last-child { border: 0; }.subject-badge { display: grid; aspect-ratio: 1; place-items: center; color: var(--navy); background: var(--lime); border-radius: 50% 50% 50% 18px; font-size: 32px; font-weight: 900; }
.subject-row:nth-child(even) .subject-badge { background: #bff2e4; }.subject-row h2 { margin: 0 0 14px; font-size: 32px; }.subject-row p { margin: 0; color: var(--muted); line-height: 1.8; }
.subject-points { margin: 0; padding: 24px; list-style: none; background: #f5f9f8; border-radius: 18px; font-size: 14px; font-weight: 700; }.subject-points li + li { margin-top: 12px; }.subject-points li::before { content: "✓"; margin-right: 8px; color: var(--mint-dark); }
.timeline { position: relative; max-width: 900px; margin: 60px auto 0; }
.timeline::before { content: ""; position: absolute; left: 28px; top: 20px; bottom: 20px; width: 2px; background: #cfe3de; }
.timeline-item { position: relative; padding: 0 0 55px 90px; }.timeline-item:last-child { padding-bottom: 0; }
.timeline-number { position: absolute; z-index: 2; left: 0; top: 0; width: 58px; height: 58px; display: grid; place-items: center; color: var(--navy); background: var(--lime); border: 7px solid #fff; border-radius: 50%; font-weight: 900; box-shadow: 0 8px 22px rgba(11,37,69,.12); }
.timeline-item h3 { margin: 0 0 10px; font-size: 23px; }.timeline-item p { margin: 0; color: var(--muted); line-height: 1.8; }
.teacher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.profile-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 24px; }
.profile-visual { height: 250px; display: grid; place-items: center; background: linear-gradient(145deg, #dff8f1, #accfd2); }
.profile-avatar { position: relative; width: 125px; height: 125px; border-radius: 50%; background: #efb187; box-shadow: inset 0 32px 0 #15344b, 0 75px 0 18px var(--navy-2); }
.profile-info { position: relative; padding: 28px; background: #fff; }.profile-info small { color: var(--mint-dark); font-weight: 900; }.profile-info h3 { margin: 7px 0 10px; font-size: 22px; }.profile-info p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 14px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 50px; }
.metric { padding: 30px 15px; text-align: center; background: var(--navy); color: #fff; border-radius: 20px; }.metric strong { display: block; color: var(--lime); font-size: 34px; }.metric span { color: rgba(255,255,255,.65); font-size: 13px; }
.story-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 50px; }
.story-card { padding: 36px; background: #fff; border: 1px solid var(--line); border-radius: 24px; }.story-card:nth-child(3n+2) { color: #fff; background: var(--navy); border-color: var(--navy); }
.story-card .tag { display: inline-block; padding: 6px 10px; color: var(--navy); background: var(--lime); border-radius: 100px; font-size: 11px; font-weight: 900; }.story-card h3 { font-size: 21px; line-height: 1.5; }.story-card p { color: var(--muted); line-height: 1.85; }.story-card:nth-child(3n+2) p { color: rgba(255,255,255,.67); }
.faq-list { max-width: 850px; margin: 45px auto 0; }.faq-item { border-bottom: 1px solid var(--line); }.faq-question { width: 100%; padding: 25px 0; display: flex; justify-content: space-between; color: var(--ink); background: transparent; border: 0; text-align: left; font-weight: 800; cursor: pointer; }.faq-answer { display: none; padding: 0 0 25px; color: var(--muted); line-height: 1.8; }.faq-item.open .faq-answer { display: block; }.faq-item.open .faq-question span { transform: rotate(45deg); }
.cta-band { margin: 0 max(20px, calc((100vw - 1180px) / 2)); padding: 60px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #fff; background: linear-gradient(135deg, var(--navy), #11645e); border-radius: 30px; }.cta-band h2 { margin: 0; font-size: 34px; }.cta-band p { color: rgba(255,255,255,.65); }
.cta-band .button { flex: 0 0 auto; }
.contact-page { max-width: 1050px; margin: auto; padding: 90px 24px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; }
.contact-options { display: grid; gap: 14px; margin-top: 35px; }.contact-option { padding: 22px; display: flex; gap: 16px; align-items: center; background: #f5f9f8; border-radius: 18px; }.contact-option b { display: block; margin-bottom: 4px; }.contact-option span { color: var(--muted); font-size: 13px; }
.contact-page .contact-form { box-shadow: var(--shadow); }
.legal { max-width: 850px; margin: auto; padding: 90px 24px; }.legal h1 { font-size: 42px; }.legal h2 { margin-top: 50px; font-size: 21px; }.legal p, .legal li { color: var(--muted); line-height: 1.9; font-size: 14px; }

.auth-section, .board-section { max-width: 1180px; margin: auto; padding: 90px 24px; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.auth-grid.single { max-width: 560px; margin: auto; grid-template-columns: 1fr; }
.auth-card, .board-editor {
  padding: 32px;
  display: grid;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 55px rgba(11,37,69,.07);
}
.auth-card[hidden], .board-editor[hidden], .board-login-panel[hidden] { display: none !important; }
.auth-card h2, .board-toolbar h2 { margin: 0; font-size: 32px; letter-spacing: -1px; }
.auth-card label, .board-editor label, .editor-field { display: grid; gap: 8px; font-size: 13px; font-weight: 800; }
.board-editor [hidden] { display: none !important; }
.auth-card input, .board-editor input[type="text"], .board-editor textarea {
  width: 100%;
  padding: 14px;
  color: var(--ink);
  background: #f6f8f8;
  border: 1px solid #e3e9e8;
  border-radius: 10px;
  outline: 0;
}
.auth-card input { height: 50px; }
.meta-description-input { min-height: 86px; resize: vertical; line-height: 1.7; }
.board-editor textarea { min-height: 220px; resize: vertical; line-height: 1.75; }
.rich-editor {
  min-height: 240px;
  padding: 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #e3e9e8;
  border-radius: 10px;
  outline: 0;
  line-height: 1.85;
}
.rich-editor:focus { border-color: var(--mint-dark); }
.rich-editor:empty::before { content: attr(data-placeholder); color: #98a4aa; }
.rich-editor h2 {
  margin: 28px 0 14px;
  padding-bottom: 12px;
  color: var(--navy);
  border-bottom: 3px solid var(--lime);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -1px;
}
.rich-editor h3 {
  margin: 24px 0 12px;
  padding-left: 13px;
  color: var(--navy);
  border-left: 5px solid var(--mint);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -1px;
}
.rich-editor figure { margin: 24px 0; }
.rich-editor figure.image-align-center { text-align: center; }
.rich-editor figure img { display: inline-block; max-width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.rich-editor figure figcaption { display: none; }
.rich-editor .editor-reset-paragraph { text-align: left; }
.auth-card input:focus, .board-editor input:focus, .board-editor textarea:focus { border-color: var(--mint-dark); background: #fff; }
.auth-status, .member-notice {
  margin-bottom: 22px;
  padding: 18px 20px;
  color: var(--navy);
  background: #edf7f4;
  border: 1px solid #d4eee7;
  border-radius: 16px;
  font-weight: 800;
}
.auth-status:empty, .member-notice:empty { display: none; }
.auth-status .button, .member-notice .button { min-height: 38px; margin-left: 12px; padding: 0 14px; border-radius: 10px; }
.auth-link { margin: -3px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.auth-link a { color: var(--mint-dark); font-weight: 900; }
.admin-login-card { max-width: 560px; margin: auto; }
.admin-panel {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 55px rgba(11,37,69,.07);
}
.admin-panel-head { margin-bottom: 22px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.admin-panel-head h2 { margin: 0; font-size: 32px; letter-spacing: -1px; }
.admin-panel-head strong { color: var(--mint-dark); font-size: 14px; }
.admin-panel-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.admin-logout-button { min-height: 34px; padding: 0 12px; border-radius: 8px; font-size: 13px; }
.admin-panel-section { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.admin-post-editor { margin-bottom: 14px; }
.admin-post-preview {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.admin-preview-head { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-post-preview h1 { margin: 0 0 14px; font-size: 28px; letter-spacing: -1px; }
.admin-user-list { display: grid; gap: 12px; }
.admin-user-card {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.admin-user-card div { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.admin-user-card strong { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.admin-user-card span { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 16px; font-weight: 900; }
.admin-user-card b, .admin-user-card small { color: var(--muted); font-size: 12px; font-weight: 900; }
.admin-post-card > div:first-child { min-width: 0; }
.admin-post-card strong { overflow-wrap: anywhere; }
.admin-post-card { cursor: pointer; }
.admin-post-card:focus-visible { outline: 3px solid rgba(32,180,139,.25); outline-offset: 2px; }
.admin-post-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.admin-post-actions .button { min-height: 36px; padding: 0 12px; border-radius: 9px; font-size: 13px; }
.admin-muted-button { color: var(--navy); border-color: var(--line); }
.board-toolbar { margin-bottom: 22px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.board-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.board-actions [data-board-user] { color: var(--muted); font-size: 13px; font-weight: 800; }
.board-login-link { min-height: 46px; color: var(--navy); border-color: var(--line); }
.board-editor, .board-login-panel { margin-bottom: 26px; }
.login-panel-copy { margin: 0; color: var(--muted); font-size: 14px; font-weight: 800; }
.editor-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.editor-head h3 { margin: 0; font-size: 24px; }
.text-button { padding: 0; color: var(--mint-dark); background: transparent; border: 0; font-weight: 900; cursor: pointer; }
.write-mode { display: flex; flex-wrap: nowrap; gap: 8px; white-space: nowrap; }
.write-mode label { display: inline-flex; padding: 9px 13px; align-items: center; gap: 7px; background: #f5f9f8; border: 1px solid var(--line); border-radius: 100px; cursor: pointer; font-size: 13px; font-weight: 900; }
.editor-toolbar { display: flex; flex-wrap: nowrap; gap: 8px; padding: 10px; overflow-x: auto; background: #f5f9f8; border: 1px solid var(--line); border-radius: 14px; scrollbar-width: thin; }
.editor-toolbar button { flex: 0 0 auto; min-height: 38px; padding: 0 13px; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 10px; font-weight: 900; white-space: nowrap; cursor: pointer; }
.editor-toolbar button:hover { border-color: var(--mint); background: #edfaf6; }
.editor-toolbar .align-button { width: 42px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.align-icon { width: 19px; display: grid; gap: 4px; }
.align-icon i { display: block; height: 3px; background: currentColor; border-radius: 100px; }
.align-icon i:nth-child(1) { width: 19px; }
.align-icon i:nth-child(2) { width: 13px; }
.align-icon i:nth-child(3) { width: 17px; }
.align-icon-center i { margin-inline: auto; }
.align-icon-right i { margin-left: auto; }
.editor-preview {
  padding: 18px;
  background: #fbfdfc;
  border: 1px dashed #bddbd4;
  border-radius: 14px;
}
.editor-preview[hidden] { display: none; }
.editor-preview > strong { display: block; margin-bottom: 12px; color: var(--navy); font-size: 14px; }
.editor-preview-body { padding: 18px; background: #fff; border-radius: 12px; }
.editor-actions { display: flex; gap: 10px; align-items: stretch; }
.editor-actions .button { width: auto; }
.editor-actions .preview-toggle { flex: 0 0 135px; }
.editor-actions .button[type="submit"] { flex: 1 1 auto; }
.editor-help { margin: -4px 0 0; color: var(--muted); font-size: 13px; }
.board-layout { display: block; }
.post-list { display: grid; gap: 10px; }
.post-item {
  width: 100%;
  padding: 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: left;
  cursor: pointer;
  transition: .2s ease;
}
.post-item:hover, .post-item.active { border-color: var(--mint); box-shadow: 0 12px 32px rgba(11,37,69,.08); transform: translateY(-2px); }
.post-item strong { display: block; margin-bottom: 7px; font-size: 17px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.post-mode { color: var(--mint-dark); }
.post-detail {
  min-height: 360px;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 55px rgba(11,37,69,.06);
}
.post-page { max-width: 940px; margin: auto; padding: 90px 24px; }
.server-post { min-height: auto; }
.post-detail h1 { margin: 0 0 12px; font-size: clamp(34px, 5vw, 52px); line-height: 1.25; letter-spacing: -2px; }
.post-detail h2 { margin: 0 0 12px; font-size: 31px; line-height: 1.35; letter-spacing: -1px; }
.post-description {
  margin: 18px 0 24px;
  padding: 18px 20px;
  color: var(--navy);
  background: #f2faf7;
  border: 1px solid #cfebe3;
  border-radius: 14px;
  line-height: 1.75;
}
.post-description strong { display: block; margin-bottom: 4px; color: var(--mint-dark); font-size: 13px; }
.post-detail .post-meta { margin-bottom: 28px; }
.post-actions { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; align-items: center; }
.post-actions .button { width: auto; min-width: 0; min-height: 34px; padding: 0 12px; border-radius: 8px; font-size: 13px; }
.button-danger { color: #fff; background: #d64545; }
.post-edit-form { display: grid; gap: 14px; }
.post-edit-form label { display: grid; gap: 8px; color: var(--navy); font-size: 13px; font-weight: 900; }
.post-edit-form input, .post-edit-form textarea, .post-edit-form select { width: 100%; padding: 14px; color: var(--ink); background: #f6f8f8; border: 1px solid #e3e9e8; border-radius: 10px; font: inherit; }
.post-edit-form textarea { min-height: 160px; resize: vertical; line-height: 1.75; }
.post-body { color: var(--ink); line-height: 1.85; overflow-wrap: anywhere; }
.post-body p { margin: 0 0 14px; }
.post-body .text-left { text-align: left; }
.post-body .text-center { text-align: center; }
.post-body .text-right { text-align: right; }
.post-body .plain-heading {
  margin: 38px 0 16px;
  padding-bottom: 12px;
  color: var(--navy);
  border-bottom: 3px solid var(--lime);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -1px;
}
.post-body .plain-subheading {
  margin: 28px 0 12px;
  padding-left: 13px;
  color: var(--navy);
  border-left: 5px solid var(--mint);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -1px;
}
.post-image { margin: 24px 0; }
.post-image.image-align-center, .post-body figure.image-align-center { text-align: center; }
.post-image img, .post-body figure img { display: inline-block; max-width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.post-image figcaption, .post-body figure figcaption { display: none; }
.post-body .editor-reset-paragraph { text-align: left; }
.post-body pre { overflow-x: auto; padding: 18px; background: #f5f7f7; border-radius: 12px; }
.empty-message { margin: 0; color: var(--muted); line-height: 1.8; }

@media (max-width: 900px) {
  .site-header { height: 68px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; left: 16px; right: 16px; top: 76px; padding: 20px; display: none; flex-direction: column; align-items: stretch; gap: 8px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }.main-nav a { padding: 11px; }.nav-cta { text-align: center; }
  .home-hero { grid-template-columns: 1fr; padding-top: 70px; }
  .home-gate { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 70px; text-align: center; }
  .hero-copy p { margin-right: auto; margin-left: auto; }.hero-actions { justify-content: center; }
  .hero-visual { width: min(100%, 500px); margin: auto; }
  .diagnosis-grid { grid-template-columns: 1fr 1fr; }
  .process-list { grid-template-columns: 1fr 1fr; gap: 40px 0; }.process-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .teacher-panel { grid-template-columns: 1fr; padding: 50px; }
  .teacher-copy h2 { font-size: 36px; }
  .quote-card { max-width: 460px; }
  .contact-section { grid-template-columns: 1fr; gap: 45px; }.contact-form { max-width: 560px; }
  .sub-nav { top: 68px; justify-content: flex-start; }
  .split-intro { grid-template-columns: 1fr; gap: 25px; }.info-grid { grid-template-columns: 1fr 1fr; }
  .subject-row { grid-template-columns: 120px 1fr; }.subject-points { grid-column: 1 / -1; }
  .teacher-grid { grid-template-columns: 1fr 1fr; }.contact-page { grid-template-columns: 1fr; }
  .auth-grid { grid-template-columns: 1fr; }
  .board-toolbar { align-items: stretch; flex-direction: column; }
  .board-actions { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .brand { font-size: 18px; }.brand-mark { width: 30px; height: 30px; }
  .hero-inner { min-height: auto; padding: 64px 20px 50px; gap: 45px; }
  .hero h1 { font-size: 40px; letter-spacing: -2px; }.hero p { font-size: 15px; }
  .hero-actions { flex-direction: column; }.button { width: 100%; }
  .main-card { width: 285px; }.student-scene { height: 210px; }.float-one { left: 0; }.float-two { right: 0; }
  .quick-stats { grid-template-columns: 1fr 1fr; gap: 25px 0; }.quick-stats div:nth-child(2) { border-right: 0; }
  .home-hero { min-height: auto; padding: 64px 20px; }
  .home-hero-copy h1 { font-size: 38px; letter-spacing: -2px; }
  .home-hero-copy p { font-size: 15px; }
  .home-search-card { padding: 24px; border-radius: 20px; }
  .home-info-section { padding: 70px 20px; }
  .home-info-grid { grid-template-columns: 1fr; }
  .home-gate { min-height: auto; padding: 64px 20px; }
  .home-copy h1 { font-size: 40px; letter-spacing: -2px; }
  .home-copy p { font-size: 15px; }
  .home-page-grid { grid-template-columns: 1fr; }
  .section { padding: 85px 20px; }.section-heading h2 { font-size: 32px; }.section-heading { margin-bottom: 38px; }
  .diagnosis-grid { grid-template-columns: 1fr; }.feature-card { min-height: 205px; }
  .process-list { grid-template-columns: 1fr; gap: 0; }.process-item, .process-item:nth-child(3) { padding: 0 0 35px 20px; display: grid; grid-template-columns: 54px 1fr; gap: 12px; border: 0; }.process-item > span { width: 44px; height: 44px; margin: 0; }
  .teacher-panel { padding: 38px 24px; border-radius: 26px; }.teacher-copy h2 { font-size: 31px; }.teacher-copy ul { grid-template-columns: 1fr; }.quote-card { padding: 32px 25px; }.quote-card > p { font-size: 22px; }
  .chips { grid-template-columns: 1fr 1fr; padding: 18px; }.chips a { padding: 16px; font-size: 14px; }
  .review-grid { grid-template-columns: 1fr; }.review-card.featured { transform: none; }
  .contact-section { padding-top: 75px; padding-bottom: 75px; }.contact-copy h2 { font-size: 32px; }.contact-form { padding: 24px 20px; }
  .floating-cta { right: 15px; bottom: 15px; }
  .sub-hero { padding: 75px 20px; }.sub-hero h1 { font-size: 38px; letter-spacing: -2px; }
  .board-hero { padding: 38px 20px 36px; }.board-hero h1 { font-size: 30px; letter-spacing: -1px; }.board-hero p { font-size: 14px; }
  .content-section { padding: 75px 20px; }.info-grid, .teacher-grid, .story-list { grid-template-columns: 1fr; }
  .subject-row { grid-template-columns: 78px 1fr; gap: 22px; padding: 42px 0; }.subject-row h2 { font-size: 27px; }.subject-points { grid-column: 1 / -1; }
  .metrics { grid-template-columns: 1fr 1fr; }.metric strong { font-size: 28px; }
  .cta-band { padding: 38px 25px; flex-direction: column; align-items: flex-start; }.cta-band h2 { font-size: 27px; }
  .contact-page { padding: 70px 20px; }.legal { padding: 70px 20px; }.legal h1 { font-size: 34px; }
  .auth-section, .board-section { padding: 70px 20px; }
  .auth-card, .board-editor, .post-detail { padding: 24px 20px; border-radius: 18px; }
  .admin-user-card { align-items: stretch; flex-direction: column; }
  .admin-user-card .button { width: 100%; }
  .admin-post-actions { flex-direction: row; justify-content: flex-start; }
  .admin-post-actions .button { width: auto; }
  .post-actions { justify-content: flex-end; }
  .post-actions .button { width: auto; min-height: 32px; padding: 0 11px; font-size: 12px; }
  .editor-head { align-items: center; }
  .editor-head .write-mode { order: 2; margin-left: auto; }
  .editor-head .text-button { order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
