/* ===== Agents Page (vertical list) ===== */

/* کانتینر صفحه */
.agents-page{
  max-width: 1100px;
  margin: 28px auto;
  padding: 0 16px;
}

/* عنوان صفحه */
.agents-page .page-title{
  text-align: center;
  margin: 8px 0 22px;
}

/* لیست عمودی کارت‌ها */
.agents-list{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* باکس هر ایجنت */
.agent-item{
  display: flex;                 /* تصویر راست، محتوا چپ (در RTL) */
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.agent-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
}

/* جای تصویر (فعلاً خالی) */
.agent-thumb{
  flex: 0 0 160px;               /* عرض ثابتِ ناحیه‌ی تصویر */
  width: 160px; height: 120px;   /* می‌تونی مربعی هم بکنی: 160x160 */
  border-radius: 12px;
  border: 1px dashed #cfcfcf;
  background:
    linear-gradient(135deg, rgba(0,0,0,.03), rgba(0,0,0,.05));
  position: relative;
}
.agent-thumb::after{
  /* آیکن سادهٔ موقتی برای حس جای‌تصویر */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at center, rgba(0,0,0,.08) 0 28%, transparent 30%);
  opacity: .5;
  pointer-events: none;
}

/* بخش متنی کارت */
.agent-content{
  flex: 1;
  text-align: right;   /* در RTL راست‌چین بماند */
}

.agent-title{
  margin: 2px 0 8px;
  font-size: 1.25rem;
  line-height: 1.35;
}

.agent-desc{
  margin: 0 0 14px;
  color: #555;
  line-height: 1.8;
}

/* CTA (از .btn سراسری هم استفاده می‌کند) */
.agent-cta{
  display: inline-block;
  text-decoration: none;
  background: #333;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  transition: background .2s ease, transform .08s ease, box-shadow .2s ease;
}
.agent-cta:hover{
  background: #0077ff;
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
}
.agent-cta:active{ transform: scale(.98) }

/* ===== دارک‌مود ===== */
body.dark .agent-item{
  background: #2b2b2b;
  box-shadow: 0 2px 8px rgba(255,255,255,.05);
}
body.dark .agent-desc{ color: #ccc; }
body.dark .agent-thumb{
  border-color: #444;
  background: linear-gradient(135deg, #222, #1b1b1b);
}
body.dark .agent-thumb::after{
  background: radial-gradient(circle at center, rgba(255,255,255,.12) 0 28%, transparent 30%);
}
body.dark .agent-cta{
  background: #444;
}
body.dark .agent-cta:hover{
  background: #0077ff;
  box-shadow: 0 3px 10px rgba(255,255,255,.08);
}

/* ===== ریسپانسیو ===== */
@media (max-width: 820px){
  .agent-item{
    padding: 16px;
    gap: 14px;
  }
  .agent-thumb{
    flex-basis: 140px;
    width: 140px; height: 105px;
  }
}

@media (max-width: 640px){
  .agent-item{
    /* تصویر برود بالا، متن بیاید پایین */
    flex-direction: column;
    align-items: stretch;
  }
  .agent-thumb{
    width: 100%; height: 180px;
  }
  .agent-content{
    text-align: right;
  }
}
