/* Flexbox the menu. */
.topic-page-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  list-style: none;
  padding: 0 30px;
  margin-left: 0;
  width: 100%;
}

@media screen and (min-width: 998px) {
  .topic-page-list {
    padding: 0;
  }
}

/* Theme the menu items. */
.topic-page-list__item {
  flex-grow: 0;
  margin: 0 0 30px 0;
  width: 100%;
}

li.topic-page-list__item:last-child {
  margin-bottom: 30px;
}

@media screen and (min-width: 998px) {
  .topic-page-list__item {
    width: calc(50% - 15px);
  }
}

/* Theme the link. */
.topic-page-list__item a {
  background-color: #1a644b;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.2);
  display: block;
  height: 100%;
  padding: 0;
  position: relative;
  -webkit-transition: all .5s;
  -moz-transition: all .5s;
  -o-transition: all .5s;
  transition: all .5s;
}

.topic-page-list__item a:before {
  background: url(/themes/custom/sfsd/src/img/star.svg) no-repeat left top transparent;
  background-size: cover;
  display: block;
  height: 160px;
  width: 160px;
  position: absolute;
  content: "";
  opacity: 0.05;
  top: 5px;
  right: -40px;
  -webkit-transform: rotate(-75deg);
  transform: rotate(-75deg);
}

/* Add hover styles. */
.topic-page-list__item a:hover {
  background-color: #1d4236;
  border: 0;
  box-shadow: none;
}

.topic-page-list__item a h3:before {
  background: url("/themes/custom/sfsd/src/img/icon-arrow-circle.svg") no-repeat left top transparent;
  width: 40px;
  height: 40px;
  display: block;
  content: '';
  margin-bottom: 30px;
}

/* Theme the link texts. */
.topic-page-list__item a h3,
.topic-page-list__item a .topic-page-list__item__teaser {
  color: #ffffff;
  text-decoration: none;
}

/* Reset the hover states. */
.topic-page-list__item:hover a,
.topic-page-list__item:hover a:hover {
  text-decoration: none;
}
