.hpd-event-archive,
.hpd-event-archive * {
  box-sizing: border-box;
}

.hpd-event-archive {
  --hpd-green: #388e3c;
  --hpd-green-dark: #236b2a;
  --hpd-green-pale: #e7f2e8;
  --hpd-orange: #d97706;
  --hpd-orange-pale: #fff1dc;
  --hpd-text: #252525;
  --hpd-muted: #707070;
  --hpd-border: #e1e7e1;
  width: 100%;
  color: var(--hpd-text);
}

.hpd-event-section + .hpd-event-section {
  margin-top: 64px;
}

.hpd-event-intro {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 52px);
  margin-bottom: 38px;
  border: 1px solid #d7e6d8;
  border-radius: 16px;
  background: linear-gradient(135deg, #f7fbf7 0%, #e8f3e9 100%);
  text-align: left;
}

.hpd-event-intro::after {
  position: absolute;
  top: -70px;
  right: -65px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(56, 142, 60, 0.08);
  content: "";
}

.hpd-event-intro__eyebrow,
.hpd-event-area-nav__heading > span,
.hpd-event-area-heading > span {
  color: var(--hpd-green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hpd-event-intro h2,
.hpd-event-area-nav__heading h2,
.hpd-event-area-heading h2 {
  padding: 0;
  border: 0;
  color: var(--hpd-green-dark);
  background: transparent;
  line-height: 1.5;
}

.hpd-event-intro h2 {
  position: relative;
  z-index: 1;
  margin: 5px 0 18px;
  font-size: clamp(23px, 3.5vw, 34px);
}

.hpd-event-intro p {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0;
  color: #4f5b50;
  font-size: 14px;
  line-height: 2;
}

.hpd-event-intro p + p {
  margin-top: 9px;
}

.hpd-event-area-nav {
  margin-bottom: 48px;
}

.hpd-event-area-nav__heading {
  margin-bottom: 17px;
  text-align: left;
}

.hpd-event-area-nav__heading h2 {
  margin: 3px 0 0;
  font-size: clamp(20px, 3vw, 27px);
}

.hpd-event-area-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hpd-event-area-tile {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  min-height: 96px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #cddfce;
  border-radius: 12px;
  color: var(--hpd-green-dark);
  background: #fff;
  text-align: left;
  text-decoration: none;
  transition: color 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.hpd-event-area-tile:hover,
.hpd-event-area-tile:focus-visible {
  border-color: var(--hpd-green);
  color: var(--hpd-green-dark);
  background: #f2f8f2;
  box-shadow: 0 8px 20px rgba(35, 107, 42, 0.11);
  transform: translateY(-2px);
}

.hpd-event-area-tile.is-active {
  border-color: var(--hpd-green);
  color: #fff;
  background: var(--hpd-green);
}

.hpd-event-area-tile__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  padding: 0 8px;
  border-radius: 20px;
  color: var(--hpd-green-dark);
  background: var(--hpd-green-pale);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hpd-event-area-tile.is-active .hpd-event-area-tile__number {
  color: var(--hpd-green-dark);
  background: #fff;
}

.hpd-event-area-tile strong {
  font-size: 14px;
  line-height: 1.55;
}

.hpd-event-area-tile__arrow {
  font-size: 18px;
  transition: transform 0.22s ease;
}

.hpd-event-area-tile:hover .hpd-event-area-tile__arrow,
.hpd-event-area-tile:focus-visible .hpd-event-area-tile__arrow {
  transform: translateX(3px);
}

.hpd-event-area-heading {
  padding: 0 0 16px;
  margin: 0 0 30px;
  border-bottom: 2px solid var(--hpd-green);
  text-align: left;
}

.hpd-event-area-heading h2 {
  margin: 3px 0 5px;
  font-size: clamp(23px, 3.5vw, 31px);
}

.hpd-event-area-heading p {
  margin: 0;
  color: var(--hpd-muted);
  font-size: 13px;
}

.hpd-event-archive [hidden] {
  display: none !important;
}

.hpd-event-section__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 13px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--hpd-green);
}

.hpd-event-section__heading h2 {
  padding: 0;
  margin: 3px 0 0;
  border: 0;
  color: var(--hpd-green-dark);
  background: transparent;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.4;
}

.hpd-event-section__eyebrow {
  color: var(--hpd-green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.hpd-event-section__count {
  flex: 0 0 auto;
  color: var(--hpd-muted);
  font-size: 13px;
}

.hpd-event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hpd-event-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--hpd-border);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.hpd-event-card:hover {
  border-color: rgba(56, 142, 60, 0.55);
  box-shadow: 0 9px 24px rgba(35, 107, 42, 0.1);
  transform: translateY(-3px);
}

.hpd-event-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.hpd-event-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-position: center;
  background-size: cover;
}

.hpd-event-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 19px;
}

.hpd-event-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: 30px;
  color: var(--hpd-green-dark);
  background: var(--hpd-green-pale);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.hpd-event-status--ongoing {
  color: #fff;
  background: var(--hpd-orange);
}

.hpd-event-status--past,
.hpd-event-status--undated {
  color: #666;
  background: #ececec;
}

.hpd-event-card__date {
  margin: 13px 0 7px;
  color: var(--hpd-green-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.hpd-event-card__areas {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.hpd-event-card__areas span {
  padding: 3px 8px;
  border-radius: 4px;
  color: #73511f;
  background: var(--hpd-orange-pale);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.hpd-event-card__title {
  margin: 0 0 10px;
  color: var(--hpd-text);
  font-size: 18px;
  line-height: 1.6;
}

.hpd-event-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 18px;
  color: var(--hpd-muted);
  font-size: 13px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hpd-event-card__more {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding-top: 11px;
  margin-top: auto;
  border-top: 1px solid var(--hpd-border);
  color: var(--hpd-green-dark);
  font-size: 13px;
  font-weight: 700;
}

.hpd-event-section--past .hpd-event-card {
  background: #fbfbfb;
}

.hpd-event-empty {
  padding: 26px 20px;
  border-radius: 10px;
  color: var(--hpd-muted);
  background: #f6f8f6;
  text-align: center;
}

.hpd-event-notice {
  padding: 20px 22px;
  margin: 0 0 30px;
  border: 1px solid #cfe3d0;
  border-left: 5px solid #388e3c;
  border-radius: 8px;
  background: #f1f8f2;
  text-align: left;
}

.hpd-event-notice--past {
  border-color: #ddd;
  border-left-color: #888;
  background: #f6f6f6;
}

.hpd-event-notice--ongoing {
  border-color: #efd2a9;
  border-left-color: #d97706;
  background: #fff8ed;
}

.hpd-event-notice__date {
  margin: 12px 0 6px;
  color: #236b2a;
  font-weight: 700;
}

.hpd-event-notice > p:last-child {
  margin-bottom: 0;
}

.hpd-event-report {
  padding: 24px;
  margin-top: 42px;
  border-radius: 10px;
  background: #f5faf5;
  text-align: left;
}

.hpd-event-report h2 {
  margin-top: 0;
}

.hpd-event-gallery {
  --hpd-green: #388e3c;
  margin-top: 42px;
  text-align: left;
}

.hpd-event-gallery > h2 {
  margin-bottom: 18px;
}

.hpd-event-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #eef3ee;
}

.hpd-event-slider__viewport {
  overflow: hidden;
}

.hpd-event-slider__track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.hpd-event-slider__slide {
  display: flex;
  flex: 0 0 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
}

.hpd-event-slider__slide a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hpd-event-slider__slide img {
  display: block;
  width: 100%;
  max-height: 650px;
  object-fit: contain;
}

.hpd-event-slider__slide figcaption {
  width: 100%;
  padding: 10px 15px;
  color: #555;
  background: #fff;
  font-size: 12px;
  text-align: center;
}

.hpd-event-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(35, 107, 42, 0.84);
  font: inherit;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hpd-event-slider__arrow--previous {
  left: 14px;
}

.hpd-event-slider__arrow--next {
  right: 14px;
}

.hpd-event-slider__dots {
  position: absolute;
  right: 0;
  bottom: 15px;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.hpd-event-slider__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  pointer-events: auto;
}

.hpd-event-slider__dots button.is-active {
  background: var(--hpd-green);
}

.hpd-event-slider.is-single .hpd-event-slider__arrow,
.hpd-event-slider.is-single .hpd-event-slider__dots {
  display: none;
}

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

@media (max-width: 600px) {
  .hpd-event-section + .hpd-event-section {
    margin-top: 45px;
  }

  .hpd-event-section__heading {
    align-items: center;
  }

  .hpd-event-grid {
    grid-template-columns: 1fr;
  }

  .hpd-event-card__body {
    padding: 17px;
  }

  .hpd-event-notice {
    padding: 17px;
  }

  .hpd-event-intro {
    padding: 25px 21px;
  }

  .hpd-event-area-tile {
    grid-template-columns: auto 1fr;
    min-height: 88px;
    padding: 15px;
  }

  .hpd-event-area-tile__arrow {
    display: none;
  }

  .hpd-event-slider__arrow {
    width: 38px;
    height: 38px;
  }

  .hpd-event-slider__arrow--previous {
    left: 8px;
  }

  .hpd-event-slider__arrow--next {
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hpd-event-card,
  .hpd-event-area-tile,
  .hpd-event-area-tile__arrow,
  .hpd-event-slider__track {
    transition-duration: 0.01ms !important;
  }
}
