/* ============================================================
   News & Events page — matches the Publications / Projects design.
   Green reserved for primary actions only.
     navy   #1b3b5a (headings)
     muted  #5a6b73 (body)
     card   #e6ebe9 border, 14px radius
   Font inherited from the site body font.
   ============================================================ */

/* ---- Hero banner (clean light, dark professional text) ---- */
.events-hero {
  background: #ffffff;
  padding: 40px 24px 26px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid #e8ece9;
}
.events-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}
.events-hero-title {
  color: #1b2733;
  font-size: 30px;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.2px;
}
.events-hero-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 14px auto 0;
  background: #0bb89c;
  border-radius: 2px;
}
.events-hero-subtitle {
  color: #5a6b73;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  margin: 16px auto 0;
  max-width: 680px;
}

/* ---- Main container (full-bleed like the other pages) ---- */
.events-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px 40px 56px 40px;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .events-main {
    padding: 22px 16px 40px 16px;
  }
}

/* ---- Grid ---- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  width: 100%;
}
@media (min-width: 1700px) {
  .events-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 1100px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .events-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ---- Event card (cover on top, body below, link pinned to bottom) ---- */
.event-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e6ebe9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16,24,40,0.04), 0 6px 18px rgba(16,24,40,0.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(16,24,40,0.08), 0 16px 36px rgba(16,24,40,0.10);
  border-color: #d7dedb;
}
/* accent strip appears only on hover */
.event-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #0bb89c;
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 2;
}
.event-card:hover::after {
  opacity: 1;
}

/* Image */
.event-card-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.event-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.event-card:hover .event-card-img {
  transform: scale(1.05);
}

/* Body */
.event-card-body {
  padding: 22px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.event-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1b3b5a;
  line-height: 1.4;
  margin: 0 0 10px 0;
  letter-spacing: 0.2px;
}
.event-card-date {
  font-size: 12px;
  color: #5a6b73;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0 0 10px 0;
}
.event-card-text {
  font-size: 13.5px;
  color: #44565f;
  line-height: 1.6;
  text-align: justify;
  flex-grow: 1;
  margin: 0 0 18px 0;
}
.event-card-link {
  align-self: flex-start;
  margin-top: auto;
  color: #0b7d6e;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  transition: color .2s ease;
}
.event-card-link:hover {
  color: #1b3b5a;
  text-decoration: underline;
}

/* --- End News & Events Page Styles --- */
