/* U07 한빛 평생교육원 — 원형 A(풀블리드 슬라이드형): 투명→흰 헤더 + 드롭다운 메가메뉴 + 강의실 슬라이드 + 겹친 접수 기간 띠 + 강좌 탭·카드 그리드
   타이포: Pretendard + Outfit(영문 eyebrow·숫자·강좌 코드만) / 컬러: 포레스트 그린 #2f5d45 1색 + 웜 화이트 면 #f8f6f1 + 무채색 */
:root {
  --ailo-accent: #2f5d45;
  --ailo-accent-ink: #fff;
  --ailo-fg: #1b211d;
  --ailo-muted: #545c56;
  --ailo-line: #e4e1d9;
  --ailo-bg: #fff;
  --ailo-header-h: 84px;
  --ailo-eyebrow-size: 14px;
  --ailo-hero-h: clamp(620px, 92svh, 880px);
  --ailo-overlap: 56px;
  --ailo-hero-btn-radius: 999px;
  --u07-warm: #f8f6f1;
  --u07-tint: #e8efe9;
  --u07-en: "Outfit", var(--ailo-font);
}
main img { height: auto; }
body { font-size: 17px; }
.ailo-eyebrow { font-family: var(--u07-en); letter-spacing: .12em; }
.sec { padding-block: clamp(80px, 8vw, 128px); }
.h2 { font-size: clamp(30px, 2vw + 18px, 50px); font-weight: 800; line-height: 1.25; letter-spacing: -.03em; }
.h2 em { font-style: normal; color: var(--ailo-accent); }
.kicker { font-family: var(--u07-en); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ailo-accent); margin-bottom: 12px; }
.sec-head { margin-bottom: clamp(32px, 3.6vw, 56px); }
.sec-head--row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-size: 16px; font-weight: 700; border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s; }
.pill--green { background: var(--ailo-accent); color: #fff; }
.pill--green:hover { background: #244a37; color: #fff; }
.pill--line { border-color: currentColor; }
.pill--line:hover { background: var(--ailo-fg); border-color: var(--ailo-fg); color: #fff; }

/* ---------- Header ---------- */
.hd__in { height: var(--ailo-header-h); display: flex; align-items: center; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo__mark { width: 40px; height: 40px; }
.logo__txt { display: grid; line-height: 1.2; }
.logo__txt b { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.logo__txt small { font-family: var(--u07-en); font-size: 13px; opacity: .8; }
.gnb { margin-inline: auto; }
.basket-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; font-size: 19px; }
.basket-btn__n { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ailo-accent); color: #fff; font-family: var(--u07-en); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.hd__cta { min-height: 44px; font-size: 15px; flex: none; }
.ailo-hd--overlay:not(.is-scrolled):not(.is-mega-open) .hd__cta { background: #fff; color: var(--ailo-accent); }
.mnav { background: #fff; padding: calc(68px + 16px) var(--ailo-gutter) 40px; }
.mnav__in { display: grid; }
.mnav__in > a { padding: 15px 0; font-size: 20px; font-weight: 700; border-bottom: 1px solid var(--ailo-line); }
.mnav__in > a.mnav__cta { margin-top: 24px; border: 0; }
.mnav__note { margin-top: 16px; font-size: 15px; color: var(--ailo-muted); }

/* ---------- Hero ---------- */
.hero { --ailo-hero-dim: linear-gradient(90deg, rgba(16, 28, 21, .66) 0%, rgba(16, 28, 21, .38) 55%, rgba(0, 0, 0, .14) 100%); }
.hero .ul { color: #d9e8dc; }
.hero .ailo-hero__btn:not(.ailo-hero__btn--ghost) { background: #fff; color: var(--ailo-accent); }
.hero .ailo-hero__btn:not(.ailo-hero__btn--ghost):hover { background: var(--u07-tint); }
.period { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; font-size: 16px; border-radius: 12px; }
.period__tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--u07-tint); color: var(--ailo-accent); font-weight: 800; font-size: 15px; }
.period__tag i { font-size: 8px; }
.period b { margin-right: 6px; }
.period__early { color: var(--ailo-muted); }
.period__early b { color: var(--ailo-accent); margin: 0; }
.period__go { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--ailo-accent); border-bottom: 1px solid currentColor; }

/* ---------- 바로가기 ---------- */
.quick { padding-top: clamp(48px, 5vw, 72px); }
.quick__list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.quick__list a { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 8px; border-radius: 12px; background: var(--u07-warm); font-size: 16px; font-weight: 700; text-align: center; transition: background-color .2s, color .2s; }
.quick__list a span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--ailo-accent); font-size: 19px; }
.quick__list a:hover { background: var(--ailo-accent); color: #fff; }

/* ---------- About ---------- */
.about__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.about__body > p { font-size: 18px; line-height: 1.8; color: #333; }
.about__vals { margin-top: 32px; border-top: 1px solid var(--ailo-fg); }
.about__vals li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--ailo-line); font-size: 17px; font-weight: 600; }
.about__vals b { font-family: var(--u07-en); font-size: 20px; color: var(--ailo-accent); }

/* ---------- Tracks ---------- */
.tracks { background: var(--u07-warm); }
.tracks__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.track { display: flex; flex-direction: column; gap: 10px; padding: 32px 26px; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px -16px rgba(0, 0, 0, .14); }
.track__no { font-family: var(--u07-en); font-size: 15px; font-weight: 600; color: var(--ailo-accent); letter-spacing: .1em; }
.track__no::before { content: "Track "; }
.track h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.track p { font-size: 16px; line-height: 1.65; color: var(--ailo-muted); flex: 1; }
.track ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.track li { font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--u07-tint); color: var(--ailo-accent); }

/* ---------- Numbers ---------- */
.nums { background: var(--ailo-accent); color: #fff; padding-block: clamp(56px, 5vw, 88px); }
.nums__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.nums__in > div { display: grid; gap: 6px; padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .25); }
.nums__in > div:first-child { padding-left: 0; border-left: 0; }
.nums b { font-family: var(--u07-en); font-size: clamp(40px, 3vw + 16px, 64px); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.nums b small { font-family: var(--ailo-font); font-size: 18px; font-weight: 700; margin-left: 4px; }
.nums__in > div > span { font-size: 16px; color: rgba(255, 255, 255, .82); }

/* ---------- Catalog (탭 + 카드 그리드) ---------- */
.catalog__count { font-size: 17px; font-weight: 600; color: var(--ailo-muted); }
.catalog__count b { font-family: var(--u07-en); font-size: 32px; color: var(--ailo-accent); margin-right: 4px; }
.filters { margin-bottom: 28px; }
.filters__cat { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--ailo-line); }
.filters__cat button { position: relative; flex: none; min-height: 52px; padding: 0 18px; border: 0; background: none; font-size: 17px; font-weight: 600; color: var(--ailo-muted); }
.filters__cat button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ailo-accent); transform: scaleX(0); transition: transform .25s var(--ailo-ease); }
.filters__cat button.is-on { color: var(--ailo-fg); font-weight: 800; }
.filters__cat button.is-on::after { transform: scaleX(1); }
.filters__row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.days { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filters__label { font-size: 15px; font-weight: 700; margin-right: 6px; }
.days button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--ailo-line); background: #fff; font-size: 15px; font-weight: 700; }
.days button[aria-pressed="true"] { background: var(--ailo-accent); border-color: var(--ailo-accent); color: #fff; }
.seg { display: inline-flex; background: var(--u07-warm); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: transparent; min-height: 38px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--ailo-muted); }
.seg button.is-on { background: #fff; color: var(--ailo-fg); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.course { display: grid; grid-template-areas: "code fee" "main main" "when when" "seat seat" "add add"; grid-template-columns: 1fr auto; gap: 12px; padding: 24px; background: #fff; border: 1px solid var(--ailo-line); border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.course[hidden] { display: none; }
.course:hover { border-color: #c5d3c9; box-shadow: 0 14px 32px -18px rgba(0, 0, 0, .2); }
.course.is-picked { border-color: var(--ailo-accent); box-shadow: inset 0 0 0 1px var(--ailo-accent); }
.course__code { grid-area: code; font-family: var(--u07-en); font-size: 14px; font-weight: 600; color: var(--ailo-muted); letter-spacing: .04em; }
.course__main { grid-area: main; }
.course__cat { display: inline-block; font-size: 14px; font-weight: 700; color: var(--ailo-accent); margin-bottom: 6px; }
.course h3 { font-size: 19px; font-weight: 800; line-height: 1.4; letter-spacing: -.02em; }
.course__main p { margin-top: 6px; font-size: 15px; color: var(--ailo-muted); }
.course__when { grid-area: when; font-size: 15px; padding-top: 12px; border-top: 1px solid var(--ailo-line); }
.course__when b { margin-right: 6px; color: var(--ailo-fg); }
.course__when small { margin-left: 8px; font-size: 14px; color: var(--ailo-muted); }
.course__seat { grid-area: seat; display: grid; gap: 6px; font-size: 14px; color: var(--ailo-muted); }
.course__seat i { display: block; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ailo-accent) var(--p), #e9e6df 0); }
.course__fee { grid-area: fee; font-family: var(--u07-en); font-size: 17px; font-weight: 600; }
.course__add { grid-area: add; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 999px; border: 1px solid var(--ailo-accent); background: #fff; color: var(--ailo-accent); font-size: 15px; font-weight: 700; transition: background-color .2s, color .2s; }
.course__add:hover, .course__add[aria-pressed="true"] { background: var(--ailo-accent); color: #fff; }
.courses__empty { padding: 40px; text-align: center; background: var(--u07-warm); border-radius: 12px; color: var(--ailo-muted); }

/* ---------- Calendar ---------- */
.calendar { background: var(--u07-warm); }
.cal { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--ailo-fg); }
.cal li { display: grid; gap: 6px; align-content: start; padding: 24px 18px 20px 0; border-right: 1px solid var(--ailo-line); padding-left: 18px; }
.cal li:first-child { padding-left: 0; }
.cal li:last-child { border-right: 0; }
.cal time { font-family: var(--u07-en); font-size: 16px; font-weight: 600; color: var(--ailo-muted); }
.cal b { font-size: 19px; font-weight: 800; }
.cal span { font-size: 15px; color: var(--ailo-muted); line-height: 1.55; }
.cal li.is-now time, .cal li.is-now b { color: var(--ailo-accent); }

/* ---------- Notice ---------- */
.notice__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 4vw, 80px); }
.notice__head .pill { margin-top: 24px; }
.notice__list { border-top: 1px solid var(--ailo-fg); }
.notice__list a { display: flex; align-items: center; gap: 16px; min-height: 68px; padding: 14px 4px; border-bottom: 1px solid var(--ailo-line); }
.notice__tag { flex: none; min-width: 3.4em; text-align: center; padding: 3px 8px; border-radius: 4px; background: var(--u07-tint); color: var(--ailo-accent); font-size: 14px; font-weight: 700; }
.notice__tag--hot { background: var(--ailo-accent); color: #fff; }
.notice__list b { flex: 1; min-width: 0; font-size: 17px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice__list a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.notice__list time { flex: none; font-family: var(--u07-en); font-size: 15px; color: var(--ailo-muted); }

/* ---------- Teachers ---------- */
.teachers { background: var(--u07-warm); }
.teachers__note { font-size: 16px; color: var(--ailo-muted); }
.teachers__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.teachers__list li { display: grid; gap: 4px; }
.teachers__list figure { margin: 0 0 14px; overflow: hidden; border-radius: 12px; }
.teachers__list img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #e4e1d9; transition: transform .6s var(--ailo-ease); }
.teachers__list li:hover img { transform: scale(1.04); }
.teachers__list b { font-size: 19px; }
.teachers__list span { font-size: 15px; color: var(--ailo-muted); }
.staff { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding: 22px 26px; background: #fff; border-radius: 12px; font-size: 15px; color: var(--ailo-muted); }
.staff b { color: var(--ailo-fg); }

/* ---------- Partners ---------- */
.partners { border-bottom: 1px solid var(--ailo-line); }
.partners__in { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; min-height: 100px; padding-block: 24px; }
.partners__in > p { font-size: 15px; font-weight: 700; color: var(--ailo-muted); }
.partners__in ul { display: flex; flex-wrap: wrap; gap: 8px 36px; }
.partners__in li { font-size: 17px; font-weight: 800; color: #8d938e; letter-spacing: -.02em; }

/* ---------- Apply ---------- */
.apply { background: #1d2a22; color: #fff; }
.apply .kicker { color: #bcd3c2; }
.apply__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.apply__intro > p { margin-top: 18px; font-size: 17px; line-height: 1.75; color: rgba(255, 255, 255, .82); }
.apply__help { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 16px; line-height: 2; color: rgba(255, 255, 255, .86); }
.apply__help i { width: 20px; color: #bcd3c2; }
.form { background: #fff; color: var(--ailo-fg); border-radius: 12px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.picked { padding: 18px 20px; background: var(--u07-warm); border-radius: 8px; }
.picked__head { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.picked__head em { font-style: normal; font-family: var(--u07-en); font-weight: 700; color: var(--ailo-accent); }
.picked__list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--ailo-line); font-size: 15px; margin-top: 10px; }
.picked__code { font-family: var(--u07-en); font-size: 14px; color: var(--ailo-muted); }
.picked__list b { flex: 1; font-weight: 600; }
.picked__list button { border: 0; background: none; width: 36px; height: 36px; color: var(--ailo-muted); }
.picked__empty { margin-top: 8px; font-size: 15px; color: var(--ailo-muted); }
.picked__empty a { color: var(--ailo-accent); text-decoration: underline; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f { display: grid; gap: 6px; }
.f--full { grid-column: 1 / -1; }
.f label { font-size: 15px; font-weight: 700; }
.f input { width: 100%; padding: 12px 14px; border: 1px solid #d6d2c9; border-radius: 6px; font-size: 16px; }
.f input:focus { outline: none; border-color: var(--ailo-accent); box-shadow: 0 0 0 3px rgba(47, 93, 69, .15); }
.who { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.who legend { float: none; width: 100%; font-size: 15px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.who label { position: relative; cursor: pointer; }
.who input { position: absolute; opacity: 0; }
.who span { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border: 1px solid var(--ailo-line); border-radius: 999px; font-size: 15px; font-weight: 600; }
.who input:checked + span { background: var(--ailo-accent); border-color: var(--ailo-accent); color: #fff; }
.who input:focus-visible + span { outline: 2px solid var(--ailo-accent); outline-offset: 2px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 600; cursor: pointer; }
.agree small { display: block; font-size: 14px; font-weight: 400; color: var(--ailo-muted); }
.agree input { margin-top: 4px; accent-color: var(--ailo-accent); }
.form__submit { width: 100%; min-height: 54px; }

/* 담은 강좌 하단 바 */
.basket-bar { position: fixed; left: 50%; bottom: 20px; z-index: 90; translate: -50% 140%; display: flex; gap: 28px; align-items: center; padding: 14px 24px; border-radius: 999px; background: var(--ailo-accent); color: #fff; font-size: 15px; font-weight: 700; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .35); transition: translate .35s var(--ailo-ease); white-space: nowrap; }
.basket-bar.is-on { translate: -50% 0; }
html.at-apply .basket-bar { translate: -50% 140%; }
.basket-bar:hover { color: #fff; }

/* ---------- Footer ---------- */
.ft { background: #141816; color: rgba(255, 255, 255, .64); padding-block: 56px 40px; font-size: 14px; }
.ft__in { display: grid; grid-template-columns: 1fr auto; gap: 24px; }
.logo--ft { color: #fff; margin-bottom: 18px; }
.ft__info { line-height: 1.85; }
.ft__nav { display: flex; gap: 8px 20px; flex-wrap: wrap; align-self: start; }
.ft__nav a:hover, .ft__nav strong { color: #fff; }
.ft__copy { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: rgba(255, 255, 255, .5); }

/* ---------- 반응형 ---------- */
@media (max-width: 1199.98px) {
  .hd__cta { display: none; }
  .tracks__grid { grid-template-columns: 1fr 1fr; }
  .courses { grid-template-columns: 1fr 1fr; }
  .cal { grid-template-columns: repeat(3, 1fr); }
  .cal li:nth-child(3) { border-right: 0; }
  .cal li:nth-child(4) { padding-left: 0; }
  .cal li:nth-child(n+4) { border-top: 1px solid var(--ailo-line); }
}
@media (max-width: 991.98px) {
  :root { --ailo-header-h: 68px; }
  .hd .ailo-sitemap-btn { display: none; }
  .hd__in { gap: 4px; }
  .logo { margin-right: auto; }
  .quick__list { grid-template-columns: repeat(3, 1fr); }
  .about__in, .notice__in, .apply__in { grid-template-columns: 1fr; }
  .nums__in { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .nums__in > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .teachers__list { grid-template-columns: 1fr 1fr; }
  .period__go { margin-left: 0; }
}
@media (max-width: 575.98px) {
  body { font-size: 16px; }
  .sec { padding-block: 68px; }
  .period { gap: 8px 16px; font-size: 15px; }
  .quick__list { gap: 8px; }
  .quick__list a { font-size: 14px; padding: 16px 4px; }
  .tracks__grid, .courses { grid-template-columns: 1fr; }
  .cal { grid-template-columns: 1fr; }
  .cal li, .cal li:nth-child(4) { padding: 18px 0; border-right: 0; border-top: 1px solid var(--ailo-line); }
  .cal li:first-child { border-top: 0; }
  .notice__list a { flex-wrap: wrap; gap: 6px 12px; }
  .notice__list b { flex-basis: 100%; order: 3; white-space: normal; }
  .teachers__list { gap: 16px; }
  .form__grid { grid-template-columns: 1fr; }
  .ft__in { grid-template-columns: 1fr; }
  .basket-bar { gap: 14px; padding: 12px 18px; font-size: 14px; }
}
