@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&display=swap");

.ressources {
  position: relative;
  bottom: 50px;
  display: flex;
  background-image: linear-gradient(
    to bottom,
    #1b1f54 0%,
    #1b1f54 10%,
    #ffffff00 10%,
    #ffffff00 100%
  );
}
.ressources .ressources-grid {
  display: flex;
  gap: 4rem 3rem;
  flex-wrap: wrap;
}
.latest_posts .ressources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 4rem;
  gap: 2rem;
}
@media screen and (max-width: 1200px) {
  .latest_posts .ressources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 600px) {
  .latest_posts .ressources-grid {
    grid-template-columns: 1fr;
  }
}
.latest_posts .ressource-card p {
  margin-bottom: 0;
}
.ressources .ressource-card,
.latest_posts .ressource-card {
  background: white;
  border-radius: 15px;
  border: 1px solid #eaecf0;
  overflow: hidden;
  flex: 1 1 275px;
  transition: 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.ressources .ressource-card:hover,
.latest_posts .ressource-card:hover {
  transform: translateY(-5px);
}
.ressources .ressource-card img,
.latest_posts .ressource-card img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
}
.ressources .ressource-card .ressource-card-body,
.latest_posts .ressource-card .ressource-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}
.ressources .ressource-card .reading-time,
.latest_posts .ressource-card .reading-time {
  display: flex;
  align-items: center;
  margin-top: auto;
}
.latest_posts .ressource-card .reading-time {
  margin-bottom: 2rem;
}
.latest_posts .ressource-card .ressource-card-body-content {
  margin-top: auto;
  margin-bottom: auto;
}
.ressources .ressource-card .reading-time svg,
.latest_posts .ressource-card .reading-time svg {
  margin-right: 1rem;
}
.ressources .ressource-card > a,
.latest_posts .ressource-card > a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.ressources .ressource-card .ressource-card-body a,
.latest_posts .ressource-card .ressource-card-body a {
  position: relative;
  z-index: 1;
}
.ressources .ressource-card p,
.ressources .ressource-card .read-more,
.latest_posts .ressource-card p,
.latest_posts .ressource-card .read-more {
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  color: #5f6980;
}
.ressources .ressource-card .read-more,
.latest_posts .ressource-card .read-more {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #000;
  margin-top: auto;
  letter-spacing: 0.07em;
}
.ressources .ressource-card .read-more svg,
.latest_posts .ressource-card .read-more svg {
  transition: 0.2s ease;
}
.ressources .ressource-card .read-more:hover svg,
.latest_posts .ressource-card .read-more:hover svg {
  transform: translateX(5px);
}
.ressources .ressource-card h2,
.latest_posts .ressource-card h2 {
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: 0.5px;
  text-align: left;
  margin: 0;
  color: #282828;
}

/* Pagination */
.ressources .pagination {
  display: flex;
  justify-content: center;
  margin: 8rem 0;
  gap: 3rem;
}
.ressources .pagination a,
.ressources .pagination span {
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  color: #000;
}
.ressources .pagination .current {
  font-weight: 700;
}

/* ---------------------------------------------------- */
/* Article display of content                           */
/* ---------------------------------------------------- */

.ressources__content {
  color: #6f6c90;
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
}
.ressources__content h1,
.ressources__content h2,
.ressources__content h3,
.ressources__content h4,
.ressources__content h5,
.ressources__content h6 {
  color: #170f49;
  font-weight: 500;
  margin-bottom: 1rem;
}
.ressources__content p {
  margin-bottom: 4rem;
}
.ressources__content h2 {
  text-align: center;
  color: #1b1f54;
}
.ressources__content img {
  max-width: 600px;
  width: 100%;
  height: auto;
  margin: auto;
}
.ressources__content figure {
  display: flex;
}
.ressources__content .news {
  padding: 0 10%;
  margin: 200px auto;
}
.ressources__content .news .wp-block-latest-posts li {
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
  border-radius: 5px;
  padding: 15px;
  max-width: 160px;
  background-image: none;
  max-height: 255px;
  overflow: auto;
}
.ressources__content .news .wp-block-latest-posts {
  justify-content: center;
  margin-top: 50px;
  gap: 2rem;
}
.ressources__content .news .wp-block-latest-posts__post-title {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 27px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #000000;
}
.ressources__content .news .wp-block-latest-posts__post-excerpt p {
  color: #000;
  font-size: 12px;
  line-height: normal;
  margin-bottom: 0;
}

.ressources__content .news .news-social {
  gap: 3rem 8rem;
  margin: 50px auto;
}
.ressources__content .news .news-social .index-social-links {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 400px;
  flex-wrap: wrap;
}
.ressources__content .news .news-social .index-social-links a {
  color: #285778;
  font-size: 5rem;
}
.ressources__content .news-container > .wp-block-group__inner-container {
  width: fit-content;
}

.ressources__content .news .news-social h2 {
  min-width: fit-content;
}
@media (max-width: 800px) {
  .ressources__content .news .news-social {
    flex-direction: column-reverse;
  }
}

.ressources__content ul {
  list-style: inside;
  margin-top: -3rem;
  margin-bottom: 4rem;
}
.ressources__content ul li {
  background: none;
  font-size: 1.45rem;
}
