/* ==========================================================================
   News Center · reference layout
   Two-column editorial module: image story carousel + tabbed headline list.
   Fluid by default so it fills wide screens without a fixed max-width frame.
   ========================================================================== */

.news-center {
  position: relative;
  padding: clamp(54px, 5.6vw, 86px) 0 clamp(62px, 6.5vw, 96px);
  background: #fff;
}

.news-center__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(23px, 2.4vw, 34px);
}

.news-center__title {
  position: relative;
  padding-left: 16px;
  color: #18345e;
  font-size: clamp(28px, 2.35vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
}

.news-center__title::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 1.06em;
  background: #1558df;
  transform: translateY(-50%);
}

.news-center__sub {
  color: #969ea9;
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.6;
  letter-spacing: .02em;
  text-align: right;
}

.news-center__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(16px, 1.75vw, 26px);
}

/* --------------------------------------------------------------------------
   Carousel
   -------------------------------------------------------------------------- */

.nv-stage {
  position: relative;
  min-width: 0;
  min-height: clamp(360px, 27vw, 420px);
  overflow: hidden;
  border-radius: 5px;
  background: #0b1d32;
  outline: none;
}

.nv-stage:focus-visible {
  box-shadow: 0 0 0 3px rgba(25, 76, 255, .25);
}

.nv-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.nv-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .64s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.nv-slide {
  position: relative;
  display: block;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  color: #fff;
}

.nv-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(.22, 1, .36, 1);
}

.nv-slide:hover img { transform: scale(1.025); }

.nv-slide__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 16, 34, .02) 34%, rgba(4, 16, 34, .14) 54%, rgba(4, 16, 34, .78) 100%),
    linear-gradient(90deg, rgba(4, 16, 34, .2) 0%, rgba(4, 16, 34, 0) 58%);
  pointer-events: none;
}

.nv-slide__caption {
  position: absolute;
  right: clamp(56px, 6.2vw, 108px);
  bottom: clamp(42px, 4vw, 52px);
  left: clamp(18px, 2vw, 28px);
  z-index: 2;
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: clamp(15px, 1.34vw, 19px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: .015em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .46);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.nv-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  color: rgba(255, 255, 255, .92);
  background: rgba(14, 29, 47, .22);
  box-shadow: 0 6px 18px rgba(0, 8, 24, .16);
  cursor: pointer;
  opacity: .82;
  transform: translateY(-50%);
  transition: color .2s ease, background .2s ease, opacity .2s ease, transform .25s var(--ease);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.nv-arrow:hover {
  color: #17304e;
  background: rgba(255, 255, 255, .94);
  opacity: 1;
  transform: translateY(-50%) scale(1.04);
}

.nv-arrow .icon { width: 17px; height: 17px; }
.nv-arrow--prev { left: 18px; }
.nv-arrow--prev .icon { transform: rotate(180deg); }
.nv-arrow--next { right: 18px; }

.nv-dots {
  position: absolute;
  right: clamp(20px, 2.2vw, 30px);
  bottom: 17px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nv-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
  cursor: pointer;
  transition: width .3s var(--ease), background .2s ease;
}

.nv-dot:hover { background: rgba(255, 255, 255, .82); }
.nv-dot.is-active { width: 18px; background: #fff; }

/* --------------------------------------------------------------------------
   Tabbed headline panel
   -------------------------------------------------------------------------- */

.nv-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e6e8ec;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(22, 46, 82, .025);
}

.nv-tabs {
  display: flex;
  align-items: stretch;
  flex: none;
  gap: clamp(25px, 2.8vw, 48px);
  min-height: 50px;
  padding: 0 clamp(20px, 2.3vw, 31px);
  overflow-x: auto;
  border-bottom: 1px solid #eceef1;
  scrollbar-width: none;
}

.nv-tabs::-webkit-scrollbar { display: none; }

.nv-tab {
  position: relative;
  flex: none;
  padding: 0;
  border: 0;
  color: #5c6572;
  background: none;
  font-size: clamp(14px, 1.08vw, 15px);
  font-weight: 600;
  line-height: 50px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease;
}

.nv-tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #1b5bd6;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .26s var(--ease);
}

.nv-tab:hover { color: #164fbd; }
.nv-tab.is-active { color: #164fbd; }
.nv-tab.is-active::after { transform: scaleX(1); }

.nv-lists {
  display: flex;
  flex: 1;
  min-height: 0;
}

.nv-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}

.nv-item {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-height: 62px;
  padding: 0 clamp(20px, 2.3vw, 31px);
  overflow: hidden;
  border-bottom: 1px dashed #dedfe2;
  color: #34383f;
  font-size: clamp(13px, 1.06vw, 15px);
  line-height: 1.55;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color .2s ease, background .2s ease;
}

.nv-item:last-child { border-bottom: 0; }
.nv-item:hover,
.nv-item:focus-visible {
  color: #1b5bd6;
  background: #f8faff;
}

.nv-config-tip {
  margin: auto;
  padding: 28px;
  color: #8b99aa;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .news-center__grid { grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); }
  .nv-tabs { gap: 22px; }
  .nv-stage { min-height: 350px; }
}

@media (max-width: 900px) {
  .news-center { padding: 58px 0 68px; }
  .news-center__grid { grid-template-columns: 1fr; gap: 16px; }
  .nv-stage {
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
  }
  .nv-slide__caption { bottom: 38px; font-size: clamp(15px, 2.2vw, 19px); }
  .nv-panel { min-height: 332px; }
  .nv-item { flex: 0 0 auto; min-height: 58px; }
  .nv-list { justify-content: stretch; }
  .nv-tabs { gap: clamp(20px, 5vw, 44px); }
}

@media (max-width: 640px) {
  .news-center { padding: 46px 0 56px; }
  .news-center__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 20px;
  }
  .news-center__title {
    padding-left: 13px;
    font-size: 27px;
  }
  .news-center__title::before { width: 3px; }
  .news-center__sub { font-size: 11.5px; text-align: left; }
  .nv-stage {
    aspect-ratio: 16 / 10;
    border-radius: 5px;
  }
  .nv-arrow { width: 32px; height: 32px; }
  .nv-arrow--prev { left: 10px; }
  .nv-arrow--next { right: 10px; }
  .nv-arrow .icon { width: 14px; height: 14px; }
  .nv-slide__caption {
    right: 54px;
    bottom: 34px;
    left: 15px;
    font-size: 14px;
    line-height: 1.5;
  }
  .nv-dots { right: 15px; bottom: 13px; gap: 7px; }
  .nv-dot { width: 6px; height: 6px; }
  .nv-dot.is-active { width: 15px; }
  .nv-panel { min-height: 0; }
  .nv-tabs {
    min-height: 47px;
    padding: 0 17px;
    gap: 22px;
  }
  .nv-tab { font-size: 13px; line-height: 47px; }
  .nv-item {
    flex: 0 0 auto;
    min-height: 55px;
    padding: 0 17px;
    font-size: 12.5px;
  }
}

@media (max-width: 380px) {
  .nv-tabs { gap: 18px; }
  .nv-tab { font-size: 12.5px; }
  .nv-item { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .nv-track,
  .nv-slide img,
  .nv-arrow,
  .nv-dot { transition: none; }
}
