/*
Theme Name: NovaPlay Portal
Author: NovaPlay Studio
Description: A fast, responsive editorial portal for sports and online entertainment content. Includes a two-level header, hero banner, trust strip, smart link hub, article cards, table of contents and mobile action bar.
Version: 1.1.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: novaplay
Tags: blog, news, entertainment, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

:root {
  --np-blue: #08a6e8;
  --np-blue-dark: #078bca;
  --np-navy: #082a49;
  --np-ink: #102235;
  --np-muted: #607387;
  --np-soft: #eef9fe;
  --np-line: #d9e8f1;
  --np-white: #ffffff;
  --np-green: #20d66b;
  --np-orange: #ff8b36;
  --np-shadow: 0 14px 38px rgba(8, 63, 105, 0.12);
  --np-radius: 18px;
  --np-container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--np-white);
  color: var(--np-ink);
  font-family: "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header {
  top: 32px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--np-blue-dark);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

a:hover,
a:focus {
  color: var(--np-navy);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
[type="submit"] {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(8, 166, 232, 0.35);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 5px;
  left: 5px;
  display: block;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto !important;
  background: var(--np-white);
  color: var(--np-ink);
  font-weight: 700;
}

.container {
  width: min(calc(100% - 40px), var(--np-container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--np-blue);
  color: var(--np-white);
}

.site-header.is-sticky {
  box-shadow: 0 6px 22px rgba(2, 72, 112, 0.2);
}

.header-top {
  min-height: 70px;
}

.header-top__inner {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-branding {
  display: flex;
  align-items: center;
  min-width: 0;
}

.custom-logo-link img {
  width: auto;
  max-height: 54px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--np-white);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
}

.brand-mark:hover,
.brand-mark:focus {
  color: var(--np-white);
}

.brand-mark__symbol {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 13px 5px 13px 5px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.08);
  font-size: 23px;
}

.brand-mark__text small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn,
.wp-element-button,
.wp-block-button__link {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--np-blue);
  color: var(--np-white);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.2;
  text-transform: uppercase;
}

.btn:hover,
.btn:focus,
.wp-element-button:hover,
.wp-block-button__link:hover {
  background: var(--np-blue-dark);
  color: var(--np-white);
  transform: translateY(-2px);
}

.btn--join {
  background: var(--np-green);
  box-shadow: 0 7px 16px rgba(5, 157, 68, 0.25);
}

.btn--join:hover,
.btn--join:focus {
  background: #17bd5b;
}

.btn--outline {
  border-color: rgba(255, 255, 255, 0.92);
  background: transparent;
}

.btn--outline:hover,
.btn--outline:focus {
  background: var(--np-white);
  color: var(--np-blue-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  background: transparent;
  color: var(--np-white);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle span {
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-toggle span::before {
  top: -7px;
}

.menu-toggle span::after {
  top: 7px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.header-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 135, 211, 0.38);
}

.primary-menu,
.primary-menu ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-menu {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.primary-menu li {
  position: relative;
}

.primary-menu a {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 8px 17px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 650;
}

.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
  background: rgba(255, 255, 255, 0.1);
  color: var(--np-white);
}

.primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  display: none;
  width: 230px;
  padding: 8px;
  border-radius: 0 0 10px 10px;
  background: var(--np-white);
  box-shadow: var(--np-shadow);
}

.primary-menu .sub-menu a {
  min-height: 40px;
  border-radius: 6px;
  color: var(--np-ink);
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
  display: block;
}

.hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: #087fc1;
  color: var(--np-white);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: var(--np-hero-image);
  background-position: center;
  background-size: cover;
  content: "";
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 35, 72, 0.9) 0%, rgba(5, 73, 125, 0.62) 40%, rgba(2, 87, 139, 0.08) 70%);
  content: "";
}

.hero__inner {
  display: flex;
  min-height: 420px;
  align-items: center;
}

.hero__content {
  width: min(570px, 55%);
  padding-block: 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 15px;
  color: #d7f6ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 29px;
  height: 3px;
  border-radius: 999px;
  background: #6be4ff;
  content: "";
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  color: var(--np-white);
  font-size: clamp(39px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -2.8px;
  line-height: 1.02;
}

.hero h1 span {
  color: #62ddff;
}

.hero__description {
  max-width: 540px;
  margin: 22px 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__actions .btn {
  min-height: 48px;
  padding-inline: 25px;
}

.hero__mini-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.77);
  font-size: 12px;
}

.hero__mini-note span {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  font-weight: 900;
}

.trust-strip {
  position: relative;
  z-index: 3;
  background: var(--np-white);
  box-shadow: 0 12px 30px rgba(8, 61, 96, 0.07);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  display: grid;
  min-height: 172px;
  grid-template-columns: 64px 1fr;
  align-content: center;
  gap: 18px;
  padding: 30px 24px;
  border-right: 1px solid var(--np-line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item__icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  color: var(--np-blue);
}

.trust-item__icon svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.trust-item h3 {
  margin: 2px 0 4px;
  color: #071729;
  font-size: 15px;
  line-height: 1.35;
}

.trust-item p {
  margin: 0;
  color: #34485b;
  font-size: 13px;
  line-height: 1.65;
}

.section {
  padding-block: 76px;
}

.section--soft {
  background: var(--np-soft);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 35px;
  text-align: center;
}

.section-heading--left {
  margin-inline: 0;
  text-align: left;
}

.section-heading .eyebrow {
  color: var(--np-blue-dark);
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--np-navy);
  font-size: clamp(29px, 3.5vw, 42px);
  letter-spacing: -1.4px;
  line-height: 1.18;
}

.section-heading p {
  margin: 13px 0 0;
  color: var(--np-muted);
  font-size: 17px;
}

.link-hub {
  padding-block: 64px 72px;
  text-align: center;
}

.link-hub__panel {
  position: relative;
  overflow: hidden;
  padding: 45px 42px;
  border: 1px solid #d1ebf6;
  border-radius: var(--np-radius);
  background: linear-gradient(135deg, #f6fcff 0%, #eefaff 100%);
  box-shadow: 0 16px 34px rgba(4, 91, 143, 0.08);
}

.link-hub__panel::before {
  position: absolute;
  top: -120px;
  right: -70px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(0, 171, 233, 0.07);
  content: "";
}

.link-hub h2 {
  position: relative;
  margin: 0 0 8px;
  color: var(--np-blue-dark);
  font-size: clamp(28px, 4vw, 39px);
  letter-spacing: -1.2px;
  line-height: 1.2;
}

.link-hub__intro {
  position: relative;
  margin: 0;
  color: var(--np-muted);
}

.homepage-content-box {
  position: relative;
  width: 100%;
  max-width: none;
  padding: 18px 22px;
  margin: 22px 0 0;
  border: 1px solid #cfeaf5;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 22px rgba(4, 91, 143, 0.06);
  color: #294154;
  font-size: 15px;
  text-align: left;
}

.homepage-content-box > *:first-child {
  margin-top: 0;
}

.homepage-content-box > *:last-child {
  margin-bottom: 0;
}

.homepage-content-box h2,
.homepage-content-box h3,
.homepage-content-box h4 {
  color: var(--np-navy);
}

.homepage-content-box p,
.homepage-content-box ul,
.homepage-content-box ol {
  margin-block: 0.65em;
}

.homepage-content-box a {
  font-weight: 700;
}

.smart-links {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 27px;
}

.smart-link {
  display: inline-flex;
  min-width: 130px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 7px;
  background: var(--np-blue);
  color: var(--np-white);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.smart-link:hover,
.smart-link:focus {
  background: var(--np-navy);
  color: var(--np-white);
  transform: translateY(-3px);
}

.smart-link__status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5cf198;
  box-shadow: 0 0 0 4px rgba(92, 241, 152, 0.19);
}

.promo-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  margin: 29px 0 0;
  border-radius: 999px;
  background: var(--np-white);
  color: var(--np-blue-dark);
  font-size: 14px;
  box-shadow: 0 8px 25px rgba(5, 91, 142, 0.08);
}

.promo-line strong {
  color: #f04462;
}

.feature-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card,
.post-card {
  overflow: hidden;
  border: 1px solid var(--np-line);
  border-radius: var(--np-radius);
  background: var(--np-white);
  box-shadow: 0 8px 25px rgba(5, 63, 104, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.post-card:hover {
  box-shadow: var(--np-shadow);
  transform: translateY(-6px);
}

.feature-card {
  padding: 30px;
}

.feature-card__number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 23px;
  border-radius: 12px;
  background: #e7f8ff;
  color: var(--np-blue-dark);
  font-size: 17px;
  font-weight: 900;
}

.feature-card h3 {
  margin: 0 0 8px;
  color: var(--np-navy);
  font-size: 21px;
}

.feature-card p {
  margin: 0;
  color: var(--np-muted);
  font-size: 14px;
}

.post-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #083f6e, #0db4ed 55%, #81e8ff);
}

.post-card__media::after {
  position: absolute;
  right: -25px;
  bottom: -45px;
  width: 180px;
  height: 180px;
  border: 26px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  content: "";
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-card:hover .post-card__media img {
  transform: scale(1.045);
}

.post-card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 58px;
  font-weight: 900;
}

.post-card__category {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--np-blue-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.post-card__body {
  padding: 22px 23px 24px;
}

.post-card__meta,
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  color: #7a8b9c;
  font-size: 12px;
}

.post-card h3 {
  margin: 8px 0 10px;
  font-size: 20px;
  letter-spacing: -0.35px;
  line-height: 1.35;
}

.post-card h3 a {
  color: var(--np-ink);
}

.post-card h3 a:hover,
.post-card h3 a:focus {
  color: var(--np-blue-dark);
}

.post-card__excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--np-muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.post-card__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
  color: var(--np-blue-dark);
  font-size: 13px;
  font-weight: 800;
}

.post-card__more span {
  transition: transform 0.2s ease;
}

.post-card__more:hover span {
  transform: translateX(4px);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  align-items: start;
  gap: 45px;
  padding-block: 58px 76px;
}

.content-layout .post-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-layout--full {
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
}

.site-main,
.entry-content {
  min-width: 0;
}

.page-hero {
  padding: 54px 0;
  background: linear-gradient(135deg, #e8f9ff, #f8fdff);
  text-align: center;
}

.page-hero h1 {
  margin: 0;
  color: var(--np-navy);
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -1.5px;
  line-height: 1.2;
}

.breadcrumbs {
  margin-bottom: 12px;
  color: var(--np-muted);
  font-size: 13px;
}

.breadcrumbs a {
  color: var(--np-blue-dark);
}

.article-header {
  margin-bottom: 28px;
}

.article-header h1 {
  margin: 10px 0 14px;
  color: var(--np-navy);
  font-size: clamp(33px, 4.4vw, 50px);
  letter-spacing: -1.8px;
  line-height: 1.13;
}

.entry-category {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--np-soft);
  color: var(--np-blue-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.article-featured {
  overflow: hidden;
  margin: 0 0 28px;
  border-radius: var(--np-radius);
  box-shadow: var(--np-shadow);
}

.article-featured img {
  width: 100%;
}

.entry-content {
  color: #1f3345;
  font-size: 17px;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.homepage-content__inner {
  max-width: 900px;
}

.homepage-content.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--np-navy);
  scroll-margin-top: 130px;
  line-height: 1.25;
}

.entry-content h2 {
  margin: 39px 0 14px;
  font-size: 29px;
  letter-spacing: -0.7px;
}

.entry-content h3 {
  margin: 30px 0 10px;
  font-size: 23px;
}

.entry-content a {
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(8, 166, 232, 0.35);
  text-underline-offset: 3px;
}

.entry-content blockquote {
  padding: 23px 27px;
  margin: 30px 0;
  border-left: 4px solid var(--np-blue);
  border-radius: 0 12px 12px 0;
  background: var(--np-soft);
  color: var(--np-navy);
  font-size: 19px;
  font-weight: 650;
}

.entry-content table {
  width: 100%;
  margin: 28px 0;
  overflow: hidden;
  border: 1px solid var(--np-line);
  border-collapse: collapse;
  border-radius: 12px;
}

.entry-content th,
.entry-content td {
  padding: 12px 15px;
  border: 1px solid var(--np-line);
  text-align: left;
}

.entry-content th {
  background: var(--np-soft);
  color: var(--np-navy);
}

.entry-content img {
  border-radius: 13px;
}

.entry-content .alignwide {
  width: min(1120px, calc(100vw - 40px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.entry-content .alignfull {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.toc {
  padding: 22px 24px;
  margin: 28px 0 32px;
  border: 1px solid #cdeaf5;
  border-radius: 13px;
  background: #f5fcff;
}

.toc__toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--np-navy);
  font-size: 17px;
  font-weight: 850;
  text-align: left;
}

.toc__toggle::after {
  content: "−";
  font-size: 22px;
}

.toc.is-collapsed .toc__toggle::after {
  content: "+";
}

.toc.is-collapsed .toc__list {
  display: none;
}

.toc__list {
  padding-left: 22px;
  margin: 14px 0 0;
}

.toc__list li {
  margin: 5px 0;
}

.toc__list li.toc-h3 {
  margin-left: 18px;
  font-size: 14px;
}

.toc__list a {
  font-weight: 600;
  text-decoration: none;
}

.article-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  margin-top: 35px;
  border-top: 1px solid var(--np-line);
  border-bottom: 1px solid var(--np-line);
}

.share-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-links a,
.copy-link {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--np-line);
  border-radius: 50%;
  background: var(--np-white);
  color: var(--np-blue-dark);
  font-size: 13px;
  font-weight: 900;
}

.copy-link.is-copied {
  border-color: var(--np-green);
  color: #109b48;
}

.post-navigation {
  gap: 16px;
  margin-top: 38px;
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 0;
}

.post-navigation a {
  display: block;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--np-line);
  border-radius: 12px;
  color: var(--np-ink);
}

.post-navigation a:hover {
  border-color: #98dff7;
  background: var(--np-soft);
}

.post-navigation .nav-next {
  text-align: right;
}

.post-navigation .meta-nav {
  display: block;
  margin-bottom: 4px;
  color: var(--np-muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.sidebar {
  position: sticky;
  top: 135px;
}

.widget {
  padding: 24px;
  margin-bottom: 23px;
  border: 1px solid var(--np-line);
  border-radius: 14px;
  background: var(--np-white);
}

.widget-title,
.widget h2 {
  position: relative;
  padding-bottom: 11px;
  margin: 0 0 17px;
  color: var(--np-navy);
  font-size: 18px;
  line-height: 1.3;
}

.widget-title::after,
.widget h2::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  border-radius: 999px;
  background: var(--np-blue);
  content: "";
}

.widget ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.widget li {
  padding-block: 9px;
  border-bottom: 1px dashed var(--np-line);
  font-size: 14px;
}

.widget li:last-child {
  border-bottom: 0;
}

.widget li a {
  color: #294154;
}

.widget li a:hover {
  color: var(--np-blue-dark);
}

.search-form {
  position: relative;
  display: flex;
}

.search-form label {
  flex: 1;
}

.search-field {
  width: 100%;
  min-height: 46px;
  padding: 10px 50px 10px 14px;
  border: 1px solid var(--np-line);
  border-radius: 8px;
  background: #f9fcfe;
  color: var(--np-ink);
}

.search-submit {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: var(--np-blue);
  color: var(--np-white);
}

.widget-cta {
  overflow: hidden;
  border: 0;
  background: linear-gradient(145deg, #08365f, #049bd8);
  color: var(--np-white);
}

.widget-cta h2,
.widget-cta p {
  color: var(--np-white);
}

.widget-cta h2::after {
  background: #71e7ff;
}

.widget-cta p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.widget-cta .btn {
  width: 100%;
  margin-top: 6px;
  background: var(--np-green);
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 38px;
}

.page-numbers {
  display: grid;
  min-width: 40px;
  height: 40px;
  place-items: center;
  padding-inline: 10px;
  border: 1px solid var(--np-line);
  border-radius: 7px;
  background: var(--np-white);
  color: var(--np-ink);
  font-size: 13px;
  font-weight: 750;
}

.page-numbers.current,
.page-numbers:hover {
  border-color: var(--np-blue);
  background: var(--np-blue);
  color: var(--np-white);
}

.comments-area {
  margin-top: 45px;
}

.comments-title,
.comment-reply-title {
  color: var(--np-navy);
}

.comment-list {
  padding: 0;
  list-style: none;
}

.comment-body {
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--np-line);
  border-radius: 12px;
}

.comment-meta {
  font-size: 13px;
}

.comment-form label {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

.comment-form input:not([type="checkbox"]),
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--np-line);
  border-radius: 8px;
}

.site-footer {
  background: #061f37;
  color: #b8c9d8;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.75fr 0.75fr 1fr;
  gap: 45px;
  padding-block: 62px 48px;
}

.footer-brand .brand-mark {
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 360px;
  margin: 0;
  color: #9eb4c7;
  font-size: 14px;
}

.footer-column h2 {
  margin: 0 0 17px;
  color: var(--np-white);
  font-size: 16px;
}

.footer-column ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-column li {
  margin: 8px 0;
}

.footer-column a {
  color: #aac0d2;
  font-size: 14px;
}

.footer-column a:hover {
  color: #61ddff;
}

.footer-contact {
  font-size: 14px;
}

.footer-contact p {
  margin: 0 0 9px;
}

.footer-notice {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #9db1c3;
  font-size: 12px;
  text-align: center;
}

.footer-bottom {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #839aad;
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 16px;
}

.footer-legal a {
  color: #98adbf;
}

.back-to-top {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--np-blue);
  color: var(--np-white);
  box-shadow: 0 9px 24px rgba(4, 115, 172, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-action-bar {
  position: fixed;
  z-index: 90;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  min-height: 58px;
  grid-template-columns: 1fr 1fr;
  padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -8px 25px rgba(6, 45, 74, 0.13);
  backdrop-filter: blur(10px);
}

.mobile-action-bar .btn {
  min-height: 43px;
  margin-inline: 4px;
  font-size: 12px;
}

.not-found {
  padding: 100px 0;
  text-align: center;
}

.not-found__code {
  color: var(--np-blue);
  font-size: clamp(90px, 18vw, 170px);
  font-weight: 950;
  letter-spacing: -8px;
  line-height: 0.9;
}

.not-found h1 {
  margin: 16px 0 8px;
  color: var(--np-navy);
}

.no-results {
  padding: 35px;
  border: 1px solid var(--np-line);
  border-radius: 14px;
  text-align: center;
}

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

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--np-line);
  }

  .content-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 30px;
  }

  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .container {
    width: min(calc(100% - 30px), var(--np-container));
  }

  .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header-nav {
    display: none;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background: #078fce;
  }

  .header-nav.is-open {
    display: block;
  }

  .primary-menu {
    display: block;
    padding: 8px 0 13px;
  }

  .primary-menu a {
    justify-content: space-between;
    padding-inline: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

  .primary-menu .sub-menu {
    position: static;
    display: block;
    width: auto;
    padding: 0 0 0 16px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .primary-menu .sub-menu a {
    color: rgba(255, 255, 255, 0.84);
  }

  .hero,
  .hero__inner {
    min-height: 485px;
  }

  .hero::before {
    background-position: 66% center;
  }

  .hero::after {
    background: linear-gradient(90deg, rgba(4, 29, 61, 0.94), rgba(4, 53, 92, 0.78) 56%, rgba(4, 61, 101, 0.32));
  }

  .hero__content {
    width: min(580px, 78%);
  }

  .feature-grid,
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .sidebar {
    position: static;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand,
  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  body {
    padding-bottom: 58px;
    font-size: 15px;
  }

  .header-top,
  .header-top__inner {
    min-height: 64px;
  }

  .brand-mark {
    gap: 8px;
    font-size: 21px;
  }

  .brand-mark__symbol {
    width: 39px;
    height: 39px;
    font-size: 19px;
  }

  .brand-mark__text small {
    display: none;
  }

  .hero,
  .hero__inner {
    min-height: 545px;
  }

  .hero::before {
    background-position: 69% center;
  }

  .hero::after {
    background: linear-gradient(90deg, rgba(3, 27, 57, 0.94), rgba(4, 51, 91, 0.72)), linear-gradient(0deg, rgba(4, 24, 49, 0.7), transparent 55%);
  }

  .hero__inner {
    align-items: flex-end;
  }

  .hero__content {
    width: 100%;
    padding-block: 65px 48px;
  }

  .hero h1 {
    max-width: 430px;
    font-size: 40px;
    letter-spacing: -1.8px;
  }

  .hero__description {
    max-width: 420px;
    font-size: 16px;
  }

  .hero__actions .btn {
    min-height: 44px;
    padding-inline: 17px;
    font-size: 12px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-item,
  .trust-item:nth-child(2),
  .trust-item:last-child {
    min-height: auto;
    grid-template-columns: 52px 1fr;
    padding: 22px 6px;
    border-right: 0;
    border-bottom: 1px solid var(--np-line);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .trust-item__icon,
  .trust-item__icon svg {
    width: 48px;
    height: 48px;
  }

  .section {
    padding-block: 58px;
  }

  .link-hub {
    padding-block: 46px 58px;
  }

  .link-hub__panel {
    padding: 34px 18px;
  }

  .homepage-content-box {
    padding: 16px;
    margin-top: 18px;
    font-size: 14px;
  }

  .smart-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .smart-link {
    min-width: 0;
    min-height: 45px;
    padding-inline: 8px;
    font-size: 11px;
  }

  .promo-line {
    align-items: flex-start;
    border-radius: 10px;
    font-size: 12px;
    text-align: left;
  }

  .feature-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

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

  .feature-card {
    padding: 25px;
  }

  .content-layout {
    padding-block: 42px 58px;
  }

  .article-header h1 {
    font-size: 34px;
  }

  .entry-content {
    font-size: 16px;
  }

  .entry-content h2 {
    font-size: 25px;
  }

  .entry-content table {
    display: block;
    overflow-x: auto;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .post-navigation .nav-next {
    text-align: left;
  }

  .article-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand,
  .footer-contact {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    padding-block: 17px;
    text-align: center;
  }

  .mobile-action-bar {
    display: grid;
  }

  .back-to-top {
    right: 15px;
    bottom: 73px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .sidebar,
  .mobile-action-bar,
  .back-to-top,
  .article-tools {
    display: none !important;
  }

  .content-layout {
    display: block;
    padding: 0;
  }

  .entry-content {
    color: #000;
  }
}
