/* 홈 화면. 클래스는 hm- 접두사를 사용한다. */
.main-wrap { background: #fff; word-break: keep-all; }

.hm-notice { margin-top: 20px; }

/* 상단 배너 */
.hm-hero { overflow: hidden; padding-top: 26px; }
.hm-rail { display: flex; justify-content: center; gap: 12px; height: 340px; }
.hm-banner { position: relative; display: block; flex: none; overflow: hidden; border-radius: 18px; }
.hm-side { width: 236px; padding: 26px 22px; }
.hm-side strong { position: relative; z-index: 1; display: block; font-size: 21px; line-height: 1.35; font-weight: 800; letter-spacing: -.03em; }
.hm-slides { flex: none; width: 660px; }
.hm-main { width: 100%; height: 100%; padding: 40px 44px; color: #fff; }
.hm-main[hidden] { display: none; }
.hm-main > :not(.hm-scene) { position: relative; z-index: 1; }
.hm-main h1, .hm-main h2 { max-width: 330px; margin-top: 16px; font-size: 38px; line-height: 1.24; font-weight: 850; letter-spacing: -.035em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hm-main p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 320px; margin-top: 10px; font-size: 16px; overflow-wrap: anywhere; }
.hm-pill { display: inline-block; padding: 4px 12px; border-radius: 20px; background: #fff; color: var(--text-main); font-size: 12px; font-weight: 800; }
.hm-main .hm-cta { position: absolute; left: 44px; bottom: 32px; padding: 11px 22px; border-radius: 10px; background: #fff; color: #17368f; font-size: 14px; font-weight: 800; }
.hm-controls { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.hm-controls button { width: 40px; height: 40px; border-radius: 50%; font-size: 24px; }
.hm-controls button:hover { background: var(--bg-subtle); }
.hm-dots { display: flex; gap: 7px; }
.hm-dots i { width: 7px; height: 7px; border-radius: 4px; background: #d5d9e2; }
.hm-dots i.on { width: 28px; background: var(--text-main); }

/* 바로가기 */
.hm-quick { display: grid; grid-template-columns: 210px repeat(4, 1fr); gap: 14px; align-items: center; margin-top: 24px; }
.hm-quick h2 { font-size: 21px; line-height: 1.4; letter-spacing: -.03em; }
.hm-quick a { display: flex; align-items: center; gap: 14px; height: 88px; padding: 0 18px; border-radius: 14px; background: #f6f7fa; }
.hm-quick a:hover { background: #eef2ff; }
.hm-quick img { width: 52px; height: 52px; filter: drop-shadow(0 5px 6px rgba(22, 34, 70, .2)); }
.hm-quick b { display: block; font-size: 15px; }
.hm-quick small { display: block; font-size: 12px; color: var(--text-sub); }
.hm-strips { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.hm-strips > * { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 24px; border-radius: 12px; font-size: 15px; font-weight: 750; }
.hm-strips img { width: 46px; height: 46px; }
.hm-strip-match { background: #fff1ea; color: #a3341a; }
.hm-strip-private { background: #fff7d6; color: #6d5000; }

/* 공고 카드 */
.hm-section { margin-top: 72px; }
.hm-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.hm-section-head h2, .hm-title { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.hm-section-head a { font-size: 14px; font-weight: 650; color: var(--text-sub); }
.hm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.hm-chips a { padding: 8px 17px; border-radius: 22px; font-size: 14px; font-weight: 700; color: var(--text-sub); }
.hm-chips a:hover { background: var(--bg-subtle); }
.hm-chips a.on { background: var(--text-main); color: #fff; }
.hm-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.hm-card { display: block; min-width: 0; }
.hm-empty { margin-top: 22px; padding: 44px 20px; border-radius: 14px; background: #f6f7fa; text-align: center; color: var(--text-sub); }

/* 맞춤 찾기 */
.hm-match { margin-top: 92px; padding: 64px 0; background: #12265f; color: #fff; }
.hm-match-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 44px; align-items: center; }
.hm-match-copy h2 { font-size: 36px; line-height: 1.3; font-weight: 850; letter-spacing: -.035em; }
.hm-match-copy p { margin-top: 14px; color: #c9d4ff; line-height: 1.75; }
.hm-match-card { padding: 28px; border-radius: 20px; background: #fff; color: var(--text-main); }
.hm-match-card .home-type-tabs { margin-top: 0; }

.home-type-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 20px 0;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
}

.home-type-tab {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.home-type-tab span {
  display: inline-flex;
  justify-content: center;
  min-width: 22px;
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  font-size: 11px;
}

.home-type-tab.active { background: var(--primary); color: #FFFFFF; }
.home-type-tab.active span { background: rgba(255, 255, 255, 0.2); }

.home-match-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.home-match-grid-scholarship { grid-template-columns: repeat(3, 1fr); }
.home-match-grid .form-group { margin-bottom: 0; }

.home-match-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.home-match-actions span { color: var(--text-muted); font-size: 12px; }
.home-match-pane[hidden] { display: none; }

/* 질문 */
.hm-faq { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.hm-faq a { display: flex; align-items: center; min-height: 96px; padding: 20px 22px; border-radius: 14px; background: #f6f7fa; font-weight: 700; line-height: 1.5; }
.hm-faq a:hover { background: #eef2ff; }
.hm-faq .hm-faq-partner { justify-content: space-between; gap: 10px; background: #2457e6; color: #fff; }
.hm-faq .hm-faq-partner:hover { background: #1d48c4; }
.hm-faq-partner span { min-width: 0; }
.hm-faq-partner small, .hm-faq-partner strong { display: block; white-space: nowrap; }
.hm-faq-partner small { font-size: 12px; font-weight: 500; opacity: .85; }
.hm-faq-partner strong { margin-top: 2px; font-size: 18px; font-weight: 850; }
.hm-faq-partner img { flex: none; width: 48px; height: 48px; }

@media (max-width: 1100px) {
  .hm-quick { grid-template-columns: repeat(2, 1fr); }
  .hm-quick h2 { grid-column: 1 / -1; }
  .hm-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-match-grid { grid-template-columns: 1fr; }
}
