/* 영어공부 글 공용 스타일 — 색은 홈(index.html)과 같게 맞춘다 */
:root {
  --main: #2563eb;
  --main-dark: #1e40af;
  --accent: #f59e0b;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f3f6fb;
  --line: #e5e7eb;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Noto Sans KR', sans-serif; color: var(--text); background: var(--bg); line-height: 1.85; word-break: keep-all; padding-bottom: 64px; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.btn { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; padding: 13px 26px; border-radius: 999px; font-size: 16px; }
.btn:hover { filter: brightness(.95); }

header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { font-size: 21px; font-weight: 900; } .logo em { color: var(--main); font-style: normal; }
header nav { display: flex; gap: 20px; font-weight: 500; font-size: 15px; align-items: center; }
header nav a:hover { color: var(--main); }
header nav .btn { padding: 8px 18px; font-size: 14px; }

/* 목록 */
.blog-hero { background: linear-gradient(135deg, var(--main-dark), var(--main)); color: #fff; padding: 64px 0 56px; }
.blog-hero h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 900; margin-bottom: 8px; }
.blog-hero p { opacity: .9; }
.post-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 48px 0 80px; }
.post-card { display: block; border: 1px solid var(--line); border-radius: 16px; padding: 26px; transition: border-color .15s, transform .15s; }
.post-card:hover { border-color: var(--main); transform: translateY(-2px); }
.post-card .tag { display: inline-block; background: var(--bg-soft); color: var(--main); font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin-bottom: 10px; }
.post-card h2 { font-size: 19px; line-height: 1.45; margin-bottom: 8px; }
.post-card p { color: var(--muted); font-size: 15px; }
.post-card time { display: block; color: var(--muted); font-size: 13px; margin-top: 12px; }

/* 글 본문 */
.crumb { font-size: 14px; color: var(--muted); padding-top: 28px; }
.crumb a:hover { color: var(--main); }
article { padding: 16px 0 40px; }
article .tag { display: inline-block; background: var(--bg-soft); color: var(--main); font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin: 12px 0 10px; }
article h1 { font-size: clamp(26px, 4.6vw, 36px); line-height: 1.35; font-weight: 900; margin-bottom: 12px; }
article .meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
article .summary { background: var(--bg-soft); border-left: 4px solid var(--main); padding: 18px 22px; border-radius: 0 12px 12px 0; margin-bottom: 32px; }
article h2 { font-size: 23px; line-height: 1.4; margin: 44px 0 14px; padding-top: 8px; }
article h3 { font-size: 19px; margin: 28px 0 10px; }
article p { margin-bottom: 16px; }
article ul, article ol { margin: 0 0 18px 22px; }
article li { margin-bottom: 6px; }
article strong { color: var(--main-dark); }
article table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; }
article th, article td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
article th { background: var(--bg-soft); }
.table-scroll { overflow-x: auto; }
.ex { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 16px 20px; margin: 0 0 20px; }
.ex p { margin-bottom: 6px; }
.ex .en { font-weight: 700; }
.ex .ko { color: var(--muted); font-size: 15px; }

.cta-box { background: linear-gradient(135deg, var(--main-dark), var(--main)); color: #fff; border-radius: 20px; padding: 36px 28px; text-align: center; margin: 48px 0 24px; }
.cta-box h2 { font-size: 23px; margin: 0 0 8px; }
.cta-box p { opacity: .9; margin-bottom: 20px; }
.cta-box .tel { display: block; margin-top: 14px; opacity: .9; }

.more { border-top: 1px solid var(--line); padding: 32px 0 64px; }
.more h2 { font-size: 19px; margin-bottom: 14px; }
.more ul { list-style: none; }
.more li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.more a:hover { color: var(--main); }

footer { background: #111827; color: #9ca3af; padding: 40px 0; font-size: 14px; }
footer .logo { color: #fff; margin-bottom: 6px; }

.bottombar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--main-dark); color: #fff; }
.bottombar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.bottombar .btn { padding: 10px 22px; font-size: 15px; }

@media (max-width: 760px) {
  header nav .hide-m { display: none; }
  .post-list { grid-template-columns: 1fr; }
  .bottombar .msg { display: none; }
}
