.post {
  width: 100%;
  max-width: 800px;
  box-shadow: 0px 0px 20px #A8A8A8;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  opacity: 1.0;
}

.post:hover {
  opacity: 0.7;
}

/* Remove individual margins since grid handles spacing */
@media (max-width: 767px) {
  .post:not(:first-child) {
    margin-top: 30px;
  }
}

.imgContainer {
  display: flex;
  flex-direction: column;
  flex: 2;
  justify-content: center;
  max-height: 300px;
  overflow-y: hidden;
}

/* Ensure text content takes up less space than image */
.post a > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-height: 0;
  padding: 18px;
}

.post img {
  max-width: 100%;
  margin-bottom: 12px;
}

.post a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
}

.blogs-container {
  display: table;
  margin: 0 auto;
  width: 100%;
}

/* Two-column layout for blog posts on wider screens */
@media (min-width: 768px) {
  .blogs-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}
