:root {
  --blog-bg: #070b18;
  --blog-panel: #0d1224;
  --blog-panel-soft: #12182c;
  --blog-line: rgba(255, 255, 255, 0.12);
  --blog-text: #f8fafc;
  --blog-muted: rgba(248, 250, 252, 0.66);
  --blog-primary: #262752;
  --blog-secondary: #00917e;
  --blog-accent: #7af4de;
}

body.blog-page {
  background:
    radial-gradient(circle at 14% 10%, rgba(0, 145, 126, 0.18), transparent 28%),
    linear-gradient(180deg, #070b18 0%, #0b0f20 46%, #f8fafc 46%, #ffffff 100%);
  overflow-x: hidden;
}

.blog-page .nav {
  position: relative;
  top: auto;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.blog-page .nav-inner {
  position: relative;
  width: 100%;
  max-width: none;
  justify-content: center;
  padding: 0 clamp(24px, 5vw, 64px);
  gap: 0;
}

.blog-page .brand {
  position: absolute;
  left: clamp(24px, 5vw, 64px);
  top: 50%;
  transform: translateY(-50%);
}

.blog-page .brand-logo {
  display: none;
}

.blog-page .brand-name {
  color: #ffffff;
  letter-spacing: 0.17em;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.blog-page .nav-menu {
  position: fixed;
  left: 50%;
  top: 18px;
  z-index: 1002;
  transform: translateX(-50%);
  gap: clamp(18px, 3vw, 34px);
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.blog-page .nav-menu a {
  position: relative;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 0;
  padding: 0;
  color: rgba(248, 250, 252, 0.82);
  font-weight: 800;
  letter-spacing: 0.085em;
  text-shadow: 0 0 18px rgba(122, 244, 222, 0.08), 0 10px 28px rgba(0, 0, 0, 0.42);
  transition: color 0.2s ease, transform 0.2s ease;
}

.blog-page .nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blog-accent), #ffffff);
  box-shadow: 0 0 18px rgba(122, 244, 222, 0.52);
  opacity: 0;
  transform: scaleX(0.36);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.blog-page .nav-menu a:hover {
  color: #ffffff;
  background: transparent;
  box-shadow: none;
  transform: translateY(-1px);
}

.blog-page .nav-menu a:hover::after,
.blog-page .nav-menu a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.blog-page main,
.blog-page .container,
.blog-intro,
.blog-tools,
.blog-categories,
.featured-article,
.blog-grid {
  min-width: 0;
  max-width: 100%;
}

.blog-page .nav-menu a.active {
  color: #ffffff;
  text-shadow: 0 0 16px rgba(122, 244, 222, 0.18), 0 10px 28px rgba(0, 0, 0, 0.42);
  background: transparent;
  box-shadow: none;
}

.blog-page .menu-toggle {
  flex: 0 0 auto;
  margin-left: auto;
  position: relative;
  width: 44px;
  height: 44px;
}

.blog-page .menu-toggle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 -7px 0 var(--primary), 0 7px 0 var(--primary);
  transform: translate(-50%, -50%);
}

.blog-shell {
  color: var(--blog-text);
  background:
    linear-gradient(180deg, rgba(7, 11, 24, 0.96), rgba(9, 12, 24, 0.98)),
    url("hero-geometric-teal.jpg") top right / min(680px, 70vw) auto no-repeat;
  padding: 58px 0 78px;
  overflow: hidden;
}

.blog-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 40px;
}

.blog-kicker,
.blog-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blog-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.blog-kicker::after,
.blog-section-kicker::after {
  content: "";
  width: 72px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.blog-intro h1 {
  max-width: 620px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: 0;
}

.blog-intro p {
  color: var(--blog-muted);
  font-size: 16px;
  line-height: 1.75;
}

.blog-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 40px;
}

.blog-categories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-width: none;
}

.blog-categories::-webkit-scrollbar {
  display: none;
}

.blog-chip {
  appearance: none;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--blog-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(248, 250, 252, 0.6);
  cursor: pointer;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.blog-chip::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    linear-gradient(120deg, transparent 0%, rgba(122, 244, 222, 0.22) 42%, rgba(255, 255, 255, 0.2) 50%, transparent 62%);
  opacity: 0;
  transform: translateX(-72%);
  transition: opacity 0.22s ease, transform 0.42s ease;
}

.blog-chip:hover::before,
.blog-chip.is-active::before {
  opacity: 1;
  transform: translateX(72%);
}

.blog-chip:hover,
.blog-chip.is-active {
  background:
    linear-gradient(135deg, rgba(38, 39, 82, 0.92), rgba(0, 145, 126, 0.34)),
    rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: rgba(122, 244, 222, 0.52);
  box-shadow: 0 12px 28px rgba(0, 145, 126, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.blog-chip:focus-visible {
  outline: 2px solid rgba(122, 244, 222, 0.88);
  outline-offset: 3px;
}

.blog-search {
  width: min(260px, 100%);
  min-height: 42px;
  border: 1px solid var(--blog-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--blog-text);
  padding: 0 17px;
  font-size: 14px;
  outline: none;
}

.blog-search::placeholder {
  color: rgba(248, 250, 252, 0.42);
}

.featured-article {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  margin-top: 18px;
  min-height: 430px;
  border: 1px solid var(--blog-line);
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
}

.featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 52px);
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(248, 250, 252, 0.72);
  padding: 0 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-tag.is-primary {
  background: #5f5cf6;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(95, 92, 246, 0.28);
}

.featured-copy h2 {
  max-width: 620px;
  margin-bottom: 18px;
  color: #ffffff;
  font-size: clamp(23px, 2.4vw, 34px);
  line-height: 1.3;
  font-weight: 700;
}

.featured-copy p {
  max-width: 660px;
  margin-bottom: 28px;
  color: var(--blog-muted);
  font-size: 15.5px;
  line-height: 1.75;
}

.featured-media {
  min-height: 360px;
  background:
    linear-gradient(90deg, rgba(7, 11, 24, 0.18), transparent 42%),
    url("featured-ai-learning.jpg") center / cover no-repeat;
}

.blog-cta {
  width: fit-content;
  min-width: 198px;
  min-height: 50px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: 0.22s ease;
}

.blog-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(122, 244, 222, 0.62);
  background: rgba(122, 244, 222, 0.1);
  box-shadow: 0 16px 32px rgba(0, 145, 126, 0.14);
}

.blog-content {
  background: #ffffff;
  color: var(--text);
  padding: 64px 0 76px;
}

.blog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 46px;
  align-items: start;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(38, 39, 82, 0.08);
  transition: 0.22s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(38, 39, 82, 0.14);
}

.article-card img {
  width: 100%;
  height: 196px;
  object-fit: cover;
}

.article-card-body {
  padding: 22px;
}

.article-card h3 {
  margin: 9px 0 11px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.42;
  letter-spacing: -0.01em;
}

.article-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.68;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.article-category {
  color: var(--secondary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-sidebar {
  display: grid;
  gap: 24px;
}

.newsletter-card,
.popular-card {
  border-radius: 24px;
}

.newsletter-card {
  background: linear-gradient(135deg, var(--primary), #17183d 68%, #102f38);
  color: #ffffff;
  padding: 30px;
  box-shadow: 0 22px 60px rgba(38, 39, 82, 0.22);
}

.newsletter-card .blog-section-kicker {
  color: #9df3e7;
}

.newsletter-card h3 {
  margin: 22px 0 12px;
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.newsletter-card p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14.5px;
  line-height: 1.72;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.newsletter-form input {
  width: 100%;
  min-height: 50px;
  border: 0;
  outline: none;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
  border: 0;
  background: transparent;
  color: var(--blog-accent);
  cursor: pointer;
  font-size: 24px;
  padding: 0 0 10px 12px;
}

.popular-card {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 26px;
}

.popular-card h3 {
  margin-bottom: 20px;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -0.01em;
}

.popular-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.popular-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.popular-item img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
}

.popular-item h4 {
  color: var(--ink);
  font-size: 13.25px;
  line-height: 1.42;
}

.popular-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .blog-intro,
  .featured-article,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .blog-search {
    width: 100%;
  }

  .featured-media {
    min-height: 320px;
    order: -1;
  }

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

@media (max-width: 860px) {
  .blog-page .nav {
    width: 100%;
    overflow: visible;
    background: transparent;
  }

  .blog-page .nav-inner {
    width: 100%;
    height: 62px;
    padding: 0 12px;
  }

  .blog-page .brand {
    left: 12px;
  }

  .blog-page .menu-toggle {
    display: none;
  }

  .blog-page .nav-panel {
    display: grid;
    position: fixed;
    left: 0;
    top: 72px;
    z-index: 1002;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    align-items: center;
    align-content: center;
    justify-content: center;
    grid-template-columns: repeat(5, max-content);
    column-gap: clamp(14px, 4vw, 26px);
    row-gap: 8px;
    margin: 0;
    padding: 0;
    transform: none;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    scrollbar-width: none;
  }

  .blog-page .nav-panel::-webkit-scrollbar {
    display: none;
  }

  .blog-page .nav-panel a {
    position: relative;
    flex: 0 0 auto;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    padding: 0;
    color: rgba(248, 250, 252, 0.84);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.065em;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 0 16px rgba(122, 244, 222, 0.1), 0 10px 26px rgba(0, 0, 0, 0.44);
    transition: color 0.2s ease, transform 0.2s ease;
  }

  .blog-page .nav-panel a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blog-accent), #ffffff);
    box-shadow: 0 0 18px rgba(122, 244, 222, 0.52);
    opacity: 0;
    transform: scaleX(0.36);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .blog-page .nav-panel a:hover,
  .blog-page .nav-panel a[href="blog.html"] {
    color: #ffffff;
    text-shadow: 0 0 16px rgba(122, 244, 222, 0.2), 0 10px 26px rgba(0, 0, 0, 0.44);
    background: transparent;
    box-shadow: none;
    transform: translateY(-1px);
  }

  .blog-page .nav-panel a:hover::after,
  .blog-page .nav-panel a[href="blog.html"]::after {
    opacity: 1;
    transform: scaleX(1);
  }

  .blog-page .nav-panel .btn {
    display: none;
  }
}

@media (max-width: 680px) {
  body.blog-page {
    background: #070b18;
  }

  .blog-shell {
    padding: 92px 0 52px;
    background:
      linear-gradient(180deg, rgba(7, 11, 24, 0.96), rgba(9, 12, 24, 0.98)),
      url("hero-geometric-teal.jpg") top right / 820px auto no-repeat;
  }

  .blog-intro {
    gap: 20px;
    margin-bottom: 28px;
  }

  .blog-intro h1 {
    max-width: 19ch;
    font-size: clamp(24px, 6.7vw, 29px);
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: 0;
  }

  .blog-intro p {
    max-width: 34ch;
    font-size: 15px;
    line-height: 1.72;
  }

  .blog-tools {
    margin-bottom: 28px;
  }

  .blog-categories {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    overflow: visible;
    gap: 8px;
  }

  .blog-chip {
    min-height: 39px;
    padding: 0 14px;
    font-size: 10px;
  }

  .featured-article {
    margin-top: 16px;
    border-radius: 22px;
    min-height: 0;
  }

  .featured-media {
    min-height: 245px;
  }

  .featured-copy {
    padding: 22px;
  }

  .featured-copy h2 {
    max-width: 18ch;
    font-size: 21.5px;
    line-height: 1.32;
    margin-bottom: 16px;
  }

  .featured-copy p {
    font-size: 14.5px;
    line-height: 1.72;
  }

  .blog-cta {
    width: 100%;
    min-width: 0;
    min-height: 48px;
  }

  .blog-content {
    padding: 46px 0 60px;
  }

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

  .article-card img {
    height: 184px;
  }

  .article-card-body {
    padding: 20px;
  }

  .article-card h3 {
    font-size: 17.5px;
  }

  .article-card p {
    font-size: 13.5px;
  }
}
