.last-post {
  padding: 4rem 0;

  background-image: radial-gradient(
    circle at bottom right,
    rgba(87, 158, 149, 0.1),
    transparent 60%
  );
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: contain;
}

.last-post .sect-header {
  max-width: 60%;
}

.last-post .sect-header h2 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.last-post .sect-header p {
  font-size: 1rem;
  color: gray;
  margin-bottom: 3rem;
}

.post {
  max-width: 90%;
  margin: 1rem auto;
  display: flex;
  align-items: start;
  justify-content: start;
  gap: 4rem;
}

.post .thumbnail {
  width: 50%;
}

.post .thumbnail img {
  width: 100%;
  height: 22.5rem;
  object-fit: cover;
  border-radius: 30px;
}

.post .content {
  width: 50%;
  display: flex;
  align-items: start;
  justify-content: start;
  flex-direction: column;
}

.post .content .date {
  color: var(--secondary-color);
  font-weight: 500;
}

.post .content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  margin-top: 1rem;
}

.post .content .description {
  font-size: 1rem;
  line-height: 1.6rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  color: gray;
}

.post .content .btns {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 2rem;
  padding-top: 2rem;
}

.btn {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.post .content .btns .btn span {
  font-size: 1.5rem;
}

.borderded {
  border-bottom: 1px solid #73737350;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.borderded:last-child {
  margin-bottom: 0 !important;
  border-bottom: none !important;
  padding-bottom: 5rem;
}

.all-posts {
  min-height: 40rem;
}

.all-posts .post {
  max-width: 100% !important;
}

@media only screen and (max-width: 900px) {
  .page-header {
    max-width: 100%;
  }

  .page-header h2 {
    font-size: 2rem;
  }

  .page-header p {
    font-size: 14px;
  }

  .last-post .sect-header {
    max-width: 100%;
    margin: 0;
  }

  .last-post .sect-header h2 {
    font-size: 1.8rem;
  }

  .last-post .sect-header p {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
  }

  .post {
    max-width: 100%;
    margin: 1rem auto;
    display: flex;
    gap: 1rem;
  }

  .post .thumbnail {
    width: 50%;
  }

  .post .thumbnail img {
    width: 100%;
    height: 15rem;
  }

  .post .content {
    width: 50%;
    height: max-content;
    margin-bottom: 1rem;
  }

  .post .content .date {
    font-size: 13px;
  }

  .post .content h2 {
    font-size: 1.6rem;
  }

  .post .content .description {
    font-size: 14px;
    line-height: 1.6rem;
  }

  .post .content .btns {
    gap: 1rem;
    padding-top: 2rem;
  }

  .post .content .btns a {
    white-space: nowrap;
  }
}

@media only screen and (max-width: 560px) {
  .page-header {
    max-width: 100%;
    padding-bottom: 0;
  }

  .page-header h2 {
    font-size: 1.7rem;
  }

  .post {
    flex-direction: column;
  }

  .post .thumbnail {
    width: 100%;
  }

  .post .thumbnail img,
  .all-posts .post .thumbnail img {
    height: 17rem !important;
  }

  .post .content {
    width: 100%;
    height: 17rem !important;
  }

  .all-posts .post .content {
    width: 100%;
    height: 17.5rem !important;
  }

  .post .content h2 {
    font-size: 1.4rem;
  }

  .post .content .description {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}
