/* Event Detail Page Stylesheet. Loaded after base.css. */
:root {
  --navy: #1F1610;
  --navy2: #C85A17;
  --mist: #F3EBDD;
  --gold: #D9A441;
  --ink: #2A211B;
  --muted: #6B5E52;
  --bg: #FAF7F2;
  --card: #FFFDF9;
  --line: #E8DDCB;
  --accent: #C85A17;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 Figtree, system-ui, sans-serif;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
}

.top {
  background: var(--navy);
  color: #fff;
  padding: 56px 0 68px;
}

.top h1 {
  font-size: clamp(30px, 4.8vw, 50px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin: 12px 0 16px;
}

.top p {
  max-width: none !important;
  width: 100% !important;
  font-size: 19px;
  line-height: 1.6;
  color: #E6D9C3;
  margin: 0;
}

/* Event navigation bar (Back button & breadcrumbs) */
.event-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  width: 100% !important;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(13, 34, 64, 0.12);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: #0D2240;
  text-decoration: none;
  background: #FFFFFF;
  border: 1.5px solid #0D2240;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  transition: all .2s ease;
}

.back-link:hover {
  background: #0D2240;
  color: var(--gold);
  transform: translateX(-3px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.breadcrumb li + li:before {
  content: "/";
  margin-right: 8px;
  opacity: 0.5;
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}

.breadcrumb a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.breadcrumb li[aria-current] {
  color: #9A6500;
  font-weight: 700;
}

.hero-badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 6px;
}

.event-hero-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(212, 160, 23, 0.22);
  color: #9A6500;
  border: 1px solid rgba(212, 160, 23, 0.5);
  letter-spacing: .02em;
}

.event-hero-cat {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(13, 34, 64, 0.08);
  color: var(--navy);
  border: 1px solid rgba(13, 34, 64, 0.15);
}

/* Event detail content */
.event-detail-sec {
  padding: 0 0 76px;
}

/* Meta Strip */
.meta-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: 0 12px 30px -14px rgba(13, 34, 64, .14);
  margin-top: -34px;
  position: relative;
  z-index: 3;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(13, 34, 64, .06);
  color: var(--navy);
  flex-shrink: 0;
}

.meta-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-muted);
  font-weight: 600;
}

.meta-val {
  display: block;
  font-size: 15px;
  color: var(--navy);
  font-weight: 700;
  margin-top: 2px;
}

/* Featured Media */
.featured-media {
  margin: 38px 0 40px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 16px 36px -16px rgba(13, 34, 64, .18);
}

.featured-img {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
  display: block;
}

.featured-media figcaption {
  padding: 14px 24px;
  font-size: 14px;
  color: var(--ink-muted);
  font-style: italic;
  background: rgba(237, 232, 224, .45);
  border-top: 1px solid var(--border);
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 50px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 8px 24px -12px rgba(13, 34, 64, .08);
}

.stat-card b {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 38px;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-card span {
  font-size: 14px;
  color: var(--ink-muted);
  font-weight: 600;
}

/* Story Grid */
.story-grid {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}

.story-main h2 {
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 16px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
}

.story-main h3 {
  font-size: 22px;
  color: var(--navy);
  margin: 32px 0 12px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
}

.story-main p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 18px;
}

.styled-list {
  margin: 0 0 28px;
  padding-left: 20px;
  line-height: 1.7;
  color: var(--ink);
}

.styled-list li {
  margin-bottom: 10px;
}

/* Quote Box */
.quote-box {
  margin: 36px 0;
  padding: 26px 30px;
  background: rgba(212, 160, 23, .08);
  border-left: 4px solid var(--gold);
  border-radius: 0 16px 16px 0;
}

.quote-box blockquote {
  margin: 0 0 12px;
  font-size: 18px;
  font-style: italic;
  line-height: 1.6;
  color: var(--navy);
  font-family: 'Fraunces', Georgia, serif;
}

.quote-box cite {
  font-size: 14px;
  font-weight: 700;
  color: #9A6500;
  font-style: normal;
  display: block;
}

/* Sidebar */
.event-sidebar .side-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 10px 28px -14px rgba(13, 34, 64, .1);
  margin-bottom: 24px;
}

.event-sidebar h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 16px;
}

.side-dl dt {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-muted);
  margin-top: 14px;
  letter-spacing: .02em;
}

.side-dl dd {
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--navy);
  font-weight: 600;
}

.side-dl dt:first-child {
  margin-top: 0;
}

.cta-side {
  background: linear-gradient(180deg, #0D2240 0%, #163660 100%) !important;
  color: #FFFFFF !important;
  border-color: rgba(212, 160, 23, .35) !important;
}

.cta-side h3 {
  color: var(--gold) !important;
  margin-bottom: 10px;
}

.cta-side p {
  color: rgba(255, 255, 255, .85) !important;
  font-size: 15px;
  margin-bottom: 22px;
  line-height: 1.6;
}

.side-btn {
  display: block;
  text-align: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--gold);
  color: #0D2240;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px -4px rgba(212, 160, 23, .5);
  transition: transform .2s, background-color .2s;
}

.side-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.side-call {
  display: block;
  text-align: center;
  margin-top: 14px;
  color: rgba(255, 255, 255, .9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color .2s;
}

.side-call:hover {
  color: var(--gold);
}

/* Event Bottom Bar */
.event-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 26px 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 12px 32px -16px rgba(13, 34, 64, .12);
}

.nav-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  transition: all .2s ease;
}

.nav-back-btn:hover {
  background: var(--navy);
  color: var(--gold);
  transform: translateX(-3px);
}

.action-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--navy);
  border: 1.5px solid var(--navy);
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 4px 12px -2px rgba(13, 34, 64, .25);
  transition: all .2s ease;
}

.btn-primary:hover {
  background: #081828;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all .2s ease;
}

.btn-secondary:hover {
  border-color: var(--navy);
  background: rgba(13, 34, 64, .04);
}

@media (max-width: 820px) {
  .meta-strip {
    grid-template-columns: 1fr;
    margin-top: -24px;
    padding: 20px;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .event-bottom-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 22px 20px;
  }
  .action-group {
    flex-direction: column;
    align-items: stretch;
  }
  .action-group a,
  .nav-back-btn {
    text-align: center;
    justify-content: center;
  }
}
