/**
 * Events calendar — page-events-calendar.php
 * Uses tokens from igb-home.css (--navy, --gold, --fh, --fb, etc.)
 */
.igb-evt-page-outer,
.igb-evt-hero {
  --navy: #0a1628;
  --navy2: #1a2a45;
  --navy3: #243555;
  --gold: #c8a84b;
  --gold2: #f5c842;
  --gold-d: #9e7e2a;
  --gold-lt: #fbf0d0;
  --gold-bg: #fdf7e8;
  --white: #fff;
  --bg: #f2f4f7;
  --t1: #0d1117;
  --t2: #374151;
  --t3: #6b7280;
  --t4: #9ca3af;
  --border: #e5e7eb;
  --green: #16a34a;
  --r: 10px;
  --r-sm: 6px;
  --r-lg: 16px;
  --sh: 0 2px 14px rgba(10, 22, 40, 0.08);
  --sh-h: 0 8px 28px rgba(10, 22, 40, 0.15);
  --fh: 'Oswald', sans-serif;
  --fb: 'Nunito Sans', sans-serif;
}

/* 1920px layout — matches homepage .page-outer + .side-col flex (igb-home.css) */
.igb-evt-page-outer {
  max-width: var(--evt-max);
  padding: 20px var(--evt-pad) 56px;
  background: var(--bg);
  display: flex !important;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0;
  box-sizing: border-box;
}

/* Override theme .side-col % width — fixed gutter column */
.igb-evt-page-outer > .side-col.igb-evt-gutter--left {
  min-width: 300px;
  max-width: 400px;
  flex: 0 0 var(--evt-gutter) !important;
  position: sticky;
  top: 76px;
  align-self: flex-start;
  padding: 0 10px 0 15px;
  margin: 0;
  box-sizing: border-box;
}

.igb-evt-gutter--left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.igb-evt-gutter-ad,
.igb-evt-page-outer .side-col .side-box {
  width: 100%;
  max-width: 100%;
  min-height: 280px;
  display: block;
}

.igb-evt-gutter-ad img,
.igb-evt-page-outer .side-col img {
  width: 100%;
  display: block;
  border-radius: var(--r-sm);
}

/* Main column fills space between left gutter and right edge */
.igb-evt-page-outer > .main-col.igb-evt-main-wrap {
  flex: 1 1 auto !important;
  min-width: 0;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 0 8px;
  box-sizing: border-box;
}

.igb-evt-sidebar-sticky {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.igb-evt-sidebar-ad--sticky {
  width: 100%;
  min-height: 280px;
}

/* Shared 1920 layout tokens (banner/filter sit above .igb-evt-page-outer) 
.igb-evt-top-banner,
.igb-evt-filter-section,
.igb-evt-page-outer {
  --evt-max: 1920px;
  --evt-gutter: 160px;
  --evt-pad: 20px;
}
*/

/* ── Top banner (replaces hero) ── */
.igb-evt-top-banner {
  background: var(--bg);
  padding: 16px 0 0;
}

.igb-evt-top-banner__inner {
  width: 100%;
  max-width: var(--evt-max, 1920px);
  margin: 0 auto;
  padding: 0 var(--evt-pad, 20px);
  padding-left: calc(var(--evt-gutter, 160px) + var(--evt-pad, 20px));
  box-sizing: border-box;
}

.igb-evt-top-banner__slot {
  width: 100%;
  min-height: 90px;
  border-radius: var(--r-sm);
  display: block;
}

.igb-evt-breadcrumb--bar {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--t3);
  flex-shrink: 0;
}

.igb-evt-breadcrumb--bar a {
  color: var(--t3);
  text-decoration: none;
}

.igb-evt-breadcrumb--bar a:hover {
  color: var(--gold-d);
}

.igb-evt-breadcrumb--bar .igb-evt-breadcrumb-cur {
  color: var(--t1);
}

/* ── Hero (unused; kept for reference) ── */
.igb-evt-hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 44px 0 0;
}

.igb-evt-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(200, 168, 75, 0.14) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  z-index: 0;
}

.igb-evt-hero::after {
  content: '';
  position: absolute;
  top: -60px;
  right: 200px;
  width: 2px;
  height: 320px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  transform: rotate(20deg);
  opacity: 0.3;
  z-index: 0;
}

.igb-evt-hero-shape {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.igb-evt-hero-shape--1 {
  top: 20px;
  right: 80px;
  width: 180px;
  height: 180px;
  border: 2px solid rgba(200, 168, 75, 0.12);
}

.igb-evt-hero-shape--2 {
  top: 50px;
  right: 140px;
  width: 100px;
  height: 100px;
  border: 1.5px solid rgba(200, 168, 75, 0.08);
}

.igb-evt-hero-shape--3 {
  bottom: 0;
  left: 30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(200, 168, 75, 0.05) 0%, transparent 70%);
}

.igb-evt-hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: end;
}

.igb-evt-hero-left {
  padding-bottom: 36px;
}

.igb-evt-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 14px;
  font-weight: 600;
}

.igb-evt-breadcrumb a {
  color: rgba(255, 255, 255, 0.38);
  text-decoration: none;
}

.igb-evt-breadcrumb a:hover {
  color: var(--gold);
}

.igb-evt-breadcrumb-sep {
  color: rgba(255, 255, 255, 0.18);
}

.igb-evt-breadcrumb-cur {
  color: var(--gold);
}

.igb-evt-hero-label-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.igb-evt-hero-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 20px rgba(200, 168, 75, 0.35);
  flex-shrink: 0;
}

.igb-evt-pill {
  font-family: var(--fh);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200, 168, 75, 0.1);
  border: 1px solid rgba(200, 168, 75, 0.25);
  padding: 5px 14px;
  border-radius: 20px;
}

.igb-evt-hero-title {
  font-family: var(--fh);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.05;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.igb-evt-hero-desc {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.65;
  max-width: 540px;
  margin-bottom: 24px;
}

.igb-evt-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.igb-evt-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.igb-evt-stat-num {
  font-family: var(--fh);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.igb-evt-stat-lbl {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.igb-evt-stat-div {
  width: 1px;
  background: rgba(200, 168, 75, 0.12);
  align-self: stretch;
}

/* Hero featured card */
.igb-evt-hero-featured {
  background: var(--white);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  border-top: 3px solid var(--gold);
}

.igb-evt-hero-featured__thumb {
  height: 160px;
  position: relative;
  overflow: hidden;
}

.igb-evt-hero-featured__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.igb-evt-hero-featured__ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  background: linear-gradient(140deg, #1a0a2e, #2d1050);
}

.igb-evt-hero-featured__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 22, 40, 0.85) 0%, transparent 60%);
}

.igb-evt-hero-featured__tags {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.igb-evt-pill-tag {
  font-family: var(--fh);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
}

.igb-evt-pill-tag--gold {
  background: var(--gold);
  color: var(--navy);
}

.igb-evt-hero-featured__body {
  padding: 16px 18px 20px;
}

.igb-evt-hero-featured__date {
  font-size: 12px;
  color: var(--gold-d);
  font-family: var(--fh);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 5px;
}

.igb-evt-hero-featured__name {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  color: var(--t1);
  margin-bottom: 8px;
}

.igb-evt-hero-featured__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--t3);
  margin-bottom: 8px;
}

.igb-evt-hero-featured__register {
  display: block;
  margin-top: 14px;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--fh);
  font-weight: 700;
  font-size: 12.5px;
  padding: 10px 0;
  border-radius: var(--r-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  text-decoration: none;
}

.igb-evt-hero-featured__register:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ── Filter bar ── */
.igb-evt-filter-section {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 1;
}

.igb-evt-filter-inner {
  width: 100%;
  max-width: var(--evt-max, 1920px);
  margin: 0 auto;
  padding: 12px var(--evt-pad, 20px);
  padding-left: calc(var(--evt-gutter, 160px) + var(--evt-pad, 20px));
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.igb-evt-filter-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}

.igb-evt-fs-search {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #fafafa;
  flex: 1;
  min-width: 220px;
  max-width: 340px;
}

.igb-evt-fs-search:focus-within {
  border-color: var(--gold);
}

.igb-evt-fs-search input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  padding: 9px 13px;
  font-size: 13px;
  font-family: var(--fb);
  color: var(--t1);
}

.igb-evt-fs-search span {
  padding: 9px 12px;
  color: var(--t3);
  font-size: 14px;
}

.igb-evt-fs-divider {
  width: 1px;
  height: 30px;
  background: var(--border);
  flex-shrink: 0;
}

.igb-evt-month-select {
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 9px 13px;
  font-size: 13px;
  font-family: var(--fb);
  color: var(--t1);
  background: #fafafa;
  min-width: 180px;
}

/* ── Layout ── */
.igb-evt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  padding: 28px 15px;
  align-items: start;
  width: 100%;
  max-width: none;
}

.igb-evt-ad-strip {
  margin-bottom: 24px;
  min-height: 88px;
}

.igb-evt-month-group {
  margin-bottom: 32px;
}

.igb-evt-month-group.is-hidden {
  display: none;
}

.igb-evt-month-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  position: sticky;
  top: 72px;
  z-index: 100;
}

.igb-evt-month-pill {
  background: var(--navy);
  color: var(--gold);
  font-family: var(--fh);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 22px;
  border-radius: var(--r-sm);
  border-bottom: 3px solid var(--gold);
  white-space: nowrap;
  box-shadow: var(--sh);
}

.igb-evt-month-line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
}

.igb-evt-empty {
  padding: 24px;
  background: var(--white);
  border-radius: var(--r);
  color: var(--t3);
}

/* ── Event cards ── */
.igb-evt-list-card {
  background: var(--white);
  border-radius: var(--r);
  border: 1px solid var(--border);
  box-shadow: var(--sh);
  overflow: hidden;
  transition: all 0.22s;
  display: grid;
  grid-template-columns: 96px 1fr auto;
  margin-bottom: 14px;
  position: relative;
}

.igb-evt-list-card--no-date {
  grid-template-columns: 1fr auto;
}

.igb-evt-list-card--no-right {
  grid-template-columns: 96px 1fr;
}

.igb-evt-list-card--no-date.igb-evt-list-card--no-right {
  grid-template-columns: 1fr;
}

.igb-evt-list-card:hover {
  box-shadow: var(--sh-h);
  transform: translateY(-2px);
  border-color: rgba(200, 168, 75, 0.3);
}

.igb-evt-list-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.2s;
}

.igb-evt-list-card:hover::before {
  background: var(--gold);
}

.igb-evt-list-card.is-featured {
  border-top: 2px solid var(--gold);
}

.igb-evt-list-card.is-hidden {
  display: none;
}

.igb-evt-date {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy2) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  text-align: center;
  border-right: 1px solid rgba(200, 168, 75, 0.15);
  flex-shrink: 0;
}

.igb-evt-date__mon {
  font-size: 10px;
  font-family: var(--fh);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
}

.igb-evt-date__day {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  color: #fff;
}

.igb-evt-date__endday {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--fh);
  font-weight: 600;
  margin-top: 2px;
}

.igb-evt-date__year {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 1px;
}

.igb-evt-list-card__body {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.igb-evt-list-card__top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.igb-evt-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--fh);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  line-height: 1;
}

.igb-evt-pill--gold {
  background: var(--gold);
  color: var(--navy);
}

.igb-evt-pill--teal {
  background: #0891b2;
  color: #fff;
}

.igb-evt-pill--orange {
  background: #ea580c;
  color: #fff;
}

.igb-evt-pill--blue {
  background: #1d4ed8;
  color: #fff;
}

.igb-evt-pill--purple {
  background: #7c3aed;
  color: #fff;
}

.igb-evt-pill--pink {
  background: #db2777;
  color: #fff;
}

.igb-evt-pill--green {
  background: #16a34a;
  color: #fff;
}

.igb-evt-pill--navy {
  background: var(--navy);
  color: #fff;
}

.igb-evt-pill--gray {
  background: #374151;
  color: #fff;
}

.igb-evt-pill--outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--t2);
  font-size: 9px;
}

.igb-evt-selling-label {
  margin-left: auto;
  background: var(--gold-bg);
  color: var(--gold-d);
  font-family: var(--fh);
  font-weight: 700;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.igb-evt-list-card__name {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  color: var(--t1);
  margin: 0;
}

.igb-evt-list-card__meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.igb-evt-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--t3);
  font-weight: 600;
}

.igb-evt-list-card__desc {
  font-size: 13px;
  color: var(--t3);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.igb-evt-list-card__topic-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.igb-evt-topic-chip {
  font-size: 11px;
  color: var(--t2);
  background: #f3f4f6;
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 600;
}

.igb-evt-list-card__right {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  min-width: 140px;
}

.igb-evt-days-badge {
  font-size: 11px;
  color: var(--t3);
  background: #f3f4f6;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 700;
  white-space: nowrap;
}

.igb-evt-price {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.igb-evt-price.is-paid {
  color: var(--gold-d);
}

.igb-evt-price.is-free {
  color: var(--green);
}

.igb-evt-list-card__btns {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
}

.igb-evt-btn {
  display: block;
  font-family: var(--fh);
  font-weight: 700;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-align: center;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.igb-evt-btn--primary {
  background: var(--navy);
  color: var(--gold);
  border: none;
}

.igb-evt-btn--primary:hover {
  background: var(--gold);
  color: var(--navy);
}

.igb-evt-btn--ghost {
  background: none;
  color: var(--t3);
  border: 1.5px solid var(--border);
}

.igb-evt-btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Sidebar ── */
.igb-evt-sidebar {
  position: sticky;
  top: 80px;
}

.igb-evt-sidebar-ad {
  margin-bottom: 20px;
}

.igb-evt-this-week {
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--sh);
  overflow: hidden;
}

.igb-evt-this-week h3 {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  margin: 0;
  padding: 11px 16px;
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
}

.igb-evt-this-week ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.igb-evt-this-week li {
  border-bottom: 1px solid #f3f4f6;
}

.igb-evt-this-week li:last-child {
  border-bottom: none;
}

.igb-evt-this-week button {
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border: none;
  background: #fff;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--t1);
  cursor: pointer;
  font-family: var(--fb);
}

.igb-evt-this-week button:hover {
  background: var(--gold-bg);
}

@media (max-width: 1100px) {
  .igb-evt-page-outer > .side-col.igb-evt-gutter--left {
    display: none !important;
  }

  .igb-evt-page-outer > .main-col.igb-evt-main-wrap {
    padding-left: 0 !important;
  }

  .igb-evt-top-banner__inner,
  .igb-evt-filter-inner {
    padding-left: var(--evt-pad, 20px);
  }

  .igb-evt-layout {
    grid-template-columns: 1fr;
  }

  .igb-evt-sidebar,
  .igb-evt-sidebar-sticky {
    position: static;
  }
}

@media (max-width: 768px) {
  .igb-evt-filter-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .igb-evt-filter-tools {
    margin-left: 0;
    width: 100%;
  }

  .igb-evt-fs-search {
    flex: 1;
    min-width: 0;
    max-width: none;
  }

  .igb-evt-list-card {
    grid-template-columns: 1fr;
  }

  .igb-evt-date {
    flex-direction: row;
    gap: 8px;
    padding: 12px 16px;
    border-right: none;
    border-bottom: 1px solid rgba(200, 168, 75, 0.15);
  }

  .igb-evt-list-card__right {
    align-items: stretch;
    border-top: 1px solid var(--border);
  }

  .igb-evt-selling-label {
    margin-left: 0;
  }
}
