.blog-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 62px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 28%, rgba(66, 153, 225, .28), transparent 30%),
    linear-gradient(135deg, #071a2e 0%, #0d3156 58%, #123f6d 100%);
}

.blog-hero::after {
  position: absolute;
  right: max(3vw, 28px);
  bottom: -86px;
  width: 250px;
  height: 250px;
  content: "";
  border: 22px solid rgba(255, 255, 255, .055);
  border-radius: 50%;
}

.blog-hero .shell {
  position: relative;
  z-index: 1;
}

.blog-hero h1 {
  max-width: 850px;
  margin: 10px 0 14px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -.042em;
}

.blog-hero p {
  max-width: 760px;
  margin: 0;
  color: #d6e6f5;
  font-size: 18px;
}

.blog-hero .eyebrow {
  color: #8fc8f4;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: #758294;
  font-size: 12px;
  font-weight: 700;
}

.blog-hero .breadcrumbs {
  color: #a8c4de;
}

.blog-hero .breadcrumbs a {
  color: #d8e9f8;
}

.blog-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
  align-items: start;
  padding-block: 42px 72px;
}

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

.blog-overview div {
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.blog-overview strong,
.blog-overview span {
  display: block;
}

.blog-overview strong {
  color: var(--navy);
  font-size: 22px;
  line-height: 1.1;
}

.blog-overview span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.blog-card-list {
  display: grid;
  gap: 18px;
}

.blog-card {
  display: grid;
  grid-template-columns: minmax(210px, 31%) minmax(0, 1fr);
  min-height: 250px;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  border-color: #b6ccdf;
  box-shadow: 0 16px 36px rgba(13, 39, 69, .12);
}

.blog-card-cover {
  min-height: 100%;
  overflow: hidden;
  background: linear-gradient(145deg, #e8f1f8, #d5e2ee);
}

.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.blog-card:hover .blog-card-cover img {
  transform: scale(1.025);
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  padding: 25px 27px;
}

.blog-card-body:first-child {
  grid-column: 1 / -1;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 13px;
  color: #748093;
  font-size: 12px;
  font-weight: 650;
}

.blog-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #0b558f;
  background: #e8f3fb;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.blog-pill:hover {
  color: #fff;
  background: var(--blue);
  text-decoration: none;
}

.blog-card h2 {
  margin: 11px 0 9px;
  font-size: clamp(22px, 2.4vw, 29px);
  line-height: 1.16;
  letter-spacing: -.025em;
}

.blog-card h2 a {
  color: var(--ink);
}

.blog-card h2 a:hover {
  color: var(--blue);
  text-decoration: none;
}

.blog-card p {
  margin: 0 0 15px;
  color: var(--muted);
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blog-tags a,
.blog-tag-cloud a {
  padding: 5px 9px;
  border: 1px solid #d6e0ea;
  border-radius: 999px;
  color: #536274;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 700;
}

.blog-tags a:hover,
.blog-tag-cloud a:hover,
.blog-tag-cloud a.active {
  color: #0d5d99;
  border-color: #8ab9dd;
  background: #eef7fd;
  text-decoration: none;
}

.blog-read-more {
  margin-top: auto;
  padding-top: 17px;
  font-size: 13px;
  font-weight: 800;
}

.blog-read-more span {
  display: inline-block;
  margin-left: 3px;
  transition: transform .16s ease;
}

.blog-read-more:hover span {
  transform: translateX(3px);
}

.blog-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 86px;
}

.blog-sidebar .panel {
  padding: 21px;
}

.blog-sidebar h2 {
  margin: 0 0 13px;
  font-size: 18px;
  letter-spacing: -.015em;
}

.blog-filter-links {
  display: grid;
  gap: 5px;
}

.blog-filter-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 7px;
  color: #445266;
  font-size: 13px;
  font-weight: 700;
}

.blog-filter-links a::after {
  content: "›";
  color: #93a0af;
  font-size: 17px;
}

.blog-filter-links a:hover,
.blog-filter-links a.active {
  color: #0b5b97;
  background: #eef6fc;
  text-decoration: none;
}

.blog-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.blog-sidebar-guide {
  border-color: #b9d2e6;
  background: linear-gradient(150deg, #f8fcff, #edf6fc);
}

.blog-sidebar-guide p {
  color: var(--muted);
  font-size: 13px;
}

.blog-sidebar-guide > a {
  display: block;
  padding: 7px 0;
  border-top: 1px solid #d8e6f1;
  font-size: 13px;
  font-weight: 750;
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.blog-pagination .disabled {
  cursor: default;
  opacity: .5;
}

.blog-empty {
  padding: 54px 30px;
  text-align: center;
}

.blog-empty > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 15px;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
  font-size: 19px;
}

.blog-empty h2 {
  margin: 0 0 8px;
  font-size: 27px;
}

.blog-empty p {
  max-width: 530px;
  margin: 0 auto 21px;
  color: var(--muted);
}

.blog-detail-shell {
  width: min(900px, calc(100% - 32px));
  padding-block: 36px 70px;
}

.blog-detail-shell > .breadcrumbs {
  margin-bottom: 22px;
}

.blog-article {
  margin-bottom: 26px;
}

.blog-article-header {
  margin-bottom: 25px;
  text-align: center;
}

.blog-article-header .blog-meta {
  justify-content: center;
}

.blog-article-header h1 {
  max-width: 880px;
  margin: 15px auto 14px;
  color: #0b2139;
  font-size: clamp(38px, 5.8vw, 62px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.blog-deck {
  max-width: 760px;
  margin: 0 auto;
  color: #5c6979;
  font-size: 19px;
}

.blog-byline {
  margin: 12px 0 0;
  color: #748093;
  font-size: 12px;
  font-weight: 750;
}

.blog-cover {
  aspect-ratio: 16 / 8.5;
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #edf3f8;
  box-shadow: var(--shadow);
}

.blog-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  padding: clamp(25px, 5vw, 54px);
  color: #263548;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.78;
}

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

.article-content > :last-child {
  margin-bottom: 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: #102943;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.article-content h2 {
  margin: 2em 0 .65em;
  padding-top: .15em;
  font-size: 30px;
}

.article-content h3 {
  margin: 1.65em 0 .55em;
  font-size: 23px;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content table,
.article-content blockquote {
  margin: 0 0 1.25em;
}

.article-content a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-content img {
  display: block;
  width: auto;
  height: auto;
  margin: 1.6em auto;
  border-radius: 10px;
}

.article-content blockquote {
  padding: 16px 20px;
  border-left: 4px solid var(--blue);
  background: #f2f7fb;
  color: #44566a;
}

.article-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
}

.article-content th,
.article-content td {
  min-width: 130px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  text-align: left;
}

.article-content th {
  color: #23364a;
  background: #eef3f7;
}

.blog-detail-tags {
  margin-top: 16px;
}

.related-articles {
  margin: 30px 0;
}

.related-articles h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

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

.related-card {
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding: 19px;
}

.related-card h3 {
  margin: 8px 0 14px;
  font-size: 17px;
  line-height: 1.3;
}

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

.related-card > a:last-child {
  margin-top: auto;
  font-size: 12px;
  font-weight: 800;
}

.comment-section {
  padding: clamp(22px, 4vw, 34px);
}

.comment-heading,
.comment-user,
.comment-form > div,
.reply-form > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.comment-heading h2 {
  margin: 2px 0 0;
  font-size: 26px;
}

.comment-count,
.comment-status {
  color: var(--muted);
  font-size: 12px;
}

.comment-login {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #d6e1eb;
  border-radius: 10px;
  background: #f8fafc;
}

.comment-login p {
  margin: 0 0 12px;
  color: #536174;
  font-size: 13px;
}

.comment-user {
  margin-top: 18px;
  padding: 12px 0;
  border-block: 1px solid var(--line);
}

.comment-user > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.comment-user img,
.comment-item > img {
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e5e7eb;
}

.comment-user strong,
.comment-user span {
  display: block;
}

.comment-user span {
  color: var(--muted);
  font-size: 11px;
}

.comment-form,
.reply-form {
  margin-top: 18px;
}

.comment-form label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 800;
}

.comment-form textarea,
.reply-form textarea {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #c8d3df;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  resize: vertical;
}

.comment-form > div {
  align-items: start;
  margin-top: 9px;
}

.comment-form small {
  color: var(--muted);
}

.comments-list {
  margin-top: 24px;
}

.comment-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.comment-item.comment-reply {
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 14px 0 0 14px;
  border-top: 0;
}

.comment-item.comment-reply > img {
  width: 34px;
  height: 34px;
}

.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.comment-meta time {
  color: var(--muted);
  font-size: 11px;
}

.comment-body > p {
  margin: 5px 0;
  color: #3f4d5e;
  font-size: 14px;
}

.comment-reply-button {
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.comment-replies {
  margin-top: 6px;
  border-left: 2px solid #e3e9ef;
}

.reply-form > div {
  justify-content: flex-end;
  margin-top: 7px;
}

.blog-back-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .blog-shell {
    grid-template-columns: 1fr;
  }

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

  .blog-sidebar-guide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .blog-hero {
    padding: 40px 0 45px;
  }

  .blog-hero h1 {
    font-size: 38px;
  }

  .blog-hero p {
    font-size: 16px;
  }

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

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

  .blog-card-cover {
    aspect-ratio: 16 / 9;
  }

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

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

  .blog-article-header {
    text-align: left;
  }

  .blog-article-header .blog-meta {
    justify-content: flex-start;
  }

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

  .blog-deck {
    font-size: 17px;
  }

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

  .article-content h2 {
    font-size: 26px;
  }

  .comment-heading,
  .comment-user,
  .comment-form > div {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  .blog-hero,
  .blog-sidebar,
  .comment-section,
  .related-articles,
  .blog-back-links,
  .blog-detail-shell > .breadcrumbs {
    display: none !important;
  }

  .blog-detail-shell {
    width: 100%;
    padding: 0;
  }

  .blog-article-header {
    text-align: left;
  }

  .article-content {
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
