#posts-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  padding: 1rem;
  gap: 1rem;
}

.main-posts-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.main-post-container {
  flex: 0 1 25rem;   /* ~300px wide card */
  height: 25.5rem;     /* equal height */
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}

.post-image-container {
  width: 100%;
  height: 18rem;      /* set the image area you want */
  overflow: hidden;
}

.post-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* fills and crops */
  display: block;
}

.post-title {
  text-align: center;
  font-weight: bold;
}

.post-title p {
  margin: 0;
  padding: 0.5rem;
}

.reatings-container{
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.post-like {
  display: flex;
  flex-direction: row;
  padding: 0.5rem;
  justify-content: center;
  align-items: center;
}

/* keep the form from becoming a big block hit-area */
.like-form { display: inline; }

/* reset the button so it behaves like an icon link */
.icon-btn {
  appearance: none;
  -webkit-appearance: none;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0;
  margin: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: inherit;            /* inherit text color like <a> */
}

/* remove the square/outline */
.icon-btn:focus,
.icon-btn:focus-visible,
.icon-btn:active {
  outline: none;
  box-shadow: none;
  background: transparent;
}

/* anchor-like hover: only the icon changes color */
.icon-btn i {
  color: var(--accent);
  transition: color .2s;     /* optional */
}
.icon-btn:hover i {
  color: var(--accent-hover);            /* same blue you had on <a>:hover */
}

.post-dislike {
  display: flex;
  flex-direction: row;
  padding: 0.5rem;
  justify-content: center;
  align-items: center;
}

.post-comment {
  display: flex;
  flex-direction: row;
  padding: 0.5rem;
  justify-content: center;
  align-items: center;
}

.post-rating {
  padding: 0.5rem;
}

.post-details-link {
  padding: 1rem;
}

.post-like-count {
  padding: 0.5rem;
}

.post-dislike-count {
  padding: 0.5rem;
}

.reatings-container {
  height: 1rem;
}
.post-rating {
  display: flex;
  justify-content: center;
  align-items: center;
}

.publisher-main-container {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  padding: 1rem;
  gap: 1rem;
}

.bublisher-img-container {
  max-width: 3rem;
  max-height: 3rem;
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
  display: block;
}

.bublisher-img-container img {
  width: 100%;
}

.bublisher-container p {
  margin: 0;
}
