/* ─── HERO ─── */

.events-hero {
  background: var(--black);
  padding: 130px var(--px) 80px;
  color: var(--white);
}

.events-hero-inner {
  max-width: 640px;
}

.events-hero .sec-tag {
  display: inline-block;
  margin-bottom: 20px;
}

.events-hero-h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}

.events-hero-p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .55);
}

/* ─── WRAP ─── */

.events-wrap {
  background: var(--bg-alt);
  min-height: 60vh;
  padding: 64px var(--px) 120px;
}

.events-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* ─── SECTION ─── */

.events-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.events-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, .35);
}

/* ─── FEATURED CARD ─── */

.event-card--featured {
  display: flex;
  align-items: stretch;
  background: #0d1340;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 32px rgba(28, 51, 255, .25);
}

.event-card--featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 48px rgba(28, 51, 255, .35);
}

.event-card-body {
  flex: 1;
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  gap: 32px;
}

.event-featured-img {
  width: 300px;
  flex-shrink: 0;
  overflow: hidden;
}

.event-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Cut-out speaker headshot on a transparent background: show it whole,
   standing on the bottom edge of the card, rather than cropping it. */
.event-featured-img--portrait img {
  object-fit: contain;
  object-position: bottom center;
}

.event-card-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.event-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .35);
  color: rgba(255, 255, 255, .85);
}

.event-badge--cohost {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .5);
  color: var(--white);
}

.event-card-name {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.event-card-sub {
  font-size: 18px;
  font-weight: 400;
  opacity: .65;
}

.event-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.event-card-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  opacity: .75;
}

.event-card-cta {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .3);
  padding: 10px 22px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}

.event-card--featured:hover .event-card-cta {
  background: rgba(255, 255, 255, .25);
  border-color: rgba(255, 255, 255, .5);
}

/* ─── DATE WATERMARK ─── */

.event-card-watermark {
  position: absolute;
  right: -8px;
  bottom: -32px;
  font-size: clamp(140px, 22vw, 220px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--white);
  opacity: .07;
  pointer-events: none;
  user-select: none;
}

/* ─── SPEAKER CARD ─── */

.event-card--speaker {
  display: flex;
  align-items: stretch;
  background: var(--black);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 32px rgba(0, 0, 0, .3);
  min-height: 240px;
}

.event-card--speaker:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, .45);
}

.event-speaker-body {
  flex: 1;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.event-speaker-body .event-badges {
  margin-bottom: 4px;
}

.event-speaker-body .event-card-name {
  font-size: clamp(24px, 3.5vw, 38px);
}

.event-speaker-body .event-card-sub {
  font-size: 15px;
  opacity: .5;
  margin-top: -6px;
}

.event-speaker-body .event-card-meta {
  margin-top: 2px;
}

.event-speaker-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .55);
  margin-top: 4px;
}

.event-speaker-body .event-card-cta {
  margin-top: 8px;
  align-self: flex-start;
}

.event-speaker-photo {
  width: 280px;
  flex-shrink: 0;
  overflow: hidden;
}

.event-speaker-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (max-width: 640px) {
  .event-card--speaker { flex-direction: column; }
  .event-speaker-photo { width: 100%; height: 220px; }
  .event-speaker-body { padding: 28px 24px; }
}

/* ─── STANDARD CARDS GRID ─── */

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.event-card--std {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 28px 24px;
  text-decoration: none;
  color: var(--black);
  transition: border-color .15s, box-shadow .15s, transform .2s;
  position: relative;
}

.event-card--std:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 24px rgba(28, 51, 255, .08);
  transform: translateY(-2px);
}

.event-std-top {
  display: flex;
}

.event-badge-dark {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .06);
  color: rgba(0, 0, 0, .5);
}

.event-badge-speaking {
  background: rgba(28, 51, 255, .08);
  color: var(--blue);
}

.event-std-name {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  flex: 1;
}

.event-std-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  color: rgba(0, 0, 0, .45);
}

.event-std-arrow {
  font-size: 16px;
  color: var(--blue);
  opacity: 0;
  transition: opacity .15s;
  align-self: flex-end;
}

.event-card--std:hover .event-std-arrow { opacity: 1; }

.event-card--past {
  opacity: .6;
  transition: opacity .15s;
}
a.event-card--past:hover { opacity: .9; }

.event-card--past .event-std-name {
  color: rgba(0, 0, 0, .55);
}

@media (max-width: 760px) {
  .events-grid { grid-template-columns: 1fr; }
}

/* ─── EMPTY STATE ─── */

.events-empty {
  padding: 40px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  text-align: center;
}

.events-empty p {
  font-size: 14px;
  color: rgba(0, 0, 0, .35);
}

/* ─── MOBILE ─── */

@media (max-width: 640px) {
  .events-hero { padding: 100px 20px 56px; }
  .events-wrap { padding: 40px 20px 80px; }

  .event-card--featured { flex-direction: column; }
  .event-featured-img { width: 100%; height: 240px; }

  .event-card-body {
    padding: 28px 24px;
    min-height: 0;
  }

  .event-card-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
