/* Events grid — Figma HR-Studio (node 82:12602) */
.ippg-root.leg-events-grid {
  font-family: 'Whitney', sans-serif;
  color: #203040;
  box-sizing: border-box;
}

.ippg-root.leg-events-grid *,
.ippg-root.leg-events-grid *::before,
.ippg-root.leg-events-grid *::after {
  box-sizing: border-box;
}

.ippg-root.leg-events-grid .ippg-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.ippg-root.leg-events-grid .ippg-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 48px;
  align-items: start;
}

.ippg-root.leg-events-grid .ippg-layout.leg-layout--no-filters {
  grid-template-columns: 1fr;
}

/* Sidebar filters */
.ippg-root.leg-events-grid .ippg-filters {
  position: sticky;
  top: 20px;
  height: fit-content;
}

.ippg-root.leg-events-grid .ippg-filter-group {
  margin-bottom: 0;
}

.ippg-root.leg-events-grid .ippg-filter-group--search {
  margin-bottom: 0;
}

.ippg-root.leg-events-grid .ippg-filter-divider {
  height: 1px;
  background: #ccecf9;
  margin: 40px 0;
  border: 0;
}

.ippg-root.leg-events-grid .ippg-filter-title {
  font-family: 'Whitney', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  color: #002d72;
  margin: 0 0 24px;
}

.ippg-root.leg-events-grid .ippg-search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 8px 24px;
  background: #fff;
  border: 1px solid #bec7d0;
  border-radius: 12px;
}

.ippg-root.leg-events-grid .ippg-search-icon {
  display: flex;
  flex-shrink: 0;
  line-height: 0;
}

.ippg-root.leg-events-grid .ippg-search,
.ippg-root.leg-events-grid input.ippg-search.leg-search {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: 'Whitney', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  color: #203040;
  outline: none !important;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.ippg-root.leg-events-grid .ippg-search:focus,
.ippg-root.leg-events-grid .ippg-search:focus-visible,
.ippg-root.leg-events-grid input.ippg-search.leg-search:focus,
.ippg-root.leg-events-grid input.ippg-search.leg-search:focus-visible {
  outline: none !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.ippg-root.leg-events-grid .ippg-search::placeholder {
  color: #5b6672 !important;
  opacity: 1;
}

/* Nectar theme: label span, body a, .nectar-color-accent-color, … */
body .ippg-root.leg-events-grid input.ippg-search.leg-search::placeholder,
body .ippg-root.leg-events-grid .ippg-search.leg-search::placeholder {
  color: #5b6672 !important;
}

body .ippg-root.leg-events-grid .ippg-filters label.ippg-filter-label,
body .ippg-root.leg-events-grid label.ippg-filter-label {
  color: #5b6672 !important;
}

body .ippg-root.leg-events-grid label.ippg-filter-label span,
body .ippg-root.leg-events-grid .ippg-filters label.ippg-filter-label span {
  color: #5b6672 !important;
  margin: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

.ippg-root.leg-events-grid .ippg-filter-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  cursor: pointer;
  font-family: 'Whitney', sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  color: #5b6672 !important;
}

.ippg-root.leg-events-grid .ippg-filter-label:last-child {
  margin-bottom: 0;
}

.ippg-root.leg-events-grid .ippg-filter-label span,
body > .ippg-filters.leg-filters-drawer--portal label.ippg-filter-label span {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.5;
}

.ippg-root.leg-events-grid .filter-checkbox {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  margin: 0;
  padding: 4px;
  border: 1px solid #bec7d0;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ippg-root.leg-events-grid .filter-checkbox:checked {
  background: #fff;
  border-color: #002d72;
}

.ippg-root.leg-events-grid .filter-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #002d72;
  border-radius: 2px;
}

.ippg-root.leg-events-grid .filter-checkbox:hover {
  border-color: #002d72;
}

/* Mobile filter toggle + fullscreen drawer */
.leg-filter-mobile-toggle,
.leg-filters-backdrop {
  display: none;
}

.leg-filter-mobile-toggle {
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin: 0 0 24px;
  padding: 10px 28px;
  border: 1px solid #002d72;
  border-radius: 12px;
  background: #fff;
  color: #002d72;
  font-family: 'Whitney', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.leg-filter-mobile-toggle:hover,
.leg-filter-mobile-toggle:focus-visible {
  border-color: #004ba2;
  outline: none;
}

.leg-filter-mobile-toggle__icon {
  display: flex;
  flex-shrink: 0;
  line-height: 0;
}

.leg-filter-mobile-toggle__count,
.leg-filter-results-btn__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  padding: 4px;
  border-radius: 4px;
  background: #ccecf9;
  color: #002d72;
  font-family: 'Whitney', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
  text-transform: uppercase;
}

.leg-filters-drawer__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.leg-filters-drawer__close {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #002d72;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.leg-filters-drawer__close:hover,
.leg-filters-drawer__close:focus-visible {
  background: rgba(204, 236, 249, 0.5);
  outline: none;
}

.leg-filters-drawer__close span {
  display: flex;
  line-height: 0;
}

.leg-filters-drawer__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.leg-filters-drawer__footer {
  display: none;
  flex-shrink: 0;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #ccecf9;
  background: #fff;
}

.leg-filter-results-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 14px 28px;
  border: 0;
  border-radius: 12px;
  background: #002d72;
  color: #fff;
  font-family: 'Whitney', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
}

.leg-filter-results-btn:hover,
.leg-filter-results-btn:focus-visible {
  background: #004ba2;
  outline: none;
}

.leg-filter-results-btn__count {
  background: #ccecf9;
  color: #002d72;
}

/* Main content */
.ippg-root.leg-events-grid .ippg-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ippg-root.leg-events-grid .ippg-main.leg-main--empty {
  min-height: min(70vh, 640px);
  align-items: center;
  justify-content: center;
}

.ippg-root.leg-events-grid .ippg-cards {
  display: grid;
  grid-template-columns: repeat(var(--leg-grid-columns, 2), minmax(0, 1fr));
  gap: 30px;
}

.ippg-root.leg-events-grid .ippg-cards.leg-cards--initial-empty {
  display: none;
}

.ippg-root.leg-events-grid .ippg-card {
  background: #fff;
  border: 1px solid #f1f2f3;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ippg-root.leg-events-grid .ippg-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 45, 114, 0.08);
}

.ippg-root.leg-events-grid .ippg-card.leg-card-hidden,
.ippg-root.leg-events-grid .ippg-card.leg-card-paginated-hidden {
  display: none !important;
}

.ippg-root.leg-events-grid .ippg-cards.leg-cards--filtered-empty {
  display: none;
}

.ippg-root.leg-events-grid .ippg-card-img {
  position: relative;
  width: 100%;
  height: 247px;
  background-color: #f2f7ff;
  overflow: hidden;
}

.ippg-root.leg-events-grid .ippg-card-img__photo {
  position: absolute;
  inset: 0;
  background-color: #f2f7ff;
  background-size: cover;
  background-position: center;
  filter: opacity(0.9);
  z-index: 0;
}

.ippg-root.leg-events-grid .ippg-card-img__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(244.7deg, rgba(255, 97, 126, 0.4) 0%, rgba(255, 97, 126, 0) 100%),
    linear-gradient(64.7deg, rgba(0, 45, 114, 0.4) 0%, rgba(0, 45, 114, 0) 100%);
  mix-blend-mode: color;
  pointer-events: none;
}

.ippg-root.leg-events-grid .ippg-card-category {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(0, 45, 114, 0.2);
  color: #fff;
  font-family: 'Whitney', sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}

.ippg-root.leg-events-grid .ippg-card-body {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 16px;
  margin-top: 16px;
}

.ippg-root.leg-events-grid .ippg-card-title {
  font-family: 'Whitney', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
  color: #203040;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body .ippg-root.leg-events-grid a.ippg-card.leg-card p.ippg-card-excerpt,
body .ippg-root.leg-events-grid .ippg-cards a.leg-card p.ippg-card-excerpt {
  color: #5b6672 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-height: 3em !important;
  white-space: normal !important;
  word-break: break-word;
}

.ippg-root.leg-events-grid .ippg-card-excerpt {
  font-family: 'Whitney', sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  color: #5b6672 !important;
  margin: 0;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-height: 3em !important;
  white-space: normal !important;
  word-break: break-word;
}

.ippg-root.leg-events-grid .ippg-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

.ippg-root.leg-events-grid .ippg-readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ippg-root.leg-events-grid .ippg-readmore__text {
  font-family: 'Whitney', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
  text-transform: uppercase;
  color: #002d72;
}

.ippg-root.leg-events-grid .ippg-readmore__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 100px;
  background: #d85970;
}

.ippg-root.leg-events-grid .ippg-card-cert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #004ba2;
  font-family: 'Whitney', sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}

.ippg-root.leg-events-grid .ippg-card-cert span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ippg-root.leg-events-grid .ippg-card-cert__icon,
.ippg-root.leg-events-grid .ippg-card-cert .leg-icon-img,
body .ippg-root.leg-events-grid a.ippg-card.leg-card .ippg-card-cert img.ippg-card-cert__icon,
body .ippg-root.leg-events-grid a.ippg-card.leg-card .ippg-card-cert img.leg-icon-img {
  flex-shrink: 0;
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 !important;
  margin-bottom: 0 !important;
  vertical-align: middle;
}

/* Empty state */
.ippg-root.leg-events-grid .leg-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 24px;
  margin: 0;
}

.ippg-root.leg-events-grid .ippg-main.leg-main--empty .leg-empty-state {
  flex: 1 1 auto;
  align-self: stretch;
  min-height: 100%;
}

.ippg-root.leg-events-grid .leg-empty-state[hidden] {
  display: none !important;
}

.ippg-root.leg-events-grid .leg-empty-state__img {
  max-width: min(100%, 480px);
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Pagination */
.ippg-root.leg-events-grid .leg-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.ippg-root.leg-events-grid .leg-pagination[hidden] {
  display: none !important;
}

body .ippg-root.leg-events-grid nav.leg-pagination button.leg-pagination__btn,
body .ippg-root.leg-events-grid nav.leg-pagination button.leg-pagination__page:not(.is-active),
body .ippg-root.leg-events-grid nav.leg-pagination span.leg-pagination__ellipsis {
  color: #5b6672 !important;
}

.ippg-root.leg-events-grid .leg-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5b6672 !important;
  cursor: pointer;
  border-radius: 8px;
}

.ippg-root.leg-events-grid .leg-pagination__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ippg-root.leg-events-grid .leg-pagination__btn:not(:disabled):hover {
  color: #002d72;
}

.ippg-root.leg-events-grid .leg-pagination__pages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ippg-root.leg-events-grid .leg-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 50% !important;
  font-family: 'Whitney', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  color: #5b6672 !important;
  cursor: pointer;
  box-shadow: none;
}

.ippg-root.leg-events-grid .leg-pagination__page:hover:not(.is-active) {
  color: #002d72 !important;
}

.ippg-root.leg-events-grid .leg-pagination__page.is-active {
  background: #ccecf9 !important;
  color: #002d72 !important;
  font-weight: 700;
  border-radius: 50% !important;
}

.ippg-root.leg-events-grid .leg-pagination__ellipsis {
  padding: 0 4px;
  color: #5b6672 !important;
  font-family: 'Whitney', sans-serif;
}

.leg-error {
  font-family: 'Whitney', sans-serif;
  color: #203040;
}

/* Event detail page (Figma HR-Studio) */
.leg-event-page,
.leg-event-page * {
  font-family: 'Whitney', sans-serif;
}

.leg-event-page {
  color: #203040;
  background: transparent;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px 80px;
  box-sizing: border-box;
}

.leg-event-page__layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.leg-event-page__main {
  flex: 1;
  min-width: 0;
  max-width: 900px;
}

.leg-event-page a.leg-event-back,
.leg-event-page a.leg-event-back:visited,
.leg-event-page a.leg-event-back:hover,
.leg-event-page a.leg-event-back:focus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  padding: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 12px;
  box-shadow: none !important;
  color: #002d72 !important;
  font-family: 'Whitney', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: opacity 0.15s ease;
}

.leg-event-page a.leg-event-back:hover,
.leg-event-page a.leg-event-back:focus {
  opacity: 0.85;
  color: #002d72 !important;
}

.leg-event-back__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 100px;
  background: #d85970;
  flex-shrink: 0;
}

.leg-event-back__icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.leg-event-back__label {
  color: #002d72;
  font-family: 'Whitney', sans-serif;
}

.leg-icon-img {
  display: block;
  max-width: 100%;
  height: auto;
}

.leg-event-hero__category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.leg-event-info-list__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.leg-event-skills__icon {
  display: inline-flex;
  align-items: flex-start;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.leg-event-custom-main {
  margin-top: 0;
}

.leg-event-rich-text p {
  margin: 0 0 1em;
}

.leg-event-card__body.leg-event-rich-text > * {
  margin-top: 8px;
  margin-bottom: 8px;
  padding-top: 0;
  padding-bottom: 0;
}

.leg-event-rich-text ul,
.leg-event-rich-text ol {
  margin: 0 0 1em 1.25em;
}

.leg-event-hero__title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
  color: #002d72;
  margin: 0 0 40px;
}

.leg-event-hero__category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 500;
  color: #004ba2;
  margin-bottom: 24px;
}

.leg-event-intro-sphere {
  background: linear-gradient(90deg, rgba(204, 236, 249, 0.4) 0%, rgba(204, 236, 249, 0) 100%);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 40px;
}

.leg-event-intro-sphere p {
  margin: 0;
  font-size: 24px;
  line-height: 1.5;
  font-weight: 500;
  color: #004ba2;
}

.leg-event-intro {
  margin-bottom: 40px;
}

.leg-event-intro p {
  font-size: 20px;
  line-height: 1.5;
  color: #203040;
  margin: 0;
}

.leg-event-sections {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.leg-event-custom-main > * {
  margin-bottom: 0;
}

.leg-event-custom-main > * + * {
  margin-top: 0;
}

.leg-event-section-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: #002d72;
  margin: 0 0 24px;
}

.leg-event-section-title--sidebar {
  font-size: 36px;
  color: #002d72;
  margin-bottom: 24px;
}

.leg-event-card {
  background: #fff;
  border: 0;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 24px 0 rgba(13, 58, 128, 0.12), 0 0 1px 0 rgba(13, 58, 128, 0.08);
}

.leg-event-card__body.leg-event-rich-text .leg-event-section-title,
.leg-event-card__body.leg-event-rich-text h2,
.leg-event-card__body.leg-event-rich-text h3,
.leg-event-card__body.leg-event-rich-text h4 {
  color: #002d72;
  margin: 8px 0;
  padding: 0;
}

.leg-event-card__body.leg-event-rich-text .leg-event-card__text,
.leg-event-card__body.leg-event-rich-text p.leg-event-card__text,
.leg-event-card__body.leg-event-rich-text p {
  font-size: 20px;
  line-height: 1.5;
  color: #203040;
  margin: 8px 0;
  padding: 0;
}

.leg-event-card__body.leg-event-rich-text .leg-event-card__list,
.leg-event-card__body.leg-event-rich-text ul.leg-event-card__list,
.leg-event-card__body.leg-event-rich-text ul,
.leg-event-card__body.leg-event-rich-text ol {
  margin: 8px 0;
  padding: 0 0 0 1.25em;
  font-size: 20px;
  line-height: 1.5;
  color: #203040;
}

.leg-event-card__body.leg-event-rich-text li {
  margin: 8px 0;
  padding: 0;
}

.leg-event-skills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.leg-event-skills__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 20px;
  line-height: 1.5;
  color: #203040;
}

.leg-event-skills__icon {
  flex-shrink: 0;
  line-height: 0;
}

.leg-event-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.leg-event-pill {
  background: #f1f2f3;
  color: #002d72;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  padding: 10px 24px;
  border-radius: 20px;
}

.leg-event-expert {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.leg-event-expert__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.leg-event-expert__avatar--placeholder {
  background: #bec7d0;
}

.leg-event-expert__name {
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
  color: #203040;
  margin: 0 !important;
  padding: 0 !important;
}

.leg-event-expert__bio {
  font-size: 20px;
  line-height: 1.5;
  margin: 0;
  color: #203040;
}

.leg-event-registration-fields {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.leg-event-registration-fields__item {
  font-size: 20px;
  line-height: 1.5;
  color: #203040;
  padding-left: 20px;
  position: relative;
}

.leg-event-registration-fields__item::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #004ba2;
}

.leg-event-registration-fields__required {
  color: #d85970;
  margin-left: 4px;
}

.leg-event-info-list a {
  color: #004ba2;
  text-decoration: underline;
}

.leg-event-page__sidebar {
  width: 439px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
}

/* Event page without admin "About the training": single column + flat info card */
.leg-event-page--no-about .leg-event-page__layout {
  flex-direction: column;
  align-items: stretch;
  gap: 40px;
}

.leg-event-page--no-about .leg-event-page__main {
  flex: none;
  max-width: none;
  width: 100%;
}

.leg-event-page--no-about .leg-event-page__sidebar {
  width: 100%;
  max-width: none;
  flex: none;
  position: static;
  top: auto;
}

.leg-event-page--no-about .leg-event-sidebar-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.leg-event-page--no-about .leg-event-sidebar-card__image {
  flex: 0 0 50%;
  width: 50%;
  height: auto;
  min-height: 240px;
}

.leg-event-page--no-about .leg-event-sidebar-card__photo {
  position: absolute;
  inset: 0;
  min-height: 100%;
}

.leg-event-page--no-about .leg-event-sidebar-card__body {
  flex: 1 1 auto;
  min-width: 0;
}

.leg-event-sidebar-card {
  background: #fff;
  border: 1px solid #bec7d0;
  border-radius: 20px;
  overflow: hidden;
}

.leg-event-sidebar-card__image {
  position: relative;
  height: 247px;
  overflow: hidden;
  background-color: #f2f7ff;
}

.leg-event-sidebar-card__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #f2f7ff;
  filter: opacity(0.9);
}

.leg-event-sidebar-card__photo--placeholder {
  background: linear-gradient(135deg, #003b5c 0%, #d85970 100%);
}

.leg-event-card__body.leg-event-rich-text img {
  filter: opacity(0.9);
}

.leg-event-sidebar-card__body {
  padding: 24px;
}

.leg-event-info-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.leg-event-info-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  line-height: 1.5;
  color: #203040;
}

.leg-event-info-list__icon {
  flex-shrink: 0;
  line-height: 0;
}

.leg-event-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 28px;
  background: #d85970;
  border: 1px solid #d85970;
  border-radius: 12px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.leg-event-register:hover {
  background: #c44d63;
  border-color: #c44d63;
  color: #fff !important;
}

@media (max-width: 1100px) {
  .leg-event-page__layout {
    flex-direction: column;
  }

  .leg-event-page__main {
    max-width: 100%;
  }

  .leg-event-page__sidebar {
    width: 100%;
    flex: none;
    position: static;
  }
}

@media (max-width: 768px) {
  .leg-event-page {
    padding: 0;
  }

  .leg-event-page--no-about .leg-event-sidebar-card {
    flex-direction: column;
  }

  .leg-event-page--no-about .leg-event-sidebar-card__image {
    flex: none;
    width: 100%;
    height: 200px;
    min-height: 0;
  }

  .leg-event-hero__title {
    font-size: 36px;
  }

  .leg-event-intro p {
    font-size: 18px;
  }

  .leg-event-section-title {
    font-size: 28px;
  }
}

@media (max-width: 1024px) {
  .ippg-root.leg-events-grid .ippg-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ippg-root.leg-events-grid .ippg-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .leg-filter-mobile-toggle {
    display: flex;
  }

  /* Drawer is portaled to <body> on tablet/mobile (fixes iOS fixed-position inside .ocm-effect-wrap). */
  .ippg-root.leg-events-grid .ippg-layout > .ippg-filters.leg-filters-drawer,
  .ippg-root.leg-events-grid .ippg-layout > .leg-filters-backdrop {
    display: none !important;
  }

  body > .leg-filters-backdrop.leg-filters-drawer--portal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2147483646 !important;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 45, 114, 0.45);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  body > .leg-filters-backdrop.leg-filters-drawer--portal:not([hidden]) {
    display: block !important;
  }

  body > .ippg-filters.leg-filters-drawer.leg-filters-drawer--portal {
    display: none !important;
    position: fixed;
    inset: 0;
    z-index: 2147483647 !important;
    width: 100%;
    max-width: none;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    background: #fff;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  body > .ippg-filters.leg-filters-drawer.leg-filters-drawer--portal.leg-filters-drawer--active {
    display: flex !important;
    flex-direction: column;
  }

  body > .ippg-filters.leg-filters-drawer--portal .leg-filters-drawer__footer {
    display: block;
  }

  body > .ippg-filters.leg-filters-drawer--portal .leg-filters-drawer__body {
    padding: 60px 56px 32px 20px;
  }

  /* Portaled drawer is outside .ippg-root — repeat filter sidebar styles */
  body > .ippg-filters.leg-filters-drawer--portal {
    font-family: 'Whitney', sans-serif;
    color: #203040;
    box-sizing: border-box;
  }

  body > .ippg-filters.leg-filters-drawer--portal *,
  body > .ippg-filters.leg-filters-drawer--portal *::before,
  body > .ippg-filters.leg-filters-drawer--portal *::after {
    box-sizing: border-box;
  }

  body > .ippg-filters.leg-filters-drawer--portal .ippg-filter-group {
    margin-bottom: 0;
  }

  body > .ippg-filters.leg-filters-drawer--portal .ippg-filter-divider {
    height: 1px;
    background: #ccecf9;
    margin: 40px 0;
    border: 0;
  }

  body > .ippg-filters.leg-filters-drawer--portal .ippg-filter-title {
    font-family: 'Whitney', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    color: #002d72;
    margin: 0 0 24px;
  }

  body > .ippg-filters.leg-filters-drawer--portal .ippg-search-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 48px;
    padding: 8px 24px;
    background: #fff;
    border: 1px solid #bec7d0;
    border-radius: 12px;
  }

  body > .ippg-filters.leg-filters-drawer--portal .ippg-search-icon {
    display: flex;
    flex-shrink: 0;
    line-height: 0;
  }

  body > .ippg-filters.leg-filters-drawer--portal .ippg-search,
  body > .ippg-filters.leg-filters-drawer--portal input.ippg-search.leg-search {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: 'Whitney', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    color: #203040;
    outline: none !important;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
  }

  body > .ippg-filters.leg-filters-drawer--portal .ippg-search::placeholder,
  body > .ippg-filters.leg-filters-drawer--portal input.ippg-search.leg-search::placeholder {
    color: #5b6672 !important;
    opacity: 1;
  }

  body > .ippg-filters.leg-filters-drawer--portal label.ippg-filter-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    cursor: pointer;
    font-family: 'Whitney', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    color: #5b6672 !important;
  }

  body > .ippg-filters.leg-filters-drawer--portal label.ippg-filter-label span {
    display: block;
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    line-height: 1.5;
    color: #5b6672 !important;
  }

  body > .ippg-filters.leg-filters-drawer--portal .leg-filters-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    top: 8px;
    right: 8px;
  }

  body > .ippg-filters.leg-filters-drawer--portal label.ippg-filter-label:last-child {
    margin-bottom: 0;
  }

  body > .ippg-filters.leg-filters-drawer--portal .filter-checkbox {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    margin: 0;
    padding: 4px;
    border: 1px solid #bec7d0;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex-shrink: 0;
  }

  body > .ippg-filters.leg-filters-drawer--portal .filter-checkbox:checked {
    background: #fff;
    border-color: #002d72;
  }

  body > .ippg-filters.leg-filters-drawer--portal .filter-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #002d72;
    border-radius: 2px;
  }

  html.leg-filters-scroll-lock,
  body.leg-filters-scroll-lock {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  body > .ocm-effect-wrap.leg-filters-scroll-lock {
    overflow: hidden !important;
    overscroll-behavior: none;
    height: 100%;
    max-height: 100dvh;
  }

}

@media (max-width: 768px) {
  .ippg-root.leg-events-grid .ippg-cards {
    grid-template-columns: 1fr !important;
  }

  .ippg-root.leg-events-grid .leg-empty-state {
    padding: 0;
  }
}
