body {
    font-family: 'Noto Sans KR', 'Segoe UI', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
    line-height: 1.6;
  }
  
  /* 헤더 아래 여백 */
  header {
    margin-bottom: 20px;
  }
  
  .community-container {
    max-width: 1200px;
    width: 90%;
    margin: 20px auto 0;
    padding: 20px;
  }
  
  .community-header {
    background: linear-gradient(to right, #1a237e, #283593);
    color: white;
    padding: 40px 0;
    margin: 0 0 30px 0;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .page-title {
    font-size: 32px;
    margin-bottom: 12px;
    font-weight: 700;
    color: white;
  }
  
  .page-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0;
    font-weight: 300;
  }
  
  /* 검색 및 필터링 섹션 */
  .search-filter-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .search-box {
    flex: 1;
    min-width: 250px;
  }
  
  .search-box input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
  }
  
  .search-box input:focus {
    border-color: #1a237e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
  }
  
  .search-box button {
    background: #1a237e;
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .search-box button:hover {
    background: #283593;
    transform: translateY(-2px);
  }
  
  .filter-box {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .filter-options select {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .filter-options select:focus {
    border-color: #1a237e;
    outline: none;
  }
  
  /* 글 작성 버튼 */
  .write-btn-container {
    text-align: right;
    margin-bottom: 30px;
  }
  
  .write-btn {
    padding: 12px 24px;
    font-size: 15px;
    border: none;
    background-color: #1a237e;
    color: #fff;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(26, 35, 126, 0.1);
  }
  
  .write-btn:hover {
    background-color: #283593;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(26, 35, 126, 0.2);
  }
  
  /* 게시글 리스트 */
  .post-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  /* 게시글 카드 */
.post-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  position: relative;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* 게시글 헤더 */
.post-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.post-info {
  flex: 1;
}

.nickname {
  font-size: 16px;
  font-weight: 600;
  color: #1a237e;
  cursor: pointer;
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

.nickname:hover {
  color: #283593;
  text-decoration: underline;
}

.subscription-badge {
  display: inline-block;
  color: #ffd700;
  font-size: 1em;
  margin-left: 6px;
  vertical-align: top;
  line-height: 1;
  margin-top: 2px;
}

.subscription-badge i {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.admin-badge {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 0.75em;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: top;
  line-height: 1.2;
  margin-top: 2px;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.comment-nickname .admin-badge {
  font-size: 0.7em;
  margin-left: 4px;
  margin-top: 1px;
  padding: 2px 6px;
}

.timestamp {
  font-size: 13px;
  color: #888;
  font-weight: 400;
}

/* 게시글 메뉴 버튼 */
.post-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.post-menu:hover {
  background: #e9ecef;
  transform: scale(1.1);
}

.post-menu i {
  color: #6c757d;
  font-size: 14px;
}

/* 게시글 내용 */
.post-content {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
  word-wrap: break-word;
  white-space: pre-wrap;
}

/* 게시글 액션 버튼 */
.post-actions {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: #6c757d;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.action-btn:hover {
  background: #f8f9fa;
  color: #495057;
}

.action-btn.liked {
  color: #e74c3c;
}

.action-btn.liked i {
  animation: heartBeat 0.3s ease;
}

.action-btn .count {
  font-weight: 500;
  min-width: 20px;
  text-align: center;
}

/* 좋아요 애니메이션 */
@keyframes heartBeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* 더보기 버튼 */
.show-more-container {
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.show-more-btn {
  background: none;
  border: 2px solid #1a237e;
  color: #1a237e;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.show-more-btn:hover {
  background: #1a237e;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(26, 35, 126, 0.2);
}

.show-more-btn:active {
  transform: translateY(0);
}

/* 댓글 섹션 */
.comment-section {
  margin-top: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border-top: 1px solid #e9ecef;
}

.comment-box {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.comment-box input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 14px;
}

.comment-box input:focus {
  outline: none;
  border-color: #1a237e;
  box-shadow: 0 0 0 2px rgba(26, 35, 126, 0.1);
}

.comment-box button {
  background: #1a237e;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.comment-box button:hover {
  background: #283593;
  transform: scale(1.05);
}

.comment-list {
  max-height: 300px;
  overflow-y: auto;
}

.comment-item {
  padding: 10px 0;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-nickname {
  color: #1a237e;
  font-weight: 600;
  font-size: 14px;
}

.comment-nickname .subscription-badge {
  font-size: 0.9em;
  margin-left: 4px;
  margin-top: 1px;
}

.comment-text {
  color: #333;
  font-size: 14px;
  line-height: 1.4;
}

.comment-timestamp {
  color: #666;
  font-size: 12px;
  white-space: nowrap;
  margin-left: 10px;
}

.comment-delete {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.comment-delete:hover {
  background: #c82333;
}

.show-more-container {
  text-align: center;
  margin-top: 15px;
}

.show-more-btn {
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.show-more-btn:hover {
  background: #5a6268;
  transform: translateY(-1px);
}

.comment-loading {
  text-align: center;
  color: #666;
  padding: 20px;
  font-style: italic;
}

.no-comments {
  text-align: center;
  color: #666;
  padding: 20px;
  font-style: italic;
}

.comment-error {
  text-align: center;
  color: #dc3545;
  padding: 20px;
  font-style: italic;
}
  
  /* 페이지네이션 */
  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 10px;
  }
  
  .page-btn {
    background: none;
    border: 2px solid #1a237e;
    color: #1a237e;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .page-btn:hover {
    background: #1a237e;
    color: white;
  }
  
  .page-numbers {
    display: flex;
    gap: 8px;
  }
  
  .page-numbers button {
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.3s ease;
  }
  
  .page-numbers button.active {
    background: #1a237e;
    color: white;
  }
  
  /* 로딩 스피너 */
  .loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #1a237e;
    font-size: 24px;
  }
  
  .loading-spinner i {
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* 맨 위로 가기 버튼 */
  .scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1a237e;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
  }
  
  .scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
  }
  
  .scroll-to-top:hover {
    background: #283593;
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  }
  
  /* 댓글 시스템 스타일 */
  .comment-box {
    margin-top: 16px;
    display: flex;
    gap: 12px;
  }
  
  .comment-box input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
  }
  
  .comment-box input:focus {
    border-color: #1a237e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
  }
  
  .comment-box button {
    padding: 12px 24px;
    background-color: #1a237e;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .comment-box button:hover {
    background: #283593;
    transform: translateY(-2px);
  }
  
  .comment-list {
    margin-top: 16px;
    font-size: 14px;
    color: #333;
  }
  
  .comment-item {
    margin-bottom: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
  }
  
  .comment-options-container {
    position: relative;
  }
  
  .comment-options-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
  }
  
  .comment-options-btn:hover {
    color: #1a237e;
  }
  
  .comment-menu {
    position: absolute;
    right: 0;
    top: 28px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    overflow: hidden;
  }
  
  .comment-menu div {
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .comment-menu div:hover {
    background-color: #f8f9fa;
    color: #1a237e;
  }
  
  .error-message {
    text-align: center;
    padding: 20px;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 12px;
    margin: 20px 0;
  }
  
  .no-posts {
    text-align: center;
    padding: 40px;
    color: #666;
    background-color: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
    font-size: 16px;
  }
  
  /* 에러 메시지 및 재시도 버튼 스타일 */
  .error-message {
    text-align: center;
    padding: 40px;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 12px;
    margin: 20px 0;
    font-size: 16px;
  }
  
  .error-message i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #dc3545;
  }
  
  .error-message p {
    margin: 20px 0;
    font-size: 18px;
    font-weight: 500;
  }
  
  .retry-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
  }
  
  .retry-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
  }
  
  /* 반응형 미디어 쿼리 */
  @media screen and (max-width: 768px) {
    .community-container {
      width: 95%;
      padding: 15px;
    }

    .community-header {
      padding: 30px 0;
      margin: -15px -15px 20px -15px;
    }

    .page-title {
      font-size: 28px;
    }

    .page-subtitle {
      font-size: 14px;
    }

    .search-filter-container {
      padding: 15px;
      flex-direction: column;
    }

    .search-box, .filter-box {
      width: 100%;
    }

    .filter-box select {
      flex: 1;
    }
  }
  
  @media screen and (max-width: 480px) {
    .community-container {
      width: 100%;
      padding: 10px;
    }

    .community-header {
      padding: 25px 0;
      margin: -10px -10px 15px -10px;
      border-radius: 0;
    }

    .page-title {
      font-size: 24px;
    }

    .search-filter-container {
      padding: 12px;
      border-radius: 8px;
    }

    .post-card {
      padding: 16px;
      margin-bottom: 16px;
    }

    .post-header {
      margin-bottom: 12px;
    }

    .post-menu {
      top: 16px;
      right: 16px;
      width: 28px;
      height: 28px;
    }

    .post-menu i {
      font-size: 12px;
    }

    .post-content {
      font-size: 14px;
      margin-bottom: 16px;
    }

    .post-actions {
      gap: 12px;
      padding-top: 12px;
    }

    .action-btn {
      padding: 6px 12px;
      font-size: 13px;
    }

    .comment-section {
      margin-top: 16px;
      padding-top: 16px;
    }

    .comment-box {
      gap: 8px;
      margin-bottom: 12px;
    }

    .comment-box input {
      padding: 10px 14px;
      font-size: 13px;
    }

    .comment-box button {
      width: 40px;
      height: 40px;
    }

    .show-more-btn {
      padding: 6px 16px;
      font-size: 13px;
    }
  }
  