:root {
  --bem-navy: #061638;
  --bem-navy-soft: #0b2452;
  --bem-blue: #176edc;
  --bem-blue-bright: #35a7ff;
  --bem-orange: #ff6a32;
  --bem-red: #ff3f46;
  --bem-gold: #ffb33f;
  --bem-ink: #17263a;
  --bem-muted: #607086;
  --bem-page: #f4f7fc;
  --bem-line: #dce5f1;
  --bem-white: #fff;
  --red: var(--bem-orange);
  --red-dark: var(--bem-navy);
  --accent: var(--bem-gold);
  --bg-light: var(--bem-page);
  --text-dark: var(--bem-ink);
  --text-light: var(--bem-white);
  --muted: var(--bem-muted);
  --radius: 14px;
  --shadow: 0 12px 32px rgba(6, 22, 56, .11);
}

body {
  background:
    radial-gradient(circle at 8% 8%, rgba(53, 167, 255, .09), transparent 28rem),
    var(--bem-page);
  color: var(--bem-ink);
}

.container {
  width: min(92%, 1120px);
}

.site-header {
  position: relative;
  z-index: 10;
  background: linear-gradient(110deg, #04112d 0%, #092353 62%, #0b3473 100%);
  border-bottom: 3px solid var(--bem-orange);
  box-shadow: 0 6px 22px rgba(6, 22, 56, .2);
}

.header-container {
  min-height: 76px;
  padding: .8rem 0;
  gap: 1.5rem;
}

.logo {
  color: #fff;
  min-width: 0;
}

.logo h1 {
  color: #fff;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.15;
}

.logo img,
.nav-logo {
  display: block;
  width: auto;
  max-width: 210px;
  max-height: 50px !important;
  object-fit: contain;
}

.main-nav ul {
  align-items: center;
  gap: .25rem;
}

.main-nav a {
  color: #fff;
  padding: .55rem .75rem;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #fff;
  background: rgba(53, 167, 255, .2);
  outline: none;
}

.search-section,
.news-detail-hero,
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 35%, rgba(255, 106, 50, .24), transparent 22rem),
    linear-gradient(120deg, #061638 0%, #0b2d67 70%, #12498f 100%);
  color: #fff;
}

.search-section::before,
.news-detail-hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

.search-section {
  padding: 3.5rem 0 4rem;
}

.search-section h2,
.hero-title,
.page-title {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.12;
  text-shadow: 0 3px 12px rgba(0,0,0,.25);
}

.search-section h2::after,
.hero-title::after,
.page-title::after {
  content: "";
  display: block;
  position: static;
  width: 72px;
  height: 4px;
  margin: .8rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bem-orange), var(--bem-gold));
  transform: none;
  animation: none;
}

.search-section p,
.hero-meta {
  color: rgba(255,255,255,.84);
}

.search-card {
  max-width: 680px;
  padding: .55rem;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 16px 35px rgba(0,0,0,.22);
}

.search-form input {
  min-width: 0;
  padding: .78rem 1rem;
  border: 0;
  border-radius: 999px;
  color: var(--bem-ink);
  background: transparent;
  font: inherit;
  outline: none;
}

.search-form input:focus {
  box-shadow: inset 0 0 0 2px rgba(23, 110, 220, .28);
}

.btn-primary {
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--bem-orange), var(--bem-red));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(255, 63, 70, .25);
}

.btn-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, #ff7d43, #ff4e54);
}

.news-listing,
.search-results,
.article-section {
  flex: 1;
  padding: 2.75rem 0 3.5rem;
}

.news-list,
.article-list {
  gap: 1.25rem;
}

.news-feature,
.article-card {
  overflow: hidden;
  border: 1px solid var(--bem-line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.news-feature {
  border-left: 5px solid var(--bem-orange);
}

.news-feature:hover,
.article-list .article-card:hover {
  transform: translateY(-3px);
  border-color: rgba(23, 110, 220, .35);
  box-shadow: 0 18px 38px rgba(6, 22, 56, .15);
}

.feature-header {
  padding: 1.3rem 1.5rem;
  color: #fff;
  background: linear-gradient(110deg, var(--bem-navy), var(--bem-blue));
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  text-shadow: none;
}

.feature-header::after {
  display: none;
  animation: none;
}

.feature-body,
.article-list .article-card a {
  padding: 1.4rem 1.5rem;
}

.feature-body p,
.article-card p,
.article-meta {
  color: var(--bem-muted);
}

.article-list .article-card {
  border-top: 4px solid var(--bem-blue);
}

.article-list .article-card h4 {
  color: var(--bem-navy);
  font-size: 1.08rem;
}

.read-more,
.breadcrumb a,
.article-body a,
.article-card a {
  color: var(--bem-blue);
}

.read-more:hover,
.breadcrumb a:hover,
.article-body a:hover {
  color: var(--bem-orange);
}

.search-results h3,
.article-title,
.article-body h1,
.article-body h2,
.article-body h3,
.article-card h1,
.article-card h2,
.article-card h3 {
  color: var(--bem-navy);
}

.news-detail-hero,
.page-hero {
  padding: 3.25rem 0;
}

.news-detail-hero .pattern,
.page-hero .pattern {
  opacity: .35;
  animation: none;
}

.breadcrumb ul,
.breadcrumb ul li a,
.breadcrumb ul li .sep,
.news-detail-hero .breadcrumb,
.news-detail-hero .breadcrumb a {
  color: rgba(255,255,255,.86);
}

.article-container {
  align-items: flex-start;
}

.article-content {
  min-width: 0;
}

.article-section .article-card {
  padding: clamp(1.35rem, 4vw, 2.5rem);
  border-top: 5px solid var(--bem-orange);
}

.article-body {
  overflow-wrap: anywhere;
}

.article-body p,
.article-card > p {
  margin-bottom: 1rem;
}

.article-body blockquote,
.article-card blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--bem-orange);
  background: #f4f8ff;
  color: #344760;
}

.article-body img,
.article-card img,
.article-body iframe,
.article-card iframe {
  max-width: 100%;
}

.sidebar {
  gap: 1.25rem;
}

.banner-slot {
  flex: 0 0 auto;
  border: 1px solid var(--bem-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(6,22,56,.09);
}

.pagination {
  flex-wrap: wrap;
  list-style: none;
}

.page-btn {
  color: var(--bem-blue);
  border: 1px solid var(--bem-line);
  background: #fff;
}

.page-btn:hover:not(.disabled):not(.active),
.page-btn.active {
  color: #fff;
  border-color: var(--bem-blue);
  background: var(--bem-blue);
}

.site-footer {
  color: rgba(255,255,255,.78);
  background: #04112d;
  border-top: 3px solid var(--bem-orange);
}

.site-footer a {
  color: #69c5ff;
}

.site-footer a:hover {
  color: var(--bem-gold);
}

@media (max-width: 820px) {
  .header-container,
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-container {
    flex-direction: column;
    gap: .65rem;
  }

  .main-nav a {
    padding: .45rem .6rem;
    font-size: .84rem;
  }

  .search-section,
  .news-detail-hero,
  .page-hero {
    padding: 2.5rem 0;
  }

  .article-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(94%, 1120px);
  }

  .main-nav ul {
    gap: .1rem;
  }

  .main-nav i {
    display: none;
  }

  .search-card {
    border-radius: 14px;
  }

  .search-form {
    flex-direction: column;
  }

  .search-form input,
  .btn-primary {
    width: 100%;
  }

  .article-section .article-card {
    padding: 1.2rem;
  }

  .article-title {
    font-size: 1.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
