.resource {
  position: relative;
  z-index: 1;
  padding: 204px 0 262px;
  background: #fff;
}

@media screen and (max-width: 1299px) {
  .resource {
    padding: 150px 0;
  }
}

@media screen and (max-width: 991px) {
  .resource {
    padding: 60px 0;
  }
}

.resource .container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 260px));
  -webkit-column-gap: 32px;
          column-gap: 32px;
  row-gap: 93px;
  justify-content: space-between;
}

@media screen and (min-width: 1300px) {
  .resource .container {
    max-width: 1286px;
  }
}

@media screen and (max-width: 1199px) {
  .resource .container {
    grid-template-columns: repeat(3, minmax(0, 260px));
    justify-content: center;
    row-gap: 64px;
  }
}

@media screen and (max-width: 860px) {
  .resource .container {
    grid-template-columns: repeat(2, minmax(0, 260px));
  }
}

@media screen and (max-width: 560px) {
  .resource .container {
    grid-template-columns: minmax(0, 320px);
    row-gap: 48px;
  }
}

.resource__item {
  display: flex;
  flex-direction: column;
  row-gap: 23px;
}

.resource__img {
  height: 210px;
  overflow: hidden;
  -webkit-box-shadow: 0 0 54px 7px rgba(51, 51, 51, 0.15);
          box-shadow: 0 0 54px 7px rgba(51, 51, 51, 0.15);
  -webkit-transition: box-shadow 0.5s ease, -webkit-box-shadow 0.5s ease;
  transition: box-shadow 0.5s ease, -webkit-box-shadow 0.5s ease;
}

.resource__item:hover .resource__img {
  -webkit-box-shadow: 0 0 54px 7px rgba(51, 51, 51, 0.3);
          box-shadow: 0 0 54px 7px rgba(51, 51, 51, 0.3);
}

.resource__img img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -webkit-transition: -webkit-transform 0.5s ease;
  transition: -webkit-transform 0.5s ease;
  transition: transform 0.5s ease;
  transition: transform 0.5s ease, -webkit-transform 0.5s ease;
}

.resource__item:hover .resource__img img {
  -webkit-transform: scale(1.08);
          transform: scale(1.08);
}

.resource__title {
  margin-bottom: 15px;
  color: #41beaf;
  font-size: 23px;
  line-height: 23px;
  font-weight: 700;
}

.resource__langs {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resource__langs li {
  display: flex;
  align-items: center;
}

.resource__langs li + li::before {
  content: '';
  width: 1px;
  height: 23px;
  margin: 0 12px;
  background: #125a9e;
  opacity: .6;
}

.resource__langs a {
  font-size: 18px;
  line-height: 18px;
  color: #125a9e;
  text-decoration: none;
  -webkit-transition: color .2s ease;
  transition: color .2s ease;
}

.resource__langs a:hover,
.resource__langs a:focus-visible {
  color: #2982d5;
  text-decoration: underline;
}

.resource__langs a[lang='he'],
.resource__langs a[lang='ar'] {
  font-family: "Assistant", sans-serif;
}
