/* ===== VIEWS STYLES ===== */
/**
 * @file: views/shared/news-card.css
 * @description: 뉴스 카드 컴포넌트 스타일
 * @components: 카드 레이아웃, 제목, 내용, 메타 정보
 * @usage: 뉴스 아이템을 카드 형태로 표시
 */

/* 뉴스 카드 공통 스타일 수정 */
.news-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid #edf2fc;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 200px;
  text-decoration: none;
  color: inherit;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.1);
  border-color: #1a73e8;
}

.news-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  gap: 10px;
  overflow: visible;
}

.news-card h3 {
  font-size: 1.1em;
  font-weight: 600;
  color: #1a73e8;
  margin: 0 0 12px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.news-card p {
  font-size: 0.95em;
  color: #444;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  flex: 1;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #666;
  font-size: 0.85em;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}

.news-title {
  font-size: 1.1em;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
}

.news-description {
  color: #666;
  font-size: 0.95em;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #1a73e8;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 500;
  margin-top: 12px;
  transition: all 0.2s ease;
}

.read-more::after {
  content: '→';
  transition: transform 0.2s ease;
}

.news-card:hover .read-more {
  color: #1557b0;
  gap: 8px;
}

.news-card:hover .read-more::after {
  transform: translateX(4px);
}

.read-more:hover {
  color: #1557b0;
}

.read-more:hover::after {
  transform: none;
}

/* ===== VIEWS STYLES ===== */
/**
 * @file: views/shared/news-card.css
 * @description: 뉴스 카드 스타일
 * @components: 뉴스 카드
 * @usage: 뉴스 카드 스타일링
 */
.news-content small {
  font-size: 12px;
  color: #666;
  line-height: 1.2;
}

.news-content h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0;
  color: #1a73e8;
}

.news-content p {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
