.mobile-nav {
  display: none;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  color: #8d8989;
  position: fixed;
  width: 100%;
  height: 45px;
  top: 45px;
  overflow-x: scroll;
  overflow-y: hidden;
  white-space: nowrap;
  background: #413c3c;
  -webkit-box-shadow: inset 0 7px 9px -7px rgba(0, 0, 0, 0.3);
          box-shadow: inset 0 7px 9px -7px rgba(0, 0, 0, 0.3);
  z-index: 50;
}

.mobile-nav ul {
  width: 100%;
  text-align: center;
}

.mobile-nav li {
  display: inline-block;
  margin: 0 10px;
}

.mobile-nav .active {
  color: #eee;
}

@media (max-width: 1025px) {
  .mobile-nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }
}

@media (max-width: 541px) {
  .mobile-nav {
    font-size: 14px;
  }
}

.mobile-nav::-webkit-scrollbar {
  width: 0 !important;
  display: none !important;
}

.mobile-nav-shadow {
  position: fixed;
  width: 100%;
  height: 45px;
  top: 45px;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  -webkit-transition: opacity 0.5s;
  -o-transition: opacity 0.5s;
  transition: opacity 0.5s;
}

.mobile-nav-shadow:before, .mobile-nav-shadow:after {
  content: '';
  position: absolute;
  height: 45px;
  width: 15px;
  top: 0;
}

.mobile-nav-shadow:before {
  left: 0;
  background: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.4)), to(transparent));
  background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.4), transparent);
  background: -o-linear-gradient(left, rgba(0, 0, 0, 0.4), transparent);
  background: linear-gradient(to right, rgba(0, 0, 0, 0.4), transparent);
}

.mobile-nav-shadow:after {
  right: 0;
  background: -webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.4)), to(transparent));
  background: -webkit-linear-gradient(right, rgba(0, 0, 0, 0.4), transparent);
  background: -o-linear-gradient(right, rgba(0, 0, 0, 0.4), transparent);
  background: linear-gradient(to left, rgba(0, 0, 0, 0.4), transparent);
}

.shadow-hover {
  opacity: 1;
}

.card-wrapper {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.card {
  display: inline-block;
  position: relative;
  width: calc(100% / 3 - 20px);
  height: 0;
  padding-bottom: calc(100% / 3 - 20px);
  -webkit-box-shadow: 0 0 6px 0px rgba(0, 0, 0, 0.3);
          box-shadow: 0 0 6px 0px rgba(0, 0, 0, 0.3);
  margin: 10px;
  text-align: left;
}

.card__img {
  position: absolute;
  width: 100%;
  height: 60%;
}

.card__img > img {
  width: 100%;
}

.card__content {
  background: #fff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  position: absolute;
  top: 60%;
  width: 100%;
  height: 40%;
  padding-top: 25px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
}

.card__title {
  font-size: 18px;
  margin-bottom: 20px;
}

.card__subtitle {
  width: 100%;
  font-size: 14px;
}

.card__date {
  color: #4e4949;
}

.card__news {
  margin-left: 15px;
  color: #737070;
}

.card__readmore {
  float: right;
  position: relative;
  color: #737070;
  font-size: 13px;
  -webkit-transition: color 0.3s;
  -o-transition: color 0.3s;
  transition: color 0.3s;
}

.card__readmore:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: #737070;
}

.card__readmore:hover {
  color: #a6a3a3;
}

.card__readmore:hover:after {
  background: #a6a3a3;
}

@media (max-width: 1025px) {
  .card {
    width: calc(100% / 2 - 20px);
    padding-bottom: calc(100% / 2 - 20px);
  }
  .card__content {
    width: 100%;
    height: 40%;
    padding-top: 20px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
  }
}

@media (max-width: 768px) {
  .card {
    width: calc(100% - 20px);
    padding-bottom: calc(100% + 20px);
  }
  .card__content {
    padding: 20px;
  }
  .card__title {
    font-size: 16px;
  }
  .card__date {
    font-weight: normal;
  }
}

@media (max-width: 541px) {
  .card {
    width: calc(100% - 20px);
    padding-bottom: calc(100% - 20px);
  }
  .card__content {
    padding: 15px 10px;
  }
  .card__subtitle {
    font-size: 13px;
  }
}
