/* Post Banner Section */
.post-banner {
  position: relative;
  width: 100%;
  max-height: 600px; /* Adjust as needed */
  overflow: hidden;
  width: 100%;
}

.post-image img {
  width: 100%;
  height: auto;
  object-fit: cover; /* Ensure image covers the section without distortion */
}

.post-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(0, 0, 0, 0%); /* Dark overlay */
  color: #fff; /* White text */
  text-align: left;
  margin: 0 auto auto 4.5vw;
  max-width: 1200px;
  width: 50vw;
}

.post-banner-overlay-container {
  border-radius: 50px;
  background: rgba(0, 0, 0, 50%);
  padding: 20px;
  height: 60%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.category-label {
  background: linear-gradient(45deg, #00bfa6, #0073aa);
  padding: 0.2rem 0.5rem;
  border-radius: 15px;
  font-size: 1rem;
  display: inline-block;
  margin-bottom: 1vh;
  font-family: var(--main-font-family);
  font-weight: 400;
}

.post-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5vh;
  margin-top: 0;
  font-family: var(--main-font-family);
  line-height: 2.3rem;
}

.post-subtitle {
  font-size: 1rem;
  margin-bottom: 2vh;
  margin-top: 0;
  font-family: var(--secondary-font-family);
  font-weight: var(--main-font-weight);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.post-meta {
  display: flex;
  align-items: center;
}

.author-info {
  display: flex;
  align-items: center;
}

.author-info img {
  border-radius: 50%;
  margin-right: 10px;
}

.author-name {
  font-weight: bold;
  font-size: 1.4vw;
  color: var(--main-green-color);
}

.post-date {
  font-size: 1.4vw;
  color: white;
}

/* Post Content Section */
.post-content {
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .post-title {
    font-size: 4vw;
    margin-bottom: 0;
  }

  .post-subtitle {
    font-size: 1.5vw;
    margin-bottom: 0;
  }

  .post-banner-overlay {
    width: 60vw;
  }

  .author-name,
  .post-date {
    font-size: 1rem;
  }
}

@media (max-width: 700px) {
  .post-banner-overlay-container {
    height: 70%;
    padding: 10px;
  }

  .category-label {
    font-size: 0.8rem;
  }

  .post-title {
    font-size: 1.1rem;
    line-height: 1.2rem;
  }

  .post-subtitle {
    display: none;
  }

  .author-name,
  .post-date {
    font-size: 0.5rem;
  }
}
