/* ===========================
   IBU Kongre – style.css
   Light / Stripe-inspired
   =========================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg: #ffffff;
  --color-surface: #f8fafc;
  --color-surface2: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;

  --color-text: #0f172a;
  --color-text-2: #334155;
  --color-text-3: #64748b;
  --color-text-4: #94a3b8;

  --color-primary: #3373c4;
  --color-primary-dark: #2b62aa;
  --color-primary-light: #cce3f2;
  --color-primary-soft: #e8f4fb;

  --color-success: #10b981;
  --color-success-light: #d1fae5;
  --color-warning: #f59e0b;
  --color-warning-light: #fef3c7;
  --color-danger: #ef4444;
  --color-danger-light: #fee2e2;
  --color-muted: #64748b;
  --color-muted-light: #f1f5f9;

  --color-online: #0ea5e9;
  --color-online-light: #e0f2fe;
  --color-hybrid: #3373c4;
  --color-hybrid-light: #cce3f2;
  --color-inperson: #10b981;
  --color-inperson-light: #d1fae5;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px 0 rgba(15,23,42,.04);
  --shadow-sm: 0 1px 3px 0 rgba(15,23,42,.08), 0 1px 2px -1px rgba(15,23,42,.06);
  --shadow-md: 0 4px 6px -1px rgba(15,23,42,.08), 0 2px 4px -2px rgba(15,23,42,.06);
  --shadow-lg: 0 10px 15px -3px rgba(15,23,42,.08), 0 4px 6px -4px rgba(15,23,42,.05);
  --shadow-xl: 0 20px 25px -5px rgba(15,23,42,.08), 0 8px 10px -6px rgba(15,23,42,.05);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.18s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- UTILITIES ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.hidden { display: none !important; }
.gradient-text {
  background: linear-gradient(135deg, #3373c4 0%, #0284c7 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 1px 3px rgba(51,115,196,.3), 0 4px 12px rgba(51,115,196,.2);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 2px 6px rgba(51,115,196,.35), 0 8px 20px rgba(51,115,196,.25);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text-2);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover {
  background: var(--color-surface);
  border-color: #cbd5e1;
}
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-search { border-radius: 0 var(--radius-md) var(--radius-md) 0; }

/* ---- HEADER ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-badge {
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}
.logo-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-link {
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-3);
  text-decoration: none;
  transition: all var(--transition);
}
.nav-link:hover { color: var(--color-text); background: var(--color-surface); }
.nav-link.active { color: var(--color-primary); background: var(--color-primary-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-2);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- HERO ---- */
.hero {
  padding: 80px 0 64px;
  text-align: center;
  background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,91,255,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border: 1px solid var(--color-primary-light);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  animation: fadeDown .5s ease both;
}
.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 18px;
  animation: fadeDown .5s ease .1s both;
}
.hero-sub {
  font-size: 17px;
  color: var(--color-text-3);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
  animation: fadeDown .5s ease .15s both;
}
.hero-search {
  display: flex;
  max-width: 560px;
  margin: 0 auto 40px;
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 1px var(--color-border), var(--shadow-lg);
  overflow: hidden;
  animation: fadeDown .5s ease .2s both;
}
.search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: #fff;
  padding: 0 14px;
}
.search-icon { width: 18px; height: 18px; flex-shrink: 0; }
.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 10px;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: transparent;
}
.search-input::placeholder { color: var(--color-text-4); }
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  animation: fadeDown .5s ease .25s both;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat-num { font-size: 26px; font-weight: 700; color: var(--color-text); }
.stat-label { font-size: 12px; color: var(--color-text-4); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.stat-divider { width: 1px; height: 36px; background: var(--color-border); }

/* ---- FILTER SECTION ---- */
.filter-section {
  padding: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 64px;
  z-index: 90;
}
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 14px 0;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 0 20px 0 0;
}
.filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.filter-pills { display: flex; gap: 6px; }
.pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-3);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.pill:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-soft); }
.pill.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); box-shadow: 0 1px 4px rgba(99,91,255,.25); }
.filter-divider { width: 1px; height: 30px; background: var(--color-border); margin: 0 16px; flex-shrink: 0; }
.filter-select {
  padding: 7px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--color-text-2);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}
.filter-select:hover, .filter-select:focus { border-color: var(--color-primary); }

/* ---- EVENTS SECTION ---- */
.events-section { padding: 48px 0 80px; }
.events-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
}
.section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
}
.events-count {
  font-size: 13px;
  color: var(--color-text-4);
  background: var(--color-surface2);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 500;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

/* ---- EVENT CARD ---- */
.event-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.event-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transition: opacity var(--transition);
}
.event-card:hover { border-color: #c7d2fe; transform: translateY(-2px); }
.event-card:hover::before { opacity: 1; }
.event-card.active-card { border-left: 3px solid var(--color-primary); }

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tag-status-active { background: var(--color-success-light); color: #059669; }
.tag-status-completed { background: var(--color-muted-light); color: var(--color-muted); }
.tag-format-online { background: var(--color-online-light); color: #0284c7; }
.tag-format-inperson { background: var(--color-inperson-light); color: #059669; }
.tag-format-hybrid { background: var(--color-hybrid-light); color: #7c3aed; }
.tag-scope-national { background: #fff7ed; color: #c2410c; }
.tag-scope-international { background: #eff6ff; color: #1d4ed8; }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.icon-blue { background: #eff6ff; }
.icon-purple { background: #f5f3ff; }
.icon-green { background: #f0fdf4; }
.icon-orange { background: #fff7ed; }
.icon-red { background: #fef2f2; }
.icon-teal { background: #f0fdfa; }

.card-body { flex: 1; }
.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 8px;
}
.card-desc {
  font-size: 13.5px;
  color: var(--color-text-3);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--color-text-3);
}
.meta-icon { font-size: 14px; flex-shrink: 0; }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--color-border-light);
}
.card-deadline {
  font-size: 12.5px;
  color: var(--color-text-4);
}
.card-deadline span {
  font-weight: 600;
  color: var(--color-warning);
}
.card-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.card-cta:hover { gap: 8px; }

/* ---- NO RESULTS ---- */
.no-results {
  text-align: center;
  padding: 80px 24px;
  color: var(--color-text-3);
}
.no-results-icon { font-size: 48px; margin-bottom: 14px; }
.no-results p { font-size: 16px; margin-bottom: 20px; }

/* ---- PROMO BANNER ---- */
.promo-banner {
  background: linear-gradient(135deg, #3373c4 0%, #2b62aa 100%);
  padding: 0;
  margin-bottom: 0;
}
.promo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 48px 0;
}
.promo-content h2 { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.promo-content p { font-size: 15px; color: rgba(255,255,255,.75); }
.promo-inner .btn-primary {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.promo-inner .btn-primary:hover { background: #f5f3ff; transform: translateY(-2px); }

/* ---- FOOTER ---- */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-name { font-size: 14px; font-weight: 500; color: var(--color-text-2); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--color-text-4); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: var(--color-text-2); }
.footer-copy { font-size: 13px; color: var(--color-text-4); }

/* ---- ANIMATIONS ---- */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card-enter {
  animation: fadeUp .35s ease both;
}

/* ===========================
   DETAIL PAGE
   =========================== */
.detail-hero {
  padding: 48px 0 40px;
  background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--color-border);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-4);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--color-text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb-sep { color: var(--color-text-4); }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.detail-title { font-size: clamp(24px,4vw,38px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; line-height: 1.2; }
.detail-sub { font-size: 16px; color: var(--color-text-3); max-width: 640px; line-height: 1.7; margin-bottom: 28px; }
.detail-actions { display: flex; gap: 12px; align-items: center; }

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  padding: 48px 0 80px;
  align-items: start;
}
.detail-main {}
.detail-sidebar {}

.detail-section { margin-bottom: 40px; }
.detail-section-title { font-size: 17px; font-weight: 600; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--color-border); }

.sidebar-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 16px;
}
.sidebar-card-title { font-size: 13px; font-weight: 600; color: var(--color-text-4); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.sidebar-meta-list { display: flex; flex-direction: column; gap: 12px; }
.sidebar-meta-item { display: flex; align-items: flex-start; gap: 10px; }
.sidebar-meta-icon { font-size: 16px; margin-top: 1px; }
.sidebar-meta-content {}
.sidebar-meta-label { font-size: 11px; color: var(--color-text-4); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.sidebar-meta-value { font-size: 14px; color: var(--color-text-2); font-weight: 500; }

.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  margin-top: 5px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.timeline-dot.done { background: var(--color-success); }
.timeline-dot.active { background: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-light); }
.timeline-item:not(:last-child) .timeline-dot::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 10px;
  width: 1px;
  height: calc(100% + 10px);
  background: var(--color-border);
  transform: translateX(-50%);
}
.timeline-content {}
.timeline-date { font-size: 12px; color: var(--color-text-4); margin-bottom: 2px; }
.timeline-label { font-size: 14px; font-weight: 500; color: var(--color-text-2); }

/* ===========================
   CALENDAR PAGE
   =========================== */
.cal-header { padding: 40px 0 24px; }
.cal-header h1 { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.cal-header p { color: var(--color-text-3); font-size: 15px; }
.cal-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  padding-bottom: 80px;
  align-items: start;
}
.cal-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border);
}
.cal-month-title { font-size: 17px; font-weight: 600; }
.cal-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--color-text-2);
  transition: all var(--transition);
}
.cal-btn:hover { background: var(--color-surface); border-color: #cbd5e1; }

.cal-grid { padding: 16px 24px 24px; }
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}
.cal-weekday {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 0;
}
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-2);
  cursor: pointer;
  position: relative;
  transition: all var(--transition);
}
.cal-day:hover { background: var(--color-surface2); }
.cal-day.empty { cursor: default; }
.cal-day.today {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 700;
  box-shadow: inset 0 0 0 1.5px var(--color-primary-light);
}
/* --- Event day: prominent highlight --- */
.cal-day.has-event {
  background: #cce3f2;
  color: #2b62aa;
  font-weight: 700;
  box-shadow: inset 0 0 0 1.5px #89c3e0;
}
.cal-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3373c4;
}
.cal-day.has-event:hover {
  background: #b8d9ef;
  box-shadow: inset 0 0 0 1.5px #5aace6;
}
/* Today + has-event */
.cal-day.has-event.today {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(51,115,196,.35), inset 0 0 0 1.5px rgba(255,255,255,.3);
}
.cal-day.has-event.today::after { background: rgba(255,255,255,.8); }
.cal-day.other-month { color: var(--color-text-4); }
.cal-day.other-month.has-event {
  background: #e8f4fb;
  color: #5aace6;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px #cce3f2;
}
/* Selected day */
.cal-day.selected {
  background: var(--color-primary) !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(99,91,255,.4) !important;
}
.cal-day.selected::after { background: rgba(255,255,255,.9); }

.cal-sidebar {}
.cal-events-panel {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}
.cal-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cal-panel-title { font-size: 14px; font-weight: 600; }
.cal-panel-count {
  font-size: 12px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}
.cal-event-list { padding: 8px; }
.cal-event-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
}
.cal-event-item:hover { background: var(--color-surface); }
.cal-event-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}
.cal-event-name { font-size: 13.5px; font-weight: 500; color: var(--color-text); margin-bottom: 3px; }
.cal-event-date { font-size: 12px; color: var(--color-text-4); }

.upcoming-list { padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.upcoming-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
}
.upcoming-item:hover { background: var(--color-surface); }
.upcoming-date-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.upcoming-day { font-size: 16px; font-weight: 700; color: var(--color-primary); line-height: 1; }
.upcoming-month { font-size: 9px; font-weight: 600; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.05em; }
.upcoming-info {}
.upcoming-name { font-size: 13px; font-weight: 500; color: var(--color-text); }
.upcoming-loc { font-size: 12px; color: var(--color-text-4); }

/* ---- EVENT SUB-NAV ---- */
.event-subnav {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 64px;
  z-index: 80;
  box-shadow: 0 1px 4px rgba(15,23,42,.04);
}
.event-subnav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.event-subnav-inner::-webkit-scrollbar { display: none; }

.subnav-item {
  position: relative;
  flex-shrink: 0;
}
.subnav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-3);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-sans);
}
.subnav-link:hover {
  color: var(--color-text);
  background: var(--color-surface);
}
.subnav-link.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}
.subnav-link.has-dropdown {
  padding-right: 12px;
}
.subnav-chevron {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease;
  opacity: .6;
}
.subnav-item.open .subnav-chevron {
  transform: rotate(180deg);
}
.subnav-item.open > .subnav-link {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

/* Dropdown */
.subnav-item {
  position: relative;
}
.subnav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 200;
}
.subnav-item.open .subnav-dropdown,
.subnav-item:focus-within .subnav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.subnav-dropdown-link {
  display: block;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-2);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  border-bottom: 1px solid var(--color-border-light);
}
.subnav-dropdown-link:last-child { border-bottom: none; }
.subnav-dropdown-link:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .detail-layout, .cal-layout { grid-template-columns: 1fr; }
  .promo-inner { flex-direction: column; text-align: center; }
  .events-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav, .header-actions { display: none; }
  .hamburger { display: flex; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 64px 0 0 0;
    background: #fff;
    padding: 24px;
    gap: 4px;
    border-top: 1px solid var(--color-border);
    z-index: 99;
  }
  .nav.open .nav-link { padding: 12px 16px; font-size: 16px; }
  .hero { padding: 48px 0 40px; }
  .hero-title { font-size: 28px; }
  .hero-stats { gap: 16px; }
  .filter-bar { gap: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
