/* ============================================================
   event-detail.css — Event detail page (pixel-aligned)
   ============================================================ */

:root {
  --ed-orange: #f16522;
  --ed-orange-hover: #e25a1e;
  --ed-navy: #1c2b4a;
  --ed-ink: #111827;
  --ed-body: #333333;
  --ed-muted: #6b7280;
  --ed-soft: #9ca3af;
  --ed-label: #777777;
  --ed-border: #e5e7eb;
  --ed-border-light: #f3f4f6;
  --ed-white: #ffffff;
  --ed-page: #000000;
  --ed-radius: 8px;
  --ed-radius-sm: 6px;
  --ed-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 8px 28px rgba(0, 0, 0, 0.28);
}

/* ---- Hero overrides ---- */
[data-page="event-detail"] .research-hero-content {
  padding-bottom: 72px;
  width: min(1080px, calc(100% - 32px));
  gap: 20px;
  align-items: center;
  text-align: center;
}

.ed-hero-eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 14px;
}

.ed-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  background: var(--ed-orange);
  font-family: 'DM Sans', Inter, sans-serif;
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ed-white);
  border-radius: 2px;
}

.ed-hero-host {
  font-family: 'DM Sans', Inter, sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.92);
}

[data-page="event-detail"] .research-hero-title {
  max-width: 820px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #ffffff;
}

[data-page="event-detail"] .research-hero-breadcrumb {
  width: min(1086px, calc(100% - 32px));
  height: auto;
  min-height: 50px;
  padding: 12px 24px;
  gap: 8px;
  background: var(--ed-white);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -1px 0 rgba(229, 231, 235, 0.8);
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

[data-page="event-detail"] .research-hero-breadcrumb a,
[data-page="event-detail"] .research-hero-current {
  font-family: 'DM Sans', Inter, sans-serif;
  font-size: 12px;
  line-height: 18px;
  color: #0d1b2a;
}

[data-page="event-detail"] .research-hero-breadcrumb a {
  font-weight: 400;
}

[data-page="event-detail"] .research-hero-breadcrumb a:hover {
  color: var(--ed-orange);
}

[data-page="event-detail"] .research-hero-sep {
  font-size: 12px;
  line-height: 18px;
  color: #9ca3af;
}

[data-page="event-detail"] .research-hero-current {
  font-weight: 600;
  color: var(--ed-orange);
}

/* Hero meta */
.ed-hero-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 28px;
  max-width: 920px;
}

.ed-hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', Inter, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
}

.ed-hero-meta-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #ffffff;
  opacity: 0.95;
}

/* ---- Page section ---- */
.ed-section {
  background: #fff;
  padding: 40px 0 88px;
}

.ed-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Featured media ---- */
.ed-figure {
  margin: 0 0 28px;
}

.ed-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
  background: #1a1a1a;
}

.ed-caption {
  margin: 12px 0 0;
  font-family: 'DM Sans', Inter, sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.55;
  color: #9ca3af;
  text-align: left;
}

/* ---- About the Event card ---- */
.ed-about-card {
  background: var(--ed-white);
  border-radius: 2px;
}

.ed-about-header {
  margin: 0 0 28px;
}

.ed-about-bar {
  display: block;
  width: 32px;
  height: 3px;
  margin-bottom: 14px;
  background: var(--ed-orange);
  border-radius: 2px;
}

.ed-about-title {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ed-navy);
}

.ed-about-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ed-about-body p {
  margin: 0;
  font-family: 'DM Sans', Inter, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ed-body);
}

/* ---- Sidebar ---- */
.ed-sidebar {
  top: 96px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ed-card {
  background: var(--ed-white);
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(243, 244, 246, 1);
}

.ed-card-header {
  background: var(--ed-navy);
  padding: 14px 18px;
}

.ed-card-title {
  margin: 0;
  font-family: 'DM Sans', Inter, sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ed-white);
}

/* Related articles */
.ed-related-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  background: var(--ed-white);
}

.ed-related-list > li {
  border-bottom: 1px solid var(--ed-border-light);
}

.ed-related-list > li:last-child {
  border-bottom: 0;
}

.ed-related-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.ed-related-item:hover {
  background: rgba(28, 43, 74, 0.03);
}

.ed-related-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  overflow: hidden;
  background: #e5e7eb;
}

.ed-related-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ed-related-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding-top: 2px;
}

.ed-related-item-title {
  font-family: 'DM Sans', Inter, sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ed-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ed-related-date {
  font-family: 'DM Sans', Inter, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.3;
  color: var(--ed-soft);
}

.ed-related-item:hover .ed-related-item-title {
  color: var(--ed-orange);
}

/* Event details */
.ed-details-list {
  list-style: none;
  margin: 0;
  padding: 8px 20px 4px;
  display: flex;
  flex-direction: column;
}

.ed-details-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ed-border-light);
}

.ed-details-item:last-child {
  border-bottom: 0;
}

.ed-details-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--ed-orange);
}

.ed-details-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.ed-details-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ed-details-label {
  font-family: 'DM Sans', Inter, sans-serif;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ed-label);
}

.ed-details-value {
  font-family: 'DM Sans', Inter, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ed-ink);
}

.ed-register-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 20px 20px;
  height: 48px;
  padding: 0 20px;
  background: var(--ed-orange);
  font-family: 'DM Sans', Inter, sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  color: rgba(255, 255, 255, 1);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.ed-register-btn:hover {
  background: var(--ed-orange-hover);
  color: var(--ed-white);
}

.ed-register-btn:active {
  transform: translateY(1px);
}

/* Share card */
.ed-share-card {
  background: var(--ed-white);
  border-radius: 2px;
  padding: 22px 20px 24px;
  text-align: center;
  border: 1px solid rgba(229, 231, 235, 1);
  border-radius: 2px;
}

.ed-share-title {
  margin: 0 0 16px;
  font-family: 'DM Sans', Inter, sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  color: rgba(17, 24, 39, 1);
  text-align: left;
}

.ed-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 120px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--ed-border);
  background: var(--ed-white);
  font-family: 'DM Sans', Inter, sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  color: rgba(55, 65, 81, 1);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.ed-share-btn:hover {
  color: var(--ed-orange);
  border-color: rgba(241, 101, 34, 0.45);
  background: rgba(241, 101, 34, 0.06);
}

/* ---- Responsive ---- */
@media (max-width: 1199.98px) {
  [data-page="event-detail"] .research-hero-title {
    font-size: 36px;
  }

  .ed-about-card {
    padding: 40px 36px;
  }
}

@media (max-width: 991.98px) {
  .ed-sidebar {
    top: 0;
    position: static !important;
  }

  [data-page="event-detail"] .research-hero-title {
    font-size: 32px;
  }

  .ed-about-title {
    font-size: 28px;
  }

  .ed-about-card {
    padding: 32px 28px;
  }
}

@media (max-width: 767.98px) {
  [data-page="event-detail"] .research-hero-content {
    padding-bottom: 64px;
    width: calc(100% - 32px);
    gap: 14px;
  }

  .ed-hero-eyebrow {
    gap: 8px 10px;
  }

  .ed-hero-badge {
    padding: 4px 8px;
    font-size: 10px;
  }

  .ed-hero-host {
    font-size: 12px;
  }

  [data-page="event-detail"] .research-hero-title {
    font-size: 26px;
    line-height: 1.25;
  }

  [data-page="event-detail"] .research-hero-breadcrumb {
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 12px 12px 0 0;
  }

  .ed-hero-meta {
    gap: 10px 16px;
  }

  .ed-hero-meta-item {
    font-size: 12px;
    gap: 6px;
    white-space: normal;
  }

  .ed-hero-meta-icon {
    width: 14px;
    height: 14px;
  }

  .ed-section {
    padding: 28px 0 56px;
  }

  .ed-inner {
    padding: 0 16px;
  }

  .ed-figure {
    margin-bottom: 20px;
  }

  .ed-caption {
    font-size: 12px;
  }

  .ed-about-card {
    padding: 24px 20px;
    border-radius: var(--ed-radius-sm);
  }

  .ed-about-bar {
    width: 28px;
    margin-bottom: 12px;
  }

  .ed-about-title {
    font-size: 24px;
  }

  .ed-about-body {
    gap: 16px;
  }

  .ed-about-body p {
    font-size: 15px;
    line-height: 1.7;
  }

  .ed-sidebar {
    gap: 16px;
  }

  .ed-related-thumb {
    width: 56px;
    height: 56px;
  }

  .ed-related-item-title {
    font-size: 13px;
  }

  .ed-register-btn {
    margin: 8px 16px 16px;
    height: 46px;
    font-size: 14px;
  }

  .ed-details-list {
    padding: 8px 16px 4px;
  }

  .ed-share-card {
    padding: 18px 16px 20px;
  }
}

@media (max-width: 479.98px) {
  [data-page="event-detail"] .research-hero-title {
    font-size: 22px;
  }

  .ed-hero-meta {
    justify-content: center;
  }

  .ed-about-title {
    font-size: 22px;
  }

  .ed-about-body p {
    font-size: 14px;
  }

  .ed-card-header {
    padding: 12px 14px;
  }

  .ed-related-item {
    padding: 12px 14px;
  }
}

/* ============================================================
   Align event-detail page with bootstrap HTML template.
   Laravel research.css differs (lighter overlay, breadcrumb wings).
   ============================================================ */
[data-page="event-detail"] .research-hero-overlay {
  background: rgba(28, 43, 74, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

[data-page="event-detail"] .research-hero-breadcrumb::before,
[data-page="event-detail"] .research-hero-breadcrumb::after {
  content: none;
  display: none;
}

[data-page="event-detail"] .ed-sidebar.sticky-top {
  top: 96px;
  z-index: 2;
}

[data-page="event-detail"] .ed-about-title,
[data-page="event-detail"] .ed-related-item-title,
[data-page="event-detail"] .research-hero-title {
  text-decoration: none;
}

[data-page="event-detail"] .ed-register-btn:hover,
[data-page="event-detail"] .ed-related-item:hover {
  text-decoration: none;
}

/* Event detail uses the same page-banner as /impact/events */
.page-banner .ed-banner-eyebrow {
  margin-bottom: 4px;
}

.page-banner .ed-banner-meta {
  margin-top: 8px;
}

.page-banner .ed-hero-host {
  color: rgba(255, 255, 255, 0.92);
}

.page-banner {
  padding-bottom: 50px;
}
