/* ==========================================================================
   CPOL Portal — استایل بخش عمومی (هیرو، کارت محصولات، بلوک‌ها، گالری)
   ========================================================================== */

/* ---------------- هیرو ---------------- */
.hero { position: relative; background: var(--grad-navy); overflow: hidden; color: #fff; }
.hero-aurora { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
  animation: float 14s ease-in-out infinite alternate;
}
.blob-1 { width: 480px; height: 480px; background: #1E5EFF; top: -160px; inset-inline-start: -120px; }
.blob-2 { width: 420px; height: 420px; background: #0EA5E9; bottom: -180px; inset-inline-end: -100px; animation-delay: -5s; }
.blob-3 { width: 300px; height: 300px; background: #6366F1; top: 30%; inset-inline-end: 28%; opacity: .3; animation-delay: -9s; }
@keyframes float {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-40px, 30px) scale(1.12); }
}
.hero-grid-overlay {
  position: absolute; inset: 0; opacity: .55;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; padding: 92px 20px 120px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 100px; font-size: .84rem; font-weight: 700;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); color: var(--sky-300);
  margin-bottom: 26px; backdrop-filter: blur(6px);
}
.hero-title {
  color: #fff; font-size: clamp(1.9rem, 4.6vw, 3.2rem); font-weight: 900; line-height: 1.55;
  margin-bottom: 18px; text-wrap: balance;
}
.grad-text { background: linear-gradient(120deg, #7DD3FC, #60A5FA 60%, #38BDF8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub {
  max-width: 640px; margin: 0 auto 34px; color: rgba(255,255,255,.72);
  font-size: 1.05rem; text-wrap: balance;
}
.hero-search {
  display: flex; align-items: center; gap: 6px; max-width: 620px; margin: 0 auto 40px;
  background: #fff; border-radius: 16px; padding: 8px;
  box-shadow: 0 24px 60px rgba(3, 12, 34, .45);
  color: var(--muted);
}
.hero-search input[type="search"] {
  flex: 1; border: 0; outline: 0; background: none; padding: 10px 12px; font-size: .98rem; color: var(--ink);
}
.hero-search .btn { border-radius: 11px; }
.hero-search select {
  border: 0; outline: 0; background: #F4F8FE; border-radius: 10px; padding: 10px 12px; color: var(--ink);
  max-width: 170px;
}
.hero-stats { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.stat-glass {
  min-width: 150px; padding: 16px 26px; border-radius: 16px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: 2px;
}
.stat-glass b { font-size: 1.65rem; font-weight: 900; color: #fff; }
.stat-glass span { font-size: .82rem; color: rgba(255,255,255,.62); }
.hero-wave { position: relative; margin-top: -70px; }
.hero-wave svg { display: block; width: 100%; height: 90px; }

/* ---------------- بخش‌ها ---------------- */
.section { padding: 64px 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--blue-600); background: var(--blue-100); font-size: .8rem; font-weight: 800;
  padding: 6px 13px; border-radius: 100px; margin-bottom: 12px;
}
.section-head h2 { font-size: 1.65rem; margin-bottom: 6px; }
.section-head p { color: var(--muted); max-width: 560px; }

/* ---------------- کارت‌های منتخب (اسلایدر) ---------------- */
.featured-section { padding-top: 40px; }
.featured-scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(320px, 1fr);
  gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--border-2) transparent;
}
.featured-card {
  scroll-snap-align: start; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease; color: var(--ink);
}
.featured-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.featured-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #EEF4FE; }
.featured-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.featured-card:hover .featured-cover img { transform: scale(1.06); }
.featured-flag {
  position: absolute; top: 14px; inset-inline-start: 14px;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(8, 23, 51, .78); color: #FCD34D; backdrop-filter: blur(6px);
  font-size: .76rem; font-weight: 700; padding: 5px 11px; border-radius: 100px;
}
.featured-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.featured-body h3 { font-size: 1.18rem; }
.featured-body p { color: var(--muted); font-size: .9rem; flex: 1; }
.featured-more { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-600); font-weight: 700; font-size: .9rem; margin-top: 6px; }
.featured-card:hover .featured-more { gap: 10px; }
.featured-more { transition: gap .2s; }
.scroller-nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.scroller-nav button {
  width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--border-2);
  background: #fff; color: var(--navy-700); display: grid; place-items: center;
  transition: all .16s;
}
.scroller-nav button:hover { border-color: var(--blue-600); color: var(--blue-600); transform: translateY(-2px); }

/* ---------------- دسته‌بندی‌ها ---------------- */
.category-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.category-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 14px 20px; color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.category-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--blue-500); color: var(--ink); }
.tile-icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-600); margin-bottom: 8px;
  transition: all .2s;
}
.category-tile:hover .tile-icon { background: var(--grad); color: #fff; box-shadow: var(--shadow-blue); }
.tile-name { font-weight: 800; }
.tile-count { font-size: .8rem; color: var(--muted); }

/* ---------------- کارت محصول ---------------- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #EEF4FE; display: block; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .card-cover img { transform: scale(1.05); }
.card-cover-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: #AFC4E8; }
.card-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 23, 51, .18));
}
.card-flag {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(8, 23, 51, .78); color: #FCD34D; font-size: .74rem; font-weight: 700;
  padding: 4px 10px; border-radius: 100px; backdrop-filter: blur(6px);
}
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-chip {
  font-size: .72rem; font-weight: 700; color: var(--blue-600);
  background: var(--blue-100); padding: 3px 10px; border-radius: 100px;
}
.chip-light { background: rgba(255,255,255,.14); color: var(--sky-300); border: 1px solid rgba(255,255,255,.2); }
.card-title { font-size: 1.12rem; }
.card-title a { color: var(--navy-900); }
.card-title a:hover { color: var(--blue-600); }
.card-desc { color: var(--muted); font-size: .9rem; flex: 1; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-dot { font-size: .74rem; color: var(--muted); }
.tag-dot::before { content: '•'; color: var(--sky-400); margin-inline-end: 5px; }
.tag-light { color: rgba(255,255,255,.6); }
.card-link { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: .88rem; }

/* فیلترهای فعال */
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--border-2); border-radius: 100px;
  padding: 6px 13px; font-size: .84rem; color: var(--navy-700); font-weight: 600;
}
.chip a { color: var(--red); font-weight: 800; margin-inline-start: 4px; }
.chip-clear { color: var(--blue-600); border-color: var(--blue-500); background: var(--blue-100); }

/* صفحه‌بندی */
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; }
.pagination a {
  background: #fff; border: 1px solid var(--border-2); padding: 8px 18px; border-radius: 10px;
  font-weight: 700; color: var(--navy-700);
}
.pagination a:hover { border-color: var(--blue-600); color: var(--blue-600); }
.pagination span { color: var(--muted); font-size: .9rem; }

/* ---------------- حالت خالی ---------------- */
.empty-state {
  text-align: center; padding: 70px 20px; color: var(--muted);
  background: #fff; border: 1.5px dashed var(--border-2); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.empty-state .icon { color: #AFC4E8; }
.empty-state h3 { color: var(--navy-900); }
.empty-state .btn { margin-top: 8px; }

/* ---------------- صفحه سربرگ داخلی ---------------- */
.page-head { position: relative; background: var(--grad-navy); color: #fff; padding: 60px 0 110px; overflow: hidden; }
.page-head h1 { color: #fff; font-size: 1.9rem; margin-bottom: 6px; }
.page-head p { color: rgba(255,255,255,.68); margin-bottom: 26px; }
.page-head .hero-search { margin-bottom: 0; }
.page-head .hero-search { box-shadow: 0 20px 50px rgba(3,12,34,.4); }
.page-head + .section { margin-top: -70px; position: relative; z-index: 2; }
.page-head + .section .products-grid { margin-top: 10px; }

/* ---------------- سربرگ جزئیات سامانه ---------------- */
.detail-hero { position: relative; background: var(--grad-navy); color: #fff; overflow: hidden; padding: 30px 0 110px; }
.crumbs { display: flex; align-items: center; gap: 7px; font-size: .84rem; color: rgba(255,255,255,.6); margin-bottom: 30px; }
.crumbs a { color: rgba(255,255,255,.75); }
.crumbs a:hover { color: #fff; }
.crumbs span { color: #fff; font-weight: 600; }
.detail-head { display: grid; grid-template-columns: auto 1fr minmax(280px, 420px); gap: 30px; align-items: center; }
.detail-logo {
  width: 88px; height: 88px; border-radius: 24px; display: grid; place-items: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px); color: #fff; box-shadow: 0 18px 40px rgba(3,12,34,.4);
}
.detail-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 24px; }
.detail-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.detail-title h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 8px; }
.detail-title > p { color: rgba(255,255,255,.72); max-width: 560px; margin-bottom: 18px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.detail-cover {
  border-radius: 20px; overflow: hidden; box-shadow: 0 30px 70px rgba(3,12,34,.5);
  border: 1px solid rgba(255,255,255,.15); transform: rotate(-1.2deg);
  transition: transform .3s ease;
}
.detail-cover:hover { transform: rotate(0deg) scale(1.01); }
.detail-cover img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

/* ---------------- بلوک‌های محتوا ---------------- */
.detail-content { padding-bottom: 30px; }
.block { margin-top: 58px; scroll-margin-top: 90px; }
.block-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.block-head .icon {
  width: 44px; height: 44px; border-radius: 14px; padding: 10px;
  background: var(--blue-100); color: var(--blue-600); box-sizing: border-box;
}
.block-head h2 { font-size: 1.42rem; }

/* متن غنی */
.prose {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 34px; box-shadow: var(--shadow);
  color: #33415C;
}
.prose p { margin-bottom: 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { margin: 6px 0 10px; }
.prose li { display: flex; gap: 9px; align-items: baseline; padding: 4px 0; }
.prose li .icon { color: var(--green); transform: translateY(2px); }

/* گالری */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.gallery-item {
  border-radius: var(--radius-sm); overflow: hidden; background: #fff;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.gallery-zoom { position: relative; display: block; width: 100%; border: 0; padding: 0; background: #EEF4FE; }
.gallery-zoom img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .4s ease; }
.gallery-zoom:hover img { transform: scale(1.06); }
.zoom-hint {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(11, 31, 58, .35); color: #fff; opacity: 0; transition: opacity .2s;
}
.gallery-zoom:hover .zoom-hint { opacity: 1; }
.gallery-item figcaption { padding: 10px 14px; font-size: .84rem; color: var(--muted); }

/* لایت‌باکس */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(8, 23, 51, .82); backdrop-filter: blur(6px);
  padding: 30px; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox figure { display: flex; flex-direction: column; align-items: center; max-width: 94vw; }
.lightbox img { width: min(1200px, 92vw); height: auto; max-height: 82vh; object-fit: contain; background: #fff; border-radius: 16px; box-shadow: 0 40px 100px rgba(0,0,0,.5); }
.lightbox-count { color: rgba(255,255,255,.6); font-size: .8rem; margin-top: 6px; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1;
}
.lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-next { left: 22px; } .lightbox-prev { right: 22px; }
.lightbox figcaption { color: rgba(255,255,255,.85); text-align: center; margin-top: 14px; font-size: .92rem; }
.lightbox-close {
  position: absolute; top: 22px; inset-inline-end: 26px; width: 44px; height: 44px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1);
  color: #fff; font-size: 22px; line-height: 1;
}

/* ویدئو */
.videos-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 720px) { .videos-grid { grid-template-columns: 1fr; } }
.video-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-frame { position: relative; aspect-ratio: 16/9; background: var(--grad-navy); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster {
  position: absolute; inset: 0; display: grid; place-items: center; width: 100%;
  background: radial-gradient(circle at 50% 40%, rgba(56,189,248,.25), transparent 60%), var(--grad-navy);
  color: #fff; border: 0; transition: background .2s;
}
.video-poster:hover { color: var(--sky-300); }
.video-poster .icon { filter: drop-shadow(0 8px 22px rgba(0,0,0,.4)); transition: transform .2s; }
.video-poster:hover .icon { transform: scale(1.12); }
.video-meta { padding: 16px 20px; }
.video-meta h3 { font-size: 1.02rem; margin-bottom: 4px; }
.video-meta p { color: var(--muted); font-size: .87rem; }

/* قابلیت‌ها */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.feature-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--blue-500); }
.feature-icon {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-600); flex-shrink: 0;
}
.feature-card h3 { font-size: 1rem; margin-bottom: 4px; }
.feature-card p { color: var(--muted); font-size: .89rem; }

/* فایل‌ها */
.files-list { display: flex; flex-direction: column; gap: 12px; }
.file-row {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 20px; box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s;
}
.file-row:hover { border-color: var(--blue-500); transform: translateY(-2px); }
.file-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-600); flex-shrink: 0;
}
.file-info { flex: 1; min-width: 0; }
.file-info b { display: block; }
.file-info small { display: block; color: var(--muted); font-size: .84rem; }
.file-meta { font-size: .76rem; color: var(--muted-2); }
.file-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* آمار */
.stats-band {
  background: var(--grad-navy); border-radius: 22px; overflow: hidden;
  padding: 36px; position: relative; color: #fff;
}
.stats-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(30,94,255,.35), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(56,189,248,.3), transparent 45%);
}
.stats-head { position: relative; margin-bottom: 22px; }
.stats-head h2 { color: #fff; display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }
.stats-head .icon { color: var(--sky-300); }
.stats-grid {
  position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
}
.stat-cell {
  text-align: center; padding: 22px 10px; border-radius: 16px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13);
  backdrop-filter: blur(6px);
}
.stat-cell b { display: block; font-size: 1.9rem; font-weight: 900; color: #fff; margin-bottom: 4px; }
.stat-cell span { color: rgba(255,255,255,.66); font-size: .86rem; }

/* CTA کوچک بلوکی */
.mini-cta {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px 34px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  position: relative; overflow: hidden;
}
.mini-cta::before {
  content: ''; position: absolute; inset-inline-end: -60px; top: -60px; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(56,189,248,.14), transparent 70%); border-radius: 50%;
}
.mini-cta h2 { font-size: 1.25rem; }
.mini-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mini-cta-note { width: 100%; color: var(--muted); font-size: .84rem; border-top: 1px dashed var(--border-2); padding-top: 12px; margin-top: 4px; }

/* فناوری‌ها */
.tech-groups { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 30px; display: flex; flex-direction: column; gap: 16px; }
.tech-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.tech-kind { min-width: 90px; color: var(--muted); font-size: .86rem; font-weight: 700; }
.tech-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #F4F8FE; border: 1px solid var(--border-2); border-radius: 100px;
  padding: 6px 15px; font-size: .86rem; font-weight: 600; color: var(--navy-800);
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-lang { background: var(--blue-600); }
.dot-fw { background: var(--sky-400); }
.dot-tool { background: #6366F1; }
.dot-infra { background: var(--green); }

/* بخش پیشنهاد مرتبط */
.related-section { margin-top: 70px; }

/* چرا CPOL */
.trust-section { padding-top: 80px; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.trust-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.trust-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.trust-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad); color: #fff; box-shadow: var(--shadow-blue); margin-bottom: 16px;
}
.trust-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.trust-card p { color: var(--muted); font-size: .89rem; }

/* CTA پایین */
.cta-section { padding-top: 80px; }
.cta-banner {
  background: var(--grad-navy); border-radius: 26px; padding: 46px 50px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(56,189,248,.35), transparent 40%),
              radial-gradient(circle at 10% 90%, rgba(30,94,255,.4), transparent 45%);
}
.cta-text { position: relative; }
.cta-text h2 { color: #fff; font-size: 1.55rem; margin-bottom: 8px; }
.cta-text p { color: rgba(255,255,255,.7); max-width: 520px; }
.cta-actions { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------- ریسپانسیو ---------------- */
@media (max-width: 1000px) {
  .detail-head { grid-template-columns: auto 1fr; }
  .detail-cover { display: none; }
}
@media (max-width: 700px) {
  .hero-inner { padding: 66px 16px 100px; }
  .detail-head { grid-template-columns: 1fr; }
  .cta-banner { padding: 34px 26px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .file-row { flex-wrap: wrap; }
  .file-actions { width: 100%; justify-content: flex-end; }
}


/* ---------------- یکدست‌سازی تراز و فاصله‌ها ---------------- */
.detail-content > .block:first-child { margin-top: 28px; }
.detail-content .block { margin-top: 48px; }
.tech-row:not(:has(.tech-chip)) { display: none; }
.tech-kind { min-width: 110px; }
.page-head .hero-search { margin-inline: 0; max-width: 760px; }
.related-section .section-head { margin-bottom: 24px; }
.related-section .section-kicker { margin-bottom: 8px; }
.related-section .section-head h2 { font-size: 1.42rem; margin: 0; }

/* هیرو صفحه سامانه: موج پایین هیرو را تمام می‌کند و نوار تیره اضافه نمی‌ماند */
.detail-hero { padding-bottom: 0; }
.detail-hero > .container { padding-bottom: 80px; }

/* ویدئو: فایل مستقیم و iframe بدون اسکرول */
.video-frame { overflow: hidden; }
.video-frame iframe { overflow: hidden; }
.video-frame-file video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }
.card-flag-sample { background: #FEF3C7; color: #92400E; }
.hero-search select { max-width: 170px; }
.categories-section { scroll-margin-top: 80px; }

.prose h3 { font-size: 1.12rem; margin: 18px 0 8px; color: var(--navy-800); }
.prose h3:first-child { margin-top: 0; }
.prose a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
