.recent-posts {
  padding: 140px 0;
}

.programs-recent-posts {
  background-color: #f6f6f6;
  padding: 140px 0;
}

@media only screen and (max-width: 1200px) {
  .recent-posts {
    padding: 90px 0;
  }
}
@media only screen and (max-width: 768px) {
  .recent-posts {
    padding: 55px 0;
  }
}
.recent-posts .container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: flex-start;
}
.recent-posts__title {
  font-weight: 700;
  font-size: 72px;
  color: var(--color-gray-blue);
  margin-bottom: 64px;
  line-height: 1;
}
@media only screen and (max-width: 1200px) {
  .recent-posts__title {
    margin-bottom: 45px;
  }
}
@media only screen and (max-width: 768px) {
  .recent-posts__title {
    font-size: 54px;
    margin-bottom: 35px;
  }
}
@media only screen and (max-width: 575px) {
  .recent-posts__title {
    font-size: 36px;
    margin-bottom: 25px;
  }
}
.recent-posts-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px 24px;
}
@media only screen and (max-width: 991px) {
  .recent-posts-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media only screen and (max-width: 767px) {
  .recent-posts-row {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media only screen and (max-width: 575px) {
  .recent-posts-row {
    gap: 35px 0;
  }
}
.recent-posts__item-img {
  margin-bottom: 24px;
  overflow: hidden;
}
@media only screen and (max-width: 991px) {
  .recent-posts__item-img {
    margin-bottom: 15px;
  }
}
.recent-posts__item-img a,
.recent-posts__item-img img {
  display: block;
  width: 100%;
  aspect-ratio: 424 / 400;
}
@media only screen and (max-width: 991px) {
  .recent-posts__item-img a,
  .recent-posts__item-img img {
    aspect-ratio: 16 / 9;
  }
}
.recent-posts__item-img img {
  transition: transform 0.5s;
}
.recent-posts__item-img:hover img {
  transform: scale3d(1.1, 1.1, 1);
}
.recent-posts__item-date {
  padding: 0;
  display: inline-block;
  font-size: 14px;
  line-height: 1.28;
  font-weight: 700;
  color: #3593ff;
  margin-bottom: 12px;
  text-transform: uppercase;
}
@media only screen and (max-width: 991px) {
  .recent-posts__item-date {
    margin-bottom: 6px;
    font-size: 12px;
  }
}
.recent-posts__item-date__icon {
  margin-right: 5px;
  position: relative;
  bottom: -2px;
}
.recent-posts__item-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: #27383f;
  transition: color 0.4s ease;
}
@media only screen and (max-width: 991px) {
  .recent-posts__item-title {
    font-size: 18px;
  }
}
@media only screen and (max-width: 575px) {
  .recent-posts__item-title {
    font-size: 16px;
  }
}
.recent-posts__item > a {
  display: block;
}
.recent-posts__item > a:hover .recent-posts__item-title,
.recent-posts__item > a:focus .recent-posts__item-title {
  color: #3593ff;
}
.recent-posts-btn {
  padding: 20px 32px;
  height: 64px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  margin-top: 64px;
  align-self: center;
}
@media only screen and (max-width: 1200px) {
  .recent-posts-btn {
    padding: 26px 40px;
    font-size: 16px;
    margin-top: 45px;
  }
}
.recent-posts-list {
  padding: 140px 0;
}
.recent-posts-list .container {
  display: flex;
  flex-direction: column;
}
.recent-posts-list__title-wrapp,
.programs-recent-posts__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.recent-posts-list__post,
.programs-recent-posts__post {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 50px;
  padding: 48px 0 56px;
  border-bottom: 1px solid #ccc;
}

.recent-posts-list__post-img,
.programs-recent-posts__post-img {
  width: 100%;
  max-width: 270px;
}

.recent-posts-list__post-date,
.programs-recent-posts__post-date {
  margin-bottom: 12px;
  color: var(--color-blue);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.recent-posts-list__post-title,
.programs-recent-posts__post-title {
  max-width: 400px;
  margin-bottom: 24px;
  line-height: 1.125;
  font-size: 32px;
  font-weight: 700;
  color: var(--color-gray-blue);
}

.recent-posts-list__post-text,
.programs-recent-posts__post-text {
  max-width: 360px;
  margin-left: auto;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  color: #545454;
}

@media screen and (max-width: 1024px) {
  .recent-posts-list__post {
    flex-direction: column;
    gap: 30px;
    padding: 30px 0;
  }

  .recent-posts-list__post-title,
  .programs-recent-posts__post-title {
    max-width: 100%;
  }

  .recent-posts-list__post-text {
    max-width: 100%;
  }

  .recent-posts-list__post-info {
    width: 100%;
  }

  .recent-posts-list__post-img {
    height: 300px;
    max-width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .recent-posts-list,
  .programs-recent-posts {
    padding: 60px 0;
  }
}
