@charset "utf-8";
/* [2026-11] 캠퍼스 강의 카드 (캠퍼스 목록 · 메인 HOT 영상 공통) — lib/campus_card.lib.php 가 그린다.
   사이트 머리 CSS(main_header.css)가 span·a·p 에 line-height:1em·굵기 400 을 박으므로 클래스마다 직접 정한다. */
.cc-card {
  --cc-teal: #007664;
  --cc-text: #1f2a33;
  --cc-sub: #5b6670;
  --cc-mute: #8a949c;
  --cc-line: #e3e7ea;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
}
.cc-card.is-hidden { opacity: .45; }
.cc-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: var(--cc-text);
  text-decoration: none;
  line-height: 1.4;
}
.cc-link:hover, .cc-link:focus { color: var(--cc-text); text-decoration: none; }
.cc-link:focus-visible { outline: 3px solid var(--cc-teal); outline-offset: -3px; border-radius: 10px; }

/* 이미지: 언제나 16:9 칸 */
.cc-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e8eeec;
  line-height: 0;
}
.cc-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
/* 예전 정사각 양식: 위 5~6% 흰 띠, 6~62% 배너, 아래는 글자. 배너만 보이게 위치를 잡는다 (0.06 / (1 - 0.5625) ≈ 13.7%) */
.cc-thumb--legacy img { object-position: 50% 13.7%; }
.cc-link:hover .cc-thumb img { transform: scale(1.03); }
.cc-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--cc-teal);
  background: linear-gradient(135deg, #e6f2ef, #cfe7e1);
}
.cc-dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.cc-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
  line-height: 1.4;
}
.cc-meta { display: flex; flex-wrap: wrap; gap: 6px; line-height: 1.2; }
.cc-cat, .cc-chip {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}
.cc-cat { background: #e6f2ef; color: var(--cc-teal); }
.cc-chip--soon { background: #eef1fb; color: #3646a6; }
.cc-chip--new { background: #fff1e3; color: #9a4b00; }
.cc-chip--taking { background: #eaf6ee; color: #1e6b3a; }
.cc-chip--hidden { background: #f1f2f4; color: #4b5560; }

.cc-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  min-height: 2.9em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.cc-who {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--cc-sub);
  word-break: keep-all;
}
.cc-org { display: inline-block; font-weight: 400; color: var(--cc-mute); }
.cc-org::before { content: "·"; margin: 0 6px; color: var(--cc-mute); }

/* 관리자 줄 (선택 상자 · 수정) */
.cc-admin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 16px;
  border-top: 1px solid var(--cc-line);
  font-size: 13px;
  line-height: 1.3;
  color: var(--cc-sub);
}
.cc-admin label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; line-height: 1.3; }
.cc-admin input[type=checkbox] { width: 16px; height: 16px; margin: 0; accent-color: var(--cc-teal); }
.cc-admin a { color: var(--cc-teal); font-weight: 500; line-height: 1.3; text-decoration: none; }
.cc-admin a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .cc-body { padding: 10px 12px 12px; gap: 6px; }
  .cc-title { font-size: 14px; }
  .cc-who { font-size: 13px; }
  .cc-cat, .cc-chip { font-size: 11px; padding: 2px 7px; }
  .cc-admin { padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-thumb img { transition: none; }
  .cc-link:hover .cc-thumb img { transform: none; }
}

/* 게시판 목록 칸 (캠퍼스 gallery_a · 영상자료 gallery_video) */
#bo_gall > .inner_container { max-width: 1120px; }
#bo_gall #gall_ul.cc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#bo_gall #gall_ul.cc-grid > li { min-width: 0; margin: 0; padding: 0; }
#bo_gall .cc-empty {
  grid-column: 1 / -1;
  padding: 60px 0;
  font-size: 16px;
  line-height: 1.5;
  color: #5b6670;
  text-align: center;
}
#bo_gall #gall_allchk { margin: 0 0 12px; }
@media (max-width: 900px) {
  #bo_gall #gall_ul.cc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
}
@media (max-width: 560px) {
  #bo_gall .inWrap.plr60 { padding: 0 16px; }
  #bo_gall #gall_ul.cc-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* 메인 '캠퍼스 HOT 영상'(latest_campus) · '영상자료'(latest_pic_row3) 한 줄 */
.row_campus .swiper-slide, .row_video .swiper-slide { height: auto; }
.main .campus_sect .board_wrap .swiper.row_campus,
.main .video_sect .board_wrap .swiper.row_video { text-align: left; }
/* 카드 높이가 소수점이라 슬라이드 틀(overflow:hidden)이 카드 아래 테두리 1px 을 잘라 먹던 것 */
.main .campus_sect .board_wrap .swiper.row_campus,
.main .video_sect .board_wrap .swiper.row_video { padding-bottom: 2px; }
.row_campus .empty_li, .row_video .empty_li { padding: 40px 0; font-size: 15px; line-height: 1.5; color: #5b6670; text-align: center; }
/* 좁은 화면에서 'more' 단추가 설명 글자 위에 겹치던 것: 단추 자리만큼 비워 둔다 */
@media (max-width: 1024px) {
  .main .campus_sect .tit_wrap.hot,
  .main .video_sect .tit_wrap { padding-right: 84px; }
}
