/* =========================================================
   قالب سایت اسپوکس — راست‌چین، فونت وزیرمتن (ارقام فارسی)
   ترتیب: فونت ← توکن‌ها ← پایه ← نوار بالا ← هدر ← هیرو ← بخش‌های صفحهٔ اول
          ← صفحه‌های داخلی ← فوتر ← دسترس‌پذیری ← ریسپانسیو
   همهٔ فایل‌ها محلی‌اند (بدون CDN).
   ========================================================= */

/* ---------- فونت (وزیرمتن با ارقام فارسی، self-host) ---------- */
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/Vazirmatn-FD-Light.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Vazirmatn-FD-Regular.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Vazirmatn-FD-Medium.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Vazirmatn-FD-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/Vazirmatn-FD-Bold.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/Vazirmatn-FD-ExtraBold.woff2") format("woff2"); }

/* ---------- توکن‌ها ---------- */
:root {
  --navy: #021118;          /* نوار بالا، فوتر، عنوان‌ها */
  --navy-deep: #020B10;     /* نوار پایین فوتر */
  --yellow: #F7C800;        /* رنگ تأکیدی */
  --yellow-soft: #FEE788;   /* خط بخش همکاران */
  --blue: #0B4BA8;          /* عنوان کارت‌ها و پیوندها */
  --blue-dark: #083A82;
  --text: #021118;
  --muted: #5F646A;
  --strip: #F2F3F5;         /* نوار پایین کارت خبر */
  --line: #E4E6EA;

  --f-head: "Vazirmatn", Tahoma, system-ui, sans-serif;
  --f-body: "Vazirmatn", Tahoma, system-ui, sans-serif;

  --wrap: 1250px;           /* عرض محتوای اصلی */
  --wrap-wide: 1500px;      /* عرض هدر */
  --gutter: 24px;
  --topbar-h: 43px;
  --header-h: 86px;
  --shadow-card: 0 6px 34px rgba(2, 17, 24, .09);

  --bs-body-font-family: var(--f-body);
  --bs-body-color: var(--text);
}

/* ---------- پایه ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { font-family: var(--f-body); font-size: 16px; line-height: 1.85; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { font-family: var(--f-head); color: inherit; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
ul { list-style: none; margin: 0; padding: 0; }
main:focus { outline: none; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; }
/* فلش‌ها در راست‌چین قرینه می‌شوند */
.flip { transform: scaleX(-1); }

.skip-link { position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 2000; background: var(--yellow); color: var(--navy); padding: .75rem 1rem; font-weight: 700; }
.skip-link:focus { top: 1rem; }

/* ---------- نوار بالا ---------- */
.topbar { background: var(--navy); color: #fff; font-family: var(--f-head); font-size: 13px; font-weight: 500; }
.topbar__inner { min-height: var(--topbar-h); padding-inline: 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.topbar__title { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--yellow); }
.topbar__links { display: flex; gap: 28px; }
.topbar__links a { display: inline-flex; align-items: center; gap: 7px; }
.topbar__links svg { width: 16px; height: 16px; color: var(--yellow); }
.topbar__end { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.topbar__login { padding: 2px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 3px; }
.topbar__social { display: flex; align-items: center; }
.topbar__social li + li { border-inline-start: 1px solid rgba(255,255,255,.28); }
.topbar__social a { display: grid; place-items: center; width: 46px; height: 26px; }
.topbar__social svg { width: 15px; height: 15px; }

/* ---------- هدر (شفاف روی هیرو، تیره بعد از اسکرول) ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; margin-bottom: calc(var(--header-h) * -1); border-bottom: 1px solid rgba(255,255,255,.16); }
/* پس‌زمینه روی شبه‌عنصر تا offcanvas (fixed) داخل هدر خراب نشود */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); opacity: 0; transition: opacity .3s ease; }
.site-header.is-scrolled::before, .site-header.is-solid::before { opacity: 1; }
.site-header.menu-open { z-index: 1050; }
.site-header.is-scrolled { border-bottom-color: transparent; box-shadow: 0 8px 24px -12px rgba(0,0,0,.5); }
.site-header .navbar { padding: 0; }
.site-header__inner { width: 100%; max-width: calc(var(--wrap-wide) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.logo:hover { color: #fff; }
.logo__mark { width: 50px; height: 50px; flex: none; object-fit: contain; }
.logo__text { font-family: var(--f-head); font-weight: 700; font-size: 26px; line-height: 1; }

.navbar-toggler { border: 0; padding: 0; width: 44px; height: 44px; color: #fff; display: grid; place-items: center; }
.navbar-toggler svg { width: 28px; height: 28px; }
.navbar-toggler:focus { box-shadow: none; }

.site-header .nav-link {
  font-family: var(--f-head); font-weight: 600; font-size: 15px;
  color: #fff; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px !important;
}
.site-header .nav-link svg { width: 13px; height: 13px; transition: transform .2s; }
.site-header .nav-link:hover, .site-header .nav-link:focus-visible, .site-header .nav-link.show, .site-header .nav-link.active { color: var(--yellow); }
.site-header .nav-link.show svg { transform: rotate(180deg); }
.dropdown-menu { --bs-dropdown-border-radius: 0; --bs-dropdown-border-width: 0; --bs-dropdown-link-active-bg: var(--yellow); --bs-dropdown-link-active-color: var(--navy);
  border-top: 3px solid var(--yellow); box-shadow: 0 18px 40px -12px rgba(2,17,24,.35); padding: 8px 0; min-width: 230px; margin-top: 0 !important; text-align: start; }
.dropdown-item { font-family: var(--f-head); font-weight: 500; font-size: 15px; padding: 9px 20px; color: var(--navy); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--strip); color: var(--blue); }

/* دسکتاپ: باز شدن زیرمنو با هاور (کلیک و کیبورد همچنان از طریق Bootstrap کار می‌کند) */
@media (min-width: 1200px) and (hover: hover) {
  .site-header .dropdown:hover > .dropdown-menu { display: block; }
  .site-header .dropdown:hover > .nav-link { color: var(--yellow); }
}

/* ---------- هیرو ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(560px, calc(100svh - var(--topbar-h)), 880px);
  display: flex; color: #fff; background: var(--navy);
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(2,24,32,.84) 0%, rgba(2,24,32,.6) 55%, rgba(2,24,32,.35) 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 38px; height: 1px; background: rgba(255,255,255,.22); }
.hero__inner { display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--header-h) + 60px); padding-bottom: 150px; }
.hero__eyebrow { margin: 0 0 18px; color: var(--yellow); font-weight: 600; font-size: clamp(1rem, .9rem + .4vw, 1.25rem); }
.hero__title { font-weight: 800; font-size: clamp(2.3rem, 1rem + 3.8vw, 4.2rem); line-height: 1.45; margin: 0; max-width: 16ch; }
.hero__quote {
  position: absolute; inset-inline-end: 32px; bottom: 58px; margin: 0;
  font-family: var(--f-head); font-weight: 600; font-size: clamp(1.1rem, .8rem + 1vw, 1.8rem);
  color: var(--yellow); line-height: 1.4;
}

/* ---------- بخش‌ها ---------- */
.section { padding-block: 110px 20px; }
.section__title { text-align: center; font-weight: 800; font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.7rem); line-height: 1.4; margin: 0 0 18px; color: var(--navy); }
.section__sub { text-align: center; color: var(--muted); margin: 0 auto 56px; max-width: 60ch; }
.section__title + :not(.section__sub) { margin-top: 44px; }
.section__more { text-align: center; margin-top: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }

/* پیوند «بیشتر بخوانید» */
.more-link { display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-head); font-weight: 600; font-size: 16px; color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.more-link svg { width: 13px; height: 13px; color: var(--yellow); transform: scaleX(-1); }
.more-link:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }

.btn-brand { display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); color: var(--navy); font-weight: 700; padding: 12px 26px; border: 0; text-decoration: none; transition: background-color .2s, color .2s; }
.btn-brand:hover, .btn-brand:focus-visible { background: var(--navy); color: #fff; }
.btn-brand svg { width: 14px; height: 14px; }

/* ---------- کاروسل (scroll-snap بومی، بدون کتابخانه) ---------- */
.carousel-x { position: relative; }
.carousel-x__track {
  --per: 3; --gap: var(--gutter);
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--gap) * (var(--per) - 1)) / var(--per));
  gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  padding: 6px 0 40px; /* جای سایهٔ کارت‌ها */
}
.carousel-x__track::-webkit-scrollbar { display: none; }
.carousel-x__track > * { scroll-snap-align: start; }
.carousel-x__btn {
  position: absolute; top: calc(50% - 20px); transform: translateY(-50%); z-index: 2;
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid #D5D7DA; background: #fff; color: var(--yellow);
  display: grid; place-items: center; transition: border-color .2s, background-color .2s, opacity .2s;
}
.carousel-x__btn svg { width: 22px; height: 22px; }
.carousel-x__btn:hover:not(:disabled) { border-color: var(--yellow); background: var(--yellow); color: #fff; }
.carousel-x__btn:disabled { opacity: .4; cursor: default; }
.carousel-x__btn--prev { inset-inline-start: -78px; }
.carousel-x__btn--next { inset-inline-end: -78px; }
.carousel-x__dots { display: flex; justify-content: center; gap: 4px; margin-top: 30px; }
.carousel-x__dots button { width: 24px; height: 24px; border: 0; padding: 0; background: none; display: grid; place-items: center; }
.carousel-x__dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #CFD2D6; transition: background-color .2s; }
.carousel-x__dots button[aria-current="true"]::before { background: var(--yellow); }

/* ---------- کارت خبر ---------- */
.news-card { display: flex; flex-direction: column; background: #fff; box-shadow: var(--shadow-card); }
.news-card__media { position: relative; aspect-ratio: 398 / 267; overflow: hidden; background: var(--strip); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card__date {
  position: absolute; top: 10px; inset-inline-end: 16px; width: 70px; padding: 7px 0 8px;
  background: var(--yellow); color: #fff; text-align: center; font-family: var(--f-head); line-height: 1.3;
  display: flex; flex-direction: column;
}
.news-card__date span { font-size: 13px; font-weight: 600; }
.news-card__date b { font-size: 24px; font-weight: 800; margin-block: 1px; }
.news-card__body { flex: 1; padding: 22px 18px 24px; }
.news-card__title { font-weight: 700; font-size: 18px; line-height: 1.65; margin: 0 0 14px; }
.news-card__title a { color: var(--blue); text-decoration: none; }
.news-card__title a:hover { text-decoration: underline; }
.news-card__excerpt { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__foot { background: var(--strip); padding: 12px 17px 14px; }

/* ---------- کارت برنامه ---------- */
.programme { position: relative; isolation: isolate; aspect-ratio: 400 / 428; overflow: hidden; background: var(--navy); display: flex; align-items: flex-end; }
.programme__img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.programme:hover .programme__img { transform: scale(1.05); }
.programme__panel {
  margin: 0 20px 26px; width: 100%;
  background: #fff; padding: 16px 19px 14px 18px;
  display: flex; align-items: center; gap: 16px;
}
.programme__label { margin: 0 0 4px; font-size: 14px; color: #555A5F; line-height: 1.6; }
.programme__title { font-weight: 700; font-size: 18px; line-height: 1.7; margin: 0; }
.programme__title a { color: var(--blue); text-decoration: none; }
.programme__title a::after { content: ""; position: absolute; inset: 0; } /* کل کارت قابل کلیک */
.programme__go { flex: none; margin-inline-start: auto; width: 28px; height: 46px; background: var(--yellow); color: #fff; display: grid; place-items: center; transition: background-color .2s; }
.programme__go svg { width: 18px; height: 18px; transform: scaleX(-1); }
.programme:hover .programme__go { background: var(--blue); }

/* ---------- کارت رویداد ---------- */
.event-card { background: #fff; box-shadow: 0 8px 40px rgba(2, 17, 24, .08); display: flex; flex-direction: column; margin-bottom: 40px; }
.event-card__media { aspect-ratio: 400 / 265; background: #fff; overflow: hidden; }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; }
.event-card__body { padding: 22px 22px 40px; flex: 1; display: flex; flex-direction: column; }
.event-card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; margin-bottom: 14px; font-size: 15px; color: var(--navy); }
.event-card__meta li { display: inline-flex; align-items: center; gap: 8px; }
.event-card__meta svg { width: 14px; height: 14px; color: var(--yellow); flex: none; }
.event-card__title { font-weight: 700; font-size: 18px; line-height: 1.7; margin: 0 0 24px; color: var(--navy); }
.event-card__body .more-link { margin-top: auto; align-self: flex-start; }

/* ---------- معرفی (سکشن محتوا) ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about--flip .about__media { order: 2; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.about__media::after { content: ""; position: absolute; inset-inline-start: -18px; bottom: -18px; width: 45%; height: 45%; border: 6px solid var(--yellow); z-index: -1; }
.about__eyebrow { color: var(--yellow); font-weight: 700; margin: 0 0 8px; }
.about__title { font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); margin: 0 0 18px; color: var(--navy); }
.about__text { color: var(--muted); }

/* ---------- گالری ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid a, .gallery-grid figure { position: relative; display: block; overflow: hidden; background: var(--strip); margin: 0; aspect-ratio: 4 / 3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-grid a:hover img { transform: scale(1.05); }
.gallery-grid figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 30px 14px 10px; color: #fff; font-size: 14px; background: linear-gradient(transparent, rgba(2,17,24,.8)); }

/* ---------- همکاران ---------- */
.partners { padding-block: 40px 110px; }
.partners__title { display: flex; align-items: center; gap: 28px; margin: 0 0 36px; font-weight: 700; font-size: 17px; color: var(--yellow); }
.partners__title::before, .partners__title::after { content: ""; flex: 1; height: 1.5px; background: var(--yellow-soft); }
.partners__track { --per: 4; --gap: 40px; padding: 0; align-items: center; }
.partners__track li { display: grid; place-items: center; height: 160px; }
.partners__track img { max-height: 110px; width: auto; filter: grayscale(.15); transition: filter .2s, transform .2s; }
.partners__track a:hover img, .partners__track img:hover { filter: none; transform: scale(1.03); }

/* =========================================================
   صفحه‌های داخلی
   ========================================================= */
.page-hero { position: relative; isolation: isolate; background: var(--navy); color: #fff; padding: calc(var(--header-h) + 64px) 0 56px; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(circle at 12% 120%, rgba(247,200,0,.18), transparent 45%),
  radial-gradient(circle at 92% -20%, rgba(11,75,168,.45), transparent 55%); }
.page-hero__title { margin: 0 0 10px; font-weight: 800; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.5; }
.breadcrumb-x { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: rgba(255,255,255,.75); list-style: none; margin: 0; padding: 0; }
.breadcrumb-x a { color: #fff; text-decoration: none; }
.breadcrumb-x a:hover { color: var(--yellow); }
.breadcrumb-x li + li::before { content: "/"; margin-inline-end: 6px; color: var(--yellow); }

.page-body { padding-block: 72px 96px; }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }

/* مقاله */
.article__cover { margin: 0 0 28px; }
.article__cover img { width: 100%; max-height: 520px; object-fit: cover; }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.article__meta li { display: inline-flex; align-items: center; gap: 6px; }
.article__meta svg { width: 15px; height: 15px; color: var(--yellow); }
.article__title { font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); color: var(--navy); margin: 0 0 18px; }
.article__lead { font-size: 18px; color: var(--navy); border-inline-start: 4px solid var(--yellow); padding-inline-start: 16px; margin: 0 0 26px; }
.prose { font-size: 17px; line-height: 2.05; color: #1D2328; overflow-wrap: anywhere; }
.prose h2, .prose h3, .prose h4 { color: var(--navy); font-weight: 700; margin: 1.8em 0 .6em; }
.prose p { margin: 0 0 1.2em; }
.prose img { height: auto; margin: 1.2em auto; }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin: 0 0 1.2em; }
.prose ul { list-style: disc; }
.prose a { text-underline-offset: 4px; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; background: var(--strip); border-inline-start: 4px solid var(--yellow); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }

/* ستون کناری */
.side-box { background: #fff; box-shadow: var(--shadow-card); padding: 22px 22px 18px; margin-bottom: 26px; }
.side-box__title { position: relative; font-weight: 700; font-size: 18px; margin: 0 0 18px; padding-bottom: 8px; color: var(--navy); }
.side-box__title::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 46px; height: 2px; background: var(--yellow); }
.side-links li + li { border-top: 1px solid var(--line); }
.side-links a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; color: var(--navy); text-decoration: none; }
.side-links a:hover { color: var(--blue); }
.side-post { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; padding: 10px 0; }
.side-post + .side-post { border-top: 1px solid var(--line); }
.side-post img { width: 76px; height: 60px; object-fit: cover; }
.side-post a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 14.5px; line-height: 1.7; }
.side-post a:hover { color: var(--blue); }
.side-post time { display: block; font-size: 12.5px; color: var(--muted); }

/* شبکهٔ کارت‌ها در صفحه‌های فهرست */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px var(--gutter); }

/* صفحه‌بندی */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 56px; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-weight: 600; }
.pager a:hover { border-color: var(--yellow); color: var(--blue); }
.pager .is-current { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.pager .is-gap { border: 0; }

/* اعضا (هیئت رئیسه و…) */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px var(--gutter); }
.person { background: #fff; box-shadow: var(--shadow-card); text-align: center; }
.person__photo { aspect-ratio: 1 / 1; overflow: hidden; background: var(--strip); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__body { padding: 18px 14px 20px; }
.person__name { font-weight: 700; font-size: 17px; margin: 0 0 4px; color: var(--navy); }
.person__role { margin: 0; color: var(--muted); font-size: 14.5px; }
.person__social { display: flex; justify-content: center; gap: 4px; margin-top: 10px; }
.person__social a { width: 32px; height: 32px; display: grid; place-items: center; color: var(--blue); }
.person__social a:hover { color: var(--yellow); }
.person__social svg { width: 16px; height: 16px; }

/* تماس */
.contact { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 48px; align-items: start; }
.contact__card { background: var(--navy); color: #fff; padding: 32px 28px; }
.contact__card h2 { font-size: 22px; font-weight: 700; margin: 0 0 18px; }
.contact__card p { color: #C9CDD0; }
.contact__item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1); }
.contact__item svg { width: 18px; height: 18px; color: var(--yellow); flex: none; margin-top: 5px; }
.contact__item b { display: block; font-weight: 600; font-size: 14px; color: #B8BEC2; }
.contact__item a { color: #fff; text-decoration: none; }
.contact__item a:hover { color: var(--yellow); }
.form-x { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-x .full { grid-column: 1 / -1; }
.form-x label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--navy); }
.form-x input, .form-x textarea { width: 100%; border: 1px solid #D5D7DA; background: #fff; padding: 12px 14px; font: inherit; border-radius: 0; transition: border-color .2s, box-shadow .2s; }
.form-x input:focus, .form-x textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,75,168,.12); }
.form-x textarea { min-height: 170px; resize: vertical; }
.notice { padding: 14px 18px; margin-bottom: 22px; background: #E8F5EC; color: #11613A; border-inline-start: 4px solid #1F9D55; }

/* پرسش‌های متداول */
.faq { max-width: 900px; margin-inline: auto; }
.faq__item { background: #fff; box-shadow: var(--shadow-card); margin-bottom: 14px; }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 700; color: var(--navy); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { width: 16px; height: 16px; color: var(--yellow); transition: transform .2s; flex: none; }
.faq__item[open] summary svg { transform: rotate(180deg); }
.faq__item[open] summary { color: var(--blue); }
.faq__answer { padding: 0 22px 20px; color: var(--muted); line-height: 2; }

/* حالت خالی */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty svg { width: 46px; height: 46px; color: var(--yellow); margin-bottom: 12px; }

/* ---------- فوتر ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--navy); color: #fff; font-family: var(--f-head); }
.site-footer__deco { position: absolute; top: 60px; width: 260px; fill: rgba(255,255,255,.025); pointer-events: none; }
.site-footer__deco--l { left: 6%; }
.site-footer__deco--r { right: 5%; }
.site-footer__grid { position: relative; display: grid; grid-template-columns: 425fr 529fr 296fr; gap: 32px; padding-block: 56px 44px; }
.logo--stacked { flex-direction: column; gap: 12px; align-items: center; }
.logo--stacked .logo__mark { width: 84px; height: 84px; }
.logo--stacked .logo__text { font-size: 34px; font-weight: 800; }
.site-footer__about { margin: 18px 0 0; color: #B8BEC2; font-size: 15px; line-height: 1.9; max-width: 34ch; }
.site-footer__follow { margin: 24px 0 6px; font-weight: 600; font-size: 17px; }
.site-footer__social { display: flex; gap: 2px; margin-inline-start: -8px; }
.site-footer .site-footer__social a { display: grid; place-items: center; width: 34px; height: 34px; color: var(--yellow); }
.site-footer .site-footer__social a:hover { color: #fff; }
.site-footer__social svg { width: 17px; height: 17px; }
.site-footer__title { position: relative; display: inline-block; font-weight: 700; font-size: 20px; line-height: 1.4; margin: 0 0 22px; padding-bottom: 6px; }
.site-footer__title::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 62px; height: 2px; background: var(--yellow); }
.site-footer__label { margin: 0 0 8px; color: #B8BEC2; font-size: 15px; }
.site-footer__value { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; font-size: 16px; }
.site-footer__value svg, .site-footer__address svg { width: 16px; height: 16px; color: var(--yellow); flex: none; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer__address { display: flex; align-items: flex-start; gap: 10px; font-style: normal; font-size: 16px; line-height: 1.9; padding-top: 4px; }
.site-footer__address svg { margin-top: 7px; }
.site-footer__bottom { position: relative; background: var(--navy-deep); font-size: 14px; }
.site-footer__bottom-inner { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 14px; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; align-items: center; }
.site-footer__bottom li + li::before { content: "•"; margin-inline: 14px; color: #fff; }
.site-footer__bottom a { color: #C9CDD0; }

/* ---------- دسترس‌پذیری: فوکوس ---------- */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.topbar :focus-visible, .site-header :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .site-footer :focus-visible, .offcanvas :focus-visible, .contact__card :focus-visible { outline-color: var(--yellow); }
.programme:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.programme__title a:focus-visible { outline: none; }
.carousel-x__track:focus-visible { outline-offset: -3px; }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 1399.98px) {
  .carousel-x__btn--prev { inset-inline-start: -18px; }
  .carousel-x__btn--next { inset-inline-end: -18px; }
  .carousel-x__btn { width: 48px; height: 48px; box-shadow: 0 4px 14px rgba(2,17,24,.12); }
}
@media (max-width: 1199.98px) {
  .site-header__inner { min-height: 72px; }
  :root { --header-h: 72px; }
  .offcanvas { --bs-offcanvas-width: min(360px, 88vw); background: var(--navy); color: #fff; }
  .offcanvas-header { border-bottom: 1px solid rgba(255,255,255,.12); }
  .offcanvas-title { font-family: var(--f-head); font-weight: 700; font-size: 20px; margin: 0; }
  .offcanvas .nav-link { width: 100%; justify-content: space-between; padding: 14px 4px !important; border-bottom: 1px solid rgba(255,255,255,.08); }
  .offcanvas .dropdown-menu { position: static !important; transform: none !important; background: rgba(255,255,255,.04); border-top: 0; box-shadow: none; }
  .offcanvas .dropdown-item { color: rgba(255,255,255,.85); }
  .offcanvas .dropdown-item:hover { background: rgba(255,255,255,.08); color: var(--yellow); }
  .carousel-x__track { --per: 2.15; }
  .partners__track { --per: 3; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }
  .logo--stacked { align-items: flex-start; }
  .layout-side { grid-template-columns: 1fr; }
  .people { grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 991.98px) {
  .topbar__inner { grid-template-columns: 1fr auto; }
  .topbar__title { display: none; }
  .grid-3, .cards-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - var(--gutter) / 2); justify-self: center; width: 100%; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about--flip .about__media { order: 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
  :root { --gutter: 16px; --topbar-h: 40px; }
  .topbar__inner { padding-inline: 16px; }
  .topbar__links { gap: 16px; }
  .topbar__social a { width: 34px; }
  .topbar__social li:nth-child(n+4) { display: none; }
  .logo__mark { width: 40px; height: 40px; }
  .logo__text { font-size: 21px; }
  .hero__inner { padding-bottom: 130px; }
  .hero__quote { left: 16px; right: 16px; bottom: 56px; }
  .section { padding-block: 72px 10px; }
  .section__sub { margin-bottom: 36px; }
  .carousel-x__track { --per: 1.12; --gap: 16px; }
  .carousel-x__btn { display: none; }
  .grid-3, .cards-grid { grid-template-columns: 1fr; }
  .grid-3 > :last-child:nth-child(odd) { max-width: none; }
  .programme { aspect-ratio: 4 / 4.1; }
  .partners { padding-block: 30px 72px; }
  .partners__track { --per: 2; --gap: 20px; }
  .partners__track li { height: 110px; }
  .site-footer__grid { grid-template-columns: 1fr; padding-block: 48px 36px; }
  .site-footer__deco { display: none; }
  .site-footer__bottom-inner { flex-direction: column; align-items: flex-start; }
  .site-footer__bottom li + li::before { margin-inline: 8px; }
  .page-hero { padding: calc(var(--header-h) + 40px) 0 40px; }
  .page-body { padding-block: 48px 72px; }
  .people { grid-template-columns: 1fr 1fr; gap: 16px; }
  .form-x { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html, .carousel-x__track { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .topbar, .site-header, .carousel-x__btn, .carousel-x__dots, .site-footer { display: none !important; }
  .hero, .page-hero { min-height: auto; color: #000; background: none; padding: 0 0 12px; } .hero::before, .hero__img, .page-hero::before { display: none; }
}
