/* tools-resources */

.tools-resources-view {
  --cards-col-count: 5;
  --cards-gap: 20px;
  --cards-height: 233px;
  --cards-bg: var(--white);
  --cards-border-radius: 7px;
  --card-content-padding: 40px 20px;
  --card-content-padding2: 15px 20px 10px 20px;
  --card-hover-content-bg: var(--site-primary-color);
}

.tools-resources-cards {
  display: grid;
  grid-template-columns: repeat(var(--cards-col-count), 1fr);
  grid-gap: var(--cards-gap);
}

.tools-resources-card {
  min-height: var(--cards-height);
  background: var(--cards-bg);
  border-radius: var(--cards-border-radius);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.1);
}

/* tools-resources-front */

.tools-resources-front {
  padding: var(--card-content-padding);
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 26px;
  width: 100%;
  cursor: pointer;
}

.tools-resources-icon {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 62px;
}

.tools-resources-title {
  font-size: 16px;
  line-height: 22px;
  color: var(--dark-gray);
  text-align: center;
  font-weight: 400;
}

/* tools-resources-hover-section */

.tools-resources-hover-section {
  background: var(--card-hover-content-bg);
  position: absolute;
  bottom: -100%;
  height: 100%;
  left: 0;
  width: 100%;
  transition: bottom 0.5s linear 0s;
}

.tools-resources-card:hover .tools-resources-hover-section {
  bottom: 0;
}

.tools-resources-description-text,
.tools-resources-description-text * {
  font-size: 14px;
  line-height: 18px;
}

.tools-resources-hover-content {
  height: 100%;
  position: relative;
  padding-bottom: 55px;
}

.tools-resources-description {
  color: var(--white);
  font-size: 14px;
  line-height: 18px;
  height: 100%;
  padding: var(--card-content-padding2);
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.tools-resources-description-inner {
  width: 100%;
  max-height: 100%;
  overflow: hidden;
}

.tools-resources-goto-section {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tools-resources-goto-section.with-shadow {
  box-shadow: 0 0 25px 0px rgba(0, 0, 0, 0.2);
}

/* scroll */
.tools-resources-card .mCSB_inside>.mCSB_container {
  margin-right: 15px;
}

.tools-resources-card .mCS-dark-thin.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
  background-color: #036D60 !important;
}

.tools-resources-card .mCSB_scrollTools {
  width: 8px;
}

.resources-and-tools-block .main-click-link {
  font-size: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 1;
}

.resources-and-tools-block .goto-details-page-link {
  position: relative;
  z-index: 1;
}

/* bg colors */

.tools-resources-row:nth-child(5n+1) {
  --card-hover-content-bg: #f29b35;
  --hover-icon: url(/themes/custom/gff/components/inner-pages/key-themes/components/tools-and-resources/css/../img/1_hover.png);
}

.tools-resources-row:nth-child(5n+2) {
  --card-hover-content-bg: #0a716d;
  --hover-icon: url(/themes/custom/gff/components/inner-pages/key-themes/components/tools-and-resources/css/../img/2_hover.png);
}

.tools-resources-row:nth-child(5n+3) {
  --card-hover-content-bg: #101f2c;
  --hover-icon: url(/themes/custom/gff/components/inner-pages/key-themes/components/tools-and-resources/css/../img/3_hover.png);
}

.tools-resources-row:nth-child(5n+4) {
  --card-hover-content-bg: #3f292b;
  --hover-icon: url(/themes/custom/gff/components/inner-pages/key-themes/components/tools-and-resources/css/../img/4_hover.png);
}

.tools-resources-row:nth-child(5n+5) {
  --card-hover-content-bg: #1fa29c;
  --hover-icon: url(/themes/custom/gff/components/inner-pages/key-themes/components/tools-and-resources/css/../img/5_hover.png);
}

.resources-and-tools-block .goto-details-page-link:hover {
  background-image: var(--hover-icon);
}

/* responsive */
@media only screen and (max-width: 991px) {
  .tools-resources-view {
    --cards-col-count: 3;
  }

  .tools-resources-title {
    font-size: 15px;
    line-height: 21px;
  }
}

@media only screen and (max-width: 767px) {
  .tools-resources-view {
    --cards-gap: 15px;
    --card-content-padding: 40px 15px;
    --card-content-padding2: 15px 15px 10px 15px;
  }

  .tools-resources-title {
    font-size: 14px;
    line-height: 20px;
  }

  .tools-resources-goto-section {
    height: 45px;
  }

  .tools-resources-hover-content {
    padding-bottom: 45px;
  }
}

@media only screen and (max-width: 650px) {
  .tools-resources-view {
    --cards-col-count: 2;
  }
}

@media only screen and (max-width: 480px) {
  .tools-resources-view {
    --cards-col-count: 1;
    max-width: 230px;
    margin: 0 auto;
  }

}
