.card-section {
  padding-top: 40px;
}

.card-list {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.card-item {
  position: relative;
  flex: 1;
  aspect-ratio: 4 / 3;
  min-height: 280px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  cursor: pointer;
  border-radius: 0px;
  text-decoration: none; /* For <a> tag */
}

.card-item:hover {
  color: #fff;
  text-decoration: none;
}

.img-center {
  max-width: 640px;
  margin: 0 auto;
}

@media screen and (max-width: 768px) {
  .img-center {
    max-width: 100%;
  }
}

.card-item.bg-dark {
  background-color: #001239; /* Darkest blue from design */
}

.card-item.bg-blue {
  background-color: #005eb1; /* Vibrant blue from design */
}

.card-item .card-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.3s;
}

.card-item .icon {
  width: 60px;
  height: 60px;
  fill: #fff;
  margin: 0 auto;
}

.card-item .card-txt {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
}

.card-item .card-txt span {
  display: block;
  font-size: 28px;
}

/* Hover Overlay */
.card-hover {
  position: absolute;
  left: 0;
  bottom: -100%;
  width: 100%;
  height: 100%;
  background-color: #45c4c3; /* Cyan color from design */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  transition: bottom 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 2;
}

.card-item:hover .card-hover {
  bottom: 0;
}

.card-hover .hover-txt {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 25px;
  color: #fff;
}

.card-hover .btn-go {
  display: inline-block;
  padding: 10px 40px;
  border: 2px solid #fff;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s;
}

.card-hover .btn-go:hover {
  background-color: #fff;
  color: #45c4c3;
}

@media screen and (max-width: 1024px) {
  .card-list {
    gap: 15px;
  }
  .card-item .card-txt {
    font-size: 20px;
  }
}

@media screen and (max-width: 768px) {
  .card-list {
    flex-direction: column;
    gap: 20px;
  }
  .card-item {
    aspect-ratio: auto;
    min-height: 200px;
    padding: 30px 0;
  }
}

@media screen and (max-width: 400px) {
  .card-item {
    min-height: 180px;
  }
  .card-hover .hover-txt {
    font-size: 20px;
  }
  .card-hover .btn-go {
    font-size: 16px;
    padding: 8px 30px;
  }
}