
.title-border {
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
}
.title-border::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #05a742, #fff600, #05a742);
  background-size: 200% 100%;
  border-radius: 2px;
  animation: moveGradient 3s infinite linear;
}

@keyframes moveGradient {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

.item h4{
  font-size: clamp(1.25rem, 3vw, 1.75rem); /* nhỏ nhất 1rem, lớn nhất 1.5rem */
}

.news-card {
/* background: #fff; */
position: relative;
border-radius: .5rem;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
display: flex;
flex-direction: column;
justify-content: space-between;
transition: all 3s ease;
}

.news-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  /* background-color: #fff600; */
  background-color: rgba(5, 167, 66, 0.85);
  transition: all 3s ease;
  cursor: pointer;
}
.news-card:hover .news-content a{
 color: #fff600 !important;
 font-weight: 550;
}
.news-card .img img {
object-fit: cover;
transition: all 0.3s ease;
}

.news-content {
padding: 8px 12px;
}

.news-title {
text-decoration: none;
display: -webkit-box;
-webkit-line-clamp: 3;   
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
transition: color 0.3s;
line-height: 1.35 !important;
font-size: 1.25rem !important;
/* color: #fff600 !important; */
color: #fff !important;
font-weight: 550;
}

a.news-title:hover {
color: #D41616 !important;
}

.news-meta {
font-size: 1rem;
color: #f3ecec;
border-top: 1px solid #eee;
padding: 10px 16px;
display: flex;
justify-content: space-between;
align-items: center;
}

.news-meta a {
font-weight: 500;
text-decoration: none;
}

.news-meta a:hover {
color: #D41616;
}
.news-meta a.btn-link:hover {
  color: #fff600 !important;
}
.bg-gradient {
  transition: all 0.5s ease; /* mượt khi đổi màu */
}

.bg-gradient:hover {
  background: linear-gradient(to right, #D41616, #1F2251);
}
.arrow-circle i{
  margin-top: 2px;
}

.news-card .img{
  position: relative;
  cursor: pointer !important;
}
.news-card .img::after {content: "XEM THÊM";position: absolute;top: 50%;left: 50%;transform: translate(-50%, 60%);background-color: rgba(0, 0, 0, 0.55);color: #fff600;font-weight: 700;text-transform: uppercase;font-size: 1rem;padding: 10px 28px;border-radius: 30px;opacity: 0;transition: all 0.4s ease;pointer-events: none; /* 👈 Cho phép click xuyên qua overlay */cursor: pointer;}

.news-card:hover .img::after {
opacity: 1;
transform: translate(-50%, -50%);
}
.news-card:hover .img a:after {
  opacity: 1;
  transform: translateX(0)
}
.news-meta a {
  font-weight: 700;
}

.news-card::before {
content: "";
position: absolute;
inset: 0;
border-radius: 12px;
padding: 2px;
background: linear-gradient(45deg, #05a742, #fff600, #05a742);
-webkit-mask:
  linear-gradient(#fff 0 0) content-box,
  linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
        mask-composite: exclude;
opacity: 0;
transition: opacity 0.4s ease;
}

.news-card:hover::before {
opacity: 1;
animation: glowBorder 3s linear infinite;
}

/* Animation ánh sáng chuyển động quanh viền */
@keyframes glowBorder {
0% {
  background-position: 0% 50%;
}
50% {
  background-position: 100% 50%;
}
100% {
  background-position: 200% 50%;
}
}