.hew-section {
  display: flex;
  gap: 24px;
}

/* Default */
.hew-box {
  flex: 1 1 33.33%;
  transition: all 0.4s ease;
  overflow: hidden;
  border-radius: 16px;
}

/* Shrink others */
.hew-section:hover .hew-box {
  flex: 1 1 25%;
}

/* Active */
.hew-section .hew-box:hover {
  flex: 1 1 50%;
}

/* Inner */
.hew-inner {
  position: relative;
  height: 500px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
}

/* Overlay */
.hew-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 45, 111, 0.4);
  transition: 0.3s;
  border-radius: 10px;
}

.hew-box:hover .hew-inner::before {
  background: rgba(10, 45, 111, 0.6);
}

/* Title */
.hew-inner .hew-arrow {
  position: absolute;
  top: 30px;
  right: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: solid 1px #FFFFFF;
  margin-left: auto;
}

.hew-inner .hew-arrow svg {
  display: block;
  width: 20px;
  height: auto;
  fill: #fff;
  transition: all 0.5s;
}

.hew-inner .hew-conent {
  display: block;
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
}

.hew-inner .hew-conent h3 {
  display: block;
  font-family: 'DM Sans';
  font-weight: 600;
  font-size: 28px;
  line-height: 34px;
  color: #FFFFFF;
  margin: 0px 0 10px;
}

/* Hidden content */
.hew-inner .hew-conent .hew-text {
  position: absolute;
  opacity: 0;
  z-index: 2;
  transition: 0.4s;
  font-family: 'Inter';
  font-weight: 400;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: 0.3px;
  color: #FFFFFF;
}

.hew-inner .hew-conent .hew-text a {
  text-decoration: underline;
  color: #fff;
}

/* Show */
.hew-box:hover .hew-inner .hew-arrow {
  background: #fff;
}

.hew-box:hover .hew-inner .hew-arrow svg {
  fill: #1F1F61;
  transform: rotate(45deg);
}

.hew-box:hover .hew-inner .hew-conent .hew-text {
  position: relative;
  opacity: 1;
}

/* Mobile */
@media (max-width: 768px) {
  .hew-section {
      flex-direction: column;
  }

  .hew-box {
      flex: 1 1 100% !important;
  }
}