/* ═══════════════════════════════════════════════════════════════════
   ME Academy — Design System
   برند: سرمه‌ای #17233B / طلایی #D6AD55 / سفید / خاکستری روشن
   فونت: Vazirmatn — زبان: فارسی — جهت: RTL
   ═══════════════════════════════════════════════════════════════════ */

/* ─── فونت ─── */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../assets/fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../assets/fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

/* ─── متغیرهای برند ─── */
:root {
  --navy: #17233B;
  --navy-deep: #101827;
  --navy-soft: #1D2C4A;
  --gold: #D6AD55;
  --gold-dark: #C29A45;
  --gold-soft: rgba(214, 173, 85, .13);
  --gold-line: rgba(214, 173, 85, .45);
  --white: #FFFFFF;
  --gray-bg: #F5F6F8;
  --gray-text: #687080;
  --line: #E7E9EE;
  --error: #F1827A;

  --font: 'Vazirmatn', 'Segoe UI', Tahoma, Arial, sans-serif;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 39, .05), 0 3px 10px rgba(16, 24, 39, .06);
  --shadow-md: 0 6px 18px rgba(16, 24, 39, .09);
  --shadow-lg: 0 16px 40px rgba(16, 24, 39, .14);
  --gold-shadow: 0 10px 26px rgba(214, 173, 85, .3);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.9;
  overflow-x: clip;
  padding-top: 80px;
}

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

::selection { background: var(--gold); color: var(--navy-deep); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* اسکرول‌بار ظریف */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--gray-bg); }
::-webkit-scrollbar-thumb { background: #C6CAD3; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-text); }

.skip-link {
  position: fixed;
  top: -60px;
  inset-inline-start: 16px;
  z-index: 300;
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ─── آیکون‌ها ─── */
.icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ─── چیدمان عمومی ─── */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 24px);
}

.section { padding-block: clamp(64px, 9vw, 108px); }

.section-head {
  max-width: 680px;
  margin: 0 auto 52px;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--gray-text);
  letter-spacing: .02em;
}
.kicker::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.kicker-gold { color: var(--gold); }
.kicker-gold::before { background: var(--gold); }

.section-title {
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
  font-weight: 800;
  line-height: 1.5;
  margin-top: 12px;
}

.section-sub {
  color: var(--gray-text);
  font-size: 1rem;
  margin-top: 12px;
}

.sample-note { color: var(--gold-dark); font-weight: 600; font-size: .85em; }

.section-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  color: var(--gray-text);
  font-size: .84rem;
  text-align: center;
}
.section-note .icon { color: var(--gold-dark); width: 1em; height: 1em; }

/* ─── دکمه‌ها ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.6;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background-color .3s, color .3s, border-color .3s;
}
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(-4px); }
.btn:active { transform: scale(.97); }

.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: .86rem; }
.btn-block { width: 100%; }

.btn-primary, .btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-primary:hover, .btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--gold-shadow);
}

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

.btn-ghost {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--navy);
  background: var(--gray-bg);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

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

.btn-text {
  background: transparent;
  color: var(--navy);
  padding-inline: 6px;
}
.btn-text:hover { color: var(--gold-dark); }

/* ═══════════════════════════════ هدر ═══════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .35s, background-color .35s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 80px;
  transition: height .35s var(--ease);
}
.site-header.scrolled .header-inner { height: 68px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-logo { width: 92px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.4; }
.brand-text strong {
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: .01em;
}
.brand-text strong i {
  font-style: normal;
  color: var(--gold-dark);
}
.brand-text small { font-size: .72rem; color: var(--gray-text); font-weight: 500; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 11px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-text);
  border-radius: 8px;
  white-space: nowrap;
  transition: color .3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  inset-inline: 11px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .35s var(--ease);
}
.nav-link:hover { color: var(--navy); }
.nav-link.is-active { color: var(--navy); }
.nav-link.is-active::after { transform: scaleX(1); }

.nav-cta-item { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* همبرگر */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(16, 24, 39, .45);
  opacity: 0;
  transition: opacity .35s;
}
.nav-backdrop.visible { opacity: 1; }

/* ═══════════════════════════════ Hero ═══════════════════════════════ */
.hero {
  position: relative;
  padding-top: 48px;
  overflow: clip;
  background:
    radial-gradient(720px 340px at 12% -6%, rgba(214, 173, 85, .1), transparent 65%),
    radial-gradient(560px 300px at 88% 4%, rgba(23, 35, 59, .05), transparent 60%),
    var(--white);
}

/* پس‌زمینه متحرک: میدان خطوط موج‌دار طلایی (Guilloché) */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .9;
}
.hero-grid, .hero-strip { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(48px, 6vw, 72px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  color: var(--navy);
  font-size: .86rem;
  font-weight: 700;
}
.hero-badge .icon { color: var(--gold-dark); }

.hero-title {
  font-size: clamp(2.05rem, 4.3vw, 3.25rem);
  font-weight: 800;
  line-height: 1.55;
  margin-top: 22px;
}
.hero-title em {
  font-style: normal;
  color: var(--gold-dark);
  background: linear-gradient(transparent 68%, rgba(214, 173, 85, .28) 0);
  border-radius: 4px;
}

.hero-lead {
  max-width: 34rem;
  margin-top: 18px;
  color: var(--gray-text);
  font-size: 1.02rem;
}
.hero-lead strong { color: var(--navy); font-weight: 700; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 28px;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray-text);
}
.hero-points .icon { color: var(--gold-dark); }

/* سمت تصویر */
.hero-media { position: relative; }

.hero-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 10 / 7.6;
}
.hero-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(185deg, transparent 58%, rgba(16, 24, 39, .38));
  pointer-events: none;
}
.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.5s var(--ease);
}
body.is-loaded .hero-frame img { transform: scale(1); }

.hero-chip {
  position: absolute;
  z-index: 2;
  top: 22px;
  inset-inline-start: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: .85rem;
  font-weight: 700;
  color: var(--navy);
}
.hero-chip .icon { color: var(--gold-dark); }

.hero-card {
  position: absolute;
  z-index: 2;
  bottom: -26px;
  inset-inline-end: -14px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: floaty 6s var(--ease) infinite alternate;
}
.hero-card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  color: var(--gold-dark);
}
.hero-card-icon .icon { width: 22px; height: 22px; }
.hero-card-text { display: flex; flex-direction: column; line-height: 1.6; }
.hero-card-text strong { font-size: .94rem; color: var(--navy); }
.hero-card-text small { font-size: .78rem; color: var(--gray-text); }

@keyframes floaty {
  from { transform: translateY(0); }
  to   { transform: translateY(-10px); }
}

/* المان‌های تزئینی */
.deco { position: absolute; pointer-events: none; }
.deco-ring {
  width: 130px;
  height: 130px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  opacity: .45;
}
.deco-dots {
  width: 110px;
  height: 96px;
  background-image: radial-gradient(rgba(23, 35, 59, .3) 1.5px, transparent 1.6px);
  background-size: 14px 14px;
  opacity: .35;
}
.hero-media .deco-ring { top: -30px; inset-inline-end: -30px; }
.hero-media .deco-dots { bottom: 64px; inset-inline-start: -36px; }

/* نوار حوزه‌های آموزشی */
.hero-strip {
  border-block: 1px solid var(--line);
  background: var(--white);
  padding: 17px 0;
}
.strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.strip-inner span {
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray-text);
}
.strip-inner i {
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

/* ─── انیمیشن ورود Hero ─── */
[data-hero] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease) var(--hd, 0s), transform .8s var(--ease) var(--hd, 0s);
}
body.is-loaded [data-hero] { opacity: 1; transform: none; }
[data-hero="1"] { --hd: .05s; }
[data-hero="2"] { --hd: .16s; }
[data-hero="3"] { --hd: .3s; }
[data-hero="4"] { --hd: .44s; }
[data-hero="5"] { --hd: .58s; }

/* ─── انیمیشن Scroll Reveal ─── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: var(--rd, 0s);
  will-change: opacity, transform;
}
[data-reveal].revealed { opacity: 1; transform: none; }

/* ═══════════════════════════ درباره مدرس ═══════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: clamp(40px, 6vw, 76px);
}

.about-media {
  position: relative;
  max-width: 430px;
  margin-inline: auto;
  width: 100%;
}

.portrait-card {
  position: relative;
  aspect-ratio: 4 / 4.7;
  border-radius: 28px;
  background: linear-gradient(165deg, var(--navy-soft) 0%, var(--navy-deep) 100%);
  border: 1px solid var(--gold-line);
  display: grid;
  place-items: center;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.portrait-card .deco-ring { bottom: -34px; inset-inline-start: -34px; top: auto; }
.portrait-card .deco-dots { top: 28px; inset-inline-end: 24px; inset-inline-start: auto;
  background-image: radial-gradient(rgba(214, 173, 85, .4) 1.5px, transparent 1.6px); }

.portrait-inner { text-align: center; position: relative; z-index: 1; }
.portrait-logo {
  width: min(190px, 60%);
  background: var(--white);
  border-radius: 18px;
  padding: 16px 24px;
  margin-inline: auto;
}
.portrait-caption { margin-top: 30px; }
.portrait-caption strong {
  display: block;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 800;
}
.portrait-caption small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .55);
  font-size: .8rem;
}

.about-float {
  position: absolute;
  bottom: -24px;
  inset-inline-start: -18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: floaty 7s var(--ease) infinite alternate-reverse;
}
.about-float .icon { color: var(--gold-dark); width: 22px; height: 22px; }
.about-float span { display: flex; flex-direction: column; line-height: 1.55; }
.about-float strong { font-size: .9rem; }
.about-float small { font-size: .76rem; color: var(--gray-text); }

.about-content .section-title { margin-bottom: 18px; }
.about-content > p { color: var(--gray-text); margin-bottom: 14px; max-width: 36rem; }
.about-content > p strong { color: var(--navy); }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.about-tags li {
  padding: 8px 16px;
  background: var(--gray-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  transition: border-color .3s, color .3s, background-color .3s;
}
.about-tags li:hover { border-color: var(--gold); background: var(--gold-soft); }

.about-actions { margin-top: 26px; }

.editable-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 22px;
  padding: 12px 16px;
  background: #FFF9EE;
  border: 1px dashed var(--gold-line);
  border-radius: var(--radius-sm);
  color: #8A6D2F;
  font-size: .82rem;
  line-height: 1.8;
  max-width: 36rem;
}
.editable-note .icon { margin-top: 5px; color: var(--gold-dark); }

/* ═══════════════════════════ دوره‌ها ═══════════════════════════ */
.courses { background: var(--gray-bg); }

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.course-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-line);
}

.course-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s var(--ease);
}
.course-card:hover .course-media img { transform: scale(1.06); }

.course-flag {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  padding: 5px 12px;
  background: rgba(16, 24, 39, .8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: .74rem;
  font-weight: 600;
  border-radius: 999px;
}

.course-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 18px;
}
.course-title {
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--navy);
}
.course-desc {
  margin-top: 8px;
  color: var(--gray-text);
  font-size: .85rem;
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: var(--gray-text);
  font-size: .78rem;
}
.course-meta .icon { color: var(--gold-dark); width: 1em; height: 1em; }

.course-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

/* ═══════════════════════════ ورکشاپ‌ها ═══════════════════════════ */
.workshop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.workshop-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.workshop-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-line);
}

.workshop-media { position: relative; aspect-ratio: 16 / 9.5; overflow: hidden; }
.workshop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s var(--ease);
}
.workshop-card:hover .workshop-media img { transform: scale(1.05); }

.sample-badge {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  padding: 4px 11px;
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  color: var(--gold-dark);
  font-size: .72rem;
  font-weight: 700;
}

.workshop-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-grow: 1;
  padding: 20px;
}
.workshop-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  background: var(--gold-soft);
  border-radius: 999px;
  color: var(--navy);
  font-size: .78rem;
  font-weight: 700;
}
.workshop-tag .icon { color: var(--gold-dark); width: 1em; height: 1em; }
.workshop-title { margin-top: 12px; font-size: 1.02rem; font-weight: 700; }
.workshop-desc { margin-top: 8px; color: var(--gray-text); font-size: .87rem; line-height: 1.85; flex-grow: 1; }
.workshop-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-block: 12px 14px;
  color: var(--gray-text);
  font-size: .8rem;
}
.workshop-meta .icon { color: var(--gold-dark); width: 1em; height: 1em; }

/* ═══════════════════════════ خدمات ═══════════════════════════ */
.services { background: var(--gray-bg); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  padding: 28px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-line);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  color: var(--gold-dark);
}
.service-icon .icon { width: 25px; height: 25px; }

.service-card h3 {
  margin-top: 18px;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.7;
}
.service-card p { margin-top: 8px; color: var(--gray-text); font-size: .88rem; line-height: 1.85; }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
  transition: color .3s;
}
.service-link .icon { transition: transform .3s var(--ease); }
.service-link:hover { color: var(--gold-dark); }
.service-link:hover .icon { transform: translateX(-4px); }

.service-card-cta {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-color: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-card-cta:hover { border-color: var(--gold-line); }
.service-card-cta h3 { color: var(--white); }
.service-card-cta p { color: rgba(255, 255, 255, .72); }
.service-card-cta .btn { margin-top: 18px; align-self: flex-start; }

/* ═══════════════════════════ چرا ME Academy ═══════════════════════════ */
.why {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  position: relative;
  overflow: hidden;
}
.why::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 280px at 88% 12%, rgba(214, 173, 85, .12), transparent 65%),
    radial-gradient(rgba(255, 255, 255, .05) 1.2px, transparent 1.3px);
  background-size: auto, 26px 26px;
  pointer-events: none;
}

.why-grid {
  position: relative;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}

.why-content { position: sticky; top: 120px; }
.why-content .section-title { color: var(--white); }
.why-content p {
  margin-top: 16px;
  color: rgba(255, 255, 255, .72);
  max-width: 30rem;
}
.why-content .btn { margin-top: 28px; }

.why-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 22px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), background-color .35s, border-color .35s;
}
.why-item:hover {
  background: rgba(214, 173, 85, .08);
  border-color: var(--gold-line);
  transform: translateX(-5px);
}
.why-item:last-child { margin-bottom: 0; }
.why-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.4;
  min-width: 44px;
}
.why-item h3 { font-size: .98rem; font-weight: 700; color: var(--white); }
.why-item p { margin-top: 4px; font-size: .85rem; color: rgba(255, 255, 255, .65); line-height: 1.8; }

/* ═══════════════════════════ نظرات دانشجویان ═══════════════════════════ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.testimonial-card {
  position: relative;
  padding: 30px 26px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-line);
}
.testimonial-card::before {
  content: '”';
  position: absolute;
  top: 26px;
  inset-inline-end: 26px;
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--gold);
  opacity: .4;
  line-height: 1;
}
.testimonial-card blockquote {
  font-size: .95rem;
  color: var(--navy);
  line-height: 2.1;
  max-width: 30rem;
}
.testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.05rem;
}
.who { display: flex; flex-direction: column; line-height: 1.6; }
.who strong { font-size: .92rem; }
.who small { font-size: .78rem; color: var(--gray-text); }

/* ═══════════════════════════ مقالات ═══════════════════════════ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-line);
}

.article-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s var(--ease);
}
.article-card:hover .article-media img { transform: scale(1.06); }

.article-cat {
  position: absolute;
  bottom: 12px;
  inset-inline-start: 12px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  color: var(--navy);
  font-size: .74rem;
  font-weight: 700;
}

.article-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 18px;
}
.article-body h3 { font-size: .98rem; font-weight: 700; line-height: 1.7; }
.article-body h3 a { transition: color .3s; }
.article-body h3 a:hover { color: var(--gold-dark); }
.article-body p {
  margin-block: 8px 14px;
  color: var(--gray-text);
  font-size: .85rem;
  line-height: 1.85;
  flex-grow: 1;
}
.article-body .btn-text { align-self: flex-start; }

/* ═══════════════════════════ پرسش‌های متداول ═══════════════════════════ */
.faq { background: var(--gray-bg); }

.faq-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

.faq-side { position: sticky; top: 120px; }
.faq-side p { margin-top: 14px; color: var(--gray-text); max-width: 26rem; }
.faq-side .btn { margin-top: 22px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .35s, box-shadow .35s;
}
.faq-item.open { border-color: var(--gold-line); box-shadow: var(--shadow-sm); }
.faq-item:last-child { margin-bottom: 0; }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: start;
  font-size: .96rem;
  font-weight: 700;
  color: var(--navy);
  transition: color .3s;
}
.faq-q:hover { color: var(--gold-dark); }
.faq-icon { transition: transform .4s var(--ease), color .3s; }
.faq-item.open .faq-icon { transform: rotate(180deg); color: var(--gold-dark); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p {
  padding: 0 22px 20px;
  color: var(--gray-text);
  font-size: .9rem;
  line-height: 2;
}

/* ═══════════════════════════ نوار CTA ═══════════════════════════ */
.cta-band {
  position: relative;
  padding-block: clamp(56px, 7vw, 84px);
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 300px at 85% 0%, rgba(214, 173, 85, .16), transparent 62%),
    radial-gradient(420px 240px at 8% 100%, rgba(214, 173, 85, .1), transparent 60%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  text-align: center;
  max-width: 760px;
}
.cta-inner h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.6;
}
.cta-inner p {
  margin-top: 14px;
  color: rgba(255, 255, 255, .75);
  font-size: 1rem;
}
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* ═══════════════════════════ فرم مشاوره ═══════════════════════════ */
.consult { background: var(--gray-bg); }

.consult-panel {
  position: relative;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.consult-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(520px 300px at 100% 0%, rgba(214, 173, 85, .14), transparent 60%);
  pointer-events: none;
}

.consult-info {
  position: relative;
  padding: clamp(32px, 4.5vw, 56px);
}
.consult-info .section-title { color: var(--white); margin-bottom: 14px; }
.consult-info > p { color: rgba(255, 255, 255, .72); max-width: 28rem; }

.consult-points { margin-top: 26px; }
.consult-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 13px;
  color: rgba(255, 255, 255, .88);
  font-size: .92rem;
}
.consult-points .icon { color: var(--gold); margin-top: 7px; }

.consult-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(32px, 4.5vw, 56px);
  background: rgba(255, 255, 255, .03);
  border-inline-start: 1px solid rgba(255, 255, 255, .08);
}

.form-row { display: flex; flex-direction: column; gap: 7px; }
.form-row label {
  color: rgba(255, 255, 255, .92);
  font-size: .9rem;
  font-weight: 600;
}
.form-row label i { color: var(--gold); font-style: normal; }

.consult-form input,
.consult-form select,
.consult-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: .95rem;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.consult-form input::placeholder,
.consult-form textarea::placeholder { color: rgba(255, 255, 255, .38); }
.consult-form input:focus,
.consult-form select:focus,
.consult-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 0 0 3px rgba(214, 173, 85, .18);
}
.consult-form input.invalid,
.consult-form select.invalid { border-color: rgba(241, 130, 122, .75); }

.consult-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23D6AD55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-inline-end: 16px;
}
.consult-form select option { color: var(--navy); background: var(--white); }

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

.form-error {
  color: var(--error);
  font-size: .8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-success {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
  padding: 15px 17px;
  background: rgba(214, 173, 85, .13);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-sm);
  color: var(--white);
}
.form-success .icon { color: var(--gold); width: 22px; height: 22px; margin-top: 4px; }
.form-success strong { display: block; font-size: .94rem; }
.form-success small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .72);
  font-size: .8rem;
  line-height: 1.9;
}

/* ═══════════════════════════ تماس با ما ═══════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.contact-card {
  padding: 36px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: center;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-line);
}
.contact-icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  color: var(--gold-dark);
}
.contact-icon .icon { width: 25px; height: 25px; }
.contact-card h3 { margin-top: 16px; font-size: 1rem; font-weight: 700; }
.contact-card p { margin-top: 6px; color: var(--gray-text); font-size: .9rem; }

/* ═══════════════════════════ فوتر ═══════════════════════════ */
.site-footer {
  background: var(--navy-deep);
  color: var(--white);
  padding-top: clamp(48px, 6vw, 72px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 48px);
}

.footer-logo {
  display: inline-block;
  background: var(--white);
  border-radius: 16px;
  padding: 13px 19px;
}
.footer-logo img { width: 128px; height: auto; }

.footer-brand p {
  margin-top: 18px;
  color: rgba(255, 255, 255, .62);
  font-size: .9rem;
  line-height: 2;
  max-width: 26rem;
}

.footer-col h3 {
  position: relative;
  color: var(--gold);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-inline-start: 14px;
}
.footer-col h3::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 9px;
  width: 3px;
  height: 18px;
  background: var(--gold);
  border-radius: 3px;
}

.footer-col ul li { margin-bottom: 11px; }
.footer-col ul a {
  color: rgba(255, 255, 255, .66);
  font-size: .9rem;
  transition: color .3s, transform .3s var(--ease);
  display: inline-block;
}
.footer-col ul a:hover { color: var(--white); transform: translateX(-4px); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, .66);
  font-size: .88rem;
  line-height: 1.9;
}
.footer-contact .icon { color: var(--gold); margin-top: 7px; }

.footer-bar {
  margin-top: clamp(40px, 5vw, 60px);
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-block: 22px;
}
.footer-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.socials { display: flex; gap: 10px; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  color: rgba(255, 255, 255, .72);
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.socials a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-3px);
}

.copyright { color: rgba(255, 255, 255, .55); font-size: .82rem; }

.legal-links { display: flex; gap: 20px; }
.legal-links a {
  color: rgba(255, 255, 255, .55);
  font-size: .82rem;
  transition: color .3s;
}
.legal-links a:hover { color: var(--gold); }

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 16px);
  z-index: 200;
  max-width: min(92vw, 420px);
  padding: 13px 24px;
  background: var(--navy-deep);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  color: var(--white);
  font-size: .88rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal], [data-hero] { opacity: 1 !important; transform: none !important; }
  .hero-frame img { transform: none !important; }
}

