:root {
  --blog-bg: #f7f8fc;
  --blog-surface: #ffffff;
  --blog-surface-soft: #f1f5f9;
  --blog-primary: #6366f1;
  --blog-primary-dark: #4c1d95;
  --blog-text: #0f172a;
  --blog-muted: #6b7280;
  --blog-radius: 18px;
  --blog-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}



.main-nav .menu-list li a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  transition: color 0.2s;
}

.main-nav li {
  color: #ffffff;
}


.blog-page,
.blog-detail-page {
  background: var(--blog-bg);
  color: var(--blog-text);
}

/* .blog-page main,
.blog-detail-page main {
  padding-top: 5.5rem;
  padding-bottom: 4rem;
} */

.blog-hero {
  padding: clamp(4rem, 9vw, 6rem) 0 3rem;
  background: linear-gradient(160deg, #1e1b4b 0%, #312e81 45%, #4338ca 100%);
  color: #fff;
}

.blog-hero .container {
  max-width: 960px;
}

.blog-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-hero__title {
  margin: 1.5rem 0 1rem;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.18;
  font-weight: 700;
}

.blog-hero__subtitle {
  font-size: 1.05rem;
  line-height: 1.8;
  opacity: 0.85;
  max-width: 760px;
}

.blog-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.blog-controls {
  position: relative;
  margin-top: -2.5rem;
  margin-bottom: 2.5rem;
}

.blog-controls__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding: 2.25rem;
  border-radius: var(--blog-radius);
  background: var(--blog-surface);
  box-shadow: var(--blog-shadow);
}

.blog-controls__label {
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blog-primary);
  margin-bottom: 0.65rem;
  display: inline-block;
}

.blog-controls__hint,
.blog-results {
  font-size: 0.9rem;
  color: var(--blog-muted);
}

.blog-results {
  align-self: flex-end;
  text-align: right;
  font-weight: 600;
}

.blog-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  background: var(--blog-surface-soft);
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 12px;
}

.blog-search input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--blog-text);
  outline: none;
}

.blog-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.blog-chip {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: #fff;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-chip:hover,
.blog-chip:focus {
  border-color: rgba(99, 102, 241, 0.6);
  color: var(--blog-primary);
}

.blog-chip--active {
  background: var(--blog-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.blog-featured {
  margin-bottom: 2rem;
}

.blog-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--blog-surface);
  border-radius: var(--blog-radius);
  overflow: hidden;
  box-shadow: var(--blog-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.18);
}

.blog-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.25fr);
}

.blog-card__media {
  position: relative;
  min-height: 200px;
  background: var(--blog-surface-soft);
}

.blog-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.blog-card__badge {
  align-self: flex-start;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.14);
  color: var(--blog-primary);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-card__meta {
  display: flex;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--blog-muted);
}

.blog-card__title {
  font-size: 1.28rem;
  line-height: 1.4;
}

.blog-card__excerpt {
  color: #1f2937;
  line-height: 1.6;
}

.blog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.blog-card__tag {
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  color: #475569;
  font-size: 0.8rem;
}

.blog-card__footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.blog-card__author {
  color: var(--blog-muted);
}

.blog-card__cta {
  color: var(--blog-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-card__cta::after {
  content: '→';
  transition: transform 0.18s ease;
}

.blog-card__cta:hover::after {
  transform: translateX(3px);
}

.blog-empty {
  padding: 2.4rem;
  border-radius: var(--blog-radius);
  border: 1px dashed rgba(148, 163, 184, 0.6);
  background: var(--blog-surface);
  text-align: center;
  color: var(--blog-muted);
  margin-bottom: 2rem;
}

.blog-empty h2 {
  margin-bottom: 0.6rem;
  color: var(--blog-primary-dark);
}

.blog-cta {
  margin-top: clamp(3rem, 10vw, 5rem);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(76, 29, 149, 0.18));
  border-radius: var(--blog-radius);
}

.blog-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(2rem, 6vw, 3rem);
}

.blog-cta__inner h2 {
  font-size: 1.7rem;
  margin-bottom: 0.6rem;
  color: #1f2937;
}

.blog-cta__inner p {
  color: #312e81;
  line-height: 1.6;
}

.blog-cta__inner .btn {
  padding: 0.85rem 1.8rem;
}

.blog-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(99, 102, 241, 0.18);
  z-index: 120;
}

.blog-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.blog-detail-hero {
  position: relative;
  padding: clamp(6rem, 11vw, 8rem) 0 3.5rem;
  background: #0b1221;
  color: #fff;
  overflow: hidden;
}

.blog-detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-image, rgba(15, 23, 42, 0.7)) center/cover no-repeat;
  opacity: 0.28;
}

.blog-detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 33, 0) 0%, rgba(11, 18, 33, 0.92) 70%);
}

.blog-detail-hero .container {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.blog-detail__breadcrumb {
  display: inline-flex;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.blog-detail__breadcrumb:hover {
  color: #c7d2fe;
}

.blog-detail-hero h1 {
  margin: 1.4rem 0 1rem;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.15;
}

.blog-detail__excerpt {
  max-width: 720px;
  line-height: 1.7;
  opacity: 0.85;
}

.blog-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.blog-detail__tags {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-detail__tag {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.2);
  font-size: 0.82rem;
}

.blog-detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 2.5rem;
  max-width: 1120px;
  margin: -2.5rem auto 0;
  padding: 0 1.25rem;
}

.blog-detail-aside {
  position: sticky;
  top: 6.2rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-toc,
.blog-share {
  background: var(--blog-surface);
  border-radius: var(--blog-radius);
  padding: 1.6rem;
  box-shadow: var(--blog-shadow);
}

.blog-toc h2,
.blog-share h3 {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blog-primary-dark);
  margin-bottom: 1rem;
}

.blog-toc__empty {
  font-size: 0.9rem;
  color: var(--blog-muted);
}

.blog-toc__list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}

.blog-toc__item a {
  color: var(--blog-text);
  font-size: 0.9rem;
  line-height: 1.4;
}

.blog-toc__item--h3 {
  padding-left: 0.9rem;
  border-left: 2px solid rgba(148, 163, 184, 0.4);
}

.blog-share__btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  text-align: center;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: rgba(99, 102, 241, 0.07);
  color: var(--blog-primary);
  transition: background 0.2s ease;
}

.blog-share__btn:last-child {
  margin-bottom: 0;
}

.blog-share__btn:hover {
  background: rgba(99, 102, 241, 0.18);
}

.blog-detail-main {
  background: var(--blog-surface);
  border-radius: calc(var(--blog-radius) + 4px);
  padding: clamp(2rem, 6vw, 3rem);
  box-shadow: var(--blog-shadow);
  min-height: 420px;
}

.blog-skeleton {
  display: grid;
  gap: 0.8rem;
}

.blog-skeleton__line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.4), rgba(203, 213, 225, 0.9), rgba(226, 232, 240, 0.4));
  animation: shimmer 1.4s infinite;
}

.blog-skeleton__line--title {
  height: 30px;
}

.blog-skeleton__line--half {
  width: 55%;
}

@keyframes shimmer {
  0% {
    background-position: -160px 0;
  }

  100% {
    background-position: 160px 0;
  }
}

.blog-detail-main .blog-body {
  font-size: 1.03rem;
  line-height: 1.75;
  color: var(--blog-text);
}

.blog-detail-main .blog-body h2,
.blog-detail-main .blog-body h3,
.blog-detail-main .blog-body h4 {
  margin: 2.2rem 0 1rem;
  color: var(--blog-primary-dark);
}

.blog-detail-main .blog-body p,
.blog-detail-main .blog-body ul,
.blog-detail-main .blog-body ol {
  margin-bottom: 1.4rem;
}

.blog-detail-main .blog-body ul,
.blog-detail-main .blog-body ol {
  padding-left: 1.4rem;
}

.blog-detail-main blockquote {
  margin: 2rem 0;
  padding: 1.4rem;
  border-left: 4px solid var(--blog-primary);
  background: rgba(99, 102, 241, 0.12);
  border-radius: 0 12px 12px 0;
  color: var(--blog-primary-dark);
}

.blog-detail-main img {
  display: block;
  max-width: 100%;
  margin: 2rem auto;
  border-radius: 16px;
}

.blog-related {
  margin: clamp(4rem, 12vw, 5.5rem) 0;
}

.blog-related .container {
  max-width: 1040px;
}

.blog-related h2 {
  margin-bottom: 1.4rem;
  font-size: 1.55rem;
  color: var(--blog-primary-dark);
}

.blog-related__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.blog-related__card {
  background: var(--blog-surface);
  border-radius: var(--blog-radius);
  overflow: hidden;
  box-shadow: var(--blog-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-related__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16);
}

.blog-related__media {
  height: 180px;
  background: var(--blog-surface-soft);
}

.blog-related__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-related__body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.blog-related__meta {
  font-size: 0.85rem;
  color: var(--blog-muted);
}

.blog-related__cta {
  margin-top: auto;
  color: var(--blog-primary);
  font-weight: 600;
}

@media (max-width: 1080px) {
  .blog-controls__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-detail-aside {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .blog-toc,
  .blog-share {
    flex: 1 1 240px;
  }
}

@media (max-width: 900px) {
  .blog-card--featured {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .blog-controls__grid {
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }

  .blog-results {
    text-align: left;
  }

  .blog-cta__inner {
    flex-direction: column;
    text-align: center;
  }

  .blog-detail-layout {
    margin-top: -1.5rem;
    padding: 0 1rem;
  }

  .blog-detail-aside {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .blog-card__body {
    padding: 1.4rem;
  }

  .blog-chip {
    padding-inline: 0.8rem;
  }

  .blog-hero__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-cta__inner .btn {
    width: 100%;
    justify-content: center;
  }

  .blog-detail-main {
    padding: 1.75rem 1.3rem;
  }
}