.custom-card {
  width: 349px;
  height: 267px;
  cursor: pointer;
  background-color: #8a0202;
  color: white;
  border: 2px solid #8a0202;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 4px 0px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.custom-card:hover {
  transform: scale(1.05);
}

.custom-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.custom-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/Bjs/card/bjs2.png") no-repeat center/cover;
  background-size: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.custom-card:hover::before {
  opacity: 1;
}

.custom-card:hover::after {
  opacity: 1;
}

.custom-card .card-body {
  position: relative;
  z-index: 3;
  padding: 20px;
}

.custom-icon {
  font-size: 30px;
  margin-bottom: 10px;
}

.apply-btn {
  background-color: white;
  color: #8a0202;
  border: 2px solid white;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
  margin-top: 15px;
}

.custom-card p {
  text-align: center;
  margin-top: 5px;
  color: white;
}

.apply-btn {
  color: rgb(0, 0, 0) !important;
  border: 1px solid white !important;
}

@keyframes backgroundFade {
  0% {
    background-color: #8a0202;
  }

  100% {
    background-color: black;
  }
}

.custom-card:hover .card-body {
  z-index: 4;
}
