.research-event-card-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* exactly 3 columns */
  gap: 20px; /* tighter spacing */
  justify-content: center;
  padding: 30px;
  width: 90%;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .research-event-card-container {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on tablets */
  }
}

@media (max-width: 640px) {
  .research-event-card-container {
    grid-template-columns: 1fr; /* stack on mobile */
  }
}

.research-event-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  justify-content: center;
}

.research-event-card {
  width: 100%; /* fills its grid cell */
  max-width: 320px; /* keeps visual consistency */
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.research-event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* rest stays the same */
.research-event-card-content {
  padding: 20px;
}

.research-event-card-title {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #222;
}

.research-event-card-text {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 15px;
  line-height: 1.5;
}

.research-event-card-date h4 {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.research-event-card-date {
  margin-bottom: 20px;
}

/* Button */
.research-event-card-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #004aad;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, color 0.3s ease;
}

.research-event-card-button:hover {
  background-color: #003680;
  color: #fff; /* stays white */
  transform: translateY(-2px);
}
