/* ==========================================================================
   AILO Public P03 — 꿈나래 장학재단
   원형: A 풀블리드 슬라이드형 — 장학생 실사 3장 슬라이드 + 진행 표시·스크롤 안내, 투명→흰 메가메뉴
   타이포: Pretendard + Mulish(영문 eyebrow·숫자)
   컬러: 테라코타 #9c4f2a 1색 + 따뜻한 무채색(#faf7f3 면, #2a211c 어두운 면)
   ========================================================================== */

:root {
  --ailo-bg: #ffffff;
  --ailo-fg: #1f1a17;
  --ailo-muted: #57504a;
  --ailo-line: #e8e2db;
  --ailo-accent: #9c4f2a;
  --ailo-accent-ink: #ffffff;
  --ailo-header-h: 88px;

  --p03-warm: #faf7f3;
  --p03-dark: #2a211c;
  --p03-tint: #f4ebe4;
  --p03-num: "Mulish", "Pretendard Variable", Pretendard, sans-serif;
  --p03-sec: clamp(80px, 9vw, 136px);
  --p03-r: 8px;

  --ailo-hero-dim: linear-gradient(90deg, rgba(30, 18, 10, .66) 0%, rgba(30, 18, 10, .4) 55%, rgba(30, 18, 10, .2) 100%);
  --ailo-hero-btn-radius: 999px;
  --ailo-pcard-radius: 8px;
  --ailo-cta-dim: rgba(42, 25, 15, .66);
}

body { font-size: 17px; line-height: 1.75; }
.sec { padding-block: var(--p03-sec); }
.ailo-eyebrow { font-family: var(--p03-num); letter-spacing: .16em; }

/* ===== 헤더 ===== */
.hd__in { height: var(--ailo-header-h); display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 600; letter-spacing: -.03em; flex: none; }
.logo b { font-weight: 800; }
.hd.is-scrolled .logo svg, .hd.is-mega-open .logo svg { color: var(--ailo-accent); }
.gnb { flex: 1; display: flex; justify-content: center; }
@media (max-width: 991.98px) { .gnb.ailo-mega { display: none; } }
.gnb .ailo-mega__link { font-weight: 600; }
.hd__cta { flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 999px; background: var(--ailo-accent); color: #fff; font-size: 15px; font-weight: 700; }
.hd__cta:hover { color: #fff; background: color-mix(in srgb, var(--ailo-accent) 85%, #000); }

.mnav { background: var(--p03-warm); }
.mnav__in { display: flex; flex-direction: column; padding: calc(var(--ailo-header-h) + 16px) var(--ailo-gutter) 40px; }
.mnav__in > a { padding: 16px 0; border-bottom: 1px solid var(--ailo-line); font-size: 21px; font-weight: 700; }
.mnav__in > a.mnav__cta { margin-top: 24px; padding: 16px; border: 0; border-radius: 999px; background: var(--ailo-accent); color: #fff; text-align: center; font-size: 17px; }
.mnav__note { margin-top: 24px; font-size: 16px; color: var(--ailo-muted); }

/* ===== 히어로 ===== */
.hero .ailo-hero__sub { max-width: 30em; }
.hero .ailo-hero__btn { padding: 0 30px; }

/* ===== 숫자 띠 ===== */
.nums { background: var(--p03-dark); color: #fff; padding-block: clamp(48px, 5vw, 72px); }
.nums__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.nums__list li { display: grid; gap: 4px; padding: 0 28px; border-left: 1px solid rgba(255, 255, 255, .16); }
.nums__list li:first-child { border-left: 0; padding-left: 0; }
.nums__list b { font-family: var(--p03-num); font-size: clamp(36px, 2.8vw + 14px, 58px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.nums__list span { font-size: 16px; color: rgba(255, 255, 255, .78); }

/* ===== 재단 이야기 ===== */
.story__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.story__quote { font-size: clamp(28px, 1.6vw + 18px, 46px); line-height: 1.35; }
.story__body p { font-size: 17.5px; color: #3f3934; }
.story__body p + p { margin-top: 16px; }
.story__sign { color: var(--ailo-muted) !important; }
.story__sign b { margin-left: 6px; font-size: 19px; color: var(--ailo-fg); }
.vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(48px, 5vw, 72px); }
.vals li { padding: 32px 30px; border-radius: var(--p03-r); background: var(--p03-warm); }
.vals__no { font-family: var(--p03-num); font-size: 15px; font-weight: 800; color: var(--ailo-accent); }
.vals h3 { margin: 10px 0 8px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.vals p { font-size: 16.5px; color: var(--ailo-muted); }

/* ===== 장학사업 ===== */
.programs { background: var(--p03-warm); }
.prog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.prog { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--p03-r); background: #fff; box-shadow: 0 10px 30px -18px rgba(60, 30, 10, .25); transition: transform .3s var(--ailo-ease); }
.prog:hover { transform: translateY(-4px); }
.prog img { width: 100%; height: auto; aspect-ratio: 4 / 2.8; object-fit: cover; }
.prog__body { flex: 1; display: flex; flex-direction: column; padding: 26px 24px 28px; }
.prog__no { font-family: var(--p03-num); font-size: 14px; font-weight: 800; color: var(--ailo-accent); letter-spacing: .06em; }
.prog h3 { margin: 6px 0 4px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.prog__who { font-size: 14.5px; font-weight: 600; color: var(--ailo-muted); }
.prog__desc { flex: 1; margin: 14px 0 20px; font-size: 16px; color: #3f3934; }
.prog__amt { padding-top: 16px; border-top: 1px solid var(--ailo-line); font-size: 16px; }
.prog__amt b { font-family: var(--p03-num); font-size: 28px; font-weight: 800; color: var(--ailo-accent); }

/* ===== 장학생 이야기 ===== */
.sl-ctrl { display: flex; gap: 8px; }
.sl-ctrl button { width: 52px; height: 52px; border: 1px solid var(--ailo-line); border-radius: 50%; background: #fff; font-size: 17px; transition: background-color .2s, color .2s; }
.sl-ctrl button:hover:not(:disabled) { background: var(--ailo-accent); border-color: var(--ailo-accent); color: #fff; }
.sl-ctrl button:disabled { opacity: .35; cursor: default; }
.sl__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(420px, 82vw); column-gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(var(--ailo-gutter), calc((100vw - var(--ailo-max)) / 2 + var(--ailo-gutter))); scroll-padding-inline: max(var(--ailo-gutter), calc((100vw - var(--ailo-max)) / 2 + var(--ailo-gutter)));
}
.sl__track::-webkit-scrollbar { display: none; }
.story-card { scroll-snap-align: start; display: flex; flex-direction: column; border-radius: var(--p03-r); overflow: hidden; background: var(--p03-warm); }
.story-card img { width: 100%; height: auto; aspect-ratio: 10 / 7; object-fit: cover; }
.story-card__body { flex: 1; display: flex; flex-direction: column; padding: 28px; }
.story-card__q { font-size: 20px; font-weight: 800; line-height: 1.45; letter-spacing: -.02em; }
.story-card__txt { flex: 1; margin: 14px 0 20px; font-size: 16px; color: #3f3934; }
.story-card__who { font-size: 15px; color: var(--ailo-muted); }
.story-card__who b { margin-right: 6px; color: var(--ailo-fg); }
.sl__bar { height: 2px; margin-top: 32px; background: var(--ailo-line); overflow: hidden; }
.sl__bar i { display: block; height: 100%; background: var(--ailo-accent); transition: margin-left .2s; }
.sl__note { margin-top: 14px; font-size: 14px; color: var(--ailo-muted); }

/* ===== 선발 안내 ===== */
.apply { background: var(--p03-tint); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.steps li { position: relative; padding: 30px 24px; border-radius: var(--p03-r); background: #fff; }
.steps li:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 42px; width: 8px; height: 8px; border: solid var(--ailo-accent); border-width: 1px 1px 0 0; rotate: 45deg; }
.steps__m { font-family: var(--p03-num); font-size: 15px; font-weight: 800; color: var(--ailo-accent); }
.steps h3 { margin: 8px 0 6px; font-size: 20px; font-weight: 800; }
.steps p { font-size: 15.5px; color: var(--ailo-muted); }

/* ===== 걸어온 길 ===== */
.history__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.history__img { width: 100%; height: auto; aspect-ratio: 7 / 5; object-fit: cover; margin-top: 32px; border-radius: var(--p03-r); filter: grayscale(1); }
.vline { position: relative; padding-left: 32px; border-left: 1px solid var(--ailo-line); }
.vline li { position: relative; padding: 0 0 32px; }
.vline li::before { content: ""; position: absolute; left: -38px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--ailo-accent); }
.vline li:last-child::before { background: var(--ailo-accent); }
.vline b { font-family: var(--p03-num); font-size: 26px; font-weight: 800; color: var(--ailo-accent); }
.vline p { font-size: 17px; color: #3f3934; }

/* ===== 알림마당 ===== */
.news { padding-top: 0; }
.ailo-postlist__subject { font-size: 17px; }

/* ===== 함께하는 분들 ===== */
.supporters { padding-block: 56px; background: var(--p03-warm); }
.supporters__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin-bottom: 18px; }
.supporters__title { font-size: 20px; font-weight: 800; }
.supporters__lead { font-size: 16px; color: var(--ailo-muted); }
.supporters__lead b { font-family: var(--p03-num); color: var(--ailo-accent); }

/* ===== 후원 띠 ===== */
.cta__eyebrow { color: rgba(255, 255, 255, .82); }

/* ===== 오시는 길 + 편지 ===== */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.visit__title { font-size: clamp(26px, 1.2vw + 18px, 38px); }
.visit__map { margin-top: 28px; border-radius: var(--p03-r); overflow: hidden; }
.visit__map svg { width: 100%; height: auto; aspect-ratio: 420 / 260; }
.visit__dl { margin: 20px 0 0; }
.visit__dl > div { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ailo-line); font-size: 16px; }
.visit__dl dt { font-weight: 700; color: var(--ailo-accent); }
.visit__dl dd { margin: 0; color: #3f3934; }
.letter { padding: clamp(28px, 3.5vw, 48px); border-radius: var(--p03-r); background: var(--p03-warm); }
.letter__title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.letter__lead { margin: 10px 0 24px; font-size: 16.5px; color: var(--ailo-muted); }
.letter__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.letter__f { display: grid; gap: 6px; margin-bottom: 16px; }
.letter label, .letter legend { font-size: 15.5px; font-weight: 700; }
.letter input[type=text], .letter textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid #c9bfb5; border-radius: 6px; background: #fff; font-size: 16px; }
.letter input:focus, .letter textarea:focus { outline: 0; border-color: var(--ailo-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ailo-accent) 18%, transparent); }
.letter__topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; border: 0; }
.letter__topics legend { float: left; width: 100%; margin-bottom: 8px; }
.letter__topics label { position: relative; font-weight: 600 !important; }
.letter__topics input { position: absolute; opacity: 0; inset: 0; }
.letter__topics label { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border: 1px solid #c9bfb5; border-radius: 999px; background: #fff; cursor: pointer; }
.letter__topics label:has(input:checked) { background: var(--ailo-accent); border-color: var(--ailo-accent); color: #fff; }
.letter__topics label:has(input:focus-visible) { outline: 2px solid var(--ailo-accent); outline-offset: 2px; }
.letter__agree { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; font-size: 15px !important; font-weight: 400 !important; color: var(--ailo-muted); }
.letter__agree input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--ailo-accent); }
.letter__agree span { color: var(--ailo-accent); font-weight: 700; }
.letter__btn { min-height: 54px; padding: 0 36px; border: 0; border-radius: 999px; background: var(--ailo-accent); color: #fff; font-size: 16px; font-weight: 800; }
.letter__btn:hover { background: color-mix(in srgb, var(--ailo-accent) 85%, #000); }

/* ===== 푸터 ===== */
.ft { background: var(--p03-dark); color: rgba(255, 255, 255, .72); padding: 56px 0 32px; font-size: 15px; }
.ft__say { font-size: clamp(18px, .6vw + 15px, 22px); font-weight: 700; color: #fff; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.ft__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px 48px; padding: 28px 0; }
.ft__name { margin-bottom: 8px; font-size: 18px; font-weight: 800; color: #fff; }
.ft__row p:not(.ft__name) { line-height: 1.85; }
.ft__links { display: flex; flex-wrap: wrap; gap: 6px 22px; align-content: flex-start; }
.ft__links a { color: rgba(255, 255, 255, .8); }
.ft__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ft__links b { color: #fff; }
.ft__copy { font-size: 13px; color: rgba(255, 255, 255, .55); }

/* ===== 반응형 ===== */
@media (max-width: 1279.98px) { .hd__cta { display: none; } }
@media (max-width: 1199.98px) {
  .prog-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li::after { display: none; }
}
@media (max-width: 991.98px) {
  :root { --ailo-header-h: 64px; }
  .ailo-sitemap-btn { display: none; }
  .hd__in .ailo-burger { margin-left: auto; }
  .nums__list { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .nums__list li:nth-child(3) { border-left: 0; padding-left: 0; }
  .story__grid, .history__in, .contact__grid { grid-template-columns: 1fr; }
  .vals { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 575.98px) {
  .logo { font-size: 18px; }
  .nums__list li { padding: 0 16px; }
  .nums__list li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .prog-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; padding: 20px; }
  .steps li h3 { margin: 0; grid-column: 2; }
  .steps li p { grid-column: 2; }
  .steps__m { grid-row: span 2; }
  .sl-ctrl button { width: 44px; height: 44px; }
  .letter__row { grid-template-columns: 1fr; gap: 0; }
  .ailo-postlist a { flex-wrap: wrap; gap: 4px 12px; }
  .ailo-postlist__subject { flex-basis: 100%; order: 2; white-space: normal; }
  .ailo-postlist__date { margin-left: auto; }
}
