.blog-page .blog-shell {
  padding: 18px 0 var(--space-10);
  background:
    linear-gradient(180deg, rgba(166, 116, 255, 0.04) 0, rgba(166, 116, 255, 0) 360px),
    #ffffff;
}

.blog-page .blog-hero {
  display: grid;
  align-items: center;
  min-height: clamp(430px, 31vw, 620px);
  width: min(calc(100% - var(--space-8)), 1775px);
  margin-inline: auto;
  padding: clamp(84px, 9vw, 150px) var(--space-4) clamp(128px, 12vw, 210px);
  border-radius: 0 0 58px 58px;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(135deg, #7b43e3 0%, #8754ea 46%, #9b63f2 100%);
  box-shadow: 0 34px 90px rgba(120, 66, 227, 0.24);
}

.blog-page .blog-hero__inner {
  display: grid;
  justify-items: center;
  gap: 26px;
  width: min(100%, 980px);
  margin-inline: auto;
  text-align: center;
}

.blog-page .blog-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
}

.blog-page .blog-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 5.3vw, 68px);
  font-weight: 800;
  line-height: 1.08;
}

.blog-page .blog-hero p {
  max-width: 900px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 1.9vw, 26px);
  line-height: 1.24;
}

.blog-page .blog-topic-filter {
  position: relative;
  z-index: 2;
  width: min(calc(100% - var(--space-8)), 1525px);
  margin-top: clamp(-98px, -6vw, -64px);
  margin-inline: auto;
}

.blog-page .blog-filter-card {
  display: grid;
  gap: 30px;
  width: 100%;
  margin-inline: 0;
  padding: 38px 36px 30px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 34px 70px rgba(20, 24, 39, 0.12);
}

.blog-page .blog-filter-card h2 {
  margin: 0;
  color: #6d6d72;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 800;
}

.blog-page .blog-topic-scroll {
  overflow-x: auto;
  padding: 0 0 13px;
  scrollbar-color: #bfbfc4 #f1f1f3;
  scrollbar-width: auto;
}

.blog-page .blog-topic-scroll::-webkit-scrollbar {
  height: 8px;
}

.blog-page .blog-topic-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #f1f1f3;
}

.blog-page .blog-topic-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #bfbfc4;
}

.blog-page .blog-topic-list {
  display: flex;
  gap: 14px;
  min-width: max-content;
  margin: 0;
  padding: 0 0 2px;
  list-style: none;
}

.blog-page .blog-topic-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 24px;
  border-radius: 999px;
  background: #f2f2f4;
  color: #3c3c40;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.blog-page .blog-topic-list a:hover,
.blog-page .blog-topic-list a.is-active {
  background: #7745df;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(119, 69, 223, 0.22);
  transform: translateY(-1px);
}

.blog-page .blog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  width: min(calc(100% - var(--space-8)), 1525px);
  padding-top: var(--space-7);
}

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

.blog-page .blog-card {
  display: grid;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(166, 116, 255, 0.22);
  border-bottom: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.blog-page .blog-card__image {
  aspect-ratio: 16 / 9;
  background: rgba(166, 116, 255, 0.08);
}

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

.blog-page .blog-card__body {
  display: grid;
  gap: 10px;
  padding: var(--space-3);
}

.blog-page .blog-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.blog-page .blog-category-pill {
  display: inline-flex;
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(166, 116, 255, 0.13);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.blog-page .blog-card h2,
.blog-page .blog-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.16;
}

.blog-page .blog-card p {
  margin: 0;
  color: var(--body);
  line-height: 1.6;
}

.blog-page .blog-card__link {
  margin-top: var(--space-1);
  color: var(--accent);
  font-weight: 800;
}

.blog-page .blog-sidebar {
  align-self: start;
  position: sticky;
  top: 116px;
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px solid rgba(166, 116, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.blog-page .blog-sidebar h2 {
  margin: 0;
  color: var(--accent);
  font-size: 22px;
}

.blog-page .blog-category-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-page .blog-category-list a {
  display: flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--body);
  font-weight: 700;
}

.blog-page .blog-category-list a:hover,
.blog-page .blog-category-list a.is-active {
  background: rgba(166, 116, 255, 0.1);
  color: var(--accent);
}

.blog-page .blog-empty {
  padding: var(--space-4);
  border: 1px solid rgba(166, 116, 255, 0.18);
  border-radius: 8px;
  background: rgba(166, 116, 255, 0.07);
  color: var(--body);
}

.blog-page .blog-article {
  width: min(var(--wide-width), calc(100% - var(--space-8)));
  margin-inline: auto;
  padding: var(--space-10) 0;
}

.blog-page .blog-article header {
  display: grid;
  gap: var(--space-2);
}

.blog-page .blog-article h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
}

.blog-page .blog-article__summary {
  margin: 0;
  color: var(--body);
  font-size: 19px;
  line-height: 1.65;
}

.blog-page .blog-article__image {
  margin: var(--space-5) 0 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(166, 116, 255, 0.16);
}

.blog-page .blog-article__image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.blog-page .blog-body {
  margin-top: var(--space-6);
  color: var(--body);
  font-size: 18px;
  line-height: 1.7;
}

.blog-page .blog-body > *:first-child {
  margin-top: 0;
}

.blog-page .blog-body h2,
.blog-page .blog-body h3 {
  margin: var(--space-5) 0 var(--space-2);
  color: var(--accent);
  line-height: 1.18;
}

.blog-page .blog-body p,
.blog-page .blog-body ul,
.blog-page .blog-body ol {
  margin: 0 0 var(--space-3);
}

.blog-page .blog-body img,
.blog-page .blog-body iframe,
.blog-page .blog-body video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.blog-page .blog-body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.blog-page .blog-comments {
  display: grid;
  gap: 22px;
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(166, 116, 255, 0.18);
}

.blog-page .blog-comments__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.blog-page .blog-comments__header span {
  color: #0f8f8c;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-page .blog-comments__header h2,
.blog-page .blog-comment-form h3 {
  margin: 4px 0 0;
  color: var(--ink);
  line-height: 1.15;
}

.blog-page .blog-comments__header p,
.blog-page .blog-comment-form__intro p,
.blog-page .blog-comments__empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.blog-page .blog-comment-success {
  padding: 13px 16px;
  border: 1px solid rgba(47, 138, 85, 0.25);
  border-radius: 8px;
  background: #effbf2;
  color: #2f8a55;
  font-weight: 800;
}

.blog-page .blog-comment-list {
  display: grid;
  gap: 14px;
}

.blog-page .blog-comment {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(166, 116, 255, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(26, 21, 39, 0.06);
}

.blog-page .blog-comment header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.blog-page .blog-comment strong,
.blog-page .blog-comment strong a {
  color: var(--ink);
}

.blog-page .blog-comment time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.blog-page .blog-comment p {
  margin: 0;
  color: var(--body);
  white-space: pre-line;
}

.blog-page .blog-comment-form {
  position: relative;
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(15, 143, 140, 0.18);
  border-radius: 8px;
  background: #f8fbfb;
}

.blog-page .blog-comment-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.blog-page .blog-comment-form__wide,
.blog-page .blog-comment-form .validation-summary {
  grid-column: 1 / -1;
}

.blog-page .blog-comment-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 850;
}

.blog-page .blog-comment-form input,
.blog-page .blog-comment-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(44, 31, 75, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: var(--body);
  font: inherit;
}

.blog-page .blog-comment-form textarea {
  resize: vertical;
}

.blog-page .blog-comment-form input:focus,
.blog-page .blog-comment-form textarea:focus {
  outline: 0;
  border-color: #0f8f8c;
  box-shadow: 0 0 0 3px rgba(15, 143, 140, 0.13);
}

.blog-page .blog-comment-form span,
.blog-page .blog-comment-form .validation-summary {
  color: #b42345;
  font-size: 13px;
}

.blog-page .blog-comment-form button {
  width: max-content;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #8052e6;
  border-radius: 8px;
  background: #8052e6;
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
}

.blog-page .blog-comment-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.blog-page .blog-related {
  padding-top: var(--space-8);
}

@media (max-width: 1180px) {
  .blog-page .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .blog-page .blog-shell {
    padding-top: 12px;
  }

  .blog-page .blog-article {
    padding-top: var(--space-8);
  }

  .blog-page .blog-hero {
    min-height: 480px;
    width: calc(100% - var(--space-3));
    padding: 74px var(--space-3) 138px;
    border-radius: 0 0 34px 34px;
  }

  .blog-page .blog-topic-filter,
  .blog-page .blog-layout {
    width: calc(100% - var(--space-3));
  }

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

  .blog-page .blog-hero h1 {
    font-size: clamp(35px, 10vw, 48px);
  }

  .blog-page .blog-article h1 {
    font-size: clamp(31px, 9vw, 44px);
  }

  .blog-page .blog-comments__header,
  .blog-page .blog-comment header {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-page .blog-comment-form__grid {
    grid-template-columns: 1fr;
  }

  .blog-page .blog-hero p {
    font-size: 17px;
    line-height: 1.45;
  }

  .blog-page .blog-hero__badge {
    min-height: 40px;
    padding-inline: 18px;
    font-size: 15px;
  }

  .blog-page .blog-topic-filter {
    margin-top: -76px;
  }

  .blog-page .blog-filter-card {
    gap: 20px;
    padding: 24px 18px 22px;
    border-radius: 18px;
  }

  .blog-page .blog-topic-list {
    gap: 10px;
  }

  .blog-page .blog-topic-list a {
    min-height: 46px;
    padding: 10px 18px;
    font-size: 16px;
  }

  .blog-page .blog-article__summary,
  .blog-page .blog-body {
    font-size: 16px;
  }

  .blog-page .blog-article {
    width: calc(100% - var(--space-4));
  }
}

/* Blog listing refresh */
.blog-page .blog-shell {
  padding-bottom: clamp(72px, 8vw, 132px);
  background:
    linear-gradient(180deg, rgba(166, 116, 255, 0.06) 0, rgba(255, 255, 255, 0) 390px),
    #ffffff;
}

.blog-page .blog-hero {
  overflow: hidden;
  border-radius: 0 0 48px 48px;
  background:
    linear-gradient(135deg, #7c43df 0%, #9360ef 54%, #6b56d6 100%);
}

.blog-page .blog-filter-card {
  border: 1px solid rgba(166, 116, 255, 0.13);
  box-shadow: 0 32px 76px rgba(43, 30, 68, 0.12);
}

.blog-page .blog-topic-list a {
  color: #38343f;
  font-weight: 750;
}

.blog-page .blog-layout {
  gap: 24px;
  padding-top: clamp(36px, 5vw, 72px);
}

.blog-page .blog-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 2px;
}

.blog-page .blog-results-bar div {
  display: grid;
  gap: 5px;
}

.blog-page .blog-results-bar span {
  color: #8052e6;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-page .blog-results-bar strong {
  color: #17121f;
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1.2;
}

.blog-page .blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 34px);
}

.blog-page .blog-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(166, 116, 255, 0.18);
  border-bottom: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 52px rgba(26, 21, 39, 0.09);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.blog-page .blog-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, #a674ff, #0f8f8c);
}

.blog-page .blog-card:hover {
  border-color: rgba(166, 116, 255, 0.34);
  box-shadow: 0 28px 70px rgba(49, 31, 83, 0.14);
  transform: translateY(-3px);
}

.blog-page .blog-card__image {
  display: block;
  aspect-ratio: 16 / 9.4;
  overflow: hidden;
  background: #f4f0ff;
}

.blog-page .blog-card__image img {
  transition: transform 220ms ease;
}

.blog-page .blog-card:hover .blog-card__image img {
  transform: scale(1.035);
}

.blog-page .blog-card__image--placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  background:
    linear-gradient(135deg, rgba(166, 116, 255, 0.16), rgba(15, 143, 140, 0.12)),
    #fbf9ff;
}

.blog-page .blog-card__image--placeholder span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(166, 116, 255, 0.28);
  border-radius: 999px;
  background: #ffffff;
  color: #8052e6;
  font-weight: 900;
}

.blog-page .blog-card__body {
  align-content: start;
  gap: 14px;
  padding: clamp(22px, 3vw, 32px);
}

.blog-page .blog-meta {
  gap: 10px;
  color: #6d6678;
  font-size: 13px;
}

.blog-page .blog-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}

.blog-page .blog-category-pill {
  min-height: 30px;
  padding: 6px 12px;
  background: #f1eaff;
  color: #8052e6;
}

.blog-page .blog-card h2,
.blog-page .blog-card h3 {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.12;
}

.blog-page .blog-card h2 a,
.blog-page .blog-card h3 a {
  color: inherit;
}

.blog-page .blog-card p {
  display: -webkit-box;
  overflow: hidden;
  color: #4f4a59;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.blog-page .blog-card__link {
  width: max-content;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  padding: 9px 14px;
  border: 1px solid rgba(166, 116, 255, 0.28);
  border-radius: 8px;
  background: #ffffff;
  color: #8052e6;
  font-weight: 900;
}

.blog-page .blog-card__link:hover {
  background: #8052e6;
  color: #ffffff;
}

.blog-page .blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
}

.blog-page .blog-pagination a,
.blog-page .blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid rgba(166, 116, 255, 0.22);
  border-radius: 8px;
  background: #ffffff;
  color: #42364f;
  font-weight: 850;
}

.blog-page .blog-pagination a:hover,
.blog-page .blog-pagination .is-current {
  border-color: #8052e6;
  background: #8052e6;
  color: #ffffff;
}

.blog-page .blog-empty {
  padding: 34px;
  border-color: rgba(166, 116, 255, 0.2);
  background: #fbf9ff;
  color: #4f4a59;
  box-shadow: 0 20px 52px rgba(26, 21, 39, 0.07);
}

@media (max-width: 1180px) {
  .blog-page .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

@media (max-width: 760px) {
  .blog-page .blog-hero {
    border-radius: 0 0 30px 30px;
  }

  .blog-page .blog-results-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-page .blog-card__body {
    padding: 22px;
  }

  .blog-page .blog-card h2,
  .blog-page .blog-card h3 {
    font-size: 25px;
  }
}
