/* ==========================================================================
   MEDIA — 시안 없음. 메인 MEDIA 섹션 카드(main.psd y 2097~2433) 스타일 기준
   영상 카드 : 썸네일 387×225 r4 + 재생 링 · 라벨 Rajdhani 18 Blue · 제목 Rajdhani 36
   뉴스 카드 : 흰 박스 · 패딩 33 · 제목 30/36 2줄 · 날짜 18 #999
   ========================================================================== */

.media-page { padding: 100px 0 140px; }

.media-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.media-bar__count {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -.025em;
  color: var(--c-text-sub);
  text-transform: uppercase;
}
.media-bar__count strong { color: var(--c-blue); font-weight: 700; }

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 70px 21px;
  margin-top: 56px;
}
.media-grid--news { row-gap: 21px; }




.media-label {
  display: block;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: var(--c-blue);
}

/* Video card ------------------------------------------------------------------ */
.video-card { display: block; width: 100%; text-align: left; }
.video-card__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 387 / 225;
  border-radius: 4px;
  background: var(--c-dark);
}
.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.video-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 20, .35);
  opacity: 0;
  transition: opacity .3s;
}
.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(11, 15, 20, .35);
  color: #fff;
  font-size: 24px;
  transition: transform .35s var(--ease-out), background .3s, border-color .3s;
}
.video-card__play .ico { margin-left: 2px; }
.video-card--baked .video-card__play { opacity: 0; } /* 임시 썸네일 : 재생 아이콘이 이미지에 포함 */
.video-card .media-label { margin-top: 37px; }
.video-card__title {
  display: -webkit-box;
  margin-top: 22px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--c-text);
  transition: color .3s;
}
@media (hover: hover) {
  .video-card:hover .video-card__thumb img { transform: scale(1.05); }
  .video-card:hover .video-card__thumb::after { opacity: 1; }
  .video-card:hover .video-card__play { transform: scale(1.15); background: var(--c-blue); border-color: var(--c-blue); }
  .video-card:hover .video-card__title { color: var(--c-blue); }
}

/* News card ------------------------------------------------------------------- */
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 247px;
  height: 100%;
  padding: 37px 33px 34px;
  overflow: hidden;
  background: #fff;
}
.news-card::after {
  /* Hover : 하단 좌→우 게이지 */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--c-blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease-out);
}
.news-card__title {
  display: -webkit-box;
  margin-top: 26px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 30px;
  line-height: 36px;
  letter-spacing: -.025em;
  color: var(--c-text);
  transition: color .3s;
}
.news-card__date {
  margin-top: auto;
  padding-top: 40px;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -.025em;
  color: #999;
}
@media (hover: hover) {
  .news-card:hover::after { transform: scaleX(1); }
  .news-card:hover .news-card__title { color: var(--c-blue); }
}

.media-empty { margin-top: 56px; padding: 100px 20px; background: #fff; text-align: center; font-size: 20px; color: var(--c-text-sub); }

/* News detail (skin/board/media/view.skin.php · board.php?bo_table=news&wr_id=N) ------------- */
.news-view__head { padding-bottom: 44px; border-bottom: 2px solid var(--c-text); }
.news-view__title {
  margin-top: 24px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--c-text);
  word-break: keep-all;
}
.news-view__date { display: block; margin-top: 28px; font-size: 18px; line-height: 1; letter-spacing: -.025em; color: #999; }
.news-view__summary {
  max-width: 1240px;
  margin-top: 48px;
  padding-left: 24px;
  border-left: 3px solid var(--c-blue);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--c-text);
}
.news-view__body { padding: 48px 0 90px; border-bottom: 1px solid var(--c-line); }
.news-view__images { max-width: 1240px; }
.news-view__images a, .news-view__images img { display: block; max-width: 100%; height: auto; }
.news-view__images img { margin-bottom: 32px; border-radius: 4px; }
.news-view__content { max-width: 1240px; font-size: 20px; line-height: 1.75; letter-spacing: -.01em; color: var(--c-text-sub); word-break: keep-all; overflow-wrap: anywhere; }
.news-view__content > * + * { margin-top: 1.1em; }
.news-view__content h2, .news-view__content h3, .news-view__content h4 { margin-top: 1.6em; font-family: var(--f-head); font-weight: 700; line-height: 1.2; color: var(--c-text); }
.news-view__content h2 { font-size: 36px; }
.news-view__content h3 { font-size: 30px; }
.news-view__content h4 { font-size: 24px; }
.news-view__content strong, .news-view__content b { color: var(--c-text); }
.news-view__content a { color: var(--c-blue); text-decoration: underline; text-underline-offset: 3px; }
.news-view__content ul, .news-view__content ol { padding-left: 1.4em; }
.news-view__content ul { list-style: disc; }
.news-view__content ol { list-style: decimal; }
.news-view__content img { max-width: 100%; height: auto; border-radius: 4px; }
.news-view__content blockquote { padding: 4px 0 4px 24px; border-left: 3px solid var(--c-line); }
.news-view__content table { width: 100%; border-collapse: collapse; font-size: 17px; }
.news-view__content th, .news-view__content td { padding: 10px 14px; border: 1px solid var(--c-line); }
.news-view__content iframe { max-width: 100%; }
.news-view__source { max-width: 1240px; margin-top: -50px; padding-bottom: 50px; }
.news-view__source .link-arrow { font-size: 18px; }

.news-nav { border-bottom: 1px solid var(--c-line); }
.news-nav__row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 30px 30px;
}
.news-nav__row + .news-nav__row { border-top: 1px solid #e3e7ec; }
.news-nav__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: var(--c-text);
}
.news-nav__label .ico { width: 18px; height: 18px; fill: currentColor; color: var(--c-blue); }
.news-nav__title { overflow: hidden; font-size: 20px; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; color: var(--c-text); transition: color .25s; }
.news-nav__title.is-empty { color: #999; }
.news-nav__date { font-size: 18px; color: #999; }
@media (hover: hover) { a.news-nav__title:hover { color: var(--c-blue); text-decoration: underline; text-underline-offset: 3px; } }

.news-view__foot { display: flex; justify-content: center; margin-top: 70px; }
.news-view__admin { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; font-size: 14px; color: var(--c-text-sub); }
.news-view__admin > span { margin-right: 6px; }

/* Pagination = layout.css .pagination--round · Video modal = layout.css .vmodal */
.media-page .pagination { margin-top: 100px; }

/* Responsive ------------------------------------------------------------------ */
@media (max-width: 1599px) {
  .video-card__title { font-size: 30px; }
}
@media (max-width: 1279px) {
  .media-page { padding: 80px 0 110px; }
  .news-view__title { font-size: 46px; }
  .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 20px; }
  .media-grid--news { row-gap: 20px; }
  .video-card .media-label { margin-top: 28px; }
  .video-card__title { margin-top: 16px; font-size: 28px; }
  .news-card { min-height: 220px; padding: 30px 28px; }
  .news-card__title { font-size: 26px; line-height: 32px; }
}
@media (max-width: 1023px) {
  .media-page { padding: 64px 0 90px; }
  .news-view__title { font-size: 40px; }
  .news-view__summary { margin-top: 36px; font-size: 20px; }
  .news-view__content { font-size: 18px; }
  .news-nav__row { grid-template-columns: 150px minmax(0, 1fr) auto; padding: 24px 10px; gap: 16px; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; gap: 44px 20px; }
  .media-grid--news { row-gap: 20px; }
  .media-bar__count { font-size: 17px; }
  .media-page .pagination { margin-top: 64px; }
}
@media (max-width: 599px) {
  .media-page { padding: 44px 0 72px; }
  .news-view__head { padding-bottom: 28px; }
  .news-view__title { margin-top: 14px; font-size: 30px; }
  .news-view__date { margin-top: 18px; font-size: 15px; }
  .news-view__summary { margin-top: 28px; padding-left: 16px; font-size: 17px; }
  .news-view__body { padding: 32px 0 56px; }
  .news-view__content { font-size: 16px; line-height: 1.7; }
  .news-view__content h2 { font-size: 26px; }
  .news-view__content h3 { font-size: 22px; }
  .news-view__source { margin-top: -30px; padding-bottom: 30px; }
  .news-nav__row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 18px 4px; }
  .news-nav__label { grid-column: 1 / -1; font-size: 16px; }
  .news-nav__title { font-size: 16px; }
  .news-nav__date { font-size: 14px; }
  .news-view__foot { margin-top: 44px; }
  .media-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 28px; }
  .media-grid--news { row-gap: 14px; }
  .video-card .media-label { margin-top: 20px; font-size: 16px; }
  .video-card__title { margin-top: 10px; font-size: 24px; }
  .news-card { min-height: 0; padding: 24px 22px; }
  .news-card .media-label { font-size: 16px; }
  .news-card__title { margin-top: 14px; font-size: 22px; line-height: 28px; }
  .news-card__date { padding-top: 22px; font-size: 15px; }
  .media-page .pagination { margin-top: 48px; }
}
