.digital-benefits-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  grid-gap: 20px;
}

.original-box {
  position: relative;
  width: 170px;
  height: 150px;
  color: #5a5b5c;
  overflow: hidden;
  box-shadow: 0px 3px 6px #00000029;
  border-radius: 4px;
}

.original-box-wrapper p {
  margin: 0;
}

.popup-box p {
  font-size: 24px;
}

.popup-box {
  position: absolute;
  top: 0;
  left: 0;
  color: #ffffff;
  transition: width 2s, height 2s, top 2s;
  opacity: 0;
  z-index: 1;
}

.original-box:hover .outer-title {
  animation: title-animation-hover 1.5s forwards;
}

@keyframes title-animation-hover {
  to {
    transform: translateY(-20px);
  }
}

.original-box:hover .popup-box {
  opacity: 1;
  animation: box-hover 0.5s forwards;
  overflow: hidden;
}

@keyframes box-hover {
  0% {
    border-radius: 150px;
    height: 75px;
    width: 75px;
    margin-left: 50px;
  }

  100% {
    width: 170px;
    height: 150px;
    border-radius: 4px;
    margin-left: 0;
  }
}

.original-box:hover {
  box-shadow: 6px 6px 4px #00000029;
}

.original-box:hover .popup-box {
  opacity: 1;
  border: 1px;
}

.original-box > img {
  transform: translate(50px, 50px);
  width: 75px;
  height: 75px;
}

.original-box > p {
  transform: translate(0, 55px);
  text-align: center;
}

.popup-box > p:nth-child(1) {
  font-size: var(--text-lg);
}

.popup-box > p:nth-child(2) {
  font-size: var(--text-xs);
  width: 75%;
}

.important-links-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 30px;
  align-items: center;
}

.important-links-container img {
  width: 150px;
}

.important-links-underline::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 5px;
  background-color: #cc745f;
  transition: width 0.25s ease-out;
}

.important-links-underline:hover::before {
  width: 100%;
}

@media screen and (max-width: 1240px) {
  .digital-benefits-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: end;
    grid-gap: 20px;
  }

  .important-links-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
    align-items: center;
  }
}

@media screen and (max-width: 800px) {
  .digital-benefits-wrapper {
    grid-template-columns: repeat(1, 1fr);
    justify-items: center;
  }

  .important-links-container {
    grid-template-columns: repeat(1, 1fr);
    justify-items: center;
  }

  #digital-denefits,
  #important-links {
    width: 100%;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .section-title {
    text-align: center !important;
  }
}
