/* ========================================================
   نورستان — استایل اصلی
   ======================================================== */

/* ===== فونت وزیرمتن (self-hosted) ===== */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/static/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/static/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/static/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/static/fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/static/fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ===== متغیرهای CSS ===== */
:root {
  --navy-deep: #1B2456;
  --navy-ink: #202C5C;
  --ochre: #E8A93B;
  --sun-yellow: #F5C242;
  --paper: #FDFBF6;
  --ink-muted: #5B6172;
  --white: #FFFFFF;
  --navy-light: #2D3A7A;
  --paper-dark: #F5F0E8;
  --ochre-dark: #C8891C;

  --font: 'Vazirmatn', system-ui, -apple-system, sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-xs: 0 1px 4px rgba(27,36,86,0.07);
  --shadow-sm: 0 2px 10px rgba(27,36,86,0.10);
  --shadow-md: 0 6px 24px rgba(27,36,86,0.13);
  --shadow-lg: 0 12px 40px rgba(27,36,86,0.16);

  --container: 1200px;
  --pad: clamp(1rem, 5vw, 2rem);

  --header-h: 72px;
  --transition: 0.25s ease;
}

/* ===== ریست ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  direction: rtl;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background-color: var(--paper);
  color: var(--navy-ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

/* ===== ابزارها ===== */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== هدر ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-deep);
  height: var(--header-h);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.site-logo img {
  height: 44px;
  width: auto;
}

.site-logo .logo-text {
  color: var(--white);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.25;
}

.site-logo .logo-tagline {
  color: var(--ochre);
  font-size: 0.72rem;
  font-weight: 500;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.site-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ochre);
  background: rgba(232,169,59,0.12);
}

.nav-cta {
  background: var(--ochre) !important;
  color: var(--navy-deep) !important;
  font-weight: 700 !important;
  padding: var(--space-2) var(--space-5) !important;
  border-radius: var(--radius-sm) !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover {
  background: var(--sun-yellow) !important;
  transform: translateY(-1px);
}

/* همبرگر */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: var(--space-2);
  color: var(--white);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.nav-toggle:hover { background: rgba(255,255,255,0.12); }

/* ===== هیرو ===== */
.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-ink) 60%, #162044 100%);
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding-block: var(--space-20);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(232,169,59,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(232,169,59,0.15);
  border: 1px solid rgba(232,169,59,0.35);
  color: var(--ochre);
  font-size: 0.82rem;
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: 100px;
  margin-bottom: var(--space-5);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: var(--space-5);
}

.hero-title span {
  color: var(--ochre);
  display: block;
}

.hero-desc {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 500px;
  margin-bottom: var(--space-8);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-svg-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* SVG هیرو — کتاب + طلوع */
.hero-book-svg {
  width: min(420px, 100%);
  filter: drop-shadow(0 20px 60px rgba(232,169,59,0.2));
}

@keyframes sun-rise {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes ray-grow {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}
@keyframes book-open {
  from { transform: scaleX(0.85); opacity: 0.6; }
  to   { transform: scaleX(1);    opacity: 1; }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

.hero-book-svg .book-cover { animation: book-open 0.8s ease-out both; }
.hero-book-svg .sun-circle { animation: sun-rise 0.9s 0.4s ease-out both; }
.hero-book-svg .sun-ray    { animation: ray-grow 0.5s ease-out both; transform-origin: bottom center; }
.hero-book-svg .sun-ray:nth-child(1) { animation-delay: 0.7s; }
.hero-book-svg .sun-ray:nth-child(2) { animation-delay: 0.75s; }
.hero-book-svg .sun-ray:nth-child(3) { animation-delay: 0.8s; }
.hero-book-svg .sun-ray:nth-child(4) { animation-delay: 0.85s; }
.hero-book-svg .sun-ray:nth-child(5) { animation-delay: 0.9s; }
.hero-book-svg .sun-ray:nth-child(6) { animation-delay: 0.95s; }
.hero-book-svg .sun-ray:nth-child(7) { animation-delay: 1.0s; }
.hero-book-svg .sun-glow  { animation: glow-pulse 3s 1.2s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .hero-book-svg * { animation: none !important; }
}

/* ===== دکمه‌ها ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 3px;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ochre);
  color: var(--navy-deep);
  border-color: var(--ochre);
  box-shadow: 0 4px 16px rgba(232,169,59,0.30);
}
.btn-primary:hover {
  background: var(--sun-yellow);
  border-color: var(--sun-yellow);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,169,59,0.40);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy-deep);
  color: var(--white);
  border-color: var(--navy-deep);
}
.btn-navy:hover {
  background: var(--navy-ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.88rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1.05rem; }

/* ===== بخش‌های عمومی ===== */
.section {
  padding-block: var(--space-20);
}

.section-alt {
  background: var(--paper-dark);
}

.section-navy {
  background: var(--navy-deep);
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-label {
  display: inline-block;
  color: var(--ochre);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 900;
  color: var(--navy-ink);
  line-height: 1.25;
  margin-bottom: var(--space-4);
}

.section-navy .section-title { color: var(--white); }

.section-title span { color: var(--ochre); }

.section-desc {
  color: var(--ink-muted);
  font-size: 1rem;
  max-width: 580px;
  margin-inline: auto;
  line-height: 1.8;
}

.section-navy .section-desc { color: rgba(255,255,255,0.7); }

.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--ochre), var(--sun-yellow));
  border-radius: 2px;
  margin-inline: auto;
  margin-top: var(--space-4);
}

/* ===== کارت‌ها ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27,36,86,0.07);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ochre), var(--sun-yellow));
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(27,36,86,0.06);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--navy-ink);
}

.card-icon svg { width: 30px; height: 30px; }

.card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy-ink);
  margin-bottom: var(--space-3);
}

.card-desc {
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* ===== آمار ===== */
.stats-row {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
  padding-block: var(--space-12);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--ochre);
  line-height: 1;
  display: block;
}

.stat-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  margin-top: var(--space-2);
}

/* ===== تب‌ها ===== */
.tabs {
  display: flex;
  gap: var(--space-2);
  background: var(--paper-dark);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.tab-btn {
  flex: 1;
  min-width: 140px;
  background: transparent;
  border: none;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.tab-btn.active {
  background: var(--white);
  color: var(--navy-deep);
  box-shadow: var(--shadow-xs);
}

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

/* ===== آکاردئون ===== */
.accordion { display: flex; flex-direction: column; gap: var(--space-3); }

.accordion-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(27,36,86,0.09);
  overflow: hidden;
}

.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: transparent;
  border: none;
  text-align: right;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-ink);
  cursor: pointer;
  transition: background var(--transition);
}

.accordion-btn:hover { background: rgba(27,36,86,0.04); }

.accordion-btn[aria-expanded="true"] { background: rgba(232,169,59,0.08); }

.accordion-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--ochre);
  transition: transform var(--transition);
}

.accordion-btn[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}

.accordion-panel {
  display: none;
  padding: 0 var(--space-6) var(--space-6);
}

.accordion-panel.open { display: block; }

/* ===== لیست جلسات ===== */
.session-list { display: flex; flex-direction: column; gap: var(--space-2); }

.session-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 0.92rem;
}

.session-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--navy-deep);
  color: var(--ochre);
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.session-text { color: var(--ink-muted); line-height: 1.6; padding-top: 2px; }

/* ===== بج ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-ochre {
  background: rgba(232,169,59,0.15);
  color: var(--ochre-dark);
  border: 1px solid rgba(232,169,59,0.3);
}

.badge-navy {
  background: rgba(27,36,86,0.08);
  color: var(--navy-ink);
  border: 1px solid rgba(27,36,86,0.15);
}

.badges-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

/* ===== تایم‌لاین ===== */
.timeline { position: relative; }

.timeline::before {
  content: '';
  position: absolute;
  right: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--ochre), rgba(232,169,59,0.2));
}

.timeline-item {
  display: flex;
  gap: var(--space-6);
  padding-bottom: var(--space-8);
  position: relative;
}

.timeline-dot {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: var(--navy-deep);
  border: 3px solid var(--ochre);
  border-radius: 50%;
  z-index: 1;
  margin-top: 2px;
}

.timeline-body {}

.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-ink);
  margin-bottom: var(--space-1);
}

.timeline-meta {
  font-size: 0.85rem;
  color: var(--ochre-dark);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.timeline-desc {
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* ===== صفحه رزومه ===== */
.resume-hero {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-ink));
  padding-block: var(--space-20);
  color: var(--white);
}

.resume-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-10);
  align-items: center;
}

.resume-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(232,169,59,0.2);
  border: 4px solid var(--ochre);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.resume-name {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  margin-bottom: var(--space-2);
}

.resume-role {
  color: var(--ochre);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.resume-tags {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.resume-tag {
  background: rgba(232,169,59,0.15);
  border: 1px solid rgba(232,169,59,0.3);
  color: var(--ochre);
  padding: var(--space-1) var(--space-4);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ===== گالری ===== */
.gallery-filters {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
  justify-content: center;
}

.filter-btn {
  background: var(--white);
  border: 2px solid rgba(27,36,86,0.12);
  color: var(--ink-muted);
  padding: var(--space-2) var(--space-5);
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--white);
}

.gallery-grid {
  columns: 3;
  column-gap: var(--space-4);
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--paper-dark);
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,36,86,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: var(--radius-md);
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-overlay svg {
  color: var(--white);
  width: 36px;
  height: 36px;
}

/* لایت‌باکس */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10,14,40,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: var(--space-6);
  left: var(--space-6);
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-close svg { width: 22px; height: 22px; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-nav svg { width: 24px; height: 24px; }
.lightbox-prev { right: var(--space-6); }
.lightbox-next { left: var(--space-6); }

/* ===== فرم تماس ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-12);
  align-items: start;
}

.contact-info-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-ink);
  margin-bottom: var(--space-6);
}

.contact-info-list { display: flex; flex-direction: column; gap: var(--space-4); }

.contact-info-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  border: 1px solid rgba(27,36,86,0.07);
  text-decoration: none;
  color: var(--navy-ink);
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact-info-item:hover { transform: translateX(-3px); box-shadow: var(--shadow-sm); }

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(27,36,86,0.07);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--navy-deep);
}
.contact-icon svg { width: 22px; height: 22px; }

.contact-label {
  font-size: 0.78rem;
  color: var(--ink-muted);
  display: block;
}
.contact-value {
  font-weight: 700;
  font-size: 0.95rem;
  direction: ltr;
  text-align: right;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  box-shadow: var(--shadow-md);
}

.form-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-ink);
  margin-bottom: var(--space-6);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-ink);
  margin-bottom: var(--space-2);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(27,36,86,0.14);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--navy-ink);
  background: var(--paper);
  transition: border-color var(--transition), box-shadow var(--transition);
  direction: rtl;
}

.form-input:focus {
  outline: none;
  border-color: var(--ochre);
  box-shadow: 0 0 0 3px rgba(232,169,59,0.18);
}

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

.form-submit { width: 100%; margin-top: var(--space-2); }

.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-5);
  font-size: 0.95rem;
  font-weight: 600;
}

.alert-success {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  color: #15803d;
}

.alert-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  color: #b91c1c;
}

/* ===== فوتر ===== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.75);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--space-8);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.footer-logo img { height: 40px; }

.footer-logo-text {
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
}

.footer-tagline {
  color: var(--ochre);
  font-size: 0.75rem;
  font-weight: 500;
}

.footer-about {
  font-size: 0.88rem;
  line-height: 1.85;
}

.footer-heading {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: var(--space-5);
}

.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-links a {
  color: rgba(255,255,255,0.68);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--ochre); }

.footer-contact-list { display: flex; flex-direction: column; gap: var(--space-3); }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.68);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-contact-item:hover { color: var(--ochre); }
.footer-contact-item svg { width: 18px; height: 18px; flex-shrink: 0; }

.footer-bottom {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ===== اسکرول ریوییل ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== صفحه داخلی هیرو ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-ink));
  padding-block: var(--space-16);
  color: var(--white);
  text-align: center;
}

.page-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  margin-bottom: var(--space-4);
}

.page-hero-desc {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  max-width: 600px;
  margin-inline: auto;
}

.breadcrumb {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-bottom: var(--space-5);
}
.breadcrumb a { color: var(--ochre); text-decoration: none; }
.breadcrumb span { color: rgba(255,255,255,0.35); }

/* ===== خدمات ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27,36,86,0.07);
  display: flex;
  gap: var(--space-5);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(27,36,86,0.06);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--navy-deep);
}
.service-icon svg { width: 28px; height: 28px; }

.service-body {}
.service-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy-ink);
  margin-bottom: var(--space-3);
}
.service-desc {
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ===== کلاس‌های مجازی - جدول ===== */
.course-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.course-table th {
  background: var(--navy-deep);
  color: var(--white);
  padding: var(--space-4) var(--space-6);
  text-align: right;
  font-size: 0.9rem;
  font-weight: 700;
}

.course-table td {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid rgba(27,36,86,0.07);
  font-size: 0.92rem;
  color: var(--navy-ink);
}

.course-table tr:last-child td { border-bottom: none; }
.course-table tr:nth-child(even) td { background: var(--paper); }

/* ===== callout ===== */
.callout {
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-8);
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}

.callout-ochre {
  background: rgba(232,169,59,0.12);
  border: 2px solid rgba(232,169,59,0.35);
}

.callout-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--ochre);
}
.callout-icon svg { width: 40px; height: 40px; }

.callout-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-ink);
  line-height: 1.75;
}

/* ===== دپارتمان آموزش ===== */
.dept-chapters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.chapter-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27,36,86,0.07);
}

.chapter-num {
  width: 40px;
  height: 40px;
  background: var(--navy-deep);
  color: var(--ochre);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: var(--space-5);
}

.chapter-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-ink);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--ochre);
}

.chapter-list { display: flex; flex-direction: column; gap: var(--space-3); }

.chapter-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.chapter-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--ochre);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}

/* ===== گالری placeholder ===== */
.gallery-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ===== واکنش‌گرا ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { columns: 2; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4);
    gap: var(--space-1);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 99;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .site-nav a {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }

  .nav-toggle { display: flex; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-svg-wrap { display: none; }
  .hero { min-height: auto; padding-block: var(--space-16); }

  .resume-intro { grid-template-columns: 1fr; text-align: center; }
  .resume-tags { justify-content: center; }
  .resume-avatar { width: 100px; height: 100px; margin-inline: auto; }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; }

  .cards-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .dept-chapters { grid-template-columns: 1fr; }

  .service-card { flex-direction: column; gap: var(--space-4); }

  .callout { flex-direction: column; align-items: flex-start; gap: var(--space-3); }

  .stats-row { gap: var(--space-6); }

  .section { padding-block: var(--space-12); }
  .page-hero { padding-block: var(--space-10); }
  .section-header { margin-bottom: var(--space-8); }

  .form-card { padding: var(--space-6); }
  .contact-info-item:hover { transform: none; }

  .timeline::before { right: 12px; }
  .timeline-dot { width: 26px; height: 26px; }
  .timeline-item { gap: var(--space-4); }
}

@media (max-width: 480px) {
  :root { --pad: 1rem; }

  .hero-title { font-size: 1.75rem; }
  .hero { padding-block: var(--space-12); }
  .hero-desc { font-size: 0.95rem; }

  .tabs { flex-direction: column; }
  .tab-btn { min-width: unset; }

  .hero-actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; justify-content: center; }

  .section { padding-block: var(--space-10); }
  .page-hero { padding-block: var(--space-8); }
  .page-hero-title { font-size: 1.5rem; }
  .section-header { margin-bottom: var(--space-6); }

  .card { padding: var(--space-6); }
  .chapter-card { padding: var(--space-6); }
  .service-card { padding: var(--space-5); }
  .form-card { padding: var(--space-5); }
  .callout { padding: var(--space-5); }

  .stats-row { flex-direction: column; gap: var(--space-5); align-items: center; }

  .accordion-btn { padding: var(--space-4); font-size: 0.9rem; }
  .accordion-panel { padding: 0 var(--space-4) var(--space-4); }

  .contact-info-item { padding: var(--space-3) var(--space-4); }

  .footer-grid { gap: var(--space-8); }

  .gallery-filters { gap: var(--space-2); }
  .filter-btn { padding: var(--space-2) var(--space-4); font-size: 0.82rem; }

  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { right: var(--space-3); }
  .lightbox-next { left: var(--space-3); }
  .lightbox-close { top: var(--space-3); left: var(--space-3); }
}
