* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Noto Sans KR', sans-serif;
  background: #f0f2f5;
  color: #222;
}
header {
  background: #1e3a8a;
  color: white;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
header h1 {
  margin: 0;
  font-size: 20px;
}
nav {
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 12px;
  border-bottom: 1px solid #ddd;
}
nav a {
  text-decoration: none;
  color: #1e3a8a;
  font-weight: 600;
  font-size: 14px;
}
.container {
  max-width: 1000px;
  margin: 24px auto;
  padding: 0 16px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.card {
  background: white;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: 0.3s;
  text-align: center;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}
.card h3 {
  margin: 12px 0 8px;
  font-size: 16px;
  color: #1e3a8a;
}
.card p {
  margin: 0;
  color: #555;
  font-size: 13px;
}
footer {
  text-align: center;
  padding: 32px 16px;
  font-size: 13px;
  color: #888;
}
@media (max-width: 480px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  header h1 {
    font-size: 18px;
  }
  nav {
    gap: 10px;
    font-size: 13px;
  }
}

/* 게시판 폼 스타일 */
#postForm {
    background: white;
    max-width: 600px;
    margin: 24px auto;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  #postForm input,
  #postForm textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
  }
  
  #postForm input:focus,
  #postForm textarea:focus {
    border-color: #1e3a8a;
    outline: none;
  }
  
  #postForm button {
    padding: 12px;
    background: #1e3a8a;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
  }
  
  #postForm button:hover {
    background: #3456b5;
    transform: translateY(-2px);
  }
  
  /* 게시판 리스트 스타일 */
  #postList {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 10px auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  
  #postList li {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  #postList li:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    transform: translateY(-4px);
  }
  
  #postList li h3 {
    margin: 0;
    color: #1e3a8a;
    font-size: 20px;
  }
  
  #postList li p {
    margin: 0;
    font-size: 14px;
    color: #555;
  }
  
  #postList li .author {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    text-align: right;
  }
  
  /* 게시판 반응형 */
  @media (max-width: 768px) {
    #postForm {
      margin: 16px auto;
      padding: 20px;
    }
    #postList li {
      padding: 16px;
    }
  }
  
  @media (max-width: 480px) {
    #postForm {
      padding: 16px;
    }
    #postForm input,
    #postForm textarea {
      font-size: 13px;
    }
    #postForm button {
      font-size: 14px;
      padding: 10px;
    }
    #postList li h3 {
      font-size: 18px;
    }
    #postList li p {
      font-size: 13px;
    }
  }
  