:root {
  --blog-font: "Vazirmatn", Tahoma, system-ui, sans-serif;
  --blog-bg: #f8f7fb;
  --blog-surface: #fff;
  --blog-text: #171225;
  --blog-soft: #514762;
  --blog-muted: #756f87;
  --blog-line: #ebe7f4;
  --blog-brand: #7c3aed;
  --blog-brand2: #6d28d9;
  --blog-brand3: #5b21b6;
  --blog-teal: #14b8a6;
  --blog-dark: #020b12;
  --blog-shadow: 0 18px 55px rgba(31, 23, 56, 0.08);
  --blog-container: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--blog-font);
  font-size: 16px;
  line-height: 2;
  color: var(--blog-text);
  background:
    radial-gradient(
      900px 520px at 0 -10%,
      rgba(124, 58, 237, 0.1),
      transparent 62%
    ),
    radial-gradient(
      760px 480px at 100% 0,
      rgba(20, 184, 166, 0.08),
      transparent 58%
    ),
    linear-gradient(180deg, #fbfaff, var(--blog-bg));
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
.blog-shell {
  overflow: hidden;
}
.blog-container {
  width: min(var(--blog-container), 92vw);
  margin-inline: auto;
}
.blog-hero-v2 {
  position: relative;
  padding: 148px 0 74px;
  color: #fff;
  background:
    radial-gradient(
      circle at 12% 4%,
      rgba(124, 58, 237, 0.66),
      transparent 31%
    ),
    radial-gradient(
      circle at 88% 82%,
      rgba(20, 184, 166, 0.25),
      transparent 33%
    ),
    linear-gradient(135deg, #020b12 0%, #071923 48%, #03111a 100%);
}
.blog-hero-v2:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 95px;
  background: linear-gradient(0deg, #fbfaff, rgba(251, 250, 255, 0));
  pointer-events: none;
}
.blog-hero-v2 .blog-container {
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.68fr);
  gap: 34px;
  align-items: center;
}
.blog-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(196, 181, 253, 0.32);
  border-radius: 999px;
  color: #eee8ff;
  background: rgba(124, 58, 237, 0.18);
  font-size: 12px;
  font-weight: 950;
}
.hero-copy h1 {
  max-width: 820px;
  margin: 18px 0 14px;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.38;
  letter-spacing: -1px;
}
.hero-copy p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 2.15;
  font-weight: 650;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.blog-btn {
  min-height: 46px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: #fff;
  color: #31205a;
  font-weight: 950;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}
.blog-btn--primary {
  color: #fff;
  border-color: rgba(124, 58, 237, 0.25);
  background: linear-gradient(135deg, var(--blog-brand), var(--blog-brand2));
  box-shadow: 0 16px 34px rgba(124, 58, 237, 0.28);
}
.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.06)
  );
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  padding: 20px;
}
.hero-panel b {
  display: block;
  font-size: 18px;
  margin-bottom: 10px;
}
.hero-panel p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 650;
}
.search-box {
  position: relative;
}
.search-box i {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #a78bfa;
}
.search-box input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  padding: 10px 46px 10px 16px;
  font: inherit;
  font-weight: 750;
  outline: none;
}
.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}
.quick-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.quick-tags button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.blog-section {
  padding: 62px 0;
}
.blog-section--tight {
  padding-top: 34px;
}
.blog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.blog-head h2 {
  margin: 0;
  font-size: clamp(25px, 2.35vw, 36px);
  line-height: 1.55;
}
.blog-head p {
  margin: 6px 0 0;
  color: var(--blog-muted);
  font-weight: 650;
}
.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blog-brand3);
  font-weight: 950;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.featured-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
}
.featured-side {
  display: grid;
  gap: 18px;
}
.featured-grid > [data-featured-main] {
  display: flex;
}

.featured-grid > [data-featured-main] > .post-card-v2--large {
  width: 100%;
  align-self: start;
  overflow: hidden;
  border: 1px solid #ded8ec;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(31, 23, 56, 0.07);
}
.post-card-v2 {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);

  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.06),
    0 18px 55px rgba(31, 23, 56, 0.08);

  transition: 0.18s ease;
}

.post-card-v2:hover {
  transform: translateY(-4px);

  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.1),
    0 28px 80px rgba(31, 23, 56, 0.13);

  border-color: rgba(124, 58, 237, 0.22);
}
.post-img {
  height: 194px;
  background: linear-gradient(135deg, #ede9fe, #ecfeff);
  overflow: hidden;
}
.post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-body {
  padding: 21px;
}
.post-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: #f1ebff;
  color: var(--blog-brand3);
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 950;
}
.post-card-v2 h3 {
  margin: 13px 0 8px;
  font-size: 19px;
  line-height: 1.65;
}
.post-card-v2 p {
  margin: 0;
  color: #665f76;
  font-size: 14px;
  line-height: 2;
  font-weight: 650;
}
.post-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
  color: #8b8499;
  font-size: 12px;
  font-weight: 850;
}
.post-card-v2--large .post-img {
  height: 310px;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
}

.post-card-v2--large .post-body {
  padding-top: 22px;
}
.post-card-v2--large h3 {
  font-size: 25px;
}
.post-card-v2--horizontal {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: stretch;
}
.post-card-v2--horizontal .post-img {
  height: 100%;
}
.post-card-v2--horizontal h3 {
  font-size: 17px;
}
.category-grid-v2 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.category-card-v2 {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  border: 1px solid var(--blog-line);
  border-radius: 24px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 14px 38px rgba(31, 23, 56, 0.055);
  transition: 0.18s ease;
}
.category-card-v2:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.24);
  box-shadow: 0 24px 60px rgba(31, 23, 56, 0.1);
}
.category-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.category-top i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #f1ebff;
  color: var(--blog-brand3);
  font-size: 18px;
}
.category-count {
  border-radius: 999px;
  background: #f8f4ff;
  color: #5b21b6;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 950;
}
.category-card-v2 h3 {
  margin: 0 0 4px;
  font-size: 17px;
}
.category-card-v2 p {
  margin: 0;
  color: var(--blog-muted);
  font-size: 13px;
  line-height: 1.9;
  font-weight: 650;
}
.cta-v2 {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 34px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  background:
    radial-gradient(
      circle at 10% 15%,
      rgba(124, 58, 237, 0.28),
      transparent 30%
    ),
    linear-gradient(135deg, #171225, #31205a);
  color: #fff;
  box-shadow: 0 24px 70px rgba(31, 23, 56, 0.16);
}
.cta-v2 h2 {
  margin: 0 0 10px;
  font-size: clamp(25px, 2.6vw, 38px);
  line-height: 1.55;
}
.cta-v2 p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 650;
}
.cta-v2 .hero-actions {
  margin-top: 22px;
}
.empty-v2 {
  grid-column: 1/-1;
  padding: 26px;
  border: 1px dashed #d9ccff;
  border-radius: 24px;
  background: #fff;
  color: var(--blog-muted);
  text-align: center;
  font-weight: 800;
}
.category-hero-small .hero-grid {
  grid-template-columns: 1fr;
}
.category-hero-small {
  padding-bottom: 58px;
}
.hidden {
  display: none !important;
}
@media (max-width: 980px) {
  .hero-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .post-grid,
  .category-grid-v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .blog-hero-v2 {
    padding-top: 132px;
  }
  .blog-head {
    display: block;
  }
  .hero-panel {
    max-width: 620px;
  }
  .post-card-v2--large .post-img {
    height: 240px;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 15px;
  }
  .blog-hero-v2 {
    padding: 124px 0 62px;
  }
  .post-grid,
  .category-grid-v2 {
    grid-template-columns: 1fr;
  }
  .post-card-v2--horizontal {
    grid-template-columns: 1fr;
  }
  .post-card-v2--horizontal .post-img {
    height: 185px;
  }
  .post-img {
    height: 185px;
  }
  .post-body {
    padding: 18px;
  }
  .cta-v2 {
    padding: 24px;
    border-radius: 28px;
  }
  .hero-actions .blog-btn {
    width: 100%;
  }
}

.hero-section-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-section-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  backdrop-filter: blur(10px);
  transition: 0.18s ease;
}

.hero-section-nav a i {
  color: #c4b5fd;
  font-size: 12px;
}

.hero-section-nav a:hover {
  transform: translateY(-2px);
  background: rgba(124, 58, 237, 0.34);
  border-color: rgba(196, 181, 253, 0.45);
  color: #fff;
}

.hero-section-nav a:hover i {
  color: #fff;
  .blog-section {
    padding: 46px 0;
  }

  .blog-head {
    margin-bottom: 16px;
  }

  .blog-head h2 {
    font-size: 24px;
  }

  .post-grid {
    gap: 14px;
  }

  .post-img {
    height: 148px;
  }

  .post-body {
    padding: 14px;
  }

  .post-card-v2 h3 {
    font-size: 16px;
    line-height: 1.65;
    margin: 10px 0 6px;
  }

  .post-card-v2 p {
    font-size: 12.5px;
    line-height: 1.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .post-meta {
    margin-top: 10px;
    font-size: 11px;
  }

  .category-grid-v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .category-card-v2 {
    min-height: 120px;
    padding: 14px;
  }

  .category-card-v2 h3 {
    font-size: 14px;
  }

  .category-card-v2 p {
    font-size: 11.5px;
    line-height: 1.8;
  }
}
