/* ===== Portal Dizicheh - Main Stylesheet ===== */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

:root {
  --green-dark: #1b5e20;
  --green: #2e7d32;
  --green-light: #4caf50;
  --green-pale: #e8f5e9;
  --blue-dark: #0d47a1;
  --blue: #1565c0;
  --blue-light: #42a5f5;
  --blue-pale: #e3f2fd;
  --orange: #e65100;
  --orange-light: #f57c00;
  --red: #c62828;
  --gold: #f9a825;
  --bg: #f0f4f8;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #eeeeee;
  --gray-300: #e0e0e0;
  --gray-400: #bdbdbd;
  --gray-500: #9e9e9e;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;
  --text-body: #37474f;
  --text-muted: #78909c;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.14);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.18);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --transition: 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-body);
  direction: rtl;
  line-height: 1.8;
  font-size: 15px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }
button { font-family: 'Vazirmatn', Tahoma, sans-serif; }

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 4px; }

/* ===== TOPBAR ===== */
.topbar {
  background: var(--green-dark);
  color: rgba(255,255,255,0.88);
  padding: 7px 0;
  font-size: 12.5px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar-right, .topbar-left { display: flex; gap: 18px; align-items: center; }

/* ===== HEADER ===== */
.site-header {
  background: linear-gradient(135deg, #1b5e20 0%, #0d47a1 100%);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 24px rgba(0,0,0,0.35);
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 12px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  flex-shrink: 0;
}
.logo-circle {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  backdrop-filter: blur(8px);
}
.logo-info h1 { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; }
.logo-info p { font-size: 11px; opacity: 0.72; font-weight: 300; }

.main-nav { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.main-nav a {
  color: rgba(255,255,255,0.88);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(255,255,255,0.22);
  color: white;
}

.header-auth { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.hamburger {
  display: none;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 22px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.hamburger:hover { background: rgba(255,255,255,0.25); }

.mobile-nav { display: none; background: #1a3a1f; padding: 8px; border-top: 1px solid rgba(255,255,255,0.1); }
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  color: rgba(255,255,255,0.88);
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { background: rgba(255,255,255,0.12); }

/* User button */
.user-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: white;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  transition: var(--transition);
}
.user-btn:hover { background: rgba(255,255,255,0.28); }
.user-avatar-sm {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--green-light);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px;
  border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--green); color: white; }
.btn-primary:hover { background: var(--green-dark); }
.btn-blue { background: var(--blue); color: white; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-orange { background: var(--orange); color: white; }
.btn-orange:hover { background: #c55a00; }
.btn-outline-white { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.65); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }
.btn-outline { background: white; color: var(--green); border: 2px solid var(--green); }
.btn-outline:hover { background: var(--green-pale); }
.btn-danger { background: var(--red); color: white; }
.btn-ghost { background: transparent; color: var(--text-body); border: 1px solid var(--gray-300); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-success { background: #2e7d32; color: white; }
.btn-sm { padding: 5px 12px; font-size: 12.5px; }
.btn-lg { padding: 13px 32px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ===== CONTAINER ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ===== PAGE SECTIONS ===== */
.page-section { display: none; min-height: calc(100vh - 200px); animation: fadeInUp 0.3s ease; }
.page-section.active { display: block; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SECTION HEADER ===== */
.section-header {
  background: linear-gradient(135deg, var(--green-dark), var(--blue-dark));
  color: white;
  padding: 48px 0 62px;
  position: relative;
  overflow: hidden;
}
.section-header::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.section-header::after {
  content: '';
  position: absolute;
  bottom: -24px; left: 0; right: 0;
  height: 48px;
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 48px 48px 0 0;
}
.section-header h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; position: relative; z-index: 1; }
.section-header p { font-size: 15px; opacity: 0.8; position: relative; z-index: 1; }

/* ===== HERO SLIDER ===== */
.hero-slider { position: relative; height: 520px; overflow: hidden; background: #111; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0.65; }
.slide-content {
  position: absolute; bottom: 80px; right: 60px;
  color: white;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  max-width: 520px;
}
.slide-content h2 { font-size: 34px; font-weight: 800; margin-bottom: 10px; }
.slide-content p { font-size: 16px; opacity: 0.92; }

.slider-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.slider-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer; border: none; transition: var(--transition);
}
.slider-dot.active { background: white; transform: scale(1.4); }

.slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  border: 2px solid rgba(255,255,255,0.5);
  color: white; width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); backdrop-filter: blur(6px);
}
.slider-nav:hover { background: rgba(0,0,0,0.55); }
.slider-prev { right: 20px; }
.slider-next { left: 20px; }

/* ===== TICKER ===== */
.news-ticker {
  background: linear-gradient(90deg, #b71c1c, var(--orange));
  color: white;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  height: 42px;
}
.ticker-label {
  background: rgba(0,0,0,0.3);
  padding: 0 20px;
  font-weight: 700; font-size: 13px;
  display: flex; align-items: center;
  flex-shrink: 0; gap: 6px; white-space: nowrap;
}
.ticker-content { flex: 1; overflow: hidden; display: flex; align-items: center; }
.ticker-scroll {
  display: flex; gap: 80px; white-space: nowrap;
  animation: tickerAnim 30s linear infinite;
  font-size: 13.5px; font-weight: 500;
}
@keyframes tickerAnim {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== STATS BAR ===== */
.stats-bar { background: white; padding: 22px 0; box-shadow: var(--shadow-sm); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item {
  text-align: center; padding: 10px 20px;
  border-left: 1px solid var(--gray-200);
}
.stat-item:last-child { border-left: none; }
.stat-number { font-size: 30px; font-weight: 800; color: var(--green); line-height: 1.1; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 5px; }

/* ===== QUICK ACCESS ===== */
.quick-access { padding: 36px 0; background: var(--bg); }
.section-title-main {
  font-size: 20px; font-weight: 700; color: var(--gray-900);
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--green);
}
.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.quick-card {
  background: white; border-radius: var(--radius-lg);
  padding: 22px 14px; text-align: center;
  cursor: pointer; transition: all 0.3s;
  box-shadow: var(--shadow-sm); border: 2px solid transparent;
}
.quick-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: var(--green-light); }
.quick-icon { font-size: 38px; margin-bottom: 11px; display: block; }
.quick-title { font-size: 13.5px; font-weight: 600; color: var(--text-body); }

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: 20px; font-weight: 700; color: var(--gray-900);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.section-title::before { content: ''; width: 4px; height: 24px; background: var(--green); border-radius: 2px; }
.section-title .see-all { font-size: 13px; color: var(--blue); font-weight: 500; margin-right: auto; margin-left: 0; cursor: pointer; }
.section-title .see-all:hover { text-decoration: underline; }

/* ===== NEWS CARDS ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card {
  background: white; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: all 0.3s; cursor: pointer;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.news-card-img-wrap { width: 100%; height: 195px; overflow: hidden; background: var(--gray-200); }
.news-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news-card:hover .news-card-img-wrap img { transform: scale(1.07); }
.news-card-emoji {
  width: 100%; height: 195px;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
  background: linear-gradient(135deg, var(--green-pale), var(--blue-pale));
}
.news-card-body { padding: 16px; }
.news-card-cat {
  display: inline-block;
  background: var(--green-pale); color: var(--green-dark);
  padding: 3px 11px; border-radius: 20px;
  font-size: 11px; font-weight: 700; margin-bottom: 9px;
}
.news-card-title {
  font-size: 15px; font-weight: 700; color: var(--gray-900);
  margin-bottom: 8px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-excerpt {
  font-size: 13px; color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 13px; line-height: 1.7;
}
.news-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 11px; border-top: 1px solid var(--gray-200);
  font-size: 12px; color: var(--text-muted);
}

/* ===== CANDIDATE CARDS ===== */
.candidates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.candidate-card {
  background: white; border-radius: var(--radius);
  padding: 26px 20px; box-shadow: var(--shadow-sm);
  transition: all 0.3s; text-align: center; cursor: pointer;
  border: 2px solid transparent; position: relative;
}
.candidate-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--green-light); }
.candidate-rank {
  position: absolute; top: 14px; right: 14px;
  background: var(--gold); color: white;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.candidate-avatar {
  width: 82px; height: 82px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-pale), var(--blue-pale));
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; margin: 0 auto 16px;
  border: 3px solid var(--green-light);
}
.candidate-name { font-size: 17px; font-weight: 700; margin-bottom: 5px; }
.candidate-job { font-size: 13px; color: var(--text-muted); margin-bottom: 13px; }
.candidate-votes {
  background: var(--green-pale); color: var(--green-dark);
  padding: 5px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 700; display: inline-block; margin-bottom: 14px;
}
.vote-bar { background: var(--gray-200); border-radius: 4px; height: 7px; margin-bottom: 14px; overflow: hidden; }
.vote-bar-fill { height: 100%; background: linear-gradient(90deg, var(--green), var(--green-light)); border-radius: 4px; transition: width 1.2s ease; }
.candidate-card-footer { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ===== RESUME / JOB CARDS ===== */
.resume-card {
  background: white; border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
  transition: all 0.3s; display: flex; gap: 18px; align-items: flex-start;
  margin-bottom: 14px; border-right: 4px solid var(--blue);
}
.resume-card:hover { transform: translateX(-4px); box-shadow: var(--shadow-md); }
.resume-avatar {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; flex-shrink: 0; border: 2px solid var(--blue-light);
}
.resume-info { flex: 1; min-width: 0; }
.resume-name { font-size: 17px; font-weight: 700; margin-bottom: 3px; }
.resume-profession { font-size: 13px; color: var(--blue); font-weight: 600; margin-bottom: 7px; }
.resume-skills { font-size: 13px; color: var(--text-muted); margin-bottom: 5px; line-height: 1.7; }
.resume-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.resume-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.job-card {
  background: white; border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
  transition: all 0.3s; margin-bottom: 14px;
  border-right: 4px solid var(--orange);
}
.job-card:hover { transform: translateX(-4px); box-shadow: var(--shadow-md); }
.job-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; flex-wrap: wrap; gap: 8px; }
.job-title { font-size: 17px; font-weight: 700; }
.job-company { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.job-badge { background: var(--orange-light); color: white; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.job-body { font-size: 13.5px; color: var(--text-body); line-height: 1.7; margin-bottom: 12px; }
.job-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.job-salary { font-size: 14px; font-weight: 700; color: var(--green-dark); }
.job-actions { display: flex; gap: 8px; }

/* ===== BUSINESS CARDS ===== */
.business-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.business-card {
  background: white; border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
  transition: all 0.3s; text-align: center;
}
.business-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.business-icon { font-size: 42px; margin-bottom: 12px; display: block; }
.business-name { font-size: 16px; font-weight: 700; margin-bottom: 7px; }
.business-cat {
  background: #fff3e0; color: var(--orange);
  padding: 3px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 600; display: inline-block; margin-bottom: 11px;
}
.business-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.7; }
.business-info { font-size: 12.5px; color: var(--text-muted); line-height: 2; text-align: right; }
.business-actions { margin-top: 14px; display: flex; gap: 8px; justify-content: center; }

/* ===== CLASSIFIEDS ===== */
.classified-card {
  background: white; border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
  margin-bottom: 12px; transition: all 0.3s;
  display: flex; gap: 16px; align-items: center;
}
.classified-card:hover { box-shadow: var(--shadow-md); transform: translateX(-3px); }
.classified-icon {
  font-size: 34px; width: 58px; height: 58px;
  background: var(--gray-100); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.classified-body { flex: 1; min-width: 0; }
.classified-title { font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.classified-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 7px; }
.classified-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }
.classified-cat-badge { display: inline-block; background: var(--blue-pale); color: var(--blue); padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.classified-price { font-size: 15px; font-weight: 800; color: var(--green-dark); white-space: nowrap; flex-shrink: 0; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--gray-800); margin-bottom: 7px; }
.form-control {
  width: 100%; padding: 10px 14px;
  border: 2px solid var(--gray-300); border-radius: var(--radius-sm);
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: 14px; color: var(--text-body);
  transition: border-color 0.2s; background: white; direction: rtl;
}
.form-control:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(46,125,50,0.12); }
textarea.form-control { resize: vertical; min-height: 110px; line-height: 1.7; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card {
  background: white; border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow);
  max-width: 680px; margin: 30px auto;
}
.form-card-title {
  font-size: 20px; font-weight: 700; margin-bottom: 24px;
  padding-bottom: 16px; border-bottom: 2px solid var(--gray-200);
  display: flex; align-items: center; gap: 10px;
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.62); z-index: 2000;
  backdrop-filter: blur(4px); padding: 20px; overflow-y: auto;
}
.modal-overlay.open { display: flex; align-items: flex-start; justify-content: center; padding-top: 60px; }
.modal {
  background: white; border-radius: var(--radius-lg);
  padding: 32px; max-width: 600px; width: 100%;
  position: relative; box-shadow: var(--shadow-lg);
  animation: modalIn 0.28s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute; top: 14px; left: 14px;
  background: var(--gray-100); border: none; border-radius: 50%;
  width: 36px; height: 36px; cursor: pointer; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); line-height: 1;
}
.modal-close:hover { background: var(--gray-300); }
.modal-title { font-size: 20px; font-weight: 700; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 2px solid var(--gray-200); }

/* ===== TAGS / BADGES ===== */
.tag {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.tag-green { background: var(--green-pale); color: var(--green-dark); }
.tag-blue { background: var(--blue-pale); color: var(--blue-dark); }
.tag-orange { background: #fff3e0; color: var(--orange); }
.tag-red { background: #ffebee; color: var(--red); }

/* ===== ALERT ===== */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  margin-bottom: 16px; font-size: 14px;
  display: flex; align-items: flex-start; gap: 10px;
}
.alert-success { background: #e8f5e9; color: #1b5e20; border-right: 4px solid var(--green); }
.alert-danger { background: #ffebee; color: #c62828; border-right: 4px solid var(--red); }
.alert-info { background: #e3f2fd; color: #0d47a1; border-right: 4px solid var(--blue); }
.alert-warning { background: #fff8e1; color: #e65100; border-right: 4px solid var(--orange); }

/* ===== TOAST ===== */
.toast-container { position: fixed; top: 82px; left: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 9px; }
.toast {
  padding: 13px 20px; border-radius: var(--radius-sm);
  color: white; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg); min-width: 250px; max-width: 320px;
  display: flex; align-items: center; gap: 10px;
  animation: toastIn 0.3s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
.toast-success { background: #2e7d32; }
.toast-error { background: #c62828; }
.toast-info { background: var(--blue); }
.toast-warning { background: var(--orange); }

/* ===== LAYOUT HELPERS ===== */
.two-col { display: grid; grid-template-columns: 1fr 310px; gap: 24px; }
.content-padding { padding-top: 36px; padding-bottom: 48px; }

/* ===== SIDEBAR ===== */
.sidebar-widget {
  background: white; border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.sidebar-widget-title {
  font-size: 15px; font-weight: 700; margin-bottom: 16px;
  padding-bottom: 11px; border-bottom: 2px solid var(--gray-200);
  display: flex; align-items: center; gap: 8px;
}
.sidebar-news-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--gray-100); cursor: pointer;
  transition: var(--transition);
}
.sidebar-news-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-news-item:hover .sidebar-news-title { color: var(--green); }
.sidebar-news-thumb {
  width: 54px; height: 54px; border-radius: var(--radius-sm);
  background: var(--gray-200); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.sidebar-news-title { font-size: 13px; font-weight: 600; line-height: 1.5; }
.sidebar-news-date { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.35; display: block; }
.empty-state h4 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--gray-700); }
.empty-state p { font-size: 14px; }

/* ===== DETAIL VIEW ===== */
.detail-hero-img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; }
.article-content { font-size: 15px; line-height: 2.1; color: var(--text-body); }
.article-content h3 { font-size: 18px; font-weight: 700; margin: 26px 0 12px; color: var(--gray-900); border-right: 4px solid var(--green); padding-right: 12px; }
.article-content p { margin-bottom: 16px; }

/* ===== VOTE CHART ===== */
.vote-row { margin-bottom: 18px; }
.vote-row-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.vote-row-name { font-size: 14px; font-weight: 600; }
.vote-row-count { font-size: 14px; font-weight: 700; color: var(--green-dark); }

/* ===== CATEGORY PILLS ===== */
.cat-pill-list { display: flex; flex-direction: column; gap: 8px; }
.cat-pill {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: var(--gray-100); border-radius: var(--radius-sm);
  cursor: pointer; transition: var(--transition); font-size: 13.5px;
}
.cat-pill:hover { background: var(--green-pale); color: var(--green-dark); }
.cat-pill-count { background: white; color: var(--text-muted); padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; }

/* ===== FILTER BAR ===== */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.filter-chip {
  padding: 6px 16px; border: 2px solid var(--gray-300); border-radius: 20px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: var(--transition); background: white; color: var(--text-body);
}
.filter-chip:hover { border-color: var(--green); color: var(--green); }
.filter-chip.active { background: var(--green); color: white; border-color: var(--green); }

/* ===== SEARCH ===== */
.search-box { display: flex; margin-bottom: 20px; }
.search-input {
  flex: 1; padding: 11px 16px;
  border: 2px solid var(--gray-300); border-left: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-family: 'Vazirmatn', Tahoma, sans-serif; font-size: 14px;
  direction: rtl; transition: border-color 0.2s;
}
.search-input:focus { outline: none; border-color: var(--green); }
.search-btn {
  padding: 11px 20px; background: var(--green); color: white;
  border: none; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer; font-size: 14px; font-family: 'Vazirmatn', Tahoma, sans-serif;
  transition: var(--transition); font-weight: 600;
}
.search-btn:hover { background: var(--green-dark); }

/* ===== FOOTER ===== */
.site-footer { background: #1a1a2e; color: rgba(255,255,255,0.78); padding: 52px 0 0; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-about-title { font-size: 17px; font-weight: 700; color: white; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.footer-about p { font-size: 13px; line-height: 1.95; color: rgba(255,255,255,0.58); }
.footer-col-title { font-size: 15px; font-weight: 700; color: white; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a { font-size: 13px; color: rgba(255,255,255,0.6); cursor: pointer; transition: var(--transition); }
.footer-col ul a:hover { color: var(--green-light); }
.footer-bottom { text-align: center; padding: 18px 0; font-size: 13px; color: rgba(255,255,255,0.38); border-top: 1px solid rgba(255,255,255,0.07); margin-top: 0; }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 24px; left: 24px;
  background: var(--green); color: white;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  cursor: pointer; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: all 0.3s; z-index: 999;
  opacity: 0; pointer-events: none;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--green-dark); transform: translateY(-4px); }

/* ===== DIVIDER ===== */
.divider { height: 1px; background: var(--gray-200); margin: 28px 0; }

/* ===== BANNER ===== */
.banner-wrap { margin: 16px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.banner-wrap img { width: 100%; display: block; }

/* ===== PROGRAM BOX ===== */
.program-box {
  background: var(--green-pale); border-radius: var(--radius-sm);
  padding: 16px; font-size: 14px; line-height: 1.85;
  color: var(--text-body); border-right: 3px solid var(--green);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 860px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .candidates-grid { grid-template-columns: repeat(2, 1fr); }
  .business-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero-slider { height: 280px; }
  .slide-content { bottom: 36px; right: 20px; }
  .slide-content h2 { font-size: 20px; }
  .slide-content p { font-size: 13px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .candidates-grid { grid-template-columns: 1fr; }
  .business-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 21px; }
  .classified-card { flex-wrap: wrap; }
}
