/* News portal landing — UAiDE-style blue / yellow information site */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.landing-news {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ns-text, #1a1f2e);
  background: var(--ns-bg, #fff);
}

.ns-container {
  width: min(1140px, 100% - 2rem);
  margin-inline: auto;
}

/* ── Header ── */
.ns-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(0, 87, 183, 0.12);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.ns-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 40, 100, 0.08);
}

.ns-header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(1140px, 100% - 2rem);
  margin-inline: auto;
  padding: 0.65rem 0;
  min-height: 3.5rem;
}

.ns-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ns-blue, #0057b7);
  flex-shrink: 0;
}

.ns-brand-logo {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

.ns-brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ns-nav-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.ns-nav-toggle span {
  display: block;
  height: 2px;
  width: 1.35rem;
  background: var(--ns-blue, #0057b7);
  border-radius: 2px;
}

.ns-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1.1rem;
  flex: 1;
  min-width: 0;
}

.ns-nav a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ns-text, #1a1f2e);
  white-space: nowrap;
}

.ns-nav a:hover {
  color: var(--ns-blue, #0057b7);
}

.ns-header-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.ns-search-btn {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--ns-blue, #0057b7);
  text-decoration: none;
  border-radius: 8px;
}

.ns-search-btn:hover {
  background: rgba(0, 87, 183, 0.08);
}

.landing-news .lang-picker {
  font-size: 0.8rem;
  font-weight: 600;
}

/* ── Hero ── */
.ns-hero {
  position: relative;
  min-height: min(52vh, 420px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background: linear-gradient(135deg, #004494 0%, #0057b7 45%, #1a6fd4 100%);
}

.ns-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.ns-hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 28, 65, 0.82) 0%,
    rgba(0, 40, 90, 0.52) 28%,
    rgba(0, 50, 110, 0.18) 48%,
    transparent 62%
  );
}

.ns-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1140px, 100% - 2rem);
  margin-inline: auto;
  max-width: min(1140px, 100% - 2rem);
  padding: 3rem 0 2.75rem;
  text-align: left;
}

.ns-hero-copy {
  max-width: min(34rem, 92vw);
}

.ns-hero-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 4.5vw, 2.65rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 20, 50, 0.35);
}

.ns-hero-subtitle {
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.ns-hero-cta {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: #ffd700;
  color: #1a1f2e;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ns-hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* ── Main grid ── */
.ns-main {
  padding: 2.25rem 0 1.5rem;
}

.ns-main-grid {
  display: grid;
  grid-template-columns: 1fr min(340px, 36%);
  gap: 1.75rem;
  align-items: start;
}

.ns-section-title {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ns-section-title--sm {
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

/* News cards — desktop grid */
.ns-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.ns-news-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ns-news-card-media,
.ns-news-list-thumb {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e8eef5;
}

.ns-news-card-media img,
.ns-news-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ns-news-card-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #dce8f5, #c5d9ef);
}

.ns-news-card-title {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.ns-news-card-title a {
  color: inherit;
  text-decoration: none;
}

.ns-news-card-title a:hover {
  color: var(--ns-blue, #0057b7);
}

.ns-news-more {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
}

.ns-news-more a {
  color: var(--ns-blue, #0057b7);
  font-weight: 600;
}

.ns-news-empty {
  color: #5a6578;
  margin: 0;
}

/* Aside cards */
.ns-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ns-card {
  border-radius: 16px;
  padding: 1.35rem 1.25rem;
}

.ns-card--blue {
  background: #e6f0f9;
}

.ns-card--yellow {
  background: #fff7e6;
}

.ns-card--green {
  background: #e6f4ea;
}

.ns-card-icon {
  color: var(--ns-blue, #0057b7);
  margin-bottom: 0.65rem;
}

.ns-card-icon--heart {
  color: #c45a00;
}

.ns-card-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ns-card-text {
  margin: 0;
  font-size: 0.92rem;
  color: #3d4656;
}

.ns-check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ns-check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.ns-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--ns-blue, #0057b7);
  transform: rotate(45deg);
}

/* Life banner */
.ns-life-banner {
  margin: 0.5rem 0 1.75rem;
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
}

.ns-life-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.ns-life-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ns-life-text {
  margin: 0;
  font-size: 0.92rem;
  color: #3d4656;
}

.ns-work-teaser {
  padding-bottom: 2.5rem;
}

.ns-work-text {
  margin: 0;
  max-width: 52rem;
  color: #3d4656;
}

/* Modular sections reuse */
.ns-module-wrap {
  border-top: 1px solid rgba(0, 87, 183, 0.1);
  padding-top: 1rem;
}

.landing-news .lp-section {
  padding: 2rem 0;
}

.landing-news .lp-container {
  width: min(1140px, 100% - 2rem);
  margin-inline: auto;
}

/* Footer */
.ns-footer {
  border-top: 1px solid rgba(0, 87, 183, 0.12);
  background: #f8fafc;
  padding: 1.5rem 0 0.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.ns-footer-inner {
  width: min(1140px, 100% - 2rem);
  margin-inline: auto;
}

.ns-footer a {
  color: var(--ns-blue, #0057b7);
}

.ns-footer-copy {
  margin: 0 0 0.35rem;
  font-weight: 600;
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .ns-main-grid {
    grid-template-columns: 1fr;
  }

  .ns-aside {
    order: 2;
  }

  .ns-news-grid {
    display: none;
  }

  .ns-news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .ns-news-list-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
  }

  .ns-news-list-thumb {
    width: 5.5rem;
    flex-shrink: 0;
    aspect-ratio: 1;
    border-radius: 12px;
  }

  .ns-news-list-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: inherit;
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
  }

  .ns-news-list-date {
    font-size: 0.8rem;
    color: #6b7585;
  }
}

@media (max-width: 820px) {
  .ns-nav-toggle {
    display: flex;
  }

  .ns-header-inner {
    flex-wrap: wrap;
  }

  .ns-nav {
    display: none;
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 0 0.5rem;
    border-top: 1px solid rgba(0, 87, 183, 0.1);
  }

  .ns-nav.is-open {
    display: flex;
  }

  .ns-nav a {
    padding: 0.5rem 0;
    font-size: 0.78rem;
  }

  .ns-header-tools {
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .ns-hero-inner {
    padding: 2.25rem 0 2rem;
  }

  .ns-hero-overlay {
    background: linear-gradient(
      90deg,
      rgba(0, 28, 65, 0.88) 0%,
      rgba(0, 40, 90, 0.55) 45%,
      rgba(0, 50, 110, 0.2) 70%,
      transparent 100%
    );
  }

  .ns-brand-name {
    font-size: 1rem;
  }
}
