body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  background-color: #ffffff;
  color: #333333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
/* Header */
.site-header {
  background-color: #f0f6ff;
  border-bottom: 1px solid #cce0ff;
  padding: 20px 0;
  text-align: center;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.logo img {
  height: 40px;
  margin-bottom: 10px;
}
.site-title {
  font-size: 1.8rem;
  color: #1d4ed8;
  font-weight: 700;
  margin: 0;
}
/* 헤더 끝 */
/* Footer */
.site-footer {
  background-color: #e8efff;
  color: #3b3b3b;
  padding: 40px 0 20px;
  border-top: 1px solid #bdd7ff;
}
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-container .logo img {
  height: 36px;
}
.footer-container p {
  font-size: 0.85rem;
  color: #4b5563;
  margin: 0;
}

/* 푸터 끝 */

h1 {
  text-align: center;
  color: #2C3E50;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.post-list {
  padding-left: 0;     /* ✅ 기본 패딩 제거 */
  margin-left: 0;      /* ✅ 기본 마진도 제거 */
  list-style: none;    /* ✅ 불릿 제거 */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.thumbnail-wrapper {
  flex: 0 0 200px;
}

.thumbnail-wrapper img {
  width: 200px;
  height: auto;
  border-radius: 4px;
}

.post-content {
  flex: 1;
}

.post-title a {
  font-size: 1.4rem;
  color: #2C3E50;
  font-weight: bold;
  text-decoration: none;
}

.post-title a:hover {
  color: #007BFF;
}

.post-meta {
  margin-top: 8px;
  color: #777;
  font-size: 0.9rem;
}

.post-excerpt {
  margin-top: 10px;
  color: #444;
  font-size: 1rem;
  line-height: 1.5;
}

.detail-link {
  display: inline-block;
  margin-top: 10px;
  color: #007BFF;
  text-decoration: none;
  font-weight: bold;
}

.detail-link:hover {
  text-decoration: underline;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.pagination a,
.pagination span {
    background-color: #f1f3f4;
    color: #333;
    border-radius: 50px;
    padding: 8px 16px;
    text-decoration: none;
    transition: 0.3s ease;
}

.pagination a:hover {
    background-color: #4285F4;
    color: #fff;
}

.pagination .active {
    background-color: #E10154;
    color: #fff;
}

/* 광고 */
.ads-left, .ads-right {
  position: fixed;
  top: 100px;
  width: 160px;
  height: auto;
  z-index: 1000;
}
.ads-left { left: 10px; }
.ads-right { right: 10px; }

.adsense-box {
  padding: 10px;
  background-color: #f8f9ff;
  border: 1px dashed #cce;
  margin: 15px auto;
  border-radius: 8px;
}
/* 광고 */
@media (max-width: 1000px) {
  .ads-left, .ads-right { display: none; }
}
@media (max-width: 768px) {
  .post-item {
    flex-direction: column;
  }

  .thumbnail-wrapper {
    width: 100%;
  }

  .thumbnail-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 4px 4px 0 0;
  }

  .post-content {
    width: 100%;
  }
}
