.rd-tabs {
  margin-bottom: 14px;
  margin-left: -20px;
}

.rd-tabs button {
  border: 1px solid #353535;
  background-color: transparent;
  color: #353535;
  width: 112px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  margin-left: 20px;
  cursor: pointer;
  transition: .3s all;
  border-radius: 8px;
}

.rd-tabs button.active,
.rd-tabs button:hover {
  background-color: #353535;
  color: #fff;
}

@media screen and (min-width: 768px) {
  .rd-tabs {
    margin-bottom: 38px;
  }
}

.rd-architecture-grid {
  margin-bottom: -20px;
}

.rd-architecture-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  color: #fff !important;
  display: flex;
  flex-wrap: wrap;
  margin-left: 20px;
  margin-bottom: 20px;
  aspect-ratio: 373 / 480;
  cursor: pointer;
}

.rd-architecture-card:after {
  content: '';
  display: block;
  width: 100%;
  height: 32.5%;
  position: absolute;
  z-index: -1;
  bottom: 0;
  left: 0;
  background: linear-gradient(360deg, #353535 0%, rgba(53, 53, 53, 0) 100%);
}

.card-info {
  padding: 20px;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.card-info h3 {
  margin-bottom: 10px;
  font-size: calc(20 / 16 * 100%);
  font-weight: bold;
}

.card-info p {
  margin-bottom: 20px;
}

.rd-architecture-card .rd-card-link {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.rd-architecture-card:hover {
  color: #fff;
}

.rd-architecture-card:hover img {
  transform: scale(1.1);
  transform-origin: center center;
}

.rd-architecture-card:hover svg {
  transform: rotate(45deg) translate(3px, 0);
}

.rd-architecture-card svg {
  width: 11px;
  transform: translateY(1px);
  transition: .3s all;
}

.rd-architecture-card span {
  line-height: 1;
}

.card-img {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
}

.card-img img {
  max-width: none;
  transition: .3s all;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media screen and (min-width: 601px) {
  .rd-architecture-grid {
    display: flex;
    flex-wrap: wrap;
    width: calc(100% + 40px);
    margin-left: -40px;
  }

  .rd-architecture-card {
    width: calc((100% - 80px) / 2);
    margin-left: 40px;
  }
}

@media screen and (min-width: 768px) {
  .rd-architecture-grid {
    margin-bottom: -40px;
    width: calc(100% + 80px);
  }

  .rd-architecture-card {
    display: inline-flex;
    align-items: flex-end;
    margin-bottom: 40px;
    max-width: 373px;
    width: calc((100% - 80px - 40px * 2) / 3.001);
  }

  .card-info h3 {
    font-size: calc(24 / 16 * 100%);
  }
}