/* ==========================================================
   영단컷 홈페이지 — 학습 사례 카드 (이미지가 카드 전체를 덮는 방식)
   이미지: img/cases/caseNN.webp (3:4) — 없으면 색상 배경 + "사진 자리" 표시
   ========================================================== */

.cases { padding: 150px 0 130px; background: var(--navy); color: var(--white); overflow: hidden; }
.cases .eyebrow { color: var(--sky); }
.cases .sec-title { color: var(--white); }
.cases .sec-title em { color: var(--sky); }
.cases .sec-desc { color: rgba(255, 255, 255, .7); }

.case-track {
  display: flex; gap: 24px; margin: 70px -24px 0; padding: 10px 24px 60px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.case-track::-webkit-scrollbar { display: none; }

.case {
  position: relative; flex: 0 0 380px; display: flex; flex-direction: column;
  border-radius: 32px; overflow: hidden; scroll-snap-align: start;
  background-color: #0A1A45;
  background-size: 100% auto; background-position: top center; background-repeat: no-repeat;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
  transition: transform .3s var(--ease);
}
.case:hover { transform: translateY(-8px); }
/* 아래쪽 글자가 잘 읽히도록 어둡게 */
.case::after {
  content: ""; position: absolute; inset: 0;
  display: none; /* 그림 아래쪽이 이미 카드 배경색으로 이어지게 만들어져 있음 */
}
/* 위쪽 그림 자리 (글은 그 아래로 흐름 → 글이 길어져도 그림을 덮지 않음) */
.case::before { content: ""; display: block; aspect-ratio: 900 / 560; flex: none; }
/* 사진이 아직 없을 때만 보이는 표시 */
.case .ph-hint {
  display: none; position: absolute; left: 0; right: 0; top: 62px; z-index: 1;
  text-align: center; font-size: 15px; font-weight: 800; color: rgba(255, 255, 255, .55);
}
.case .ph-hint b { display: block; font-size: 54px; line-height: 1.2; }
.case.no-img .ph-hint { display: block; }

.case-top { position: absolute; left: 24px; right: 24px; top: 24px; z-index: 2; display: flex; justify-content: space-between; gap: 8px; }
.case-tag { padding: 8px 14px; border-radius: 999px; background: var(--blue); font-size: 15px; font-weight: 900; }
.case-label { padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); font-size: 13px; font-weight: 800; }

.case-body { position: relative; z-index: 2; padding: 0 28px 30px; }
.case-done {
  display: inline-block; margin-bottom: 12px; padding: 7px 13px; border-radius: 999px;
  background: #12B76A; color: var(--white); font-size: 14px; font-weight: 900;
}
.case-num { font-size: 50px; font-weight: 900; line-height: 1; letter-spacing: -.05em; color: #FFC61A; }
.case-num small { display: block; margin-top: 6px; font-size: 15px; font-weight: 800; letter-spacing: 0; color: rgba(255, 255, 255, .75); }
.case h3 { margin-top: 16px; font-size: 26px; font-weight: 900; line-height: 1.3; letter-spacing: -.04em; }
.case ul { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.case li { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.case li::before { content: "· "; }
.case .who { margin-top: 14px; font-size: 14px; font-weight: 800; color: var(--sky); }

.case-btns { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.case-btns button {
  width: 60px; height: 60px; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .3); background: transparent; color: var(--white);
  font-size: 22px; font-weight: 900; transition: background .2s;
}
.case-btns button:hover { background: rgba(255, 255, 255, .12); }
.cases-note { margin-top: 30px; text-align: center; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .5); }

@media (max-width: 760px) {
  .cases { padding: 100px 0 90px; }
  .case-track { margin: 50px -20px 0; padding: 10px 20px 26px; gap: 16px; }
  .case { flex-basis: 84%; }
  .case-num { font-size: 42px; }
  .case h3 { font-size: 23px; }
  .case.no-img .ph-hint { display: none; }
}
