.ec-cards-widget {
  margin: 2rem 0;
}

.ec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Card */
.ec-card {
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border-radius: 6px;
}

.ec-card__link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.ec-card__image-wrap {
  height: 220px; /* Fixed height */
  overflow: hidden; /* Hide scaled overflow */
  position: relative;
}

.ec-card__image {
  background-size: cover;
  background-position: center;
  height: 100%; /* Match wrapper height */
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1);
  transform-origin: center;
}

.ec-card:hover .ec-card__image {
  transform: scale(1.08); /* Grow inside fixed wrapper */
}

.ec-card__body {
  padding: 20px;
}

.ec-card__title {
  font-size: 1.125rem;
  margin: 0 0 10px;
}

.ec-card__excerpt {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 12px;
  color: #666;
}

.ec-card__year {
  font-weight: 600;
  font-size: 0.875rem;
}

/* Load More Button */
.ec-load-more-wrap {
  /* Elementor spacing control will apply margin-top here */
}

.ec-load-more-button {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  background-color: #333;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.ec-load-more-button:hover {
  background-color: #555;
}

/* show box css */

/* Responsive */
@media (max-width: 1024px) {
  .ec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ec-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}
