/**
 * UW Board Skins (board.css)
 * 
 * 게시판 스타일별 디자인 (Skin)
 * 
 * 1. Style 01: [공식/행정형] 표준 리스트 (Standard List)
 * 2. Style 02: [3열 카드형] 미니멀 카드 (Minimal Card)
 * 3. Style 03: [썸네일형] 제목,상세 요약, 날짜 카드 (thumbnail Card)
 * 
 * @package St-works
 */

/* ==========================================================================
   Style 01: Press 리스트형 (SBT Global 레퍼런스)
   ========================================================================== */
.uw-board-style01 {
  width: 100%;
  border-bottom: 1px solid #222;
}

/* ── 리스트 아이템 ── */
.uw-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 30px;
  padding: calc(45 / 30 * 1em) 0;
  --arr-w: calc(80 / 30 * 1em);
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
}

.uw-list-item + .uw-list-item {
  border-top: 1px solid #ddd;
}

.uw-list-item.uw-pinned {
  background: #fafbfc;
}

/* ── 콘텐츠 영역 ── */
.uw-list-content {
  display: flex;
  flex-direction: column;
  max-width: calc(100% - var(--arr-w));
  box-sizing: border-box;
  padding-right: calc(125 / 30 * 1em);
  min-width: 0;
}

/* 공지 배지 */
.uw-list-item .uw-notice-badge {
  display: inline-block;
  padding: 3px 10px;
  background: #222;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 10px;
  width: fit-content;
}

/* 타이틀 */
.uw-list-title {
  font-size: inherit;
  font-weight: 600;
  color: #060000;
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  padding-bottom: calc(30 / 30 * 1em);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 요약 */
.uw-list-excerpt {
  font-size: 18px;
  color: #555;
  letter-spacing: -0.03em;
  line-height: calc(30 / 18);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
  margin-bottom: calc(45 / 18 * 1em);
}

/* 날짜 */
.uw-list-date {
  font-size: 18px;
  letter-spacing: -0.03em;
  color: #555;
}

/* ── 우측 화살표 버튼 ── */
.uw-list-arrow {
  width: var(--arr-w);
  height: var(--arr-w);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ddd;
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.4s;
}
.uw-list-arrow svg {
  fill: none;
  stroke: currentColor;
}

@media screen and (min-width: 821px) {
  .uw-list-item:hover .uw-list-arrow {
    background: #D4A800;
  }
}

/* ── 반응형: Style 01 ── */
@media screen and (max-width: 1280px) {
  .uw-list-item {
    font-size: clamp(25px, 30 / 1280 * 100vw, 30px);
  }
}

@media screen and (max-width: 1024px) {
  .uw-list-item {
    font-size: clamp(21px, 25 / 1024 * 100vw, 25px);
  }
  .uw-list-excerpt {
    font-size: clamp(16px, 18 / 1024 * 100vw, 18px);
  }
  .uw-list-date {
    font-size: clamp(16px, 18 / 1024 * 100vw, 18px);
  }
}

@media screen and (max-width: 820px) {
  .uw-list-content {
    padding-right: calc(30 / 25 * 1em);
  }
  .uw-list-excerpt {
    font-size: clamp(14px, 16 / 820 * 100vw, 16px);
  }
  .uw-list-date {
    font-size: clamp(14px, 16 / 820 * 100vw, 16px);
  }
  .uw-list-arrow {
    display: none;
  }
}

@media screen and (max-width: 500px) {
  .uw-list-content {
    padding-right: 0;
    width: 100%;
    max-width: 100%;
  }
  .uw-list-item {
    font-size: clamp(16px, 20 / 500 * 100vw, 20px);
  }
}

/* ==========================================================================
   Style 02: [3열 카드형] 미니멀 카드 (Minimal Card)
   ========================================================================== */
.uw-board-style02 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0;
  list-style: none;
  margin: 0;
}

.uw-board-style02 .uw-card-item {
  flex: 0 0 calc(33.333% - 13.4px);
  background: #fff;
  border: 1px solid var(--board-border-color);
  transition: all 0.3s ease;
}

.uw-board-style02 .uw-card-item a {
  display: block;
  padding: 40px 25px;
  text-decoration: none;
}

.uw-board-style02 .uw-category {
  display: inline-block;
  padding: 4px 12px;
  background: #333;
  color: #fff;
  font-size: 11px;
  margin-bottom: 20px;
}

.uw-board-style02 .uw-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.4;
  color: #111;
  height: 2.8em;
  margin-bottom: 30px;
  transition: color 0.3s;
}

.uw-board-style02 .uw-date {
  font-size: 14px;
  color: #999;
}

/* Hover */
.uw-board-style02 .uw-card-item:hover {
  border-color: var(--board-main-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.uw-board-style02 .uw-card-item:hover .uw-title {
  color: var(--board-main-color);
}


/* ==========================================================================
   Style 03: [썸네일형] 제목,상세 요약, 날짜 카드 (Thumbnail Card)
   ========================================================================== */
.uw-board-style03 {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  padding: 0;
  list-style: none;
  margin: 0;
}

.uw-board-style03 .uw-card-item {
  flex: 0 0 calc(33.333% - 16.7px);
  border: 1px solid var(--board-border-color);
  background: #fff;
  overflow: hidden;
  transition: all 0.3s ease;
}

.uw-board-style03 .uw-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eee;
}

.uw-board-style03 .uw-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.uw-board-style03 .uw-content-wrap {
  padding: 25px;
}

.uw-board-style03 .uw-title {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin-bottom: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uw-board-style03 .uw-summary {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  height: 3.2em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 20px;
}

.uw-board-style03 .uw-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--board-border-color);
}

.uw-board-style03 .uw-date {
  font-size: 13px;
  color: #999;
}

/* Hover */
.uw-board-style03 .uw-card-item:hover {
  border-color: var(--board-main-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.uw-board-style03 .uw-card-item:hover .uw-thumb-wrap img {
  transform: scale(1.1);
}

/* 썸네일 플레이스홀더 */
.uw-board-style03 .uw-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #f5f5f5;
  color: #ccc;
  font-family: 'xeicon' !important;
}

.uw-board-style03 .uw-thumb-placeholder::before {
  content: "\e892";
  font-size: 48px;
}

/* 반응형 모바일 */
@media (max-width: 1024px) {

  .uw-board-style02 .uw-card-item,
  .uw-board-style03 .uw-card-item {
    flex: 0 0 calc(50% - 13px);
  }
}

@media (max-width: 640px) {

  .uw-board-style02 .uw-card-item,
  .uw-board-style03 .uw-card-item {
    flex: 0 0 100%;
  }
}