/* 미디시티 블로그 — toss.tech 결을 참고한 읽기용 화면
   ⚠️ 이 파일은 학생앱·CRM과 아무 상관 없습니다. /blog 아래에서만 씁니다. */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

:root {
  --bg:        #FFFFFF;
  --ink:       #191F28;   /* 본문 글자 */
  --ink-2:     #4E5968;   /* 보조 글자 */
  --ink-3:     #8B95A1;   /* 흐린 글자 */
  --line:      #F2F4F6;   /* 옅은 선 */
  --line-2:    #E5E8EB;
  --chip-bg:   #F2F4F6;
  --mint:      #14B8A6;   /* 우리 색 */
  --mint-soft: #E6FAF7;
  --navy:      #111C33;
  --max:       1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  /* 한국어는 단어 가운데서 줄이 갈리면 읽기 나쁘다 */
  word-break: keep-all;
  overflow-wrap: break-word;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── 머리 ────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -.04em; }
.brand .dot { width: 22px; height: 22px; border-radius: 7px; background: var(--mint); flex: none; }
.brand .sub { color: var(--ink-3); font-weight: 700; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15.5px; font-weight: 600; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.cta {
  padding: 9px 17px; border-radius: 10px; background: var(--mint); color: #fff;
  font-weight: 700; font-size: 15px; white-space: nowrap;
}
.cta:hover { filter: brightness(.94); }
@media (max-width: 760px) { .nav { display: none; } }

/* ── 큰 카드 (첫 화면 맨 위) ───────────────── */
.hero { padding: 46px 0 12px; }
.hero-card {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  border-radius: 24px; overflow: hidden; background: #FAFBFC; border: 1px solid var(--line);
}
.hero-img { min-height: 330px; background: var(--navy) center/cover; }
.hero-txt { padding: 46px 44px; display: flex; flex-direction: column; justify-content: center; }
.hero-txt h2 { font-size: 33px; font-weight: 800; line-height: 1.34; letter-spacing: -.045em; margin-bottom: 14px; }
.hero-txt p { color: var(--ink-2); font-size: 16.5px; margin-bottom: 24px; }
.hero-more { align-self: flex-start; padding: 11px 22px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-size: 15px; }
@media (max-width: 860px) {
  .hero-card { grid-template-columns: 1fr; }
  .hero-img { min-height: 210px; }
  .hero-txt { padding: 30px 24px; }
  .hero-txt h2 { font-size: 26px; }
}

/* ── 본문 두 칸 ───────────────────────────── */
.cols { display: grid; grid-template-columns: 1fr 312px; gap: 64px; padding: 54px 0 90px; align-items: start; }
@media (max-width: 980px) { .cols { grid-template-columns: 1fr; gap: 44px; } }

.sec-h { font-size: 27px; font-weight: 800; letter-spacing: -.045em; margin-bottom: 6px; }
.sec-sub { color: var(--ink-3); font-size: 15.5px; margin-bottom: 30px; }

/* 글 한 줄 */
.post { display: grid; grid-template-columns: 1fr 176px; gap: 28px; padding: 28px 0; border-top: 1px solid var(--line); align-items: center; }
.post:first-of-type { border-top: 0; padding-top: 0; }
.chips { display: flex; gap: 7px; margin-bottom: 11px; flex-wrap: wrap; }
.chip { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 7px; background: var(--chip-bg); color: var(--ink-2); }
.chip.on { background: var(--mint-soft); color: #0C7A6E; }
.post h3 { font-size: 20.5px; font-weight: 700; line-height: 1.45; letter-spacing: -.035em; margin-bottom: 7px; }
.post:hover h3 { color: var(--mint); }
.post p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.post .thumb { width: 176px; height: 112px; border-radius: 13px; background: var(--line) center/cover; }
@media (max-width: 620px) {
  .post { grid-template-columns: 1fr; gap: 14px; }
  .post .thumb { width: 100%; height: 168px; order: -1; }
}

/* 옆 칸 */
.side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }
.box { background: #FAFBFC; border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px; }
.box h4 { font-size: 16px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 16px; }
.rank { display: flex; gap: 13px; padding: 11px 0; border-top: 1px solid var(--line); }
.rank:first-of-type { border-top: 0; padding-top: 0; }
.rank .n { color: var(--mint); font-weight: 800; font-size: 15px; flex: none; width: 15px; }
.rank .t { font-size: 15px; font-weight: 600; line-height: 1.5; }
.rank:hover .t { color: var(--mint); }
.box .who { font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.box .who b { color: var(--ink); font-weight: 700; }

/* ── 글 화면 ──────────────────────────────── */
.article { max-width: 760px; margin: 0 auto; padding: 56px 24px 40px; }
.article .chips { margin-bottom: 18px; }
.article h1 { font-size: 38px; font-weight: 800; line-height: 1.32; letter-spacing: -.05em; margin-bottom: 16px; text-wrap: balance; }
.lede { font-size: 18.5px; color: var(--ink-2); line-height: 1.68; margin-bottom: 26px; }
.meta { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--ink-3); padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.meta .sep { color: var(--line-2); }

.body { padding-top: 38px; }
.body h2 {
  font-size: 25px; font-weight: 800; letter-spacing: -.042em; line-height: 1.42;
  margin: 52px 0 16px; text-wrap: balance;
}
.body h2:first-child { margin-top: 0; }
.body h3 { font-size: 19px; font-weight: 700; letter-spacing: -.035em; margin: 34px 0 10px; }
.body p { margin: 0 0 20px; }
.body strong { font-weight: 700; }
.body ul, .body ol { margin: 0 0 22px; padding-left: 22px; }
.body li { margin-bottom: 9px; }
.body img { border-radius: 14px; margin: 34px 0; }
.body figure { margin: 34px 0; }
.body figcaption { font-size: 14px; color: var(--ink-3); text-align: center; margin-top: 11px; }

/* 눈에 띄게 두는 한 줄 */
.pull {
  margin: 34px 0; padding: 22px 26px; border-left: 4px solid var(--mint);
  background: var(--mint-soft); border-radius: 0 14px 14px 0;
  font-size: 19px; font-weight: 700; line-height: 1.6; letter-spacing: -.035em; color: #0B6B60;
}

/* 표 */
.body table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15.5px; }
.body th, .body td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.body th { background: #FAFBFC; font-weight: 700; font-size: 14.5px; color: var(--ink-2); }

hr.rule { border: 0; border-top: 1px solid var(--line); margin: 46px 0; }

/* 짧게 정리 */
.faq { margin: 56px 0 0; padding: 32px 30px; border: 1px solid var(--line); border-radius: 20px; background: #FAFBFC; }
.faq h2 { font-size: 21px; margin: 0 0 6px; }
.faq .hint { font-size: 14.5px; color: var(--ink-3); margin-bottom: 22px; }
.qa { padding: 18px 0; border-top: 1px solid var(--line); }
.qa:first-of-type { border-top: 0; padding-top: 0; }
.qa .q { font-size: 16.5px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 7px; }
.qa .a { font-size: 15.5px; color: var(--ink-2); line-height: 1.7; }

/* 학원 안내 */
.card-info { margin: 44px 0 0; padding: 30px; border-radius: 20px; background: var(--navy); color: #fff; }
.card-info h3 { font-size: 20px; font-weight: 800; letter-spacing: -.04em; margin-bottom: 8px; }
.card-info p { font-size: 15.5px; color: rgba(255,255,255,.72); line-height: 1.75; margin: 0 0 4px; }
.card-info .btns { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.card-info .b {
  padding: 11px 20px; border-radius: 11px; font-weight: 700; font-size: 15px;
  background: var(--mint); color: #fff;
}
.card-info .b.ghost { background: rgba(255,255,255,.12); color: #fff; }

/* ── 꼬리 ────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 44px 0 64px; margin-top: 30px; }
.foot .f-in { display: flex; gap: 44px; flex-wrap: wrap; font-size: 14.5px; color: var(--ink-3); line-height: 1.85; }
.foot b { display: block; color: var(--ink); font-weight: 800; font-size: 16px; margin-bottom: 9px; letter-spacing: -.03em; }
.foot a:hover { color: var(--mint); }

/* ── 우리 채널 아이콘 (인스타·블로그·유튜브·플레이스) ───────── */
.sns { display: flex; gap: 10px; flex-wrap: wrap; }
.sns a {
  width: 44px; height: 44px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line-2);
  color: var(--ink-2); transition: all .16s ease;
}
.sns a:hover { border-color: var(--mint); color: var(--mint); transform: translateY(-2px); }
.sns svg { width: 21px; height: 21px; }

/* 글 아래 채널 줄 */
.sns-row {
  margin: 40px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.sns-row .t { font-size: 15.5px; font-weight: 700; letter-spacing: -.03em; }
.sns-row .t span { display: block; font-size: 14px; font-weight: 500; color: var(--ink-3); margin-top: 3px; }

/* 옆 칸 박스 안에서는 조금 작게 */
.box .sns a { width: 40px; height: 40px; border-radius: 12px; }
.box .sns svg { width: 19px; height: 19px; }

/* 꼬리말 안 */
.foot .sns { margin-top: 12px; }
.foot .sns a { width: 38px; height: 38px; border-radius: 11px; }
.foot .sns svg { width: 18px; height: 18px; }

/* 지점 탭 — 전체 · 동탄역 · 수원 (2026-09-18) */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 26px; }
.tab { font-size: 15px; font-weight: 700; padding: 9px 17px; border-radius: 999px; background: var(--chip-bg); color: var(--ink-2); }
.tab:hover { color: var(--ink); }
.tab.on { background: var(--ink); color: #fff; }
.tab .n { font-weight: 600; opacity: .6; margin-left: 6px; font-variant-numeric: tabular-nums; }
