/* ======================
   Publications Cards
====================== */
.pub-card {
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease-in-out;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* hover effect */
.pub-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  border-color: #18552c;
}

/* publication card image */
.pub-img {
  height: 200px;          /* uniform height */
  object-fit: cover;      /* keeps aspect ratio and crops overflow */
  object-position: center;
  border-bottom: 1px solid #e9ecef;
}

/* title */
.pub-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #18552c;
  margin-bottom: .5rem;
  line-height: 1.4;
  min-height: 2.5rem; /* keep equal height for cards */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* description */
.pub-desc {
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* closing date */
.pub-card .text-muted {
  font-size: 0.85rem;
  font-style: italic;
}

/* buttons */
.pub-card .btn {
  font-weight: 600;
  border-radius: .5rem;
  transition: all 0.25s ease;
  text-align: center;
}

/* view btn */
.pub-card .btn-outline-success {
  color: #ffffff;
  margin-top: 30px;
  text-align: center;
}
.pub-card .btn-outline-success:hover {
  background: #F68634;
  color: #fff;
}

/* download btn */
.pub-card .btn-primary {
  background: #1197da;
  border-color: #1197da;
  margin-top: 30px;
  text-align: center;
}
.pub-card .btn-primary:hover {
  background: #0d80bd;
  border-color: #0d80bd;
  text-align: center;

}

/* grid: 3 per row on large screens */
@media (min-width: 992px) {
  .services-area .col-lg-3 {
    flex: 0 0 auto;
    width: 33.3333%;
  }
}
