.wpe-details,
.wpe-directory {
  font-family: "Exo 2", sans-serif;
  color: #172033;
  box-sizing: border-box;
}
.wpe-details {
  max-width: 1180px;
  margin: 36px auto;
  padding: 28px;
  background: #f3f6fb;
  border: 1px solid #dce3f1;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.wpe-details h2 {
  font-size: 24px;
  margin: 12px 0;
}
.wpe-details p {
  margin: 8px 0;
}
.wpe-muted {
  font-size: 14px;
  color: #536174;
}
.wpe-status {
  display: inline-block;
  background: #e6ecfa;
  color: #1b3281;
  border-radius: 30px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
  font-family: "Exo 2", sans-serif;
}
.wpe-register,
.wpe-filters button {
  display: inline-block;
  background: #1b3281;
  color: #fff;
  border: 1px solid #1b3281;
  border-radius: 8px;
  padding: 12px 22px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.wpe-register:hover,
.wpe-filters button:hover {
  background: #ed9d19;
  color: #172033;
  border-color: #ed9d19;
}
[data-wpe-register][aria-disabled="true"] {
  opacity: 0.65;
  cursor: default;
  pointer-events: none;
}
.wpe-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
  margin-bottom: 20px;
}
.wpe-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  flex: 1;
  min-width: 140px;
}
.wpe-filters select,
.wpe-filters input {
  width: 100%;
  min-height: 46px;
  padding: 10px;
  border: 1px solid #c5cede;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  font: inherit;
  box-sizing: border-box;
}
.wpe-filters [data-wpe-clear] {
  background: #fff;
  color: #1b3281;
}
.wpe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.wpe-card {
  border: 1px solid #dce3f1;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 12px #1720330d;
}
.wpe-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.wpe-card-body {
  padding: 20px;
}
.wpe-card h3 {
  font-family: inherit;
  font-size: 22px;
  line-height: 1.3;
  margin: 16px 0;
}
.wpe-card a {
  color: #1b3281;
}
.wpe-card p {
  font-size: 14px;
}
.wpe-directory [hidden],
.wpe-details [hidden] {
  display: none !important;
}
.wpe-directory :focus-visible,
.wpe-details :focus-visible {
  outline: 3px solid #ed9d19;
  outline-offset: 3px;
}
.home-tab-content__card .wpe-status {
  margin-bottom: 10px;
}
@media (max-width: 1024px) {
  .wpe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .wpe-grid {
    grid-template-columns: 1fr;
  }
  .wpe-details {
    margin: 24px 16px;
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
  }
  .wpe-filters label {
    min-width: calc(50% - 12px);
  }
  .wpe-filters button {
    flex: 1;
  }
  .wpe-card h3 {
    font-size: 20px;
  }
}

/* Event discovery: scoped to the directory, not the event detail pages. */
.wpe-directory {
  --wpe-ink: #192d68;
  --wpe-muted: #657087;
  --wpe-border: #e5e9f1;
  width: 100%;
  font-family: "Exo 2", sans-serif;
}
.wpe-directory *,
.wpe-directory *::before,
.wpe-directory *::after {
  box-sizing: border-box;
}

.wpe-directory .wpe-filters {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1fr 1fr auto auto;
  gap: 16px;
  align-items: end;
  padding: 26px;
  margin: 0 0 28px;
  background: #f6f8fc;
  border: 1px solid var(--wpe-border);
  border-radius: 18px;
}
.wpe-directory .wpe-filters label {
  min-width: 0;
  gap: 9px;
  color: var(--wpe-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.035em;
}
.wpe-directory .wpe-filters select,
.wpe-directory .wpe-filters input {
  height: 48px;
  min-height: 48px;
  min-width: 0;
  padding: 0 13px;
  border: 1px solid #dce2ed;
  border-radius: 10px;
  background-color: #fff;
  color: var(--wpe-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  box-shadow: 0 2px 3px #192d6803;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.wpe-directory .wpe-filters select {
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23657087' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.wpe-directory .wpe-filters input:hover,
.wpe-directory .wpe-filters select:hover {
  border-color: #aab8d2;
}
.wpe-directory .wpe-filters input:focus,
.wpe-directory .wpe-filters select:focus {
  border-color: #1b3281;
  box-shadow: 0 0 0 3px #1b32810c;
}
.wpe-directory .wpe-filters button {
  height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 0.18s,
    box-shadow 0.18s;
}
.wpe-directory .wpe-filters button[type="submit"] {
  box-shadow: 0 4px 10px #1b32811c;
}
.wpe-directory .wpe-filters [data-wpe-clear] {
  padding: 0 10px;
  background: transparent;
  border-color: transparent;
  color: var(--wpe-muted);
  box-shadow: none;
}
.wpe-directory .wpe-filters [data-wpe-clear]:hover {
  background: #eaf0f9;
  color: var(--wpe-ink);
}
.wpe-directory [data-wpe-results] {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 24px;
  color: var(--wpe-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}
.wpe-directory [data-wpe-results]::after {
  content: "";
  flex: 1;
  min-width: 20px;
  height: 1px;
  background: var(--wpe-border);
}
.wpe-directory .wpe-grid {
  gap: 28px;
  align-items: stretch;
}
.wpe-directory .wpe-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--wpe-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 12px #192d6805;
  transition:
    transform 0.22s,
    box-shadow 0.22s,
    border-color 0.22s;
}
.wpe-directory .wpe-card:hover {
  transform: translateY(-4px);
  border-color: rgba(237, 157, 25, 0.3);
  box-shadow:
    0 14px 30px rgba(237, 157, 25, 0.2),
    0 4px 10px rgba(237, 157, 25, 0.08);
}
.wpe-directory .wpe-card > a {
  display: block;
  overflow: hidden;
  background: #eef2f8;
}
.wpe-directory .wpe-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s;
}
.wpe-directory .wpe-card:hover img {
  transform: scale(1.025);
}
.wpe-directory .wpe-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  gap: 14px;
  padding: 24px;
}
.wpe-directory .wpe-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid #e0e7f4;
  border-radius: 7px;
  background: #f1f4fb;
  color: #334d89;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.025em;
}
.wpe-directory .wpe-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.wpe-directory .wpe-card h3 {
  margin: 0;
  font-family: inherit;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.wpe-directory .wpe-card h3 a {
  color: var(--wpe-ink);
  text-decoration: none;
}
.wpe-directory .wpe-card p {
  margin: 0 0 6px;
  color: var(--wpe-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}
.wpe-directory .wpe-card-body > a:last-child {
  align-self: stretch;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #edf0f5;
  color: var(--wpe-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.5;
}
.wpe-directory .wpe-card-body > a:last-child:hover {
  color: #9e6406;
}
.wpe-directory [data-wpe-empty] {
  padding: 48px 24px;
  border: 1px dashed #cbd5e5;
  border-radius: 16px;
  background: #f8fafd;
  text-align: center;
  color: var(--wpe-muted);
  font-size: 15px;
  line-height: 1.7;
}
@media (max-width: 1200px) {
  .wpe-directory .wpe-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .wpe-directory .wpe-filters button[type="submit"] {
    grid-column: 3;
  }
}
@media (max-width: 767px) {
  .wpe-directory .wpe-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    padding: 18px;
    margin-bottom: 22px;
    border-radius: 14px;
  }
  .wpe-directory .wpe-filters button[type="submit"] {
    grid-column: auto;
  }
  .wpe-directory .wpe-filters button {
    padding: 0 10px;
    font-size: 13px;
  }
  .wpe-directory .wpe-filters select,
  .wpe-directory .wpe-filters input {
    font-size: 16px;
    padding-left: 10px;
  }
  .wpe-directory .wpe-filters input[type="date"] {
    padding-right: 7px;
  }
  .wpe-directory .wpe-grid {
    gap: 22px;
  }
  .wpe-directory .wpe-card-body {
    padding: 22px;
  }
  .wpe-directory .wpe-card h3 {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wpe-directory .wpe-card,
  .wpe-directory .wpe-card img,
  .wpe-directory .wpe-filters input,
  .wpe-directory .wpe-filters select,
  .wpe-directory .wpe-filters button {
    transition: none;
  }
  .wpe-directory .wpe-card:hover,
  .wpe-directory .wpe-card:hover img {
    transform: none;
  }
}

/* Status colors apply to the directory, home cards and event details. */
.wpe-status[data-wpe-status] {
  color: var(--wpe-status-ink, #475569);
  background: var(--wpe-status-bg, #f1f5f9);
  border: 1px solid var(--wpe-status-border, #dbe2ea);
}
.wpe-status[data-wpe-status="ongoing"] {
  --wpe-status-ink: #14663f;
  --wpe-status-bg: #e9f7ef;
  --wpe-status-border: #bce5cc;
}
.wpe-status[data-wpe-status="upcoming"] {
  --wpe-status-ink: #1b3281;
  --wpe-status-bg: #edf2ff;
  --wpe-status-border: #cbd7fa;
}
.wpe-status[data-wpe-status="past"] {
  --wpe-status-ink: #566176;
  --wpe-status-bg: #f0f2f5;
  --wpe-status-border: #dce1e8;
}
.wpe-status[data-wpe-status="postponed"] {
  --wpe-status-ink: #8a5108;
  --wpe-status-bg: #fff5df;
  --wpe-status-border: #f3d599;
}
.wpe-status[data-wpe-status="cancelled"] {
  --wpe-status-ink: #a42a35;
  --wpe-status-bg: #fff0f1;
  --wpe-status-border: #f3c6cc;
}
.wpe-status[data-wpe-status="schedule"] {
  --wpe-status-ink: #685099;
  --wpe-status-bg: #f3effb;
  --wpe-status-border: #ded3ef;
}
