@charset "UTF-8";
/* ==========================================================================
   민들레 장애인활동지원사 교육기관 — 디자인 시스템
   원천: 손그림 민들레 로고(노랑 꽃·초록 잎·갈색 땅) + 붓 캘리그래피
   ========================================================================== */

@font-face {
  font-family: "Pretendard Variable";
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/PretendardVariable.woff2") format("woff2-variations");
}

:root {
  /* 컬러 토큰 — 로고 이미지에서 추출 */
  --yellow: #f7df3b;        /* 민들레 꽃 노랑: 배경·장식 전용 */
  --yellow-soft: #fdf6cf;   /* 연노랑 배경 */
  --gold: #b8830a;          /* 캘리그래피 강조획: 배지·아이콘 */
  --green: #2e9e44;         /* 잎 초록: 버튼·포인트 */
  --green-dark: #1e7031;    /* 텍스트 대비용 진초록 */
  --green-soft: #e9f5ec;
  --brown: #6b4a2b;         /* 땅 갈색: 구분선·보조 텍스트 */
  --brown-soft: #f3ece2;
  --ink: #20241f;           /* 먹색 본문 */
  --ink-soft: #55594f;
  --cream: #fffdf4;         /* 페이지 배경 미색 */
  --paper: #ffffff;
  --line: #e9e3cf;
  --red: #b3372c;           /* 마감·경고 */

  --font-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-brush: "Nanum Brush Script", var(--font-body);

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 2px 14px rgba(32, 36, 31, 0.08);
  --maxw: 1080px;
}

/* ---------- 리셋·기본 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  word-break: keep-all;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style-position: outside; }
main { display: block; }

/* 접근성: 스킵 링크 · 포커스 */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--green-dark); color: #fff; padding: 10px 18px;
  border-radius: 0 0 10px 0; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- 헤더 ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 20px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img.brand-flower { width: 54px; height: auto; }
.brand .brand-text { line-height: 1.25; }
.brand .brand-text strong { display: block; font-size: 19px; letter-spacing: -0.02em; }
.brand .brand-text span { display: block; font-size: 12.5px; color: var(--ink-soft); }

.gnb ul { display: flex; gap: 4px; list-style: none; }
.gnb a {
  display: block; padding: 10px 13px; text-decoration: none; font-weight: 600;
  font-size: 16px; border-radius: 10px; color: var(--ink); white-space: nowrap;
}
.gnb a:hover { background: var(--yellow-soft); }
.gnb a[aria-current="page"] { color: var(--green-dark); background: var(--green-soft); }

.btn-apply-top {
  background: var(--green-dark); color: #fff; font-weight: 700; text-decoration: none;
  padding: 10px 18px; border-radius: 999px; font-size: 15.5px; white-space: nowrap;
}
.btn-apply-top:hover { background: #175a27; }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--brown);
  border-radius: 10px; padding: 7px 11px; font-size: 16px; font-weight: 700;
  color: var(--brown); cursor: pointer;
}

/* ---------- 히어로 ---------- */
.hero {
  background:
    radial-gradient(ellipse 90% 70% at 85% 10%, var(--yellow-soft) 0%, transparent 60%),
    var(--cream);
  border-bottom: 3px solid var(--yellow);
  overflow: hidden;
}
.hero-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 56px 20px 48px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center;
}
.hero-copy h1 {
  font-family: var(--font-brush);
  font-size: clamp(40px, 5.4vw, 58px);
  font-weight: 400; line-height: 1.28; letter-spacing: 0.01em;
  margin-bottom: 16px;
}
.hero-copy h1 .accent { color: var(--green-dark); }
.hero-copy p.lead { font-size: 18.5px; color: var(--ink-soft); margin-bottom: 28px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { text-align: center; }
.hero-art img { max-width: 340px; margin: 0 auto; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  border-radius: 999px; padding: 14px 28px; font-size: 17px; text-align: center;
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--green-dark); color: #fff; }
.btn-primary:hover { background: #175a27; }
.btn-outline { border-color: var(--brown); color: var(--brown); background: transparent; }
.btn-outline:hover { background: var(--brown-soft); }
.btn-sm { padding: 8px 16px; font-size: 15px; }

/* ---------- 공통 섹션 ---------- */
section.block { padding: 56px 0; }
section.block.tint { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 30px; }
.section-head .brush-label {
  font-family: var(--font-brush); font-size: 26px; color: var(--gold); line-height: 1;
}
.section-head h2 { font-size: 29px; letter-spacing: -0.02em; margin-top: 4px; }
.section-head p.desc { color: var(--ink-soft); margin-top: 8px; }

/* 카드 */
.card-grid { display: grid; gap: 20px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card .card-tag {
  display: inline-block; font-size: 13.5px; font-weight: 700; padding: 3px 12px;
  border-radius: 999px; margin-bottom: 12px;
}
.tag-yellow { background: var(--yellow); color: var(--ink); }
.tag-green { background: var(--green-soft); color: var(--green-dark); }
.tag-brown { background: var(--brown-soft); color: var(--brown); }
.card p { color: var(--ink-soft); font-size: 15.5px; }
.card .price { font-size: 26px; font-weight: 800; color: var(--green-dark); margin: 10px 0 2px; }
.card .price small { font-size: 14px; color: var(--ink-soft); font-weight: 500; }

/* 강점 3가지 */
.feature { text-align: center; padding: 28px 20px; }
.feature .icon {
  width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--yellow-soft); display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.feature h3 { font-size: 18.5px; margin-bottom: 8px; }

/* ---------- 표 ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
table.data {
  width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 640px;
}
table.data caption { text-align: left; padding: 14px 16px 6px; font-weight: 700; font-size: 16px; }
table.data th, table.data td { padding: 13px 14px; border-top: 1px solid var(--line); text-align: center; vertical-align: middle; }
table.data thead th { background: var(--green-soft); color: var(--green-dark); border-top: none; font-size: 15px; }
table.data tbody th { background: var(--yellow-soft); font-weight: 700; }
table.data td.left, table.data th.left { text-align: left; }
table.data tr:hover td { background: #fbfaf2; }

/* 첫화면 교육일정 — 가장 중요한 영역이라 위아래로 넓게 잡고 행 간격도 키운다 (2026-08-20).
   .sched-block 안으로 한정해 다른 페이지의 표는 건드리지 않는다. */
section.block.sched-block { padding: 84px 0; }
.sched-block .section-head { margin-bottom: 34px; }
.sched-block table.data th,
.sched-block table.data td { padding: 17px 14px; }
.sched-block table.data thead th { font-size: 16px; }
.sched-block #homeSchedBody td { font-size: 16px; }

/* 상태 배지 */
.badge {
  display: inline-block; font-size: 13.5px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.badge-open { background: var(--green-dark); color: #fff; }
.badge-soon { background: var(--yellow); color: var(--ink); }
.badge-wait { background: var(--brown-soft); color: var(--brown); }
.badge-closed { background: #e5e5e0; color: #6d6d68; }

/* 안내 박스 */
.notice-box {
  border-left: 5px solid var(--gold); background: var(--yellow-soft);
  padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin: 22px 0;
  font-size: 15.5px;
}
.notice-box.green { border-left-color: var(--green); background: var(--green-soft); }
.notice-box.red { border-left-color: var(--red); background: #faeeec; }
.notice-box > strong:first-child { display: block; margin-bottom: 4px; }
.notice-box ul { margin-left: 20px; }

/* 절차 스텝 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.step {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px 18px; position: relative; counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute; top: -14px; left: 18px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--green-dark);
  color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 17px; margin: 6px 0 6px; }
.step p { font-size: 14.5px; color: var(--ink-soft); }

/* 신청 절차 도식 (교육안내) */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 34px 0 10px; }
.flow-step { position: relative; text-align: center; padding: 0 14px; }
.flow-step .f-ico {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 12px;
  background: var(--yellow-soft); border: 3px solid var(--yellow);
  display: flex; align-items: center; justify-content: center; font-size: 36px;
  position: relative; box-shadow: var(--shadow);
}
.flow-step .f-num {
  position: absolute; top: -7px; right: -7px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-dark); color: #fff; font-weight: 800; font-size: 14.5px;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--cream);
}
.flow-step:not(:last-child)::after {
  content: "➜"; position: absolute; right: -13px; top: 28px;
  font-size: 24px; color: var(--brown); opacity: .7;
}
.flow-step h3 { font-size: 16.5px; margin-bottom: 6px; }
.flow-step p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 6px; }
  .flow-step { display: grid; grid-template-columns: 84px 1fr; gap: 0 16px; text-align: left; padding: 10px 0 26px; }
  .flow-step .f-ico { grid-row: 1 / 3; margin: 0; }
  .flow-step h3 { align-self: end; }
  .flow-step:not(:last-child)::after {
    content: "⬇"; right: auto; left: 30px; top: auto; bottom: -8px; font-size: 22px;
  }
}

/* 이수시간 구성 막대 (교육안내) */
.hourbar-wrap { margin: 8px 0 4px; }
.hourbar-label { display: flex; justify-content: space-between; font-size: 14.5px; font-weight: 700; margin-bottom: 6px; }
.hourbar-label small { font-weight: 500; color: var(--ink-soft); }
.hourbar { display: flex; height: 38px; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.hourbar span { display: flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 700; color: #fff; white-space: nowrap; }
.hb-theory { background: var(--green-dark); }
.hb-skill { background: #3d8a4e; }
.hb-field { background: var(--brown); }
.hourbar-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 13.5px; color: var(--ink-soft); }
.hourbar-legend i { display: inline-block; width: 13px; height: 13px; border-radius: 4px; margin-right: 5px; vertical-align: -1px; }

/* 반별 안내 카드 (교육일정) */
.class-card { padding: 0; overflow: hidden; }
.class-card .cc-head { padding: 16px 24px; font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.class-card.weekday .cc-head { background: var(--green-soft); color: var(--green-dark); }
.class-card.saturday .cc-head { background: var(--yellow-soft); color: #7a5a02; }
.class-card .cc-head .cc-ico { font-size: 24px; }
.class-card dl { margin: 0; }
.class-card dl > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 11px 24px; border-top: 1px solid var(--line); font-size: 15px; }
.class-card dt { font-weight: 800; color: var(--green-dark); }
.class-card.saturday dt { color: #7a5a02; }
.class-card dd { color: var(--ink); }
.class-card .cc-note { padding: 12px 24px; background: #faf8ef; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--ink-soft); }

/* 버스 노선 배지 (오시는길) */
.bus-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.bus-badges span {
  display: inline-block; padding: 4px 13px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: var(--green-soft); color: var(--green-dark); border: 1px solid #cfe7d5;
}
.bus-badges span.seat { background: #eef3fb; color: #2456a6; border-color: #ccdcf3; }
.bus-badges span.wide { background: var(--brown-soft); color: var(--brown); border-color: #e3d5c3; }

/* 절차 상세 설명 카드 */
.flow-detail { border-left: 6px solid var(--yellow); margin-bottom: 14px; }
.flow-detail .fd-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.flow-detail .fd-badge {
  min-width: 34px; height: 34px; border-radius: 50%; background: var(--green-dark); color: #fff;
  font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center;
}
.flow-detail h3 { font-size: 19px; }
.flow-detail ul { margin: 0 0 0 20px; color: var(--ink-soft); font-size: 15.5px; display: grid; gap: 7px; }
.flow-detail .fd-warn { color: var(--red); font-weight: 700; }

/* 정의 리스트(교육 개요) */
.spec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 22px; }
.spec-list .spec {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 20px; display: flex; gap: 14px; align-items: baseline;
}
.spec-list .spec dt { font-weight: 800; color: var(--green-dark); min-width: 86px; font-size: 15.5px; }
.spec-list .spec dd { color: var(--ink); font-size: 15.5px; }

/* FAQ 아코디언 */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 17px;
  display: flex; gap: 12px; align-items: baseline;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q."; color: var(--gold); font-weight: 800; }
.faq-item summary::after { content: "+"; margin-left: auto; color: var(--brown); font-size: 22px; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { border-bottom: 1px dashed var(--line); }
.faq-item .answer { padding: 16px 22px 20px; color: var(--ink-soft); font-size: 15.5px; }
.faq-item .answer p + p { margin-top: 8px; }

/* ---------- 페이지 헤더(서브) ---------- */
.page-head {
  background: linear-gradient(0deg, var(--cream), var(--yellow-soft));
  border-bottom: 2px solid var(--yellow);
  padding: 40px 0 34px;
}
.page-head .crumb { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.page-head .crumb a { text-decoration: none; }
.page-head .crumb a:hover { text-decoration: underline; }
.page-head h1 { font-size: 33px; letter-spacing: -0.02em; }
.page-head .brush-sub { font-family: var(--font-brush); font-size: 24px; color: var(--gold); margin-top: 4px; }

/* 2단 본문(인사말 등) */
.two-col { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col img { max-width: 220px; margin: 0 auto; }
}

/* ---------- 연혁 ---------- */
.timeline { border-left: 3px solid var(--yellow); margin-left: 8px; padding-left: 26px; }
.timeline .tl-item { position: relative; padding-bottom: 22px; }
.timeline .tl-item::before {
  content: ""; position: absolute; left: -34px; top: 7px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--green); border: 3px solid var(--cream);
}
.timeline .tl-year { font-weight: 800; color: var(--green-dark); font-size: 17px; }
.timeline .tl-item p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- 연락 정보 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-align: center;
}
.contact-card .label { font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; }
.contact-card .value { font-size: 19px; font-weight: 800; color: var(--green-dark); }
.contact-card .value a { text-decoration: none; color: inherit; }
.contact-card .sub { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }

.map-frame { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.map-frame iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- 푸터 ---------- */
.site-footer {
  background: var(--ink); color: #d9d8d0; margin-top: 70px;
  border-top: 5px solid var(--yellow);
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 40px 20px 30px; }
.footer-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; margin-bottom: 26px; }
.site-footer h4 { color: var(--yellow); font-size: 15.5px; margin-bottom: 10px; }
.site-footer p, .site-footer li { font-size: 14px; line-height: 1.8; }
.site-footer ul { list-style: none; }
.site-footer a { color: #d9d8d0; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.footer-bottom { border-top: 1px solid #3a3e38; padding-top: 18px; font-size: 13px; color: #a2a19a; }

/* ---------- 빠른서비스 플로팅 (우측 중앙 고정) ---------- */
.quickbar {
  position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 90;
  display: flex; flex-direction: column; gap: 10px;
}
.quickbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 92px; height: 88px; border-radius: 20px; text-decoration: none;
  font-size: 14.5px; font-weight: 700; gap: 5px; line-height: 1.25; text-align: center;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.quickbar a .q-ico { font-size: 30px; line-height: 1; }
.quickbar a.q-apply { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.quickbar a:hover { transform: translateY(-2px); }
@media (max-width: 900px) {
  /* 모바일: 본문을 가리지 않도록 하단 고정 바로 전환 */
  .quickbar {
    left: 0; right: 0; bottom: 0; top: auto; transform: none;
    flex-direction: row; gap: 0;
    border-top: 2px solid var(--yellow); box-shadow: 0 -3px 12px rgba(32,36,31,.12);
  }
  .quickbar a {
    flex: 1; width: auto; height: 58px; border-radius: 0; border: none;
    flex-direction: row; gap: 7px; font-size: 14.5px; box-shadow: none;
  }
  .quickbar a .q-ico { font-size: 21px; }
  body { padding-bottom: 58px; }
}

/* ---------- 접속 팝업 ---------- */
#edu-popup { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; }
.edu-popup-backdrop { position: absolute; inset: 0; background: rgba(32, 36, 31, 0.55); }
.edu-popup-box {
  position: relative; background: var(--cream); border-radius: var(--radius-lg);
  border-top: 6px solid var(--yellow); box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  width: min(92vw, 440px); padding: 28px 26px 0;
}
.edu-popup-eyebrow { font-family: var(--font-brush); font-size: 22px; color: var(--gold); line-height: 1; }
.edu-popup-title { font-size: 21px; margin: 6px 0 10px; }
.edu-popup-body { color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; max-height: 55vh; overflow-y: auto; }
.edu-popup-body img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 8px 0; }
.edu-popup-actions { margin-top: 16px; }
.edu-popup-foot {
  display: flex; justify-content: space-between; gap: 10px;
  border-top: 1px solid var(--line); margin-top: 20px; padding: 12px 0;
}
.edu-popup-foot button {
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 600; color: var(--ink-soft); padding: 6px 8px;
}
.edu-popup-foot button:hover { color: var(--ink); text-decoration: underline; }

/* 푸터 관리자 링크 */
.footer-bottom .admin-link {
  display: inline-block; color: #d9d8d0; font-size: 13px; font-weight: 700;
  margin-left: 12px; padding: 3px 12px; border: 1px solid #55594f; border-radius: 999px;
  text-decoration: none;
}
.footer-bottom .admin-link:hover { color: var(--yellow); border-color: var(--yellow); }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .gnb {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .gnb.open { display: block; }
  .gnb ul { flex-direction: column; padding: 10px 16px 16px; }
  .gnb a { padding: 13px 14px; font-size: 17px; }
  .nav-toggle { display: block; }
  .btn-apply-top { display: none; }

  .hero-inner { grid-template-columns: 1fr; padding: 40px 20px 36px; text-align: center; }
  .hero-copy p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-art img { max-width: 240px; }

  .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .spec-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 22px; }
  section.block { padding: 42px 0; }
  section.block.sched-block { padding: 60px 0; }
  .sched-block table.data th,
  .sched-block table.data td { padding: 14px 12px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

/* ──────────────────────────────────────────────────────────
   휴대폰에서 표 읽기 (2026-08-21)

   문제: table.data 에 min-width:640px 이 걸려 있어 390px 화면에서
        표가 화면 밖으로 311~378px 넘쳤다. .table-wrap 이 가로 스크롤을
        열어 주긴 하지만, 옆으로 밀어야만 '신청' 버튼과 '상태'가 보였다.
        교육일정은 첫화면에서 가장 중요한 영역인데 그게 안 보였다.

   해결: 좁은 화면에서는 표를 **한 줄 = 카드 한 장**으로 바꾼다.
        각 칸 왼쪽에 data-label 값을 항목명으로 붙여 어떤 값인지 알 수 있게 한다.
        thead 는 지우지 않고 화면 밖으로 보내 스크린리더는 그대로 읽게 둔다.
   ────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .table-wrap {
    overflow-x: visible;      /* 옆으로 밀 일이 없어졌다 */
    border: none;
    background: transparent;
    border-radius: 0;
  }

  table.data { min-width: 0; width: 100%; display: block; font-size: 15px; }

  /* 표머리는 숨기되 없애지 않는다 — 스크린리더는 계속 읽어야 한다 */
  table.data thead {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }

  table.data tbody { display: block; }

  table.data tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    margin-bottom: 12px;
    padding: 4px 0;
    overflow: hidden;
  }
  table.data tr:hover td { background: transparent; }

  table.data th,
  table.data td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    text-align: right;
    border-top: 1px solid var(--line);
    padding: 10px 15px;
  }
  table.data tr > *:first-child { border-top: none; }

  /* 항목명 — JS·HTML 에서 넣어 준 data-label 을 그대로 쓴다 */
  table.data td[data-label]::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-weight: 700;
    color: var(--green-dark);
    text-align: left;
    white-space: nowrap;
  }

  /* 행의 머리글(표준과정 / 전문과정)은 카드 제목처럼 */
  table.data tbody th[scope="row"] {
    background: var(--yellow-soft);
    justify-content: flex-start;
    font-size: 16px;
  }

  /* 왼쪽 정렬 칸도 카드 안에서는 오른쪽으로 붙여야 항목명과 짝이 맞는다 */
  table.data td.left { text-align: right; }

  /* 월 칸은 rowspan 으로 여러 줄을 묶는데, 카드형에서는 묶을 수가 없다.
     교육기간에 날짜가 이미 들어 있으므로 좁은 화면에서는 감춘다. */
  table.data td[rowspan] { display: none; }

  /* '일정을 불러오는 중' 같은 안내 줄은 카드 꾸밈 없이 한 줄로 */
  table.data td[colspan] { justify-content: center; text-align: center; }
  table.data td[colspan]::before { content: none; }

  /* 신청 버튼은 손가락으로 누르기 좋게 */
  table.data td .btn { padding: 9px 18px; font-size: 14.5px; }
}

/* 하단 고정 바에 본문 끝이 가리지 않도록 자리를 비워 둔다 */
@media (max-width: 900px) {
  body { padding-bottom: 76px; }
}
