/* ==========================================================================
   Virapey — shared stylesheet (RTL / Farsi)
   1 Base · 2 Loader & progress · 3 Header/Logo · 4 Hero · 5 Marquee
   6 Generic blocks · 7 Categories & Courses · 8 Platforms · 9 Split/Services
   10 Exams (compact) · 11 Stats · 12 Testimonials · 13 FAQ · 14 CTA
   15 Inner pages · 16 Forms · 17 Footer · 18 Animations · 19 Responsive
   ========================================================================== */

/* ---------- 1. Base ---------- */
:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-mute: #94a3b8;
  --bg: #ffffff;
  --bg-soft: #f4f8f7;
  --line: #e3e9e8;
  --accent: #0f766e;
  --accent-2: #17a99c;
  --accent-dark: #0b5a54;
  --accent-tint: #e6f3f1;
  --deep: #062d2a;
  --gold: #e8b64c;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(6, 45, 42, .35);
  --maxw: 1180px;
  --font: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.9;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, dl, dd, blockquote, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.grad-text { background: linear-gradient(90deg, var(--gold), #ffe29a); -webkit-background-clip: text; background-clip: text; color: transparent; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 24px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; box-shadow: 0 10px 24px -10px rgba(15,118,110,.7); }
.btn-primary:hover { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--deep); }
.btn-light:hover { background: var(--accent-tint); }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-lg { padding: 13px 30px; font-size: 16px; min-height: 50px; }
.btn-block { width: 100%; }

/* ---------- 2. Loader & progress ---------- */
.loader {
  position: fixed; inset: 0; z-index: 999; background: var(--deep);
  display: grid; place-items: center; transition: opacity .5s ease, visibility .5s ease;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-box { text-align: center; color: #fff; }
.loader-box img { width: 72px; height: 72px; margin: 0 auto 16px; animation: pulse 1.4s ease-in-out infinite; }
.loader-name { font-size: 24px; font-weight: 800; line-height: 1.2; }
.loader-latin { font-size: 11px; letter-spacing: 6px; color: var(--gold); margin-top: 4px; padding-inline-start: 6px; }
.loader-bar { width: 160px; height: 3px; margin: 22px auto 0; background: rgba(255,255,255,.15); border-radius: 3px; overflow: hidden; }
.loader-bar::after { content: ""; display: block; height: 100%; width: 40%; background: var(--gold); border-radius: 3px; animation: slide 1.1s ease-in-out infinite; }

.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 100; background: transparent; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--gold)); }

.to-top {
  position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--deep); color: #fff; font-size: 18px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- 3. Header / Logo ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 8px 24px -14px rgba(6,45,42,.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo img { width: 38px; height: 38px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.logo-text i { font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: 4.2px; color: var(--accent); margin-top: 5px; direction: ltr; text-align: start; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 15px; color: var(--ink-soft); transition: color .2s; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; inset-inline: 0; bottom: -6px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s; border-radius: 2px; }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active { font-weight: 600; }
.nav .btn { color: #fff; }
.nav-toggle { display: none; }
.nav-burger { display: none; cursor: pointer; padding: 12px; margin-inline-end: -12px; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; display: block; width: 24px; height: 2px; background: var(--ink); position: relative; transition: transform .25s, background .25s;
}
.nav-burger span::before { position: absolute; top: -7px; }
.nav-burger span::after { position: absolute; top: 7px; }

/* ---------- 4. Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 96px 0 0;
  background:
    linear-gradient(110deg, rgba(6,45,42,.97) 0%, rgba(6,45,42,.9) 48%, rgba(15,118,110,.6) 100%),
    url("../img/photos/hero.jpg") center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 25% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 25% 40%, #000 0%, transparent 70%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.blob.b1 { width: 380px; height: 380px; background: rgba(232,182,76,.35); top: -140px; inset-inline-start: -100px; animation: drift 14s ease-in-out infinite; }
.blob.b2 { width: 420px; height: 420px; background: rgba(23,169,156,.4); bottom: -80px; inset-inline-end: -120px; animation: drift 18s ease-in-out -6s infinite reverse; }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent-dark); font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.hero .eyebrow { background: rgba(255,255,255,.1); color: #d9f2ee; border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse 1.6s infinite; }
.hero h1 { font-size: clamp(30px, 5vw, 54px); line-height: 1.5; font-weight: 800; letter-spacing: -.5px; }
.hero .lead { margin-top: 20px; font-size: clamp(16px, 2.2vw, 18px); color: #cfe3e0; max-width: 560px; }

.hero-search {
  display: flex; gap: 8px; margin-top: 30px; max-width: 540px; padding: 6px;
  background: rgba(255,255,255,.96); border-radius: 999px; box-shadow: 0 20px 40px -16px rgba(0,0,0,.5);
}
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; padding: 8px 18px; color: var(--ink); }
.hero-search input:focus { outline: 0; }
.hero-search .btn { min-height: 44px; padding-inline: 24px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-size: 13px; color: #a9c7c2; align-items: center; }
.hero-tags a { padding: 2px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #e3f3f0; transition: background .2s; }
.hero-tags a:hover { background: rgba(255,255,255,.14); }

.hero-visual { position: relative; padding-bottom: 70px; }
.hero-photo {
  border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 4.3; position: relative;
  border: 1px solid rgba(255,255,255,.25); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  transform: rotate(-1.5deg);
}
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6,45,42,.55)); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.float-card {
  position: absolute; background: rgba(255,255,255,.96); color: var(--ink); border-radius: 16px; padding: 12px 16px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.6; backdrop-filter: blur(8px);
}
.float-card strong { display: block; font-size: 14px; }
.float-card small { color: var(--ink-soft); font-size: 12px; }
.float-card .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; flex: none; }
.float-card .ico svg { width: 21px; height: 21px; }
.fc-1 { top: 34px; inset-inline-start: -30px; animation: float 5s ease-in-out infinite; }
.fc-2 { bottom: 104px; inset-inline-end: -22px; animation: float 6s ease-in-out -2s infinite; }
.fc-3 { bottom: 20px; inset-inline-start: 26px; animation: float 7s ease-in-out -4s infinite; }

.hero-stats { position: relative; z-index: 1; margin-top: 6px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.14); }
.hero-stats div { padding: 26px 0; }
.hero-stats strong { display: block; font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: #fff; line-height: 1.4; }
.hero-stats span { font-size: 14px; color: #a9c7c2; }

/* ---------- 5. Marquee (platform logos) ---------- */
.marquee-sec { padding: 40px 0; border-bottom: 1px solid var(--line); background: #fff; }
.marquee-sec > p { text-align: center; font-size: 13px; color: var(--ink-mute); margin-bottom: 22px; padding-inline: 20px; }
.marquee {
  overflow: hidden; direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; gap: 56px; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; color: #7b8a88; filter: grayscale(1); opacity: .65; transition: filter .3s, opacity .3s, color .3s; white-space: nowrap; }
.brand img { height: 28px; width: 28px; }
.brand:hover { filter: none; opacity: 1; color: var(--ink); }

/* ---------- 6. Generic blocks ---------- */
.section { padding: clamp(60px, 9vw, 100px) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--deep); color: #fff; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; line-height: 1.5; }
.section-head p { margin-top: 12px; color: var(--ink-soft); }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head-row .section-head { margin-bottom: 0; }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--accent-tint), #fff); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; border: 1px solid var(--accent-tint); }
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.card p { color: var(--ink-soft); font-size: 15px; }
.step-num { font-size: 40px; font-weight: 800; line-height: 1; margin-bottom: 14px; background: linear-gradient(135deg, var(--accent-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.check-list li { position: relative; padding-inline-start: 30px; margin-bottom: 10px; color: var(--ink-soft); }
.check-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font-size: 12px; font-weight: 800; display: grid; place-items: center; line-height: 1; }

/* ---------- 7. Categories & Courses ---------- */
.cat {
  display: flex; align-items: center; gap: 16px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: all .25s; position: relative; overflow: hidden;
}
.cat::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--accent-2), var(--accent-dark)); opacity: 0; transition: opacity .25s; }
.cat > * { position: relative; z-index: 1; }
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: #fff; }
.cat:hover::before { opacity: 1; }
.cat .ico { width: 52px; height: 52px; flex: none; border-radius: 15px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; transition: all .25s; }
.cat:hover .ico { background: rgba(255,255,255,.18); color: #fff; }
.cat .ico svg { width: 26px; height: 26px; }
.cat strong { display: block; font-size: 16px; }
.cat small { font-size: 13px; color: var(--ink-mute); transition: color .25s; }
.cat:hover small { color: #d3ece8; }

.course { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .25s; }
.course:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: var(--shadow); }
.course-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--accent-tint); }
.course-img img.photo { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.course:hover .course-img img.photo { transform: scale(1.07); }
.course-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(6,45,42,.5)); pointer-events: none; }
.course-plat {
  position: absolute; z-index: 1; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.95); border-radius: 999px; padding: 4px 12px 4px 6px; font-size: 12px; font-weight: 700; direction: ltr;
}
.course-plat img { width: 20px; height: 20px; }
.course-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.course-tag { font-size: 12px; font-weight: 600; color: var(--accent); }
.course-body h3 { font-size: 17px; font-weight: 700; line-height: 1.7; }
.course-body > p { font-size: 14px; color: var(--ink-soft); }
.course-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; font-size: 13px; color: var(--ink-mute); }
.course-meta span::before { content: "•"; margin-inline-end: 6px; color: var(--accent-2); }
.course-foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed var(--line); margin-top: 14px; }
.price { font-weight: 700; }
.course-link { font-size: 14px; font-weight: 600; color: var(--accent); }
.course:hover .course-link { color: var(--accent-dark); }

/* ---------- 8. Platforms ---------- */
.platform { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 28px 18px; }
.platform img { width: 44px; height: 44px; margin-bottom: 12px; transition: transform .3s; }
.platform:hover img { transform: scale(1.15) rotate(-4deg); }
.platform strong { font-size: 17px; direction: ltr; }
.platform span { font-size: 13px; color: var(--ink-soft); }
.disclaimer { margin-top: 28px; font-size: 12px; color: var(--ink-mute); text-align: center; }

/* ---------- 9. Split / Services ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-img { position: relative; }
.split-img img { border-radius: 24px; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; box-shadow: var(--shadow); }
.split-img::before { content: ""; position: absolute; z-index: -1; inset: 22px -18px -18px 22px; border-radius: 24px; background: linear-gradient(135deg, var(--accent-tint), #fdf3da); }
.split-text h2 { font-size: clamp(26px, 3.6vw, 32px); font-weight: 800; line-height: 1.55; }
.split-text > p { margin: 14px 0 22px; color: var(--ink-soft); }
.split-text .btn { margin-top: 12px; }

.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .25s; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--accent); }
.service-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service-card div { padding: 24px; }
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.service-card p { font-size: 15px; color: var(--ink-soft); }

/* ---------- 10. Exams (compact secondary section) ---------- */
.exam-band { background: linear-gradient(135deg, var(--deep), #0b4a45); color: #fff; border-radius: 28px; padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
.exam-band::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(232,182,76,.25), transparent 65%); inset-inline-end: -100px; top: -140px; }
.exam-band .eyebrow { background: rgba(255,255,255,.1); color: #d9f2ee; border: 1px solid rgba(255,255,255,.18); }
.exam-band h2 { font-size: clamp(24px, 3.4vw, 30px); font-weight: 800; line-height: 1.6; max-width: 520px; }
.exam-band > p { color: #b9d6d2; margin: 10px 0 28px; max-width: 520px; position: relative; z-index: 1; }
.exam-mini { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.exam-mini a {
  padding: 20px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  transition: all .25s; backdrop-filter: blur(6px);
}
.exam-mini a:hover { background: rgba(255,255,255,.14); transform: translateY(-3px); }
.exam-mini strong { display: block; font-size: 24px; font-weight: 800; direction: ltr; text-align: start; color: var(--gold); }
.exam-mini span { font-size: 13px; color: #b9d6d2; }

/* ---------- 11. Stats ---------- */
.stats-band { background: linear-gradient(135deg, var(--deep), #0b4a45); color: #fff; border-radius: 28px; padding: 52px 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats-band strong { display: block; font-size: clamp(30px, 4vw, 40px); font-weight: 800; color: var(--gold); line-height: 1.4; }
.stats-band span { font-size: 14px; color: #a9c7c2; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.stat { border-top: 2px solid var(--accent); padding-top: 14px; }
.stat strong { display: block; font-size: 28px; font-weight: 800; }
.stat span { color: var(--ink-soft); font-size: 14px; }

/* ---------- 12. Testimonials ---------- */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; transition: all .25s; position: relative; }
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.quote::before { content: "”"; position: absolute; top: 14px; inset-inline-end: 24px; font-size: 80px; line-height: 1; color: var(--accent-tint); font-weight: 800; }
.stars { color: var(--gold); letter-spacing: 3px; font-size: 15px; margin-bottom: 10px; }
.quote blockquote { color: var(--ink-soft); font-size: 15px; flex: 1; position: relative; }
.quote-who { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--accent-dark)); color: #fff; font-weight: 800; display: grid; place-items: center; flex: none; }
.quote-who strong { display: block; font-size: 15px; }
.quote-who span { font-size: 13px; color: var(--ink-mute); }

/* ---------- 13. FAQ ---------- */
.faq-wrap { max-width: 820px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: #fff; margin-bottom: 12px; transition: all .25s; }
.faq details[open] { border-color: var(--accent); box-shadow: 0 10px 26px -18px rgba(15,118,110,.6); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font-size: 20px; display: grid; place-items: center; transition: transform .25s, background .25s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq details p { padding: 0 22px 20px; color: var(--ink-soft); font-size: 15px; }

/* ---------- 14. CTA ---------- */
.cta {
  position: relative; overflow: hidden; color: #fff; border-radius: 28px; padding: clamp(40px, 7vw, 68px) clamp(22px, 5vw, 40px); text-align: center;
  background: linear-gradient(120deg, rgba(6,45,42,.94), rgba(15,118,110,.86)), url("../img/photos/pages-wall.jpg") center / cover;
}
.cta::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(232,182,76,.3), transparent 65%); top: -120px; inset-inline-start: -80px; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(24px, 3.6vw, 32px); font-weight: 800; line-height: 1.6; }
.cta p { margin: 10px auto 28px; color: #cfe3e0; max-width: 500px; }
.cta .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 15. Inner pages ---------- */
.page-head { position: relative; overflow: hidden; color: #fff; padding: clamp(56px, 9vw, 88px) 0 clamp(44px, 7vw, 68px); background: linear-gradient(105deg, rgba(6,45,42,.96), rgba(15,118,110,.7)), var(--deep); }
.page-head.bg-about    { background: linear-gradient(105deg, rgba(6,45,42,.94), rgba(15,118,110,.72)), url("../img/photos/library-curve.jpg") center / cover; }
.page-head.bg-products { background: linear-gradient(105deg, rgba(6,45,42,.94), rgba(15,118,110,.72)), url("../img/photos/bookshelf.jpg") center / cover; }
.page-head.bg-contact  { background: linear-gradient(105deg, rgba(6,45,42,.94), rgba(15,118,110,.72)), url("../img/photos/library-lights.jpg") center / cover; }
.page-head h1 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 800; line-height: 1.5; }
.page-head p { margin-top: 10px; color: #cfe3e0; max-width: 560px; }
.crumbs { font-size: 13px; color: #a9c7c2; margin-bottom: 14px; }
.crumbs a:hover { color: #fff; }
.about-text { max-width: 680px; }
.about-text p + p { margin-top: 16px; }
.about-text p { color: var(--ink-soft); }
.team-card { text-align: center; }
.team-card .avatar { width: 84px; height: 84px; font-size: 28px; margin: 0 auto 14px; }
.team-card span { font-size: 14px; color: var(--ink-soft); }
.mini-timeline { border-inline-start: 2px solid var(--line); padding-inline-start: 28px; max-width: 640px; }
.mini-timeline li { position: relative; margin-bottom: 30px; }
.mini-timeline li::before { content: ""; position: absolute; inset-inline-start: -37px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--bg-soft); }
.mini-timeline strong { color: var(--accent); font-size: 14px; }
.mini-timeline h4 { font-size: 17px; margin: 2px 0; }
.mini-timeline p { color: var(--ink-soft); font-size: 15px; }

/* Products toolbar */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 18px; min-height: 40px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; color: var(--ink-soft); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.search-form { display: flex; gap: 10px; flex-wrap: wrap; }
.search-form input, .search-form select { min-width: 180px; }
.note { margin-top: 40px; padding: 16px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft); font-size: 14px; }

/* ---------- 16. Forms / contact ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 18px; }
label.lbl { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=search], select, textarea {
  width: 100%; min-height: 46px; font: inherit; font-size: 16px; color: var(--ink); padding: 11px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.info-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: 0; }
.info-item .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; flex: none; }
.info-item .ico svg { width: 22px; height: 22px; }
.info-item strong { display: block; }
.info-item span, .info-item a { color: var(--ink-soft); font-size: 15px; }

/* ---------- 17. Footer ---------- */
.site-footer { background: var(--deep); color: #cfe3e0; padding: 64px 0 28px; }
.site-footer .logo-text b { color: #fff; }
.site-footer .logo-text i { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; }
.footer-grid h4 { margin-bottom: 14px; font-size: 15px; color: #fff; }
.footer-grid li + li { margin-top: 8px; }
.footer-grid a, .footer-grid p { font-size: 14px; color: #a9c7c2; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #7fa39e; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.sub-form { display: flex; gap: 8px; margin-top: 12px; }
.sub-form input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; padding: 9px 14px; min-width: 0; font-size: 15px; }
.sub-form input::placeholder { color: #7fa39e; }
.sub-form .btn { padding: 9px 18px; background: var(--gold); color: var(--deep); flex: none; }

/* ---------- 18. Animations ---------- */
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes slide { 0% { transform: translateX(120%); } 100% { transform: translateX(-260%); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(40px, 30px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .1s; }
.js .reveal.d2 { transition-delay: .2s; }
.js .reveal.d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 19. Responsive ---------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .exam-mini { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 460px; width: 100%; margin-inline: auto; padding-bottom: 30px; }
  .fc-1 { inset-inline-start: 8px; top: 16px; }
  .fc-2 { inset-inline-end: 8px; bottom: 90px; }
  .fc-3 { display: none; }
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .split-img::before { inset: 14px -10px -10px 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header-inner { height: 64px; }
  .logo img { width: 34px; height: 34px; }
  .logo-text b { font-size: 20px; }
  .nav-burger { display: block; }
  .nav {
    position: absolute; top: 64px; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px; display: none;
    box-shadow: 0 24px 30px -20px rgba(6,45,42,.4); max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav-toggle:checked ~ .nav-burger span { background: transparent; }
  .nav-toggle:checked ~ .nav-burger span::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span::after { transform: translateY(-7px) rotate(-45deg); }

  .grid-2, .grid-3, .grid-4, .stats, .form-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats div { padding: 18px 0; }
  .hero-actions .btn { flex: 1; }
  .stats-band { grid-template-columns: repeat(2, 1fr); padding: 36px 20px; }
  .exam-mini { grid-template-columns: repeat(2, 1fr); }
  .section-head { margin-bottom: 32px; }
  .section-head-row .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .form-card { padding: 22px; }
  .toolbar, .search-form { flex-direction: column; align-items: stretch; width: 100%; }
  .search-form input, .search-form select { min-width: 0; width: 100%; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding-inline: 20px; padding-bottom: 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; flex: none; }
  .marquee-track { gap: 40px; }
  .brand { font-size: 17px; }
  .cta .row .btn { flex: 1; }
  .to-top { bottom: 14px; inset-inline-start: 14px; }
}

@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .hero { padding-top: 48px; }
  .hero-search { flex-direction: column; border-radius: 20px; padding: 8px; }
  .hero-search input { padding: 10px 14px; }
  .hero-search .btn { width: 100%; }
  .float-card { padding: 8px 12px; font-size: 12px; }
  .float-card .ico { width: 32px; height: 32px; }
  .card, .quote { padding: 22px; }
  .exam-mini { gap: 10px; }
  .exam-mini a { padding: 16px; }
  .exam-band { border-radius: 22px; }
  .stats-band { border-radius: 22px; gap: 18px; }
  .btn-lg { padding-inline: 22px; }
}

/* ==========================================================================
   20. Catalogue additions (product cards, category cards, filters)
   ========================================================================== */
[hidden] { display: none !important; }
.btn-sm { min-height: 38px; padding: 6px 18px; font-size: 14px; }

.course-body h3 { font-size: 17px; }
.en-title { font-size: 12px; color: var(--ink-mute); font-weight: 500; text-align: start; margin-top: -4px; }
.course-foot { gap: 12px; flex-wrap: wrap; }
.price { line-height: 1.5; }
.price b { font-size: 17px; font-weight: 800; color: var(--accent-dark); letter-spacing: -.2px; }
.price small { font-size: 12px; color: var(--ink-soft); font-weight: 500; }

/* Landing: category cards */
.cat-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .25s; }
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--accent); }
.cat-img { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cat-card:hover .cat-img img { transform: scale(1.07); }
.cat-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6,45,42,.55)); }
.cat-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.cat-count { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--accent-dark); background: var(--accent-tint); padding: 2px 12px; border-radius: 999px; }
.cat-body h3 { font-size: 19px; font-weight: 800; line-height: 1.6; }
.cat-body p { font-size: 14px; color: var(--ink-soft); }
.cat-foot { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-soft); }
.cat-foot b { color: var(--accent-dark); font-weight: 800; }
.cat-foot .arrow { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; transition: all .25s; }
.cat-card:hover .arrow { background: var(--accent); color: #fff; transform: translateX(-4px); }

/* Landing: exam band price line */
.exam-mini em { display: block; margin-top: 8px; font-style: normal; font-size: 13px; font-weight: 700; color: #fff; }

/* Products page: groups */
.prod-group { margin-bottom: 64px; }
.group-head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.group-head .ico { width: 50px; height: 50px; flex: none; border-radius: 15px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; }
.group-head .ico svg { width: 25px; height: 25px; }
.group-head h2 { font-size: 22px; font-weight: 800; line-height: 1.5; }
.group-head p { font-size: 14px; color: var(--ink-soft); }
.group-count { margin-inline-start: auto; flex: none; font-size: 13px; font-weight: 700; color: var(--accent-dark); background: var(--accent-tint); padding: 3px 14px; border-radius: 999px; }
.empty { text-align: center; padding: 48px 0; color: var(--ink-soft); }
.search-form input { min-width: 240px; }

@media (max-width: 760px) {
  .group-head { flex-wrap: wrap; gap: 12px; }
  .group-head h2 { font-size: 19px; }
  .group-count { margin-inline-start: 0; }
  .search-form input { min-width: 0; }
  .course-foot { flex-direction: column; align-items: stretch; }
  .course-foot .btn { width: 100%; }
}

/* ---------- 20. Shop: cart, product pages, checkout, policy pages (2026-11-15) ---------- */
.hp { position: absolute !important; inset-inline-start: 0; inset-block-start: 0; width: 1px !important; height: 1px !important; min-width: 0 !important;
  padding: 0 !important; margin: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); opacity: 0; }
form:has(> .hp), .form-card:has(.hp) { position: relative; }
.muted { color: var(--ink-soft); }
.small { font-size: 13px; line-height: 1.8; }
.nav-cart { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.nav-cart svg { width: 20px; height: 20px; }
.cart-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--gold); color: var(--deep);
  font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.cart-count[hidden] { display: none; }
.course h3 a:hover { color: var(--accent); }
.course-actions { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.center-note { text-align: center; margin-top: 26px; font-weight: 600; }
.center-note a { color: var(--accent); }
.foot-biz { margin-top: 10px; font-size: 13px; opacity: .8; }
.foot-contact li { margin-bottom: 6px; }
.biz-line { font-weight: 600; }

.crumbs-dark { color: var(--ink-mute); }
.crumbs-dark a { color: var(--ink-soft); }
.crumbs-dark a:hover { color: var(--accent); }
.product-page { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; margin-top: 8px; }
.pp-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pp-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.pp-provider { position: absolute; inset-block-start: 14px; inset-inline-start: 14px; background: #fff; border-radius: 99px; padding: 4px 14px; font-weight: 700; font-size: 14px; }
.pp-info h1 { font-size: clamp(24px, 3vw, 34px); line-height: 1.5; margin: 8px 0 2px; }
.pp-desc { margin: 14px 0; color: var(--ink-soft); font-size: 17px; }
.pp-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pp-meta li { background: var(--accent-tint); color: var(--accent-dark); border-radius: 99px; padding: 4px 14px; font-size: 13px; font-weight: 600; }
.pp-buy { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--bg-soft); }
.pp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pp-price b { font-size: 30px; font-weight: 800; color: var(--accent-dark); }
.pp-price small { flex-basis: 100%; color: var(--ink-soft); font-size: 13px; }
.pp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pp-pay { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--ink-soft); }
.pp-pay svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); }
.pp-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.pp-details h2 { font-size: 19px; margin-bottom: 10px; }
.pp-details p + p { margin-top: 10px; }
.email-steps { counter-reset: s; display: grid; gap: 12px; padding: 0; list-style: none; margin: 0; }
.email-steps li { counter-increment: s; position: relative; padding-inline-start: 38px; line-height: 1.85; font-size: 15px; }
.email-steps li::before { content: counter(s, persian); position: absolute; inset-inline-start: 0; inset-block-start: 1px; width: 26px; height: 26px;
  border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.email-steps.big li { font-size: 16.5px; }
.terms-list { display: grid; gap: 10px; }
.terms-list li { position: relative; padding-inline-start: 18px; font-size: 15px; }
.terms-list li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); }
.terms-list a, .doc a, .agree a, .email-steps a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.shop-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.shop-grid h2 { font-size: 20px; margin-bottom: 14px; }
.cart-items { display: grid; gap: 12px; }
.cart-item { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.cart-item img { width: 72px; height: 54px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.ci-body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.6; }
.ci-body a { font-weight: 700; }
.ci-body a:hover { color: var(--accent); }
.ci-body small { color: var(--ink-mute); font-size: 12px; }
.ci-price { white-space: nowrap; }
.ci-price b { color: var(--accent-dark); }
.ci-remove { border: 0; background: transparent; font-size: 22px; line-height: 1; width: 34px; height: 34px; border-radius: 8px; color: var(--ink-mute); cursor: pointer; }
.ci-remove:hover { background: #fdecec; color: #b91c1c; }
.cart-empty { text-align: center; padding: 30px 0; display: grid; gap: 16px; justify-items: center; }
.summary { position: sticky; inset-block-start: 96px; display: grid; gap: 12px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.sum-row.total { font-size: 19px; border-bottom: 0; }
.sum-row.total b { color: var(--accent-dark); }
.pay-method { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--accent); border-radius: 14px; background: var(--accent-tint); cursor: pointer; }
.pay-method svg { width: 26px; height: 26px; color: var(--accent); flex-shrink: 0; }
.pay-method span { display: flex; flex-direction: column; line-height: 1.6; }
.pay-method small { color: var(--ink-soft); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.8; cursor: pointer; }
.agree input { margin-top: 6px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--accent); }
.form-note { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--accent-tint); color: var(--accent-dark); font-size: 14px; }
#co-error.form-note, .form-note.err { background: #fdecec; color: #991b1b; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.container.narrow { max-width: 760px; }
.order-box { display: grid; gap: 4px; }
.order-box .btn { margin-top: 14px; }

.doc { max-width: 820px; }
.doc h2 { font-size: 22px; margin: 30px 0 10px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { font-size: 16.5px; line-height: 2; color: var(--ink-soft); }
.doc ul { display: grid; gap: 6px; padding-inline-start: 18px; list-style: disc; }

.toast { position: fixed; inset-block-end: 22px; inset-inline-start: 50%; transform: translate(50%, 30px); z-index: 120;
  background: var(--deep); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); opacity: 0;
  pointer-events: none; transition: opacity .25s, transform .25s; font-size: 14.5px; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(50%, 0); pointer-events: auto; }
.toast a { color: var(--gold); text-decoration: underline; margin-inline-start: 6px; }

@media (max-width: 1000px) {
  .product-page, .shop-grid { grid-template-columns: 1fr; }
  .pp-details { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 760px) {
  .pp-actions .btn { flex: 1 1 100%; }
  .cart-item { flex-wrap: wrap; }
  .cart-item img { width: 56px; height: 42px; }
  .course-actions { width: 100%; }
  .course-actions .btn { flex: 1; }
}
