.box-home{
    background: linear-gradient(135deg, #d41616 65%, #1f2251 35%);
    transition: all 3s ease;
}
.box-home h4 a{
    color: #fff !important;
}

.box-home:hover h4 a{
    color: #fff600 !important;
}
.card-item {
  /* background: #fff; */
  /* background: linear-gradient(145deg,#fff600, rgba(255, 38, 0, 0.973)); */
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.card-item:hover {
  /* transform: translateY(-8px) scale(1.02); */
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.card-item .img {
  position: relative;
  overflow: hidden;
}

.card-item .img img {
  width: 100%;
  object-fit: cover;
  transition: transform 3s ease;
}

.card-item:hover .img img {
  transform: scale(1.08);
}

.card-item .img::after {
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(135deg, rgba(212,22,22,0.4), rgba(31,34,81,0.4)); */
  opacity: 0;
  transition: all 3s ease;
}

.card-item:hover .img::after {
  opacity: 1;
}
.card-item h4 {
  /* background-color: #fff600; */
  transition: all 3s ease;
}
.card-item h4 a {
  font-weight: 600;
  color: #1F2251;
  padding: 12px;
  display: block;
  text-decoration: none;
  transition: all 3s ease;
}

.card-item:hover h4 a {
  color: #fff600 !important;
  /* background-color: #fff600; */
}
.card-item:hover {
  color: #D41616;
  background-color: #fff600;
}


/* CSS Demo: Hiệu ứng “sao sáng từ giữa ra” */
.starshine {
  position: relative;
  font-weight: 700;
  color: #1F2251;
  overflow: hidden;
}

.starshine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  height: 100%;
  width: 55%;
  /* dải ánh sáng có tâm sáng ở giữa */
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.25) 40%,
    rgba(255,255,255,.85) 50%,
    rgba(255,255,255,.25) 60%,
    rgba(255,255,255,0) 100%
  );
  border-radius: 30%;
  transform: skewX(-45deg);
  pointer-events: none;
  mix-blend-mode: screen; /* giúp lớp sáng trông tự nhiên trên màu chữ */
  animation: shine-sweep 5s linear infinite;
}

@keyframes shine-sweep {
  to { left: 150%; }
  form{right: 200%;}
}
@keyframes starPulse {
  0% {
    width: 0;
    height: 0;
    opacity: 0.8;
  }
  50% {
    width: 300%;
    height: 300%;
    opacity: 0;
  }
  100% {
    width: 0;
    height: 0;
    opacity: 0;
  }
}


/* .card-box */
.card-box h3,
.card-box p {
  font-family: "SVN-Gotham-Bold";
}

 .card-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  flex: 1 1 150px;
  margin: 10px;
  padding: 20px;
  text-align: center;
  background: linear-gradient(120deg, rgba(238, 3, 3, 0.9) 0%, rgba(230, 226, 3, 0.6) 50%, rgba(1, 30, 110, 0.966) 100%);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

/* Nền ánh sáng quét */
.card-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  /* background: linear-gradient(120deg, rgba(238, 3, 3, 0.2) 0%, rgba(230, 226, 3, 0.6) 50%, rgba(1, 30, 110, 0.966) 100%); */
  background: linear-gradient(
    120deg,
    rgba(238, 3, 3, 0.2) 0%,
    rgba(230, 226, 3, 0.6) 50%,
    rgba(1, 30, 110, 0.966) 100%
  );
  transform: skewX(-25deg);
  animation: shineMove 3s infinite;
  z-index: 1;
}

/* Border chạy quanh 4 cạnh */
.card-box span {
  position: absolute;
  display: block;
  z-index: 10; /* nằm trên nền nhưng dưới text */
}

.card-box span:nth-child(1) {
  top: 0;
  left: -100%;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, transparent, hsl(66, 98%, 48%), transparent);
  animation: borderTop 2s linear infinite;
  animation-delay: 2s;
}
.card-box span:nth-child(2) {
  right: 0;
  top: -100%;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, transparent, #00ffea, transparent);
  animation: borderRight 2s linear infinite;
  animation-delay: 0.5s;
}
.card-box span:nth-child(3) {
  bottom: 0;
  right: -100%;
  width: 100%;
  height: 5px;
  background: linear-gradient(270deg, transparent, #ff00ff, transparent);
  animation: borderBottom 2s linear infinite;
  animation-delay: 1s;
}
.card-box span:nth-child(4) {
  left: 0;
  bottom: -100%;
  width: 5px;
  height: 100%;
  background: linear-gradient(0deg, transparent, #027702, transparent);
  animation: borderLeft 2s linear infinite;
  animation-delay: 1.5s;
}

/* Keyframes ánh sáng quét nền */
@keyframes shineMove {
  100% {
    left: 125%;
  }
}

/* Keyframes border chạy */
@keyframes borderTop {
  0% { left: -100%; }
  50%,100% { left: 100%; }
}
@keyframes borderRight {
  0% { top: -100%; }
  50%,100% { top: 100%; }
}
@keyframes borderBottom {
  0% { right: -100%; }
  50%,100% { right: 100%; }
}
@keyframes borderLeft {
  0% { bottom: -100%; }
  50%,100% { bottom: 100%; }
}

.card-box h3 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #D41616;
  margin-bottom: 5px;
  position: relative;
  z-index: 3; /* text luôn trên cùng */
}

.card-box p {
  font-size: 1.25rem;
  color: #1F2251;
  margin: 0;
  position: relative;
  z-index: 3;
}
