/* ============================================
   FlowLab 교육 — 교육프로그램 목록 전용 스타일
   Figma [전달용]교육홈페이지 교육프로그램-list 프레임(25:3677) 본문 auto-layout 값 1:1 전사
   (EDU-FIGMA-PORT-2b, 2026-09-22). site.css(토큰·공용 Header/footer) 뒤에 로드한다.
   기준 캔버스 1920 / 컨테이너 1440 / 콘텐츠 1360. fp- 접두어.
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
ul { list-style: none; }
img { height: auto; }

/* ---------- 배너 section 1920×598 (Figma pad-top 119 = 오버레이 헤더 자리 → 흐름상 0) ---------- */
.fp-banner { position: relative; overflow: hidden; background: #FFE1E1; }
.fp-banner-deco {
  position: absolute; top: 0; left: calc(50% - 16px); width: 792px; height: 792px;
  border-radius: 50%; background: rgba(255, 255, 255, .6); pointer-events: none;
}
.fp-banner-inner {
  position: relative; max-width: min(var(--container), 100% - 2 * var(--gutter)); min-height: 479px; margin: 0 auto; padding: 52px 40px;
  display: flex; align-items: center; gap: 80px;
}
.fp-banner-title { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 40px 0; }
.fp-banner-title h1 { font-size: 48px; font-weight: 700; line-height: 1.3; letter-spacing: -0.48px; color: var(--fh-black); }
.fp-banner-title p { font-size: 24px; font-weight: 400; line-height: 1.3; letter-spacing: -0.24px; color: var(--fh-ink-2); }
.fp-banner-img { flex: 0 0 548px; max-width: 100%; }

/* ---------- 본문 section 1920×2496 ---------- */
.fp-main { max-width: min(var(--container), 100% - 2 * var(--gutter)); margin: 0 auto; padding: 108px 40px; display: flex; flex-direction: column; align-items: center; gap: 80px; }

.fp-search-sec { width: 100%; display: flex; flex-direction: column; gap: 40px; }
.fp-search-sec h2 { font-size: 40px; font-weight: 700; line-height: 52px; letter-spacing: -0.4px; text-align: center; color: var(--fh-ink-1); }
.fp-search-wrap { display: flex; flex-direction: column; align-items: center; gap: 60px; }
.fp-search {
  width: 808px; max-width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 6px 6px 6px 28px; background: #fff; border: 1px solid var(--fh-ink-5); border-radius: 999px;
}
.fp-search input { flex: 1 1 0; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 20px; font-weight: 500; line-height: 26px; color: var(--fh-ink-1); }
.fp-search input::placeholder { color: var(--fh-ink-5); }
.fp-search button {
  flex: 0 0 60px; width: 60px; height: 60px; border-radius: 999px; border: 1px solid var(--fh-black); background: var(--fh-black);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.fp-search button img { width: 26px; height: 26px; }

.fp-filters { display: flex; align-items: center; justify-content: center; gap: 16px; }
.fp-filter { width: 140px; display: flex; flex-direction: column; align-items: center; gap: 16px; font-size: 20px; font-weight: 500; line-height: 26px; color: var(--fh-ink-5); text-align: center; }
.fp-filter.active { color: var(--fh-black); }
.fp-filter-icon { width: 98px; height: 98px; border-radius: 999px; border: 1px solid var(--fh-line); padding: 32px; display: flex; align-items: center; justify-content: center; }
.fp-filter-icon img { width: 54px; height: 54px; }
.fp-filter.active .fp-filter-icon { border: 0; padding: 0; }
.fp-filter.active .fp-filter-icon img { width: 98px; height: 98px; }

.fp-cards { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px 40px; }
.fp-card { display: flex; flex-direction: column; gap: 32px; color: inherit; }
.fp-card-img { position: relative; height: 320px; border-radius: 24px; overflow: hidden; }
.fp-card-img img { width: 100%; height: 100%; object-fit: cover; }
.fp-card--closed .fp-card-img::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .2); }
.fp-card-body { display: flex; flex-direction: column; gap: 20px; padding: 0 12px; }
.fp-tag {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 24px;
  font-size: 16px; font-weight: 500; line-height: 1.3; letter-spacing: -0.16px; background: var(--fh-card); color: #2776FF;
}
.fp-tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.fp-tag--upcoming { background: #FFF8D8; color: #FFB22F; }
.fp-tag--closed { background: var(--fh-footer); color: #808691; backdrop-filter: blur(10px); }
.fp-card-txt { display: flex; flex-direction: column; gap: 12px; }
.fp-card-txt h3 { font-size: 32px; font-weight: 700; line-height: 1.3; letter-spacing: -0.384px; color: var(--fh-ink-1); }
.fp-card-txt p { font-size: 20px; font-weight: 500; line-height: 26px; color: var(--fh-ink-3); }

.fp-page { display: flex; align-items: center; justify-content: center; gap: 24px; }
.fp-page > img { width: 28px; height: 28px; }
.fp-page-nums { display: flex; align-items: center; gap: 2px; }
.fp-page-nums a { padding: 6px 16px; font-size: 24px; font-weight: 400; line-height: 1.3; letter-spacing: -0.24px; color: var(--fh-ink-3); }
.fp-page-nums a.active { font-weight: 700; color: #2776FF; }

/* ---------- 최소 가드 (Figma에 1920 외 시안 없음 — 깨짐 방지만) ---------- */
@media (max-width: 1439px) {
  .fp-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1023px) {
  .fp-banner-deco { display: none; }
  .fp-banner-inner { flex-direction: column; align-items: flex-start; gap: 24px; padding: 40px 24px; min-height: 0; }
  .fp-banner-img { flex-basis: auto; }
  .fp-main { padding: 60px 24px; gap: 48px; }
  .fp-filters { flex-wrap: wrap; }
  .fp-cards { grid-template-columns: 1fr; }
}
