.ho-events-grid-wrap,
.ho-event-details {
  --ho-primary: #17365d;
  --ho-accent: #d62828;
  --ho-text: #162238;
  --ho-muted: #596273;
  --ho-surface: #ffffff;
  --ho-soft: #f7f9fc;
  --ho-border: #e3e8ef;
  box-sizing: border-box;
}

.ho-events-grid-wrap *,
.ho-event-details * {
  box-sizing: border-box;
}

.ho-events-grid {
  display: grid;
  grid-template-columns: repeat(var(--ho-columns, 3), minmax(0, 1fr));
  gap: 24px;
}

.ho-event-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ho-border);
  border-radius: 12px;
  background: var(--ho-surface);
  box-shadow: 0 8px 26px rgba(17, 34, 56, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ho-event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 36px rgba(17, 34, 56, 0.14);
}

.ho-event-card__image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.ho-event-card__image {
  position: relative;
  height: 235px;
  overflow: hidden;
  background: #edf1f6;
}

.ho-event-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ho-event-card:hover .ho-event-card__image img {
  transform: scale(1.035);
}

.ho-event-card__image--placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eef2f7 0%, #dfe7f0 100%);
}

.ho-event-card__placeholder-icon {
  width: 54px;
  height: 54px;
  color: #9aa8b8;
}

.ho-event-card__placeholder-icon svg,
.ho-event-card__meta-row svg,
.ho-event-card__button svg,
.ho-event-details svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ho-event-card__badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--ho-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

.ho-event-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.ho-event-card__title {
  margin: 0 0 14px;
  color: var(--ho-text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.ho-event-card__title a {
  color: inherit;
  text-decoration: none;
}

.ho-event-card__title a:hover,
.ho-event-card__title a:focus {
  color: var(--ho-accent);
}

.ho-event-card__meta {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.ho-event-card__meta-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ho-muted);
  font-size: 14px;
  line-height: 1.45;
}

.ho-event-card__meta-row svg {
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--ho-accent);
}

.ho-event-card__excerpt {
  margin: -2px 0 18px;
  color: var(--ho-muted);
  font-size: 14px;
  line-height: 1.65;
}

.ho-event-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: auto;
  padding: 11px 18px;
  border-radius: 4px;
  background: var(--ho-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.035em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.ho-event-card__button:hover,
.ho-event-card__button:focus {
  background: var(--ho-accent);
  color: #fff;
  transform: translateY(-1px);
}

.ho-event-card__button svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.ho-event-card__button:hover svg,
.ho-event-card__button:focus svg {
  transform: translateX(2px);
}

.ho-events-empty {
  padding: 28px;
  border: 1px dashed #cbd4df;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--ho-muted);
  text-align: center;
}

.ho-event-details {
  width: 100%;
  margin: 0 0 28px;
  padding: 26px;
  border: 1px solid var(--ho-border);
  border-radius: 14px;
  background: var(--ho-soft);
}

.ho-event-details__title {
  margin: 0 0 22px;
  color: var(--ho-text);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

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

.ho-event-details__item {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 13px;
  padding: 17px;
  border: 1px solid rgba(23, 54, 93, 0.09);
  border-radius: 10px;
  background: #fff;
}

.ho-event-details__icon {
  display: grid;
  width: 42px;
  min-width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--ho-primary);
  color: #fff;
}

.ho-event-details__icon svg {
  width: 20px;
  height: 20px;
}

.ho-event-details__label {
  margin-bottom: 4px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ho-event-details__value {
  color: var(--ho-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.ho-event-details__subvalue {
  margin-top: 2px;
  color: var(--ho-muted);
  font-size: 14px;
  line-height: 1.5;
}

.ho-event-details__value a,
.ho-event-details__subvalue a {
  color: inherit;
  text-decoration: none;
}

.ho-event-details__value a:hover,
.ho-event-details__subvalue a:hover {
  color: var(--ho-accent);
  text-decoration: underline;
}

.ho-event-details__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.ho-event-details__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid var(--ho-primary);
  border-radius: 5px;
  background: var(--ho-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ho-event-details__button svg {
  width: 17px;
  height: 17px;
}

.ho-event-details__button:hover,
.ho-event-details__button:focus {
  border-color: var(--ho-accent);
  background: var(--ho-accent);
  color: #fff;
}

.ho-event-details__button--secondary {
  background: transparent;
  color: var(--ho-primary);
}

.ho-event-details__button--secondary:hover,
.ho-event-details__button--secondary:focus {
  color: #fff;
}

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

@media (max-width: 767px) {
  .ho-events-grid {
    grid-template-columns: repeat(var(--ho-columns-mobile, 1), minmax(0, 1fr));
  }

  .ho-event-card__image {
    height: 220px;
  }

  .ho-event-details {
    padding: 18px;
  }

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

  .ho-event-details__actions,
  .ho-event-details__button {
    width: 100%;
  }
}

/* Event card image slider. */
.ho-event-card__slides,
.ho-event-card__slide,
.ho-event-card__placeholder-link {
  position: absolute;
  inset: 0;
}

.ho-event-card__slides {
  z-index: 1;
}

.ho-event-card__slide {
  display: block;
  opacity: 0;
  visibility: hidden;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.ho-event-card__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.ho-event-card__placeholder-link {
  display: grid;
  place-items: center;
  color: inherit;
  text-decoration: none;
}

.ho-event-card__slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.ho-event-card__slider-arrow--prev {
  left: 10px;
}

.ho-event-card__slider-arrow--next {
  right: 10px;
}

.ho-event-card__slider-arrow svg {
  display: block;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ho-event-card__image--slider:hover .ho-event-card__slider-arrow,
.ho-event-card__image--slider:focus-within .ho-event-card__slider-arrow {
  opacity: 1;
}

.ho-event-card__slider-arrow:hover,
.ho-event-card__slider-arrow:focus-visible {
  background: rgba(0, 0, 0, 0.84);
  color: #fff;
}

.ho-event-card__slider-arrow--prev:hover,
.ho-event-card__slider-arrow--prev:focus-visible {
  transform: translate(-2px, -50%);
}

.ho-event-card__slider-arrow--next:hover,
.ho-event-card__slider-arrow--next:focus-visible {
  transform: translate(2px, -50%);
}

.ho-event-card__slider-dots {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.ho-event-card__slider-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
  pointer-events: auto;
  transition: width 0.2s ease, border-radius 0.2s ease, background-color 0.2s ease;
}

.ho-event-card__slider-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: #fff;
}

.ho-event-card__image--slider .ho-event-card__badge {
  bottom: 32px;
}

@media (hover: none) {
  .ho-event-card__slider-arrow {
    opacity: 1;
  }
}
