/* =========================================================
   THE CONFERENCE HUB — EVENT DETAIL PAGE
   (Loaded after css/style.css, which holds the shared header,
    footer, buttons, event cards and variables.)
   Sections:
   0. Shared helpers for this page
   1. Header dropdown
   2. Event hero
   3. 3+1 offer bar
   4. Why this matters / You will leave with
   5. Who should attend
   6. Speakers + programme + sidebar
   7. FAQ
   8. Related events
   9. Bottom offer strip
   10. Footer tweaks
   11. Responsive
   ========================================================= */

/* =========================================================
   0. SHARED HELPERS
   ========================================================= */
.ed-title { font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 18px; }
.ed-title::after { content: ""; display: block; width: 26px; height: 3px; background: var(--red); margin-top: 8px; }
.ed-title-plain::after { display: none; }
.btn-outline-dark { border-color: var(--black); color: var(--black); background: #fff; }
.btn-outline-dark:hover { background: var(--black); color: #fff; }
.btn-white { background: #fff; color: var(--black); border-color: #fff; }
.btn-white:hover { background: var(--black); color: #fff; border-color: var(--black); }
.btn-block { display: flex; justify-content: center; width: 100%; }

/* =========================================================
   1. HEADER DROPDOWN
   ========================================================= */
.has-dropdown { position: relative; }
.has-dropdown > a i { font-size: 10px; margin-left: 4px; }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: -18px; min-width: 280px; background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12); border-top: 3px solid var(--red);
  display: block !important; padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; z-index: 50;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown li { width: 100%; }
.main-nav .dropdown a { display: block; padding: 9px 18px; font-size: 12px; text-transform: none; font-weight: 500; letter-spacing: 0; }
.main-nav .dropdown a::after { display: none; }
.main-nav .dropdown a:hover { color: var(--red); background: #F7F7F8; }

/* =========================================================
   2. EVENT HERO
   ========================================================= */
.ed-hero { display: grid; grid-template-columns: 47% 53%; background: linear-gradient(120deg, #EFEFF1 0%, #FAFAFA 60%, #F2F2F4 100%); }
.ed-hero-text { display: flex; justify-content: flex-end; }
.ed-hero-inner { width: 100%; max-width: 600px; padding: 18px 40px 40px 24px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); margin-bottom: 30px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb i { font-size: 8px; }
.breadcrumb span { color: var(--text); }
.ed-cat { display: block; color: var(--red); font-size: 12px; font-weight: 600; text-transform: uppercase; margin-bottom: 14px; }
.ed-hero h1 { max-width: 460px; font-size: 46px; line-height: 1.08; font-weight: 800; text-transform: uppercase; letter-spacing: -.5px; margin-bottom: 12px; color: var(--black); }
.ed-subtitle { color: var(--red); font-size: 20px; font-weight: 600; margin-bottom: 14px; }
.ed-intro { font-size: 15px; line-height: 1.6; max-width: 420px; margin-bottom: 22px; }
.ed-meta { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; font-size: 14px; }
.ed-meta i { color: var(--red); width: 18px; margin-right: 12px; }
.ed-hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.ed-hero-media { position: relative; aspect-ratio: 455 / 357; overflow: hidden; }
.ed-hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* Badge positioned in % so it always sits over the same part of the photo */
.ed-badge {
  position: absolute; left: 63.5%; top: 4.2%; width: 28.6%; height: 31.5%;
  background: rgba(38, 38, 40, .88); color: #fff; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px;
}
.ed-badge strong { font-size: clamp(26px, 3.2vw, 44px); font-weight: 700; line-height: 1; padding-bottom: 6px; border-bottom: 2px solid #fff; margin-bottom: 8px; }
.ed-badge span { font-size: clamp(8px, .7vw, 10.5px); font-weight: 600; text-transform: uppercase; line-height: 1.5; }
.ed-badge i { font-size: clamp(14px, 1.5vw, 20px); margin-top: 8px; }

/* =========================================================
   3. 3+1 OFFER BAR
   ========================================================= */
.ed-offer { background: var(--red); color: #fff; }
.ed-offer .container { display: flex; align-items: center; gap: 40px; padding-top: 24px; padding-bottom: 24px; flex-wrap: wrap; }
.ed-offer-num { display: flex; align-items: center; gap: 16px; }
.ed-offer-num i { font-size: 42px; }
.ed-offer-num span { font-size: 56px; font-weight: 800; line-height: 1; }
.ed-offer-text { flex: 1; min-width: 260px; font-size: 12.5px; line-height: 1.6; }
.ed-offer-text h3 { font-size: 17px; font-weight: 700; }
.ed-offer .btn { margin-left: auto; }

/* =========================================================
   4. WHY THIS MATTERS / YOU WILL LEAVE WITH
   ========================================================= */
.ed-why { padding: 40px 0 0; }
.ed-why .container { display: grid; grid-template-columns: 1fr 1.15fr; gap: 0; }
.ed-why .container::after { content: ""; grid-column: 1 / -1; height: 1px; background: var(--border); margin-top: 26px; }
.ed-why-text { padding-right: 40px; border-right: 1px solid var(--border); }
.ed-why-text p { font-size: 13px; line-height: 1.7; margin-bottom: 14px; }
.ed-leave { padding-left: 40px; }
.ed-leave-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 30px; }
.ed-leave-list li { display: flex; align-items: flex-start; gap: 16px; font-size: 13px; line-height: 1.5; }
.ed-leave-list i { color: var(--red); font-size: 22px; width: 26px; text-align: center; flex-shrink: 0; }

/* =========================================================
   5. WHO SHOULD ATTEND
   ========================================================= */
.ed-attend { padding: 22px 0 40px; }
.ed-attend .ed-title::after { display: none; }
.ed-attend-list { display: grid; grid-template-columns: repeat(5, 1fr); }
.ed-attend-list li { display: flex; align-items: center; gap: 14px; font-size: 12px; line-height: 1.45; padding: 4px 18px; }
.ed-attend-list li:first-child { padding-left: 0; }
.ed-attend-list li:not(:last-child) { border-right: 1px solid var(--border); }
.ed-attend-list i { color: var(--red); font-size: 22px; width: 26px; text-align: center; flex-shrink: 0; }

/* =========================================================
   6. SPEAKERS + PROGRAMME (main) & SIDEBAR
   ========================================================= */
.ed-main { padding: 10px 0 30px; scroll-margin-top: 90px; }
.ed-layout { display: grid; grid-template-columns: 1fr 300px; gap: 30px; align-items: start; }
.ed-block { margin-bottom: 36px; }
.ed-block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.ed-block-head .ed-title::after { display: none; }
.ed-lead { font-size: 12.5px; color: var(--text); max-width: 520px; margin: -8px 0 14px; }

/* 6a. Facilitators */
.facilitators { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.facilitator { background: #fff; border: 1px solid var(--border); box-shadow: 0 4px 16px rgba(0, 0, 0, .05); transition: .3s; }
.facilitator:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0, 0, 0, .1); }
.f-photo { background: #F2F2F2; aspect-ratio: 130 / 112; overflow: hidden; }
.f-photo img { width: 100%; height: 100%; object-fit: cover; }
.f-body { padding: 12px 12px 14px; }
.f-body h4 { font-size: 12.5px; font-weight: 700; margin-bottom: 4px; }
.f-body > p { font-size: 11px; color: var(--muted); line-height: 1.45; margin-bottom: 12px; }
.f-bio-btn { background: none; border: 0; padding: 0; font-family: var(--font); color: var(--red); font-size: 11px; font-weight: 500; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.f-bio-btn i { transition: transform .2s; }
.facilitator.open .f-bio-btn i { transform: rotate(90deg); }
.f-bio { display: none; font-size: 11px; line-height: 1.55; color: var(--text); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.facilitator.open .f-bio { display: block; }

/* 6b. Programme document viewer (view-only) */
.doc-viewer { background: #2B2B2E; border-radius: 4px; overflow: hidden; user-select: none; -webkit-user-select: none; }
.dv-toolbar { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 10px; background: #323236; color: #E6E6E9; font-size: 11px; }
.dv-center { display: flex; align-items: center; gap: 10px; }
.dv-btn { background: none; border: 0; color: #E6E6E9; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.dv-btn:hover { background: rgba(255, 255, 255, .12); }
.dv-page { background: #1E1E20; padding: 2px 10px; border-radius: 2px; }
.dv-zoom { background: #1E1E20; padding: 2px 8px; min-width: 46px; text-align: center; }
.dv-sep { width: 1px; height: 16px; background: #55555A; }
.dv-lock { opacity: .7; font-size: 12px; padding-right: 6px; }
.dv-body { display: flex; height: 380px; }
.dv-thumbs { width: 110px; flex-shrink: 0; background: #2B2B2E; padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; overflow-y: auto; border-right: 1px solid #3A3A3E; transition: margin .25s; }
.doc-viewer.no-thumbs .dv-thumbs { margin-left: -110px; }
.dv-thumb { background: none; border: 0; cursor: pointer; color: #DDD; display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--font); }
.dv-thumb-page { width: 62px; height: 80px; background: #fff; padding: 8px 6px; display: flex; flex-direction: column; gap: 5px; border: 3px solid transparent; }
.dv-thumb-page i { display: block; height: 3px; background: #D5D5D9; }
.dv-thumb-page i:nth-child(1) { width: 80%; background: #444; }
.dv-thumb-page i:nth-child(2) { width: 60%; background: var(--red); }
.dv-thumb.active .dv-thumb-page { border-color: #8AB4F8; }
.dv-thumb small { font-size: 10px; }
.dv-pages { flex: 1; overflow: auto; background: #3A3A3E; padding: 16px; }
.dv-zoom-wrap { transform-origin: top center; transition: transform .2s; }
.dv-sheet { background: #fff; max-width: 560px; margin: 0 auto 16px; padding: 30px 34px; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); color: #111; }
.dv-sheet h3 { font-size: 16px; font-weight: 700; text-transform: uppercase; line-height: 1.2; }
.dv-sheet h4 { font-size: 14px; font-weight: 400; text-transform: uppercase; }
.dv-sheet h5 { font-size: 10px; font-weight: 700; text-transform: uppercase; margin-bottom: 18px; }
.dv-sheet h6 { font-size: 10px; font-weight: 700; text-transform: uppercase; padding-bottom: 6px; border-bottom: 2px solid var(--red); margin-bottom: 4px; }
.dv-agenda { width: 100%; border-collapse: collapse; font-size: 9.5px; }
.dv-agenda td { padding: 7px 0; border-bottom: 1px solid #E8E8EA; vertical-align: top; }
.dv-agenda td:first-child { width: 96px; color: #333; }
.dv-agenda strong { display: block; font-weight: 600; }
.dv-agenda span { display: block; color: #444; }
.dv-agenda em { color: var(--red); font-style: normal; }
.dv-agenda tr.break td { color: #888; font-style: italic; }
.dv-note { font-size: 11px; color: var(--muted); margin-top: 8px; display: flex; align-items: center; gap: 8px; }

/* 6c. Sidebar */
.ed-sidebar { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 12px; margin-top: 46px; }
.ed-info { background: #fff; border: 1px solid var(--border); box-shadow: 0 6px 22px rgba(0, 0, 0, .07); padding: 6px 16px; margin-bottom: 16px; }
.ed-info-item { display: flex; gap: 14px; padding: 16px 0; }
.ed-info-item:not(:last-child) { border-bottom: 1px solid var(--border); }
.ed-info-item i { color: var(--red); font-size: 18px; width: 20px; text-align: center; margin-top: 2px; }
.ed-info-item h5 { font-size: 11px; font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.ed-info-item p { font-size: 11.5px; line-height: 1.65; }

/* =========================================================
   7. FAQ
   ========================================================= */
.ed-faq { padding: 10px 0 30px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; align-items: start; }
.faq-item { border: 1px solid var(--border); box-shadow: 0 3px 12px rgba(0, 0, 0, .04); background: #fff; }
.faq-q {
  width: 100%; background: none; border: 0; padding: 12px 14px; cursor: pointer; text-align: left;
  font-family: var(--font); font-size: 12.5px; font-weight: 600; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q i { font-size: 11px; transition: transform .25s; }
.faq-q:hover { color: var(--red); }
.faq-item.open .faq-q { color: var(--red); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 14px 14px; font-size: 12.5px; line-height: 1.65; color: var(--muted); }

/* =========================================================
   8. RELATED EVENTS (re-uses .event-card from style.css)
   ========================================================= */
.ed-related { padding: 10px 0 40px; }
.related-grid .event-card { grid-template-columns: 36% 64%; }
.related-grid .event-card .thumb { display: block; }
.related-grid .event-card h3 a:hover { color: var(--red); }
.main-nav .dropdown a.current { color: var(--red); font-weight: 600; }
.related-grid .event-card .thumb { min-height: 170px; }
.related-grid .event-card h3 { font-size: 16px; }
.related-grid .event-card .body { padding: 14px 16px; }
.related-grid .event-card .meta { font-size: 11.5px; gap: 6px; margin-bottom: 12px; }

/* =========================================================
   9. BOTTOM OFFER STRIP
   ========================================================= */
.ed-strip { background: var(--red); color: #fff; }
.ed-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.ed-strip-text { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ed-strip-num { font-size: 30px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.ed-strip-num i { font-size: 24px; }
.ed-strip p { font-size: 14px; }
.ed-strip .btn { padding: 10px 24px; }

/* =========================================================
   10. FOOTER TWEAKS
   ========================================================= */
.footer-tagline { font-size: 11.5px; color: #BDBDC2; margin-top: 12px; max-width: 220px; line-height: 1.6; }
.footer-bottom { margin-top: 26px; }

/* =========================================================
   11. RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .ed-hero h1 { font-size: 38px; }
  .ed-layout { grid-template-columns: 1fr 260px; }
  .facilitators { grid-template-columns: repeat(2, 1fr); }
  .ed-attend-list { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .ed-attend-list li:nth-child(3) { border-right: 0; }
  .ed-attend-list li:nth-child(4) { padding-left: 0; }
}

@media (max-width: 900px) {
  .ed-hero { grid-template-columns: 1fr; }
  .ed-hero-text { justify-content: flex-start; }
  .ed-hero-inner { max-width: none; padding: 18px 24px 36px; }
  .ed-hero-media { order: -1; }
  .ed-why .container { grid-template-columns: 1fr; }
  .ed-why-text { padding-right: 0; border-right: 0; margin-bottom: 26px; }
  .ed-leave { padding-left: 0; }
  .ed-layout { grid-template-columns: 1fr; }
  .ed-sidebar { position: static; margin-top: 0; }
  .facilitators { grid-template-columns: repeat(4, 1fr); }

  /* Dropdown becomes an inline list in the mobile menu */
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; padding: 0 0 8px 12px; min-width: 0; display: none !important; }
  .has-dropdown.open .dropdown { display: block !important; }
  .main-nav .dropdown li { border-bottom: 0; }
  .main-nav .dropdown a { padding: 8px 0; }
}

@media (max-width: 640px) {
  .ed-hero h1 { font-size: 30px; }
  .ed-subtitle { font-size: 17px; }
  .ed-offer .container { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ed-offer .btn { margin-left: 0; }
  .ed-leave-list { grid-template-columns: 1fr; }
  .ed-attend-list { grid-template-columns: 1fr 1fr; }
  .ed-attend-list li { padding: 4px 10px 4px 0 !important; border-right: 0 !important; }
  .facilitators { grid-template-columns: 1fr 1fr; }
  .dv-body { height: 360px; }
  .dv-thumbs { display: none; }
  .dv-sheet { padding: 20px 18px; }
  .dv-agenda td:first-child { width: 78px; }
  .faq-grid { grid-template-columns: 1fr; }
  .ed-strip .container { justify-content: center; text-align: center; }
  .ed-strip-text { justify-content: center; }
  .related-grid .event-card { grid-template-columns: 38% 62%; }
}

/* Programme is view-only: never print it */
@media print {
  .doc-viewer, .dv-note { display: none !important; }
}
