/* SILO News & Events */

.news-events-content {
  background: #f4f7fb;
}

.news-events-shell {
  width: 100%;
}

/* Toolbar */
.ne-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: clamp(28px, 3.5vw, 40px);
  padding: 14px 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e3e9f2;
  box-shadow: 0 2px 16px rgba(15, 42, 83, 0.04);
}

.ne-toolbar--sticky {
  position: sticky;
  top: 10px;
  z-index: 20;
}

.ne-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.ne-filters::-webkit-scrollbar {
  display: none;
}

.ne-filter-btn {
  flex-shrink: 0;
  padding: 9px 18px;
  border: 1px solid #e3e9f2;
  border-radius: 999px;
  background: #f8fafc;
  color: #5c6778;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ne-filter-btn:hover {
  border-color: rgba(30, 106, 255, 0.28);
  color: var(--_colors---theme-color--heading-black);
  background: #ffffff;
}

.ne-filter-btn:focus-visible {
  outline: 2px solid var(--_colors---theme-color--sky-blue);
  outline-offset: 2px;
}

.ne-filter-btn[aria-pressed="true"] {
  background: var(--_colors---theme-color--heading-black);
  border-color: var(--_colors---theme-color--heading-black);
  color: var(--_colors---base-color--white);
  box-shadow: 0 4px 14px rgba(15, 42, 83, 0.18);
}

.ne-search {
  position: relative;
  flex: 1 1 220px;
  max-width: 300px;
}

.ne-search input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border: 1px solid #e3e9f2;
  border-radius: 12px;
  background: #f8fafc;
  font-family: inherit;
  font-size: 14px;
  color: var(--_colors---theme-color--heading-black);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ne-search input::placeholder {
  color: #94a3b8;
}

.ne-search input:hover {
  background: #ffffff;
}

.ne-search input:focus {
  outline: none;
  border-color: var(--_colors---theme-color--sky-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(30, 106, 255, 0.12);
}

.ne-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #94a3b8;
  pointer-events: none;
}

/* Layout */
.ne-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

.ne-main {
  min-width: 0;
}

.ne-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 20px;
}

.ne-section-head__title {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  color: var(--_colors---theme-color--heading-black);
  letter-spacing: -0.01em;
}

.ne-section-head__count {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

/* Featured */
.ne-featured {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.ne-featured[hidden],
.ne-upcoming[hidden],
.ne-grid[hidden],
.ne-section-head[hidden] {
  display: none !important;
}

.ne-featured-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e3e9f2;
  box-shadow: 0 8px 40px rgba(15, 42, 83, 0.08);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ne-featured-card:hover {
  transform: translateY(-3px);
  border-color: #c5d4ea;
  box-shadow: 0 20px 48px rgba(15, 42, 83, 0.12);
}

.ne-featured-card:focus-visible {
  outline: 3px solid var(--_colors---theme-color--sky-blue);
  outline-offset: 3px;
}

.ne-featured-card__media {
  position: relative;
  min-height: 300px;
  background: linear-gradient(135deg, #eef4ff 0%, #f8fafc 100%);
  overflow: hidden;
}

.ne-featured-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.ne-featured-card__media .ne-card__placeholder {
  position: absolute;
  inset: 0;
}

.ne-featured-card:hover .ne-featured-card__media img {
  transform: scale(1.04);
}

.ne-featured-card__ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 42, 83, 0.82);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ne-featured-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.ne-featured-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: clamp(28px, 3.5vw, 40px);
}

.ne-featured-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 13px;
  color: #64748b;
}

.ne-featured-card__title {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  color: var(--_colors---theme-color--heading-black);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.ne-featured-card__excerpt {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #5c6778;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ne-featured-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--_colors---theme-color--sky-blue);
  transition: gap 0.2s ease;
}

.ne-featured-card:hover .ne-featured-card__cta {
  gap: 12px;
}

/* Card grid */
.ne-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ne-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e3e9f2;
  box-shadow: 0 2px 16px rgba(15, 42, 83, 0.04);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ne-card:hover {
  transform: translateY(-4px);
  border-color: #c5d4ea;
  box-shadow: 0 16px 40px rgba(15, 42, 83, 0.1);
}

.ne-card:focus-visible {
  outline: 3px solid var(--_colors---theme-color--sky-blue);
  outline-offset: 2px;
}

.ne-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #eef4ff 0%, #f8fafc 100%);
  overflow: hidden;
}

.ne-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ne-card:hover .ne-card__media img {
  transform: scale(1.05);
}

.ne-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--_colors---theme-color--sky-blue);
  opacity: 0.35;
}

.ne-card__placeholder svg {
  width: 44px;
  height: 44px;
}

.ne-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.ne-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 22px;
}

.ne-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 12px;
  color: #64748b;
}

.ne-card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--_colors---theme-color--heading-black);
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ne-card__excerpt {
  margin: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  color: #5c6778;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ne-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  margin-top: auto;
  border-top: 1px solid #f1f5f9;
}

.ne-card__link-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--_colors---theme-color--sky-blue);
  transition: gap 0.2s ease;
}

.ne-card:hover .ne-card__link-hint {
  gap: 10px;
}

/* Shared meta */
.ne-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
}

.ne-meta-date {
  font-size: inherit;
  color: inherit;
}

/* Badges */
.ne-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.ne-badge--news {
  background: rgba(30, 106, 255, 0.1);
  color: var(--_colors---theme-color--sky-blue);
}

.ne-badge--event {
  background: rgba(4, 120, 87, 0.1);
  color: #047857;
}

.ne-badge--product {
  background: rgba(109, 40, 217, 0.1);
  color: #6d28d9;
}

.ne-badge--partnership {
  background: rgba(194, 65, 12, 0.1);
  color: #c2410c;
}

.ne-badge--company {
  background: rgba(71, 85, 105, 0.1);
  color: #475569;
}

.ne-badge--community {
  background: rgba(190, 24, 93, 0.1);
  color: #be185d;
}

.ne-badge--live {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

/* Upcoming sidebar */
.ne-upcoming {
  position: sticky;
  top: 168px;
  padding: 24px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e3e9f2;
  box-shadow: 0 4px 24px rgba(15, 42, 83, 0.05);
}

.ne-upcoming__header {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}

.ne-upcoming__title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--_colors---theme-color--heading-black);
  letter-spacing: -0.01em;
}

.ne-upcoming__subtitle {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}

.ne-upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ne-upcoming-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ne-upcoming-item:hover {
  background: rgba(30, 106, 255, 0.05);
  border-color: rgba(30, 106, 255, 0.2);
  transform: translateX(2px);
}

.ne-upcoming-item:focus-visible {
  outline: 2px solid var(--_colors---theme-color--sky-blue);
  outline-offset: 2px;
}

.ne-upcoming-item__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 6px 4px;
  border-radius: 12px;
  background: var(--_colors---theme-color--sky-blue);
  color: var(--_colors---base-color--white);
  text-align: center;
  line-height: 1.1;
  box-shadow: 0 4px 12px rgba(30, 106, 255, 0.25);
}

.ne-upcoming-item__month {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.ne-upcoming-item__day {
  font-size: 20px;
  font-weight: 700;
}

.ne-upcoming-item__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--_colors---theme-color--heading-black);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ne-upcoming-item__meta {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.ne-upcoming-empty {
  margin: 0;
  padding: 20px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #d1dbe8;
  font-size: 13px;
  color: #64748b;
  text-align: center;
  line-height: 1.55;
}

/* Event details row on cards */
.ne-event-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: #64748b;
}

.ne-event-details span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ne-event-details svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.75;
  color: var(--_colors---theme-color--sky-blue);
}

/* States */
.ne-loading {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ne-skeleton {
  border-radius: 18px;
  background: linear-gradient(90deg, #eef2f7 25%, #e2e8f0 50%, #eef2f7 75%);
  background-size: 200% 100%;
  animation: ne-shimmer 1.4s ease infinite;
}

.ne-skeleton--featured {
  height: 320px;
  margin-bottom: 32px;
  border-radius: 20px;
}

.ne-skeleton--card {
  height: 360px;
}

@keyframes ne-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.ne-empty {
  grid-column: 1 / -1;
  padding: clamp(48px, 6vw, 64px) 24px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px dashed #d1dbe8;
  text-align: center;
}

.ne-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
}

.ne-empty__icon svg {
  width: 28px;
  height: 28px;
}

.ne-empty__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--_colors---theme-color--heading-black);
}

.ne-empty__text {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  max-width: 320px;
  margin-inline: auto;
  line-height: 1.55;
}

.ne-error {
  grid-column: 1 / -1;
  padding: 20px 24px;
  border-radius: 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 14px;
  line-height: 1.55;
}

/* Modal preview */
.ne-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ne-modal[hidden] {
  display: none !important;
}

.ne-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 42, 83, 0.6);
  backdrop-filter: blur(6px);
  animation: ne-fade-in 0.25s ease;
}

.ne-modal__dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(15, 42, 83, 0.25);
  animation: ne-slide-up 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes ne-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes ne-slide-up {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ne-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--_colors---theme-color--heading-black);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(15, 42, 83, 0.14);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ne-modal__close:hover {
  background: #ffffff;
  transform: scale(1.05);
}

.ne-modal__close:focus-visible {
  outline: 2px solid var(--_colors---theme-color--sky-blue);
  outline-offset: 2px;
}

.ne-modal__media {
  aspect-ratio: 21 / 9;
  background: linear-gradient(135deg, #eef4ff 0%, #f8fafc 100%);
}

.ne-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ne-modal__body {
  padding: clamp(24px, 3vw, 32px);
}

.ne-modal__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #64748b;
}

.ne-modal__title {
  margin: 0 0 16px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--_colors---theme-color--heading-black);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.ne-modal__content {
  font-size: 15px;
  line-height: 1.75;
  color: #475569;
}

.ne-modal__content p {
  margin: 0 0 14px;
}

.ne-modal__content p:last-child {
  margin-bottom: 0;
}

.ne-modal__event-box {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e3e9f2;
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
}

.ne-modal__event-box strong {
  color: var(--_colors---theme-color--heading-black);
}

.ne-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
}

.ne-modal__read-full {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--_colors---theme-color--sky-blue);
  text-decoration: none;
  margin-right: auto;
  align-self: center;
}

.ne-modal__read-full:hover {
  text-decoration: underline;
}

/* Press CTA */
.ne-press-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
  margin-top: clamp(56px, 7vw, 80px);
  padding: clamp(32px, 4vw, 44px);
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    var(--_colors---theme-color--sky-blue) 0%,
    color-mix(in srgb, var(--_colors---theme-color--sky-blue) 68%, var(--_colors---theme-color--heading-black)) 100%
  );
  color: var(--_colors---base-color--white);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 40px rgba(30, 106, 255, 0.22);
}

.ne-press-cta .section-blue-subtitle {
  margin-bottom: 8px;
}

.ne-press-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 700;
  color: var(--_colors---base-color--white);
  letter-spacing: -0.02em;
}

.ne-press-cta p {
  margin: 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.ne-press-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .ne-toolbar--sticky {
    top: 10px;
  }

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

  .ne-upcoming {
    position: static;
    order: -1;
  }

  .ne-featured-card {
    grid-template-columns: 1fr;
  }

  .ne-featured-card__media {
    min-height: 220px;
  }
}

@media (max-width: 767px) {
  .ne-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
  }

  .ne-search {
    max-width: none;
  }

  .ne-grid,
  .ne-loading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ne-card__body {
    padding: 18px;
  }

  .ne-press-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .ne-modal {
    padding: 16px;
    align-items: flex-end;
  }

  .ne-modal__dialog {
    max-height: 92vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ne-skeleton {
    animation: none;
  }

  .ne-card:hover,
  .ne-featured-card:hover,
  .ne-upcoming-item:hover {
    transform: none;
  }

  .ne-card:hover .ne-card__media img,
  .ne-featured-card:hover .ne-featured-card__media img {
    transform: none;
  }

  .ne-modal__backdrop,
  .ne-modal__dialog {
    animation: none;
  }
}
