.recent-posts-wrapper {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* pour iOS */
}
.recent-post-card {
  background: var(--main);
  background-image: linear-gradient(180deg, #c12727 0%, #e03535 100%) !important;
  color: #fff;
  border-radius: 20px;
  padding: 18px 15px 18px 15px;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: 400px;
  max-width: 25vw;
}

.recent-post-image {
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 0;
  margin-bottom: 30px;
  max-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.recent-post-image img {
  transform: scale(1.1);
  transition: var(--transition);
}
.recent-post-card:hover .recent-post-image img {
  transform: scale(1);
}
.recent-post-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  color: var(--main);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  transition: all 0.3s;
}
.row_with_recent_posts .title_box_service {
  margin: 0 auto;
  width: 90%;
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  /* padding-bottom: 30px; */
  /* margin-bottom: 30px; */
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.4); */
  display: grid;
  grid-template-columns: 4fr 1fr;
}
.recent-post-title {
  color: white;
}

.recent-post-excerpt {
  margin: 0 auto;
  width: 90%;
  font-size: 0.95rem;
  line-height: 1.4;
  color: white;
  margin-bottom: 30px;
}
.recent-post-meta {
  margin: 10px auto 0 auto;
  width: 90%;
}
.recent-post-date {
  font-size: 14px;
}

.recent-post-category {
  color: var(--main);
  padding: 2px 4px;
  background: white;
  border-radius: 50px;
  font-size: 12px;
}

@media screen and (max-width: 980px) {
  .recent-posts-wrapper {
    display: block;
    flex-wrap: auto !important;
  }
  .recent-post-card {
    width: 100%;
    max-width: 100%;
    margin-bottom: 15px;
  }
  .recent-post-image {
    max-height: 180px;
  }
}

@media screen and (max-width: 767px) {
  .recent-post-title {
    font-size: 20px !important;
  }
}
