body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    margin: 0;
    background-color: #f9f9f9;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* 헤더 */
.site-header {
    background-color: #0b1f3a;
    padding: 10px 0;
    text-align: center;
}

.site-header .logo img {
    height: 50px;
}

/* 메인 */
main h1 {
    text-align: center;
    color: #333;
}
.post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 기본 스타일 (PC 기준) */
.post-item {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.thumbnail-wrapper {
  flex: 0 0 300px;  /* 썸네일 영역 고정 */
}


.thumbnail-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.post-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.post-title {
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
}

.post-title a {
    text-decoration: none;
    color: #333;
}

.post-title a:hover {
    color: #007bff;
}

.post-excerpt {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}

.post-meta {
  margin-top: 1rem;
}

.post-meta a {
  color: #007BFF;
  text-decoration: none;
  font-weight: bold;
}

.post-meta a:hover {
  text-decoration: underline;
}


/* 페이지네이션 */
.pagination-container {
  display: flex;
  justify-content: center;
  width: 100%;
}
.pagination {
  display: flex;
  justify-content: center;  /* 중요! 중앙 정렬 */
  align-items: center;
  flex-wrap: wrap; /* 넘치면 줄바꿈 */
  gap: 8px; /* 버튼 간격 */
  margin: 40px 0; /* 위아래 여백 */
  padding: 0 10px;
}

.pagination a,
.pagination span {
  display: inline-block;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  line-height: 32px;
  text-align: center;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #0b1f3a;
  font-size: 14px;
  box-sizing: border-box;
  background-color: #fff;
  transition: all 0.3s ease;
}

.pagination .active {
  background-color: #0b1f3a;
  color: #fff;
  border-color: #0b1f3a;
}

/* 호버 효과 */
.pagination a:hover {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

/* 푸터 */
.site-footer {
    text-align: center;
    padding: 20px 0;
    background-color: #0b1f3a;
    color: #fff;
}

.site-footer img {
    display: block;
    margin: 0 auto 10px;
}

/* 검색 시작 */
.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.search-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.search-modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-box {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 400px;
  display: flex;
  gap: 10px;
}

.search-box input {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.search-box button {
  padding: 10px 16px;
  font-size: 16px;
  background-color: #0b1f3a;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
/* 검색 끝 */


/* 모바일 반응형 */
@media screen and (max-width: 768px) {
  .post-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .thumbnail-wrapper {
    flex: none;
    width: 100%;
    max-width: 500px;
  }

  .post-info {
    padding: 0 1rem;
	text-align: left;
  }

  .post-title {
    font-size: 1.2rem;
  }

  .post-excerpt {
    font-size: 0.95rem;
  }

  .post-meta {
    margin-top: 1rem;
  }
  
  .pagination {
      gap: 4px;
    }

    .pagination a,
    .pagination span {
      min-width: 28px;
      height: 28px;
      line-height: 28px;
      font-size: 12px;
      padding: 0 6px;
    }
}