/* ================================================================
   دنت‌کار — سیستم طراحی اصلی
   ================================================================ */

:root {
  --primary:       #0077B6;
  --primary-dark:  #023E8A;
  --primary-light: #0096C7;
  --accent:        #00B4D8;
  --accent-light:  #90E0EF;
  --surface:       #CAF0F8;
  --white:         #ffffff;
  --gray-50:       #F8FAFC;
  --gray-100:      #F1F5F9;
  --gray-200:      #E2E8F0;
  --gray-400:      #94A3B8;
  --gray-600:      #475569;
  --gray-800:      #1E293B;
  --success:       #10B981;
  --error:         #EF4444;
  --warning:       #F59E0B;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,119,182,0.10), 0 1px 4px rgba(0,0,0,0.06);
  --shadow-lg:  0 8px 32px rgba(0,119,182,0.15), 0 2px 8px rgba(0,0,0,0.08);
  --radius:     16px;
  --radius-sm:  10px;
  --radius-lg:  24px;
  --transition: 0.22s ease;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,119,182,0.08);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  box-shadow: 0 2px 20px rgba(0,119,182,0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(0,119,182,0.06);
}

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 12px rgba(0,119,182,0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,119,182,0.4);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: rgba(0,119,182,0.05); }

.btn-ghost {
  background: var(--gray-100);
  color: var(--gray-800);
}
.btn-ghost:hover { background: var(--gray-200); }

.btn-white {
  background: white;
  color: var(--primary-dark);
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: all var(--transition);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-danger {
  background: #FEE2E2;
  color: #B91C1C;
  border: none;
}
.btn-danger:hover { background: #FECACA; }

.btn-success {
  background: #D1FAE5;
  color: #065F46;
  border: none;
}
.btn-success:hover { background: #A7F3D0; }

/* ── Flash messages ───────────────────────────────────────────────────────── */
.flash {
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.flash-success { background: #D1FAE5; color: #065F46; }
.flash-error   { background: #FEE2E2; color: #B91C1C; }
.flash-info    { background: #DBEAFE; color: #1E40AF; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 4rem 2rem 5rem;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 25% 25%, white 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, white 2px, transparent 2px);
  background-size: 48px 48px;
}

.hero-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15; }
.hero-blob-1 { width: 500px; height: 500px; background: var(--accent-light); top: -100px; left: -100px; }
.hero-blob-2 { width: 400px; height: 400px; background: var(--accent); bottom: -150px; right: 10%; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  animation: fadeUp 0.7s ease both;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: white;
  line-height: 1.3;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.hero h1 span {
  background: linear-gradient(135deg, #90E0EF, #CAF0F8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* ── Search Box ───────────────────────────────────────────────────────────── */
.search-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
  max-width: 800px;
  margin: 0 auto;
}

.search-field { display: flex; flex-direction: column; gap: 0.4rem; }

.search-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-600);
}

.search-field input,
.search-field select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--gray-800);
  background: var(--gray-50);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  direction: rtl;
}

.search-field input:focus,
.search-field select:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(0,119,182,0.1);
}

.search-btn {
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(0,119,182,0.3);
}
.search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,119,182,0.45);
}

/* ── Stats Strip ──────────────────────────────────────────────────────────── */
.stats-strip {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 2rem;
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat-item { display: flex; align-items: center; gap: 0.6rem; }

.stat-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,119,182,0.1), rgba(0,180,216,0.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.stat-num   { font-size: 1.1rem; font-weight: 800; color: var(--primary-dark); }
.stat-label { font-size: 0.78rem; color: var(--gray-600); font-weight: 500; }

/* ── Section ──────────────────────────────────────────────────────────────── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-top: 3rem;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title::before {
  content: '';
  display: block;
  width: 4px; height: 22px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.see-all {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.see-all:hover { gap: 8px; }

/* ── Category Grid ────────────────────────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cat-card {
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.cat-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.cat-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}

.cat-name  { font-size: 0.88rem; font-weight: 700; color: var(--gray-800); text-align: center; }
.cat-count { font-size: 0.75rem; color: var(--gray-400); font-weight: 500; }

/* icon backgrounds */
.cat-blue   { background: linear-gradient(135deg, #DBEAFE, #BFDBFE); }
.cat-teal   { background: linear-gradient(135deg, #CCFBF1, #99F6E4); }
.cat-green  { background: linear-gradient(135deg, #DCFCE7, #BBF7D0); }
.cat-orange { background: linear-gradient(135deg, #FEF3C7, #FDE68A); }
.cat-pink   { background: linear-gradient(135deg, #FCE7F3, #FBCFE8); }
.cat-purple { background: linear-gradient(135deg, #EDE9FE, #DDD6FE); }
.cat-red    { background: linear-gradient(135deg, #FEE2E2, #FECACA); }
.cat-indigo { background: linear-gradient(135deg, #E0E7FF, #C7D2FE); }

/* ── Ad Cards ─────────────────────────────────────────────────────────────── */
.ads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ad-card {
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all var(--transition);
}
.ad-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.ad-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.ad-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-dentist   { background: #DBEAFE; color: #1D4ED8; }
.badge-assistant { background: #FCE7F3; color: #9D174D; }
.badge-equipment { background: #DCFCE7; color: #14532D; }
.badge-rent      { background: #FEF3C7; color: #92400E; }
.badge-lab       { background: #EDE9FE; color: #4C1D95; }
.badge-course    { background: #CCFBF1; color: #134E4A; }
.badge-service   { background: #FEE2E2; color: #991B1B; }
.badge-jobseeker { background: #E0E7FF; color: #3730A3; }

.ad-featured {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #92400E;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  display: flex; align-items: center; gap: 3px;
}

.ad-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ad-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ad-meta-item {
  display: flex; align-items: center; gap: 0.3rem;
  font-size: 0.78rem; color: var(--gray-600); font-weight: 500;
}

.ad-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-100);
}

.ad-date   { font-size: 0.75rem; color: var(--gray-400); font-weight: 500; }
.ad-action { font-size: 0.8rem; color: var(--primary); font-weight: 600; display: flex; align-items: center; gap: 3px; }

/* ── DentAgah Banner ──────────────────────────────────────────────────────── */
.dentagah-banner {
  margin: 3rem 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--accent) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.dentagah-banner::before,
.dentagah-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.dentagah-banner::before { width: 250px; height: 250px; top: -60px; left: -60px; }
.dentagah-banner::after  { width: 300px; height: 300px; bottom: -80px; right: 20%; }

.dentagah-text { position: relative; z-index: 1; }

.dentagah-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15);
  color: white; padding: 0.3rem 0.8rem;
  border-radius: 100px; font-size: 0.78rem; font-weight: 600; margin-bottom: 0.75rem;
}

.dentagah-title  { font-size: 1.6rem; font-weight: 900; color: white; margin-bottom: 0.5rem; }
.dentagah-desc   { color: rgba(255,255,255,0.8); font-size: 0.9rem; max-width: 400px; }
.dentagah-action { position: relative; z-index: 1; flex-shrink: 0; }

/* ── How It Works ─────────────────────────────────────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.how-card {
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}
.how-card:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.how-num {
  position: absolute;
  top: -14px; right: 50%;
  transform: translateX(50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white; font-size: 0.78rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

.how-icon  { font-size: 2rem; margin: 0.5rem 0 0.75rem; }
.how-title { font-size: 0.9rem; font-weight: 700; color: var(--gray-800); margin-bottom: 0.4rem; }
.how-desc  { font-size: 0.78rem; color: var(--gray-600); line-height: 1.6; }

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }

.form-label { font-size: 0.88rem; font-weight: 600; color: var(--gray-800); }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--gray-800);
  background: white;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  direction: rtl;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,119,182,0.1);
}

.form-textarea { min-height: 140px; resize: vertical; }

.form-error { font-size: 0.78rem; color: var(--error); font-weight: 500; }

.form-hint { font-size: 0.78rem; color: var(--gray-400); }

/* ── Card ─────────────────────────────────────────────────────────────────── */
.card {
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* ── Empty State ──────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-400);
}
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state p { margin-bottom: 1.5rem; font-size: 0.95rem; }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 0.4rem; margin-top: 2.5rem;
}

.page-link {
  width: 38px; height: 38px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; font-weight: 600;
  color: var(--gray-600);
  transition: all var(--transition);
}
.page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-link.active { background: var(--primary); border-color: var(--primary); color: white; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  margin-top: 5rem;
  padding: 3rem 2rem 1.5rem;
}

.footer-inner { max-width: 1100px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }

.footer-logo-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}

.footer-logo-text { font-size: 1.3rem; font-weight: 800; color: white; }

.footer-desc { font-size: 0.85rem; line-height: 1.8; color: rgba(255,255,255,0.6); margin-bottom: 1.25rem; }

.footer-social { display: flex; gap: 0.5rem; }

.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.9rem;
  transition: background var(--transition);
}
.social-link:hover { background: rgba(255,255,255,0.2); }

.footer-col h4 { color: white; font-size: 0.95rem; font-weight: 700; margin-bottom: 1rem; }

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }

.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.83rem; transition: color var(--transition); }
.footer-links a:hover { color: white; }

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ── Utilities ────────────────────────────────────────────────────────────── */
.spacer  { height: 3rem; }
.text-center { text-align: center; }
.text-muted  { color: var(--gray-400); }
.font-bold   { font-weight: 700; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* ── Animations ───────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cat-grid     { grid-template-columns: repeat(4, 1fr); }
  .ads-grid     { grid-template-columns: repeat(2, 1fr); }
  .how-grid     { grid-template-columns: repeat(2, 1fr); }
  .footer-top   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar       { padding: 0 1rem; }
  .nav-links    { display: none; }
  .nav-burger   { display: flex; }

  .search-box   { grid-template-columns: 1fr 1fr; }
  .search-btn   { grid-column: 1 / -1; }

  .dentagah-banner { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  .dentagah-desc   { max-width: 100%; }

  .footer-top   { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 560px) {
  .hero         { padding: 3rem 1.25rem 4rem; }
  .search-box   { grid-template-columns: 1fr; }
  .cat-grid     { grid-template-columns: repeat(2, 1fr); }
  .ads-grid     { grid-template-columns: 1fr; }
  .how-grid     { grid-template-columns: 1fr; }
  .stats-inner  { gap: 1.5rem; }
}

/* ── Logo image ─────────────────────────────────────────────────────────────── */
.nav-logo-img   { height: 36px; width: auto; object-fit: contain; }
.footer-logo-img { height: 32px; width: auto; object-fit: contain; }

/* ════════════════════════════════════════════════════════════════
   اصلاحات: مرکزچین کانتینر + استایل صفحه جزئیات + منوی موبایل
   ════════════════════════════════════════════════════════════════ */

/* کانتینر مرکزچین — رفع راست‌چین شدن محتوای صفحات تکی */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* ── صفحه جزئیات آگهی ──────────────────────────────────────────── */
.detail-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}
.detail-main { min-width: 0; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  font-size: .85rem; color: var(--gray-400); margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--gray-600); }
.breadcrumb a:hover { color: var(--primary); }

.detail-img-wrap {
  border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm); background: var(--gray-100);
}
.detail-img { width: 100%; height: auto; object-fit: cover; }

.detail-head { margin-bottom: 1.5rem; }
.detail-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .85rem; }
.detail-title {
  font-size: 1.6rem; font-weight: 800; color: var(--gray-800);
  line-height: 1.7; margin: 0 0 .85rem;
}
.detail-meta {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  font-size: .9rem; color: var(--gray-600);
}

.detail-section {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem;
}
.detail-section-title {
  font-size: 1.1rem; font-weight: 700; color: var(--gray-800); margin: 0 0 1rem;
}
.detail-desc { color: var(--gray-600); line-height: 2.1; white-space: pre-line; }
.detail-owner-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── ستون کناری ────────────────────────────────────────────────── */
.detail-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-card, .share-card, .report-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 1.5rem;
}
.contact-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 1rem; color: var(--gray-800); }
.contact-row { display: flex; align-items: center; gap: .6rem; margin-bottom: .85rem; color: var(--gray-600); }
.contact-phone { font-weight: 700; color: var(--primary); direction: ltr; }
.contact-none { color: var(--gray-400); font-size: .9rem; }
.share-card h4, .report-card .report-text { font-size: .95rem; font-weight: 700; margin: 0 0 .85rem; color: var(--gray-800); }
.share-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.btn-block { display: flex; width: 100%; justify-content: center; margin-top: .75rem; }

/* ── موبایل: تک‌ستونه + رفع منوی همبرگری ──────────────────────────── */
@media (max-width: 900px) {
  .detail-wrapper { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links.nav-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    padding: .5rem 1rem 1rem;
    gap: 0;
  }
  .nav-links.nav-open li { width: 100%; }
  .nav-links.nav-open a { display: block; padding: .9rem .5rem; border-radius: 8px; }
}

/* لوگوی متنی روی موبایل کوچک‌تر تا "دنت‌کار | Dentkar" جا شود */
@media (max-width: 480px) {
  .nav-logo-text { font-size: 1.05rem; }
}
