/* Event detail — full page layout */

.ev-banner {
  background: #173058;
  color: #fff;
  padding: 2.75rem 0 2.5rem;
}

.ev-banner__inner {
  max-width: 920px;
}

.ev-banner__title {
  margin: 0;
  color: #fff;
  font-family: var(--font-display, inherit);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.65rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ev-banner__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
  margin-top: 1.15rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.ev-banner__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.95;
}

.ev-banner__meta i {
  opacity: 0.9;
}

.ev-page {
  padding-bottom: 3rem;
  background: #f7f9fc;
}

.ev-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 1.15rem 0 1.35rem;
  font-size: 0.88rem;
  color: #64748b;
}

.ev-breadcrumb a {
  color: var(--brand-primary, #173058);
  text-decoration: none;
  font-weight: 600;
}

.ev-breadcrumb a:hover {
  text-decoration: underline;
}

.ev-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.75rem 2rem;
  align-items: start;
}

.ev-content {
  min-width: 0;
  padding: 1.5rem 1.6rem 1.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.ev-section + .ev-section {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid #eef2f7;
}

.ev-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.ev-section__title {
  margin: 0 0 0.85rem;
  color: var(--brand-primary, #173058);
  font-size: 1.2rem;
  font-weight: 800;
}

.ev-section__head .ev-section__title {
  margin-bottom: 0;
}

.ev-section__count {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 600;
}

.ev-prose {
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.75;
}

.ev-prose p {
  margin: 0 0 1rem;
}

.ev-prose p:last-child {
  margin-bottom: 0;
}

.ev-prose ul,
.ev-prose ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.ev-prose a {
  color: var(--brand-primary, #173058);
  font-weight: 600;
}

/* Carousel — one photo at a time */
.ev-carousel {
  position: relative;
}

.ev-carousel__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #0f172a;
}

.ev-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.ev-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.ev-carousel__slide img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.ev-carousel__btn {
  position: absolute;
  top: calc(50% - 1.4rem);
  z-index: 4;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand-primary, #173058);
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  transform: translateY(-50%);
}

.ev-carousel__btn--prev {
  left: 0.75rem;
}

.ev-carousel__btn--next {
  right: 0.75rem;
}

.ev-carousel__btn:hover {
  background: #fff;
}

.ev-carousel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
}

.ev-carousel__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ev-carousel__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
}

.ev-carousel__dot.is-active {
  width: 1.25rem;
  background: #173058;
}

.ev-carousel__counter {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Sidebar card */
.ev-sidebar {
  position: sticky;
  top: 5.5rem;
}

.ev-card {
  padding: 1.25rem 1.3rem 1.35rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.ev-card__title {
  margin: 0 0 1rem;
  color: var(--brand-primary, #173058);
  font-size: 1.05rem;
  font-weight: 800;
}

.ev-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ev-card__list li {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 0;
  border-top: 1px solid #eef2f7;
}

.ev-card__list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.ev-card__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
}

.ev-card__label i {
  color: #173058;
}

.ev-card__value {
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
}

.ev-card__actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.ev-card__actions .btn {
  justify-content: center;
}

/* Related */
.ev-related {
  margin-top: 2.5rem;
  padding: 2.25rem 0 0.5rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.ev-related__title {
  margin: 0 0 1.15rem;
  color: var(--brand-primary, #173058);
  font-size: 1.25rem;
  font-weight: 800;
}

.ev-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.ev-related__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ev-related__card:hover,
.ev-related__card:focus,
.ev-related__card:visited {
  color: inherit;
  text-decoration: none !important;
}

.ev-related__card:hover {
  border-color: #173058;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.ev-related__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: #eef2f7;
  overflow: hidden;
}

.ev-related__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ev-related__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #94a3b8;
  font-size: 1.6rem;
}

.ev-related__body {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem 1.05rem;
}

.ev-related__name {
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.35;
}

.ev-related__date {
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 600;
}

.ev-related__date i {
  margin-right: 0.2rem;
}

@media (max-width: 991.98px) {
  .ev-layout {
    grid-template-columns: 1fr;
  }

  .ev-sidebar {
    position: static;
    order: -1;
  }

  .ev-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .ev-banner {
    padding: 2rem 0 1.75rem;
  }

  .ev-content {
    padding: 1.15rem 1.05rem 1.25rem;
    border-radius: 12px;
  }

  .ev-carousel__btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .ev-related__grid {
    grid-template-columns: 1fr;
  }
}
