/* ==========================================================================
   AILO Public P07 — 정상에듀 입시학원
   원형: A 풀블리드 슬라이드형 — 소식 띠 + 투명→흰 메가메뉴, 학원 실사 3장 슬라이드, 겹친 수능 D-day 띠,
         합격 실적 숫자·추이 막대 · 강사진 사진 카드 · 시간표 탭 · 사진 배경 상담 띠
   타이포: Pretendard + Archivo(숫자·D-day·영문 eyebrow — 장식 한글 서체 없음)
   컬러: 네이비 #1c2c4c 1색 + 골드 강조 #a8843a(포인트만) + 무채색
   ========================================================================== */

:root {
  --ailo-bg: #ffffff;
  --ailo-fg: #141a26;
  --ailo-muted: #4f5767;
  --ailo-line: #e2e5eb;
  --ailo-accent: #1c2c4c;
  --ailo-accent-ink: #ffffff;
  --ailo-header-h: 116px;

  --p07-gold: #a8843a;
  --p07-soft: #f4f5f8;
  --p07-dark: #121c31;
  --p07-num: "Archivo", "Pretendard Variable", Pretendard, sans-serif;
  --p07-sec: clamp(80px, 9vw, 132px);

  --ailo-hero-dim: linear-gradient(90deg, rgba(10, 16, 30, .78) 0%, rgba(10, 16, 30, .48) 55%, rgba(10, 16, 30, .25) 100%);
  --ailo-hero-btn-radius: 2px;
  --ailo-overlap: 72px;
  --ailo-overlap-radius: 4px;
  --ailo-mega-col: 7.5em;
  --ailo-mega-col-md: 6em;
}

body { font-size: 17px; line-height: 1.7; }
.sec { padding-block: var(--p07-sec); }
.ailo-eyebrow { font-family: var(--p07-num); letter-spacing: .14em; --ailo-eyebrow-color: var(--p07-gold); }
.head-note { max-width: 30em; font-size: 16px; color: var(--ailo-muted); }

/* ===== 헤더 ===== */
.hd__ribbon { height: 36px; display: flex; align-items: center; background: var(--p07-dark); color: rgba(255, 255, 255, .85); font-size: 14px; }
.hd__ribbon .ailo-marquee { width: 100%; --ailo-marquee-gap: 64px; --ailo-marquee-speed: 40s; }
.hd__ribbon i { color: var(--p07-gold); margin-right: 6px; }
.hd__in { height: 80px; display: flex; align-items: center; gap: 18px; }
.hd__logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.hd__logo span { display: flex; align-items: baseline; gap: 6px; font-size: 22px; font-weight: 900; letter-spacing: -.04em; }
.hd__logo small { font-size: 15px; font-weight: 600; opacity: .85; letter-spacing: -.02em; }
.hd__nav { flex: 1; display: flex; justify-content: center; }
@media (max-width: 991.98px) { .hd__nav.ailo-mega { display: none; } }
.hd__nav .ailo-mega__link { font-weight: 700; }
.hd__tel { flex: none; display: inline-flex; align-items: center; gap: 8px; font-family: var(--p07-num); font-size: 17px; font-weight: 800; }
.hd__tel i { font-size: 14px; color: var(--p07-gold); }
.hd__cta { flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 20px; background: var(--p07-gold); color: #fff; font-size: 15px; font-weight: 800; }
.hd__cta:hover { color: #fff; background: color-mix(in srgb, var(--p07-gold) 85%, #000); }
.mnav { background: var(--p07-dark); color: #fff; }
.mnav__in { display: flex; flex-direction: column; padding: calc(var(--ailo-header-h) + 16px) var(--ailo-gutter) 40px; }
.mnav__in > a { display: flex; gap: 14px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 21px; font-weight: 700; }
.mnav__in > a em { font-family: var(--p07-num); font-style: normal; font-size: 14px; color: var(--p07-gold); }
.mnav__in > a.mnav__cta { justify-content: space-between; margin-top: 24px; padding: 16px 20px; border: 0; background: var(--p07-gold); font-size: 17px; }
.mnav__tel { margin-top: 16px; font-size: 15px; color: rgba(255, 255, 255, .75); }

/* ===== 히어로 ===== */
.hero .ailo-hero__body { padding-top: calc(var(--ailo-header-h) + 40px); }
.hero .ailo-hero__title { font-weight: 900; }

/* D-day 띠 */
.dday { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; align-items: center; gap: 0; padding: 0; overflow: hidden; background: var(--ailo-accent); color: #fff; }
.dday > * { padding: 26px 32px; }
.dday > * + * { border-left: 1px solid rgba(255, 255, 255, .14); }
.dday__label { font-size: 15px; color: rgba(255, 255, 255, .75); }
.dday__num { font-family: var(--p07-num); font-size: clamp(40px, 3vw + 18px, 64px); font-weight: 900; letter-spacing: -.02em; line-height: 1.05; color: #fff; }
.dday__num span { color: #d9be7c; }
.dday__date { font-size: 14px; color: rgba(255, 255, 255, .65); }
.dday__stat { display: flex; align-items: center; gap: 14px; }
.dday__stat b { font-family: var(--p07-num); font-size: 44px; font-weight: 900; line-height: 1; }
.dday__stat span { font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, .8); }
.dday__go { align-self: stretch; display: flex; align-items: center; gap: 10px; background: var(--p07-gold); color: #fff; font-size: 16px; font-weight: 800; white-space: nowrap; }
.dday__go:hover { color: #fff; background: color-mix(in srgb, var(--p07-gold) 85%, #000); }

/* ===== 합격 실적 ===== */
.score { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 16px; }
.score__item { display: flex; flex-direction: column; gap: 6px; padding: 28px 24px; background: var(--p07-soft); }
.score__item--main { background: var(--ailo-accent); color: #fff; }
.score__k { font-size: 15.5px; font-weight: 700; color: var(--ailo-muted); }
.score__item--main .score__k { color: rgba(255, 255, 255, .78); }
.score__item strong { font-family: var(--p07-num); font-size: clamp(36px, 2.4vw + 16px, 56px); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.score__item--main strong { font-size: clamp(48px, 3.4vw + 18px, 80px); }
.score__item strong small { margin-left: 4px; font-family: var(--ailo-font); font-size: 17px; font-weight: 700; }
.score__d { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--p07-gold); }
.trend { margin-top: 32px; padding: 32px; border: 1px solid var(--ailo-line); }
.trend__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.trend__head h3 { font-size: 19px; font-weight: 800; }
.trend__head p { font-size: 14px; color: var(--ailo-muted); }
.trend__bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; align-items: end; height: 220px; }
.trend__bars li { display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-align: center; }
.trend__v { font-family: var(--p07-num); font-size: 17px; font-weight: 800; }
.trend__bar { align-self: end; height: 0; background: #c8cfdc; transition: height 1s var(--ailo-ease); }
.trend__bars.is-on .trend__bar { height: calc(var(--v) * 1%); }
.trend__bars .is-now .trend__bar { background: var(--ailo-accent); }
.trend__y { padding-top: 8px; font-family: var(--p07-num); font-size: 14px; color: var(--ailo-muted); }
@media (prefers-reduced-motion: reduce) { .trend__bar { height: calc(var(--v) * 1%); } }

/* ===== 시스템 ===== */
.system { background: var(--p07-soft); }
.system__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.system__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.system__facts li { display: grid; gap: 4px; padding: 18px; background: #fff; }
.system__facts b { font-family: var(--p07-num); font-size: 28px; font-weight: 900; color: var(--ailo-accent); }
.system__facts span { font-size: 14.5px; color: var(--ailo-muted); }
.loop { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.loop li { padding: 28px; background: #fff; box-shadow: 0 10px 30px -18px rgba(20, 30, 60, .25); }
.loop__no { font-family: var(--p07-num); font-size: 15px; font-weight: 800; color: var(--p07-gold); }
.loop h3 { margin: 6px 0; font-size: 24px; font-weight: 800; }
.loop p { font-size: 16px; color: var(--ailo-muted); }

/* ===== 과정 ===== */
.prog { display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.prog__item { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 30px 28px; background: var(--p07-soft); transition: background-color .25s, color .25s; }
.prog__item:hover { background: var(--ailo-accent); color: #fff; }
.prog__item:hover p { color: rgba(255, 255, 255, .8); }
.prog__item--wide { grid-row: span 2; background: var(--ailo-accent); color: #fff; justify-content: flex-end; min-height: 360px; }
.prog__item--wide p { color: rgba(255, 255, 255, .8) !important; }
.prog__tag { align-self: flex-start; padding: 4px 10px; background: var(--p07-gold); font-size: 13.5px; font-weight: 800; color: #fff; }
.prog__item h3 { font-size: 22px; font-weight: 800; }
.prog__item--wide h3 { font-size: clamp(26px, 1.2vw + 18px, 36px); }
.prog__item p { font-size: 16px; color: var(--ailo-muted); }
.prog__go { margin-top: 10px; font-weight: 700; color: #d9be7c; }
.prog__num { position: absolute; right: 20px; top: 12px; font-family: var(--p07-num); font-size: 44px; font-weight: 900; opacity: .12; }

/* ===== 강사진 ===== */
.teachers { background: var(--p07-soft); }
.filter { display: flex; flex-wrap: wrap; gap: 6px; }
.filter button { min-height: 44px; padding: 0 18px; border: 1px solid #c9ced8; background: #fff; font-size: 15px; font-weight: 700; color: var(--ailo-muted); }
.filter button.is-on { background: var(--ailo-accent); border-color: var(--ailo-accent); color: #fff; }
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tcard { display: grid; grid-template-columns: 42% 1fr; background: #fff; }
.tcard[hidden] { display: none; }
.tcard__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; filter: grayscale(.2); }
.tcard__body { padding: 24px 22px; display: flex; flex-direction: column; gap: 6px; }
.tcard__sub { font-size: 14px; font-weight: 800; color: var(--p07-gold); }
.tcard h3 { font-size: 22px; font-weight: 800; }
.tcard h3 small { display: block; font-size: 14px; font-weight: 600; color: var(--ailo-muted); }
.tcard__one { font-size: 15.5px; font-weight: 600; line-height: 1.5; }
.tcard ul { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--ailo-line); display: grid; gap: 4px; }
.tcard li { font-size: 14px; color: var(--ailo-muted); }

/* ===== 시간표 ===== */
.ailo-tabs--pill .ailo-tabs__tab { border-radius: 2px; }
.tt__scroll { overflow-x: auto; }
.tt__table { width: 100%; min-width: 760px; border-collapse: collapse; border-top: 1px solid var(--ailo-fg); font-size: 16px; }
.tt__table thead th { padding: 14px 16px; background: var(--p07-soft); font-size: 15px; color: var(--ailo-muted); text-align: left; border-bottom: 1px solid var(--ailo-line); }
.tt__table td, .tt__table tbody th { padding: 15px 16px; border-bottom: 1px solid var(--ailo-line); }
.tt__table tbody th { font-weight: 800; color: var(--ailo-accent); white-space: nowrap; }
.tt__table td:nth-child(4) { font-family: var(--p07-num); font-weight: 600; white-space: nowrap; }
.st { display: inline-block; padding: 3px 10px; background: var(--p07-soft); font-size: 14px; font-weight: 700; color: var(--ailo-accent); white-space: nowrap; }
.st--hot { background: #f3ecdd; color: #7c5e21; }
.st--off { color: var(--ailo-muted); }
.tt__note { margin-top: 18px; font-size: 14.5px; color: var(--ailo-muted); }
.tt__note i { color: var(--p07-gold); margin-right: 6px; }

/* ===== 소식 ===== */
.news { background: var(--p07-soft); }
.news__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.news__col { padding: 32px; background: #fff; }
.news__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.news__head h2 { font-size: 24px; font-weight: 800; }
.news__head a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--ailo-line); color: var(--ailo-muted); }
.news__head a:hover { border-color: var(--ailo-accent); color: var(--ailo-accent); }
.ailo-postlist__cat { color: var(--p07-gold); }
.ailo-postlist__date { font-family: var(--p07-num); }

/* ===== 연혁 ===== */
.stairs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: end; }
.stairs li { display: grid; gap: 6px; padding: 24px 20px; min-height: calc(150px + var(--i) * 34px); background: var(--p07-soft); align-content: start; border-top: 1px solid var(--ailo-accent); }
.stairs li:last-child { background: var(--ailo-accent); color: #fff; }
.stairs b { font-family: var(--p07-num); font-size: 28px; font-weight: 900; color: var(--ailo-accent); }
.stairs li:last-child b { color: #d9be7c; }
.stairs span { font-size: 15.5px; }
.partners { margin-top: 56px; padding: 28px 0; border-block: 1px solid var(--ailo-line); }

/* ===== 오시는 길 ===== */
.map { padding-top: 0; }
.map__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.map__info address { margin: 18px 0; font-style: normal; font-size: 18px; font-weight: 700; }
.map__list { border-top: 1px solid var(--ailo-fg); }
.map__list li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--ailo-line); font-size: 16px; }
.map__list i { width: 20px; color: var(--p07-gold); padding-top: 5px; }
.map__list b { margin-right: 6px; }
.grid-map { position: relative; aspect-ratio: 16 / 11; background: #eceff4; overflow: hidden; }
.gm-road { position: absolute; background: #fff; }
.gm-road--h { left: 0; right: 0; height: 24px; }
.gm-road--v { top: 0; bottom: 0; width: 24px; }
.gm-road--thin.gm-road--h { height: 12px; }
.gm-road--thin.gm-road--v { width: 12px; }
.gm-block { position: absolute; background: #dde2ea; }
.gm-block--me { display: grid; place-items: center; background: var(--ailo-accent); color: #fff; font-size: 16px; }
.gm-station { position: absolute; padding: 4px 10px; background: #fff; font-size: 13.5px; font-weight: 700; box-shadow: 0 4px 12px rgba(0, 0, 0, .1); }

/* ===== 상담 ===== */
.consult { position: relative; isolation: isolate; color: #fff; background: var(--p07-dark); }
.consult__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.consult::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 16, 30, .84); }
.consult__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.consult__title { font-size: clamp(30px, 2.2vw + 16px, 52px); font-weight: 900; line-height: 1.25; letter-spacing: -.03em; }
.consult__copy ul { margin-top: 28px; display: grid; gap: 10px; }
.consult__copy li { font-size: 17px; color: rgba(255, 255, 255, .88); }
.consult__copy li i { color: #d9be7c; margin-right: 8px; }
.cform { padding: clamp(24px, 3vw, 40px); background: #fff; color: var(--ailo-fg); }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.cform__row label { display: grid; gap: 6px; }
.cform__row span { font-size: 15px; font-weight: 700; }
.cform input:not([type=checkbox]):not([type=radio]), .cform select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #c4cad6; font-size: 16px; background: #fff; }
.cform__set { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 14px; padding: 0; border: 0; }
.cform__set legend { float: left; width: 100%; margin-bottom: 6px; font-size: 15px; font-weight: 700; }
.cform__set label { display: inline-flex; align-items: center; gap: 6px; font-size: 15.5px; cursor: pointer; }
.cform__set input, .cform__agree input { width: 18px; height: 18px; accent-color: var(--ailo-accent); }
.cform__agree { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 20px; font-size: 14.5px; color: var(--ailo-muted); }
.cform__agree input { margin-top: 3px; flex: none; }
.cform__btn { width: 100%; min-height: 56px; border: 0; background: var(--ailo-accent); color: #fff; font-size: 17px; font-weight: 800; }
.cform__btn:hover { background: color-mix(in srgb, var(--ailo-accent) 85%, #000); }

/* ===== 푸터 ===== */
.ft { background: #0d1322; color: rgba(255, 255, 255, .7); padding: 52px 0 32px; font-size: 15px; }
.ft__top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ft__logo { font-size: 22px; font-weight: 900; color: #fff; letter-spacing: -.04em; }
.ft__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.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__info { padding-top: 22px; }
.ft__info p { line-height: 1.85; }
.ft__copy { margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, .55); }

/* ===== 반응형 ===== */
@media (max-width: 1279.98px) {
  .hd__tel { display: none; }
  .score { grid-template-columns: repeat(3, 1fr); }
  .score__item--main { grid-column: span 2; }
  .tgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1199.98px) {
  .hd__cta { display: none; }
  .dday { grid-template-columns: 1fr 1fr; }
  .dday > *:nth-child(3) { border-left: 0; }
  .dday > *:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
  .dday__go { justify-content: center; }
}
@media (max-width: 991.98px) {
  :root { --ailo-header-h: 100px; --ailo-overlap: 40px; }
  .hd__in { height: 64px; }
  .hd__ribbon { font-size: 13.5px; }
  .hd__in .ailo-burger { margin-left: auto; }
  .system__grid, .consult__grid, .map__grid { grid-template-columns: 1fr; }
  .prog { grid-template-columns: 1fr 1fr; }
  .prog__item--wide { grid-column: span 2; grid-row: auto; min-height: 260px; }
  .news__grid { grid-template-columns: minmax(0, 1fr); }
  .stairs { grid-template-columns: 1fr; }
  .stairs li { min-height: 0; grid-template-columns: 80px 1fr; }
}
@media (max-width: 575.98px) {
  .hd__logo span { font-size: 19px; }
  .dday { grid-template-columns: 1fr; }
  .dday > * { padding: 18px 20px; border-left: 0 !important; }
  .dday > * + * { border-top: 1px solid rgba(255, 255, 255, .14); }
  .score { grid-template-columns: 1fr 1fr; gap: 10px; }
  .score__item { padding: 20px 16px; }
  .trend { padding: 20px 16px; }
  .trend__bars { gap: 10px; height: 180px; }
  .system__facts { grid-template-columns: 1fr; }
  .loop, .prog, .tgrid { grid-template-columns: 1fr; }
  .prog__item--wide { grid-column: auto; }
  .tcard { grid-template-columns: 38% 1fr; }
  .news__col { padding: 22px 18px; }
  .cform__row { grid-template-columns: 1fr; }
  .ailo-postlist a { flex-wrap: wrap; gap: 2px 12px; }
  .ailo-postlist__subject { flex-basis: 100%; order: 2; white-space: normal; }
  .ailo-postlist__date { margin-left: auto; }
}
