#communityView .main-content {
  padding: 0 20px 20px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.channels-nav-container {
  position: sticky;
  top: 70px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 90%, rgba(255, 255, 255, 0));
  padding: 10px 0;
  margin: 0 -20px;
  z-index: 10;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.channels-nav-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.channels-nav {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 5px 0 5px 0;
  scrollbar-width: thin;
  -ms-overflow-style: none;
}

.channels-nav::-webkit-scrollbar {
  height: 6px;
}

.channels-nav::-webkit-scrollbar-thumb {
  background-color: #009640;
  border-radius: 3px;
}

.channels-nav::-webkit-scrollbar-track {
  background-color: #f1f1f1;
  border-radius: 3px;
}

.channel-btn {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 150, 64, 0.2);
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #009640;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.3s ease;
  min-height: 44px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.channel-btn:hover {
  background: rgba(0, 150, 64, 0.1);
}

.channel-btn.active {
  background: #009640;
  color: white;
  border-color: #009640;
}

.post-form {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 25px;
  margin: 20px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.form-header h3 {
  margin: 0;
  color: #009640;
  font-size: 1.3rem;
  font-weight: 600;
}

.form-content textarea {
  width: 100%;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 15px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 10px;
  box-sizing: border-box;
  min-height: 120px;
}

.form-content textarea:focus {
  outline: none;
  border-color: #009640;
  box-shadow: 0 0 0 3px rgba(0, 150, 64, 0.1);
}

.form-footer {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.form-footer select {
  flex: 1;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 12px 15px;
  min-width: 150px;
  background-color: white;
}

.form-footer select:focus {
  outline: none;
  border-color: #009640;
  box-shadow: 0 0 0 3px rgba(0, 150, 64, 0.1);
}

.form-footer .btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 14px;
  font-weight: 600;
  min-height: 46px;
}

.posts-feed {
  margin-bottom: 25px;
}

.post-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.post-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.post-author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #009640, #00c853);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  margin-right: 15px;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(0, 150, 64, 0.2);
}

.post-author-info {
  flex: 1;
}

.post-author-name {
  font-weight: 700;
  color: #111827;
  margin: 0 0 3px 0;
}

.post-meta {
  font-size: 0.9rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.post-meta i.fa-circle {
  font-size: 0.3rem;
  vertical-align: middle;
}

.post-content {
  margin-bottom: 20px;
  color: #374151;
  line-height: 1.6;
  word-wrap: break-word;
}

.post-actions {
  display: flex;
  gap: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: rgba(0, 150, 64, 0.05);
  color: #009640;
}

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

.load-more-container {
  text-align: center;
  margin: 20px 0;
}

.loading,
.error-message,
.no-posts {
  text-align: center;
  padding: 50px 20px;
  border-radius: 20px;
  margin: 20px 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.85);
}

.loading {
  color: #6b7280;
  background: rgba(255, 255, 255, 0.7);
}

.error-message {
  color: #ef4444;
  background: rgba(255, 255, 255, 0.85);
}

.error-message i,
.no-posts i {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.7;
}

.error-message p,
.no-posts p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

/* Additional new styles */
.community-header-content {
  position: relative;
  padding: 20px 0;
}

.community-header h1 {
  margin: 0 0 10px 0;
  color: #009640;
  font-size: 1.8rem;
  font-weight: 700;
}

.community-header p {
  margin: 0 0 20px 0;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.5;
}

.fab-button {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #009640;
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 150, 64, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s ease;
}

.fab-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 150, 64, 0.4);
}

.character-count {
  text-align: right;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 20px;
}

.posts-feed {
  margin: 25px 0;
}

.post-title {
  margin: 0 0 15px 0;
  color: #111827;
  font-size: 1.3rem;
  font-weight: 700;
}

.post-text {
  margin: 0 0 15px 0;
  font-size: 1rem;
  line-height: 1.7;
}

.post-call-to-action {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cta-btn.primary {
  background: #009640;
  color: white;
}

.cta-btn.secondary {
  background: #f1f5f9;
  color: #009640;
}

.cta-btn.outline {
  background: transparent;
  color: #009640;
  border: 2px solid #009640;
}

.cta-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.post-actions {
  display: flex;
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.comments-section {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.comments-list {
  margin-bottom: 20px;
}

.comment-item {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 16px;
  background-color: #f8fafc;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #64748b, #94a3b8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-author {
  font-weight: 600;
  color: #1e293b;
}

.comment-time {
  font-size: 0.8rem;
  color: #64748b;
}

.comment-admin-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-admin-btn:hover {
  background: #fee2e2;
  color: #ef4444;
}

.comment-text {
  margin: 0 0 12px 0;
  color: #334155;
  line-height: 1.5;
}

.comment-actions {
  display: flex;
  gap: 15px;
}

.comment-like-btn,
.comment-reply-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 5px;
}

.comment-like-btn:hover,
.comment-reply-btn:hover {
  color: #009640;
}

.comment-like-btn.liked {
  color: #ef4444;
}

.comment-form {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.comment-input-form {
  display: flex;
  flex: 1;
  gap: 10px;
}

.comment-input {
  flex: 1;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
}

.comment-input:focus {
  outline: none;
  border-color: #009640;
  box-shadow: 0 0 0 3px rgba(0, 150, 64, 0.1);
}

.comment-submit-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #009640;
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.comment-submit-btn:hover {
  background: #007d35;
  transform: scale(1.05);
}

.post-admin-actions {
  display: flex;
  gap: 8px;
}

.admin-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s ease;
}

.admin-action-btn:hover {
  background: #e2e8f0;
  color: #009640;
  transform: scale(1.1);
}

.post-channel {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.post-channel.News {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.post-channel.Tips & Tricks {
  background-color: #fef3c7;
  color: #d97706;
}

.post-channel.Suppliers {
  background-color: #dcfce7;
  color: #166534;
}

.post-channel.Discussion {
  background-color: #ede9fe;
  color: #7c3aed;
}

.post-pinned {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #ffedd5;
  color: #ea580c;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
@media (max-width: 768px) {
  #communityView .main-content {
    padding: 0 15px 15px 15px;
  }
  
  .community-header h1 {
    font-size: 1.5rem;
  }
  
  .community-header p {
    font-size: 0.95rem;
  }
  
  .fab-button {
    bottom: 80px;
    right: 15px;
    width: 50px;
    height: 50px;
  }
  
  .channels-nav-container {
    top: 65px;
  }
  
  .channels-nav-wrapper {
    padding: 0 15px;
  }
  
  .form-footer {
    flex-direction: column;
  }
  
  .channels-nav {
    padding: 5px 0;
  }
  
  .channel-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  
  .form-footer select {
    min-width: auto;
    width: 100%;
  }
  
  .post-card {
    padding: 20px;
  }
  
  .post-actions {
    flex-wrap: wrap;
  }
  
  .action-btn {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
  
  .post-author-avatar {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  
  .post-title {
    font-size: 1.1rem;
  }
  
  .post-call-to-action {
    flex-direction: column;
  }
  
  .cta-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .community-header h1 {
    font-size: 1.3rem;
  }
  
  .community-header p {
    font-size: 0.9rem;
  }
  
  .post-card {
    padding: 15px;
  }
  
  .post-actions {
    flex-wrap: wrap;
  }
  
  .action-btn {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
  
  .comment-item {
    padding: 12px;
  }
  
  .comment-input-form {
    flex-direction: column;
  }
  
  .comment-submit-btn {
    align-self: flex-end;
  }
  
  .post-header {
    flex-wrap: wrap;
  }
  
  .post-admin-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 10px;
  }
}