/* ════════════════════════════════════════
   레이아웃
════════════════════════════════════════ */
.news-layout {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
  padding-top: 24px;
  padding-bottom: 60px;
}
.news-main { min-width: 0; }

/* ════════════════════════════════════════
   소식 탭
════════════════════════════════════════ */
.news-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 6px;
}
.news-tab {
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 500;
  color: #888;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.news-tab:hover { color: #333; }
.news-tab.active {
  color: var(--color-purple);
  border-bottom-color: var(--color-purple);
  font-weight: 700;
}

/* ════════════════════════════════════════
   공지사항 컨테이너
════════════════════════════════════════ */
.notice-container {}
.notice-heading {
  font-size: 32px;
  font-weight: 300;
  color: #222;
  margin-top: 10px;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

/* 필터 바 */
.notice-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid #222;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
  margin-bottom: 0;
  gap: 12px;
  flex-wrap: wrap;
}
.notice-filter__cats {
  display: flex;
  gap: 4px;
}
.notice-filter__cat {
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
  background: #f0f0f0;
  transition: all 0.2s;
  font-weight: 500;
}
.notice-filter__cat:hover { background: #e0e0e0; color: #333; }
.notice-filter__cat.active {
  background: var(--color-purple);
  color: #fff;
}
.notice-filter__search {
  display: flex;
  align-items: center;
  gap: 6px;
}
.notice-filter__select {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  color: #555;
  background: #fff;
  font-family: var(--font-main);
}
.notice-filter__input {
  padding: 7px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  width: 220px;
  font-family: var(--font-main);
}
.notice-filter__input:focus {
  outline: none;
  border-color: var(--color-purple);
}
.notice-filter__btn {
  padding: 5px 5px;
  color: #fff;
  border-radius: 6px;
  font-size: 15px;
  transition: background 0.2s;
  justify-content: center;
}
.notice-filter__btn:hover { background: var(--color-purple); }

/* 글 목록 */
.notice-list {
  list-style: none;
}
.notice-row {
  border-bottom: 1px solid #f0f0f0;
}
.notice-row--pinned {
  background: #fafafa;
}
.notice-row__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 8px;
  transition: background 0.15s;
}
.notice-row__link:hover { background: #f8f4ff; }
.notice-row__title {
  flex: 1;
  font-size: 15px;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notice-row__date,
.notice-row__views {
  font-size: 13px;
  color: #aaa;
  white-space: nowrap;
  flex-shrink: 0;
}
.notice-row__date .meta-icon,
.notice-row__views .meta-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}
.notice-empty {
  padding: 60px;
  text-align: center;
  color: #aaa;
  font-size: 14px;
}

/* ════════════════════════════════════════
   페이지네이션
════════════════════════════════════════ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 32px;
}
.page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 14px;
  color: #555;
  background: #f5f5f5;
  transition: all 0.2s;
  padding: 0 8px;
}
.page-btn:hover { background: #e8e0ff; color: var(--color-purple); }
.page-btn.active {
  background: var(--color-purple);
  color: #fff;
  font-weight: 700;
}
.page-btn--arrow { font-size: 16px; }
.page-btn.disabled {
  color: #ccc;
  background: #f5f5f5;
  cursor: default;
  pointer-events: none;
}

/* ════════════════════════════════════════
   공지사항 상세
════════════════════════════════════════ */
.notice-detail__header {
  border-bottom: 1px solid #ddd;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.notice-detail__title {
  font-size: 22px;
  font-weight: 600;
  color: #111;
  line-height: 1.5;
}
.notice-detail__meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #aaa;
}
.notice-detail__body {
  padding: 32px 8px;
  font-size: 15px;
  line-height: 1.9;
  color: #333;
  min-height: 300px;
  border-bottom: 1px solid #eee;
}
.notice-detail__header-img {
  display: block;
  width: 75%;
  margin-bottom: 24px;
}
.notice-detail__footer {
  padding: 20px 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.btn-back {
  padding: 10px 28px;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  color: #555;
  transition: all 0.2s;
}
.btn-back:hover { border-color: #888; color: #222; }

/* ════════════════════════════════════════
   사이드바
════════════════════════════════════════ */
.news-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 110px;
}

/* 최신 뉴스 위젯 */
.side-news {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  background: #fafafa;
}
.side-news__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.side-news__title a { color: var(--color-orange); font-size: 13px; }
.side-news__list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.side-news__item { border-bottom: 1px solid #eee; }
.side-news__item:last-child { border-bottom: none; }
.side-news__item a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 4px;
  font-size: 13px;
  color: #444;
  transition: color 0.15s;
}
.side-news__item a:hover { color: #111; }
.side-news__text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}