/* ============================================================
   ELECTION PROJECT - LUXURY STYLESHEET
   ============================================================ */

:root {
  --gold:        #C9A84C;
  --gold-light:  #E2C97E;
  --gold-dark:   #A07830;
  --gold-glow:   rgba(201,168,76,0.25);
  --black:       #0D0D0D;
  --dark:        #1A1A1A;
  --dark-2:      #242424;
  --gray-dark:   #3A3A3A;
  --gray:        #6B6B6B;
  --gray-light:  #B0B0B0;
  --gray-bg:     #F5F5F3;
  --gray-border: #E8E8E8;
  --white:       #FFFFFF;
  --off-white:   #FAFAF8;
  --iran-green:  #239F40;
  --iran-red:    #DA0000;
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   36px;
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg:   0 16px 56px rgba(0,0,0,0.18);
  --shadow-gold: 0 8px 32px rgba(201,168,76,0.3);
  --transition:  all 0.3s cubic-bezier(0.4,0,0.2,1);
  --font:        'Vazirmatn', sans-serif;
}

/* ---------- LOCAL FONT: Vazirmatn (self-hosted, weights 600-900 only) ---------- */
/* Arabic subset (Persian) + Latin subset. font-display: swap keeps text visible. */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/vazirmatn-arabic-600-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/vazirmatn-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/vazirmatn-arabic-700-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/vazirmatn-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/vazirmatn-arabic-800-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/vazirmatn-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/vazirmatn-arabic-900-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/vazirmatn-latin-900-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--off-white);
  color: var(--dark);
  line-height: 1.7;
  direction: rtl;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gold-text { color: var(--gold); }

/* ---------- IRAN FLAG BAR ---------- */
.iran-flag-bar {
  display: flex;
  height: 5px;
  width: 100%;
}
.iran-flag-bar .flag-green { flex: 1; background: var(--iran-green); }
.iran-flag-bar .flag-white { flex: 1; background: var(--white); }
.iran-flag-bar .flag-red   { flex: 1; background: var(--iran-red); }

/* ---------- HEADER & NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13,13,13,0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.1rem;
}
.logo-icon { font-size: 1.6rem; color: var(--gold); }
.logo-text strong { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  color: var(--gray-light);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
}
.nav-links a:hover {
  color: var(--gold);
  background: rgba(201,168,76,0.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--black);
}/* ---------- SECTION TITLES ---------- */
.section-title {
  text-align: center;
  margin-bottom: 56px;
}.section-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
}
.section-title p {
  margin-top: 12px;
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}/* ============================================================
   INDEX PAGE SECTIONS
   ============================================================ */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--black);
  overflow: hidden;
}.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold-light);
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 24px;
}.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-poster {
  margin-top: 3rem;
  text-align: center;
  max-width: 600px; /* محدود کردن عرض کانتینر */
  margin-left: auto;
  margin-right: auto;
}

.hero-poster img {
  width: 100%;
  height: auto;
  object-fit: contain; /* حفظ نسبت تصویر */
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-poster img:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  .hero-poster {
    margin-top: 2rem;
    max-width: 90%;
  }
}

/* ---------- CANDIDATES ---------- */
.candidates-section { padding: 100px 0; background: var(--off-white); }
.candidates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.candidate-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-border);
  transition: var(--transition);
  display: block;
}
.candidate-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.7) 0%, transparent 50%);
}
.card-body { padding: 24px; }
.card-specialty {
  display: inline-block;
  background: var(--gold-glow);
  color: var(--gold-dark);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.card-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}/* ---------- GOALS ---------- */
.goals-section { padding: 100px 0; background: var(--dark); }
.goals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.goal-card {
  background: var(--dark-2);
  border: 1px solid var(--gray-dark);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  transition: var(--transition);
}
.goal-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.goal-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}
.goal-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.goal-card p { color: var(--gray-light); font-size: 0.92rem; line-height: 1.7; }

/* ---------- NEWS ---------- */
.news-section { padding: 100px 0; background: var(--off-white); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-border);
  transition: var(--transition);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}.news-body { padding: 24px; }.news-date { color: var(--gray-light); font-size: 0.82rem; }
.news-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.5;
}
.news-body p { color: var(--gray); font-size: 0.88rem; line-height: 1.6; }

/* ---------- CONTACT ---------- */
.contact-section { padding: 100px 0; background: var(--dark); }.contact-info h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}
.contact-info p { color: var(--gray-light); line-height: 1.8; margin-bottom: 32px; }.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--dark-2);
  border: 1px solid var(--gray-dark);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.contact-item:hover { border-color: var(--gold); }.contact-form {
  background: var(--dark-2);
  border: 1px solid var(--gray-dark);
  border-radius: var(--radius-xl);
  padding: 36px;
}
.form-group { margin-bottom: 20px; }.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--dark);
  border: 1px solid var(--gray-dark);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: var(--transition);
  direction: rtl;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--gray-dark);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 0;
  text-align: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.1rem;
}
.footer-logo .logo-icon { color: var(--gold); font-size: 1.4rem; }
.footer-logo strong { color: var(--gold); }
.footer-copy { color: var(--gray); font-size: 0.85rem; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-nav a {
  color: var(--gray-light);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-nav a:hover { color: var(--gold); }

/* ============================================================
   CANDIDATE PAGE STYLES
   ============================================================ */

.candidate-page { background: var(--off-white); }

/* ---------- CP HERO ---------- */
.cp-hero {
  position: relative;
  background: var(--black);
  padding: 100px 0 60px;
  overflow: hidden;
}
.cp-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 10% 50%, rgba(201,168,76,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 90% 20%, rgba(201,168,76,0.06) 0%, transparent 50%);
}
.cp-hero-inner { position: relative; z-index: 2; }
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-light);
  font-size: 0.9rem;
  margin-bottom: 40px;
  padding: 8px 16px;
  border: 1px solid var(--gray-dark);
  border-radius: var(--radius-xl);
  transition: var(--transition);
}
.back-btn:hover { color: var(--gold); border-color: var(--gold); }
.back-btn span { transform: scaleX(-1); display: inline-block; }

.cp-hero-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
}
.cp-photo-wrap { position: relative; }
.cp-main-photo {
  width: 280px;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 3px solid rgba(201,168,76,0.4);
  box-shadow: var(--shadow-gold);
}
.cp-photo-badge {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  padding: 6px 20px;
  border-radius: var(--radius-xl);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.cp-specialty-tag {
  display: inline-block;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold-light);
  padding: 6px 18px;
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.cp-name {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}
.cp-tagline {
  color: var(--gray-light);
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 28px;
  padding-right: 16px;
  border-right: 3px solid var(--gold);
}
.cp-quick-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
}
.cqs-item {
  text-align: center;
  padding: 12px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
}
.cqs-item strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold);
}
.cqs-item span { color: var(--gray-light); font-size: 0.82rem; }
.cp-social { display: flex; gap: 10px; }
.cp-social-link {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}
.cp-social-link:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
}

/* ---------- CP TABS ---------- */
.cp-tabs-section {
  background: var(--dark);
  border-bottom: 1px solid var(--gray-dark);
  position: sticky;
  top: 75px;
  z-index: 100;
}
.cp-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 0;
  overflow-x: auto;
}
.cp-tab {
  padding: 10px 24px;
  border-radius: var(--radius-xl);
  color: var(--gray-light);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
}
.cp-tab:hover { color: var(--gold); background: rgba(201,168,76,0.08); }
.cp-tab.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
}/* Plans */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.plan-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: var(--transition);
}
.plan-card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-4px); }.plan-card h4 { font-size: 1.05rem; font-weight: 700; color: var(--dark); }
.plan-card p { color: var(--gray); font-size: 0.9rem; line-height: 1.7; margin-bottom: 16px; }/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--dark);
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,13,13,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  font-size: 2rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ---------- CP NAV ---------- */
.cp-nav-section {
  padding: 60px 0;
  background: var(--dark);
  border-top: 1px solid var(--gray-dark);
}/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .candidates-grid,
  .goals-grid,
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .cp-hero-content { grid-template-columns: 1fr; text-align: center; }
  .cp-main-photo { width: 220px; height: 270px; }
  .cp-quick-stats { justify-content: center; }
  .cp-social { justify-content: center; }
  .cp-tagline { border-right: none; border-bottom: 3px solid var(--gold); padding: 0 0 12px; }
  .cp-content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 75px; right: 0; left: 0;
    background: var(--dark);
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-dark);
  }
  .candidates-grid,
  .goals-grid,
  .news-grid,
  .plans-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .cp-quick-stats { flex-wrap: wrap; }
  .timeline::before { display: none; }
  .timeline-item { grid-template-columns: 1fr; gap: 12px; }
  .tl-dot { display: none; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   JS COMPONENTS — append to end of style.css
   ============================================================ */

/* Reveal animation */
.reveal-ready {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-ready.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark-2);
  border: 1px solid var(--gray-dark);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--gray-light);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  min-width: 280px;
  max-width: 480px;
  direction: rtl;
}
.toast.toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-success { border-color: #2ecc71; }
.toast-error { border-color: #e74c3c; }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-success .toast-icon { color: #2ecc71; }
.toast-error .toast-icon { color: #e74c3c; }
.toast-msg { flex: 1; }
.toast-close {
  background: none; border: none;
  color: var(--gray); font-size: 1.2rem;
  cursor: pointer; padding: 0 4px;
  line-height: 1;
}
.toast-close:hover { color: var(--white); }

/* Form error state */
input.error, textarea.error, select.error {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 3px rgba(231,76,60,0.15);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
}
.lightbox-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox-img {
  max-width: 75vw;
  max-height: 80vh;
  border-radius: var(--radius-lg);
  object-fit: contain;
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute;
  top: -48px; left: 0;
  background: none; border: none;
  color: var(--white); font-size: 2rem;
  cursor: pointer; line-height: 1;
}
.lightbox-prev, .lightbox-next {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.lightbox-prev:hover, .lightbox-next:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.lightbox-caption {
  position: absolute;
  bottom: -36px; left: 0; right: 0;
  text-align: center;
  color: var(--gray-light);
  font-size: 0.88rem;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ============================================================
   COMPATIBILITY PATCH — اضافه کن به انتهای style.css
   ============================================================ */

/* Hero fixes */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 80px;
  width: 100%;
}
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}
.shape-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--gold), transparent);
  top: -200px; right: -100px;
}
.shape-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--gold-light), transparent);
  bottom: -100px; left: -100px;
}
.shape-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--gold), transparent);
  top: 50%; left: 40%;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 24px;
}
.hero-subtitle {
  color: var(--gray-light);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 620px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
}
.stat-item:first-child { padding-right: 0; }
.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  color: var(--gray-light);
  font-size: 0.88rem;
}
.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.12);
  margin: 0;
  align-self: stretch;
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray-light);
  font-size: 0.82rem;
  z-index: 2;
}
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  animation: scrollBounce 1.5s infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(6px); }
}

/* Button primary */
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  box-shadow: var(--shadow-gold);
  border: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201,168,76,0.45);
}
.btn-full { width: 100%; justify-content: center; }

/* Section header */
.section { padding: 100px 0; }
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  background: var(--gold-glow);
  color: var(--gold-dark);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 6px 20px;
  border-radius: var(--radius-xl);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 14px;
}
.goals-section .section-title,
.contact-section .section-title,
.news-section .section-title {
  color: var(--white);
}
.section-desc {
  color: var(--gray);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}
.goals-section .section-desc,
.contact-section .section-desc {
  color: var(--gray-light);
}

/* Candidate card fixes */
.card-image-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
}
.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.candidate-card:hover .card-image-wrap img { transform: scale(1.05); }
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.75) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: var(--transition);
}
.candidate-card:hover .card-overlay { opacity: 1; }
.card-overlay span {
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
}
.card-number {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}
.card-bio { color: var(--gray); font-size: 0.9rem; line-height: 1.6; margin-bottom: 20px; }
.card-arrow {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition);
}
.candidate-card:hover .card-arrow { transform: translateX(-6px); }

/* Quick links */
.quick-access-section { padding: 80px 0; background: var(--dark); }
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.quick-link-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--dark-2);
  border: 1px solid var(--gray-dark);
  border-radius: var(--radius-lg);
  color: var(--gray-light);
  transition: var(--transition);
}
.quick-link-item:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateX(-4px);
  box-shadow: var(--shadow-gold);
}
.ql-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.ql-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}
.quick-link-item:hover .ql-name { color: var(--gold); }
.ql-role {
  font-size: 0.8rem;
  color: var(--gray);
  display: none;
}
.ql-arrow {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
}

/* Contact wrapper */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--gray-dark);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.contact-item:hover { border-color: var(--gold); }
.contact-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-item strong { display: block; color: var(--white); margin-bottom: 4px; }
.contact-item p { color: var(--gray-light); font-size: 0.9rem; margin: 0; }
.social-links { display: flex; gap: 12px; margin-top: 8px; }
.social-btn {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}
.social-btn:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
}

/* Form success message */
.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 20px;
  background: rgba(46,204,113,0.1);
  border: 1px solid rgba(46,204,113,0.3);
  border-radius: var(--radius-md);
  color: #2ecc71;
  font-size: 0.92rem;
  text-align: center;
}
.form-success.show { display: block; }

/* News featured */
.news-featured { grid-column: span 3; }
.news-image-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--dark);
}
.news-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.news-featured:hover .news-image-wrap img { transform: scale(1.04); }
.news-tag-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  padding: 4px 14px;
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  font-weight: 700;
}
.news-date {
  display: block;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.news-read-more {
  display: inline-block;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 12px;
  transition: var(--transition);
}
.news-read-more:hover { gap: 8px; opacity: 0.8; }

/* Responsive patches */
@media (max-width: 1024px) {
  .quick-links-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrapper { grid-template-columns: 1fr; }
  .news-featured { grid-column: span 2; }
}
@media (max-width: 768px) {
  .quick-links-grid { grid-template-columns: 1fr; }
  .news-featured { grid-column: span 1; }
  .hero-stats { gap: 16px; }
  .stat-item { padding: 0 16px; }
}

.cp-tab-content { display: none; }
.cp-tab-content.active { display: block; }

/* Videos Grid */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.video-item h4 {
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
}

.h_iframe-aparat_embed_frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.h_iframe-aparat_embed_frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- HEADER SCROLLED STATE ---------- */
.site-header.scrolled {
  background: rgba(13,13,13,0.85);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

/* ---------- CANDIDATE PAGE: MISSING BASE STYLES (minimal) ---------- */
/* Content section spacing */
.cp-content-section { padding: 80px 0; }
.cp-content-section .container > h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 24px; color: var(--dark); }

/* Bio two-column layout */
.cp-content-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.cp-text-block h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 20px; color: var(--dark); }
.cp-text-block p {
  color: var(--gray);
  line-height: 1.9;
  margin-bottom: 18px;
  font-size: 0.97rem;
}
.cp-values-block {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.cp-values-block h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-dark);
  margin-bottom: 18px;
}
.cp-values-list { display: flex; flex-direction: column; gap: 16px; }
.cp-values-list li { display: flex; align-items: flex-start; gap: 12px; }
.cv-icon { font-size: 1.3rem; flex-shrink: 0; line-height: 1.7; }
.cp-values-list strong { display: block; font-size: 0.95rem; color: var(--dark); margin-bottom: 2px; }
.cp-values-list p { color: var(--gray); font-size: 0.85rem; line-height: 1.6; margin: 0; }

/* Education / Career timeline */
.timeline { display: flex; flex-direction: column; gap: 8px; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  right: 19px;
  top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(201,168,76,0.15));
}
.timeline-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 24px;
  position: relative;
  padding-bottom: 8px;
}
.tl-dot {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--off-white);
}
.tl-dot.gold-dot { background: linear-gradient(135deg, var(--gold-light), var(--gold)); }
.tl-content {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: var(--transition);
}
.tl-content:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.tl-year {
  display: inline-block;
  background: var(--gold-glow);
  color: var(--gold-dark);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 3px 12px;
  border-radius: var(--radius-xl);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.tl-content h4 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.tl-content p { color: var(--gray); font-size: 0.88rem; line-height: 1.7; }

/* Plan number badge */
.plan-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.plan-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.plan-timeline {
  display: inline-block;
  margin-top: 12px;
  background: var(--gold-glow);
  color: var(--gold-dark);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 5px 14px;
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Gallery intro text */
.gallery-intro {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* Candidate page: other-candidates nav */
.cp-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cp-nav-candidates { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cp-nav-candidates > span { color: var(--gray-light); font-size: 0.85rem; font-weight: 600; }
.cp-nav-link {
  color: var(--gray-light);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border: 1px solid var(--gray-dark);
  border-radius: var(--radius-xl);
  transition: var(--transition);
}
.cp-nav-link:hover { color: var(--gold); border-color: var(--gold); }

/* Hero intro block (candidate pages) */
.cp-intro { min-width: 0; }

/* Contact form two-column row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Responsive tweaks for the new blocks */
@media (max-width: 1024px) {
  .cp-content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .timeline::before { display: none; }
  .timeline-item { grid-template-columns: 1fr; gap: 12px; }
  .tl-dot { display: none; }
  .form-row { grid-template-columns: 1fr; }
}
