body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #f4f4f4;
  margin: 0;
  padding: 0;
}

header {
  background: #253889;
  color: white;
  padding: 16px;
  text-align: center;
}

nav button {
  margin: 4px;
  padding: 8px 16px;
  background: #fff;
  color: #253889;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

nav button:hover {
  background: #dde4f6;
}

section {
  margin: 30px auto;
  background: white;
  padding: 30px;
  max-width: 680px;
  border-radius: 8px;
  box-shadow: 0 2px 12px #eee;
}

#postList {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.post-card {
  width: 320px;
  background: #fafaff;
  border: 1px solid #ccd5ee;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s;
  box-shadow: 0 1px 3px #eef2ff;
}

.post-card:hover {
  box-shadow: 0 4px 20px #cfdcff;
}

.post-card img {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  display: block;
}

.post-card .post-title {
  font-size: 1.15rem;
  font-weight: bold;
  color: #253889;
  margin: 8px 0 3px 0;
  padding: 0 10px;
}

.post-card .post-summary {
  color: #444;
  font-size: 1rem;
  padding: 0 10px 10px 10px;
}

#writeWarn {
  color: #e13;
  margin: 8px 0;
}

/* ----- 글 상세 보기에 따른 본문 스타일 추가 ----- */
#readPost {
  line-height: 1.6;           /* 적절한 줄간격 */
  font-size: 16px;
  color: #333;
}

#readPost h2,
#readPost h3 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-weight: 700;
  color: #253889;
}

#readPost p {
  margin: 16px 0;
}

#readPost ul,
#readPost ol {
  margin: 16px 0 16px 24px;
}

#readPost li {
  margin-bottom: 8px;
}
