:root {
  color-scheme: dark;
  --bg: #070b16;
  --panel: #0e1527;
  --panel-2: #121c32;
  --line: rgba(148, 163, 184, .16);
  --text: #f8fafc;
  --muted: #a8b2c6;
  --purple: #8b5cf6;
  --purple-2: #6d28d9;
  --cyan: #22d3ee;
  --green: #34d399;
  --danger: #fb7185;
  --shadow: 0 28px 80px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 88% 5%, rgba(124, 58, 237, .17), transparent 30rem),
    radial-gradient(circle at 7% 45%, rgba(8, 145, 178, .09), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Vazirmatn, IRANSansX, Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

button, input { font: inherit; }

img { display: block; max-width: 100%; }

.articles-page-shell { min-height: 100vh; }

.articles-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 22, .82);
  backdrop-filter: blur(20px);
}

.articles-brand { display: inline-flex; align-items: center; gap: 11px; direction: ltr; }

.articles-brand span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 13px;
  background: linear-gradient(135deg, var(--purple), #4f46e5 55%, #0891b2);
  box-shadow: 0 12px 34px rgba(79, 70, 229, .28);
  font-weight: 900;
}

.articles-brand strong { font-size: 20px; letter-spacing: .2px; }

.articles-header nav { display: flex; align-items: center; gap: 25px; color: #c7d0df; font-size: 13px; }

.articles-header nav a { transition: color .2s ease, transform .2s ease; }
.articles-header nav a:hover { color: #fff; transform: translateY(-1px); }

.articles-nav-cta {
  padding: 10px 16px;
  border: 1px solid rgba(139, 92, 246, .42);
  border-radius: 12px;
  background: rgba(139, 92, 246, .12);
  color: #ddd6fe !important;
}

.articles-page-shell > main { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }

.articles-hero {
  position: relative;
  overflow: hidden;
  margin: 48px 0 26px;
  padding: 58px clamp(22px, 6vw, 76px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(120deg, rgba(139, 92, 246, .16), rgba(34, 211, 238, .045) 60%),
    rgba(14, 21, 39, .88);
  box-shadow: var(--shadow);
}

.articles-hero::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  top: -190px;
  left: -70px;
  border-radius: 50%;
  background: rgba(34, 211, 238, .12);
  filter: blur(20px);
}

.articles-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 900;
}

.articles-kicker::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--cyan); }

.articles-hero h1 {
  position: relative;
  max-width: 760px;
  margin: 15px 0 0;
  font-size: clamp(34px, 5.1vw, 65px);
  line-height: 1.35;
  letter-spacing: -1.8px;
}

.articles-hero > p { position: relative; max-width: 720px; margin: 18px 0 0; color: var(--muted); font-size: 16px; line-height: 2; }

.articles-search { position: relative; width: min(520px, 100%); margin-top: 30px; }

.articles-search::after { content: "⌕"; position: absolute; top: 10px; left: 15px; color: #94a3b8; font-size: 24px; }

.articles-search input {
  width: 100%;
  height: 52px;
  padding: 0 17px 0 49px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  outline: none;
  background: rgba(5, 9, 19, .54);
  color: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.articles-search input:focus { border-color: rgba(139, 92, 246, .75); box-shadow: 0 0 0 4px rgba(139, 92, 246, .12); }
.articles-search input::placeholder { color: #778399; }

.articles-toolbar { display: flex; flex-wrap: wrap; gap: 9px; padding: 12px 0 28px; }

.articles-toolbar button {
  cursor: pointer;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: #aeb8ca;
  font-size: 12px;
  transition: .2s ease;
}

.articles-toolbar button:hover,
.articles-toolbar button.is-active { border-color: rgba(139, 92, 246, .55); background: rgba(139, 92, 246, .15); color: #ede9fe; }

.articles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-bottom: 76px; }

.article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(18, 28, 50, .98), rgba(11, 17, 31, .98));
  box-shadow: 0 18px 55px rgba(0, 0, 0, .18);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.article-card:hover { transform: translateY(-5px); border-color: rgba(139, 92, 246, .35); box-shadow: 0 26px 70px rgba(0, 0, 0, .3); }

.article-card-cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #111827; }
.article-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.article-card:hover .article-card-cover img { transform: scale(1.035); }

.article-card-body { padding: 21px; }
.article-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #93a0b5; font-size: 10px; }
.article-card-meta span:first-child { padding: 5px 9px; border-radius: 8px; background: rgba(139, 92, 246, .12); color: #c4b5fd; }
.article-card h2 { margin: 16px 0 0; font-size: 19px; line-height: 1.75; }
.article-card h2 a:hover { color: #c4b5fd; }
.article-card p { display: -webkit-box; overflow: hidden; margin: 10px 0 0; color: #9aa6ba; font-size: 12px; line-height: 2; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.article-card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: #67e8f9; font-size: 12px; font-weight: 800; }
.article-card-link span { transition: transform .2s ease; }
.article-card-link:hover span { transform: translateX(-4px); }

.articles-empty {
  grid-column: 1 / -1;
  padding: 70px 20px;
  border: 1px dashed rgba(148, 163, 184, .22);
  border-radius: 26px;
  text-align: center;
  background: rgba(255, 255, 255, .02);
}

.articles-empty span { display: block; color: var(--purple); font-size: 36px; }
.articles-empty h2 { margin: 12px 0 0; }
.articles-empty p { color: var(--muted); line-height: 2; }
.articles-no-result { margin: -40px 0 70px; color: var(--muted); text-align: center; }

.article-preview-banner { padding: 11px 20px; background: #7c2d12; color: #ffedd5; text-align: center; font-size: 12px; font-weight: 800; }

.article-detail { width: min(900px, 100%); margin: 42px auto 0; }

.article-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 28px; color: #8793a8; font-size: 11px; }
.article-breadcrumb a:hover { color: #c4b5fd; }

.article-detail-header {
  padding: clamp(25px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(139, 92, 246, .12), rgba(14, 21, 39, .82) 50%);
}

.article-detail-meta { display: flex; flex-wrap: wrap; gap: 9px; color: #b6c0d0; font-size: 10px; }
.article-detail-meta span { padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 999px; background: rgba(255, 255, 255, .035); }
.article-detail-header h1 { margin: 20px 0 0; font-size: clamp(31px, 5vw, 55px); line-height: 1.48; letter-spacing: -1.2px; }
.article-detail-header > p { margin: 18px 0 0; color: #b4bed0; font-size: 15px; line-height: 2; }
.article-author { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: #8f9aae; font-size: 11px; }
.article-author strong { color: #ede9fe; }

.article-cover { overflow: hidden; margin: 24px 0 0; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 27px; box-shadow: var(--shadow); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.article-content {
  margin: 28px 0 0;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(14, 21, 39, .82);
  color: #cbd5e1;
  font-size: 16px;
  line-height: 2.12;
}

.article-content h2 { margin: 46px 0 15px; color: #fff; font-size: 27px; line-height: 1.65; }
.article-content h2:first-child { margin-top: 0; }
.article-content h3 { margin: 32px 0 11px; color: #e9e5ff; font-size: 20px; line-height: 1.7; }
.article-content p { margin: 0 0 18px; }
.article-content ul, .article-content ol { margin: 10px 0 23px; padding-right: 25px; }
.article-content li { margin: 8px 0; padding-right: 5px; }
.article-content strong { color: #fff; }
.article-content em { color: #a5f3fc; }
.article-content a { color: #67e8f9; border-bottom: 1px dashed rgba(103, 232, 249, .45); }
.article-content a:hover { color: #c4b5fd; border-color: #c4b5fd; }
.article-content blockquote { margin: 25px 0; padding: 18px 20px; border-right: 3px solid var(--purple); border-radius: 13px; background: rgba(139, 92, 246, .08); color: #ddd6fe; }
.article-content > p:last-child a[href="/app"] { display: inline-flex; margin-top: 14px; padding: 13px 19px; border: 0; border-radius: 13px; background: linear-gradient(135deg, var(--purple), #4f46e5); color: #fff; font-weight: 900; box-shadow: 0 15px 38px rgba(79, 70, 229, .27); }

.article-independence-note { margin: 24px 0 0; padding: 20px 22px; border: 1px solid rgba(34, 211, 238, .14); border-radius: 18px; background: rgba(34, 211, 238, .04); }
.article-independence-note strong { color: #a5f3fc; font-size: 12px; }
.article-independence-note p { margin: 7px 0 0; color: #96a3b8; font-size: 11px; line-height: 1.9; }

.related-articles { margin: 65px 0 0; }
.related-articles > h2 { margin: 0 0 22px; font-size: 27px; }

.articles-footer {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  gap: 30px;
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  margin: 20px auto 0;
  padding: 35px 0 42px;
  border-top: 1px solid var(--line);
  color: #8793a8;
  font-size: 10px;
  line-height: 1.85;
}

.articles-footer strong { color: #fff; font-size: 18px; }
.articles-footer p { margin: 5px 0 0; }
.articles-footer-links { display: flex; flex-wrap: wrap; gap: 13px; }
.articles-footer-links a:hover { color: #fff; }

[hidden] { display: none !important; }

@media (max-width: 960px) {
  .articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .articles-footer { grid-template-columns: 1fr 1fr; }
  .articles-footer-links { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .articles-header { width: calc(100% - 24px); padding: 12px 0; }
  .articles-brand strong { display: none; }
  .articles-header nav { gap: 12px; font-size: 10px; }
  .articles-header nav > a:first-child, .articles-header nav > a:nth-child(3) { display: none; }
  .articles-nav-cta { padding: 9px 11px; }
  .articles-page-shell > main { width: calc(100% - 24px); }
  .articles-hero { margin-top: 25px; padding: 35px 20px; border-radius: 24px; }
  .articles-hero h1 { font-size: 35px; letter-spacing: -.7px; }
  .articles-hero > p { font-size: 13px; }
  .articles-grid { grid-template-columns: 1fr; gap: 15px; padding-bottom: 55px; }
  .article-detail { margin-top: 24px; }
  .article-detail-header { border-radius: 23px; }
  .article-detail-header h1 { font-size: 32px; }
  .article-cover { border-radius: 21px; }
  .article-content { padding: 23px 19px; border-radius: 22px; font-size: 14px; }
  .article-content h2 { margin-top: 38px; font-size: 23px; }
  .article-content h3 { font-size: 18px; }
  .articles-footer { grid-template-columns: 1fr; width: calc(100% - 24px); text-align: center; }
  .articles-footer-links { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* BANDIVO_ARTICLE_LIGHT_READING_V1_BEGIN */
.article-detail-page .article-content {
    background: #ffffff;
    color: #263244;
    border-color: rgba(148, 163, 184, .38);
    box-shadow: 0 24px 70px rgba(2, 6, 23, .22);
}

.article-detail-page .article-content h2 {
    color: #101828;
}

.article-detail-page .article-content h3 {
    color: #1f2937;
}

.article-detail-page .article-content strong {
    color: #111827;
}

.article-detail-page .article-content em {
    color: #0f766e;
}

.article-detail-page .article-content a {
    color: #5b21b6;
    border-bottom-color: rgba(91, 33, 182, .38);
}

.article-detail-page .article-content a:hover {
    color: #3730a3;
    border-bottom-color: #3730a3;
}

.article-detail-page .article-content li::marker {
    color: #7c3aed;
    font-weight: 900;
}

.article-detail-page .article-content blockquote {
    background: #f5f3ff;
    color: #4c1d95;
    border-right-color: #7c3aed;
}

.article-detail-page .article-content > p:last-child a[href="/app"] {
    border: 0;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #ffffff;
    box-shadow: 0 15px 38px rgba(79, 70, 229, .27);
}

.article-detail-page .article-content > p:last-child a[href="/app"]:hover {
    color: #ffffff;
    filter: brightness(1.08);
}

.article-detail-page .article-content ::selection {
    background: #ddd6fe;
    color: #111827;
}
/* BANDIVO_ARTICLE_LIGHT_READING_V1_END */

