/* css/portfolio.bundle.css: generated ordered bundle. Section order is intentional. */

/* ===== BEGIN css/portfolio.css ===== */
/* ═══════════════════════════════════════════════════════════════════════
   Automation Sanati Zamani — Portfolio v6.0 CSS — Industrial Engineering Showcase
   Design Language: Precision, Trust, Measurable Results
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --pf-hero-bg: #0A1628;
  --pf-card-bg: #FFFFFF;
  --pf-card-border: rgba(0,0,0,0.08);
  --pf-card-hover-border: rgba(13,115,119,0.4);
  --pf-accent: #0D7377;
  --pf-accent-light: #14A3A8;
  --pf-accent-soft: rgba(13,115,119,0.06);
  --pf-stats-bg: #F8FAFB;
  --pf-text: #0F172A;
  --pf-text-soft: #475569;
  --pf-text-muted: #94A3B8;
  --pf-hero-title: 3.4rem;
  --pf-hero-subtitle: 1.28rem;
  --pf-section-title: 1.8rem;
  --pf-card-title: 1.05rem;
  --pf-card-gap: 20px;
  --pf-section-gap: 80px;
  --pf-content-max: var(--za-container, 1140px);
  --pf-card-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --pf-card-shadow-hover: 0 10px 30px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --pf-radius-sm: 8px;
  --pf-radius: 12px;
  --pf-radius-lg: 16px;
  --pf-transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --pf-gold: #D97706;
}

[data-theme="dark"] {
  --pf-card-bg: #1E293B;
  --pf-card-border: rgba(255,255,255,0.08);
  --pf-card-hover-border: rgba(20,163,168,0.5);
  --pf-stats-bg: rgba(30,41,59,0.6);
  --pf-text: #F1F5F9;
  --pf-text-soft: #94A3B8;
  --pf-text-muted: #64748B;
  --pf-card-shadow: 0 1px 3px rgba(0,0,0,0.3);
  --pf-card-shadow-hover: 0 12px 36px rgba(0,0,0,0.5);
  --pf-accent-soft: rgba(20,163,168,0.1);
}

/* ═══════ BASE ═══════ */
.pf-container { max-width: var(--pf-content-max); margin: 0 auto; padding: 0 var(--za-gutter, 24px); }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--pf-accent-light); z-index: 9999; width: 0%;
  transition: width 100ms linear; pointer-events: none;
}

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 10000;
  background: var(--pf-accent); color: #fff; padding: 10px 20px;
  border-radius: 6px; font-size: .875rem; transition: top .2s;
}
.skip-link:focus { top: 8px; }

/* ═══════ HERO — compact (copy + screenshot, no partners) ═══════ */
.pf-hero {
  position: relative;
  margin-top: 0 !important; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  padding: 44px var(--za-gutter, 24px) 0;         /* clears fixed 64px navbar + 40px air */
  background: var(--pf-hero-bg);
  isolation: isolate;
}

/* ── Decorative orbs (subtle, lg only) ── */
.pf-hero-decor {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden; opacity: .4; contain: strict; display: none;
}
.pf-decor-orb { position: absolute; display: block; border-radius: 9999px; }
.pf-decor-orb--1 {
  left: -12%; top: -60%; width: 560px; height: 1280px; transform: rotate(-45deg);
  background: radial-gradient(68.54% 68.72% at 55.02% 31.46%, hsla(0,0%,85%,.08) 0%, hsla(0,0%,55%,.02) 50%, hsla(0,0%,45%,0) 80%);
}
.pf-decor-orb--2 {
  left: 0; top: 0; width: 224px; height: 1280px; transform: rotate(-45deg) translate(5%, -50%);
  background: radial-gradient(50% 50% at 50% 50%, hsla(0,0%,85%,.06) 0%, hsla(0,0%,45%,.02) 80%, transparent 100%);
}
.pf-decor-orb--3 {
  left: 0; top: -60%; width: 224px; height: 1280px; transform: rotate(-45deg);
  background: radial-gradient(50% 50% at 50% 50%, hsla(0,0%,85%,.04) 0%, hsla(0,0%,45%,.02) 80%, transparent 100%);
}

/* ── Hero row: two columns (text right + screenshot left) ── */
.pf-hero-row {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  max-width: var(--za-content, 1092px);
  margin: 0 auto;
  direction: rtl;   /* first child (copy) = right, second (shot) = left */
}

/* ── Copy — right-aligned (Persian) ── */
.pf-hero-copy {
  position: relative; z-index: 10;
  text-align: right;
}
.pf-hero-title {
  color: #fff; font-size: clamp(1.9rem, 4.5vw, 2.75rem);  /* slightly smaller */
  font-weight: 650; line-height: 1.2; letter-spacing: -0.02em;
  margin: 0; text-wrap: balance;
}
.pf-hero-title span {
  background: linear-gradient(135deg, #2DD4BF, #14A3A8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.pf-hero-subtitle {
  color: rgba(255,255,255,.68); font-size: 1.05rem;   /* compressed from 1.25rem */
  line-height: 1.6; margin: 16px 0 20px; max-width: 640px;
}

/* CTA button */
.pf-btn-hero {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: 9px; font-size: .92rem;  /* compressed */
  font-weight: 600; text-decoration: none; transition: var(--pf-transition);
  cursor: pointer; border: none; letter-spacing: 0.3px;
}
.pf-btn-hero-primary {
  background: rgba(13,115,119,0.22); color: #5EEAD4;
  border: 1px solid rgba(20,163,168,0.40);
}
.pf-btn-hero-primary:hover {
  background: rgba(13,115,119,0.35); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13,115,119,0.3); color: #A7F3D0;
}

/* ── 3D perspective screenshot ── */
.pf-hero-shot {
  position: relative; z-index: 1; width: 100%; max-width: 640px;  /* halved from 1280px */
  margin: 0;
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  overflow: hidden;
}
.pf-hero-shot-persp {
  perspective: 1200px;
  -webkit-mask-image: linear-gradient(to right, black 50%, transparent 100%);
  mask-image: linear-gradient(to right, black 50%, transparent 100%);
}
.pf-hero-shot-3d { transform: rotateX(20deg); }
.pf-hero-shot-skew { transform: skewX(-20.6deg); }
.pf-hero-shot-card {
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(94,234,212,0.12);
}
.pf-hero-shot-card .pf-dash { width: 100%; height: auto; display: block; }

/* ── Dashboard SVG — animated elements ── */

/* live status dot: soft blink */
.pf-live { animation: pfLive 1.6s ease-in-out infinite; transform-origin: center; }
@keyframes pfLive {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

/* ladder logic contacts: ON/OFF pulse */
.pf-contact { transform-origin: center; }
.pf-contact--c1 { animation: pfContact 2.2s ease-in-out infinite; }
.pf-contact--c2 { animation: pfContact 2.2s ease-in-out .35s infinite; }
.pf-contact--c3 { animation: pfContactFill 2.2s ease-in-out .7s infinite; }
.pf-contact--c4 { animation: pfContact 2.2s ease-in-out 1.05s infinite; }
@keyframes pfContact {
  0%, 100% { opacity: .4; stroke-width: 2; }
  50% { opacity: 1; stroke-width: 2.6; }
}
@keyframes pfContactFill {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}

/* PID square wave: self-drawing sweep */
.pf-wave-square {
  stroke-dasharray: 340; stroke-dashoffset: 340;
  animation: pfSquare 4s linear infinite;
}
@keyframes pfSquare {
  0% { stroke-dashoffset: 340; }
  60% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -340; }
}

/* cosine wave: flowing brightness */
.pf-wave-cos { animation: pfCos 5s ease-in-out infinite; }
@keyframes pfCos {
  0%, 100% { opacity: .25; }
  50% { opacity: .7; }
}

/* trend line (golden time-series): self-draw + flow */
.pf-trend-line {
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
  animation: pfTrend 7s linear infinite;
}
@keyframes pfTrend {
  0%   { stroke-dashoffset: 1400; }
  60%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1400; }
}
.pf-trend-area { animation: pfTrendArea 6s ease-in-out infinite; }
@keyframes pfTrendArea {
  0%, 100% { opacity: .08; }
  50%       { opacity: .22; }
}
.pf-trend-dot { filter: drop-shadow(0 0 5px rgba(251,191,36,.95)); }

/* telemetry bars: height + opacity breathe (staggered) */
.pf-bar { transform-origin: center bottom; }
.pf-bar--1 { animation: pfBar 3s ease-in-out infinite; }
.pf-bar--2 { animation: pfBar 3.4s ease-in-out .3s infinite; }
.pf-bar--3 { animation: pfBar 2.6s ease-in-out .15s infinite; }
.pf-bar--4 { animation: pfBar 3.8s ease-in-out .5s infinite; }
.pf-bar--5 { animation: pfBar 3.2s ease-in-out .2s infinite; }
.pf-bar--6 { animation: pfBar 3.6s ease-in-out .4s infinite; }
.pf-bar--7 { animation: pfBar 2.8s ease-in-out .6s infinite; }
@keyframes pfBar {
  0%, 100% { transform: scaleY(.82); opacity: .55; }
  50% { transform: scaleY(1.06); opacity: 1; }
}

/* values: subtle color breath */
.pf-val { animation: pfVal 3.5s ease-in-out infinite; }
.pf-val--2 { animation-delay: .4s; }
.pf-val--3 { animation-delay: .8s; }
.pf-val--4 { animation-delay: 1.2s; }
@keyframes pfVal {
  0%, 100% { opacity: .8; }
  50% { opacity: 1; }
}

/* pulse line trace (self-draw) */
.pf-pulse {
  stroke-dasharray: 1300; stroke-dashoffset: 1300;
  animation: pfPulse 5s linear infinite;
}
@keyframes pfPulse {
  0% { stroke-dashoffset: 1300; }
  60% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1300; }
}

/* pulse dot: glow */
.pf-pulse-dot { filter: drop-shadow(0 0 6px rgba(94,234,212,.95)); }

/* logo in title bar: gentle breathe */

/* respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .pf-live, .pf-contact, .pf-contact--c1, .pf-contact--c2, .pf-contact--c3, .pf-contact--c4,
  .pf-wave-square, .pf-wave-cos, .pf-bar, .pf-pulse, .pf-pulse-dot, .pf-val,
  .pf-trend-line, .pf-trend-area, .pf-trend-dot {
    animation: none !important;
  }
}






/* ═══════ FILTER BAR ═══════ */
.pf-filter-section {
  background: var(--pf-stats-bg); border-bottom: 1px solid var(--pf-card-border);
  position: sticky; top: 0; z-index: 100; padding: 10px 0; transition: box-shadow .3s;
}
.pf-filter-section.is-stuck { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.pf-filter-bar { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; }
.pf-search-wrap { position: relative; }
.pf-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--pf-text-muted); font-size: .9rem; pointer-events: none;
}
.pf-search-input {
  padding: 8px 14px 8px 36px; border: 1px solid var(--pf-card-border);
  border-radius: 8px; font-size: .88rem; background: var(--pf-card-bg);
  color: var(--pf-text); width: 240px; transition: var(--pf-transition);
  font-family: inherit; outline: none;
}
.pf-search-input:focus {
  border-color: var(--pf-accent); box-shadow: 0 0 0 3px var(--pf-accent-soft);
  width: 270px;
}

.pf-filter-tabs {
  display: flex; gap: 8px; overflow-x: auto; flex: 1;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.pf-filter-tabs::-webkit-scrollbar { display: none; }
.pf-filter-tab {
  flex-shrink: 0; padding: 8px 20px; border-radius: 6px;
  font-size: .85rem; font-weight: 500; cursor: pointer;
  background: transparent; color: var(--pf-text-soft);
  border: 1px solid transparent; transition: var(--pf-transition);
  white-space: nowrap; font-family: inherit;
}
.pf-filter-tab:hover { color: var(--pf-accent); background: var(--pf-accent-soft); }
.pf-filter-tab.active {
  background: var(--pf-accent); color: #fff; border-color: var(--pf-accent); font-weight: 600;
}

.pf-sort-view { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.pf-sort-select {
  padding: 6px 12px; border-radius: 6px; border: 1px solid var(--pf-card-border);
  font-size: .85rem; background: var(--pf-card-bg); color: var(--pf-text);
  font-family: inherit; cursor: pointer;
}
.pf-view-toggle { display: flex; gap: 6px; }
.pf-view-btn {
  width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--pf-card-border);
  background: var(--pf-card-bg); color: var(--pf-text-soft); cursor: pointer;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: var(--pf-transition);
}
.pf-view-btn.active { background: var(--pf-accent); color: #fff; border-color: var(--pf-accent); }

.pf-filter-meta {
  display: flex; align-items: center; justify-content: flex-start;
  flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
.pf-results-info { font-size: .85rem; color: var(--pf-text-soft); white-space: nowrap; }
.pf-results-info span { font-weight: 700; color: var(--pf-accent); }

.pf-active-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.pf-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--pf-accent-soft); color: var(--pf-accent);
  padding: 4px 12px; border-radius: 6px; font-size: .78rem; font-weight: 500;
}
.pf-chip button {
  background: none; border: none; cursor: pointer; color: var(--pf-accent);
  font-size: .85rem; padding: 0; line-height: 1;
}
.pf-chip-clear {
  background: rgba(239,68,68,0.08); color: #EF4444; border: none;
  padding: 4px 14px; border-radius: 6px; font-size: .78rem; cursor: pointer;
  font-family: inherit;
}
/* ═══════ FEATURED PROJECTS ═══════ */
.pf-featured-section { padding: 32px 0 0; }
.pf-section-header { margin-bottom: 20px; text-align: center; }
.pf-section-tag {
  display: inline-block; font-size: .8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--pf-accent); margin-bottom: 8px;
}
.pf-section-header h2 {
  font-size: var(--pf-section-title); font-weight: 800; color: var(--pf-text);
  margin: 0; letter-spacing: -0.3px;
}
.pf-section-header h2 span { color: var(--pf-accent); }
.pf-featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--pf-card-gap); }

.pf-featured-card {
  border-radius: var(--pf-radius); overflow: hidden;
  background: var(--pf-card-bg); border: 1px solid var(--pf-card-border);
  box-shadow: var(--pf-card-shadow); cursor: pointer; transition: var(--pf-transition);
}
.pf-featured-card:hover {
  transform: translateY(-4px); box-shadow: var(--pf-card-shadow-hover);
  border-color: var(--pf-card-hover-border);
}
.pf-featured-img { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #1E293B; }
.pf-featured-img img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease;
}
.pf-featured-card:hover .pf-featured-img img { transform: scale(1.04); }
.pf-featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.75) 0%, rgba(10,22,40,0.2) 60%);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 24px;
  opacity: 0; transition: opacity var(--pf-transition);
}
.pf-featured-card:hover .pf-featured-overlay { opacity: 1; }
.pf-view-cs {
  color: #fff; font-weight: 600; font-size: .9rem;
  background: var(--pf-accent); padding: 10px 24px; border-radius: 6px;
}
.pf-featured-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--pf-gold); color: #fff;
  padding: 2px 12px; border-radius: 4px; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
}
.pf-featured-body { padding: 20px; }
.pf-featured-title {
  font-size: 1.1rem; font-weight: 700; color: var(--pf-text); margin: 0 0 8px; line-height: 1.45;
}
.pf-featured-summary {
  font-size: .85rem; color: var(--pf-text-soft); line-height: 1.65;
  margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.pf-featured-meta {
  padding-top: 14px; border-top: 1px solid var(--pf-card-border);
  display: flex; gap: 16px; font-size: .82rem; color: var(--pf-text-soft);
}

/* ═══════ TAG SYSTEM ═══════ */
.pf-tag-service, .pf-tag-industry {
  display: inline-block; padding: 2px 10px; border-radius: 4px;
  font-size: .72rem; font-weight: 600;
}
.pf-tag-service { background: rgba(13,115,119,0.1); color: var(--pf-accent); }
.pf-tag-industry { background: rgba(71,85,105,0.08); color: var(--pf-text-soft); }

.pf-tech-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.pf-pill {
  display: inline-block; padding: 4px 10px; border-radius: 4px;
  font-size: .74rem; font-weight: 500;
  background: var(--pf-accent-soft); color: var(--pf-text-soft);
  white-space: nowrap;
}
.pf-pill-more { color: var(--pf-accent); font-weight: 600; }
.pf-pill-lg { padding: 6px 14px; font-size: .82rem; border-radius: 6px; }

/* ═══════ PROJECT GRID ═══════ */
.pf-grid-section { padding: 24px 0 56px; }
.pf-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--pf-card-gap);
}
.pf-grid[data-view="list"] { grid-template-columns: 1fr; }

.pf-card {
  border-radius: var(--pf-radius); overflow: hidden;
  background: var(--pf-card-bg); border: 1px solid var(--pf-card-border);
  box-shadow: var(--pf-card-shadow); cursor: pointer; transition: var(--pf-transition);
  display: flex; flex-direction: column;
}
.pf-card:hover {
  transform: translateY(-4px); box-shadow: var(--pf-card-shadow-hover);
  border-color: var(--pf-card-hover-border);
}
.pf-card[data-type="detailed"] { /* no special span — uniform grid */ }

/* Masonry-grid auto-rows for consistent card heights */
.pf-grid { grid-auto-rows: 1fr; }
.pf-card { height: 100%; }

.pf-card-img-wrap {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: linear-gradient(135deg, #1E293B, #334155);
}
.pf-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.pf-card:hover .pf-card-img { transform: scale(1.04); }
.pf-card-hover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.8) 0%, rgba(10,22,40,0.2) 60%);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 24px;
  opacity: 0; transition: opacity var(--pf-transition);
}
.pf-card:hover .pf-card-hover-overlay { opacity: 1; }
.pf-card-hover-overlay span {
  color: #fff; font-weight: 600; font-size: .85rem;
  background: var(--pf-accent); padding: 8px 20px; border-radius: 6px;
}

.pf-img-placeholder, .pf-card-img-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; background: linear-gradient(135deg, #0F172A, #1E293B);
  color: rgba(255,255,255,.10); position: relative;
}
.pf-img-placeholder::after {
  content: ''; position: absolute; inset: 0;
  background: 
    linear-gradient(rgba(13,115,119,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,115,119,0.12) 1px, transparent 1px);
  background-size: 30px 30px;
}

.pf-card-feat-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--pf-gold); color: #fff;
  width: 26px; height: 26px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700;
}
.pf-card-cs-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(13,115,119,0.9); color: #fff;
  padding: 4px 10px; border-radius: 4px;
  font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px;
}

.pf-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.pf-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.pf-card-title {
  font-size: var(--pf-card-title); font-weight: 700; color: var(--pf-text);
  margin: 0 0 8px; line-height: 1.45;
}
.pf-card-summary {
  font-size: .84rem; color: var(--pf-text-soft); line-height: 1.65; margin: 0 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; flex: 1;
}
.pf-card-metric {
  margin: 10px 0; padding: 12px 14px;
  background: var(--pf-accent-soft); border-radius: 8px;
  display: flex; align-items: center; gap: 10px;
  border-left: 3px solid var(--pf-accent);
}
[dir="rtl"] .pf-card-metric { border-left: none; border-right: 3px solid var(--pf-accent); }
.pf-metric-val { font-size: 1.25rem; font-weight: 800; color: var(--pf-accent); }
.pf-metric-lbl { font-size: .8rem; color: var(--pf-text-soft); }

/* Card Footer */
.pf-card-footer {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--pf-card-border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: .82rem; color: var(--pf-text-muted);
  gap: 10px;
}
.pf-card-duration { display: flex; align-items: center; gap: 4px; }
.pf-card-cta { color: var(--pf-accent); font-weight: 600; white-space: nowrap; }

/* ═══════ MID CTA ═══════ */
.pf-mid-cta { padding: 24px 0; }
.pf-mid-cta-box {
  background: linear-gradient(135deg, var(--pf-accent), #095A5F);
  border-radius: var(--pf-radius-lg); padding: 24px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; color: #fff;
}
.pf-mid-cta-box h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 6px; }
.pf-mid-cta-box p { margin: 0; font-size: .88rem; opacity: .85; line-height: 1.6; }
.pf-mid-cta-box a {
  flex-shrink: 0; background: #fff; color: var(--pf-accent);
  padding: 14px 32px; border-radius: 6px; font-weight: 700; text-decoration: none;
  transition: var(--pf-transition); white-space: nowrap;
}
.pf-mid-cta-box a:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.15); }

/* ═══════ TRUST SIGNALS ═══════ */
.pf-trust-section { padding: 24px 0; }
.pf-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pf-trust-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: var(--pf-stats-bg);
  border-radius: var(--pf-radius-sm); border: 1px solid transparent;
  transition: var(--pf-transition); font-size: .88rem; font-weight: 500;
  color: var(--pf-text-soft);
}
.pf-trust-item:hover { border-color: var(--pf-card-hover-border); }
.pf-trust-icon { font-size: 1.3rem; flex-shrink: 0; }

/* ═══════ BOTTOM CTA ═══════ */
.pf-cta-section { padding: 0 0 48px; }
.pf-cta-box {
  background: var(--pf-hero-bg); border-radius: var(--pf-radius-lg);
  padding: 40px 36px; text-align: center; position: relative; overflow: hidden;
}
.pf-cta-box::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(13,115,119,0.12) 0%, transparent 60%);
}
.pf-cta-content { position: relative; z-index: 1; min-width: 0; }
.pf-cta-box h2 { color: #fff; font-size: 1.6rem; font-weight: 800; margin: 0 0 14px; line-height: 1.3; }
/* عنوان CTA: در موبایل/تبلت تک‌خط بماند */
.pf-cta-box h2.pf-cta-title { white-space: nowrap; }
.pf-cta-box > div > p {
  color: rgba(255,255,255,.6); font-size: 1rem; margin: 0 auto 28px; max-width: 600px; line-height: 1.7;
}
.pf-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pf-cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 14px 32px; border-radius: 6px; font-size: .95rem;
  font-weight: 600; text-decoration: none; transition: var(--pf-transition);
  cursor: pointer; border: none; font-family: inherit;
  white-space: nowrap; max-width: 100%; box-sizing: border-box;
}
.pf-cta-btn-primary { background: var(--pf-accent); color: #fff; }
.pf-cta-btn-primary:hover { background: var(--pf-accent-light); transform: translateY(-2px); }
.pf-cta-btn-secondary {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.2);
}
.pf-cta-btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,.05); transform: translateY(-2px); }
.pf-cta-sub { margin-top: 16px; color: rgba(255,255,255,.4); font-size: .82rem; }
.pf-cta-sub a { color: var(--pf-accent-light); text-decoration: none; }

/* ═══════ EMPTY ═══════ */
.pf-empty, .pf-no-results {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 80px 24px;
}
.pf-empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: .4; }
.pf-empty h3, .pf-no-results h3 { color: var(--pf-text); font-size: 1.2rem; margin: 0 0 8px; }
.pf-empty p, .pf-no-results p { color: var(--pf-text-soft); margin: 0 0 20px; }
.pf-btn-reset {
  padding: 10px 24px; border-radius: 6px; border: 1.5px solid var(--pf-accent);
  background: transparent; color: var(--pf-accent); font-weight: 600;
  cursor: pointer; font-family: inherit; font-size: .88rem; transition: var(--pf-transition);
}
.pf-btn-reset:hover { background: var(--pf-accent); color: #fff; }
/* ═══════ MODAL ═══════ */
.pf-modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65);
  z-index: 2000; opacity: 0; visibility: hidden; transition: opacity .3s;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.pf-modal-backdrop.open { opacity: 1; visibility: visible; }

.pf-modal {
  position: fixed; inset: 0; z-index: 2001; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .3s;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 20px 80px;
}
.pf-modal.open { opacity: 1; visibility: visible; }

.pf-modal-close {
  position: fixed; top: 16px; right: 16px; z-index: 2010;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.2rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--pf-transition);
}
.pf-modal-close:hover { background: rgba(239,68,68,0.7); }
[dir="rtl"] .pf-modal-close { right: auto; left: 16px; }

.pf-modal-inner {
  background: var(--pf-card-bg); border-radius: var(--pf-radius-lg);
  max-width: 920px; width: 100%; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
}
.pf-modal-loading {
  display: flex; align-items: center; justify-content: center; padding: 100px 20px;
}
.pf-spinner {
  width: 36px; height: 36px; border: 3px solid var(--pf-card-border);
  border-top-color: var(--pf-accent); border-radius: 50%;
  animation: pf-spin .7s linear infinite;
}
@keyframes pf-spin { to { transform: rotate(360deg); } }

/* ── CS Header ── */
.pf-cs-header { padding: 32px 36px 24px; border-bottom: 1px solid var(--pf-card-border); }
.pf-cs-breadcrumb {
  display: flex; align-items: center; gap: 6px; font-size: .85rem;
  color: var(--pf-text-muted); margin-bottom: 16px;
}
.pf-cs-breadcrumb a { color: var(--pf-accent); text-decoration: none; }
.pf-cs-header h2 { font-size: 1.5rem; font-weight: 800; color: var(--pf-text); margin: 0 0 10px; line-height: 1.35; }
.pf-cs-summary { color: var(--pf-text-soft); font-size: .95rem; line-height: 1.75; margin: 0 0 14px; }
.pf-cs-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-cs-meta-item {
  font-size: .82rem; color: var(--pf-text-soft); background: var(--pf-stats-bg);
  padding: 4px 12px; border-radius: 6px; font-weight: 500;
}

/* ── Carousel ── */
.pf-carousel {
  position: relative; overflow: hidden; background: #0F172A; min-height: 280px; height: 460px;
}
.pf-carousel-track { position: relative; width: 100%; height: 100%; }
.pf-carousel-slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  max-height: 460px; background: #0F172A; opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.pf-carousel-slide.active { opacity: 1; pointer-events: auto; }
.pf-carousel-slide img {
  width: 100%; height: 100%; object-fit: contain; max-height: 450px;
}
.pf-carousel-slide video { width: 100%; max-height: 450px; }
.pf-carousel-slide iframe { width: 100%; height: 450px; border: none; }

.pf-car-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.1); color: #fff; font-size: 1.4rem;
  cursor: pointer; transition: var(--pf-transition); z-index: 2;
}
.pf-car-btn:hover { background: rgba(255,255,255,.25); }
.pf-car-prev { left: 12px; }
.pf-car-next { right: 12px; }

.pf-car-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.pf-car-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.35); cursor: pointer; padding: 0;
  transition: var(--pf-transition);
}
.pf-car-dot.active { background: #fff; width: 22px; border-radius: 10px; }

/* ── CS Body (Dual Column) ── */
.pf-cs-body { padding: 28px 36px 32px; }
.pf-cs-body-with-sidebar {
  display: grid; grid-template-columns: 1fr 260px; gap: 32px; align-items: start;
}
.pf-cs-main-content { min-width: 0; }
.pf-cs-sidebar {
  position: sticky; top: 80px; background: var(--pf-stats-bg);
  border-radius: var(--pf-radius); padding: 24px 20px;
  border: 1px solid var(--pf-card-border);
}
.pf-cs-sidebar h3 {
  font-size: .95rem; font-weight: 700; color: var(--pf-text);
  margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--pf-card-border);
}

.pf-cs-section { margin-bottom: 28px; }
.pf-cs-section h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--pf-text);
  margin: 0 0 12px; display: flex; align-items: center; gap: 8px;
}
.pf-cs-icon { font-size: 1.2rem; }
.pf-cs-text { font-size: .9rem; color: var(--pf-text-soft); line-height: 1.9; }
.pf-cs-section.pf-cs-challenge {
  border-right: 3px solid #EF4444; padding-right: 16px;
}
[dir="rtl"] .pf-cs-section.pf-cs-challenge { border-right: none; border-left: 3px solid #EF4444; padding-right: 0; padding-left: 16px; }
.pf-cs-section.pf-cs-solution {
  border-right: 3px solid var(--pf-accent); padding-right: 16px;
}
[dir="rtl"] .pf-cs-section.pf-cs-solution { border-right: none; border-left: 3px solid var(--pf-accent); padding-right: 0; padding-left: 16px; }

.pf-cs-pills { display: flex; flex-wrap: wrap; gap: 8px; }

/* Metrics in sidebar */
.pf-cs-sidebar .pf-metric-card {
  background: var(--pf-card-bg); border-radius: 8px;
  padding: 14px; margin-bottom: 10px; border: 1px solid var(--pf-card-border);
  text-align: center;
}
.pf-metric-big {
  display: block; font-size: 1.6rem; font-weight: 800; color: var(--pf-accent);
  margin-bottom: 4px;
}
.pf-cs-sidebar .pf-metric-card span { font-size: .78rem; color: var(--pf-text-soft); }

/* Quote */
.pf-cs-quote {
  background: var(--pf-stats-bg); border-radius: var(--pf-radius-sm);
  padding: 24px 28px; margin: 24px 0; font-size: .95rem;
  color: var(--pf-text); line-height: 1.9; border: none;
  border-right: 4px solid var(--pf-accent); font-style: italic;
}
[dir="rtl"] .pf-cs-quote { border-right: none; border-left: 4px solid var(--pf-accent); }
.pf-cs-quote span { color: var(--pf-accent); font-size: 1.3rem; }

/* Related */
.pf-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.pf-related-card {
  background: var(--pf-stats-bg); border-radius: var(--pf-radius-sm);
  padding: 16px; cursor: pointer; border: 1px solid transparent;
  transition: var(--pf-transition);
}
.pf-related-card:hover { border-color: var(--pf-card-hover-border); transform: translateY(-2px); }
.pf-related-card h4 { font-size: .88rem; font-weight: 700; color: var(--pf-text); margin: 0 0 4px; }
.pf-related-card p {
  font-size: .78rem; color: var(--pf-text-soft); margin: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* CTA in modal */
.pf-cs-cta {
  display: flex; gap: 12px; flex-wrap: wrap; padding: 20px 0 0;
  border-top: 1px solid var(--pf-card-border); margin-top: 8px;
}
.pf-cta-pdf { background: transparent; color: var(--pf-accent); border: 1.5px solid var(--pf-accent); }

/* ═══════ LIGHTBOX ═══════ */
.pf-lightbox {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.pf-lightbox.open { opacity: 1; visibility: visible; }
.pf-lightbox-overlay { position: absolute; inset: 0; cursor: zoom-out; }
.pf-lightbox-close {
  position: absolute; top: 16px; right: 16px; z-index: 3010;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.1); color: #fff; font-size: 1.3rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.pf-lightbox-close:hover { background: rgba(239,68,68,0.7); }
.pf-lightbox-prev, .pf-lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3010;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.1); color: #fff; font-size: 1.6rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.pf-lightbox-prev:hover, .pf-lightbox-next:hover { background: rgba(255,255,255,.25); }
.pf-lightbox-prev { left: 16px; }
.pf-lightbox-next { right: 16px; }
.pf-lightbox-content {
  position: relative; z-index: 3005; display: flex; flex-direction: column;
  align-items: center; cursor: default;
}
.pf-lightbox-img {
  max-width: 90vw; max-height: 75vh; object-fit: contain;
  border-radius: 4px; box-shadow: 0 8px 40px rgba(0,0,0,.3);
}
.pf-lightbox-caption {
  color: rgba(255,255,255,.7); font-size: .88rem; margin-top: 12px;
  text-align: center; max-width: 700px;
}
.pf-lightbox-counter { color: rgba(255,255,255,.4); font-size: .78rem; margin-top: 6px; }

/* ═══════ ANIMATIONS ═══════ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0ms; }
.reveal-d2 { transition-delay: 80ms; }
.reveal-d3 { transition-delay: 160ms; }
.reveal-d4 { transition-delay: 240ms; }
.reveal-d5 { transition-delay: 320ms; }
.reveal-d6 { transition-delay: 400ms; }

/* ═══════ RESPONSIVE ═══════ */
@media (min-width: 1024px) {
  .pf-hero-decor { display: block; }
}
@media (max-width: 1023px) {
  :root { --pf-hero-title: 1.8rem; --pf-section-title: 1.4rem; --pf-section-gap: 56px; }
  .pf-featured-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-card[data-type="detailed"] { /* uniform */ }
  .pf-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-hero { padding: 36px 20px 0; }
  .pf-hero-row { grid-template-columns: 1fr; gap: 32px; direction: rtl; }
  .pf-hero-copy { text-align: center; }
  .pf-hero-subtitle { margin: 16px auto 20px; }
  .pf-hero-shot { margin: 0 auto; }
  .pf-modal-inner { max-width: 95vw; }
  .pf-cs-body-with-sidebar { grid-template-columns: 1fr; }
  .pf-cs-sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pf-related-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-cta-box { padding: 36px 28px; }
  /* تبلت: عنوان CTA در یک خط با فونت کمی فشرده‌تر */
  .pf-cta-box h2.pf-cta-title { white-space: nowrap; font-size: 1.25rem; }
  /* لوگوهای شرکتها در تبلت: ستون باریکتر تا کنار CTA جا بگیرد و بیرون نزند */
  .pf-cta-layout { grid-template-columns: minmax(150px, 1fr) 2fr; gap: 24px; }
  .pf-cta-clients-viewport { max-width: 160px; height: 200px; }
  .pf-cta-client-logo { width: 60px; height: 60px; }
  .pf-cta-client-logo img { max-width: 46px; max-height: 46px; }
  .pf-cta-box h2 { font-size: 1.4rem; }
  .pf-cta-btn { padding: 12px 20px; font-size: .9rem; }
}

@media (max-width: 767px) {
  :root { --pf-hero-title: 1.5rem; --pf-section-title: 1.25rem; --pf-section-gap: 48px; --pf-card-gap: 16px; }
  .pf-hero { padding: 32px 16px 0; }
  .pf-hero-title { font-size: 1.75rem; line-height: 1.2; }
  .pf-hero-subtitle { font-size: .95rem; margin: 12px auto 16px; }
  .pf-hero-shot { max-width: 100%; margin: 0 auto 8px; }
  .pf-hero-shot-3d { transform: rotateX(12deg); }
  .pf-hero-shot-skew { transform: skewX(-6deg); }
  .pf-btn-hero { justify-content: center; }
  .pf-filter-bar { flex-direction: column; align-items: stretch; }
  .pf-search-input { width: 100%; }
  .pf-search-input:focus { width: 100%; }
  .pf-sort-view { justify-content: space-between; }
  .pf-featured-grid { grid-template-columns: 1fr; }
  .pf-grid { grid-template-columns: 1fr; }
  .pf-card[data-type="detailed"] { /* no span — uniform */ }
  .pf-trust-grid { grid-template-columns: 1fr; }
  .pf-mid-cta-box { flex-direction: column; text-align: center; padding: 28px 20px; }
  .pf-cta-box { padding: 32px 20px; }
  .pf-cta-box h2 { font-size: 1.3rem; }
  /* موبایل: عنوان CTA تک‌خط با فونت مقیاس‌پذیر (کوچک‌تر تا در عرض جا شود) */
  .pf-cta-box h2.pf-cta-title { white-space: nowrap; font-size: clamp(1rem, 5vw, 1.25rem); }
  .pf-cta-actions { flex-direction: column; align-items: stretch; }
  .pf-cta-btn { justify-content: center; width: 100%; white-space: normal; }
  /* موبایل: لوگوها افقی روی محتوای CTA */
  .pf-cta-layout { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .pf-cta-clients { order: -1; border: none; padding: 0; }
  .pf-cta-clients-viewport { max-width: 100%; height: auto; }
  .pf-cta-clients-track { flex-direction: row; width: max-content; height: auto; }
  .pf-cta-client-logo { width: 56px; height: 56px; }
  .pf-cta-client-logo img { max-width: 44px; max-height: 44px; }
  .pf-modal { padding: 16px 8px 56px; }
  .pf-modal-inner { border-radius: var(--pf-radius-sm); }
  .pf-cs-header { padding: 24px 20px 16px; }
  .pf-cs-body { padding: 20px; }
  .pf-cs-sidebar { grid-template-columns: 1fr; }
  .pf-related-grid { grid-template-columns: 1fr; }
  .pf-carousel { height: 260px; }
  .pf-carousel-slide { max-height: 260px; }
  .pf-carousel-slide img, .pf-carousel-slide video { max-height: 260px; }
  .pf-carousel-slide iframe { height: 260px; }
  .pf-lightbox-prev { left: 8px; width: 36px; height: 36px; }
  .pf-lightbox-next { right: 8px; width: 36px; height: 36px; }
  .pf-lightbox-close { top: 8px; right: 8px; width: 36px; height: 36px; }
}

/* ─── فوق‌باریک: < 360px ─── */
@media (max-width: 359px) {
  .pf-cta-box { padding: 28px 14px; }
  .pf-cta-client-logo { width: 48px; height: 48px; padding: 6px; }
  .pf-cta-client-logo img { max-width: 38px; max-height: 38px; }
}


/* ═══════════════════════════════════════════════════════════════════════
   PORTFOLIO ULTRA-POLISH: COMPACT CARDS & MOBILE CTA SINGLE-LINE ENGINE
   ═══════════════════════════════════════════════════════════════════════ */

/* ── ۱. فشرده‌سازی و اصلاح متریال متریک کارت‌ها (30% و ±0.5°C) ── */
.pf-card-metric {
  margin: 8px 0 !important;
  padding: 8px 12px !important;
  background: rgba(13, 24, 42, 0.85) !important;
  border: 1px solid rgba(94, 234, 212, 0.22) !important;
  border-right: 3px solid var(--za-teal, #5EEAD4) !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
}

[dir="ltr"] .pf-card-metric {
  border-right: 1px solid rgba(94, 234, 212, 0.22) !important;
  border-left: 3px solid var(--za-teal, #5EEAD4) !important;
}

.pf-card-metric .pf-metric-val {
  font-size: 1.15rem !important;
  font-weight: 850 !important;
  color: #5EEAD4 !important;
  white-space: nowrap !important;
  letter-spacing: 0.02em !important;
  font-variant-numeric: tabular-nums !important;
  direction: ltr !important;
  display: inline-block !important;
}

.pf-card-metric .pf-metric-lbl {
  font-size: 0.76rem !important;
  color: #CBD5E1 !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  flex: 1 1 auto !important;
}

/* ── ۲. فشرده‌سازی شکیل و ارگونومیک کل کارت نمونه‌کار ── */
.pf-card {
  border-radius: 12px !important;
  background: rgba(13, 22, 38, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.pf-card:hover {
  border-color: rgba(94, 234, 212, 0.45) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

.pf-card-img-wrap {
  aspect-ratio: 16 / 9 !important;
  border-radius: 11px 11px 0 0 !important;
}

.pf-card-body {
  padding: 12px 14px 10px !important;
  gap: 6px !important;
}

.pf-card-tags {
  display: flex !important;
  gap: 4px !important;
  flex-wrap: wrap !important;
  margin-bottom: 2px !important;
}

.pf-tag-service,
.pf-tag-platform,
.pf-tag-industry {
  padding: 2px 6px !important;
  font-size: 0.68rem !important;
  font-weight: 750 !important;
  border-radius: 5px !important;
  line-height: 1.3 !important;
}

.pf-card-title {
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  margin: 2px 0 4px !important;
  color: #FFFFFF !important;
}

.pf-card-summary {
  font-size: 0.77rem !important;
  line-height: 1.6 !important;
  color: #94A3B8 !important;
  margin: 0 0 4px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.pf-tech-pills {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  margin: 4px 0 !important;
}

.pf-tech-pills .pf-pill {
  padding: 2px 6px !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.pf-tech-pills .pf-pill-more {
  padding: 2px 6px !important;
  font-size: 0.68rem !important;
  font-weight: 750 !important;
  color: #5EEAD4 !important;
  border-radius: 4px !important;
}

.pf-card-footer {
  margin-top: auto !important;
  padding-top: 8px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 0.72rem !important;
  color: #64748B !important;
}

.pf-card-cta {
  font-weight: 750 !important;
  color: #5EEAD4 !important;
  font-size: 0.74rem !important;
}

/* ── ۳. نمایش کامل عنوان نقش مهندس در صفحه جزئیات و مودال بدون برش ── */
.pf-cs-meta,
.pf-single-section .pf-cs-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
}

.pf-cs-meta .pf-pill,
.pf-cs-meta-item,
.pf-single-section .pf-cs-meta .pf-pill {
  white-space: normal !important; /* جلوگیری از بریدگی و امکان پیچش زیبا در یک یا دو سطر */
  word-break: normal !important;
  overflow-wrap: break-word !important;
  max-width: 100% !important;
  line-height: 1.5 !important;
  font-size: 0.78rem !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* ===== END {p} ===== */

/* ===== BEGIN css/portfolio-mobile-compact.css ===== */
/* ═══════════════════════════════════════════════════════════════════
   ZamaniAuto Portfolio — Mobile & Tablet Ultra-Responsive & Clean Suite
   بهینه‌سازی کامل ریسپانسیو، رفع تداخل نوار فیلتر و جستجو، و جاستیفای متون
   ═══════════════════════════════════════════════════════════════════ */

/* ── ۱. قواعد عمومی متن و تراز Justify برای خوانش ارگونومیک ── */
.pf-hero-subtitle {
  text-align: justify !important;
  text-justify: inter-word !important;
  text-align-last: center !important;
}

.pf-card-summary,
.pf-featured-summary,
.pf-cs-summary,
.pf-cs-text,
.pf-cs-desc,
.pf-single-desc,
.pf-cs-challenge,
.pf-cs-solution,
.pf-cs-result,
.pf-modal-body p {
  text-align: justify !important;
  text-justify: inter-word !important;
  text-rendering: optimizeLegibility !important;
}

[dir="ltr"] .pf-card-summary,
[dir="ltr"] .pf-featured-summary,
[dir="ltr"] .pf-cs-summary,
[dir="ltr"] .pf-cs-text {
  text-align: left !important;
}

/* ── ۲. ریسپانسیو تبلت و صفحات زیر ۱۰۲۴ پیکسل ── */
@media (max-width: 1024px) {
  /* تنظیم کانتینر بدون سرریز افقی */
  .pf-container {
    box-sizing: border-box !important;
  }

  /* هیرو سکشن */
  .pf-hero {
    padding: 28px 16px 12px !important;
  }
  .pf-hero-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  .pf-hero-copy {
    text-align: center !important;
    max-width: 100% !important;
  }
  .pf-hero-title {
    font-size: clamp(1.45rem, 4vw, 2rem) !important;
    line-height: 1.3 !important;
    margin: 0 auto 12px !important;
  }
  .pf-hero-subtitle {
    font-size: 0.88rem !important;
    line-height: 1.75 !important;
    max-width: 92% !important;
    margin: 0 auto 16px !important;
  }
  .pf-hero-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: center !important;
  }
  .pf-btn-hero {
    min-height: 40px !important;
    padding: 8px 16px !important;
    font-size: 0.84rem !important;
    font-weight: 750 !important;
    border-radius: 9px !important;
  }
  .pf-hero-shot {
    margin: 0 auto !important;
    max-width: 480px !important;
    width: 100% !important;
  }

  /* ── رفع قطعی تداخل و همپوشانی نوار فیلتر و جستجو ── */
  .pf-filter-section {
    position: relative !important; /* لغو sticky در تبلت و موبایل برای جلوگیری از افتادن زیر هدر سایت */
    top: auto !important;
    z-index: 10 !important;
    padding: 16px 0 !important;
    background: #0A1628 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .pf-filter-row-top {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    margin-bottom: 14px !important;
  }

  /* باکس سرچ در ردیف مجزا و بدون تداخل */
  .pf-search-wrap {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    position: relative !important;
  }

  .pf-search-wrap input.pf-search-input {
    width: 100% !important;
    max-width: 100% !important;
    height: 42px !important;
    font-size: 0.86rem !important;
    padding: 10px 16px 10px 40px !important;
    border-radius: 10px !important;
    background: rgba(17, 28, 46, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-sizing: border-box !important;
  }

  .pf-search-icon {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 2 !important;
  }

  /* تب‌های فیلتر خدمات در ردیف مجزا با اسکرول افقی روان */
  .pf-filter-tabs-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .pf-filter-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 4px 2px 6px !important;
  }

  .pf-filter-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .pf-filter-tab {
    flex-shrink: 0 !important;
    padding: 8px 14px !important;
    font-size: 0.8rem !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
  }

  /* ردیف پایین فیلترها (صنعت، پلتفرم و مرتب‌سازی) */
  .pf-filter-row-bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding-top: 12px !important;
  }

  .pf-facet-selects {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .pf-select-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;
    width: 100% !important;
  }

  .pf-select-group label {
    font-size: 0.74rem !important;
    color: var(--za-text-muted, #94A3B8) !important;
  }

  .pf-sort-select {
    width: 100% !important;
    height: 38px !important;
    font-size: 0.82rem !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    background: #111C2E !important;
    box-sizing: border-box !important;
  }

  .pf-sort-view {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 4px !important;
  }

  .pf-results-info {
    font-size: 0.8rem !important;
    white-space: nowrap !important;
  }

  /* بخش پروژه‌های ویژه */
  .pf-featured-section {
    padding: 24px 0 12px !important;
  }
  .pf-featured-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .pf-featured-body {
    padding: 16px !important;
  }
  .pf-featured-title {
    font-size: 1.05rem !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
  }
  .pf-featured-summary {
    font-size: 0.82rem !important;
    line-height: 1.7 !important;
    margin-bottom: 12px !important;
  }

  /* گرید اصلی پروژه‌ها */
  .pf-grid-section {
    padding: 20px 0 40px !important;
  }
  .pf-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 16px !important;
  }
  .pf-card-body {
    padding: 14px 16px !important;
  }
  .pf-card-title {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
  }
  .pf-card-summary {
    font-size: 0.82rem !important;
    line-height: 1.7 !important;
    margin-bottom: 10px !important;
  }

  /* متدولوژی ۵ گام */
  .pf-method-track {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .pf-method-step {
    padding: 14px !important;
  }

  /* بنر اعتماد */
  .pf-trust-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .pf-trust-item {
    padding: 12px 14px !important;
    font-size: 0.8rem !important;
  }

  /* مودال و جزئیات پروژه */
  .pf-modal-inner {
    width: 95% !important;
    max-height: 92vh !important;
    border-radius: 14px !important;
  }
  .pf-cs-body {
    padding: 16px !important;
    gap: 16px !important;
  }
  .pf-cs-title {
    font-size: 1.25rem !important;
    line-height: 1.4 !important;
  }
  .pf-cs-summary {
    font-size: 0.88rem !important;
    line-height: 1.8 !important;
  }
}

/* ── ۳. موبایل‌ها (کوچک‌تر از ۶۸۰ پیکسل) ── */
@media (max-width: 680px) {

  .pf-hero {
    padding: 20px var(--za-gutter, 16px) 8px !important;
  }
  .pf-hero-title {
    font-size: clamp(1.3rem, 5.5vw, 1.65rem) !important;
  }
  .pf-hero-subtitle {
    font-size: 0.82rem !important;
    line-height: 1.7 !important;
    max-width: 100% !important;
  }

  .pf-facet-selects {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .pf-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .pf-method-track {
    grid-template-columns: 1fr !important;
  }

  .pf-trust-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .pf-mid-cta-box {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center !important;
    padding: 16px 14px !important;
    gap: 12px !important;
  }

  .pf-mid-cta-box h3 {
    font-size: 1rem !important;
    margin: 0 !important;
  }

  .pf-mid-cta-box p {
    font-size: 0.76rem !important;
    text-align: justify !important;
  }

  .pf-mid-cta-box a {
    width: 100% !important;
    justify-content: center !important;
  }

  .pf-single-gallery-grid {
    grid-template-columns: 1fr !important;
  }

  .pf-metrics-table {
    grid-template-columns: 1fr !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════════
   PORTFOLIO ULTRA-POLISH: COMPACT CARDS & MOBILE CTA SINGLE-LINE ENGINE
   ═══════════════════════════════════════════════════════════════════════ */

/* ── ۱. فشرده‌سازی و اصلاح متریال متریک کارت‌ها (30% و ±0.5°C) ── */

/* ── ۲. فشرده‌سازی شکیل و ارگونومیک کل کارت نمونه‌کار ── */

/* ── ۳. نمایش کامل عنوان نقش مهندس در صفحه جزئیات و مودال بدون برش ── */

/* ===== END {p} ===== */

/* ===== BEGIN css/portfolio-v6.css ===== */
/* ═══════════════════════════════════════════════════════════════════════
   ZamaniAuto Portfolio v6.2 — Dark Theme & Contrast Harmony
   کاملاً هماهنگ با تم دارک اصلی سایت (za-theme.css / Navy & Teal)
   ═══════════════════════════════════════════════════════════════════════ */

html, body {
  overflow-x: hidden;
}

body,
.pf-hero,
.pf-expertise,
.pf-filter-section,
.pf-featured-section,
.pf-grid-section,
.pf-method-section,
.pf-trust-section,
.pf-single-section,
.pf-card,
.pf-featured-card {
  font-family: 'Vazirmatn', 'IRANSans', Tahoma, Arial, sans-serif !important;
}

/* ── Base Theme Colors ── */
body {
  background-color: var(--za-page-bg, #0A1628) !important;
  color: var(--za-text, #F1F5F9) !important;
}

/* ── Hero Section ── */
.pf-hero {
  background: var(--za-navy, #0A1628) !important;
  color: var(--za-text, #F1F5F9) !important;
}

.pf-hero-row {
  width: min(100%, var(--za-content, 1092px));
  max-width: var(--za-content, 1092px);
  min-width: 0;
  box-sizing: border-box;
}

.pf-hero-copy {
  min-width: 0;
}

.pf-hero-kicker {
  margin: 0 0 12px;
  color: var(--za-teal, #5EEAD4) !important;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.pf-hero-title {
  color: #FFFFFF !important;
  font-weight: 800;
  text-wrap: balance;
}

.pf-hero-title span {
  background: none !important;
  -webkit-text-fill-color: initial !important;
  color: var(--za-teal, #5EEAD4) !important;
}

.pf-hero-subtitle {
  color: var(--za-text-sub, #CBD5E1) !important;
  max-width: 62ch;
  line-height: 1.8;
}

.pf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.pf-btn-hero {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 700;
  padding: 10px 24px;
}

.pf-btn-hero-primary {
  background: linear-gradient(135deg, #0D7377, #14A3A8) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(94, 234, 212, 0.4) !important;
  box-shadow: 0 4px 14px rgba(13, 115, 119, 0.3);
}

.pf-btn-hero-primary:hover {
  background: linear-gradient(135deg, #14A3A8, #1AB5BB) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(94, 234, 212, 0.4);
}

.pf-btn-hero-secondary {
  color: var(--za-teal, #5EEAD4) !important;
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(94, 234, 212, 0.3) !important;
  backdrop-filter: blur(8px);
}

.pf-btn-hero-secondary:hover {
  border-color: var(--za-teal, #5EEAD4) !important;
  background: rgba(94, 234, 212, 0.1) !important;
  transform: translateY(-2px);
}

.pf-hero-shot-card {
  background: #0E1E38 !important;
  border: 1px solid rgba(94, 234, 212, 0.25) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* ── Expertise Bar ── */
.pf-expertise {
  border-block: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: var(--za-surface-alt, #111C2E) !important;
}

.pf-expertise .pf-container {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.pf-expertise .pf-container::-webkit-scrollbar {
  display: none;
}

.pf-expertise span {
  flex: 0 0 auto;
  padding: 14px 20px;
  color: var(--za-text-sub, #CBD5E1) !important;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.pf-expertise span + span {
  border-inline-start: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ── Filters Section ── */
.pf-filter-section {
  background: var(--za-navy, #0A1628) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 20px 0;
}

.pf-filter-bar {
  align-items: flex-end;
  gap: 12px;
}

.pf-facet-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pf-facet-selects label {
  display: grid;
  gap: 4px;
  color: var(--za-text-muted, #94A3B8) !important;
  font-size: 0.75rem;
  font-weight: 700;
}

.pf-facet-selects select,
.pf-sort-select,
.pf-search-input {
  background: #111C2E !important;
  color: #F1F5F9 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px;
  font-family: inherit;
}

.pf-search-input {
  padding: 10px 14px 10px 36px;
}

.pf-search-input:focus,
.pf-sort-select:focus,
.pf-facet-selects select:focus {
  border-color: var(--za-teal, #5EEAD4) !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(94, 234, 212, 0.25);
}

.pf-filter-tab {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--za-text-sub, #CBD5E1) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px;
}

.pf-filter-tab:hover {
  background: rgba(94, 234, 212, 0.1) !important;
  color: var(--za-teal, #5EEAD4) !important;
  border-color: rgba(94, 234, 212, 0.3) !important;
}

.pf-filter-tab.active {
  background: linear-gradient(135deg, #0D7377, #14A3A8) !important;
  color: #FFFFFF !important;
  border-color: #5EEAD4 !important;
}

.pf-view-btn {
  background: #111C2E !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: var(--za-text-muted, #94A3B8) !important;
}

.pf-view-btn.active {
  background: var(--za-teal, #5EEAD4) !important;
  color: #0A1628 !important;
  border-color: var(--za-teal, #5EEAD4) !important;
  font-weight: 800;
}

.pf-results-info {
  color: var(--za-text-muted, #94A3B8) !important;
}

.pf-results-info span {
  color: var(--za-teal, #5EEAD4) !important;
}

/* ── Section Titles ── */
.pf-section-header h2 {
  color: #FFFFFF !important;
}

.pf-section-header h2 span {
  color: var(--za-teal, #5EEAD4) !important;
}

.pf-section-tag {
  color: var(--za-yellow, #FBBF24) !important;
  background: rgba(251, 191, 36, 0.1) !important;
  border: 1px solid rgba(251, 191, 36, 0.25);
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 700;
}

/* ── Cards (Featured & Grid) ── */
.pf-featured-section,
.pf-grid-section {
  background: var(--za-page-bg, #0A1628) !important;
}

.pf-card,
.pf-featured-card {
  background: var(--za-surface-card, rgba(15, 23, 42, 0.88)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.pf-card:hover,
.pf-featured-card:hover {
  border-color: rgba(94, 234, 212, 0.4) !important;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5) !important;
}

.pf-card-title,
.pf-featured-title {
  color: #FFFFFF !important;
  font-weight: 750;
  text-wrap: balance;
}

.pf-card-summary,
.pf-featured-summary {
  color: var(--za-text-sub, #CBD5E1) !important;
  line-height: 1.7;
}

.pf-tag-service {
  background: rgba(13, 115, 119, 0.25) !important;
  color: var(--za-teal, #5EEAD4) !important;
  border: 1px solid rgba(94, 234, 212, 0.2) !important;
}

.pf-tag-industry {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--za-text-sub, #CBD5E1) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.pf-tag-platform {
  background: rgba(251, 191, 36, 0.12) !important;
  border: 1px solid rgba(251, 191, 36, 0.35) !important;
  color: #FBBF24 !important;
}

.pf-pill {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--za-text-sub, #CBD5E1) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.pf-pill-more {
  color: var(--za-teal, #5EEAD4) !important;
}

.pf-card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--za-text-muted, #94A3B8) !important;
}

.pf-card-cta {
  color: var(--za-teal, #5EEAD4) !important;
}

/* ── Engineering Workflow Section (Method) ── */
.pf-method-section {
  padding: 64px 0;
  background: #0D192D !important;
  border-block: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.pf-method-section .pf-container {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(420px, 1.2fr);
  gap: 48px 64px;
}

.pf-method-head h2 {
  color: #FFFFFF !important;
}

.pf-method-head > p:last-child {
  color: var(--za-text-sub, #CBD5E1) !important;
}

.pf-method-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pf-method-steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.pf-method-steps b {
  color: var(--za-teal, #5EEAD4) !important;
  font-size: 0.95rem;
  font-family: monospace;
}

.pf-method-steps span {
  color: #F1F5F9 !important;
  font-weight: 700;
}

.pf-deliverables {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.pf-deliverables h3 {
  color: #FFFFFF !important;
}

.pf-deliverables p {
  color: var(--za-text-sub, #CBD5E1) !important;
}

/* ── Mid CTA & Trust Section ── */
.pf-mid-cta {
  background: transparent !important;
}

.pf-mid-cta-box {
  background: linear-gradient(135deg, rgba(13, 115, 119, 0.35), rgba(15, 23, 42, 0.85)) !important;
  border: 1px solid rgba(94, 234, 212, 0.3) !important;
  color: #FFFFFF !important;
  border-radius: 14px;
}

.pf-mid-cta-box h3 {
  color: #FFFFFF !important;
}

.pf-mid-cta-box p {
  color: var(--za-text-sub, #CBD5E1) !important;
}

.pf-mid-cta-box a {
  background: var(--za-teal, #5EEAD4) !important;
  color: #0A1628 !important;
  font-weight: 800;
  border-radius: 8px;
}

.pf-trust-section {
  background: var(--za-page-bg, #0A1628) !important;
}

.pf-trust-item {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--za-text-sub, #CBD5E1) !important;
  border-radius: 10px;
}

.pf-trust-icon {
  border: 1px solid rgba(94, 234, 212, 0.25) !important;
  background: rgba(13, 115, 119, 0.2) !important;
  color: var(--za-teal, #5EEAD4) !important;
}

/* ── Dedicated Project View & Modal ── */
.pf-single-section {
  background: var(--za-page-bg, #0A1628) !important;
  color: var(--za-text, #F1F5F9) !important;
}

.pf-cs-section.pf-cs-challenge,
.pf-cs-section.pf-cs-solution,
.pf-card-metric {
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px;
  color: var(--za-text-sub, #CBD5E1) !important;
}

.pf-cs-quote {
  background: rgba(13, 115, 119, 0.12) !important;
  border: 1px solid rgba(94, 234, 212, 0.25) !important;
  color: #F1F5F9 !important;
  border-radius: 10px;
}

.pf-single-metrics {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px;
}

.pf-single-metrics h2 {
  color: #FFFFFF !important;
}

.pf-single-metrics strong {
  color: var(--za-teal, #5EEAD4) !important;
}

.pf-single-metrics span {
  color: var(--za-text-muted, #94A3B8) !important;
}

.pf-modal-inner {
  background: #0F172A !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #F1F5F9 !important;
}

/* ── Mobile & Responsive Tuning ── */
@media (max-width: 1023px) {
  .pf-hero-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pf-hero-subtitle {
    margin-inline: auto;
  }
  .pf-hero-actions {
    justify-content: center;
  }
  .pf-hero-shot {
    margin-inline: auto;
    width: min(100%, 640px);
  }
}

@media (max-width: 680px) {
  .pf-hero {
    padding-inline: 16px !important;
  }
  .pf-hero-title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    line-height: 1.25;
  }
  .pf-hero-shot {
    display: none;
  }
  .pf-method-section .pf-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pf-facet-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .pf-facet-selects select {
    min-width: 0;
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   Modern Interactive Expertise Strip (ارتقای اسکرین‌شات نوار تخصص‌ها)
   ═══════════════════════════════════════════════════════════════════════ */

.pf-expertise,
.pf-expertise-bar {
  background: #081220 !important;
  border-block: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 14px 0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 24px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 5;
}

.pf-expertise-track {
  display: flex;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px;
}

.pf-expertise-track::-webkit-scrollbar {
  display: none;
}

.pf-exp-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex: 0 0 auto;
  min-width: 150px;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: right;
  position: relative;
  overflow: hidden;
}

[dir="ltr"] .pf-exp-item {
  text-align: left;
}

.pf-exp-item::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: transparent;
  transition: background 0.25s ease;
}

.pf-exp-item:hover {
  background: rgba(20, 32, 54, 0.95) !important;
  border-color: rgba(94, 234, 212, 0.35) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 12px rgba(94, 234, 212, 0.1);
}

.pf-exp-item:hover::before {
  background: var(--za-teal, #5EEAD4);
}

.pf-exp-icon {
  font-size: 1.15rem;
  margin-bottom: 4px;
  display: inline-block;
}

.pf-exp-title {
  color: #F1F5F9 !important;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.3;
}

.pf-exp-item:hover .pf-exp-title {
  color: var(--za-teal, #5EEAD4) !important;
}

.pf-exp-sub {
  color: var(--za-text-muted, #94A3B8) !important;
  font-size: 0.72rem;
  margin-top: 2px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .pf-exp-item {
    min-width: 135px;
    padding: 8px 12px;
  }
  .pf-exp-title {
    font-size: 0.82rem;
  }
  .pf-exp-sub {
    font-size: 0.68rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   Fix Filter Bar Layout & Truncation (رفع کامل ناقص‌بودن و فشردگی باکس‌ها)
   ═══════════════════════════════════════════════════════════════════════ */

.pf-filter-section {
  background: var(--za-navy, #0A1628) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 24px 0 !important;
}

.pf-filter-row-top {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-bottom: 16px;
}

.pf-search-wrap {
  position: relative;
  flex: 0 0 280px;
  max-width: 340px;
}

.pf-search-input {
  width: 100% !important;
  box-sizing: border-box;
  padding: 10px 16px 10px 36px !important;
  border-radius: 10px !important;
  font-size: 0.88rem;
  background: rgba(17, 28, 46, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #F1F5F9 !important;
}

.pf-search-input:focus {
  width: 100% !important;
  border-color: var(--za-teal, #5EEAD4) !important;
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.2) !important;
}

.pf-filter-tabs-wrapper {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.pf-filter-tabs {
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(94, 234, 212, 0.2) transparent;
  padding: 4px 2px 8px !important;
  -webkit-overflow-scrolling: touch;
}

.pf-filter-tabs::-webkit-scrollbar {
  height: 4px;
}

.pf-filter-tabs::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

.pf-filter-tabs::-webkit-scrollbar-thumb {
  background: rgba(94, 234, 212, 0.25);
  border-radius: 4px;
}

.pf-filter-tab {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 16px !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  background: rgba(17, 28, 46, 0.8) !important;
  color: var(--za-text-sub, #CBD5E1) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: all 0.2s ease !important;
}

.pf-filter-tab:hover {
  background: rgba(20, 32, 54, 0.95) !important;
  border-color: rgba(94, 234, 212, 0.4) !important;
  color: var(--za-teal, #5EEAD4) !important;
}

.pf-filter-tab.active {
  background: linear-gradient(135deg, #0D7377, #14A3A8) !important;
  color: #FFFFFF !important;
  border-color: #5EEAD4 !important;
  box-shadow: 0 4px 14px rgba(13, 115, 119, 0.4) !important;
}

.pf-tab-badge {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #FFFFFF !important;
  padding: 1px 6px !important;
  border-radius: 10px !important;
  font-size: 0.72rem !important;
}

/* ── Bottom Row (Dropdowns & View Mode) ── */
.pf-filter-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pf-facet-selects {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}

.pf-select-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pf-select-group label {
  color: var(--za-text-muted, #94A3B8) !important;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.pf-sort-select {
  padding: 8px 14px !important;
  border-radius: 8px !important;
  background: #111C2E !important;
  color: #F1F5F9 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  min-height: 40px;
}

.pf-sort-view {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

.pf-view-toggle {
  display: flex;
  gap: 4px;
  background: rgba(17, 28, 46, 0.9);
  padding: 2px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pf-view-btn {
  width: 34px !important;
  height: 34px !important;
  border-radius: 6px !important;
  border: none !important;
  background: transparent !important;
  color: var(--za-text-muted, #94A3B8) !important;
  font-size: 1.1rem !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.pf-view-btn.active {
  background: var(--za-teal, #5EEAD4) !important;
  color: #0A1628 !important;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(94, 234, 212, 0.35);
}

.pf-results-info {
  font-size: 0.86rem !important;
  color: var(--za-text-sub, #CBD5E1) !important;
  white-space: nowrap;
}

.pf-results-info span {
  font-weight: 800;
  color: var(--za-teal, #5EEAD4) !important;
  font-size: 1rem;
}

/* ── Responsive adjustments for filters ── */
@media (max-width: 991px) {
  .pf-filter-row-top {
    flex-direction: column;
    align-items: stretch;
  }
  .pf-search-wrap {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .pf-filter-row-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .pf-facet-selects,
  .pf-sort-view {
    justify-content: space-between;
    width: 100%;
  }
  .pf-select-group {
    flex: 1;
  }
  .pf-select-group select {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   Expertise Strip: Full Width Grid (No Horizontal Scroll on Desktop)
   ═══════════════════════════════════════════════════════════════════════ */

.pf-expertise,
.pf-expertise-bar {
  overflow-x: visible !important;
}

.pf-expertise-track {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 8px !important;
  width: 100% !important;
  overflow: visible !important;
  padding: 4px 0 !important;
}

.pf-exp-item {
  min-width: 0 !important;
  width: 100% !important;
  padding: 10px 8px !important;
  text-align: center !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

[dir="ltr"] .pf-exp-item {
  text-align: center !important;
}

.pf-exp-icon {
  font-size: 1.25rem !important;
  margin-bottom: 4px !important;
}

.pf-exp-title {
  font-size: 0.84rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}

.pf-exp-sub {
  font-size: 0.68rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  margin-top: 2px !important;
}

@media (max-width: 1199px) and (min-width: 901px) {
  .pf-expertise-track {
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 6px !important;
  }
  .pf-exp-item {
    padding: 8px 4px !important;
  }
  .pf-exp-title {
    font-size: 0.78rem !important;
  }
  .pf-exp-sub {
    font-size: 0.64rem !important;
  }
}

@media (max-width: 900px) and (min-width: 601px) {
  .pf-expertise-track {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
  }
}

@media (max-width: 600px) {
  .pf-expertise-track {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .pf-exp-item:last-child {
    grid-column: span 2 !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   Case Study & Single Project Typography & Engineering Layout
   ═══════════════════════════════════════════════════════════════════════ */

.pf-single-section {
  background: var(--za-page-bg, #0A1628) !important;
  color: var(--za-text, #F1F5F9) !important;
  font-family: 'Vazirmatn', Tahoma, sans-serif !important;
}

.pf-cs-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.pf-cs-section {
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 24px 28px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.pf-cs-section h3 {
  font-size: 1.25rem !important;
  color: #FFFFFF !important;
  margin: 0 0 16px !important;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
}

.pf-cs-section div {
  font-size: 0.96rem !important;
  line-height: 1.95 !important;
  color: var(--za-text-sub, #CBD5E1) !important;
}

.pf-single-tech {
  background: rgba(15, 23, 42, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 20px 24px !important;
  margin: 28px 0 !important;
}

.pf-single-tech h2 {
  font-size: 1.15rem !important;
  color: #FFFFFF !important;
  margin: 0 0 14px !important;
  font-weight: 800;
}

.pf-single-metrics {
  background: linear-gradient(180deg, rgba(17, 28, 46, 0.95) 0%, rgba(13, 22, 38, 0.9) 100%) !important;
  border: 1px solid rgba(94, 234, 212, 0.2) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.pf-single-metrics h2 {
  font-size: 1.15rem !important;
  color: #FFFFFF !important;
  margin: 0 0 16px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
  font-weight: 800;
}

.pf-single-metrics strong {
  color: var(--za-teal, #5EEAD4) !important;
  font-size: 1.6rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em;
}

.pf-single-metrics span {
  color: var(--za-text-sub, #CBD5E1) !important;
  font-size: 0.84rem !important;
  line-height: 1.6;
}

.pf-single-metrics > div {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding: 16px 0 !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   Enhanced Recorded Results Table & Spacing (ارتقای شیک و مدرن جدول نتایج)
   ═══════════════════════════════════════════════════════════════════════ */

/* رعایت استاندارد فاصله خطوط و پاراگراف‌ها در بدنه پروژه */
.pf-cs-section div,
.pf-cs-section p {
  line-height: 2.1 !important;
  margin-bottom: 14px !important;
  color: var(--za-text-sub, #CBD5E1) !important;
  letter-spacing: 0.01em;
}

.pf-cs-section div:last-child,
.pf-cs-section p:last-child {
  margin-bottom: 0 !important;
}

/* جدول شاخص‌ها و نتایج ثبت‌شده */
.pf-single-metrics {
  background: linear-gradient(145deg, rgba(17, 28, 46, 0.95) 0%, rgba(10, 18, 32, 0.98) 100%) !important;
  border: 1px solid rgba(94, 234, 212, 0.22) !important;
  border-radius: 16px !important;
  padding: 24px 20px !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  position: sticky;
  top: 96px;
}

.pf-metrics-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pf-metrics-badge {
  background: rgba(13, 115, 119, 0.35);
  color: var(--za-teal, #5EEAD4);
  border: 1px solid rgba(94, 234, 212, 0.3);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  font-family: monospace;
}

.pf-single-metrics h2 {
  font-size: 1.15rem !important;
  color: #FFFFFF !important;
  margin: 0 !important;
  font-weight: 800;
  border: none !important;
  padding: 0 !important;
}

.pf-metrics-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pf-metric-row {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 16px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pf-metric-row:hover {
  background: rgba(20, 32, 54, 0.85);
  border-color: rgba(94, 234, 212, 0.35);
  transform: translateX(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[dir="ltr"] .pf-metric-row:hover {
  transform: translateX(3px);
}

/* قرار گرفتن علامت واحد (مانند °C یا ٪) دقیقاً در سمت راست عدد در حالت فارسی */
.pf-metric-val-wrap {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px;
  direction: rtl !important; /* تضمین قرارگیری واحد در سمت راست عدد */
}

.pf-metric-number {
  color: var(--za-teal, #5EEAD4) !important;
  font-size: 1.65rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
}

.pf-metric-unit {
  color: #FBBF24 !important; /* رنگ طلایی صنعتی برای تاکید روی واحدها */
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.pf-metric-desc p {
  color: var(--za-text-sub, #CBD5E1) !important;
  font-size: 0.86rem !important;
  line-height: 1.75 !important;
  margin: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   Compact Layout & 2-Column KPI Metrics Table
   ═══════════════════════════════════════════════════════════════════════ */

/* فشرده‌سازی پدینگ‌ها و فواصل کلی صفحه تکی */
.pf-single-section {
  padding: 16px 0 40px !important;
  max-width: var(--za-container, 1140px) !important;
}

.pf-single-section header.pf-cs-header {
  margin-bottom: 16px !important;
  padding-bottom: 16px !important;
}

.pf-single-section header h1 {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem) !important;
  margin: 0 0 10px !important;
  line-height: 1.3 !important;
}

.pf-single-section header p {
  font-size: 0.94rem !important;
  line-height: 1.7 !important;
  margin: 0 0 14px !important;
}

.pf-single-section .pf-cs-meta {
  gap: 6px !important;
  font-size: 0.8rem !important;
}

.pf-single-hero-img {
  margin-bottom: 16px !important;
  border-radius: 12px !important;
}

.pf-single-hero-img img {
  max-height: 380px !important;
}

/* فشرده‌سازی سکشن‌های بدنه (چالش و راهکار) */
.pf-cs-body {
  gap: 16px !important;
}

.pf-cs-section {
  padding: 16px 20px !important;
  margin-bottom: 16px !important;
  border-radius: 12px !important;
}

.pf-cs-section h3 {
  font-size: 1.1rem !important;
  margin: 0 0 10px !important;
  padding-bottom: 8px !important;
}

.pf-cs-section div,
.pf-cs-section p {
  font-size: 0.92rem !important;
  line-height: 1.85 !important;
  margin-bottom: 10px !important;
}

.pf-single-tech {
  padding: 16px 20px !important;
  margin: 16px 0 !important;
  border-radius: 12px !important;
}

.pf-single-tech h2 {
  font-size: 1.05rem !important;
  margin: 0 0 10px !important;
}

.pf-single-tech .pf-cs-pills {
  gap: 6px !important;
}

.pf-single-tech .pf-pill {
  font-size: 0.8rem !important;
  padding: 4px 12px !important;
}

.pf-cs-cta {
  margin-top: 16px !important;
  gap: 10px !important;
}

.pf-cs-cta .pf-cta-btn {
  padding: 8px 16px !important;
  font-size: 0.88rem !important;
}

/* ── دو ستونه کردن و فشرده‌سازی جدول KPI / نتایج ثبت‌شده ── */
.pf-single-metrics {
  padding: 16px 16px !important;
  border-radius: 14px !important;
  margin-top: 16px;
}

.pf-metrics-header {
  margin-bottom: 12px !important;
  padding-bottom: 10px !important;
}

.pf-single-metrics h2 {
  font-size: 1.05rem !important;
}

/* شبکه دو ستونه برای ردیف‌های KPI */
.pf-metrics-table {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
}

.pf-metric-row {
  padding: 10px 14px !important;
  border-radius: 10px !important;
  gap: 4px !important;
}

.pf-metric-number {
  font-size: 1.4rem !important;
}

.pf-metric-unit {
  font-size: 1rem !important;
}

.pf-metric-desc p {
  font-size: 0.8rem !important;
  line-height: 1.6 !important;
}

@media (max-width: 640px) {
  .pf-metrics-table {
    grid-template-columns: 1fr !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   Universal Engineering Image Frames (قاب استاندارد و مدرن تصاویر برای همه پروژه‌ها)
   ═══════════════════════════════════════════════════════════════════════ */

/* قاب تصویر شاخص اصلی در تمام صفحات اختصاصی پروژه‌ها */
.pf-single-hero-img {
  margin: 0 0 24px 0 !important;
  padding: 0 !important;
  border-radius: 16px !important;
  border: 1px solid rgba(94, 234, 212, 0.22) !important;
  background: #0B1526 !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  overflow: hidden !important;
  position: relative !important;
}

.pf-img-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  background: radial-gradient(circle at center, #112038 0%, #08101D 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pf-img-frame img {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 8px;
  box-sizing: border-box;
}

.pf-single-hero-img:hover .pf-img-frame img {
  transform: scale(1.02);
}

.pf-img-badges {
  position: absolute;
  bottom: 12px;
  right: 14px;
  z-index: 2;
  pointer-events: none;
}

[dir="ltr"] .pf-img-badges {
  right: auto;
  left: 14px;
}

.pf-img-badge {
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--za-teal, #5EEAD4);
  border: 1px solid rgba(94, 234, 212, 0.3);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ── گالری تصاویر تکمیلی در تمام صفحات پروژه‌ها ── */
.pf-single-gallery {
  background: rgba(15, 23, 42, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 20px 20px !important;
  margin: 24px 0 !important;
}

.pf-single-gallery h2 {
  font-size: 1.1rem !important;
  color: #FFFFFF !important;
  margin: 0 0 16px !important;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pf-single-gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 16px !important;
}

.pf-gallery-card {
  margin: 0 !important;
  background: #0B1526 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.pf-gallery-card:hover {
  border-color: var(--za-teal, #5EEAD4) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 12px rgba(94, 234, 212, 0.15);
}

.pf-gallery-link {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #08101D;
  overflow: hidden;
}

.pf-gallery-link img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.35s ease;
}

.pf-gallery-card:hover .pf-gallery-link img {
  transform: scale(1.05);
}

.pf-gallery-zoom {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(10, 22, 40, 0.8);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.25s ease;
}

.pf-gallery-card:hover .pf-gallery-zoom {
  opacity: 1;
  transform: scale(1);
}

.pf-gallery-caption {
  padding: 10px 14px !important;
  font-size: 0.82rem !important;
  color: var(--za-text-sub, #CBD5E1) !important;
  background: rgba(15, 23, 42, 0.7) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .pf-img-frame {
    aspect-ratio: 16 / 10;
    max-height: 320px;
  }
  .pf-single-gallery-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   Minimalist & High-Contrast Green & Sky-Blue In-Content Banners
   بنرهای ظریف، مدرن و چشم‌نواز فروشگاه و مشاوره بین متون پروژه‌ها
   ═══════════════════════════════════════════════════════════════════════ */

.za-promobanner {
  position: relative;
  margin: 20px 0 !important;
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 2;
}

.za-promobanner:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}

.za-promobanner__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  transition: opacity 0.3s ease;
}

.za-promobanner:hover .za-promobanner__glow {
  opacity: 0.25;
}

/* ── بنر ۱: فروشگاه قطعات (ترکیب سبز امرالد ارگانیک و فیروزه‌ای تیره صنعتی) ── */
.za-promobanner--shop {
  background: linear-gradient(135deg, rgba(8, 40, 36, 0.95) 0%, rgba(13, 62, 54, 0.92) 50%, rgba(10, 32, 48, 0.96) 100%) !important;
  border: 1px solid rgba(52, 211, 153, 0.32) !important;
}

.za-promobanner--shop .za-promobanner__glow {
  background: radial-gradient(circle at 10% 20%, rgba(52, 211, 153, 0.4), transparent 60%);
}

/* ── بنر ۲: مشاوره و اجرای پروژه (ترکیب آبی آسمانی / Sky-Blue با فیروزه‌ای خنک) ── */
.za-promobanner--consult {
  background: linear-gradient(135deg, rgba(12, 36, 64, 0.96) 0%, rgba(18, 56, 88, 0.93) 50%, rgba(14, 46, 52, 0.96) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
}

.za-promobanner--consult .za-promobanner__glow {
  background: radial-gradient(circle at 90% 20%, rgba(56, 189, 248, 0.35), transparent 60%);
}

.za-promobanner__body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}

.za-promobanner__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.za-promobanner--shop .za-promobanner__icon {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.za-promobanner--consult .za-promobanner__icon {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.za-promobanner__content {
  flex: 1 1 auto;
  min-width: 0;
}

.za-promobanner__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.za-promobanner--shop .za-promobanner__tag {
  background: rgba(52, 211, 153, 0.18);
  color: #6EE7B7;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.za-promobanner--consult .za-promobanner__tag--consult {
  background: rgba(56, 189, 248, 0.18);
  color: #7DD3FC;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.za-promobanner__title {
  margin: 0 0 4px 0 !important;
  font-size: 1.02rem !important;
  font-weight: 850 !important;
}

.za-promobanner__desc {
  font-size: 0.83rem !important;
  color: #E2E8F0 !important; /* کنتراست بالای متن بر روی پس‌زمینه رنگی */
}

.za-promobanner__action {
  flex-shrink: 0;
}

.za-promobanner__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.za-promobanner__btn--shop {
  border: 1px solid rgba(110, 231, 183, 0.45);
}

.za-promobanner__btn--shop:hover {
  color: #064E3B !important;
  transform: translateX(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

.za-promobanner__btn--consult {
  border: 1px solid rgba(125, 211, 252, 0.45);
}

.za-promobanner__btn--consult:hover {
  color: #0C4A6E !important;
  transform: translateX(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}

.za-promobanner__arrow {
  display: inline-block;
  transition: transform 0.25s ease;
  font-size: 0.95rem;
}

.za-promobanner__btn:hover .za-promobanner__arrow {
  transform: translateX(-3px);
}

[dir="ltr"] .za-promobanner__btn:hover .za-promobanner__arrow {
  transform: translateX(3px);
}

@media (max-width: 860px) {
  .za-promobanner__body {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
  }
  .za-promobanner__action {
    width: 100%;
  }
  .za-promobanner__btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── استانداردهای تایپوگرافی و تراز متن‌ها (Justify Alignment & Typography Standards) ── */

/* ===== END {p} ===== */
