/* =============================================================
   news-events.css — News & Events page styles
   Base: 19px → scaled via global.css media queries
   ============================================================= */

/* ============================================================
   1. HERO SECTION
   ============================================================ */


.ne-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  padding-bottom: 4.526rem;
  /* ~200px / 19 */
  padding-top: 6rem;
  max-width: 80.47rem;
  padding-left: 6.91rem;
  min-height: 34rem;
}

.ne-hero-label {
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: 1.316rem;
  /* 25px / 19 */
  color: #ffffff;
  margin-bottom: 1.053rem;
  line-height: normal;
}

.ne-hero-title {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 3.368rem;
  /* 64px / 19 */
  line-height: 1.125;
  /* ~72px */
  color: #ffffff;
  margin-bottom: 2.105rem;
}

.ne-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.842rem;
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: 1.316rem;
  /* 25px / 19 */
  color: #ffffff;
  text-decoration: none;
  transition: gap 0.3s ease;
}

.ne-hero-link:hover {
  gap: 1.263rem;
  color: #ffffff;
}

.ne-hero-link svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.ne-hero-link:hover svg {
  transform: translateX(4px);
}

/* "News and events" label — bottom-left badge */
/* .ne-hero-badge {
  margin-top: 10.19rem;
} */

.ne-hero-badge span {
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: 1.789rem;
  /* 34px / 19 */
  color: #ffffff;
  line-height: 1.3;
}

/* ============================================================
   2. SECTION SHARED
   ============================================================ */
.ne-container {
  max-width: 85.47rem;
}

.ne-section-title {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 2.263rem;
  /* 43px / 19 */
  color: var(--base-dark);
  line-height: normal;
}

/* ============================================================
   3. UPCOMING EVENTS SECTION
   ============================================================ */
.ne-events-section {
  padding-top: 5.526rem;
  /* ~105px / 19 */
  padding-bottom: 3.684rem;
  background-color: var(--bg-white);
}

.ne-events-section .ne-section-title {
  margin-bottom: 2.632rem;
  /* 50px / 19 */
}

/* Featured large card (hero event) */
.ne-featured-event {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 27.158rem;
  /* ~516px / 19 */
}

.ne-featured-img-wrapper {
  width: 100%;
  height: 15.421rem;
  /* 293px / 19 */
  overflow: hidden;
  border-radius: 0.421rem;
  background-color: #554343;
}

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

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

.ne-featured-content {
  padding-top: 1.053rem;
  display: flex;
  flex-direction: column;
  gap: 0.421rem;
}

.ne-featured-name {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 1.316rem;
  /* 25px / 19 */
  color: var(--base-dark);
  line-height: normal;
}

.ne-featured-desc {
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: 1rem;
  /* 19px / 19 */
  color: var(--text-sub);
  line-height: 1.579rem;
}

.ne-featured-date {
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.579rem;
  color: var(--text-sub);
  margin-top: 0.263rem;
}

/* ============================================================
   4. NEWS SECTION
   ============================================================ */
.ne-news-section {
  padding-top: 4.211rem;
  /* 80px / 19 */
  padding-bottom: 5.263rem;
  background-color: var(--bg-white);
  border-top: 0.053rem solid #f0f0f0;
}

/* Header row with title + filter dropdowns */
.ne-news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.632rem;
}

/* Wraps the Type + Year dropdowns so they sit side by side */
.ne-news-filters {
  display: flex;
  align-items: center;
  gap: 0.789rem; /* 15px / 19 */
}

/* ============================================================
   HERO SLIDESHOW
   ============================================================ */
.ne-hero-slider {
  position: relative;
  overflow: hidden;
}

/* Background image slides — stacked, only active visible */
.ne-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
}

.ne-hero-slide.active {
  opacity: 1;
  z-index: 1;
}


.ne-hero-slide .gl-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ne-hero-slider .gl-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(0, 0, 0, 0.60) 39.13%, rgba(0, 0, 0, 0.24) 92.67%) !important;
  z-index: 3 !important;
}

.ne-hero-slider .ne-hero-content {
  z-index: 4;
}

/* Text slides */
.ne-hero-text-slide {
  display: none;
}

.ne-hero-text-slide.active {
  display: block;
}

/* Controls row */
.ne-hero-controls {
  display: flex;
  align-items: center;
  gap: 1.053rem;
  margin-top: 2.632rem;
}

/* Prev / Next arrows */
.ne-hero-arrow {
  all: unset;
  box-sizing: border-box;
  width: 2.632rem;
  height: 2.632rem;
  border-radius: 50%;
  border: 0.053rem solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.ne-hero-arrow:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
}

/* Dot indicators */
.ne-hero-dots {
  display: flex;
  align-items: center;
  gap: 0.526rem;
}

.ne-hero-dot {
  all: unset;
  box-sizing: border-box;
  width: 0.526rem;
  height: 0.526rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.ne-hero-dot.active {
  background-color: #ffffff;
  width: 1.579rem;
  border-radius: 0.263rem;
}

.ne-hero-dot:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

/* Dropdown — reuse same pattern as blogs.css; shared by Type + Year */
.ne-news-section .dropdown-wrapper {
  position: relative;
}

.ne-news-section .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border: 0.053rem solid #d9d9d9;
  border-radius: 1.579rem;
  padding: 0 1.789rem;
  height: 2.421rem;
  /* 46px / 19 */
  min-width: 6.895rem;
  /* ~131px / 19 */
  font-family: var(--font-secondary);
  font-size: 0.842rem;
  font-weight: 400;
  color: var(--base-dark);
  background-color: var(--bg-white);
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 0.526rem;
}

.ne-news-section .dropdown-toggle:hover {
  border-color: var(--primary-blue);
}

.ne-news-section .dropdown-arrow {
  transition: transform 0.3s ease;
}

.ne-news-section .dropdown-wrapper.open .dropdown-arrow {
  transform: rotate(180deg);
}

.ne-news-section .dropdown-menu {
  position: absolute;
  top: 115%;
  right: 0;
  background-color: var(--bg-white);
  border: 0.053rem solid #e8e8ea;
  border-radius: 0.526rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  min-width: 8rem;
  z-index: 100;
  padding: 0.421rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ne-news-section .dropdown-wrapper.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ne-news-section .dropdown-item {
  font-family: var(--font-primary);
  font-size: 0.842rem;
  color: var(--text-sub);
  padding: 0.526rem 1.053rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ne-news-section .dropdown-item:hover {
  background-color: rgba(8, 75, 129, 0.06);
  color: var(--primary-blue);
}

.ne-news-section .dropdown-item.active {
  background-color: rgba(8, 75, 129, 0.1);
  color: var(--primary-blue);
  font-weight: 500;
}

/* News Grid — 4 columns */
.ne-news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.579rem;
  /* 30px / 19 */
  margin-bottom: 3.158rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Individual news card */
.ne-news-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin-bottom: 1.8rem;
}

.ne-news-card:hover {
  transform: translateY(-4px);
}

.ne-news-img-wrapper {
  width: 100%;
  height: 15.421rem;
  /* 293px / 19 */
  overflow: hidden;
  border-radius: 0.421rem;
  background-color: #554343;
  margin-bottom: 0.789rem;
}

.ne-news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.ne-news-content {
  display: flex;
  flex-direction: column;
  gap: 0.69rem;
  padding-top: 0.526rem;
}

.ne-news-name {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 1.5625rem;
  /* 25px / 19 */
  color: var(--base-dark);
  line-height: normal;
}

.ne-news-desc {
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: 1.053rem;
  /* 20px / 19 */
  color: var(--base-dark);
  line-height: 1.579rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ne-news-date {
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.579rem;
  color: var(--text-sub);
  margin-top: 0.105rem;
}

/* Type label colors */
.ne-type-event {
  color: var(--text-sub);
}

.ne-type-news {
  color: var(--text-sub);
}

/* ============================================================
   5. VIEW ALL BUTTON
   ============================================================ */
.ne-view-all-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1.579rem;
}

.ne-view-all-btn {
  border: 0.042rem solid #000000;
  border-radius: 1.579rem;
  background-color: transparent;
  height: 2.632rem;
  /* 50px / 19 */
  width: 10.211rem;
  /* 194px / 19 */
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 0.842rem;
  color: var(--base-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}

.ne-view-all-btn:hover {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--bg-white);
}

/* ============================================================
   UPCOMING EVENTS SLIDER
   ============================================================ */
.ne-events-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 1.579rem;
  margin-top: 2.632rem;
}

.ne-events-arrow-btn {
  all: unset;
  width: 3.053rem;
  height: 3.053rem;
  border-radius: 50%;
  border: 0.053rem solid var(--border-gray, #e0e0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: var(--bg-white);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.ne-events-arrow-btn:hover {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.ne-events-arrow-btn:hover svg path {
  stroke: #ffffff;
}

.ne-events-arrow-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.ne-events-arrow-btn:disabled:hover {
  background-color: var(--bg-white);
  border-color: var(--border-gray, #e0e0e0);
}

.ne-events-arrow-btn:disabled:hover svg path {
  stroke: #3e3232;
}

.ne-events-track-wrapper {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.ne-events-track {
  display: flex;
  /* flex instead of grid — JS sets width on each card */
  gap: 1.579rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* ne-featured-event unchanged — just sits inside the track now */
.ne-featured-event {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  /* width set by JS */
}

@media (max-width: 768px) {
  .ne-events-arrow-btn {
    width: 2.316rem;
    height: 2.316rem;
  }
}

/* ============================================================
   6. RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
  .ne-hero-title {
    font-size: 2.8rem;
  }

  .ne-news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .ne-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ne-hero {
    height: 40rem;
  }

  .ne-hero-title {
    font-size: 2rem;
  }

  .ne-hero-label {
    font-size: 1rem;
  }

  /* .ne-hero-badge {
    bottom: 2.5rem;
  } */

  .ne-hero-badge span {
    font-size: 1.263rem;
  }

  .ne-section-title {
    font-size: 1.579rem;
  }

  .ne-news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.053rem;
  }

  .ne-news-filters {
    width: 100%;
    flex-wrap: wrap;
  }

  .ne-news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.053rem;
  }
}

@media (max-width: 575px) {
  .ne-hero-title {
    font-size: 1.6rem;
  }

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

  .ne-featured-event {
    max-width: 100%;
  }
}

@media (max-width: 1400px) {
  .ne-news-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ne-container {
    max-width: 75.47rem;
  }
}

/* Pagination — identical tokens to case_studies/testimonials, prefixed ne- */
.ne-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.053rem;
  border-top: 0.053rem solid #eaecf0;
  margin-top: 0;
}

.ne-pagination-btn {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 0.421rem;
  height: 2.316rem;
  padding: 0 0.737rem;
  border-radius: 0.421rem;
  border: 1px solid var(--Gray-300, #2a2c2f);
  background-color: var(--bg-white);
  color: var(--base-dark);
  font-family: var(--font-primary);
  font-size: 0.737rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  transition: all 0.25s ease;
}

.ne-pagination-btn svg {
  transition: transform 0.25s ease;
}

.ne-pagination-btn:hover:not(:disabled) {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 0.421rem;
  height: 2.316rem;
  padding: 0 0.737rem;
  border-radius: 0.421rem;
  border: 1px solid var(--Gray-300, #D0D5DD);
  font-family: var(--font-primary);
  font-size: 0.737rem;
  font-weight: 500;
  cursor: pointer;
  background-color: var(--primary-blue);
  color: var(--bg-white);
  border-color: var(--primary-blue);
}

.ne-prev-btn:hover:not(:disabled) svg {
  transform: translateX(-3px);
}

.ne-next-btn:hover:not(:disabled) svg {
  transform: translateX(3px);
}

.ne-pagination-btn:disabled {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 0.421rem;
  height: 2.316rem;
  padding: 0 0.737rem;
  border-radius: 0.421rem;
  border: 1px solid var(--Gray-300, #D0D5DD);
  background-color: var(--bg-white);
  color: var(--base-dark);
  font-family: var(--font-primary);
  font-size: 0.737rem;
  font-weight: 500;
  opacity: 0.4;
  cursor: not-allowed;
}

.ne-pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.105rem;
}

.ne-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.105rem;
  height: 2.105rem;
  border-radius: 0.421rem;
  border: none;
  background-color: transparent;
  font-family: var(--font-primary);
  font-size: 0.842rem;
  font-weight: 400;
  color: #667085;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ne-page-btn:hover {
  background-color: rgba(8, 75, 129, 0.06);
  color: var(--primary-blue);
}

.ne-page-btn.active {
  background-color: #f9f5ff;
  color: var(--primary-blue);
  font-weight: 600;
}

.ne-page-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.105rem;
  height: 2.105rem;
  font-family: var(--font-primary);
  font-size: 0.842rem;
  color: #667085;
  font-weight: 500;
}

@media (max-width: 768px) {
  .ne-pagination {
    flex-direction: column;
    gap: 1.053rem;
    align-items: center;
  }

  .ne-pagination-pages {
    order: -1;
  }
}

@media (max-width: 480px) {
  .ne-pagination-pages {
    flex-wrap: wrap;
    justify-content: center;
  }
}