/* ==========================================
   Updates widget — Noutăți și calendar
   Patched for:
   - first news card featured
   - following news cards compact
   - event cards without excerpt
========================================== */

.updates-widget {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.updates-widget__intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.updates-widget__kicker {
  margin: 0 0 10px;
  color: #6b778b;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.updates-widget__title {
  margin: 0;
  color: #1e205a;
  font-family: "Heebo", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.updates-widget__desc {
  margin-top: 14px;
  color: #58667a;
  font-size: 1rem;
  line-height: 1.75;
}

.updates-widget__desc p {
  margin: 0;
}

.updates-widget__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
}

.updates-widget__col {
  min-width: 0;
}

.updates-widget__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.updates-widget__section-title {
  margin: 0;
  color: #1e205a;
  font-family: "Heebo", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.updates-widget__more {
  color: #1f5489;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.updates-widget__more:hover,
.updates-widget__more:focus-visible {
  color: #163b63;
  text-decoration: underline;
}

.updates-widget__news-list,
.updates-widget__events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==========================================
   Shared cards
========================================== */

.updates-widget__news-card,
.updates-widget__event-card {
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.updates-widget__news-card:hover,
.updates-widget__event-card:hover,
.updates-widget__news-card:focus-within,
.updates-widget__event-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.12);
}

.updates-widget__news-link,
.updates-widget__event-link {
  text-decoration: none;
  color: inherit;
}

.updates-widget__news-link:hover,
.updates-widget__news-link:focus-visible,
.updates-widget__event-link:hover,
.updates-widget__event-link:focus-visible {
  color: inherit;
  text-decoration: none;
}

/* ==========================================
   News cards
========================================== */

.updates-widget__news-card--featured .updates-widget__news-link {
  display: flex;
  flex-direction: column;
}

.updates-widget__news-card--compact .updates-widget__news-link {
  display: block;
}

.updates-widget__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7.2;
  max-height: 280px;
  object-fit: cover;
  background: #dfe6ef;
}

.updates-widget__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f5489;
  font-size: 2rem;
  background: linear-gradient(180deg, #edf3f8 0%, #dfe8f1 100%);
}

.updates-widget__news-card--compact .updates-widget__thumb,
.updates-widget__news-card--compact .updates-widget__excerpt {
  display: none;
}

.updates-widget__news-card--featured .updates-widget__news-body {
  padding: 16px 18px 18px;
}

.updates-widget__news-card--compact .updates-widget__news-body {
  padding: 14px 16px 16px;
}

/* ==========================================
   Event cards
========================================== */

.updates-widget__event-link {
  display: flex;
  align-items: stretch;
}

.updates-widget__event-date {
  flex: 0 0 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 10px;
  background: linear-gradient(180deg, #0a2440 0%, #1f5489 100%);
  color: #fff;
}

.updates-widget__event-day {
  font-family: "Oswald-Regular", "Heebo", sans-serif;
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
}

.updates-widget__event-month {
  margin-top: 4px;
  color: #f4c515;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.updates-widget__event-body {
  padding: 14px 16px 16px;
}

.updates-widget__event-card .updates-widget__excerpt {
  display: none;
}

/* ==========================================
   Shared text
========================================== */

.updates-widget__meta {
  margin: 0 0 8px;
  color: #1f5489;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.updates-widget__card-title {
  margin: 0;
  color: #1e205a;
  font-family: "Heebo", sans-serif;
  font-size: clamp(1.02rem, 1.3vw, 1.24rem);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.updates-widget__excerpt {
  margin: 8px 0 0;
  color: #516176;
  font-size: 0.93rem;
  line-height: 1.58;
}

.updates-widget__empty {
  padding: 22px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: #58667a;
  line-height: 1.7;
}

.updates-widget__empty p {
  margin: 0;
}

@media (max-width: 991.98px) {
  .updates-widget__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .updates-widget__section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .updates-widget__thumb {
    max-height: none;
    aspect-ratio: 16 / 8.4;
  }

  .updates-widget__event-date {
    flex-basis: 72px;
  }

  .updates-widget__event-day {
    font-size: 1.7rem;
  }
}
