.home-events {
  position: relative;
  overflow: hidden;
  padding: 76px 6vw;
  background: linear-gradient(145deg, #0d1248, #322185 65%, #81135e);
  color: #fff;
  font-family: Kanit, sans-serif;
}

.home-events,
.home-events * {
  box-sizing: border-box;
}

.home-events-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.home-events-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.home-events-eyebrow {
  color: #f7afd4;
  font: 800 11px/1 Kanit, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.home-events h2 {
  margin: 10px 0;
  color: #fff;
  font: 800 clamp(30px, 5vw, 54px)/1.08 Kanit, sans-serif;
}

.home-events-head p {
  max-width: 650px;
  margin: 0;
  color: #d9d9f2;
  font-size: 16px;
  line-height: 1.65;
}

.home-events-all {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid #8886bd;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.home-events-all:hover,
.home-events-all:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, .12);
  transform: translateY(-2px);
}

.home-events-group + .home-events-group {
  margin-top: 42px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.home-events-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.home-events-group-head h3 {
  margin: 0;
  color: #fff;
  font: 800 24px/1.25 Kanit, sans-serif;
}

.home-events-group-head span {
  flex: none;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #dddff5;
  font-size: 11px;
}

.home-events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.home-event-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(0, 0, 0, .24);
  color: #171943;
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}

.home-event-card:hover,
.home-event-card:focus-visible {
  box-shadow: 0 22px 54px rgba(0, 0, 0, .3);
  transform: translateY(-5px);
}

.home-event-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ececf6;
}

.home-event-card.is-past img {
  filter: saturate(.82);
}

.home-event-status {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  background: rgba(13, 18, 72, .92);
  box-shadow: 0 5px 16px rgba(13, 18, 72, .25);
  color: #fff;
  font: 800 10px/1 Kanit, sans-serif;
}

.home-event-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.home-event-date {
  color: #b51c70;
  font: 800 11px/1.35 Kanit, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.home-event-card h3 {
  margin: 9px 0 16px;
  color: #171943;
  font: 800 20px/1.32 Kanit, sans-serif;
  overflow-wrap: anywhere;
}

.home-event-card small {
  display: block;
  margin-top: auto;
  color: #696b82;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.homepage-event-nav {
  position: relative;
}

.homepage-event-nav::after {
  position: absolute;
  top: -8px;
  right: -16px;
  padding: 3px 5px;
  border-radius: 9px;
  background: #e2267b;
  color: #fff;
  content: "LIVE";
  font: 800 7px/1 Arial, sans-serif;
}

.home-events + #mission {
  position: relative;
  z-index: 1;
  margin-top: 0 !important;
  padding-top: 72px !important;
  background: #fff;
}

.home-events + #mission .mission-title {
  margin: 0 20px 12px !important;
  line-height: 1.35;
}

.home-events + #mission .mission-desc {
  box-sizing: border-box;
  max-width: 1000px;
  margin: 0 auto 36px !important;
  padding: 0 24px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

@media (max-width: 900px) {
  .home-events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-events {
    padding: 54px 18px;
  }

  .home-events-head,
  .home-events-group-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-events-head {
    gap: 20px;
  }

  .home-events-group-head {
    gap: 9px;
  }

  .home-events-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-event-card {
    min-height: 0;
  }

  .home-events + #mission {
    padding: 52px 16px 60px !important;
  }

  .home-events + #mission .mission-title {
    margin: 0 0 12px !important;
  }

  .home-events + #mission .mission-desc {
    max-width: 680px;
    padding: 0 8px;
    font-size: 16px !important;
    line-height: 1.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-event-card,
  .home-events-all {
    transition: none;
  }
}
