/* Existing CSS */
.navbar-news {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.navbar-news .image-content{
  padding: 0;
}

.card {
  background-color: white;
  overflow: hidden;
  /* width: 250px; */
  text-align: justify;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  /* height: 500px; */
}

.card-content h2{
  font-weight: bold;
}

.card-content a{
  background-color: #0056b3;
  color: white;
}

.card-content a:hover{
  background-color: white;
  color: #0056b3;
}

.card img {
  width: 100%;
  height: auto;
}

.card-header {
  font-size: 1em;
  margin: 10px 0;
}

.card-desc {
  font-size: 0.9em;
  color: #666;
  padding: 0 15px;
  margin-bottom: 20px;
  height: 80px;
  overflow: hidden;
}

.card-button {
  background-color: #007bff;
  color: white;
  border: none;
  width: 120px;
  height: 12px;
  padding: 20px;
  margin: 0 auto 20px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-size: 0.8em;
  line-height: 0;
  text-align: center;
}

.card-button:hover {
  background-color: #0056b3;
  color: white;
}

/* New CSS for hover animation */
.card::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: #FBE9FF; */
  transition: top 0.5s;
  z-index: -1;
}

.card:hover::before {
  top: 0;
}

.card-content, .card img, .card-header, .card-desc, .card-button {
  position: relative;
  z-index: 1;
}

.card-content .description{
  height: 50px;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-content{
  /* height: 450px; */
}