:root {
  --ink: #07162b;
  --ink-2: #10233f;
  --paper: #f6f8fb;
  --line: #dbe4ee;
  --muted: #607086;
  --white: #ffffff;
  --orange: #ff7a00;
  --orange-2: #ffb21f;
  --cyan: #1f8fff;
  --shadow: 0 20px 50px rgba(7, 22, 43, .14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.blog-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(11, 27, 51, .12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.blog-brand img {
  width: clamp(190px, 24vw, 300px);
  height: auto;
  object-fit: contain;
}

.blog-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  color: rgba(11, 27, 51, .72);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-nav a:hover,
.blog-nav a:focus-visible {
  color: var(--ink);
}

.blog-hero {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 22, 43, .98), rgba(7, 22, 43, .86)),
    var(--ink);
}

.blog-hero > div {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(58px, 8vw, 92px) 22px;
}

.blog-kicker,
.blog-category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-hero h1,
.article-head h1 {
  max-width: 900px;
  margin: 14px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.blog-hero p,
.article-head p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.blog-search {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin-top: 28px;
}

.blog-search input {
  flex: 1;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, .08);
  outline: none;
}

.blog-search input::placeholder {
  color: rgba(255, 255, 255, .58);
}

.blog-search button,
.article-cta a,
.share-box a,
.share-box button,
.read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.blog-search-inline {
  max-width: none;
  margin: 0 0 22px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(7, 22, 43, .06);
}

.blog-search-inline input {
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper);
}

.blog-search-inline input::placeholder {
  color: var(--muted);
}

.blog-shell {
  max-width: 1180px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  margin: 0 auto;
  padding: 42px 22px 82px;
}

.blog-sidebar {
  position: sticky;
  top: 98px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.blog-sidebar h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.blog-sidebar a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.blog-sidebar a.active,
.blog-sidebar a:hover,
.blog-sidebar a:focus-visible {
  color: var(--ink);
  background: var(--paper);
}

.blog-sidebar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blog-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(7, 22, 43, .08);
}

.blog-card-media {
  min-height: 174px;
  display: grid;
  place-items: center;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .22), transparent 32%),
    linear-gradient(135deg, var(--accent, #ff7a00), #07162b);
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  min-height: 174px;
  aspect-ratio: 1.5;
  object-fit: cover;
}

.blog-card-media strong {
  max-width: 80%;
  text-align: center;
  font-size: 22px;
}

.blog-card-body {
  padding: 18px;
}

.blog-card h2 {
  margin: 9px 0 10px;
  font-size: 21px;
  line-height: 1.18;
}

.blog-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.read-more {
  min-height: 38px;
  background: rgba(255, 122, 0, .12);
  color: var(--ink);
}

.blog-empty {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.blog-pagination a,
.blog-pagination strong {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-weight: 800;
}

.blog-pagination strong {
  background: var(--ink);
  color: var(--white);
}

.article-wrap {
  background: var(--white);
}

.article-head {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 22, 43, .98), rgba(7, 22, 43, .84)),
    var(--ink);
  padding: clamp(58px, 8vw, 92px) 22px;
}

.article-head > * {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.article-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  color: rgba(255, 255, 255, .62);
  font-weight: 800;
}

.article-layout {
  max-width: 1120px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 34px;
  margin: 0 auto;
  padding: 42px 22px 82px;
}

.share-box {
  position: sticky;
  top: 98px;
  align-self: start;
  display: grid;
  gap: 10px;
}

.share-box strong {
  color: var(--muted);
}

.share-box a,
.share-box button {
  width: 100%;
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(7, 22, 43, .06);
}

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

.article-image {
  width: 100%;
  max-height: 520px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.article-body {
  margin-top: 28px;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.8;
}

.article-cta {
  margin-top: 34px;
  padding: 26px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--ink), #123b68);
}

.article-cta strong {
  display: block;
  font-size: 24px;
}

.article-cta p {
  color: rgba(255, 255, 255, .76);
  line-height: 1.6;
}

.related-posts {
  padding: 72px 22px;
  background: var(--paper);
}

.related-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.related-inner h2 {
  margin: 0 0 22px;
  font-size: clamp(28px, 4vw, 42px);
}

.blog-footer {
  padding: 34px 22px;
  border-top: 1px solid rgba(11, 27, 51, .1);
  background: var(--white);
}

.blog-footer > div {
  max-width: 1180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  color: rgba(11, 27, 51, .72);
}

.blog-footer img {
  width: clamp(160px, 20vw, 240px);
}

@media (max-width: 980px) {
  .blog-header,
  .blog-footer > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .blog-shell,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar,
  .share-box {
    position: static;
  }

  .blog-grid,
  .blog-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .blog-brand img {
    width: min(240px, calc(100vw - 36px));
  }

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

  .blog-search button {
    width: 100%;
  }

  .blog-grid,
  .blog-grid.compact {
    grid-template-columns: 1fr;
  }

  .article-body {
    font-size: 17px;
  }
}
