/*
 * 2026 UI renewal layer
 * Research basis: barrun.co.kr, happy3586.com, jmswc.or.kr, rehabcenter.or.kr,
 * and the current aejiwon.org brand palette. The legacy stylesheet remains
 * below this layer so old board and editor markup keeps its structural
 * contracts.
 */
:root {
  --brand-bright: #253988;
  --brand-bright-hover: #3058a0;
  --brand-mid: #3058a0;
  --navy: #253988;
  --navy2: #3058a0;
  --util-bg: rgba(48, 88, 160, 0.94);
  --ink: #212121;
  --ink2: #4f4f4f;
  --muted: #757575;
  --line: #e2e2e2;
  --page-canvas-bg: #fbfdff;
  --bg-soft: #f7f6f2;
  --beige: #f8f4ec;
  --orange: #f7941d;
  --red: #e8442e;
  --green: #4caf50;
  --footer-bg: #2b2b2b;
  --focus: #253988;
  --radius: 10px;
  --maxw: 1200px;
  --contentw: 820px;
  --font: 'NotoSansKR', 'NanumGothic', 'Malgun Gothic', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  color: var(--ink2);
  background: var(--page-canvas-bg);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -.015em;
}
body, button, input, select, textarea { font-family: var(--font); }
a, button, input, select, textarea { touch-action: manipulation; -webkit-tap-highlight-color: rgba(48, 88, 160, .16); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.inner { max-width: var(--maxw); padding-inline: 28px; }
h1, h2, h3, h4 { color: var(--ink); letter-spacing: -.035em; text-wrap: balance; }
h1[id], h2[id], h3[id], h4[id] { scroll-margin-top: 86px; }
select { background-color: #fff; color: var(--ink); }
.m-drawer-panel { overscroll-behavior: contain; }
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 12px 18px;
  background: #fff;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 800;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 10px 22px;
  background: var(--navy);
  color: #fff;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -.01em;
}
.btn:hover { background: var(--navy2); }
.btn.line { border-color: var(--navy); color: var(--navy); }
.btn.line:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn.sm { min-height: 40px; font-size: 14px; }

/* Header */
.util-bar { border-bottom: 0; background: var(--util-bg); color: #fff; font-size: 13px; }
.util-bar .inner { height: 38px; }
.util-links { height: 100%; }
.util-links > li { min-height: 100%; display: flex; align-items: center; padding-inline: 12px; }
.util-links li + li::before { background: rgba(255, 255, 255, .4); }
.util-social-link { display: inline-flex; align-items: center; gap: 5px; line-height: 1; white-space: nowrap; }
.util-social-icon { width: 15px; height: 15px; flex: 0 0 15px; }
.util-social-icon--youtube { width: 22px; height: 22px; flex-basis: 22px; }
.util-social-link:hover { text-decoration: none; }
.util-social-link:hover span { text-decoration: underline; }
.logo-bar .inner { min-height: 92px; padding-block: 14px; }
.logo img { height: 55px; }
.header-tel { color: var(--navy); }
.header-tel .tel-number { font-size: 28px; color: var(--navy); letter-spacing: -.02em; }
.btn-my-apply {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -.01em;
}
.btn-my-apply:hover { background: var(--navy2); }
.gnb-bar { border-color: var(--line); }
.gnb-bar.is-stuck { box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.gnb { justify-content: space-between; }
.gnb-item { flex: 1 1 auto; }
.gnb-item > a {
  position: relative;
  padding: 16px 10px 15px;
  color: #000;
  font-family: var(--font);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}
.gnb-item > a::after {
  position: absolute;
  right: 28%;
  bottom: -1px;
  left: 28%;
  height: 3px;
  background: var(--navy2);
  content: '';
  opacity: 0;
}
.gnb-item:hover > a, .gnb-item:focus-within > a, .gnb-item.on > a { color: var(--navy2); }
.gnb-item:hover > a::after, .gnb-item:focus-within > a::after, .gnb-item.on > a::after { opacity: 1; }
.gnb-item:hover .gnb-sub, .gnb-item:focus-within .gnb-sub { display: block; }
.gnb-sub {
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy2);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .1);
}
.gnb-sub li a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 8px 14px;
  font-family: var(--font);
  font-size: 15.5px;
  text-align: left;
}
.gnb-sub li a:hover, .gnb-sub li a[aria-current] { background: var(--bg-soft); color: var(--navy2); }

/* Main hero */
.main-banner { background: #fff; }
.main-banner .bs-slide.has-caption img { aspect-ratio: 1900 / 650; min-height: 0; }
.main-banner .bs-slide:is(.is-contain, .is-fill) { position: relative; aspect-ratio: 1900 / 650; overflow: hidden; background: var(--footer-bg); }
.main-banner .bs-slide:is(.is-contain, .is-fill) > a { display: block; height: 100%; }
.main-banner .bs-slide:is(.is-contain, .is-fill) picture { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }
.main-banner .bs-slide.is-contain .bs-slide-image { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.main-banner .bs-slide.is-fill .bs-slide-image { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: fill; }
.main-banner .bs-caption,
.main-banner .bs-caption.is-light {
  top: 50%;
  /* 전체 페이지 그리드 대신 배너의 왼쪽 안전 영역을 쓴다.
     화살표와 겹치지 않고, 인물·문서가 시작되는 52% 지점 전에서 멈춘다. */
  left: clamp(80px, 8%, 88px);
  width: min(440px, calc(52% - 80px));
  max-width: none;
  padding: 26px 28px 28px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--navy2);
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  text-shadow: none;
}
.main-banner .bs-caption-kicker {
  padding: 0;
  border: 0;
  color: var(--navy2);
  font-size: 14px;
  letter-spacing: .02em;
}
.main-banner .bs-caption strong { margin-top: 10px; font-size: clamp(28px, 2.65vw, 40px); }
.main-banner .bs-caption-description { max-width: 32em; margin-top: 10px; font-size: 18px; font-weight: 600; }
.main-banner .bs-caption-cta {
  margin-top: 22px;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding: 0 0 2px;
  background: none;
  color: var(--navy);
  font-size: 15px;
}
.bs-arrow { width: 48px; height: 48px; background: rgba(0, 0, 0, .3); }
.bs-dots { gap: 2px; bottom: 12px; }
.bs-dots button,
.main-banner .bs-dots button {
  position: relative;
  width: 30px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.bs-dots button::after {
  position: absolute;
  top: 13px;
  right: 5px;
  left: 5px;
  height: 2px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .32);
  content: '';
  transition: inset .2s, background .2s;
}
.bs-dots button.on,
.main-banner .bs-dots button.on { width: 38px; background: none; }
.bs-dots button.on::after { right: 0; left: 0; background: #fff; }

/* 공식 aejiwon.org 메인 배너와 같은 데스크톱 폭(70%)으로 맞춘다.
   활동지원사 교육원 시설 슬라이드는 같은 1900×650 비율을 유지한 채 폭만 함께 줄인다. */
.site-header--home .gnb-bar { border-bottom-color: transparent; }
.main-banner { width: 70%; margin-inline: auto; border-block: 1px solid var(--line); }

/* 홈의 두 사진 슬라이더는 같은 제어 기준선과 안쪽 여백을 쓴다. */
.main-banner .bs-arrow,
.facility-section .facility-slider .bs-arrow {
  top: 50%;
  width: 48px;
  height: 48px;
}
.main-banner .bs-arrow.prev,
.facility-section .facility-slider .bs-arrow.prev { left: 18px; }
.main-banner .bs-arrow.next,
.facility-section .facility-slider .bs-arrow.next { right: 18px; }

/* 메인 히어로는 원형 버튼을 걷어내고 화살표만 남긴다. 클릭 영역은 유지하고,
   20px 아이콘만 정확히 10% 키워 접근성과 요청한 시각 크기를 함께 지킨다. */
.main-banner .bs-arrow,
.main-banner .bs-arrow:hover {
  border-radius: 0;
  background: transparent;
}
.main-banner .bs-arrow svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .72));
}

/* Home section rhythm */
.home-section { padding: 88px 0; background: #fff; }
.main-banner + .home-section { border-top: 0; }
.home-section + .home-section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 34px; }
.home-section .section-head::before {
  display: block;
  width: 38px;
  height: 3px;
  margin-bottom: 16px;
  background: var(--navy);
  content: '';
}
.section-head-left { position: relative; padding-right: 190px; text-align: left; }
.section-head .label, .panel-head .label, .contact-panel .label {
  margin-bottom: 7px;
  color: var(--navy2);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
}
.section-head h2 { font-size: clamp(30px, 3vw, 40px); font-weight: 800; }
.section-head p { max-width: 620px; margin-top: 8px; color: var(--muted); font-size: 17px; }
.section-more {
  position: absolute;
  right: 0;
  bottom: 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid var(--navy);
  color: var(--navy);
  font-size: 15px;
  font-weight: 750;
}

/* Main task cards */
.quick-section { background: #fff; }
.quick-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quick-card {
  min-height: 216px;
  justify-content: flex-end;
  border: 1px solid rgba(37, 57, 136, .12);
  border-radius: 12px;
  padding: 0;
  background-position: center;
  box-shadow: none;
  transition: border-color .18s, transform .18s;
}
.quick-card::before { background: rgba(13, 20, 22, .13); }
.quick-card > span:first-child {
  width: calc(100% - 28px);
  margin: 0 14px;
  padding: 16px 18px 10px;
  border-radius: 6px 6px 0 0;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
}
.quick-card .q-title { font-size: 23px; line-height: 1.3; }
.quick-card .q-sub { margin-top: 4px; color: var(--ink2); font-size: 15px; line-height: 1.5; opacity: 1; }
.quick-card .q-go {
  width: calc(100% - 28px);
  margin: 0 14px 14px;
  border-radius: 0 0 6px 6px;
  padding: 5px 18px 14px;
  background: rgba(255, 255, 255, .94);
  color: var(--navy2);
  font-size: 14px;
  font-weight: 750;
}
.quick-card:hover { border-color: var(--navy2); box-shadow: none; transform: translateY(-3px); }

/* Courses */
.course-section { background: #fff; }
.course-grid {
  /* 컨테이너 폭을 100%로 써 기존 91.2% 대비 카드 폭을 약 10% 확장한다. */
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 40px 30px;
  margin-inline: auto;
}
.course-card {
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: none;
  transition: border-color .18s, transform .18s;
}
.course-card:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, .12); transform: translateY(-3px); }
.course-card .card-visual { aspect-ratio: 1 / 1; background: #fff; }
.course-card .cc-body { padding: 14px 16px 0; }
.course-card .si-name { display: block; font-size: 19px; line-height: 1.45; }
.course-card .si-summary { font-size: 15px; }
.course-card .si-price { font-size: 21px; }
.course-card .si-stock { font-size: 14px; }
.course-card .card-actions { display: block; padding: 16px; }
.course-card .card-actions .btn { display: flex; width: 100%; align-items: center; justify-content: center; }

/* Notices and contact */
.home-info-section { border-block: 1px solid var(--line); background: #fff; }
.home-info-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr); gap: 46px; }
.notice-panel, .contact-panel { min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; }
.panel-head h2, .contact-panel h2 { font-size: 30px; }
.panel-head > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  font-size: 15px;
  font-weight: 750;
}
.notice-list { border-top: 2px solid var(--navy); }
.notice-list li { border-bottom: 1px solid var(--line); }
.notice-list a { min-height: 61px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 13px 4px; }
.notice-list a:hover .notice-title { color: var(--navy2); text-decoration: underline; }
.notice-title { min-width: 0; overflow: hidden; color: var(--ink); font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.notice-list time { flex: 0 0 auto; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.contact-panel { border-left: 1px solid var(--line); padding-left: 42px; }
.contact-panel h2 { margin-top: 4px; line-height: 1.4; }
.contact-tel { display: block; margin-top: 24px; color: var(--navy); }
.contact-tel span { display: block; color: var(--muted); font-size: 14px; font-weight: 700; }
.contact-tel strong { display: block; font-size: 38px; line-height: 1.25; letter-spacing: -.03em; }
.contact-hours { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.contact-hours div { display: flex; gap: 14px; font-size: 15px; }
.contact-hours dt { flex: 0 0 72px; color: var(--ink); font-weight: 700; }
.contact-hours dd { color: var(--muted); }
.contact-location { min-height: 44px; display: inline-flex; align-items: center; margin-top: 16px; color: var(--navy2); font-weight: 750; }

/* Facility, gallery and partners */
.facility-band {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  background-position: center 44%;
}
.facility-band::before { position: absolute; inset: 0; background: rgba(0, 0, 0, .23); content: ''; }
.facility-caption {
  position: relative;
  width: min(560px, calc(100% - 40px));
  margin: 0 max(calc((100vw - var(--maxw)) / 2 + 28px), 28px) 46px;
  border-left: 5px solid var(--navy2);
  padding: 20px 24px;
  background: rgba(255, 255, 255, .94);
}
.facility-caption strong { display: block; color: var(--ink); font-size: 26px; }
.facility-caption span { display: block; margin-top: 4px; color: var(--ink2); font-size: 16px; }
.facility-slider { max-width: var(--maxw); margin: 88px auto; border-radius: 10px; }
.facility-section { padding-bottom: 88px; background: #fff; }
.facility-section .facility-slider {
  width: 70%;
  max-width: none;
  margin: 40px auto 0;
}
.facility-section .facility-band { margin-top: 40px; }

/* Home activity gallery: the legacy Board2 album remains the source of truth. */
.home-gallery-section { padding: 76px 0 80px; border-bottom: 1px solid var(--line); background: #fff; }
.home-gallery__head { max-width: 720px; margin: 0 auto 26px; text-align: center; }
.home-gallery__eyebrow { margin: 0; color: var(--navy2); font-size: 14px; font-weight: 800; letter-spacing: .12em; }
.home-gallery__title { margin: 6px 0 0; color: var(--ink); font-size: clamp(30px, 3vw, 40px); font-weight: 800; line-height: 1.35; }
.home-gallery__description { margin: 8px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.home-gallery__toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-height: 44px; margin-bottom: 12px; }
.home-gallery__all { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; border-bottom: 1px solid currentColor; color: var(--navy); font-size: 15px; font-weight: 750; }
.home-gallery__all:hover { color: var(--navy2); text-decoration: none; }
.home-gallery__rail { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; padding: 22px; background: #fff; }
.home-gallery__track { display: flex; gap: 16px; margin: 0; padding: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-behavior: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.home-gallery__track::-webkit-scrollbar { display: none; }
.home-gallery__item { min-width: 0; flex: 0 0 calc((100% - 48px) / 4); scroll-snap-align: start; scroll-snap-stop: always; }
.home-gallery__link { display: block; color: var(--ink); }
.home-gallery__link:hover { color: var(--navy); text-decoration: none; }
.home-gallery__image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #edf0f4; }
.home-gallery__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.home-gallery__link:hover .home-gallery__image img { transform: scale(1.025); }
.home-gallery__caption { display: block; overflow: hidden; margin-top: 12px; color: currentColor; font-size: 16px; font-weight: 700; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.home-gallery__empty { margin: 0; border-top: 2px solid var(--navy); border-bottom: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: 16px; text-align: center; }
.home-gallery__empty a { color: var(--navy); font-weight: 750; }
.gallery-section { background: #fff; }
.gallery-strip { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-item { border: 1px solid var(--line); border-radius: 8px; box-shadow: none; }
.gallery-item:hover { transform: translateY(-3px); }
.gallery-item .g-title { min-height: 68px; display: flex; align-items: center; padding: 12px 14px; color: var(--ink); font-size: 16px; line-height: 1.45; white-space: normal; }
/* Subpage frame */
.sub-wrap { padding: 58px 0 110px; background: var(--page-canvas-bg); }
.sub-wrap .inner { gap: 50px; }
.lnb { flex-basis: 240px; }
.lnb-card { border-color: var(--line); border-radius: 8px; }
.lnb-head { background: var(--navy); padding: 30px 22px 24px; }
.lnb-head .lh-en { font-size: 12px; letter-spacing: .12em; }
.lnb-head .lh-title { margin-top: 18px; font-size: 25px; }
.lnb-head .lh-bar { width: 36px; background: rgba(255, 255, 255, .5); }
.lnb-menu li { border-color: #f0ede6; background: #fff; }
.lnb-menu a { min-height: 48px; display: flex; align-items: center; padding: 10px 16px; font-size: 16px; }
.lnb-menu li.on { background: #5b79ad; }
.lnb-menu li.on a { border-left: 0; color: #fff; }
.lnb-center { margin-top: 24px; border-top: 1px solid var(--line); padding: 20px 4px; }
.lnb-center .lc-title { font-size: 17px; }
.lnb-center .lc-title small { color: var(--muted); }
.lnb-center .lc-tel { font-size: 25px; }
.lnb-center .lc-note, .lnb-center .lc-hours { font-size: 13px; }
.breadcrumb { border: 0; padding: 0; color: var(--muted); font-size: 14px; }
.breadcrumb .sep::before { content: '/'; color: #bbb; }
.page-title {
  margin: 18px 0 44px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  font-size: clamp(32px, 3.5vw, 42px);
}
.page-title::after { display: block; width: 44px; height: 4px; margin-top: 18px; background: var(--brand-bright); content: ''; }
.page-fragment, .intro-body, .post-body { color: var(--ink2); font-size: 17px; line-height: 1.8; }
.page-fragment p { margin: 12px 0; }
.page-fragment .cont_text { color: var(--ink2); font-size: 17px; line-height: 1.8; }
.page-fragment .con_list li { font-size: 17px; line-height: 1.8; }
.page-fragment table th, .page-fragment table td { padding: 13px 14px; font-size: 16px; }
.page-fragment table thead th { background: var(--navy); }
.page-fragment table thead th:nth-child(even) { background: var(--navy); }
.section-sub-title { font-size: 25px; }
.schedule-image-zoom { display: block; border: 1px solid var(--line); background: #fff; }
.schedule-image-zoom:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.schedule-image-selector { margin: 0 0 28px; }
.schedule-image-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.schedule-image-button {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink2);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}
.schedule-image-button:hover { border-color: var(--navy2); color: var(--navy); }
.schedule-image-button.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }
.schedule-image-button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.schedule-image-list { display: grid; gap: 42px; }
.schedule-image-list .schedule-image { margin: 0; scroll-margin-top: 92px; }
.schedule-image-list .schedule-image[hidden] { display: none !important; }
.schedule-image figcaption { margin-top: 12px; color: var(--ink2); font-size: 15px; line-height: 1.65; text-align: left; }
.schedule-image figcaption strong { display: block; color: var(--ink); font-size: 17px; }
.schedule-image figcaption span { display: block; color: var(--navy); font-weight: 700; }

/* Greeting: fixed frame, administrator-owned body only */
.greeting-page { width: 100%; max-width: none; }
.greeting-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 2fr);
  min-height: 510px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: 12px;
  background: #fff;
}
.greeting-hero-copy { display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); padding: 44px 36px; text-align: left; }
.page-kicker { color: var(--navy2); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.greeting-hero h3 { margin-top: 14px; font-size: clamp(30px, 4vw, 42px); line-height: 1.3; }
.greeting-hero-copy p { margin-top: 26px; border-left: 3px solid var(--brand-bright); padding-left: 15px; color: var(--ink2); font-size: 17px; line-height: 1.65; }
.greeting-visual { min-width: 0; align-self: stretch; }
.greeting-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.greeting-visual--logo { display: flex; align-items: center; justify-content: center; padding: 58px 72px; background: var(--bg-soft); }
.greeting-visual--logo img { width: min(100%, 620px); height: auto; object-fit: contain; }
.greeting-copy { max-width: 760px; margin: 52px 0 0; text-align: left; }
.greeting-copy p { margin: 0 0 22px; font-size: 21px !important; font-weight: 700; line-height: 1.85; text-align: left !important; }
.greeting-copy p:has(> strong > em) { margin-bottom: 34px; color: var(--navy); font-size: 23px !important; font-weight: 700; }
.greeting-copy p:not(:last-of-type) > * { font-size: inherit !important; font-weight: inherit !important; }
.greeting-copy p:has(> strong > em) em { font-style: normal; }
.greeting-copy p:last-of-type { margin-top: 36px; font-size: 18px !important; font-weight: 400; text-align: left !important; }
.greeting-copy p:has(> br:only-child) { display: none; }
.greeting-copy br { line-height: 1.2; }

/* Mission and vision: preserved copy, rebuilt as readable HTML */
.mission-page { max-width: 900px; }
.mission-visual { overflow: hidden; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 12px; background: #fff; }
.mission-visual img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.purpose-section { margin-top: 54px; }
.mission-heading span, .statement-card > span { color: var(--navy2); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.mission-heading h3, .statement-card h3 { margin-top: 4px; font-size: 30px; }
.purpose-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 22px; border-top: 2px solid var(--navy); }
.purpose-list li { min-height: 94px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); padding: 18px 20px; }
.purpose-list li:nth-child(odd) { border-right: 1px solid var(--line); }
.purpose-list strong { color: var(--orange); font-size: 15px; font-variant-numeric: tabular-nums; }
.purpose-list span { color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1.55; }
.mission-statements { display: grid; grid-template-columns: .85fr 1.4fr; gap: 18px; margin-top: 54px; }
.statement-card { border: 1px solid var(--line); border-top: 5px solid var(--navy2); border-radius: 8px; padding: 30px; background: #fff; }
.statement-card p, .statement-card li { color: var(--ink2); font-size: 17px; line-height: 1.75; }
.statement-card p, .statement-card ul { margin-top: 20px; }
.statement-card li { position: relative; padding-left: 17px; }
.statement-card li + li { margin-top: 12px; }
.statement-card li::before { position: absolute; top: .72em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); content: ''; }
.vision-card { border-top-color: var(--orange); background: #fff; }

/* Institution introduction: one shared content rhythm across all seven pages */
.about-content {
  width: 100%;
  max-width: none;
  color: var(--ink2);
  font-size: 18px;
  line-height: 1.8;
  text-align: left;
}
.about-content :is(h1, h2, h3) { color: var(--ink); text-align: left; text-wrap: balance; }
.about-content :is(p, li, dd) { overflow-wrap: break-word; }
.about-content .page-fragment { width: 100%; color: inherit; font-size: inherit; line-height: inherit; }
.about-content .page-fragment :is(span, strong, em) { line-height: inherit; }
.about-content .section-sub-title,
.about-content .org-renewal__heading h2 {
  margin: 0 0 24px;
  border-left: 4px solid var(--brand-bright);
  padding-left: 16px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.35;
}
.about-content .section-sub-title { margin-top: 60px; padding-bottom: 0; border-bottom: 0; }
.about-content :is(.greeting-hero, .mission-visual, .statement-card, .org-renewal__chart, .org-renewal__table-wrap, .loc-map, .loc-info, .pgal-item img) {
  border-radius: 10px;
}

/* F8F4EC는 브랜드 토큰으로만 남기고, 모든 실제 표면은 흰색으로 통일한다. */
.homecare-detail-content .application_wrap .section .box h2 span { background: #fff; }

/* Greeting and mission use the same full-width visual frame. */
.about-content--greeting .greeting-page,
.about-content--mission .mission-page { width: 100%; max-width: none; }
.about-content--mission .mission-visual img { aspect-ratio: 16 / 9; object-position: center; }
.about-content--mission .purpose-section,
.about-content--mission .mission-statements { margin-top: 60px; }

/* Long-form reading pages keep a stable, left-aligned measure. */
.about-content--intro .intro-body { max-width: 900px; }
.about-content--rules .rules-document { max-width: 960px; color: var(--ink2); }
.about-content--rules .rules-chapter { margin-top: 84px; scroll-margin-top: 100px; }
.about-content--rules .rules-chapter:first-child { margin-top: 0; }
.about-content--rules .rules-chapter > h3 {
  margin: 0;
  border-bottom: 2px solid var(--navy);
  padding: 0 0 18px;
  color: var(--ink);
  font-size: 29px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.025em;
  text-align: left;
  text-wrap: balance;
}
.about-content--rules .rules-article { border-bottom: 1px solid var(--line); padding: 28px 0 30px; }
.about-content--rules .rules-article h4 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: -.02em;
  text-align: left;
  text-wrap: pretty;
}
.about-content--rules .rules-article-body { color: var(--ink2); font-size: 18px; line-height: 1.9; }
.about-content--rules .rules-article-body p { margin: 8px 0 0; overflow-wrap: break-word; word-break: keep-all; }
.about-content--rules .rules-article-body p:first-child { margin-top: 0; }
.about-content--rules .rules-supplement .rules-article-body { border-bottom: 1px solid var(--line); padding: 28px 0 30px; }

/* Administrator-written institution copy follows the same heading and body scale. */
.about-content--intro .intro-body > * { font-size: inherit !important; }
.about-content--intro .intro-body :is(span, strong, em) { font-size: inherit !important; }
.about-content--intro .intro-body > p { margin: 0 0 18px; }
.about-content--intro .intro-body > p:has(> br:only-child) { display: none; }
.about-content--intro .intro-body > p:has(> strong:only-child) {
  margin: 46px 0 18px;
  color: var(--ink);
  font-size: 22px !important;
  font-weight: 800;
  line-height: 1.5;
}
.about-content--intro .intro-body > p:first-child {
  margin: 0 0 36px;
  border-left: 4px solid var(--brand-bright);
  padding-left: 16px;
  color: var(--navy);
  font-size: 23px !important;
}
.about-content--intro .intro-body ol { display: grid; gap: 10px; margin: 20px 0 36px; padding-left: 24px; }
.about-content--intro .intro-body li { padding-left: 4px; font-size: 18px; }
.about-content--intro .intro-body table { margin: 24px 0 42px; border-top: 2px solid var(--navy); }
.about-content--intro .intro-body table tr:first-child td { background: var(--navy); color: #fff; }
.about-content--intro .intro-body table tr:first-child strong { color: inherit; }
.about-content--intro .pgal-page { gap: 18px; }
.about-content--intro .pgal-item img { border: 1px solid var(--line); }

/* History: retain the verified year-button view and one-year-at-a-time timeline. */
.about-content--history .page-fragment { max-width: 1000px; }
.about-content--history .history-year-selector { margin-bottom: 42px; }
.about-content--history .history-year-buttons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.about-content--history .history-year-button {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink2);
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.about-content--history .history-year-button:hover { border-color: var(--navy2); color: var(--navy); }
.about-content--history .history-year-button.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}
.about-content--history .history-year-button--all {
  grid-column: 1 / -1;
  letter-spacing: -.02em;
}
.about-content--history .history-year-button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.about-content--history .st_history_list ul { position: relative; margin: 0 !important; padding: 0 !important; }
.about-content--history .st_history_list ul::before {
  position: absolute;
  top: 42px;
  bottom: 42px;
  left: 140px;
  width: 2px;
  height: auto;
  border: 0;
  background: var(--line);
  content: '';
}
.about-content--history .st_history_list ul > li { margin: 0; padding: 0 !important; list-style: none; }
.about-content--history .history-year-panel[hidden] { display: none !important; }
.about-content--history .st_history_list ul > li > dl {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding: 34px 0 !important;
}
.about-content--history .st_history_list ul > li:first-child > dl { padding-top: 0 !important; }
.about-content--history .st_history_list ul > li > dl > dt {
  position: relative;
  float: none;
  margin: 0;
  padding: 2px 28px 0 0;
  color: var(--navy);
  font-size: 31px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.03em;
}
.about-content--history .st_history_list ul > li > dl > dt::before {
  position: absolute;
  z-index: 2;
  top: 13px;
  right: -7px;
  left: auto;
  width: 14px;
  height: 14px;
  margin: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--navy2);
  box-sizing: border-box;
  content: '';
}
.about-content--history .st_history_list ul > li > dl > dt::after { display: none; }
.about-content--history .st_history_list ul > li > dl > dd { overflow: visible; margin: 0; padding: 0 0 0 34px !important; }
.about-content--history .st_history_list ul > li > dl > dd > p {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  margin: 0 0 22px;
  padding: 0;
}
.about-content--history .st_history_list ul > li > dl > dd > p:last-child { margin-bottom: 0; }
.about-content--history .st_history_list .hist_date {
  float: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--orange) !important;
  font-size: 15px !important;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1.65 !important;
  text-align: left !important;
}
.about-content--history .st_history_list .hist_cont_wrap { display: block; min-width: 0; }
.about-content--history .st_history_list .hist_cont { display: block; color: var(--ink2) !important; font-size: 17px !important; line-height: 1.65 !important; }

/* Organization and location share the same quiet surface and heading treatment. */
.about-content--org .org-renewal {
  --org-ink: var(--ink);
  --org-line: #d5ddeb;
  --org-blue: #253988;
  --org-navy: #314c7b;
  --org-plum: #3d5e95;
  --org-amber: #4b68a0;
}
.about-content--org .org-renewal__heading { margin-bottom: 24px; }
.about-content--org .org-renewal__chart {
  border-color: var(--line);
  background: #f8f9fc;
}
.about-content--org .org-renewal__table-wrap { border-color: var(--line); box-shadow: none; }
.about-content--org .org-renewal__node { box-shadow: none; }
.about-content--org .org-renewal__team { border-color: #d5ddeb; box-shadow: none; }
.about-content--org .org-renewal__team h3 {
  background: var(--org-blue);
  color: #fff;
  text-align: center;
}
.about-content--org .org-renewal .org-renewal__team li { color: var(--ink2); }
.about-content--org .org-renewal__table th { background: var(--org-navy); color: #fff; }
.about-content--org .org-renewal__table th small { color: #dce7fb; }
.about-content--org .org-renewal__table td { color: var(--navy); }
.about-content--location .loc-wrap { gap: 24px; }
.about-content--location .loc-map,
.about-content--location .loc-info { border-color: var(--line); }
.about-content--location .loc-info { flex-basis: 390px; padding: 30px 26px; }
.about-content--location .loc-name { margin-bottom: 22px; border-bottom: 2px solid var(--navy); padding-bottom: 16px; font-size: 21px; line-height: 1.45; }
.about-content--location .loc-dl { gap: 12px; margin: 12px 0; font-size: 16px; }
.about-content--location .loc-dl dt { flex-basis: 96px; }
.about-content--location .loc-dl dd { line-height: 1.65; }
.about-content--location .loc-subtitle { margin-bottom: 16px; font-size: 20px; }
.about-content--location .loc-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  font-size: 15px;
}
.about-content--location .loc-parking__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.about-content--location .loc-parking__item {
  display: grid;
  min-width: 0;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  border-top: 1px solid #e7ebf1;
  padding: 14px 0;
}
.about-content--location .loc-parking__item:first-child {
  border-top: 0;
  padding-top: 2px;
}
.about-content--location .loc-parking__marker {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid #cdd8e8;
  border-radius: 4px;
  background: #eef4fc;
  color: var(--navy2);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}
.about-content--location .loc-parking__item--onsite .loc-parking__marker {
  border-color: #d3e2c5;
  background: #f0f7e9;
  color: #4e7929;
}
.about-content--location .loc-parking__content { min-width: 0; }
.about-content--location .loc-parking__name {
  display: inline;
  color: var(--ink);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.about-content--location .loc-parking__address {
  margin-top: 3px;
  color: var(--ink2);
  font-size: 14px;
  font-style: normal;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.about-content--location .loc-parking__fee {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  margin-left: 7px;
  border-radius: 999px;
  padding: 2px 9px;
  background: #e7f2dc;
  color: #3f6b1f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  vertical-align: 1px;
}
.about-content--location :is(.loc-btn, .loc-map-fallback-link):focus-visible,
.about-content--intro .pgal-arrow:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

@media (min-width: 993px) {
  /* The information panel may be taller; the map frame should stop at the actual map height. */
  .about-content--location .loc-wrap { align-items: flex-start; }
}

/* 배너 폭이 좁아지는 태블릿에서는 사진 위의 텍스트를 고집하지 않는다.
   이미지와 문구를 차례로 보여 주어 인물·행동 장면을 가리지 않는다. */
@media (min-width: 769px) and (max-width: 1100px) {
  .main-banner .bs-caption,
  .main-banner .bs-caption.is-light {
    position: static;
    width: 100%;
    max-width: none;
    padding: 20px 24px 22px;
    border-left: 0;
    border-top: 4px solid var(--navy2);
    background: #fff;
    transform: none;
  }
  .main-banner .bs-caption strong { font-size: 32px; }
  .main-banner .bs-caption-description { font-size: 16px; }
  .main-banner .bs-caption-cta { margin-top: 14px; }
  .main-banner .bs-arrow { top: 12vw; }
  .main-banner .bs-dots { bottom: auto; top: calc(24vw - 31px); }
}

@media (max-width: 768px) {
  .about-content { font-size: 17px; }
  .about-content .section-sub-title,
  .about-content .org-renewal__heading h2 { font-size: 26px; }
  .about-content--mission .mission-visual img { aspect-ratio: 3 / 2; }
  .about-content--rules .rules-chapter { margin-top: 64px; scroll-margin-top: 80px; }
  .about-content--rules .rules-chapter > h3 { padding-bottom: 15px; font-size: 25px; }
  .about-content--rules .rules-article { padding: 24px 0 26px; }
  .about-content--rules .rules-article h4 { margin-bottom: 12px; font-size: 19px; }
  .about-content--rules .rules-article-body { font-size: 17px; line-height: 1.85; }
  .about-content--rules .rules-article-body p { margin-top: 7px; }
  .about-content--intro .intro-body li { font-size: 17px; }
  .about-content--history .history-year-selector { margin-bottom: 32px; }
  .about-content--history .history-year-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .about-content--history .history-year-button { min-height: 50px; font-size: 17px; }
  .about-content--history .st_history_list ul { border-left: 2px solid var(--line); padding-left: 20px !important; }
  .about-content--history .st_history_list ul::before { display: none; }
  .about-content--history .st_history_list ul > li > dl { display: block; padding: 26px 0 !important; }
  .about-content--history .st_history_list ul > li:first-child > dl { padding-top: 0 !important; }
  .about-content--history .st_history_list ul > li > dl > dt { margin-bottom: 18px; padding: 0; font-size: 27px; }
  .about-content--history .st_history_list ul > li > dl > dt::before { display: none; }
  .about-content--history .st_history_list ul > li > dl > dd { padding: 0 !important; }
  .about-content--history .st_history_list ul > li > dl > dd > p { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .about-content--location .loc-info { padding: 24px 20px; }
  .about-content--location .loc-dl { display: grid; grid-template-columns: 88px minmax(0, 1fr); }
}

/* Boards, forms and account flows */
.board-toolbar, .board-table th, .board-table td, .post-head .meta, .post-nav li { font-size: 15px; }
.board-table { border-top-color: var(--navy); }
.board-table th { padding-block: 15px; background: var(--bg-soft); }
.board-table td { padding-block: 15px; }
.post-head { border-top-color: var(--navy); padding: 24px 8px; }
.post-head h3 { font-size: 25px; }
.post-body { padding-block: 38px 50px; }
.form-table { border-top-color: var(--navy); }
.form-table th { width: 180px; padding: 16px; font-size: 16px; }
.form-table td { padding: 13px 16px; }
.form-table input[type=text], .form-table input[type=tel], .form-table input[type=email], .form-table input[type=date], .form-table input[type=password], .form-table select, .form-table textarea {
  min-height: 48px;
  border-radius: 6px;
  padding: 10px 13px;
  font-size: 16px;
}
.auth-wrap { max-width: 520px; margin-block: 76px 120px; }
.auth-card { border-color: var(--line); border-radius: 10px; padding: 42px; box-shadow: none; }
.auth-card h2 { font-size: 30px; }
.auth-field label, .auth-extra { font-size: 15px; }
.auth-field input { min-height: 50px; font-size: 16px; }

/* Admin: same typography and calmer hierarchy */
.admin-wrap { max-width: 1680px; margin-top: 48px; }
.admin-head { border-bottom: 2px solid var(--navy); padding-bottom: 20px; }
.admin-head h2 { font-size: 32px; }
.admin-head p { font-size: 15px; }
.admin-body { grid-template-columns: 240px minmax(0, 1fr); gap: 30px; margin-top: 26px; }
.admin-side { border-color: var(--line); border-radius: 8px; }
.as-group { padding: 11px 16px; background: var(--bg-soft); color: var(--muted); font-size: 13px; }
.as-menu a { min-height: 46px; display: flex; align-items: center; padding: 10px 16px; font-size: 15px; }
.as-menu a.on { background: var(--navy); }
.admin-card { border-color: var(--line); border-radius: 8px; padding: 28px; }
.admin-card h3 { font-size: 21px; }
.admin-guide { border-left: 4px solid var(--navy2); border-radius: 4px; padding: 16px 18px; font-size: 15px; }
.admin-form .af-row label { font-size: 15px; }
.admin-form .af-row input[type=text], .admin-form .af-row input[type=date], .admin-form .af-row select,
.admin-search input, .admin-search select, .admin-textarea { min-height: 44px; font-size: 15px; }
.admin-table th, .admin-table td { font-size: 14.5px; }

/* Footer */
.site-footer { border: 0; border-top: 1px solid #e5e5e5; background: var(--page-canvas-bg); }
.f-inner { max-width: var(--maxw); display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 56px; padding: 44px 28px 48px; }
.f-inner::after { display: none; }
.f-logo { float: none; margin: 4px 0 0; }
.f-logo img { filter: none; opacity: 1; }
.f-info {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(330px, 1.4fr) minmax(190px, .8fr) minmax(210px, .9fr);
  align-items: start;
  gap: 28px;
  margin: 0;
}
.f-info__group { min-width: 0; }
.f-info__title {
  margin: 0 0 9px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.35;
}
.f-organization-name {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}
.f-line, .f-line a, .f-policy a { color: #646464; font-size: 14px; line-height: 1.8; }
.f-line + .f-line { margin-top: 2px; }
.f-info__contact .f-item { display: block; margin: 0; }
.f-policy { display: flex; flex-wrap: wrap; gap: 5px 14px; margin: 0; }
.f-policy a { margin: 0; }
.f-info__legal { width: min(100%, 230px); justify-self: end; }
.f-policy a:first-child { color: #646464; }
.btn-top { width: 48px; height: 48px; border-radius: 6px; background: #fcb034; color: #fff; box-shadow: 0 5px 14px rgba(0, 0, 0, .14); }

/* Screen-reader only text */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Main: text-free, two-row marquee for affiliated and public institution logos */
.partner-section { overflow: hidden; padding: 34px 0; background: #fff; }
.partner-section .partner-strip { width: 70%; display: grid; gap: 14px; overflow: hidden; margin-inline: auto; border: 0; padding: 22px 0; background: #fff; }
.partner-section .partner-marquee { width: 100%; margin: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent); }
.partner-section .partner-track { gap: 34px; animation-duration: 76s; }
.partner-section .partner-marquee--second .partner-track { animation-delay: -38s; animation-duration: 82s; }
.partner-section .partner-track a,
.partner-section .partner-logo {
  width: 220px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  padding: 8px 18px;
  background: #fff;
}
.partner-section .partner-track img { width: auto; height: auto; max-width: 100%; max-height: 45px; object-fit: contain; }
.partner-section .partner-track img:is([src^="/thum_img/"], [src^="/uploads/pages/"]) { max-height: 68px; }
.partner-section .partner-marquee--partners .partner-track a,
.partner-section .partner-marquee--partners .partner-logo { width: 260px; height: 95px; }
.partner-section .partner-marquee--partners .partner-track img { max-height: 68px; }
.partner-section .partner-marquee--partners .partner-track img:is([src^="/thum_img/"], [src^="/uploads/pages/"]) { max-height: 103px; }
.partner-section .partner-marquee:focus-within .partner-track { animation-play-state: paused; }

/* Institution calendar */
.institution-calendar { max-width: 1200px; margin: 0 auto; }
.calendar-head { margin-bottom: 24px; }
.calendar-head > p { margin: 0 0 20px; color: var(--muted); font-size: 17px; }
.calendar-nav {
  display: grid;
  grid-template-columns: 48px minmax(180px, auto) 48px 64px;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.calendar-nav h3 { margin: 0 10px; font-size: 28px; text-align: center; }
.calendar-nav-button,
.calendar-today-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}
.calendar-nav-button { padding: 0; line-height: 1; }
.calendar-nav-button svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.calendar-today-link { font-size: 15px; }
.calendar-nav-button:hover,
.calendar-today-link:hover { border-color: var(--navy2); color: var(--navy2); }
.calendar-table-wrap { overflow-x: auto; border-top: 2px solid var(--navy); }
.calendar-table { width: 100%; min-width: 860px; table-layout: fixed; border-collapse: collapse; }
.calendar-table th { height: 50px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); font-size: 16px; }
.calendar-table th:first-child { color: #cf3f37; }
.calendar-table th:last-child { color: #3467b2; }
.calendar-table td { height: 142px; border: 1px solid var(--line); padding: 10px; vertical-align: top; background: #fff; }
.calendar-table td.is-outside { background: #fafafa; }
.calendar-day { width: 31px; height: 31px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink); font-size: 15px; font-weight: 700; }
.calendar-table td:first-child .calendar-day { color: #cf3f37; }
.calendar-table td:last-child .calendar-day { color: #3467b2; }
.calendar-table td.is-today { background: #f4f7fc; }
.calendar-table td.is-today .calendar-day { background: var(--navy); color: #fff; }
.calendar-events { display: grid; gap: 5px; margin-top: 7px; }
.calendar-events a { display: block; border-radius: 4px; padding: 5px 7px; background: #edf2fa; color: var(--navy); font-size: 14px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.calendar-events a:hover { background: var(--navy); color: #fff; }
.calendar-month-list { margin-top: 42px; border-top: 2px solid var(--ink); }
.calendar-list-head { min-height: 64px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 12px 4px; }
.calendar-list-head h3 { margin: 0; font-size: 22px; }
.calendar-list-head > span { color: var(--muted); font-size: 15px; }
.calendar-month-list > ol > li { display: grid; grid-template-columns: 82px 1fr; gap: 22px; border-bottom: 1px solid var(--line); padding: 19px 6px; }
.calendar-month-list > ol > li > time { display: flex; align-items: baseline; justify-content: center; gap: 3px; color: var(--navy); }
.calendar-month-list > ol > li > time strong { font-size: 26px; }
.calendar-month-list > ol > li > time span { font-size: 15px; }
.calendar-month-list li ul { display: grid; gap: 7px; }
.calendar-month-list li ul a { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--ink); font-size: 17px; font-weight: 650; }
.calendar-month-list li ul a:hover { color: var(--navy2); }
.calendar-status { margin: 0; padding: 34px 20px; background: var(--bg-soft); color: var(--muted); font-size: 17px; text-align: center; }
.calendar-status.error { margin-bottom: 18px; color: #b43b32; }

/* Education guide application path */
.edu-guide-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 44px;
  border-block: 1px solid #d8e0ef;
  padding: 24px 28px;
  background: #f6f8fc;
}
.edu-guide-action div { display: grid; gap: 4px; }
.edu-guide-action strong { color: var(--ink); font-size: 20px; }
.edu-guide-action span { color: var(--muted); font-size: 16px; }
.edu-guide-action .btn { flex: 0 0 auto; min-width: 150px; }

/* Public-interest business: supplied final copy */
.public-business-content { color: var(--ink2); }
.public-business-lead { max-width: 920px; margin-bottom: 54px; }
.public-business-lead h3 { margin: 0 0 18px; font-size: 31px; }
.public-business-lead p { margin: 0; font-size: 18px; line-height: 1.85; word-break: keep-all; }
.public-project-list { border-top: 2px solid var(--ink); }
.public-project { display: grid; grid-template-columns: minmax(240px, .75fr) minmax(0, 1.75fr); gap: 50px; border-bottom: 1px solid var(--line); padding: 38px 4px 40px; }
.public-project-title { display: flex; align-items: flex-start; gap: 16px; }
.public-project-title > span { flex: 0 0 auto; color: var(--navy2); font-size: 14px; font-weight: 800; }
.public-project-title h4 { margin: -3px 0 0; font-size: 23px; line-height: 1.45; }
.public-project-body { display: grid; gap: 14px; }
.public-project-body > p { margin: 0; font-size: 17px; line-height: 1.85; word-break: keep-all; }
.public-project-highlight { margin-top: 5px; border-left: 4px solid var(--navy2); padding: 14px 18px; background: var(--bg-soft); }
.public-project-highlight strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 16px; }
.public-project-highlight p { margin: 0; font-size: 16px; line-height: 1.7; }
.public-business-closing { margin-top: 48px; border-radius: 8px; padding: 30px 34px; background: var(--navy); color: #fff; }
.public-business-closing h4 { margin: 0 0 10px; color: #fff; font-size: 23px; }
.public-business-closing p { margin: 0; font-size: 17px; line-height: 1.85; }

/* Approval and designation documents — paired certificates remain separate files, but share one visual set. */
.certificate-intro { max-width: 860px; margin-bottom: 42px; }
.certificate-intro h3 { margin: 0 0 12px; font-size: 28px; }
.certificate-intro p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.certificate-set-list { display: grid; gap: 42px; }
.certificate-set { padding-top: 28px; border-top: 1px solid var(--line); }
.certificate-set:first-child { padding-top: 0; border-top: 0; }
.certificate-set-head { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 20px; }
.certificate-set-no { padding-top: 4px; color: var(--navy2); font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.certificate-set-head h3 { margin: 0; color: var(--ink); font-size: 21px; line-height: 1.45; }
.certificate-set-head p { margin: 5px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.certificate-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.certificate-document,
.certificate-single { min-width: 0; margin: 0; border: 1px solid var(--line); background: #fff; }
.certificate-document figcaption,
.certificate-single-head { display: flex; align-items: baseline; gap: 10px; min-height: 54px; padding: 15px 18px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.5; }
.certificate-image { display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fafafa; }
.certificate-image img { width: 100%; height: auto; display: block; object-fit: contain; transition: transform .2s ease; }
.certificate-document .certificate-image { min-height: 420px; }
.certificate-document .certificate-image img { max-height: 660px; }
.certificate-image:hover img { transform: scale(1.008); }
.certificate-single-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--line); }
.certificate-single-head span { flex: 0 0 auto; color: var(--navy2); font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.certificate-single-head h3 { margin: 0; font-size: 16px; line-height: 1.5; }
.certificate-single .certificate-image { min-height: 420px; }
.certificate-single .certificate-image img { max-height: 720px; }

/* Restore the home-care navigation illustrations to their original size. */
.page-fragment .menu-A-list .figure img { width: 100px; height: 100px; }

@media (max-width: 1024px) {
  .inner { padding-inline: 24px; }
  .gnb-item > a { padding-inline: 7px; font-size: 16px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .course-grid { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 18px; }
  .home-gallery__item { flex-basis: calc((100% - 32px) / 3); }
  .gallery-strip { grid-template-columns: repeat(3, 1fr); }
  .home-info-grid { gap: 30px; }
  .contact-panel { padding-left: 30px; }
  .sub-wrap .inner { gap: 34px; }
  .f-inner { grid-template-columns: 180px minmax(0, 1fr); gap: 36px; }
  .f-info { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
  .f-info__organization { grid-column: 1 / -1; }
  .f-info__legal { width: 100%; justify-self: start; }
}

@media (max-width: 768px) {
  body { font-size: 17px; }
  .inner { padding-inline: 20px; }
  .m-util-bar { border-bottom: 0; background: var(--navy2); color: #fff; }
  .m-util-bar ul { min-height: 42px; align-items: center; padding: 6px max(14px, env(safe-area-inset-right)) 6px max(14px, env(safe-area-inset-left)); }
  .m-util-links { height: 100%; }
  .m-util-links > li { min-height: 100%; display: flex; align-items: center; }
  .m-util-bar .util-social-link { gap: 4px; line-height: 1; }
  .m-util-bar .util-social-icon { width: 14px; height: 14px; flex-basis: 14px; }
  .m-util-bar .util-social-icon--youtube { width: 20px; height: 20px; flex-basis: 20px; }
  .m-logo-bar { min-height: 68px; padding: 8px max(14px, env(safe-area-inset-right)) 8px max(14px, env(safe-area-inset-left)); border-color: var(--line); }
  .m-logo img { height: 38px; }
  .m-my-apply { min-height: 46px; border-radius: 5px; background: var(--navy); color: #fff; font-size: 13px; }
  .m-drawer-panel { width: min(360px, 90%); }
  .m-drawer-head { padding: 14px 18px; }
  .m-nav-toggle, .m-nav-link { min-height: 56px; padding: 14px 20px; font-size: 18px; }
  .m-nav-sub { padding: 4px 0; background: var(--bg-soft); }
  .m-nav-sub li a { min-height: 48px; display: flex; align-items: center; padding: 10px 28px; font-size: 16px; }

  .main-banner { width: 100%; }
  .main-banner .bs-viewport,
  .main-banner .bs-slide { aspect-ratio: 1 / 1; }
  .main-banner .bs-slide { overflow: hidden; }
  .main-banner .bs-slide > a,
  .main-banner .bs-slide picture { display: block; width: 100%; height: 100%; }
  .main-banner .bs-slide img,
  .main-banner .bs-slide.has-caption img,
  .main-banner .bs-slide:is(.is-contain, .is-fill) .bs-slide-image {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }
  .main-banner .bs-slide:is(.is-contain, .is-fill) { aspect-ratio: 1 / 1; }
  .main-banner .bs-caption,
  .main-banner .bs-caption.is-light {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
  }
  .main-banner .bs-caption strong { font-size: 30px; }
  .main-banner .bs-caption-description { font-size: 17px; }
  .main-banner .bs-caption-cta { margin-top: 16px; }
  /* 터치 화면에서는 두 슬라이더의 크기·안쪽 여백을 통일한다. */
  .main-banner .bs-arrow,
  .facility-section .facility-slider .bs-arrow {
    width: 44px;
    height: 44px;
    opacity: .72;
  }
  .main-banner .bs-arrow.prev,
  .facility-section .facility-slider .bs-arrow.prev { left: 12px; }
  .main-banner .bs-arrow.next,
  .facility-section .facility-slider .bs-arrow.next { right: 12px; }
  .main-banner .bs-arrow { top: min(50vw, 260px); }
  .facility-section .facility-slider .bs-arrow { top: 50%; }
  .main-banner .bs-dots { top: auto; bottom: 10px; }
  .main-banner .bs-dots button::after {
    background: rgba(0, 21, 94, .34);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .7);
  }
  .main-banner .bs-dots button.on::after { background: var(--navy); }

  .home-section { padding: 64px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head-left { padding-right: 0; }
  .section-head h2 { font-size: 30px; }
  .section-head p { font-size: 16px; }
  .section-more { position: static; margin-top: 14px; }
  .quick-grid { grid-template-columns: 1fr; gap: 16px; }
  .course-grid { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 18px; }
  .quick-card { min-height: 220px; }
  .quick-card .q-title { font-size: 22px; }
  .course-card .card-visual { aspect-ratio: 1 / 1; }
  .course-card .si-name { font-size: 19px; }
  .course-card .card-actions { display: block; }
  .course-card .card-actions .btn { font-size: 15px; }

  .home-info-grid { grid-template-columns: 1fr; gap: 46px; }
  .panel-head h2, .contact-panel h2 { font-size: 28px; }
  .notice-list a { gap: 12px; }
  .notice-title { white-space: normal; }
  .notice-list time { font-size: 13px; }
  .contact-panel { border-top: 1px solid var(--line); border-left: 0; padding: 38px 0 0; }
  .contact-tel strong { font-size: 36px; }
  .facility-band { min-height: 360px; }
  .facility-caption { margin: 0 20px 20px; padding: 17px 18px; }
  .facility-caption strong { font-size: 22px; }
  .facility-slider { width: calc(100% - 40px); margin-block: 64px; }
  .facility-section { padding-bottom: 64px; }
  .facility-section .facility-slider { width: 100%; margin-block: 32px 0; }
  .facility-section .facility-band { margin-top: 32px; }
  .home-gallery-section { padding: 56px 0 60px; }
  .home-gallery__head { margin-bottom: 20px; }
  .home-gallery__eyebrow { font-size: 13px; }
  .home-gallery__title { font-size: 30px; }
  .home-gallery__description { font-size: 16px; }
  .home-gallery__toolbar { margin-bottom: 10px; }
  .home-gallery__all { margin-right: auto; font-size: 14px; }
  .home-gallery__rail { padding: 14px; border-radius: 8px; }
  .home-gallery__track { gap: 12px; }
  .home-gallery__item { flex-basis: calc((100% - 12px) / 2); }
  .home-gallery__caption { margin-top: 10px; font-size: 15px; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-item .g-title { min-height: 76px; font-size: 15px; }
  .partner-section { padding: 24px 0; }
  .partner-section .partner-strip { width: 100%; gap: 10px; padding: 16px 0; }
  .partner-section .partner-track { gap: 18px; animation-duration: 86s; }
  .partner-section .partner-marquee--second .partner-track { animation-delay: -43s; animation-duration: 92s; }
  .partner-section .partner-track a,
  .partner-section .partner-logo { width: 170px; height: 56px; padding: 6px 14px; }
  .partner-section .partner-track img { max-height: 39px; }
  .partner-section .partner-track img:is([src^="/thum_img/"], [src^="/uploads/pages/"]) { max-height: 54px; }
  .partner-section .partner-marquee--partners .partner-track a,
  .partner-section .partner-marquee--partners .partner-logo { width: 198px; height: 81px; }
  .partner-section .partner-marquee--partners .partner-track img { max-height: 58px; }
  .partner-section .partner-marquee--partners .partner-track img:is([src^="/thum_img/"], [src^="/uploads/pages/"]) { max-height: 81px; }
  .partner-section .partner-marquee { mask-image: linear-gradient(90deg, transparent, #000 1%, #000 99%, transparent); }

  .sub-wrap { padding: 36px 0 78px; }
  .breadcrumb { justify-content: flex-start; overflow-x: auto; white-space: nowrap; }
  .page-title { margin: 14px 0 34px; padding-bottom: 18px; font-size: 32px; }
  .page-fragment, .intro-body, .post-body { font-size: 17px; }
  .page-fragment .sub_box { padding-bottom: 30px; }
  .page-fragment .sub_title5, .page-fragment .sub_box > .title { float: none; width: auto; margin-bottom: 14px; }
  .page-fragment .sub_title5 ~ *, .page-fragment .sub_box > .cont_text, .page-fragment .sub_box > .con_list,
  .page-fragment .sub_box > .con_box, .page-fragment .sub_box > .table_wrap, .page-fragment .sub_box > .img,
  .page-fragment .sub_box > .dl_wrap { margin-left: 0; }

  .greeting-hero { min-height: 0; grid-template-columns: 1fr; }
  .greeting-hero-copy { border-right: 0; border-bottom: 1px solid var(--line); padding: 32px 26px; }
  .greeting-hero h3 { font-size: 32px; }
  .greeting-visual { min-height: 0; aspect-ratio: 3 / 2; }
  .greeting-visual--logo { min-height: 180px; aspect-ratio: auto; padding: 40px 32px; }
  .greeting-visual--logo img { width: min(100%, 440px); }
  .schedule-image-selector { margin-bottom: 20px; }
  .schedule-image-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .schedule-image-button { min-height: 50px; padding: 8px 10px; font-size: 15px; }
  .schedule-image-list { gap: 32px; }
  .greeting-copy { margin-top: 38px; }
  .greeting-copy p { font-size: 21px !important; }
  .greeting-copy p:has(> strong > em) { font-size: 23px !important; }
  .greeting-copy p:last-of-type { font-size: 18px !important; }
  .purpose-list, .mission-statements { grid-template-columns: 1fr; }
  .purpose-list li:nth-child(odd) { border-right: 0; }
  .purpose-list li { min-height: 82px; padding-inline: 10px; }
  .mission-statements { margin-top: 40px; }
  .statement-card { padding: 26px 22px; }

  .calendar-head > p { font-size: 16px; }
  .calendar-nav { grid-template-columns: 44px minmax(140px, 1fr) 44px 58px; gap: 6px; }
  .calendar-nav h3 { margin: 0 4px; font-size: 23px; }
  .calendar-nav-button, .calendar-today-link { min-height: 44px; }
  .calendar-table { min-width: 760px; }
  .calendar-table td { height: 124px; padding: 8px; }
  .calendar-events a { font-size: 13px; }
  .calendar-month-list { margin-top: 32px; }
  .calendar-month-list > ol > li { grid-template-columns: 62px 1fr; gap: 12px; padding: 16px 2px; }
  .calendar-month-list li ul a { font-size: 16px; }

  .edu-guide-action { align-items: stretch; flex-direction: column; padding: 22px 20px; }
  .edu-guide-action .btn { width: 100%; }

  .public-business-lead { margin-bottom: 38px; }
  .public-business-lead h3 { font-size: 27px; }
  .public-business-lead p { font-size: 17px; }
  .public-project { grid-template-columns: 1fr; gap: 18px; padding-block: 30px 32px; }
  .public-project-title h4 { font-size: 21px; }
  .public-project-body > p { font-size: 17px; }
  .public-business-closing { margin-top: 36px; padding: 25px 22px; }

  .certificate-set-list { gap: 30px; }
  .certificate-set { padding-top: 22px; }
  .certificate-set-head { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; margin-bottom: 15px; }
  .certificate-set-head h3 { font-size: 18px; }
  .certificate-set-head p { font-size: 13px; }
  .certificate-pair,
  .certificate-single-list { gap: 14px; }
  .certificate-single-list { grid-template-columns: 1fr; margin-top: 30px; padding-top: 22px; }
  .certificate-document figcaption,
  .certificate-single-head { min-height: 0; padding: 12px 14px; font-size: 14px; }
  .certificate-document .certificate-image,
  .certificate-single .certificate-image { min-height: 0; }
  .certificate-document .certificate-image img,
  .certificate-single .certificate-image img { max-height: none; }

  .form-table th { width: 120px; padding: 14px 10px; }
  .form-table td { padding: 12px 10px; }
  .auth-card { padding: 32px 22px; }
  .admin-wrap { margin-top: 30px; }
  .admin-head h2 { font-size: 28px; }
  .admin-card { padding: 22px 18px; }
  .admin-side-toggle { min-height: 50px; font-size: 16px; }
  .admin-grid { grid-template-columns: 1fr; }

  .f-inner { display: block; padding: 36px 20px 40px; text-align: left; }
  .f-logo { margin: 0 0 22px; }
  .f-info { grid-template-columns: 1fr; gap: 22px; margin: 0; }
  .f-info__organization { grid-column: auto; }
  .f-line, .f-line a, .f-policy a { font-size: 14px; }
  .f-line .f-item { display: block; margin: 2px 0; }
}

@media (max-width: 420px) {
  .m-logo img { height: 38px; }
  .m-my-apply { max-width: 102px; padding-inline: 10px; line-height: 1.25; text-align: center; white-space: normal; }
  .quick-card { min-height: 206px; }
  .gallery-strip { grid-template-columns: 1fr; }
  .gallery-item .g-title { min-height: 58px; }
  .notice-list a { align-items: flex-start; flex-direction: column; gap: 3px; }
  .contact-tel strong { font-size: 32px; }
  .certificate-pair { grid-template-columns: 1fr; }
  .form-table, .form-table tbody, .form-table tr, .form-table th, .form-table td { display: block; width: 100%; }
  .form-table th { border-bottom: 0; padding-bottom: 4px; }
  .form-table td { padding-top: 6px; }
}

/* 기존 aejiwon.org 카드 밀도(4 → 3 → 2열)를 유지하면서, 신청 동선은 하나로 고정한다. */
@media (max-width: 1200px) {
  .course-grid { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 599px) {
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .course-card .cc-body { padding: 10px 10px 0; }
  .course-card .si-name { font-size: 14px; }
  .course-card .si-summary { font-size: 12px; }
  .course-card .si-price { font-size: 15px; }
  .course-card .si-stock { font-size: 12px; }
  .course-card .card-actions { padding: 10px; }
  .course-card .card-actions .btn { min-height: 42px; padding: 10px 0; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  /* 필수 콘텐츠 롤링은 유지하되, 빠른 장식 동작 없이 정속으로만 이동한다. */
  .partner-section .partner-track { animation-duration: 90s !important; animation-iteration-count: infinite !important; }
}

/* Homepage hierarchy: retain the official palette and photos, but give every
   top-level story the same typographic scale, grid edge and action treatment. */
.home-main {
  --home-page-bg: var(--page-canvas-bg);
  --home-heading-size: clamp(30px, 3vw, 40px);
  --home-heading-leading: 1.32;
  --home-heading-tracking: -.035em;
  --home-body-size: 17px;
  --home-kicker-size: 14px;
  --home-kicker-tracking: .08em;
  --home-section-space: 88px;
  background: var(--home-page-bg);
}
.home-main > .home-section { padding-block: var(--home-section-space); }
.home-main .section-head { max-width: 760px; margin-bottom: 38px; }
.home-main .section-head-left { padding-right: 0; }
.home-main .section-head h2,
.home-main .home-gallery__title {
  font-size: var(--home-heading-size);
  font-weight: 700;
  line-height: var(--home-heading-leading);
  letter-spacing: var(--home-heading-tracking);
}
.home-main .section-head p,
.home-main .home-gallery__description {
  max-width: 42em;
  margin-top: 10px;
  font-size: var(--home-body-size);
  line-height: 1.7;
  letter-spacing: -.02em;
  word-break: keep-all;
}
.home-main .section-head::before,
.home-main .home-gallery__head::before {
  display: block;
  width: 38px;
  height: 3px;
  margin-bottom: 16px;
  background: var(--navy);
  content: '';
}

/* The main and facility photographs remain distinct content, while sharing the
   existing control geometry and a common text hierarchy. */
.home-main .main-banner .bs-caption,
.home-main .main-banner .bs-caption.is-light {
  padding: 28px 30px 30px;
  border-left-color: var(--navy2);
}
.home-main .main-banner .bs-caption-kicker {
  font-size: var(--home-kicker-size);
  font-weight: 700;
  letter-spacing: var(--home-kicker-tracking);
  line-height: 1.4;
}
.home-main .main-banner .bs-caption strong {
  margin-top: 10px;
  font-size: clamp(30px, 2.75vw, 40px);
  font-weight: 700;
  line-height: var(--home-heading-leading);
  letter-spacing: var(--home-heading-tracking);
}
.home-main .main-banner .bs-caption-description {
  margin-top: 10px;
  font-size: var(--home-body-size);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -.02em;
}
.home-main :is(.section-more, .home-gallery__all, .main-banner .bs-caption-cta) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.home-main .main-banner .bs-caption-cta { margin-top: 18px; }

/* The gallery introduces recent activity immediately after the main hero: its title
   shares the left grid edge, while its browse link stays aligned to the right. */
.home-main .home-gallery-section {
  padding: var(--home-section-space) 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  background: var(--home-page-bg);
}
.home-main .home-gallery-section .inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 32px;
  align-items: end;
}
.home-main .home-gallery__head {
  max-width: 760px;
  margin: 0 0 30px;
  text-align: left;
}
.home-main .home-gallery__title { margin: 0; }
.home-main .home-gallery__toolbar {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin: 0 0 30px;
}
.home-main .home-gallery__rail,
.home-main .home-gallery__empty { grid-column: 1 / -1; }
.home-main .home-gallery__rail,
.home-main .course-card { border-radius: 8px; }

/* A 15% wider rail keeps four complete photographs in view while enlarging each
   262.5px desktop image to about 302px. The extra inner padding preserves that
   same 15% ratio for the rail as well as the cards. */
@media (min-width: 1320px) {
  .home-main .home-gallery__rail {
    width: 115%;
    justify-self: center;
    box-sizing: border-box;
    padding-inline: 29px;
  }
}

/* On a sufficiently wide desktop, enlarge the current 15% presentation by a
   further 10% (26.5% from the original) without sacrificing four full cards.
   Narrower desktops retain the safe 15% size rather than creating page overflow. */
@media (min-width: 1504px) {
  .home-main .home-gallery__rail {
    width: 126.5%;
    padding-inline: 34.455px;
  }
}

@media (max-width: 1024px) {
  .home-main .home-gallery-section .inner { column-gap: 20px; }
}

@media (max-width: 768px) {
  .home-main {
    --home-heading-size: 30px;
    --home-body-size: 16px;
    --home-section-space: 64px;
  }
  .home-main .section-head { margin-bottom: 26px; }
  .home-main .section-head::before,
  .home-main .home-gallery__head::before { margin-bottom: 12px; }
  .home-main .main-banner .bs-caption,
  .home-main .main-banner .bs-caption.is-light { padding: 24px 20px 26px; }
  .home-main .main-banner .bs-caption strong { font-size: 30px; }
  .home-main .main-banner .bs-caption-description { font-size: var(--home-body-size); }
  .home-main .home-gallery-section { padding-block: var(--home-section-space); }
  .home-main .home-gallery-section .inner { display: block; }
  .home-main .home-gallery__head { margin-bottom: 20px; }
  .home-main .home-gallery__toolbar { margin-bottom: 12px; }

  /* A classroom photo needs enough height to read as its own editorial stop on
     narrow screens; intentionally fitted source images keep their own treatment. */
  .home-main .facility-section .facility-slider .bs-slide:not(.is-contain):not(.is-fill) {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }
  .home-main .facility-section .facility-slider .bs-slide:not(.is-contain):not(.is-fill) > a,
  .home-main .facility-section .facility-slider .bs-slide:not(.is-contain):not(.is-fill) picture { height: 100%; }
  .home-main .facility-section .facility-slider .bs-slide:not(.is-contain):not(.is-fill) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 599px) {
  .home-gallery__item { flex-basis: 100%; }
  .home-main .course-card .si-name { font-size: 16px; }
  .home-main .course-card .si-summary { font-size: 14px; line-height: 1.55; }
  .home-main .course-card .si-price { font-size: 16px; }
  .home-main .course-card .si-stock { font-size: 13px; }
  .home-main .course-card .card-actions .btn { min-height: 44px; font-size: 14px; }
}

/* Image-led service shortcuts: real site photography in the legacy 4-by-2 rhythm. */
.home-main .home-shortcuts {
  border-block: 1px solid var(--line);
  background: var(--home-page-bg);
}
.home-shortcuts__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-shortcuts__item { min-width: 0; }
.home-shortcut {
  display: grid;
  height: 100%;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  transition: border-color .18s ease, transform .18s ease;
}
.home-shortcut__media {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #ececf0;
}
.home-shortcut__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}
.home-shortcut__media img.is-contain {
  object-fit: contain;
  background: #fff;
}
.home-shortcut__body {
  position: relative;
  min-height: 82px;
  display: flex;
  align-items: center;
  padding: 16px 54px 16px 20px;
}
.home-shortcut__title {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.035em;
  word-break: keep-all;
}
.home-shortcut__arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f3fa;
  color: var(--navy);
  transform: translateY(-50%);
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.home-shortcut__arrow svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) and (pointer: fine) {
  .home-shortcut:hover {
    border-color: var(--navy2);
    transform: translateY(-3px);
  }
  .home-shortcut:hover .home-shortcut__media img { transform: scale(1.025); }
  .home-shortcut:hover .home-shortcut__media img.is-contain { transform: none; }
  .home-shortcut:hover .home-shortcut__arrow {
    background: var(--navy);
    color: #fff;
    transform: translate(2px, -50%);
  }
}

@media (max-width: 1024px) {
  .home-shortcuts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

@media (max-width: 599px) {
  .home-shortcuts__grid { gap: 12px; }
  .home-shortcut__body { min-height: 76px; padding: 13px 42px 13px 14px; }
  .home-shortcut__title { font-size: 17px; line-height: 1.35; }
  .home-shortcut__arrow { right: 12px; width: 26px; height: 26px; }
  .home-shortcut__arrow svg { width: 14px; height: 14px; }
}

@media (max-width: 359px) {
  .home-shortcuts__grid { grid-template-columns: 1fr; }
  .home-shortcut__body { min-height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-shortcut,
  .home-shortcut__media img,
  .home-shortcut__arrow { transition: none; }
}

/* 홈페이지 캔버스 색은 각 섹션의 기존 흰색 선언보다 뒤에서 확정한다.
   카드와 사진 표면은 흰색을 유지하고, 최상위 섹션 배경만 하나로 잇는다. */
.home-main > .main-banner,
.home-main > .home-section { background: var(--home-page-bg); }
.home-main .partner-strip { background: transparent; }

/* Main popup: a single image-led dialog with a compact full-width close action. */
body.home-popup-open { overflow: hidden; }
.home-popup[hidden] { display: none; }
.home-popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  overscroll-behavior: contain;
}
.home-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 30, 52, .58);
}
.home-popup__dialog {
  position: relative;
  display: flex;
  width: min(500px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(16, 34, 66, .18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 64px rgba(15, 29, 55, .3);
}
.home-popup__dialog:focus { outline: none; }
@supports (height: 100dvh) {
  .home-popup__dialog { max-height: calc(100dvh - 48px); }
}
.home-popup__media {
  min-height: 0;
  overflow: auto;
  background: #fff;
  overscroll-behavior: contain;
}
.home-popup__link { display: block; }
.home-popup__media img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  background: #fff;
}
.home-popup__close {
  width: 100%;
  min-height: 44px;
  flex: 0 0 44px;
  border: 0;
  border-top: 1px solid #d9dfe6;
  padding: 8px 16px;
  background: #f4f6f8;
  color: #303946;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.home-popup__close:hover { background: #e9edf2; color: var(--navy); }
.home-popup__close:active { background: #dfe5eb; }
.home-popup__close:focus-visible { outline-color: var(--navy); outline-offset: -4px; }

/* Popup recommendations are square, but off-spec uploads remain fully visible. */
.admin-grid.square .ag-item img {
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}

@media (max-width: 599px) {
  .home-popup { padding: 12px; }
  .home-popup__dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    border-radius: 6px;
  }
  @supports (height: 100dvh) {
    .home-popup__dialog { max-height: calc(100dvh - 24px); }
  }
}
