.latest-happenings {
  border-bottom: 1px solid var(--sjm-color-line-strong);
  background: var(--sjm-color-surface-subtle);
  padding: 5.5rem var(--sjm-page-gutter) 6rem;
}

.latest-happenings__title {
  margin-bottom: 0.5rem;
  color: var(--sjm-color-text);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.latest-happenings__tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0 2.75rem;
}

.latest-happenings__tab {
  min-height: 2.5rem;
  border: 1px solid #ccc;
  border-radius: 0;
  background: var(--sjm-color-surface);
  color: #444;
  padding: 0.5rem 1.125rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.latest-happenings__tab.is-active {
  border-color: var(--sjm-color-brand);
  background: var(--sjm-color-brand);
  color: var(--sjm-color-surface);
}

.latest-happenings__content {
  max-width: 68.75rem;
  margin-inline: auto;
}

.latest-happenings__rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 3rem;
}

.happening-card {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.happening-card[hidden] {
  display: none;
}

.happening-card__image {
  display: block;
  width: 7.15rem;
  height: 7.15rem;
  overflow: hidden;
  border: 1px solid #e0e0dd;
  background: #e9e9e6;
}

.happening-card__image div,
.happening-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.happening-card__content {
  display: grid;
  align-content: start;
  gap: 0;
}

.happening-card__category,
.happening-card__category a {
  color: #888;
  margin-bottom: 0.5rem;
  font-size: 0.65625rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-decoration: none;
  text-transform: uppercase;
}

.happening-card__title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
}

.happening-card__title a {
  text-decoration: none;
}

.happening-card__title a:hover {
  color: var(--sjm-color-brand);
  text-decoration: underline;
}

.happening-card__date {
  color: var(--sjm-color-brand);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

.latest-happenings__action {
  margin-top: 3.25rem;
  text-align: center;
}

.latest-happenings__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3.375rem;
  border: 1px solid var(--sjm-color-text);
  background: var(--sjm-color-text);
  color: var(--sjm-color-surface);
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.latest-happenings__cta:hover {
  background: var(--sjm-color-surface);
  color: var(--sjm-color-text);
}

@media (max-width: 47.9375rem) {
  .latest-happenings {
    padding: clamp(3.25rem, 16.2963vw, 5.5rem) var(--sjm-mobile-home-gutter)
      clamp(3.5556rem, 17.7778vw, 6rem);
  }

  .latest-happenings__title {
    margin-bottom: clamp(0.3rem, 1.4815vw, 0.5rem);
  }

  .latest-happenings__tabs {
    gap: clamp(0.3rem, 1.4815vw, 0.5rem);
    margin: clamp(0.9rem, 4.4444vw, 1.5rem) 0 clamp(1.65rem, 8.1481vw, 2.75rem);
  }

  .latest-happenings__tab {
    min-height: clamp(1.5rem, 7.4074vw, 2.5rem);
    padding: clamp(0.3375rem, 1.6667vw, 0.5625rem)
      clamp(0.675rem, 3.3333vw, 1.125rem);
    font-size: clamp(0.675rem, 3.3333vw, 1.125rem);
  }

  .latest-happenings__rows {
    grid-template-columns: 1fr;
    gap: clamp(1.05rem, 5.1852vw, 1.75rem);
  }

  .happening-card {
    grid-template-columns: clamp(4.5rem, 22.2222vw, 7.5rem) minmax(0, 1fr);
    gap: clamp(0.825rem, 4.0741vw, 1.375rem);
  }

  .happening-card__image {
    width: clamp(4.5rem, 22.2222vw, 7.5rem);
    height: clamp(4.5rem, 22.2222vw, 7.5rem);
  }

  .happening-card__category {
    margin-bottom: clamp(0.3rem, 1.4815vw, 0.5rem);
    font-size: clamp(0.525rem, 2.5926vw, 0.875rem);
    letter-spacing: 0.12em;
  }

  .site-content .latest-happenings .happening-card__category {
    font-size: var(--sjm-mobile-label) !important;
  }

  .happening-card__title {
    margin-bottom: clamp(0.45rem, 2.2222vw, 0.75rem);
    font-size: var(--sjm-mobile-label) !important;
    line-height: 1.4 !important;
  }

  .site-content .latest-happenings .happening-card__title {
    font-size: var(--sjm-mobile-label) !important;
    line-height: 1.4 !important;
  }

  .happening-card__date {
    font-size: var(--sjm-mobile-label);
  }

  .site-content .latest-happenings .happening-card__date {
    font-size: var(--sjm-mobile-label) !important;
  }

  .latest-happenings__action {
    margin-top: clamp(1.95rem, 9.6296vw, 3.25rem);
  }

  .latest-happenings__cta {
    min-height: var(--sjm-mobile-action-height);
    gap: clamp(0.375rem, 1.8519vw, 0.625rem);
    padding: clamp(0.75rem, 2.963vw, 1rem) clamp(1.5rem, 7.4074vw, 2.5rem);
    font-size: var(--sjm-mobile-label);
  }
}
