/* ============================================================
   🔧 TAMIRAT SITE — page.css  (Mobile-First Rewrite)
   سبک: پویا · رنگارنگ · سبز اعتماد
   رویکرد: mobile-first  →  tablet  →  desktop
   فونت: Vazirmatn
   ============================================================ */



/* ─── Design Tokens ─────────────────────────── */
:root {
  /* greens */
  --g-900: #052e16;
  --g-800: #0d6e3f;
  --g-700: #15803d;
  --g-600: #16a34a;
  --g-500: #22c55e;
  --g-400: #4ade80;
  --g-200: #bbf7d0;
  --g-100: #dcfce7;
  --g-50:  #f0fdf4;

  /* accents */
  --amber:  #fbbf24;
  --orange: #f97316;
  --sky:    #38bdf8;

  /* dark surfaces (sidebar why-us) */
  --dark-900: #07120b;
  --dark-800: #0f1f14;
  --dark-700: #19321f;

  /* text */
  --tx-1: #0c1c10;
  --tx-2: #2d4a34;
  --tx-3: #5a7a62;
  --tx-4: #9ab5a0;

  /* surfaces */
  --sf-1: #ffffff;
  --sf-2: #f6fcf8;
  --sf-3: #edfaf2;

  /* border */
  --br-soft:   #d1f0dd;
  --br-medium: #86efac;

  /* shadows */
  --sh-sm: 0 1px 4px  rgba(22,163,74,.10);
  --sh-md: 0 4px 18px rgba(22,163,74,.14);
  --sh-lg: 0 12px 40px rgba(22,163,74,.18);

  /* radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* motion */
  --ease: .24s cubic-bezier(.4,0,.2,1);
  --bounce: .45s cubic-bezier(.34,1.56,.64,1);
}

/* ─── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* prevent horizontal overflow at root */
  overflow-x: hidden;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  direction: rtl;
  background-color: var(--sf-2);
  color: var(--tx-1);
  line-height: 1.8;
  /* CRITICAL: kills any accidental overflow */
  overflow-x: hidden;
  min-height: 100vh;
}

/* mesh background — clipped so it never causes overflow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 55% at 15% 10%,  rgba(34,197,94,.11) 0%, transparent 60%),
    radial-gradient(ellipse 55% 50% at 85% 85%,  rgba(16,163,74,.09) 0%, transparent 60%),
    radial-gradient(ellipse 45% 60% at 50% 50%,  rgba(74,222,128,.05) 0%, transparent 70%);
  animation: meshDrift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(22,163,74,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,163,74,.035) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

@keyframes meshDrift {
  from { transform: scale(1) rotate(0deg); }
  to   { transform: scale(1.06) rotate(.8deg); }
}

/* ─── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar       { width: 7px; }
::-webkit-scrollbar-track { background: var(--sf-2); }
::-webkit-scrollbar-thumb { background: var(--g-400); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--g-600); }

/* ─── Selection ─────────────────────────────── */
::selection { background: var(--g-200); color: var(--g-900); }

/* ─── Animations ────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Container ─────────────────────────────── */
/* Mobile base: full width, safe horizontal padding */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

/* ─── Brand Notice ──────────────────────────── */
.brand-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: linear-gradient(135deg, #fffbeb, #fef9c3);
  border: 1.5px solid var(--amber);
  border-right: 5px solid var(--orange);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 22px;
  font-size: .9rem;
  color: #78350f;
  animation: slideDown .5s var(--bounce) both;
  box-shadow: 0 4px 18px rgba(251,191,36,.18);
  /* prevent text from overflowing */
  word-break: break-word;
}

.brand-notice .notice-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }

/* ─── H1 ────────────────────────────────────── */
h1 {
  font-size: clamp(1.35rem, 5vw, 2.2rem);
  font-weight: 900;
  line-height: 1.5;
  color: var(--g-800);
  margin-bottom: 25px;
  padding-right: 16px;
  position: relative;
  animation: fadeUp .55s .1s both;
  /* no overflow from long words */
  overflow-wrap: break-word;
  word-break: break-word;
}

h1::before {
  content: '';
  position: absolute;
  right: 0; top: 8%; height: 84%;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--g-400), var(--g-800));
}

/* ─── Featured Image (حالت پایه: تنظیم شده اختصاصی برای موبایل) ─── */
.post-cover-wrapper {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  margin-top: 15px;
  margin-bottom: 25px;
  position: relative;
  animation: fadeUp .55s .15s both;
  background-color: transparent !important;
  
  /* فعال بودن نسبت ۱۶:۹ فقط برای موبایل */
  width: 100%;
  aspect-ratio: 16 / 9 !important; 
}

.post-cover-wrapper::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,110,63,.15) 0%, transparent 55%);
  pointer-events: none;
}

.featured-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: fill !important; /* فیت شدن کامل عکس‌های ۱۶:۹ شما در موبایل */
  transition: transform .55s var(--ease);
}

.post-cover-wrapper:hover .featured-image { transform: scale(1.02); }

/* ─── Meta Bar ──────────────────────────────── */
.page-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  animation: fadeUp .55s .2s both;
  justify-content: center;
}

.meta-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--sf-1);
  border: 1.5px solid var(--br-soft);
  border-radius: 999px;
  padding: 9px 12px;
  font-size: .83rem;
  color: var(--tx-2);
  font-weight: 500;
  box-shadow: var(--sh-sm);
  transition: var(--ease);
  box-sizing: border-box;
  
  /* دو ستونه شدن باکس‌ها در موبایل */
  flex: 1 1 calc(50% - 10px);
  margin: 0 !important;
}

.meta-item:hover {
  border-color: var(--g-500);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

.meta-phone {
  border-color: var(--g-500);
  background: linear-gradient(135deg, var(--g-50), var(--g-100));
  flex: 1 1 100% !important;
  width: 100%;
  font-size: .9rem;
  padding: 12px 18px;
}

.meta-phone a {
  color: var(--g-800);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: .02em;
  transition: var(--ease);
}

.meta-phone a:hover { color: var(--g-600); }

/* ─── Floating Call Button (mobile only) ────── */
.meta-phone-float {
  display: none;
}

/* ─── Main Layout ───────────────────────────── */
.main-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ─── Content Column ────────────────────────── */
.content-column { animation: fadeUp .55s .25s both; }

.main-content.cms-content {
  background: var(--sf-1);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  box-shadow: var(--sh-md);
  border: 1.5px solid var(--br-soft);
  font-size: .95rem;
  color: var(--tx-1);
  line-height: 2;
  margin-bottom: 24px;
  overflow-wrap: break-word;
  word-break: break-word;
  
  /* ─── جادوی تراز کردن متن مقالات ─── */
  text-align: justify;
}

/* CMS inner typography */
.cms-content h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--g-800);
  margin: 28px 0 12px;
  padding-right: 12px;
  border-right: 4px solid var(--g-500);
}

.cms-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--g-600);
  margin: 20px 0 8px;
}

.cms-content p { margin-bottom: 14px; }

.cms-content a { color: var(--g-600); text-underline-offset: 3px; transition: var(--ease); }
.cms-content a:hover { color: var(--g-800); }

.cms-content ul, .cms-content ol { padding-right: 18px; margin-bottom: 14px; }
.cms-content li { margin-bottom: 6px; }
.cms-content strong { color: var(--g-800); font-weight: 700; }

.cms-content blockquote {
  border-right: 4px solid var(--g-400);
  background: var(--g-50);
  padding: 14px 16px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 18px 0;
  color: var(--tx-2);
  font-style: italic;
}

/* table */
.cms-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  overflow-x: auto;
  display: block;
}

.cms-content th, .cms-content td {
  border: 1px solid var(--br-soft);
  padding: 8px 12px;
  text-align: right;
}

.cms-content th { background: var(--g-100); font-weight: 700; }

/* ─── Reviews Section ───────────────────────── */
.reviews-section {
  background: var(--sf-1);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  box-shadow: var(--sh-md);
  border: 1.5px solid var(--br-soft);
}

.reviews-section h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--g-800);
  margin-bottom: 20px;
}

.review-item {
  background: var(--sf-2);
  border: 1.5px solid var(--br-soft);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  transition: var(--ease);
}

.review-item::before {
  content: '❝';
  position: absolute;
  left: 12px; top: 6px;
  font-size: 2.8rem;
  color: var(--g-100);
  line-height: 1;
  font-family: serif;
}

.review-item:hover {
  border-color: var(--g-400);
  box-shadow: var(--sh-md);
  transform: translateX(-3px);
}

.review-item:last-child { margin-bottom: 0; }

.review-item strong {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.stars-rating {
  display: block;
  font-size: .82rem;
  margin-bottom: 8px;
}

.review-item p {
  font-size: .88rem;
  color: var(--tx-2);
  line-height: 1.7;
  margin: 0;
}

/* ─── Sidebar Column ────────────────────────── */
.sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeUp .55s .3s both;
}

/* ─── Why Us ────────────────────────────────── */
.why-us-container {
  background: linear-gradient(145deg, var(--dark-800), var(--dark-700));
  border-radius: var(--r-lg);
  padding: 24px 20px;
  box-shadow: var(--sh-lg);
  border: 1px solid rgba(74,222,128,.14);
  position: relative;
  overflow: hidden;
}

.why-us-container::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 65% 35%, rgba(34,197,94,.09) 0%, transparent 65%);
  pointer-events: none;
}

.why-us-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--g-400);
  margin-bottom: 18px;
  text-align: center;
  position: relative;
}

.why-us-title::after {
  content: '';
  display: block;
  width: 44px; height: 3px;
  background: linear-gradient(to left, var(--g-500), transparent);
  margin: 7px auto 0;
  border-radius: 999px;
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.why-us-item {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(74,222,128,.11);
  border-radius: var(--r-md);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: var(--ease);
}

.why-us-item:hover {
  background: rgba(34,197,94,.09);
  border-color: rgba(74,222,128,.32);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(22,163,74,.22);
}

.why-us-icon {
  font-size: 1.65rem;
  line-height: 1;
  filter: drop-shadow(0 2px 5px rgba(34,197,94,.38));
}

.why-us-text h4 {
  font-size: .76rem;
  font-weight: 700;
  color: #e0faea;
  line-height: 1.4;
  margin-bottom: 2px;
}

.why-us-text p {
  font-size: .71rem;
  color: rgba(255,255,255,.46);
  line-height: 1.5;
  margin: 0;
}

/* ─── Related Posts ─────────────────────────── */
.related-posts-container {
  background: var(--sf-1);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  box-shadow: var(--sh-md);
  border: 1.5px solid var(--br-soft);
}

.related-title {
  font-size: .98rem;
  font-weight: 800;
  color: var(--g-800);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.related-title::before { content: '🔗'; }

.related-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-post-sidebar-card {
  background: var(--sf-2);
  border: 1.5px solid var(--br-soft);
  border-radius: var(--r-md);
  padding: 14px 16px;
  transition: var(--ease);
  position: relative;
  overflow: hidden;
}

.related-post-sidebar-card::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--g-500);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--ease);
}

.related-post-sidebar-card:hover {
  border-color: var(--g-400);
  transform: translateX(-3px);
  box-shadow: var(--sh-md);
}

.related-post-sidebar-card:hover::after { transform: scaleY(1); }

.related-post-sidebar-card h4 {
  font-size: .85rem;
  font-weight: 700;
  color: var(--tx-1);
  margin-bottom: 10px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--g-600);
  text-decoration: none;
  border: 1.5px solid var(--g-100);
  background: var(--g-50);
  border-radius: 999px;
  padding: 5px 13px;
  transition: var(--ease);
}

.read-more-btn:hover {
  background: var(--g-600);
  color: #fff;
  border-color: var(--g-600);
  transform: translateX(-3px);
  box-shadow: 0 4px 14px rgba(22,163,74,.28);
}

.no-posts-found {
  font-size: .86rem;
  color: var(--tx-3);
  text-align: center;
  padding: 14px 0;
}

/* ─── Footer ────────────────────────────────── */
.footer {
  margin-top: 48px;
  text-align: center;
  padding: 24px 16px;
  background: linear-gradient(135deg, var(--dark-800), var(--dark-700));
  border-radius: var(--r-lg);
  color: rgba(255,255,255,.5);
  font-size: .84rem;
  border: 1px solid rgba(74,222,128,.10);
  box-shadow: var(--sh-lg);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '🔧';
  position: absolute;
  font-size: 5rem;
  opacity: .04;
  right: 5%;
  top: 50%;
  transform: translateY(-50%) rotate(-15deg);
  pointer-events: none;
}

/* ─── Floating CTA bar (mobile) ─────────────── */
.cta-float {
  display: flex;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: linear-gradient(135deg, var(--g-800), var(--g-700));
  padding: 12px 16px;
  gap: 10px;
  box-shadow: 0 -4px 24px rgba(22,163,74,.30);
  border-top: 2px solid var(--g-500);
}

.cta-float a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: .92rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: var(--r-md);
  padding: 12px 10px;
  transition: var(--ease);
  color: #fff;
}

.cta-float .cta-call {
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.25);
}

.cta-float .cta-call:hover,
.cta-float .cta-call:active {
  background: rgba(255,255,255,.25);
}

.cta-float .cta-wa {
  background: #25d366;
  border: 1.5px solid #22bf5c;
}

.cta-float .cta-wa:hover,
.cta-float .cta-wa:active {
  background: #1fb656;
}

body.has-cta-float .container {
  padding-bottom: 88px;
}

/* ════════════════════════════════════════════
   📱 TABLET  ≥ 640px
════════════════════════════════════════════ */
@media (min-width: 640px) {
  .container { padding: 28px 24px 56px; }

  /* لغو کردن نسبت ابعاد ۱۶:۹ غول‌آسا برای تبلت و بازگشت به اورجینال */
  .post-cover-wrapper {
    aspect-ratio: auto !important;
  }

  .featured-image { 
    max-height: 340px; 
    height: auto !important;
    object-fit: contain !important; /* فیت شدن بدون کات شدن روی صفحات بزرگ‌تر */
  }

  .meta-item {
    flex: initial;
    width: auto;
    padding: 9px 15px;
  }

  .meta-phone {
    width: auto;
    font-size: .88rem;
    padding: 9px 15px;
  }

  .main-content.cms-content,
  .reviews-section { padding: 28px 28px; }

  .why-us-text h4 { font-size: .82rem; }
  .why-us-text p  { font-size: .75rem; }
}

/* ════════════════════════════════════════════
   🖥  DESKTOP  ≥ 900px
════════════════════════════════════════════ */
@media (min-width: 900px) {
  .container { padding: 36px 28px 64px; }

  .main-layout {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 32px;
    align-items: start;
  }

  .sidebar-column {
    position: sticky;
    top: 24px;
  }

  /* لغو کامل ابعاد ۱۶:۹ روی دسکتاپ و بازگرداندن به حالت مرتب مجله‌ای اولیه */
  .post-cover-wrapper {
    aspect-ratio: auto !important;
    max-height: 400px;
  }

  .featured-image { 
    max-height: 400px; 
    height: auto !important;
    object-fit: contain !important; /* جلوگیری از گم شدن یا کات شدن عکس دسکتاپ */
  }

  .main-content.cms-content { padding: 36px 40px; }
  .reviews-section           { padding: 30px 34px; }

  .cta-float { display: none !important; }

  body.has-cta-float .container { padding-bottom: 64px; }

  .why-us-text h4 { font-size: .82rem; }
  .why-us-text p  { font-size: .74rem; }
}

/* ════════════════════════════════════════════
   🖥  LARGE  ≥ 1100px
════════════════════════════════════════════ */
@media (min-width: 1100px) {
  .main-layout { grid-template-columns: 1fr 360px; gap: 36px; }
  .main-content.cms-content { padding: 40px 48px; font-size: 1rem; }
}

/* ─── Entrance animations ─────────── */
@media (prefers-reduced-motion: no-preference) {
  .review-item:nth-child(1) { animation: fadeUp .5s .35s both; }
  .review-item:nth-child(2) { animation: fadeUp .5s .45s both; }
  .review-item:nth-child(3) { animation: fadeUp .5s .55s both; }

  .why-us-item:nth-child(1) { animation: fadeUp .5s .40s both; }
  .why-us-item:nth-child(2) { animation: fadeUp .5s .48s both; }
  .why-us-item:nth-child(3) { animation: fadeUp .5s .56s both; }
  .why-us-item:nth-child(4) { animation: fadeUp .5s .64s both; }

  .related-post-sidebar-card:nth-child(1) { animation: fadeUp .5s .42s both; }
  .related-post-sidebar-card:nth-child(2) { animation: fadeUp .5s .52s both; }
  .related-post-sidebar-card:nth-child(3) { animation: fadeUp .5s .62s both; }
}

/* ─── reduce-motion ─────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ─── باکس علائم خرابی اختصاصی شروع مقاله ─── */
.symptom-checker-box {
  background: #fff5f5 !important;
  border: 1.5px dashed #f87171 !important;
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-bottom: 25px;
  direction: rtl;
  text-align: right;
}
.symptom-checker-box h4 {
  color: #991b1b;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.symptom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
@media (min-width: 480px) {
  .symptom-grid { grid-template-columns: 1fr 1fr; }
}
.symptom-item {
  background: #ffffff;
  border: 1px solid #fee2e2;
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: .88rem;
  color: #7f1d1d;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.symptom-item span { color: #f87171; font-weight: bold; }
.symptom-footer {
  font-size: .85rem;
  color: var(--tx-2);
  margin-top: 12px;
  line-height: 1.6;
}
.symptom-footer strong {
  color: #b91c1c;
  font-weight: 900;
}

/* استایل‌های هدر و لوگوی ریسپانسیو اختصاصی صفحه مقالات */
.main-site-header {
    background-color: #0f172a;
    padding: 12px 20px;
    border-bottom: 2px solid #334155;
}

.top-nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-home-btn {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    font-family: Tahoma, sans-serif;
    transition: color 0.3s;
}

.back-home-btn:hover {
    color: #ffffff;
}

/* استایل متنی برند در دسکتاپ */
.desktop-brand-logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Lalezar', Tahoma, sans-serif;
    letter-spacing: 0.5px;
}

/* مخفی کردن پیش‌فرض تصویر لوگو در دسکتاپ */
.mobile-brand-logo {
    display: none;
}

/* تنظیمات جادویی ریسپانسیو موبایل */
@media (max-width: 767px) {
    .desktop-brand-logo {
        display: none !important; /* مخفی شدن متن در موبایل */
    }
    .mobile-brand-logo {
        display: block !important; /* نمایش لوگوی آچار و پیچ‌گوشتی در موبایل */
    }
    .mobile-brand-logo img {
        display: block;
        max-width: 100%;
        height: auto;
    }
}

.cms-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 20px auto;
}

/* ===== استایل بخش متخصصین (نسخه ارتقا یافته / جذاب) ===== */
.experts-section {
    position: relative;
    background: linear-gradient(160deg, #eff6ff 0%, #e0f2fe 55%, #f0f9ff 100%);
    border: 1.5px solid #bfdbfe;
    border-right: 4px solid #2563eb;
    padding: 22px 24px 20px;
    margin: 20px 0 30px 0;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.10);
    overflow: hidden;
}

.experts-section::before {
    content: '';
    position: absolute;
    left: -30px;
    top: -30px;
    width: 130px;
    height: 130px;
    background: radial-gradient(circle, rgba(37,99,235,.14) 0%, transparent 70%);
    pointer-events: none;
}

.experts-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    position: relative;
}

.experts-title {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    gap: 9px;
}

.experts-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 12px rgba(37,99,235,.35);
    font-size: 16px;
}

.experts-count-pill {
    font-size: 12px;
    font-weight: 700;
    color: #1e40af;
    background: #ffffff;
    border: 1.5px solid #bfdbfe;
    border-radius: 999px;
    padding: 5px 14px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(37,99,235,.10);
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    position: relative;
}

.expert-card {
    position: relative;
    background: #ffffff;
    padding: 18px 18px 16px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
}

.expert-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 4px;
    background: linear-gradient(to left, #60a5fa, #2563eb, #1e40af);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .35s ease;
}

.expert-card:hover {
    transform: translateY(-4px);
    border-color: #93c5fd;
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.16);
}

.expert-card:hover::before {
    transform: scaleX(1);
}

.expert-avatar {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(37,99,235,.35);
}

.expert-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding-left: 50px; /* جا برای آواتار */
}

.expert-name {
    font-weight: 700;
    font-size: 16px;
    color: #0f172a;
}

.expert-badge {
    font-size: 11px;
    padding: 3px 11px;
    border-radius: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.expert-badge.specific {
    background: #dbeafe;
    color: #1e40af;
    box-shadow: inset 0 0 0 1px rgba(37,99,235,.18);
}

.expert-badge.general {
    background: #fef3c7;
    color: #92400e;
    box-shadow: inset 0 0 0 1px rgba(180,131,7,.18);
}

.expert-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 14px;
    color: #1e3a8a;
    font-weight: 700;
    text-decoration: none;
    background: #f0f7ff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    padding: 8px 12px;
    transition: background .2s ease, border-color .2s ease;
}

.expert-phone:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.expert-phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
}

.expert-services {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.expert-services-icon { flex-shrink: 0; }

.expert-services-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.expert-service-chip {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
}

.experts-footer {
    margin-top: 16px;
    font-size: 14px;
    color: #1e3a8a;
    background: rgba(255,255,255,.65);
    border: 1px solid #bfdbfe;
    padding: 11px 16px;
    border-radius: 10px;
}
/* ===== پایان استایل بخش متخصصین ===== */