/* =========================================================
   PROFILE PUBLIC CSS - Modern Professional Theme
   Header: Dark Navy (#0A192F)
   Content: Light Clean (#F8FAFC / #FFFFFF)
   پالت: #0A192F | #112240 | #1D4ED8 | #F59E0B | #F8FAFC | #CBD5E1
========================================================= */



.expert-public-profile {
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  direction: rtl;
}

/* =========================================================
   HERO - Compact Horizontal Layout
========================================================= */
.expert-hero {
  background: linear-gradient(160deg, #0A192F 0%, #112240 50%, #1D4ED8 100%);
  padding: 50px 0 40px;
  position: relative;
  overflow: hidden;
}

.expert-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* کارت مستطیلی افقی */
.hero-card-horizontal {
  background: var(--bg-dark-light);
  border-radius: 20px;
  padding: 32px 36px;
  max-width: 950px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========== ستون‌ها ========== */
.hero-col-right {
  flex-shrink: 0;
  text-align: center;
  width: 120px;
}

.hero-col-center {
  flex: 1;
  min-width: 0;
}

.hero-col-left {
  flex-shrink: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

/* ========== آواتار ========== */
.hero-avatar-compact img {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-gold);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
  margin-bottom: 10px;
}

.hero-avatar-compact img.company-logo-compact {
  border-radius: 14px;
}

/* ========== نوع شخص ========== */
.person-type-hero {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.badge-legal-hero,
.badge-individual-hero,
.badge-vip-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-legal-hero {
  background: rgba(29, 78, 216, 0.3);
  color: #93C5FD;
  border: 1px solid rgba(29, 78, 216, 0.4);
}

.badge-individual-hero {
  background: rgba(245, 158, 11, 0.2);
  color: #FDE68A;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-vip-hero {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #0F172A;
  font-size: 0.7rem;
}

/* ========== نام ========== */
.expert-name-compact {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--text-on-dark);
  line-height: 1.3;
}

.company-subtitle-compact {
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.5);
  margin-bottom: 10px;
}

/* ========== جزئیات شرکت ========== */
.company-details-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.detail-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  font-size: 0.7rem;
  color: rgba(248, 250, 252, 0.7);
  white-space: nowrap;
}

.detail-pill i { color: var(--accent-gold); font-size: 0.65rem; }

.detail-link {
  text-decoration: none;
  transition: background 0.3s;
}

.detail-link:hover {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
}

/* ========== بج‌های مدارک ========== */
.hero-badges-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 16px;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
}

.hero-badge-official {
  background: rgba(245, 158, 11, 0.15);
  color: #FDE68A;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.hero-badge-unofficial {
  background: rgba(29, 78, 216, 0.15);
  color: #93C5FD;
  border: 1px solid rgba(29, 78, 216, 0.3);
}

.hero-badge-edu {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(248, 250, 252, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ========== دسترسی پروژه ========== */
.hero-access-compact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 16px;
  font-size: 0.7rem;
  font-weight: 500;
}

/* ========== آمار ========== */
.hero-stats-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.hero-stat-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s;
  min-width: 70px;
}

.hero-stat-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.stat-num {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.stat-lbl {
  display: block;
  font-size: 0.65rem;
  color: rgba(248, 250, 252, 0.5);
  margin-top: 2px;
}

/* ========== دکمه مشاوره ========== */
.btn-consult-compact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #0F172A;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-consult-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.consultation-locked-compact {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(248, 250, 252, 0.5);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

/* ========== شبکه‌های اجتماعی ========== */
.hero-social-compact {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-social-compact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: rgba(248, 250, 252, 0.5);
  transition: all 0.3s;
  text-decoration: none;
}

.hero-social-compact a:hover {
  background: var(--accent-gold);
  color: #0F172A;
  transform: translateY(-2px);
}

/* =========================================================
   RESPONSIVE HERO
========================================================= */
@media (max-width: 900px) {
  .hero-card-horizontal {
    flex-direction: column;
    text-align: center;
    padding: 28px 22px;
    gap: 20px;
  }

  .hero-col-right {
    width: 100%;
  }

  .hero-stats-compact {
    grid-template-columns: repeat(4, 1fr);
    max-width: 400px;
  }

  .company-details-compact,
  .hero-badges-compact {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .expert-hero {
    padding: 30px 0 25px;
  }

  .hero-card-horizontal {
    padding: 22px 16px;
    gap: 16px;
  }

  .hero-avatar-compact img {
    width: 70px;
    height: 70px;
  }

  .expert-name-compact {
    font-size: 1.2rem;
  }

  .hero-stats-compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .hero-stat-item {
    padding: 8px 6px;
  }

  .stat-num {
    font-size: 0.95rem;
  }
}

/* ========== رفع کلیک‌ناپذیری ========== */
.hero-col-left {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.btn-consult-compact {
  position: relative;
  z-index: 20;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.hero-social-compact {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.hero-social-compact a {
  position: relative;
  z-index: 15;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.hero-card-horizontal {
  overflow: visible;
}

.hero-card-horizontal > * {
  pointer-events: auto;
}
/* =========================================================
   LAYOUT
========================================================= */
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  padding: 40px 0 60px;
  align-items: start;
}

/* =========================================================
   MAIN CONTENT - Light Cards
========================================================= */
.profile-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.profile-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-light);
}

.section-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(29, 78, 216, 0.1);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* KPI Stats */
.kpi-section { padding: 24px 32px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--bg-primary);
  padding: 22px 16px;
  border-radius: 12px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-blue);
}

.stat-icon {
  font-size: 22px;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* About */
.about-box {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 24px;
  border-right: 4px solid var(--accent-gold);
}

.expert-bio {
  line-height: 2;
  font-size: 15px;
  color: var(--text-secondary);
}

/* Education */
.education-box {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 20px 24px;
  border: 1px solid var(--border-light);
}

.education-item {
  display: flex;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-light);
}

.education-item:last-child {
  border-bottom: none;
}

.edu-label {
  width: 120px;
  font-weight: 600;
  color: var(--brand-blue);
  font-size: 0.95rem;
}

.edu-value {
  flex: 1;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1rem;
}

/* Video */
.video-wrapper {
  width: 100%;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Score Boxes */
.score-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.score-box {
  text-align: center;
}

.score-circle {
  width: 100%;
  max-width: 110px;
  margin: 0 auto 12px;
}

.score-circle svg {
  display: block;
  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;
  stroke: var(--border-light);
  stroke-width: 3.8;
}

.circle-fill {
  fill: none;
  stroke: var(--accent-gold);
  stroke-width: 3.8;
  stroke-linecap: round;
  transition: stroke-dasharray 1s ease;
}

.circle-text {
  fill: var(--text-primary);
  font-size: 7px;
  font-weight: 700;
  text-anchor: middle;
  transform: rotate(90deg);
  transform-origin: center;
}

.score-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Specialties */
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.specialty-card {
  background: var(--bg-primary);
  padding: 22px;
  border-radius: 12px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.specialty-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-blue);
}

.specialty-icon {
  font-size: 22px;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.specialty-title {
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-primary);
}

.specialty-bar {
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.specialty-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #1D4ED8, #F59E0B);
  border-radius: 3px;
}

.specialty-level {
  font-size: 12px;
  color: var(--text-muted);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-hover);
}

.service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.service-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.service-price {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
}

.service-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}

.service-btn {
  margin-top: auto;
  display: block;
  background: var(--brand-blue);
  color: white;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
}

.service-btn:hover {
  background: var(--accent-gold);
  color: #0F172A;
}

/* =========================================================
   FIX: فرم مشاوره - فیلدهای هم‌اندازه و مرتب
========================================================= */

/* کانتینر اصلی فرم */
.consult-form-box {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 28px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border-light);
}

/* ردیف‌های فرم - دو ستونه */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 0;
  width: 100%;
}

/* هر فیلد */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  width: 100%;
  box-sizing: border-box;
}

/* لیبل فیلدها */
.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

/* ستاره اجباری */
.req { 
  color: #EF4444; 
}

/* یکسان‌سازی تمام input, select, textarea */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: white;
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  direction: rtl;
  box-sizing: border-box;
  margin: 0;
}

/* textarea ارتفاع ثابت */
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* فوکوس */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

/* پیام خطا */
.field-error {
  font-size: 12px;
  color: #EF4444;
  margin-top: 4px;
}

/* دکمه ارسال */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #0F172A;
  border: none;
  padding: 13px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* پیام موفقیت */
.form-success-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid #10B981;
  color: #059669;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 22px;
  font-weight: 600;
  width: 100%;
  box-sizing: border-box;
}

.form-success-msg i {
  font-size: 20px;
  color: #10B981;
}


/* =========================================================
   RESPONSIVE - موبایل
========================================================= */
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .consult-form-box {
    padding: 20px 16px;
  }
  
  .btn-submit {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-primary);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.contact-item.full-width {
  grid-column: 1 / -1;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(29, 78, 216, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  font-size: 18px;
  flex-shrink: 0;
}

.contact-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.contact-value {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.contact-value a {
  color: var(--brand-blue);
  text-decoration: none;
}

.contact-value a:hover {
  color: var(--accent-gold);
}

/* =========================================================
   SIDEBAR
========================================================= */
.profile-sidebar {
  position: relative;
}

.sidebar-sticky {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar-widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.widget-header {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-header i {
  color: var(--accent-gold);
}

.widget-body { padding: 18px; }

/* Share Box */
.share-text {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 16px;
}

.share-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.share-btn.telegram  { background: #0088cc; color: white; }
.share-btn.whatsapp  { background: #25d366; color: white; }
.share-btn.twitter   { background: #1da1f2; color: white; }
.share-btn.copy-link { background: var(--bg-dark); color: white; }

.share-btn:hover { opacity: .88; transform: translateY(-2px); }

.copy-success {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  justify-content: center;
}

.copy-success.show { display: flex; }

/* =========================================================
   BADGES - ساده و تمیز
========================================================= */
.badges-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  justify-content: flex-start !important;
  padding: 8px 0 16px;
}

.badge-card {
  flex: 0 0 auto !important;
  width: 140px !important;
  min-height: 170px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px 12px 14px !important;
  border-radius: 18px !important;
  border: 2px solid #E2E8F0 !important;
  background: white !important;
  cursor: pointer;
  transition: all 0.3s ease !important;
  text-align: center !important;
  position: relative !important;
  box-sizing: border-box !important;
}

.badge-card.level-1 { border-color: #CBD5E1 !important; background: #F8FAFC !important; }
.badge-card.level-2 { border-color: #93C5FD !important; background: #EFF6FF !important; }
.badge-card.level-3 { border-color: #6EE7B7 !important; background: #ECFDF5 !important; }
.badge-card.level-4 { border-color: #FCD34D !important; background: #FFFBEB !important; }
.badge-card.level-5 { border-color: #FCA5A5 !important; background: #FEF2F2 !important; }

.badge-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12) !important;
  border-color: #1D4ED8 !important;
  z-index: 10;
}

.badge-card__icon {
  position: relative !important;
  margin-bottom: 12px !important;
}

.badge-card__icon img {
  width: 80px !important;
  height: 80px !important;
  object-fit: contain !important;
  border-radius: 50% !important;  
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1)) !important;
  transition: transform 0.3s ease !important;
}

.badge-card:hover .badge-card__icon img {
  transform: scale(1.12) !important;
}

.badge-card__icon .fa-award {
  font-size: 3.2rem !important;
  color: #F59E0B !important;
}

.badge-level-dot {
  position: absolute !important;
  top: -6px !important;
  right: -6px !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #F59E0B, #D97706) !important;
  color: white !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 3px solid white !important;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4) !important;
}

.badge-card__info {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 5px !important;
  width: 100% !important;
}

.badge-card__name {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  line-height: 1.3 !important;
}

.badge-card__date {
  font-size: 0.7rem !important;
  color: #94A3B8 !important;
  font-weight: 500 !important;
}

.badge-tooltip {
  position: absolute !important;
  bottom: calc(100% + 14px) !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(8px) !important;
  background: #0F172A !important;
  color: #F8FAFC !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  font-size: 0.78rem !important;
  width: 220px !important;
  text-align: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.25s ease !important;
  z-index: 999 !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35) !important;
  pointer-events: none !important;
}

.badge-tooltip::after {
  content: '' !important;
  position: absolute !important;
  top: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  border: 8px solid transparent !important;
  border-top-color: #0F172A !important;
}

.badge-tooltip strong {
  display: block !important;
  font-size: 0.85rem !important;
  margin-bottom: 6px !important;
  color: #F59E0B !important;
}

.badge-tooltip p {
  margin: 0 0 5px !important;
  line-height: 1.5 !important;
  font-size: 0.75rem !important;
  color: #CBD5E1 !important;
}

.badge-tooltip em {
  font-style: italic !important;
  font-size: 0.7rem !important;
  color: #94A3B8 !important;
}

.badge-card:hover .badge-tooltip {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) translateY(0) !important;
}

@media (max-width: 768px) {
  .badge-card {
    width: 120px !important;
    min-height: 150px !important;
    padding: 16px 10px 12px !important;
  }
  
  .badge-card__icon img {
    width: 65px !important;
    height: 65px !important;
  }
}

@media (max-width: 480px) {
  .badges-grid {
    gap: 12px !important;
    justify-content: center !important;
  }
  
  .badge-card {
    width: 105px !important;
    min-height: 135px !important;
    padding: 14px 8px 10px !important;
  }
  
  .badge-card__icon img {
    width: 55px !important;
    height: 55px !important;
  }
}
/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1100px) {
  .profile-layout {
    grid-template-columns: 1fr 280px;
  }
}

@media (max-width: 900px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    order: -1;
  }

  .sidebar-sticky {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .hero-stats,
  .stats-grid,
  .score-boxes {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero-card { padding: 35px 22px; }

  .hero-stats,
  .stats-grid,
  .score-boxes,
  .form-row {
    grid-template-columns: 1fr;
  }

  .profile-section { padding: 22px 18px; }

  .share-buttons { grid-template-columns: 1fr; }
  
  .company-details-hero {
    flex-direction: column;
    align-items: center;
  }
}


/* =========================================================
   IMAGE RESPONSIVE FIX - پروفایل عمومی
   جلوگیری از بزرگ شدن تصاویر در بخش‌های مختلف
========================================================= */

/* ──────────────────────────────────────
   ۱. تصاویر داخل محتوای بیوگرافی
   ────────────────────────────────────── */
.expert-bio img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
    border-radius: 8px;
}

/* ──────────────────────────────────────
   ۲. تصاویر مقالات
   ────────────────────────────────────── */
.article-card__thumb img,
.articles-grid img,
.article-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* اگر تصویر مقاله خارج از کادر thumbnail هم نمایش داده می‌شود */
.article-card__body img,
.article-content img {
    max-width: 100%;
    height: auto;
}

/* ──────────────────────────────────────
   ۳. تصاویر مدارک و گواهی‌نامه‌ها
   ────────────────────────────────────── */
.document-card img,
.document-card__body img,
.documents-grid img {
    max-width: 120px;
    height: auto;
    border-radius: 6px;
}

.thumbnail {
    width: 90px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

/* ──────────────────────────────────────
   ۴. تصاویر داخل کارت خدمات
   ────────────────────────────────────── */
.service-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ──────────────────────────────────────
   ۵. تصاویر نشان‌ها (badges)
   ────────────────────────────────────── */
.badge-card__icon img,
.hero-badge img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* ──────────────────────────────────────
   ۶. تصاویر داخل سایدبار
   ────────────────────────────────────── */
.sidebar-article img,
.featured-item img,
.sa-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

/* ──────────────────────────────────────
   ۷. تصاویر بخش تبلیغات سایدبار
   ────────────────────────────────────── */
.sidebar-ads img,
.ads-card-wrapper img,
.ad-card img {
    max-width: 100%;
    height: auto;
}

/* ──────────────────────────────────────
   ۸. تصاویر داخل فرم مشاوره (در صورت وجود)
   ────────────────────────────────────── */
.consult-form-box img {
    max-width: 100%;
    height: auto;
}

/* ──────────────────────────────────────
   ۹. تصاویر داخل نظرات کاربران
   ────────────────────────────────────── */
.review-card img,
.review-card__body img {
    max-width: 100%;
    height: auto;
}

/* ──────────────────────────────────────
   ۱۰. تصاویر داخل اطلاعات تماس
   ────────────────────────────────────── */
.contact-item img {
    max-width: 100%;
    height: auto;
}



/* =========================================================
   FIX 1: اندازه تصاویر پیش‌نمایش مقالات
========================================================= */
.article-card__thumb {
    height: 180px;
    overflow: hidden;
}

.article-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* اگر تصویر پیش‌فرض وجود ندارد */
.article-card__no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    font-size: 2rem;
    color: #94A3B8;
}

/* خود کارت مقاله - محدود کردن عرض */
.article-card {
    max-width: 100%;
    overflow: hidden;
}

/* =========================================================
   FIX 2: نمایش 3 مدرک در هر ردیف
========================================================= */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px;
}

.document-card {
    width: 100%;
    box-sizing: border-box;
}

/* تناسب برای تبلت */
@media (max-width: 992px) {
    .documents-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* تناسب برای موبایل */
@media (max-width: 576px) {
    .documents-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   FIX 3: برگرداندن رتبه‌بندی نظرات
========================================================= */
/* خلاصه امتیازات - باکس رتبه‌بندی */
.rating-overview {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    align-items: center;
    margin-bottom: 24px;
    border: 1px solid #E2E8F0;
}

.rating-overview__score {
    text-align: center;
    flex-shrink: 0;
}

.big-score {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: #1D4ED8;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.big-stars {
    color: #F59E0B;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.total-reviews-text {
    font-size: 0.8rem;
    color: #64748B;
}

.rating-overview__bars {
    flex: 1;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.bar-label {
    font-size: 0.8rem;
    color: #64748B;
    width: 55px;
    text-align: right;
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    height: 8px;
    background: #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #1D4ED8, #F59E0B);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.bar-count {
    font-size: 0.75rem;
    color: #94A3B8;
    width: 24px;
    text-align: left;
    flex-shrink: 0;
}

/* نظرات - کارت هر نظر */
.review-card {
    padding: 1.25rem;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    margin-bottom: 1rem;
    background: white;
    transition: box-shadow 0.2s;
}

.review-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.review-card__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initials {
    font-size: 1.1rem;
    font-weight: 700;
    color: #64748B;
}

.review-card__user-info {
    flex: 1;
}

.reviewer-name {
    display: block;
    font-size: 0.9rem;
    color: #0F172A;
    font-weight: 600;
}

.review-date {
    font-size: 0.75rem;
    color: #94A3B8;
}

.review-card__stars {
    color: #F59E0B;
    font-size: 0.85rem;
}

.review-card__body {
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

/* پاسخ کارشناس */
.review-card__reply {
    background: #F1F5F9;
    border-right: 3px solid #1D4ED8;
    padding: 0.75rem 1rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.85rem;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #1D4ED8;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.review-card__reply p {
    margin: 0;
    color: #334155;
    line-height: 1.6;
}

/* متن خالی نظرات */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #94A3B8;
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.empty-state p {
    margin: 0;
    font-size: 0.95rem;
}

/* =========================================================
   FIX اضافی: نمایش ستاره‌ها با رنگ طلایی
========================================================= */
.text-warning,
.fa-star.text-warning,
.review-card__stars i {
    color: #F59E0B !important;
}

/* =========================================================
   RESPONSIVE برای رتبه‌بندی
========================================================= */
@media (max-width: 768px) {
    .rating-overview {
        flex-direction: column;
        text-align: center;
    }
    
    .rating-overview__score {
        margin-bottom: 1rem;
    }
    
    .big-score {
        font-size: 2.5rem;
    }
}


/* =========================================================
   FIX 2: نمایش 3 مدرک در هر ردیف - با کارت شفاف
========================================================= */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px;
}

.document-card {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* افکت شیشه‌ای/شفاف برای کارت مدارک */
.document-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(29, 78, 216, 0.03) 0%, 
        rgba(245, 158, 11, 0.02) 100%);
    z-index: 0;
}

.document-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #1D4ED8;
}

.document-card > * {
    position: relative;
    z-index: 1;
}

/* آیکون نوع مدرک */
.document-card__type-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(29, 78, 216, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #1D4ED8;
    flex-shrink: 0;
}

/* بدنه کارت مدرک */
.document-card__body {
    flex: 1;
    min-width: 0;
}

/* برچسب نوع مدرک */
.document-type-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

/* رنگ‌بندی انواع مدرک - هماهنگ با پالت جدید */
.doc-type-phd { 
    background: rgba(245, 158, 11, 0.12); 
    color: #D97706; 
}
.doc-type-masters { 
    background: rgba(29, 78, 216, 0.1); 
    color: #1D4ED8; 
}
.doc-type-bachelors { 
    background: rgba(16, 185, 129, 0.1); 
    color: #059669; 
}
.doc-type-professional_cert { 
    background: rgba(139, 92, 246, 0.1); 
    color: #7C3AED; 
}
.doc-type-license { 
    background: rgba(239, 68, 68, 0.1); 
    color: #DC2626; 
}
.doc-type-other { 
    background: rgba(148, 163, 184, 0.1); 
    color: #64748B; 
}

/* عنوان مدرک */
.document-card__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* توضیحات مدرک */
.document-card__desc {
    font-size: 0.78rem;
    color: #64748B;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* نشان تأیید */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: #059669;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.verified-badge i {
    font-size: 0.8rem;
}

/* تصویر مدرک */
.document-card__body img,
.document-card img.thumbnail {
    max-width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 0.5rem;
    border: 1px solid #E2E8F0;
    transition: transform 0.3s ease;
}

.document-card__body img:hover,
.document-card img.thumbnail:hover {
    transform: scale(1.05);
    border-color: #1D4ED8;
}

/* لینک دانلود مدرک */
.document-card__body a {
    display: inline-block;
    color: #1D4ED8;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.3rem;
    transition: color 0.2s;
}

.document-card__body a:hover {
    color: #F59E0B;
}

/* =========================================================
   RESPONSIVE برای مدارک
========================================================= */
@media (max-width: 992px) {
    .documents-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .documents-grid {
        grid-template-columns: 1fr !important;
    }
    
    .document-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .document-card__type-icon {
        align-self: flex-start;
    }
}

/* =========================================================
   FIX 3: رتبه‌بندی نظرات - با پالت جدید
========================================================= */
.rating-overview {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, 
        rgba(29, 78, 216, 0.03) 0%, 
        rgba(245, 158, 11, 0.03) 100%);
    border-radius: 12px;
    align-items: center;
    margin-bottom: 24px;
    border: 1px solid #E2E8F0;
}

.rating-overview__score {
    text-align: center;
    flex-shrink: 0;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.big-score {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: #1D4ED8;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.big-stars {
    color: #F59E0B;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.total-reviews-text {
    font-size: 0.8rem;
    color: #64748B;
}

.rating-overview__bars {
    flex: 1;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.bar-label {
    font-size: 0.8rem;
    color: #0F172A;
    font-weight: 500;
    width: 55px;
    text-align: right;
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    height: 8px;
    background: #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #1D4ED8, #F59E0B);
    border-radius: 4px;
    transition: width 0.8s ease;
}

.bar-count {
    font-size: 0.75rem;
    color: #64748B;
    font-weight: 600;
    width: 24px;
    text-align: left;
    flex-shrink: 0;
}

/* کارت هر نظر */
.review-card {
    padding: 1.25rem;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    margin-bottom: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-color: #1D4ED8;
}

/* متن‌های داخل نظرات */
.reviewer-name {
    display: block;
    font-size: 0.9rem;
    color: #0F172A;
    font-weight: 600;
}

.review-date {
    font-size: 0.75rem;
    color: #94A3B8;
}

.review-card__stars i {
    color: #F59E0B !important;
}

.review-card__body {
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

/* پاسخ کارشناس به نظر */
.review-card__reply {
    background: linear-gradient(135deg, 
        rgba(29, 78, 216, 0.03) 0%, 
        rgba(245, 158, 11, 0.02) 100%);
    border-right: 3px solid #1D4ED8;
    padding: 0.75rem 1rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.85rem;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #1D4ED8;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.review-card__reply p {
    margin: 0;
    color: #334155;
    line-height: 1.6;
}

/* =========================================================
   FIX 1: تصاویر مقالات - طراحی لامپلاین (فشرده)
========================================================= */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.article-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: var(--bg-card);
    text-decoration: none;
    transition: all 0.3s ease;
    max-width: 100%;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-color: var(--brand-blue);
}

/* تصویر بندانگشتی - کوچک */
.article-card__thumb {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(29, 78, 216, 0.05) 0%, 
        rgba(245, 158, 11, 0.05) 100%);
}

.article-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card__thumb img {
    transform: scale(1.08);
}

.article-card__no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-muted);
}

/* بدنه کارت - اطلاعات مقاله */
.article-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* عنوان مقاله - حداکثر 2 خط */
.article-card__title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* متا دیتا - تاریخ و بازدید */
.article-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.article-card__meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-card__meta i {
    font-size: 0.7rem;
    color: var(--accent-gold);
}

/* متا دیتا در حالت لایت */
[data-theme="light"] .article-card__meta {
    color: #64748B;
}

/* دکمه مشاهده همه مقالات */
.text-center.mt-3 {
    text-align: center;
    margin-top: 20px;
}

.btn-outline-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: transparent;
    border: 2px solid var(--brand-blue);
    color: var(--brand-blue);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--brand-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

/* =========================================================
   RESPONSIVE برای بخش مقالات
========================================================= */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .article-card {
        padding: 10px;
        gap: 10px;
    }
    
    .article-card__thumb {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }
    
    .article-card__title {
        font-size: 0.82rem;
    }
    
    .article-card__meta {
        font-size: 0.7rem;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .article-card__thumb {
        width: 55px;
        height: 55px;
        min-width: 55px;
        border-radius: 8px;
    }
    
    .article-card__title {
        font-size: 0.78rem;
        -webkit-line-clamp: 2;
    }
    
    .btn-outline-primary {
        padding: 8px 18px;
        font-size: 0.82rem;
    }
}

/* =========================================================
   بخش‌های خالی - متن راهنما
========================================================= */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #94A3B8;
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    color: #CBD5E1;
}

.empty-state p {
    margin: 0;
    font-size: 0.95rem;
    color: #64748B;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px) {
    .rating-overview {
        flex-direction: column;
        text-align: center;
    }
    
    .rating-overview__score {
        margin-bottom: 1rem;
    }
    
    .big-score {
        font-size: 2.5rem;
    }
}



/* ========== ۵ کارت در یک ردیف ========== */
.stats-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 992px) {
  .stats-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 576px) {
  .stats-grid-5 { grid-template-columns: repeat(2, 1fr); }
}

/* ========== کارت‌های عمودی (۴ در ردیف) ========== */
.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 992px) {
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .cards-grid-4 { grid-template-columns: 1fr; }
}

.vertical-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border: 1px solid #E2E8F0;
  transition: all 0.3s;
}
.vertical-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.vc-icon {
  font-size: 2rem;
  color: #1D4ED8;
  margin-bottom: 12px;
}
.vc-body h4 {
  font-size: 0.95rem;
  margin: 8px 0 4px;
}
.vc-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  background: #EFF6FF;
  color: #1D4ED8;
}
.vc-subtitle {
  color: #64748B;
  font-size: 0.85rem;
  margin: 0;
}
.vc-date, .vc-gpa, .vc-number {
  font-size: 0.8rem;
  color: #94A3B8;
  margin: 4px 0 0;
}

/* رسمی / غیر رسمی */
.cert-official { border-right: 4px solid #10B981; }
.cert-unofficial { border-right: 4px solid #F59E0B; }
.badge-official { background: #D1FAE5; color: #065F46; }
.badge-unofficial { background: #FEF3C7; color: #92400E; }

/* ========== کارت‌های افقی (۱ در ردیف) ========== */
.horizontal-cards-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.horizontal-card {
  display: flex;
  background: white;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  transition: all 0.3s;
}
.horizontal-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.horizontal-card.current-job {
  border-right: 4px solid #10B981;
}
.hc-status {
  width: 8px;
  background: #F1F5F9;
  flex-shrink: 0;
}
.current-job .hc-status {
  background: #10B981;
}
.current-indicator {
  display: block;
  width: 100%;
  height: 100%;
  background: #10B981;
}
.hc-content {
  padding: 16px 20px;
  flex: 1;
}
.hc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.hc-header h4 {
  margin: 0;
  font-size: 1.1rem;
}
.hc-content h5 {
  color: #64748B;
  margin: 4px 0;
  font-size: 0.9rem;
}
.hc-dates {
  color: #94A3B8;
  font-size: 0.85rem;
  margin: 4px 0;
}
.hc-desc {
  color: #475569;
  font-size: 0.9rem;
  margin: 8px 0 0;
}
.employment-type-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  background: #EFF6FF;
  color: #1D4ED8;
}

/* ========== لینک‌های مدیریت مدارک ========== */
.management-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mgmt-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #1E293B;
  border-radius: 12px;
  text-decoration: none;
  color: #F8FAFC;
  border: 1px solid rgba(248,250,252,0.1);
  transition: all 0.3s;
}

.mgmt-link-card:hover {
  background: #334155;
  border-color: #F59E0B;
  transform: translateX(-4px);
}

.mgmt-icon {
  width: 48px;
  height: 48px;
  background: rgba(29,78,216,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #3B82F6;
  flex-shrink: 0;
}

.mgmt-info {
  flex: 1;
}

.mgmt-info h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: #F8FAFC;
}

.mgmt-info span {
  font-size: 0.8rem;
  color: #94A3B8;
}

.mgmt-link-card .fa-arrow-left {
  color: #F59E0B;
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.mgmt-link-card:hover .fa-arrow-left {
  transform: translateX(-4px);
}

