* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Serif KR', serif;
  background-color: #ffffff;
  color: #333333;
}

/* HEADER */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header {
  text-align: center;
  padding: 48px ;
  border-bottom: 1px solid #eeeeee;
}

.header-label {
  font-size: 0.75rem;
  color: #999999;
  margin-bottom: 12px;
}

.header-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.header-desc {
  font-size: 0.9rem;
  color: #666666;
}

.nav-bar {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
}

/* BUTTONS */
.btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  border-radius: 4px;

  background: #ffffff;
  border: 1px solid #cccccc;
  color: #333333;
}

.btn:hover {
  background: #d6d5d5;
  border-color: #7e7d7d;
}

/* MAIN */
/* SECTION HEADER */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dddddd;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 1rem;
  font-weight: bold;
}

.section-title .count {
  font-size: 0.8rem;
  color: #999999;
  font-weight: normal;
  margin-left: 6px;
}

.section-link {
  font-size: 0.8rem;
  color: #999999;
  text-decoration: none;
}

/* POST LIST */
main {
  max-width: 800px;

  margin: 32px auto;
  padding: 32px 24px;
  background: #f5f5f5;   /* 배경색 */
  border-radius: 12px;   
}

.hot-box {
  max-width: 800px;
  margin: 32px auto;
  padding: 32px 24px;
  background: #b6b4b4;   /* 배경색 */
  border-radius: 12px;   
}

.post-rank {
  margin-right: 12px;  
}

.post-likes {
  font-size: 0.8rem;
  color: #e05555;
  width: 60px;
  text-align: right;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid #afafaf;  /* 기존 border-bottom 대신 전체 테두리 */
  border-radius: 8px;
  text-decoration: none;
  color: #333333;
  background: #ffffff;
}

.post-item:hover {
  background: #f9f9f9;
  border-color: #aaaaaa;
}

.post-title {
  font-size: 0.95rem;
  flex: 1;
}

.post-author {
  font-size: 0.8rem;
  color: #666666;
  width: 80px;
  text-align: right;
}

.post-time {
  font-size: 0.78rem;
  color: #999999;
  width: 90px;
  text-align: right;
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 60px 0;
  color: #999999;
  font-size: 0.9rem;
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 32px;
}

.page-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #dddddd;
  background: #ffffff;
  color: #666666;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.85rem;
}

.page-btn.active {
  background: #333333;
  border-color: #333333;
  color: #ffffff;
}

/* FOOTER */
footer {
  border-top: 1px solid #dddddd;
  padding: 28px 24px;
  display: flex;
  flex-direction: row;
  justify-content: center;  /* 가로 가운데 */
  align-items: center;      /* 세로 가운데 */
  gap: 16px;
}

.footer-logo {
  font-weight: bold;
  font-size: 0.95rem;
}

.footer-text {
  font-size: 0.78rem;
  color: #999999;
  margin-top: 4px;
}

.main-links {
  display: flex;
  gap: 16px;
  display: flex;
  justify-content: center;  /* 가로 가운데 */
  align-items: center;      /* 세로 가운데 */
  margin-bottom: 30px;
  margin-top: 30px;
}