/*
 * ============================================================
 *  FTW Events Manager — ftw-events-frontend.css  v1.7.0
 *  Design direction: Editorial authority. Navy owns structure,
 *  red is a precise accent, white space does the heavy lifting.
 * ============================================================
 *
 *  font-family: inherit everywhere — picks up Astra Customizer fonts.
 *
 *  TABLE OF CONTENTS
 *   1.  Design Tokens
 *   2.  Reset & Page Shell
 *   3.  Container
 *   4.  Section Base
 *   5.  Buttons
 *   6.  Badges
 *   7.  Hero Banner
 *   8.  Info Bar
 *   9.  Agenda
 *  10.  Speakers
 *  11.  Video
 *  12.  Countdown
 *  13.  Sponsors
 *  14.  Archive
 *  15.  Body / Description
 *  16.  Responsive
 * ============================================================ */


/* ============================================================
   1.  DESIGN TOKENS
   ============================================================ */
:root {
  --ftw-ev-navy:         #1B2F5B;
  --ftw-ev-navy-deep:    #0e1d3a;
  --ftw-ev-navy-mid:     #243a6e;
  --ftw-ev-navy-light:   #2d4a88;
  --ftw-ev-red:          #C8102E;
  --ftw-ev-red-dark:     #9e0d24;
  --ftw-ev-gold:         #B8922A;
  --ftw-ev-gold-light:   #d4aa4e;

  --ftw-ev-white:        #ffffff;
  --ftw-ev-cream:        #f9fafc;
  --ftw-ev-gray-50:      #f4f6fb;
  --ftw-ev-gray-100:     #eaecf5;
  --ftw-ev-gray-200:     #d2d7e8;
  --ftw-ev-gray-500:     #7a85a0;
  --ftw-ev-gray-700:     #3a4258;
  --ftw-ev-gray-900:     #141926;

  --ftw-ev-section-pad:  88px;
  --ftw-ev-gap:          28px;
  --ftw-ev-r-sm:         4px;
  --ftw-ev-r-md:         10px;
  --ftw-ev-r-lg:         16px;

  --ftw-ev-shadow-xs:    0 1px 4px   rgba(14,29,58,.06);
  --ftw-ev-shadow-sm:    0 4px 16px  rgba(14,29,58,.09);
  --ftw-ev-shadow-md:    0 8px 32px  rgba(14,29,58,.14);
  --ftw-ev-shadow-lg:    0 20px 64px rgba(14,29,58,.22);

  --ftw-ev-ease:         .25s cubic-bezier(.4,0,.2,1);
  --ftw-ev-hero-min-h:   560px;
}


/* ============================================================
   2.  RESET & PAGE SHELL
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.ftw-ev-fullwidth-page { overflow-x: hidden; }
#ftw-ev-main               { width: 100%; overflow-x: hidden; }

.ftw-ev-single img,
.ftw-ev-archive img { max-width: 100%; height: auto; display: block; }


/* ============================================================
   3.  CONTAINER
   ============================================================ */
.ftw-ev-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}


/* ============================================================
   4.  SECTION BASE
   ============================================================ */
.ftw-ev-section {
  padding: var(--ftw-ev-section-pad) 0;
  position: relative;
}

/* ── Eyebrow + heading + accent line ── */
.ftw-ev-section__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: inherit;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ftw-ev-red);
  margin-bottom: 14px;
}
.ftw-ev-section__eyebrow::before,
.ftw-ev-section__eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: .5;
}

.ftw-ev-section__heading {
  font-family: inherit;
  font-size: clamp(1.9rem, 2.8vw, 2.8rem);
  font-weight: 700;
  color: var(--ftw-ev-navy);
  text-align: center;
  line-height: 1.15;
  margin-bottom: 56px;
}

/* Inverted heading (on dark backgrounds) */
.ftw-ev-section--dark .ftw-ev-section__heading { color: #fff; }
.ftw-ev-section--dark .ftw-ev-section__eyebrow { color: var(--ftw-ev-gold-light); }


/* ============================================================
   5.  BUTTONS
   ============================================================ */
.ftw-ev-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 36px;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1;
  transition: all var(--ftw-ev-ease);
  white-space: nowrap;
}
.ftw-ev-btn:hover { text-decoration: none; }

.ftw-ev-btn--primary {
  background: var(--ftw-ev-red);
  color: #fff;
  border-color: var(--ftw-ev-red);
}
.ftw-ev-btn--primary:hover {
  background: var(--ftw-ev-red-dark);
  border-color: var(--ftw-ev-red-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200,16,46,.4);
}

.ftw-ev-btn--ghost {
  background: transparent;
  color: rgba(255,255,255,.9);
  border-color: rgba(255,255,255,.45);
}
.ftw-ev-btn--ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.85);
  color: #fff;
  transform: translateY(-1px);
}


/* ============================================================
   6.  BADGES
   ============================================================ */
.ftw-ev-badge {
  display: inline-block;
  font-family: inherit;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  line-height: 1.4;
}
.ftw-ev-badge--sold-out { background: var(--ftw-ev-red);      color: #fff; }
.ftw-ev-badge--upcoming { background: var(--ftw-ev-navy);     color: #fff; }
.ftw-ev-badge--past     { background: var(--ftw-ev-gray-500); color: #fff; }


/* ============================================================
   7.  HERO BANNER
   ============================================================ */
.ftw-ev-hero {
  position: relative;
  width: 100%;
  min-height: var(--ftw-ev-hero-min-h);
  background: var(--ftw-ev-navy-deep);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Layered overlay system:
   1. Left-heavy gradient to ensure text legibility over any photo
   2. Subtle vignette for cinematic depth
   3. Noise texture for richness */
.ftw-ev-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Layer 1: Primary readability gradient */
  background:
    linear-gradient(105deg,
      rgba(9,16,36,.95)   0%,
      rgba(9,16,36,.80)  35%,
      rgba(9,16,36,.45)  60%,
      rgba(9,16,36,.10)  100%),
    /* Layer 2: Bottom vignette */
    linear-gradient(to top,
      rgba(9,16,36,.6)   0%,
      transparent        35%),
    /* Layer 3: Top vignette */
    linear-gradient(to bottom,
      rgba(9,16,36,.3)   0%,
      transparent        20%);
}

/* Fine noise texture for depth */
.ftw-ev-hero__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
  opacity: .4;
}

/* Left brand anchor removed per design direction v1.9.0 */

.ftw-ev-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
}

/* Eyebrow */
.ftw-ev-hero__eyebrow {
  font-family: inherit;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ftw-ev-hero__eyebrow::before {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: var(--ftw-ev-red);
  flex-shrink: 0;
}

/* Headline — large, tight, confident */
.ftw-ev-hero__title {
  font-family: inherit;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.05;
  max-width: 620px;
  margin-bottom: 36px;
  /* Subtle letter-spacing for authority */
  letter-spacing: -.01em;
}

/* Sub-brand logo */
.ftw-ev-hero__logo {
  max-height: 110px;
  max-width: 440px;
  width: auto;
  margin-bottom: 28px;
  filter: brightness(0) invert(1);
}

/* CTA row */
.ftw-ev-hero__ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* Presented by */
.ftw-ev-hero__presented-by {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px;
  padding: 12px 20px;
  backdrop-filter: blur(8px);
}
.ftw-ev-hero__presented-by span {
  font-family: inherit;
  font-size: .65rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .12em;
  white-space: nowrap;
}
.ftw-ev-hero__presented-by img {
  max-height: 38px;
  max-width: 150px;
  width: auto;
  filter: brightness(0) invert(1);
}
.ftw-ev-hero__presented-by strong {
  color: #fff;
  font-family: inherit;
  font-size: .9rem;
}


/* ============================================================
   8.  INFO BAR
   ============================================================ */
.ftw-ev-infobar {
  background: var(--ftw-ev-navy-deep);
  position: relative;
  overflow: hidden;
}

/* Blueprint grid background */
.ftw-ev-infobar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Gold accent top line */
.ftw-ev-infobar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--ftw-ev-red) 0%, var(--ftw-ev-gold) 50%, transparent 100%);
}

.ftw-ev-infobar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 1;
}

.ftw-ev-infobar__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 28px;
  border-right: 1px solid rgba(255,255,255,.06);
  transition: background var(--ftw-ev-ease);
}
.ftw-ev-infobar__col:last-child { border-right: none; }
.ftw-ev-infobar__col:hover {
  background: rgba(255,255,255,.035);
}

/* Glowing hover accent */
.ftw-ev-infobar__col:hover .ftw-ev-infobar__label {
  color: var(--ftw-ev-gold-light);
}

.ftw-ev-infobar__label {
  font-family: inherit;
  font-size: .72rem;    /* increased — Change #6 */
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 12px;
  transition: color var(--ftw-ev-ease);
}

.ftw-ev-infobar__value {
  font-family: inherit;
  font-size: 1.2rem;    /* increased from 1rem — Change #6 */
  font-weight: 600;
  color: rgba(255,255,255,.92);
  line-height: 1.5;
}

.ftw-ev-infobar__link {
  color: rgba(255,255,255,.92);
  text-decoration: none;
  transition: color var(--ftw-ev-ease);
}
.ftw-ev-infobar__link:hover { color: var(--ftw-ev-gold-light); }

.ftw-ev-infobar .ftw-ev-badge--sold-out {
  font-size: .72rem;
  padding: 8px 18px;
}


/* ============================================================
   9.  AGENDA
   ============================================================ */
.ftw-ev-agenda {
  background: var(--ftw-ev-gray-50);
  overflow: hidden;
}

/* Angled shape at top */
.ftw-ev-agenda::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(to right,
    var(--ftw-ev-navy) 0%,
    var(--ftw-ev-navy-light) 50%,
    var(--ftw-ev-navy) 100%);
}

.ftw-ev-agenda__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
}

.ftw-ev-agenda__tab {
  font-family: inherit;
  font-size: .78rem;
  font-weight: 700;
  padding: 11px 28px;
  border: 1.5px solid var(--ftw-ev-gray-200);
  border-radius: 2px;
  background: #fff;
  color: var(--ftw-ev-gray-700);
  cursor: pointer;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: all var(--ftw-ev-ease);
  box-shadow: var(--ftw-ev-shadow-xs);
}
.ftw-ev-agenda__tab:hover {
  border-color: var(--ftw-ev-navy);
  color: var(--ftw-ev-navy);
  transform: translateY(-1px);
  box-shadow: var(--ftw-ev-shadow-sm);
}
.ftw-ev-agenda__tab.is-active {
  background: var(--ftw-ev-navy);
  border-color: var(--ftw-ev-navy);
  color: #fff;
  box-shadow: 0 4px 16px rgba(27,47,91,.3);
}

.ftw-ev-agenda__panel       { display: none; animation: ftw-ev-fade-in .3s ease; }
.ftw-ev-agenda__panel.is-active { display: block; }
.ftw-ev-agenda__panel:first-child:last-child { display: block; }

@keyframes ftw-ev-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ftw-ev-agenda__schedule {
  font-family: inherit;
  font-size: .975rem;
  line-height: 1.8;
  color: var(--ftw-ev-gray-700);
  max-width: 780px;
  margin: 0 auto 28px;
  background: #fff;
  padding: 36px 44px;
  border-radius: var(--ftw-ev-r-md);
  box-shadow: var(--ftw-ev-shadow-sm);
  border-top: 3px solid var(--ftw-ev-navy);
  position: relative;
}
/* Navy corner accent */
.ftw-ev-agenda__schedule::before {
  content: '';
  position: absolute;
  top: -3px; left: 0;
  width: 48px;
  height: 3px;
  background: var(--ftw-ev-red);
}
.ftw-ev-agenda__schedule p { margin-bottom: 10px; }
.ftw-ev-agenda__schedule p:last-child { margin-bottom: 0; }
.ftw-ev-agenda__schedule strong,
.ftw-ev-agenda__schedule b { color: var(--ftw-ev-navy); }

.ftw-ev-agenda__cta { text-align: center; margin-top: 24px; }


/* ============================================================
  10.  SPEAKERS
   ============================================================ */
.ftw-ev-speakers {
  background: #fff;
  overflow: hidden;
}

/* Watermark now rendered as a real element — controlled via ACF field.
   Default is hidden (no watermark rendered in PHP unless admin sets text). */

.ftw-ev-speakers__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 52px 36px;
}

.ftw-ev-speaker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 196px;    /* 168px wrap + 28px for ring + breathing room */
  transition: transform var(--ftw-ev-ease);
}
.ftw-ev-speaker-card:hover { transform: translateY(-6px); }

/* Clean circle — white mat + navy border, red on hover */
/* ── Speaker photo circle ─────────────────────────────────────
   Single source of truth: the WRAP owns the size and the clip.
   The img uses position:absolute + inset:0 so the browser's
   natural image dimensions can never influence layout.
   border-radius/border/box-shadow are only on the WRAP.
   ─────────────────────────────────────────────────────────── */
.ftw-ev-speaker-card__photo-wrap {
  /* Fixed rigid square — never influenced by img natural size */
  position: relative;
  width: 168px;
  height: 168px;
  min-width: 168px;
  min-height: 168px;
  flex-shrink: 0;

  /* Circle */
  border-radius: 50%;
  overflow: hidden;       /* clips everything inside to circle */

  margin: 0 auto 22px;

  /* Ring: white gap + navy outer ring + drop shadow, all box-shadow */
  box-shadow:
    0 0 0 5px #fff,
    0 0 0 8px var(--ftw-ev-navy),
    0 8px 24px rgba(14,29,58,.20);
  transition: box-shadow var(--ftw-ev-ease);
}
.ftw-ev-speaker-card:hover .ftw-ev-speaker-card__photo-wrap {
  box-shadow:
    0 0 0 5px #fff,
    0 0 0 8px var(--ftw-ev-red),
    0 10px 32px rgba(200,16,46,.25);
}

/* Image: absolute-fill — ignores natural dimensions entirely */
.ftw-ev-speaker-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  /* No border-radius, border, or box-shadow here — wrap owns all of that */
  border-radius: 0;
  border: none;
  box-shadow: none;
}

/* Placeholder: same absolute-fill approach */
.ftw-ev-speaker-card__photo--placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--ftw-ev-navy) 0%, var(--ftw-ev-navy-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}
.ftw-ev-speaker-card__photo--placeholder span {
  font-family: inherit;
  font-size: 3.2rem;
  color: #fff;
  font-weight: 700;
}

.ftw-ev-speaker-card__name {
  font-family: inherit;
  font-size: 1.05rem;    /* increased from .95rem */
  font-weight: 700;
  color: var(--ftw-ev-navy);
  margin: 0 0 5px;
  line-height: 1.25;
}
.ftw-ev-speaker-card__title {
  font-family: inherit;
  font-size: .875rem;    /* increased from .75rem */
  color: var(--ftw-ev-red);
  font-weight: 600;
  margin: 0 0 3px;
  line-height: 1.35;
}
.ftw-ev-speaker-card__org {
  font-family: inherit;
  font-size: .825rem;    /* increased from .72rem */
  color: var(--ftw-ev-gray-500);
  margin: 0;
  line-height: 1.4;
}


/* ============================================================
  11.  VIDEO
   ============================================================ */
.ftw-ev-video {
  background: var(--ftw-ev-navy-deep);
  position: relative;
  overflow: hidden;
}

/* Video watermark rendered as real element when data-year is set */

/* Diagonal light streak */
.ftw-ev-video::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 40%;
  height: 200%;
  background: linear-gradient(105deg,
    transparent 0%,
    rgba(255,255,255,.015) 50%,
    transparent 100%);
  transform: skewX(-20deg);
  pointer-events: none;
}

.ftw-ev-video .ftw-ev-section__heading { color: #fff; }

.ftw-ev-video__embed {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--ftw-ev-r-md);
  overflow: hidden;
  box-shadow: var(--ftw-ev-shadow-lg);
  /* Red+navy border glow */
  outline: 1px solid rgba(200,16,46,.35);
  outline-offset: 6px;
}
.ftw-ev-video__embed iframe,
.ftw-ev-video__embed embed,
.ftw-ev-video__embed object {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* ============================================================
  12.  COUNTDOWN
   ============================================================ */
.ftw-ev-countdown {
  padding: 60px 0;
  background: var(--ftw-ev-navy);
  position: relative;
  overflow: hidden;
}

/* Concentric rings — subtle depth effect */
.ftw-ev-countdown::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center,
      rgba(200,16,46,.08)  0%,
      rgba(200,16,46,.04) 40%,
      transparent         70%);
  pointer-events: none;
}

.ftw-ev-countdown__timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  position: relative;
}

.ftw-ev-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 108px;
  padding: 24px 18px 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--ftw-ev-r-md);
  position: relative;
  overflow: hidden;
}
/* Top accent per unit */
.ftw-ev-countdown__unit::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--ftw-ev-red);
  opacity: .7;
}

.ftw-ev-countdown__num {
  font-family: inherit;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.ftw-ev-countdown__label {
  font-family: inherit;
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
  margin-top: 10px;
}
.ftw-ev-countdown__sep {
  font-size: 2.4rem;
  font-weight: 300;
  color: rgba(255,255,255,.2);
  padding-bottom: 28px;
  align-self: center;
  user-select: none;
}


/* ============================================================
  13.  SPONSORS
   ============================================================ */
.ftw-ev-sponsors {
  background: var(--ftw-ev-cream);
  position: relative;
  overflow: hidden;
}

/* Decorative circle blob removed v2.0.1 — was bleeding outside container */

.ftw-ev-sponsors .ftw-ev-container { position: relative; z-index: 1; }

.ftw-ev-sponsors__tier { margin-bottom: 64px; }
.ftw-ev-sponsors__tier:last-child { margin-bottom: 0; }

/* Tier label with decorative lines */
.ftw-ev-sponsors__tier-label {
  font-family: inherit;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ftw-ev-gray-500);
  margin: 0 0 36px;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.ftw-ev-sponsors__tier-label::before,
.ftw-ev-sponsors__tier-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--ftw-ev-gray-200), transparent);
}

.ftw-ev-sponsors__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px 72px;    /* increased for larger logos */
}

.ftw-ev-sponsors__item {
  transition: transform var(--ftw-ev-ease), filter var(--ftw-ev-ease);
}
.ftw-ev-sponsors__item img {
  display: block;
  object-fit: contain;
  opacity: .72;
  filter: grayscale(20%) contrast(1.05);
  transition: all var(--ftw-ev-ease);
}
.ftw-ev-sponsors__item:hover { transform: translateY(-3px); }
.ftw-ev-sponsors__item:hover img {
  opacity: 1;
  filter: grayscale(0%) contrast(1);
}

/* Sponsor logo sizes — substantially increased v2.0.3
   Logos need to be large enough to be recognisable at a glance. */
.ftw-ev-sponsors__item--presenting img { max-height: 140px; max-width: 420px; min-height: 80px;  }
.ftw-ev-sponsors__item--large img      { max-height: 110px; max-width: 280px; min-height: 70px;  }
.ftw-ev-sponsors__item--medium img     { max-height: 90px;  max-width: 220px; min-height: 60px;  }
.ftw-ev-sponsors__item--small img      { max-height: 70px;  max-width: 180px; min-height: 48px;  }

/* Presenting sponsor — special treatment */
.ftw-ev-sponsors__tier[data-tier="presenting-sponsor"] {
  background: #fff;
  border-radius: var(--ftw-ev-r-lg);
  padding: 56px 48px;  /* more vertical room for larger logo */
  box-shadow: var(--ftw-ev-shadow-sm);
  border: 1px solid var(--ftw-ev-gray-100);
  margin-bottom: 64px;
}
.ftw-ev-sponsors__tier[data-tier="presenting-sponsor"] .ftw-ev-sponsors__logos {
  flex-direction: column;
  gap: 16px;
}
.ftw-ev-sponsors__tier[data-tier="presenting-sponsor"] .ftw-ev-sponsors__tier-label {
  color: var(--ftw-ev-navy);
  font-size: .72rem;
}
.ftw-ev-sponsors__tier[data-tier="presenting-sponsor"] img { opacity: .9; }

.ftw-ev-sponsors__text-fallback {
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ftw-ev-gray-500);
}


/* ============================================================
  14.  ARCHIVE CARD GRID
   ============================================================ */
.ftw-ev-archive-page__header {
  background: var(--ftw-ev-navy-deep);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
/* Large typographic background element */
.ftw-ev-archive-page__header::before {
  content: 'EVENTS';
  position: absolute;
  bottom: -30px;
  right: 40px;
  font-family: inherit;
  font-size: 20vw;
  font-weight: 900;
  color: rgba(255,255,255,.025);
  line-height: 1;
  letter-spacing: -.05em;
  pointer-events: none;
  user-select: none;
}
/* Red accent bar */
.ftw-ev-archive-page__header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right,
    var(--ftw-ev-red) 0%,
    var(--ftw-ev-red) 40%,
    var(--ftw-ev-gold) 70%,
    transparent 100%);
}

.ftw-ev-archive-page__title {
  font-family: inherit;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  color: #fff;
  font-weight: 700;
  letter-spacing: -.01em;
  position: relative;
  z-index: 1;
}

.ftw-ev-archive { padding: var(--ftw-ev-section-pad) 0; background: var(--ftw-ev-gray-50); }

.ftw-ev-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ftw-ev-gap);
}

.ftw-ev-card {
  background: #fff;
  border-radius: var(--ftw-ev-r-md);
  overflow: hidden;
  box-shadow: var(--ftw-ev-shadow-xs);
  transition: all var(--ftw-ev-ease);
  border: 1px solid var(--ftw-ev-gray-100);
}
.ftw-ev-card:hover {
  box-shadow: var(--ftw-ev-shadow-md);
  transform: translateY(-6px);
}

.ftw-ev-card__link { display: block; text-decoration: none; color: inherit; height: 100%; }

.ftw-ev-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ftw-ev-navy);
}
.ftw-ev-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.ftw-ev-card:hover .ftw-ev-card__thumb img { transform: scale(1.06); }

.ftw-ev-card__thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--ftw-ev-navy) 0%, var(--ftw-ev-navy-light) 100%);
}

.ftw-ev-card__type-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--ftw-ev-navy);
  color: #fff;
  font-family: inherit;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 2px;
}

.ftw-ev-card__body { padding: 24px 26px 28px; }

.ftw-ev-card__date {
  font-family: inherit;
  font-size: .7rem;
  font-weight: 700;
  color: var(--ftw-ev-red);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 8px;
}
.ftw-ev-card__title {
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ftw-ev-navy);
  line-height: 1.3;
  margin-bottom: 8px;
}
.ftw-ev-card__venue {
  font-family: inherit;
  font-size: .95rem;   /* increased from .8rem — Change #4 */
  line-height: 1.35;   /* tighter than default — Change #4 */
  color: var(--ftw-ev-gray-500);
  margin-bottom: 14px;
}
.ftw-ev-archive__empty {
  font-family: inherit;
  text-align: center;
  color: var(--ftw-ev-gray-500);
  padding: 72px 0;
  font-size: .95rem;
}


/* ============================================================
  15.  BODY / DESCRIPTION
   ============================================================ */
.ftw-ev-body {
  background: #fff;
  padding: var(--ftw-ev-section-pad) 0;
}

.ftw-ev-description {
  max-width: 820px;
  margin: 0 auto;
  font-family: inherit;
  font-size: 1.025rem;
  line-height: 1.8;
  color: var(--ftw-ev-gray-700);
}
.ftw-ev-description p  { margin-bottom: 1.3em; }
.ftw-ev-description h2,
.ftw-ev-description h3 {
  font-family: inherit;
  color: var(--ftw-ev-navy);
  margin: 1.6em 0 .5em;
}
.ftw-ev-description a {
  color: var(--ftw-ev-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ftw-ev-description a:hover { color: var(--ftw-ev-red-dark); }
.ftw-ev-description strong  { color: var(--ftw-ev-navy); }


/* ============================================================
  16.  RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .ftw-ev-container        { padding: 0 32px; }
  .ftw-ev-archive__grid    { grid-template-columns: repeat(2, 1fr); }
  .ftw-ev-infobar__grid    { grid-template-columns: repeat(2, 1fr); }
  .ftw-ev-infobar__col:nth-child(2)  { border-right: none; }
  .ftw-ev-infobar__col:nth-child(1),
  .ftw-ev-infobar__col:nth-child(2)  {
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
}

@media (max-width: 640px) {
  :root {
    --ftw-ev-section-pad: 56px;
    --ftw-ev-hero-min-h:  340px;
  }
  .ftw-ev-container          { padding: 0 20px; }
  .ftw-ev-hero__content      { padding: 48px 20px; }
  .ftw-ev-hero__title        { font-size: 2.2rem; }
  .ftw-ev-hero__ctas         { flex-direction: column; align-items: flex-start; }

  .ftw-ev-infobar__grid      { grid-template-columns: 1fr 1fr; }
  .ftw-ev-infobar__col:nth-child(odd)  { border-right: 1px solid rgba(255,255,255,.06); }
  .ftw-ev-infobar__col:nth-child(even) { border-right: none; }
  .ftw-ev-infobar__col:nth-child(1),
  .ftw-ev-infobar__col:nth-child(2)    {
    border-bottom: 1px solid rgba(255,255,255,.06);
  }

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

  .ftw-ev-speakers__grid     { gap: 36px 20px; }
  .ftw-ev-speaker-card       { width: 152px; }
  /* Wrap owns the size — img is position:absolute so only set wrap */
  .ftw-ev-speaker-card__photo-wrap {
    width: 124px;
    height: 124px;
    min-width: 124px;
    min-height: 124px;
  }

  .ftw-ev-agenda__tabs       { flex-direction: column; align-items: stretch; }
  .ftw-ev-agenda__schedule   { padding: 24px; }

  .ftw-ev-countdown__unit    { min-width: 68px; padding: 16px 10px 12px; }
  .ftw-ev-countdown__num     { font-size: 1.9rem; }
  .ftw-ev-countdown__sep     { display: none; }

  .ftw-ev-sponsors__tier[data-tier="presenting-sponsor"] { padding: 28px 20px; }

  .ftw-ev-video__embed       { border-radius: var(--ftw-ev-r-sm); }
}


/* ============================================================
  17.  JUMP NAVIGATION
      Sticky floating pill bar — appears after hero scrolls out.
      Tracks active section via JS scroll spy.
   ============================================================ */

/* ── Jump nav disabled v2.0.0 ──
   Conflicts with Astra's own sticky header nav.
   Shortcode [ftw_ev_jumpnav] still exists for opt-in use
   on pages that do NOT use Astra's sticky header.
   To re-enable, remove the display:none below. */
.ftw-ev-jumpnav {
  display: none !important;
}

.ftw-ev-jumpnav__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--ftw-ev-navy-deep);
  border-bottom: 2px solid rgba(200,16,46,.6);
  padding: 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ftw-ev-jumpnav__inner::-webkit-scrollbar { display: none; }

.ftw-ev-jumpnav__item {
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  padding: 14px 18px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;   /* align with container border */
  transition:
    color        var(--ftw-ev-ease),
    border-color var(--ftw-ev-ease);
}
.ftw-ev-jumpnav__item:hover {
  color: rgba(255,255,255,.9);
  border-bottom-color: rgba(255,255,255,.3);
  text-decoration: none;
}
.ftw-ev-jumpnav__item.is-active {
  color: #fff;
  border-bottom-color: var(--ftw-ev-red);
}

/* Register CTA — stands out as a pill button */
.ftw-ev-jumpnav__item--cta {
  background: var(--ftw-ev-red);
  color: #fff;
  border-radius: 2px;
  padding: 8px 20px;
  margin: 8px 8px 8px 16px;
  border-bottom: none;
  transition: background var(--ftw-ev-ease), transform var(--ftw-ev-ease);
}
.ftw-ev-jumpnav__item--cta:hover {
  background: var(--ftw-ev-red-dark);
  color: #fff;
  border-bottom: none;
  transform: translateY(-1px);
}
.ftw-ev-jumpnav__item--cta.is-active {
  background: var(--ftw-ev-red-dark);
  border-bottom: none;
  color: #fff;
}

/* Ensure body top doesn't get hidden under sticky nav
   JS will add padding-top when nav becomes visible */
body.ftw-ev-jumpnav-active {
  /* dynamically set by JS based on nav height */
}


/* ============================================================
  18.  REGISTRATION SECTION
   ============================================================ */

.ftw-ev-registration {
  background: var(--ftw-ev-gray-50);
  position: relative;
  overflow: hidden;
}

/* Subtle top accent */
.ftw-ev-registration::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right,
    var(--ftw-ev-red) 0%,
    var(--ftw-ev-red) 30%,
    var(--ftw-ev-navy) 100%);
}

.ftw-ev-registration__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.ftw-ev-registration__sub {
  font-family: inherit;
  font-size: .975rem;
  color: var(--ftw-ev-gray-700);
  line-height: 1.7;
  margin: -8px 0 0;
}

/* Form wrapper — white card, centered, max-width */
.ftw-ev-registration__form-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--ftw-ev-r-lg);
  padding: 48px 56px;
  box-shadow: var(--ftw-ev-shadow-md);
  border: 1px solid var(--ftw-ev-gray-100);
  position: relative;
}

/* Red corner accent on form card */
.ftw-ev-registration__form-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 56px; height: 4px;
  background: var(--ftw-ev-red);
  border-radius: var(--ftw-ev-r-lg) 0 0 0;
}

/* ── Formidable form style overrides ──
   These rules override Formidable's defaults to match FTW brand.
   All scoped to .ftw-ev-registration__form-wrap so they never
   affect other Formidable forms on the site. */

.ftw-ev-registration__form-wrap .frm_forms label,
.ftw-ev-registration__form-wrap .frm_forms .frm_primary_label {
  font-family: inherit;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ftw-ev-navy);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}

.ftw-ev-registration__form-wrap .frm_forms input[type="text"],
.ftw-ev-registration__form-wrap .frm_forms input[type="email"],
.ftw-ev-registration__form-wrap .frm_forms input[type="tel"],
.ftw-ev-registration__form-wrap .frm_forms input[type="number"],
.ftw-ev-registration__form-wrap .frm_forms select,
.ftw-ev-registration__form-wrap .frm_forms textarea {
  font-family: inherit;
  font-size: .95rem;
  color: var(--ftw-ev-gray-900);
  border: 1.5px solid var(--ftw-ev-gray-200);
  border-radius: var(--ftw-ev-r-sm);
  padding: 12px 16px;
  width: 100%;
  background: #fff;
  transition: border-color var(--ftw-ev-ease), box-shadow var(--ftw-ev-ease);
}

.ftw-ev-registration__form-wrap .frm_forms input:focus,
.ftw-ev-registration__form-wrap .frm_forms select:focus,
.ftw-ev-registration__form-wrap .frm_forms textarea:focus {
  outline: none;
  border-color: var(--ftw-ev-navy);
  box-shadow: 0 0 0 3px rgba(27,47,91,.1);
}

/* Submit button — brand red */
.ftw-ev-registration__form-wrap .frm_forms .frm_submit button,
.ftw-ev-registration__form-wrap .frm_forms input[type="submit"],
.ftw-ev-registration__form-wrap .frm_forms .frm_button_submit {
  font-family: inherit;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--ftw-ev-red) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--ftw-ev-r-sm) !important;
  padding: 15px 40px !important;
  cursor: pointer;
  transition: background var(--ftw-ev-ease), transform var(--ftw-ev-ease), box-shadow var(--ftw-ev-ease);
}
.ftw-ev-registration__form-wrap .frm_forms .frm_submit button:hover,
.ftw-ev-registration__form-wrap .frm_forms input[type="submit"]:hover {
  background: var(--ftw-ev-red-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(200,16,46,.35) !important;
}

/* Stripe card element */
.ftw-ev-registration__form-wrap .StripeElement {
  border: 1.5px solid var(--ftw-ev-gray-200);
  border-radius: var(--ftw-ev-r-sm);
  padding: 12px 16px;
  background: #fff;
  transition: border-color var(--ftw-ev-ease);
}
.ftw-ev-registration__form-wrap .StripeElement--focus {
  border-color: var(--ftw-ev-navy);
  box-shadow: 0 0 0 3px rgba(27,47,91,.1);
}

/* Error messages */
.ftw-ev-registration__form-wrap .frm_error_style,
.ftw-ev-registration__form-wrap .frm_forms .frm_error {
  color: var(--ftw-ev-red);
  font-size: .8rem;
  margin-top: 4px;
}

/* Sold out state */
.ftw-ev-registration__sold-out {
  text-align: center;
  padding: 48px 0;
}
.ftw-ev-registration__sold-out p {
  font-family: inherit;
  color: var(--ftw-ev-gray-700);
  margin-top: 16px;
  font-size: 1rem;
}

/* Notice (Formidable not active) */
.ftw-ev-notice {
  font-family: inherit;
  text-align: center;
  color: var(--ftw-ev-gray-500);
  padding: 24px;
  border: 1px dashed var(--ftw-ev-gray-200);
  border-radius: var(--ftw-ev-r-md);
}

/* Responsive form card */
@media (max-width: 640px) {
  .ftw-ev-registration__form-wrap {
    padding: 28px 20px;
  }
}


/* ============================================================
  19.  v1.9.0 ADDITIONS
      External link icon, agenda header, sponsors CTA,
      infobar maps link, agenda tab date/label layout
   ============================================================ */

/* ── External link icon ──────────────────────────────────── */
.ftw-ev-ext-icon {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-left: 5px;
  vertical-align: middle;
  opacity: .7;
  flex-shrink: 0;
  position: relative;
  top: -1px;
}

/* Maps link — venue name bold, rest normal weight */
.ftw-ev-infobar__link--maps {
  display: inline-flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 1px;
  text-align: center;
  align-items: center;
}
.ftw-ev-infobar__venue-name {
  font-weight: 700;
}

/* Coming Soon plain text */
.ftw-ev-infobar__coming-soon {
  opacity: .65;
  font-style: italic;
}

/* ── Agenda header (section eyebrow + heading + date range) ── */
.ftw-ev-agenda__header {
  text-align: center;
  margin-bottom: 48px;
}

.ftw-ev-agenda__date-range {
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ftw-ev-navy);
  letter-spacing: .02em;
  margin: -32px 0 0;
  opacity: .75;
}

/* ── Agenda tab — date + label stacked ──────────────────── */
.ftw-ev-agenda__tab {
  /* Override to allow stacked content */
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 120px;
}

.ftw-ev-agenda__tab-date {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .65;
  line-height: 1;
}
.ftw-ev-agenda__tab.is-active .ftw-ev-agenda__tab-date { opacity: .85; }

.ftw-ev-agenda__tab-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* ── Agenda panel header ─────────────────────────────────── */
.ftw-ev-agenda__panel-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ftw-ev-agenda__panel-title {
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ftw-ev-navy);
  margin: 0;
  line-height: 1.2;
}

.ftw-ev-agenda__panel-date {
  font-family: inherit;
  font-size: .85rem;
  color: var(--ftw-ev-gray-500);
  margin: 0;
  font-weight: 500;
}

/* ── Sponsors heading wrap ───────────────────────────────── */
.ftw-ev-sponsors__heading-wrap {
  text-align: center;
}

/* ── Become a Sponsor CTA block ──────────────────────────── */
.ftw-ev-sponsors__cta-block {
  margin-top: 64px;
  text-align: center;
  padding: 48px 40px;
  background: var(--ftw-ev-navy);
  border-radius: var(--ftw-ev-r-lg);
  position: relative;
  overflow: hidden;
}

/* Subtle diagonal lines on CTA block */
.ftw-ev-sponsors__cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,.02) 0, rgba(255,255,255,.02) 1px,
    transparent 1px, transparent 10px
  );
  pointer-events: none;
}

.ftw-ev-sponsors__cta-text {
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,.88);
  margin: 0 0 24px;
  position: relative;
  z-index: 1;
}

.ftw-ev-sponsors__cta-block .ftw-ev-btn--primary {
  position: relative;
  z-index: 1;
}

/* ── Responsive adjustments ──────────────────────────────── */
@media (max-width: 640px) {
  .ftw-ev-agenda__panel-header {
    flex-direction: column;
    gap: 4px;
  }
  .ftw-ev-agenda__tab {
    min-width: auto;
  }
  .ftw-ev-sponsors__cta-block {
    padding: 32px 24px;
  }
  .ftw-ev-infobar__value {
    font-size: 1rem;
  }
}


/* ============================================================
  20.  v2.0.0 — WATERMARK ELEMENTS, LOGO FIX, SECTION GAPS
   ============================================================ */

/* ── Shared watermark element ────────────────────────────── */
/* Rendered as a real <span> in PHP only when admin enters text.
   Hidden by default — admin opts in via ACF field. */
.ftw-ev-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: inherit;
  font-weight: 900;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: .08em;
  line-height: 1;
  z-index: 0;
}

/* Speakers watermark — reasonable size, navy on white */
.ftw-ev-watermark--speakers {
  font-size: clamp(4rem, 10vw, 9rem);  /* was 14vw — too large */
  color: var(--ftw-ev-navy);
  opacity: .025;
}

/* Sponsors watermark — slightly smaller, on cream bg */
.ftw-ev-watermark--sponsors {
  font-size: clamp(3.5rem, 8vw, 7rem); /* kept proportionate */
  color: var(--ftw-ev-navy);
  opacity: .04;
}

/* Ensure the section is positioned for absolute child */
.ftw-ev-has-watermark {
  position: relative;
  overflow: hidden;
}

/* ── Video watermark element ─────────────────────────────── */
/* Section itself sets data-year; we use a real element now
   rendered from PHP only when admin fills the field */
.ftw-ev-video[data-year]::after {
  content: attr(data-year);
  position: absolute;
  bottom: -24px;
  right: 32px;
  font-family: inherit;
  font-size: clamp(5rem, 14vw, 13rem);  /* was 28vw — absurd */
  font-weight: 900;
  color: rgba(255,255,255,.035);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -.04em;
  z-index: 0;
}
/* Only show when data-year is explicitly set to non-empty */
.ftw-ev-video:not([data-year])::after,
.ftw-ev-video[data-year=""]::after {
  display: none;
}

/* ── Fix #4: Presented-by logo in hero ───────────────────── */
/* Logo was rendering too small/white-boxed because of the
   filter:brightness(0)invert(1) forcing it white when it's
   already a color logo. Use contain + max dimensions only. */
.ftw-ev-hero__presented-by img {
  max-height: 48px;      /* slightly taller than before */
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Remove forced white inversion — show logo in its natural colors */
  filter: none;
  /* Frosted glass strip behind it ensures any logo color is readable */
}

/* The frosted glass container is already defined — just ensure
   it has enough padding for larger logos */
.ftw-ev-hero__presented-by {
  padding: 10px 20px;
  gap: 14px;
}

/* ── Fix the white box appearance: drop-shadow instead of hard border ── */
.ftw-ev-hero__presented-by {
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 6px;
}

/* ── Section boundary gap fix ────────────────────────────── */
/* Image 2 shows a white gap between speakers and video.
   Remove margin-bottom from speakers when video follows. */
.ftw-ev-speakers + .ftw-ev-video {
  margin-top: 0;
}

/* Remove double padding when sections are adjacent */
.ftw-ev-speakers { padding-bottom: var(--ftw-ev-section-pad); }
.ftw-ev-video    { padding-top: var(--ftw-ev-section-pad); }

/* ── Archive header watermark ────────────────────────────── */
/* Keep the 'EVENTS' ghost text but cap its size */
.ftw-ev-archive-page__header::before {
  font-size: clamp(6rem, 16vw, 14rem); /* was 20vw */
}

@media (max-width: 640px) {
  .ftw-ev-watermark--speakers { font-size: 5rem; }
  .ftw-ev-watermark--sponsors { font-size: 4rem; }
}


/* ============================================================
  21.  v2.0.2 — ARCHIVE FILTER BAR & GRID TRANSITIONS
   ============================================================ */

/* ── Filter bar ──────────────────────────────────────────── */
.ftw-ev-archive__filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.ftw-ev-archive__filter-btn {
  font-family: inherit;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 13px 32px;
  border-radius: 2px;
  border: 2px solid var(--ftw-ev-navy);
  background: transparent;
  color: var(--ftw-ev-navy);
  cursor: pointer;
  line-height: 1;
  transition:
    background-color var(--ftw-ev-ease),
    color            var(--ftw-ev-ease),
    border-color     var(--ftw-ev-ease),
    box-shadow       var(--ftw-ev-ease);
}

.ftw-ev-archive__filter-btn:hover {
  background: var(--ftw-ev-navy);
  color: #fff;
}

/* Active / selected state */
.ftw-ev-archive__filter-btn.is-active {
  background: var(--ftw-ev-navy);
  color: #fff;
  border-color: var(--ftw-ev-navy);
  box-shadow: 0 4px 16px rgba(27,47,91,.25);
  /* Subtle underline accent */
  position: relative;
}
.ftw-ev-archive__filter-btn.is-active::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--ftw-ev-red);
  border-radius: 2px;
}

/* ── Grid visibility states ──────────────────────────────── */
.ftw-ev-archive__grid {
  opacity: 1;
  transition: opacity .25s ease;
}

/* Hidden grid — out of flow but transition-able */
.ftw-ev-archive__grid--hidden {
  display: none;
  opacity: 0;
}

/* Visible grid */
.ftw-ev-archive__grid--visible {
  display: grid; /* restore grid layout */
  opacity: 1;
  animation: ftw-ev-grid-in .3s ease;
}

@keyframes ftw-ev-grid-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Ensure archive section has padding above the filter bar */
.ftw-ev-archive {
  padding-top: var(--ftw-ev-section-pad);
}

/* ── Empty state message ─────────────────────────────────── */
.ftw-ev-archive__empty {
  grid-column: 1 / -1;   /* span full grid width */
  text-align: center;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ftw-ev-gray-500);
  padding: 48px 0;
}

@media (max-width: 640px) {
  .ftw-ev-archive__filter-btn { padding: 12px 22px; }
  .ftw-ev-archive__filters    { gap: 10px; }
}


/* ============================================================
  22.  v2.0.3 — IMAGE FLOAT HELPERS (Fix #1)
      Apply class "ftw-ev-img-left" or "ftw-ev-img-right"
      to any image in the WP block editor via:
      Block → Advanced → Additional CSS class(es)
   ============================================================ */

.ftw-ev-description .ftw-ev-img-left,
.ftw-ev-description figure.ftw-ev-img-left,
.ftw-ev-description figure.ftw-ev-img-left img {
  float: left;
  margin: 4px 32px 20px 0;
  max-width: 50%;
  height: auto;
  clear: left;
}

.ftw-ev-description .ftw-ev-img-right,
.ftw-ev-description figure.ftw-ev-img-right,
.ftw-ev-description figure.ftw-ev-img-right img {
  float: right;
  margin: 4px 0 20px 32px;
  max-width: 50%;
  height: auto;
  clear: right;
}

/* Block editor wraps images in <figure> — handle both */
.ftw-ev-description figure.ftw-ev-img-left img,
.ftw-ev-description figure.ftw-ev-img-right img {
  max-width: 100%;
  width: 100%;
}

/* Clear helper */
.ftw-ev-clearfix,
.ftw-ev-description .ftw-ev-clearfix {
  clear: both;
  display: table;
  width: 100%;
}

/* Mobile: float collapses to full width */
@media (max-width: 640px) {
  .ftw-ev-description .ftw-ev-img-left,
  .ftw-ev-description .ftw-ev-img-right,
  .ftw-ev-description figure.ftw-ev-img-left,
  .ftw-ev-description figure.ftw-ev-img-right {
    float: none;
    margin: 0 0 20px 0;
    max-width: 100%;
  }
}

/* ── Speaker card responsive update ─────────────────────────
   Only resize the WRAP — img is position:absolute inset:0
   so it auto-fills whatever the wrap becomes. ── */
@media (max-width: 640px) {
  .ftw-ev-speaker-card__photo-wrap {
    width: 124px;
    height: 124px;
    min-width: 124px;
    min-height: 124px;
  }
  .ftw-ev-speaker-card {
    width: 148px;
  }
}
