/* home-kit-cards.css — 메인 화면 「메이킹 키트」 카드 (2026-11-27)
   요청 : 카드 폭을 줄여 한 줄에 4장, 표지 그림은 더 길게 보이게.
   다른 스타일 파일은 고치지 않고 맨 마지막에 불러와 덮어쓴다. 이 파일 연결 한 줄을 빼면 종전 모양(한 줄 3장 · 그림 높이 172px).
   앞선 파일들에 !important 가 걸려 있어 여기서도 !important 를 썼다. */
#kitGrid.program-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
}
/* 표지 그림 칸 — 고정 높이 172px 대신 카드 폭에 맞춰 세로로 길게 (가로 5 : 세로 5.6) */
#kitGrid .program-card-visual {
    height: auto !important;
    aspect-ratio: 5 / 5.6;
    min-height: 0 !important;
}
#kitGrid .program-card-visual img { width: 100%; height: 100%; object-fit: cover; }
/* 폭이 좁아진 만큼 글자·아래 줄을 정리 */
#kitGrid .card-title { font-size: 1.02rem; line-height: 1.4; word-break: keep-all; }
#kitGrid .card-description { font-size: .88rem; line-height: 1.6; word-break: keep-all; }
/* [수정 20261127] 아래 줄에는 "운영 중"과 「바로 보기」만. 회차·차시 표시는 가린다(좁은 카드에서 버튼이 다음 줄로 떨어졌다).
   차시 정보는 program-data.js 의 lessonInfo 에 그대로 있고, 각 프로그램 화면에서 볼 수 있다. */
#kitGrid .card-lesson-info { display: none !important; }
#kitGrid .program-footer { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 10px; }
#kitGrid .program-footer .muted { white-space: nowrap; }
#kitGrid .program-footer .button-secondary { padding: 9px 14px; font-size: .88rem; white-space: nowrap; }
#kitGrid .program-footer .muted { font-size: .82rem; }

@media (max-width: 1180px) { #kitGrid.program-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 860px)  { #kitGrid.program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 520px)  { #kitGrid.program-grid { grid-template-columns: 1fr !important; }
                             #kitGrid .program-card-visual { aspect-ratio: 5 / 4; } }
