/* Section: Resources (Home) */
.resources-home {
  background: #ffffff;
  padding: 100px 0;
  text-align: center;
}

.resources-home__container {
  padding: 0 130px;
}
@media (max-width: 1450px) {
  .resources-home__container {
    padding: 0 90px;
  }
}
@media (max-width: 1024px) {
  .resources-home__container {
    padding: 0 60px;
  }
}
@media (max-width: 768px) {
  .resources-home__container {
    padding: 0 40px;
  }
}
@media (max-width: 526px) {
  .resources-home__container {
    padding: 0 14px;
  }
}

.resources-home h2 {
  margin: 0 0 20px;
  color: #0f0f0f;
  font-family: var(--glm-secondary-font);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
}

.resources-home__text {
  max-width: 955px;
  margin: 0 auto 50px;
  color: #44474d;
  font-size: 16px;
  line-height: 1.7;
}

.resources-home__list {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  text-align: left;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.resources-home__list::-webkit-scrollbar {
  display: none;
}

.resources-home__card {
  display: flex;
  flex: 0 0 calc((100% - 60px) / 3);
  flex-direction: column;
  border: 1px solid #ece7dc;
  background: #ffffff;
  scroll-snap-align: start;
  text-decoration: none;
  transition: box-shadow 0.3s ease;
  padding: 15px 15px 35px 15px;
}

.resources-home__card:hover {
  box-shadow: 0 20px 40px rgba(15, 15, 15, 0.1);
}

.resources-home__card-media {
  aspect-ratio: 4 / 2;
}

.resources-home__card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resources-home__card-body {
  padding-top: 20px;
}

.resources-home__date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #0c4a34;
  font-size: 16px;
  font-weight: 600;
}

.resources-home__date img {
  display: block;
  width: 14px;
  height: 14px;
}

.resources-home__card-body h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 12px;
  color: #0f0f0f;
  font-family: var(--glm-secondary-font);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.resources-home__card-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #2d2d2db2;
  font-size: 16px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

@media (max-width: 1180px) {
  .resources-home {
    padding: 70px 0;
  }

  .resources-home h2 {
    font-size: 36px;
  }

  .resources-home__card {
    flex-basis: calc((100% - 30px) / 2);
  }
}

@media (max-width: 767px) {
  .resources-home {
    padding: 56px 0;
  }

  .resources-home h2 {
    font-size: 28px;
  }

  .resources-home__text {
    margin-bottom: 40px;
  }

  .resources-home__card {
    flex-basis: 85%;
  }
}
