/* ============================================================
   MD Black MBA – Hero Slider
   compositor-only transitions: opacity + transform only.
   No height/width/top/left — nothing that triggers layout.
   ============================================================ */

/* ── Container ── */
#hero-slider {
  position: relative;
  width: 100%;
  height: 100dvh;        /* dynamic viewport height — excludes mobile browser chrome */
  min-height: 560px;
  overflow: hidden;
  background: var(--off-white, #FAFAF7);
  contain: strict;        /* isolates layout/paint — prevents scroll jump on slide change */
}

/* ── Individual slides ── */
.hs-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 80px 88px;
  /* Default: invisible, shifted right */
  opacity: 0;
  transform: translateX(32px);
  pointer-events: none;
  z-index: 1;
  will-change: opacity, transform;
  transition: opacity var(--hs-dur, 650ms) ease,
              transform var(--hs-dur, 650ms) ease;
}

/* Active slide */
.hs-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
}

/* Entering from right (next) */
.hs-slide.slide-from-right {
  opacity: 0;
  transform: translateX(32px);
}

/* Entering from left (prev) */
.hs-slide.slide-from-left {
  opacity: 0;
  transform: translateX(-32px);
}

/* Exiting to left (next) */
.hs-slide.slide-exit-left {
  opacity: 0;
  transform: translateX(-32px);
  z-index: 1;
  pointer-events: none;
}

/* Exiting to right (prev) */
.hs-slide.slide-exit-right {
  opacity: 0;
  transform: translateX(32px);
  z-index: 1;
  pointer-events: none;
}

/* ── Background image ── */
.hs-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1);
  transition: transform 9s ease;
}
.hs-slide.is-active .hs-bg { transform: scale(1.04); }

/* ── Overlay layers ── */
/* Layer 1: global dark scrim over entire image */
.hs-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10,7,4,.40);
}

/* Layer 2: strong directional gradient left→right */
.hs-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      to right,
      rgba(10,7,4,.85) 0%,
      rgba(10,7,4,.70) 30%,
      rgba(10,7,4,.45) 55%,
      rgba(10,7,4,.10) 75%,
      rgba(10,7,4,.00) 88%
    ),
    linear-gradient(
      to top,
      rgba(10,7,4,.55) 0%,
      rgba(10,7,4,.00) 45%
    );
}

/* No-image slide: plain warm surface, overlays hidden */
.hs-slide--no-image .hs-bg      { background: var(--warm, #F3F1EB); }
.hs-slide--no-image .hs-scrim   { display: none; }
.hs-slide--no-image .hs-overlay { display: none; }

/* Grid texture overlay */
.hs-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(235,172,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(235,172,0,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Left gold bar accent */
.hs-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--gold, #EBAC00);
  z-index: 5;
}

/* ── Slide content ── */
.hs-content {
  position: relative;
  z-index: 4;
  max-width: 640px;
}

.hs-event-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(235,172,0,.12);
  border: 1px solid rgba(235,172,0,.35);
  backdrop-filter: blur(8px);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold, #EBAC00);
  margin-bottom: 16px;
}

.hs-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold, #EBAC00);
  animation: hsPulse 2s ease-in-out infinite;
}
@keyframes hsPulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.35; transform:scale(.65); }
}

.hs-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold, #EBAC00);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hs-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold, #EBAC00);
}

.hs-title {
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(44px, 5.5vw, 88px);
  font-weight: 700;
  line-height: 1.0;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: -.02em;
  text-shadow: 0 2px 24px rgba(0,0,0,.3);
}
.hs-title a { color: inherit; text-decoration: none; }

/* Default (no-events) slide heading */
.hs-default-heading {
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(52px, 6.5vw, 96px);
  font-weight: 700;
  line-height: .97;
  color: var(--ink, #111);
  max-width: 640px;
  margin-bottom: 20px;
  letter-spacing: -.025em;
}
.hs-default-heading em { font-style: italic; color: var(--red, #9E1D32); }

.hs-excerpt {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,.78);
  font-weight: 300;
  margin-bottom: 22px;
  max-width: 500px;
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hs-meta-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  backdrop-filter: blur(8px);
}

.hs-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* No-image slide: restore dark text */
.hs-slide--no-image .hs-eyebrow        { color: var(--red, #9E1D32); }
.hs-slide--no-image .hs-eyebrow::before { background: var(--red, #9E1D32); }
.hs-slide--no-image .hs-badge-dot      { background: var(--red, #9E1D32); }
.hs-slide--no-image .hs-title          { color: var(--ink, #111); text-shadow: none; }
.hs-slide--no-image .hs-excerpt        { color: var(--muted, #5A5650); text-shadow: none; }
.hs-slide--no-image .hs-meta-pill      { color: var(--muted, #5A5650); background: #fff; border-color: var(--border, #E8E3D8); backdrop-filter: none; }

/* ── Calendar card ── */
.hs-calendar {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  background: #fff;
  border: 1.5px solid var(--border, #E8E3D8);
  border-top: 5px solid var(--gold, #EBAC00);
  border-radius: 8px;
  padding: 28px 32px;
  text-align: center;
  min-width: 148px;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.hs-cal-month    { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red, #9E1D32); margin-bottom: 6px; }
.hs-cal-day      { font-family: var(--serif, Georgia, serif); font-size: 72px; font-weight: 700; color: var(--ink, #111); line-height: 1; }
.hs-cal-year     { font-size: 14px; color: var(--muted, #5A5650); margin-top: 2px; }
.hs-cal-countdown{ margin-top: 12px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-d, #C49100); border-top: 1px solid var(--border, #E8E3D8); padding-top: 10px; }
.hs-cal-countdown.today { color: var(--red, #9E1D32); }

/* ── Stats (default slide) ── */
.hs-stats {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: right;
}
.hs-stat-num   { font-family: var(--serif, Georgia, serif); font-size: 56px; font-weight: 700; color: var(--gold-d, #C49100); line-height: 1; }
.hs-stat-label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #5A5650); margin-top: 3px; }

/* ── Arrow controls ── */
.hs-arrows {
  position: absolute;
  bottom: 88px;
  right: 80px;
  z-index: 10;
  display: flex;
  gap: 8px;
}
.hs-arrow {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background .2s, border-color .2s, transform .15s;
  backdrop-filter: blur(8px);
}
.hs-arrow:hover { background: var(--gold, #EBAC00); border-color: var(--gold, #EBAC00); color: #000; transform: scale(1.08); }
.hs-arrow svg   { width: 18px; height: 18px; }

/* ── Dot indicators ── */
.hs-dots {
  position: absolute;
  bottom: 32px;
  left: 80px;
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
}
.hs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .25s, transform .25s;
}
.hs-dot.is-active  { background: var(--gold, #EBAC00); transform: scale(1.35); }
.hs-dot:hover:not(.is-active) { background: rgba(255,255,255,.6); }

/* ── Slide counter ── */
.hs-counter {
  position: absolute;
  top: calc(var(--header-height, 96px) + 24px);
  right: 80px;
  z-index: 10;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  letter-spacing: .08em;
}
.hs-counter strong { color: #fff; font-weight: 700; }

/* ════════════════════════════════════════════
   EVENTS ARCHIVE – card grid
   ════════════════════════════════════════════ */
.events-archive {
  padding: 100px 80px 88px;
  background: var(--white, #fff);
}
.events-archive-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 20px;
  flex-wrap: wrap;
}
.events-archive-header h1 {
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  color: var(--ink, #111);
  letter-spacing: -.02em;
}
.events-archive-header p {
  font-size: 17px;
  color: var(--muted, #5A5650);
  font-weight: 300;
  margin-top: 8px;
  max-width: 480px;
  line-height: 1.65;
}

/* Filter tabs */
.events-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.events-filter-btn {
  font-family: var(--sans, system-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border, #E8E3D8);
  background: transparent;
  color: var(--muted, #5A5650);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.events-filter-btn.is-active,
.events-filter-btn:hover {
  background: var(--red, #9E1D32);
  border-color: var(--red, #9E1D32);
  color: #fff;
}

/* Card grid */
.events-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.event-card {
  background: #fff;
  border: 1.5px solid var(--border, #E8E3D8);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-top: 3px solid transparent;
  transition: box-shadow .25s, transform .25s, border-top-color .25s;
}
.event-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.09);
  transform: translateY(-3px);
  border-top-color: var(--gold, #EBAC00);
}
.event-card-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--warm, #F3F1EB);
}
.event-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.event-card:hover .event-card-img-wrap img { transform: scale(1.04); }
.event-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  opacity: .25;
  background: linear-gradient(135deg, var(--warm, #F3F1EB), var(--border, #E8E3D8));
}

/* Date badge on card image */
.event-date-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--red, #9E1D32);
  padding: 10px 14px;
  border-radius: 5px;
  text-align: center;
  min-width: 52px;
  line-height: 1;
}
.event-badge-day   { font-family: var(--serif, Georgia, serif); font-size: 28px; font-weight: 700; color: #fff; display: block; }
.event-badge-month { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.78); margin-top: 1px; display: block; }

/* Type tag */
.event-type-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(17,17,17,.75);
  backdrop-filter: blur(6px);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold, #EBAC00);
}

/* Card body */
.event-card-body {
  padding: 22px 24px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.event-card-title {
  font-family: var(--serif, Georgia, serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--ink, #111);
  text-decoration: none;
  display: block;
  transition: color .2s;
}
.event-card-title:hover { color: var(--red, #9E1D32); }
.event-card-excerpt {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted, #5A5650);
  font-weight: 300;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-card-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.07);
}
.event-card-meta-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted, #5A5650);
}

/* Card CTA */
.event-card-footer { padding: 0 24px 22px; }
.event-card-cta {
  display: block;
  text-align: center;
  background: var(--red, #9E1D32);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 12px;
  border-radius: 4px;
  transition: background .2s;
  text-decoration: none;
}
.event-card-cta:hover { background: var(--red-d, #7A1526); color: #fff; }

/* Featured card (full-width first card) */
.event-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.event-card--featured .event-card-img-wrap { aspect-ratio: unset; min-height: 300px; }
.event-card--featured .event-card-body     { padding: 32px 36px 22px; }
.event-card--featured .event-card-title    { font-size: 24px; }
.event-card--featured .event-card-footer   { padding: 0 36px 32px; }

/* Empty state */
.events-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  border: 1px dashed rgba(0,0,0,.12);
  border-radius: 6px;
}
.events-empty-state h3 { font-family: var(--serif, Georgia, serif); font-size: 24px; margin-bottom: 10px; }
.events-empty-state p  { font-size: 15px; color: var(--muted, #5A5650); max-width: 380px; margin: 0 auto 20px; }

/* Pagination */
.events-pagination { margin-top: 56px; display: flex; justify-content: center; gap: 8px; }
.events-pagination a,
.events-pagination span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 4px; font-size: 14px; font-weight: 500; text-decoration: none; border: 1.5px solid var(--border, #E8E3D8); color: var(--ink, #111); transition: all .2s; }
.events-pagination a:hover     { background: var(--gold, #EBAC00); border-color: var(--gold, #EBAC00); color: #000; }
.events-pagination .current    { background: var(--red, #9E1D32); border-color: var(--red, #9E1D32); color: #fff; }

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
/* Mobile hero height — subtract header so it fits above fold */
@media (max-width: 768px) {
  #hero-slider { height: calc(100dvh - var(--header-height, 96px)); min-height: 480px; }
  .hs-slide    { padding: 0 24px 72px; }
  .hs-calendar, .hs-stats  { display: none; }
  .hs-arrows   { right: 24px; bottom: 72px; }
  .hs-counter  { right: 24px; }
  .hs-dots     { left: 24px; }
  .hs-scrim    { background: rgba(10,7,4,.55); }
  .hs-overlay  {
    background:
      linear-gradient(to right, rgba(10,7,4,.92) 0%, rgba(10,7,4,.82) 45%, rgba(10,7,4,.55) 75%, rgba(10,7,4,.18) 100%),
      linear-gradient(to top,   rgba(10,7,4,.65) 0%, rgba(10,7,4,.00) 50%);
  }
  .events-archive { padding: 88px 24px 64px; }
  .events-archive-header { flex-direction: column; align-items: flex-start; }
  .events-card-grid { grid-template-columns: 1fr 1fr; }
  .event-card--featured { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  #hero-slider { min-height: 440px; }
  .hs-title    { font-size: clamp(32px, 9vw, 48px); }
  .hs-excerpt  { display: none; }
  .hs-meta     { display: none; }
  .hs-buttons  { flex-direction: column; width: 100%; }
  .hs-bar      { width: 3px; }
  .events-card-grid { grid-template-columns: 1fr; }
  .event-card--featured .event-card-img-wrap { min-height: 220px; }
}
