/* 블록 공통 부품 스타일. 페이지 본문은 모두 이 부품들의 조합이다(tools/koreaedulab/build.js 가 생성). */

/* ---------- 섹션 틀 ---------- */
.b { position: relative; padding: 84px 0; isolation: isolate; }
.b__in { width: min(1240px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.b.has-bg { color: #fff; overflow: hidden; }
.b__bg { position: absolute; inset: 0; z-index: -1; }
.b__bg img { width: 100%; height: 100%; object-fit: cover; }
.b__bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, var(--dim, 0)); }
.b__bg[style*="--tint"]::after { background: rgba(255, 255, 255, var(--tint)); }
.b.has-bg:not(.on-dark) { color: var(--ink); }
.b.on-dark { color: #fff; }
.b + .b-text, .b-text + .b:not(.has-bg):not([style]) { padding-top: 0; }
.b-text + .b-tabsec, .b-text + .b-slider, .b-text + .b-items { padding-top: 0; }

/* ---------- 글 ---------- */
.b-eyebrow { font-size: 15px; font-weight: 700; letter-spacing: 2px; color: var(--brand); margin-bottom: 14px; }
.b-eyebrow--lg { font-size: clamp(26px, 3vw, 42px); letter-spacing: -.01em; line-height: 1.2; margin-bottom: 18px; color: var(--ink); }
.b-eyebrow--chip { display: inline-block; padding: 6px 14px; background: var(--brand); color: #fff; letter-spacing: 1px; font-weight: 500; font-size: clamp(14px, 1.4vw, 20px); }
.on-dark .b-eyebrow, .on-dark .b-eyebrow--lg { color: #fff; }
.b-title { font-size: clamp(26px, 3.1vw, 46px); font-weight: 700; line-height: 1.35; letter-spacing: -.04em; }
.b-title--en { letter-spacing: -.01em; }
.b-title em { font-style: normal; color: var(--brand); }
.on-dark .b-title em { color: #9cc9f0; }
.b-lead { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.75; color: var(--ink-sub); }
.b-p { font-size: clamp(15.5px, 1.2vw, 18px); line-height: 1.85; color: var(--ink-sub); }
.on-dark .b-lead, .on-dark .b-p { color: #eef2f6; }
.b-title + .b-lead, .b-title + .b-p, .b-eyebrow--lg + .b-lead { margin-top: 18px; }
.b-lead + .b-lead, .b-p + .b-p { margin-top: 10px; }
.b-slash { font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: .02em; text-align: center; }
.b-checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; }
.b-checks li { padding: 12px 22px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 17px; font-weight: 600; }
.b-checks li::before { content: "✔"; margin-right: 8px; color: var(--brand); }

.b-text { text-align: center; }
.b-text .b-copy { max-width: 980px; margin-inline: auto; }
.b-band { padding: 34px 0; text-align: center; }
.b-band .b-p, .b-band .b-lead { color: var(--ink); font-weight: 500; font-size: clamp(16px, 1.5vw, 20px); }
.b-band + .b { padding-top: 84px; }
.b-banner { padding: 120px 0; text-align: center; }
.b-banner .b-copy { max-width: 1040px; margin-inline: auto; }
.b-banner .b-title { margin-bottom: 26px; }
.b-banner .b-eyebrow--lg { font-weight: 500; }

/* 서브 페이지 머리 */
.b-pagehead { padding: 76px 0 30px; text-align: center; }
.b-pagehead h1 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; letter-spacing: -.04em; }
.b-pagehead + .b-band { margin-top: 10px; }

/* ---------- 메인 배너 ---------- */
.b-hero { display: flex; align-items: center; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); padding: 90px 0 110px; }
.b-hero .b__bg img { animation: b-hero-zoom 16s ease-out both; }
@keyframes b-hero-zoom { from { transform: scale(1.1); } to { transform: none; } }
.b-hero .b__in { width: min(var(--wrap), 100%); padding: 0 var(--gutter); }
.b-hero .b-title { font-size: clamp(32px, 4.4vw, 66px); line-height: 1.3; margin: 22px 0 30px; }
.b-hero .b-lead { max-width: 900px; font-size: clamp(16.5px, 1.5vw, 22px); color: var(--ink); }
.b-hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); padding-bottom: 34px; font-size: 11px; font-weight: 700; letter-spacing: 3px; color: var(--ink-sub); }
.b-hero__scroll::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 26px; background: var(--brand); animation: b-hero-scroll 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes b-hero-scroll { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.js-motion .b-hero__copy > * { animation: b-rise .9s var(--ease) both; }
.js-motion .b-hero__copy > :nth-child(2) { animation-delay: .12s; }
.js-motion .b-hero__copy > :nth-child(3) { animation-delay: .24s; }
@keyframes b-rise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }

/* ---------- 사진 + 글 ---------- */
.b-media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.b-media--rev .b-media__img { order: 2; }
.b-media__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.b-media__img--multi { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.b-media__copy .b-title { font-size: clamp(24px, 2.5vw, 38px); }

/* ---------- 카드 묶음 ---------- */
.b-cards { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 22px; }
.b-card { overflow: hidden; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.b-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(22, 83, 126, .14); }
.b-card__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--ease); }
.b-card:hover .b-card__img img { transform: scale(1.05); }
.b-card__img { overflow: hidden; }
.b-card__copy { padding: 22px 22px 26px; }
.b-card .b-title { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; color: var(--ink); }
.b-card .b-p { margin-top: 8px; font-size: 15.5px; line-height: 1.7; }
.on-dark .b-card { background: #2c2c2c; border-color: #3a3a3a; }
.on-dark .b-card .b-title { color: #fff; }
.b-cards--round .b-card, .b-cards--icon .b-card { text-align: center; border: 0; background: transparent; }
.b-cards--round .b-card:hover, .b-cards--icon .b-card:hover { box-shadow: none; }
.b-cards--round .b-card__img { width: min(180px, 60%); margin: 0 auto; border-radius: 50%; }
.b-cards--round .b-card__img img { aspect-ratio: 1; }
.b-cards--icon .b-card { padding: 26px 16px; background: #fff; border: 1px solid var(--line); }
.b-cards--icon .b-card__img { width: 56px; margin: 0 auto 4px; }
.b-cards--icon .b-card__img img { aspect-ratio: 1; object-fit: contain; }
.b-cards--icon .b-card__copy { padding: 10px 0 0; }

/* ---------- 탭 ---------- */
.b-tabs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-bottom: 34px; }
.b-tabs__tab { min-height: 46px; padding: 0 22px; border-radius: 9px; background: #f3f6f4; font-size: 17px; color: #222; transition: background-color .25s, color .25s; }
.b-tabs__tab:hover { background: #cfe2f3; color: var(--brand); }
.b-tabs__tab[aria-selected="true"] { background: var(--brand); color: #fff; font-weight: 700; }
.b-tabs__panel[hidden] { display: none; }
.b-tabs__panel > .b { padding: 0; border-radius: var(--radius); overflow: hidden; animation: b-tab-in .6s var(--ease) both; }
.b-tabs__panel > .b + .b { margin-top: 28px; }
.b-tabs__panel > .b[style], .b-tabs__panel > .b.has-bg { padding: 48px 0; }
.b-tabs__panel > .b > .b__in { width: 100%; }
.b-tabs__panel > .b[style] > .b__in, .b-tabs__panel > .b.has-bg > .b__in { width: calc(100% - 64px); }
.b-tabs__panel .b-banner { padding: 90px 0; }
.b-tabs__panel .b-image img { width: 100%; border-radius: var(--radius); }
@keyframes b-tab-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.b-tabs--side { display: grid; grid-template-columns: 260px 1fr; gap: 44px; align-items: start; }
.b-tabs--side .b-tabs__list { flex-direction: column; margin: 0; gap: 0; }
.b-tabs--side .b-tabs__tab { justify-content: flex-start; text-align: left; border-radius: 0; background: transparent; border-top: 1px solid #d3d3d3; padding: 16px 6px; min-height: 0; }
.b-tabs--side .b-tabs__tab[aria-selected="true"] { background: transparent; color: var(--brand); border-top: 2px solid var(--brand); }

/* ---------- 슬라이드 ---------- */
.b-slider { overflow: hidden; }
.b-slides { position: relative; overflow: visible; }
.b-slide { position: relative; width: min(74vw, 330px); overflow: hidden; border-radius: var(--radius); background: #0e2233; }
.b-slide img { width: 100%; aspect-ratio: 530 / 640; object-fit: cover; transition: transform .8s var(--ease); }
.b-slide:hover img { transform: scale(1.05); }
.b-slide__copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 22px; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .78)); color: #fff; }
.b-slide .b-title { font-size: 19px; line-height: 1.4; }
.b-slides--wide { overflow: hidden; border-radius: var(--radius); }
.b-slides--wide .b-slide { width: 100%; border-radius: 0; }
.b-slides--wide .b-slide img { aspect-ratio: auto; min-height: 220px; }
.b-slides--wide .b-slide__copy { top: 0; display: flex; align-items: center; justify-content: center; padding: 20px 70px; background: rgba(0, 0, 0, .35); text-align: center; }
.b-slides--wide .b-slide .b-title { font-size: clamp(20px, 2.6vw, 40px); }
.b-slides__arrow { position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 4px 16px rgba(0, 0, 0, .18); }
.b-slides__arrow::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-left: 2px solid #111; border-bottom: 2px solid #111; }
.b-slides__arrow--prev { left: 10px; }
.b-slides__arrow--prev::before { transform: translate(-30%, -50%) rotate(45deg); }
.b-slides__arrow--next { right: 10px; }
.b-slides__arrow--next::before { transform: translate(-70%, -50%) rotate(-135deg); }

/* ---------- 표 ---------- */
.b-table { overflow-x: auto; }
.b-table table { width: 100%; border-collapse: collapse; font-size: 17px; }
.b-table th { padding: 16px 18px; background: var(--brand); color: #fff; font-weight: 600; text-align: center; }
.b-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: center; }
.b-table td:last-child { text-align: left; }

/* ---------- 지도 ---------- */
.b-map .b__in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.b-map__frame iframe { width: 100%; height: 420px; border: 0; border-radius: var(--radius); }
.b-map__info .b-title { font-size: clamp(24px, 2.4vw, 34px); margin-bottom: 18px; }
.b-map__info .b-p { margin-top: 0; }
.b-map__info .b-p + .b-p { margin-top: 2px; }

/* ---------- 단독 이미지 ---------- */
.b-image figure { margin: 0; }
.b-image img { width: 100%; border-radius: var(--radius); }

/* ---------- 폼 구역 ---------- */
.b-form .b__in { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; align-items: start; }
.b-form__copy:empty { display: none; }
.b-form__copy:empty + .b-form__form { grid-column: 1 / -1; max-width: 860px; margin-inline: auto; width: 100%; }
.b-form__form { padding: 34px 34px 38px; border-radius: var(--radius); background: #fff; box-shadow: 0 10px 40px rgba(22, 83, 126, .1); }
.b-form .form { border-top: 0; }
.b-form .form__row { grid-template-columns: 150px 1fr; }

/* ---------- 게시판 자리(글 없음) ---------- */
.b-board { padding: 46px 0; }
.b-board__title { font-size: 24px; font-weight: 700; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.b-board__empty { padding: 40px 0; border-bottom: 1px solid var(--line); text-align: center; color: var(--ink-sub); }

@media (max-width: 1024px) {
  .b { padding: 56px 0; }
  .b-band { padding: 24px 0; }
  .b-band + .b { padding-top: 56px; }
  .b-banner { padding: 76px 0; }
  .b-pagehead { padding: 48px 0 20px; }
  .b-hero { padding: 70px 0 100px; }
  .b-media, .b-map .b__in, .b-form .b__in, .b-tabs--side { grid-template-columns: 1fr; gap: 26px; }
  .b-media--rev .b-media__img { order: 0; }
  .b-cards { grid-template-columns: repeat(min(var(--cols, 3), 2), minmax(0, 1fr)); gap: 14px; }
  .b-tabs__list { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .b-tabs__tab { flex: none; font-size: 15px; padding: 0 16px; min-height: 42px; }
  .b-tabs--side .b-tabs__list { flex-direction: row; }
  .b-tabs--side .b-tabs__tab { border-top: 0; border-bottom: 2px solid transparent; padding: 10px 12px; }
  .b-tabs--side .b-tabs__tab[aria-selected="true"] { border-top: 0; border-bottom-color: var(--brand); }
  .b-tabs__panel > .b[style] > .b__in, .b-tabs__panel > .b.has-bg > .b__in { width: calc(100% - 36px); }
  .b-form__form { padding: 22px 18px 26px; }
  .b-form .form__row { grid-template-columns: 1fr; }
  .b-map__frame iframe { height: 300px; }
  .b-slides__arrow { display: none; }
  .b-table table { font-size: 15px; }
  .b-table th, .b-table td { padding: 12px 10px; }
}
@media (max-width: 560px) {
  .b-cards--photo { grid-template-columns: 1fr; }
  .b-checks li { font-size: 15px; padding: 10px 16px; }
}
