/* ===== 전역 초기화 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  background: #f5f7fa;
  color: #111;
  min-height: 100vh;
}

/* ===== 상단 고정 메뉴바 ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e0e4ea;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.navbar-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* 로고 */
.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1a6ec8;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.5px;
}

/* 검색 폼 */
.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.search-input {
  flex: 1;
  height: 42px;
  padding: 0 18px;
  border: 1.5px solid #d0d5e0;
  border-radius: 999px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  background: #f9fafb;
}

.search-input:focus {
  border-color: #1a6ec8;
  background: #fff;
}

.search-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #a78bfa, #ec4899);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.search-btn:hover {
  opacity: 0.85;
}

.search-btn svg {
  width: 18px;
  height: 18px;
}

/* ===== 본문 ===== */
.main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* 오류 / 검색 결과 없음 */
.error-msg,
.no-result {
  margin-top: 40px;
  text-align: center;
  color: #666;
  font-size: 1rem;
}

/* ===== 검색 결과 목록 ===== */
.result-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.result-item {
  border-bottom: 1px solid #e8eaf0;
}

.result-item:first-child {
  border-top: 1px solid #e8eaf0;
}

.result-link {
  display: block;
  padding: 20px 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.result-link:hover {
  background: #f0f4ff;
}

.result-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a6ec8;
  margin-bottom: 6px;
  line-height: 1.4;
}

.result-snippet {
  font-size: 0.92rem;
  color: #000;          /* 기획서 요구: 본문 요약 검은색 */
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-date {
  font-size: 0.82rem;
  color: #888;
}

/* ===== 페이지네이션 ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: #1a6ec8;           /* 기본 페이지 번호: 파란색 */
  background: #fff;
  border: 1.5px solid #d0d5e0;
  transition: background 0.15s, border-color 0.15s;
}

.page-num:hover {
  background: #eef3ff;
  border-color: #1a6ec8;
}

.page-num.current {
  color: #7c3aed;           /* 현재 페이지: 보라색 */
  border-color: #7c3aed;
  background: #f5f0ff;
  cursor: default;
}

/* ===== 플로트 버튼 ===== */
.float-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #7ca9d8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  transition: background 0.2s, transform 0.2s;
  z-index: 200;
}

.float-btn:hover {
  background: #5b8fc7;
  transform: translateY(-2px);
}

.float-btn svg {
  width: 22px;
  height: 22px;
}