.post-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  cursor: pointer;
  background: #fff;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.post-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.post-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 10px;
  margin-top: -10px;
  color: #333;
}

.post-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #555;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: bold;
  font-size: 1rem;
}

.author-role {
  font-size: 0.85rem;
  color: #777;
}

.post-stats {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.95rem;
  color: #555;
}

.post-stats i {
  margin-right: 5px;
  color: #6A42C2;
}

.post-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

/* ====================== Mobile Responsive ====================== */
@media screen and (max-width: 768px) {
  .post-card {
    padding: 15px;
  }

  .post-title {
    font-size: 1.5rem;
  }

  .post-description {
    font-size: 0.95rem;
  }

  /* Footer: left = author, right = stats */
  .post-footer {
    flex-direction: row; /* row for mobile */
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .author-info {
    gap: 8px;
  }

  .author-img {
    width: 40px;
    height: 40px;
  }

  .author-name {
    font-size: 0.95rem;
  }

  .author-role {
    font-size: 0.8rem;
  }

  .post-stats {
    font-size: 0.9rem;
    gap: 12px;
  }

  .post-stats i {
    margin-right: 3px;
  }

  .post-stats span {
    gap: 3px;
  }
}

/* Extra small screens (phones) */
@media screen and (max-width: 480px) {
  .post-title {
    font-size: 1.3rem;
  }

  .post-description {
    font-size: 0.9rem;
  }

  .author-img {
    width: 35px;
    height: 35px;
  }

  .author-name {
    font-size: 0.9rem;
  }

  .author-role {
    font-size: 0.75rem;
  }

  .post-stats {
    font-size: 0.85rem;
    gap: 8px;
  }
}


html.dark-mode .post-card {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e0e0e0;
}

html.dark-mode .post-title  {
  color: #fff;
}
html.dark-mode .post-description {
  color: #e0e0e0;
}
html.dark-mode .post-stats {
  color: #e0e0e0;
}






