<style>
.custom-panels-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  max-width: 1080px;
  margin: 0 auto;
}

.custom-panel-link {
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  width: 320px;
  display: block;
}

.custom-panel {
  position: relative;
  height: 402px;
  border-radius: 20px;
  overflow: hidden;
  color: white;
  background: #fff;
}

.panel-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.panel-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.panel-gradient {
  transition: fill 0.4s ease;
}

.content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}

h3, p {
  margin: 0 0 10px;
  color: white;
  transition: color 0.4s ease;
}
h3 {
  font-size: 22px;
  font-weight: 700;
}
p {
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 20px;
}

.explore-wrapper {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
  color: white;
  height: 24px;
  position: relative;
}

.explore-arrow {
  transform: translateX(0);
  transition: transform 0.3s ease, color 0.3s ease;
  position: absolute;
  left: 0;
  color: white;
}

.explore-text {
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  padding-left: 2px;
  color: inherit;
}

.custom-panel-link:hover h3,
.custom-panel-link:hover p,
.custom-panel-link:hover .explore-wrapper,
.custom-panel-link:hover .explore-text,
.custom-panel-link:hover .explore-arrow {
  color: #2c2c2c;
}

.custom-panel-link:hover .explore-text {
  opacity: 1;
  transform: translateX(0);
}

.custom-panel-link:hover .explore-arrow {
  transform: translateX(68px);
}

.custom-panel-link:hover .panel-gradient {
  fill: white;
}

.scale-down {
  object-fit: contain !important;
  padding: 0px;
  transform: scale(1px);
}

@media (max-width: 1024px) {
  .custom-panels-wrapper {
    flex-direction: column;
    align-items: center;
  }
}
</style>