/* ==========================================================================
   باگ باز | صفحه درباره ما
   تایم‌لاین سالانه، معرفی کامل تیم، پروفایل اعضا و بخش تقدیرنامه‌ها
   ========================================================================== */

.bba-page {
  --bba-primary: #3758f9;
  --bba-primary-soft: #eef2ff;
  --bba-accent: #13c296;
  --bba-section: #ffffff;
  --bba-bg: #f9fafb;
  --bba-surface: #ffffff;
  --bba-text: #111928;
  --bba-heading: #111928;
  --bba-muted: #5b6675;
  --bba-border: #e5e7eb;
  --bba-shadow: 0 18px 45px -24px rgba(17, 25, 40, 0.35);
  --bba-shadow-lg: 0 26px 60px -28px rgba(17, 25, 40, 0.45);
  --bba-radius: 20px;

  color: var(--bba-text);
}

.dark .bba-page {
  --bba-primary-soft: rgba(55, 88, 249, 0.16);
  --bba-section: #111928;
  --bba-bg: #1f2a37;
  --bba-surface: #1f2a37;
  --bba-text: #e5e7eb;
  --bba-heading: #ffffff;
  --bba-muted: #9ca3af;
  --bba-border: #374151;
  --bba-shadow: 0 18px 45px -24px rgba(0, 0, 0, 0.6);
  --bba-shadow-lg: 0 26px 60px -28px rgba(0, 0, 0, 0.75);
}

/* ---------- چیدمان بخش‌ها ---------- */
.bba-section {
  padding: 72px 0;
  background-color: var(--bba-section);
}

.bba-section--soft {
  background-color: var(--bba-bg);
}

/* لنگرهای داخلی صفحه زیر هدر ثابت پنهان نشوند */
.bba-page [id] {
  scroll-margin-top: 96px;
}

.bba-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.bba-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.bba-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--bba-primary);
  background-color: var(--bba-primary-soft);
  border-radius: 999px;
}

.bba-title {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--bba-heading);
}

.bba-sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.95;
  color: var(--bba-muted);
}

/* ---------- معرفی ---------- */
.bba-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.bba-intro__text > p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 2;
  color: var(--bba-muted);
}

.bba-intro__title {
  margin: 0 0 18px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--bba-heading);
}

.bba-checks {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.bba-checks li {
  position: relative;
  padding-inline-start: 30px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.9;
  color: var(--bba-text);
}

.bba-checks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--bba-accent);
}

.bba-checks li::after {
  content: "";
  position: absolute;
  inset-inline-start: 6px;
  top: 12px;
  width: 6px;
  height: 3px;
  border-inline-start: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.bba-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 150px;
  gap: 16px;
}

.bba-media__item {
  overflow: hidden;
  border-radius: var(--bba-radius);
  background-color: var(--bba-border);
}

.bba-media__item--tall {
  grid-row: span 2;
}

.bba-media__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bba-media__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px;
  text-align: center;
  border-radius: var(--bba-radius);
  background: linear-gradient(150deg, var(--bba-primary) 0%, #2c46d8 100%);
  color: #fff;
}

.bba-media__stat strong {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
}

.bba-media__stat span {
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.92;
}

/* ---------- تایم‌لاین ---------- */
.bba-timeline {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
}

.bba-timeline__body {
  position: relative;
}

.bba-timeline__line {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 50%;
  width: 2px;
  margin-inline-start: -1px;
  background: linear-gradient(
    to bottom,
    transparent 0,
    var(--bba-border) 40px,
    var(--bba-border) calc(100% - 40px),
    transparent 100%
  );
}

.bba-timeline__list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 36px;
}

.bba-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr);
  align-items: start;
  --bba-year-color: var(--bba-primary);
}

/* هر سال تم رنگی خودش را دارد تا فصل‌های مسیر از هم جدا دیده شوند */
.bba-timeline__item:nth-child(1) {
  --bba-year-color: #3758f9;
}

.bba-timeline__item:nth-child(2) {
  --bba-year-color: #6d28d9;
}

.bba-timeline__item:nth-child(3) {
  --bba-year-color: #be185d;
}

.bba-timeline__item:nth-child(4) {
  --bba-year-color: #92400e;
}

.bba-timeline__item:nth-child(5) {
  --bba-year-color: #047857;
}

.dark .bba-timeline__item:nth-child(1) {
  --bba-year-color: #8fa6ff;
}

.dark .bba-timeline__item:nth-child(2) {
  --bba-year-color: #c4b5fd;
}

.dark .bba-timeline__item:nth-child(3) {
  --bba-year-color: #fda4af;
}

.dark .bba-timeline__item:nth-child(4) {
  --bba-year-color: #fcd34d;
}

.dark .bba-timeline__item:nth-child(5) {
  --bba-year-color: #6ee7b7;
}

.bba-timeline__card {
  position: relative;
  min-width: 0;
  padding: 26px 28px;
  background-color: var(--bba-surface);
  border: 1px solid var(--bba-border);
  border-radius: var(--bba-radius);
  box-shadow: var(--bba-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.bba-timeline__card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--bba-year-color) 45%, var(--bba-border));
  box-shadow: var(--bba-shadow-lg);
}

.bba-timeline__item:nth-child(odd) .bba-timeline__card {
  grid-column: 1;
}

.bba-timeline__item:nth-child(even) .bba-timeline__card {
  grid-column: 3;
}

.bba-timeline__card,
.bba-timeline__node,
.bba-timeline__year-wrap {
  grid-row: 1;
}

.bba-timeline__node {
  grid-column: 2;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  padding-top: 45px;
}

.bba-timeline__node span {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--bba-surface);
  border: 4px solid var(--bba-year-color);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--bba-year-color) 14%, transparent);
}

/* ---------- نشان سال: یک‌درمیان چپ و راست، وصل به همان باکس ---------- */
.bba-timeline__year-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

/* سال در ستون مقابل کارت قرار می‌گیرد */
.bba-timeline__item:nth-child(odd) .bba-timeline__year-wrap {
  grid-column: 3;
}

.bba-timeline__item:nth-child(even) .bba-timeline__year-wrap {
  grid-column: 1;
}

.bba-timeline__year {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-width: 132px;
  padding: 14px 22px 12px;
  text-align: center;
  white-space: nowrap;
  background-color: var(--bba-surface);
  background-image: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bba-year-color) 9%, transparent),
    transparent 72%
  );
  border: 1px solid
    color-mix(in srgb, var(--bba-year-color) 26%, var(--bba-border));
  border-radius: 18px;
  box-shadow: var(--bba-shadow);
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    translate 0.3s ease, opacity 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.3s ease, box-shadow 0.3s ease;
}

/* نوار رنگی بالای نشان سال */
.bba-timeline__year::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 26%;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--bba-year-color),
    transparent
  );
  opacity: 0.9;
}

/* برچسب «فصل» بالای سال؛ نقش تیتر فصل‌های مسیر را می‌دهد */
.bba-timeline__year-chapter {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 9px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--bba-year-color);
  background-color: color-mix(in srgb, var(--bba-year-color) 12%, transparent);
  border-radius: 999px;
}

.bba-timeline__year-num {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--bba-year-color);
}

.bba-timeline__year-cap {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--bba-muted);
}

/* خط اتصال سال به خط عمودی تایم‌لاین و کارت خودش */
.bba-timeline__link {
  position: relative;
  flex: 1 1 auto;
  min-width: 24px;
  height: 2px;
  border-radius: 999px;
  background-image: linear-gradient(
    to left,
    color-mix(in srgb, var(--bba-year-color) 12%, transparent),
    color-mix(in srgb, var(--bba-year-color) 62%, transparent)
  );
  transform-origin: 100% 50%;
  transition: background-image 0.3s ease;
}

/* ترتیب قرارگیری: خط همیشه بین نشان سال و خط عمودی است */
.bba-timeline__item:nth-child(even) .bba-timeline__link {
  margin-inline-start: 14px;
}

.bba-timeline__item:nth-child(odd) .bba-timeline__link {
  order: -1;
  margin-inline-end: 14px;
  background-image: linear-gradient(
    to right,
    color-mix(in srgb, var(--bba-year-color) 12%, transparent),
    color-mix(in srgb, var(--bba-year-color) 62%, transparent)
  );
  transform-origin: 0 50%;
}

/* جرقه‌ای که از سال به سمت باکس حرکت می‌کند */
.bba-timeline__link::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-start: -3px;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background-color: var(--bba-year-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--bba-year-color) 18%, transparent);
  opacity: 0;
}

/* انیمیشن ورود: خط از سمت سال به سمت کارت کشیده می‌شود
   حالت پنهان فقط وقتی فعال می‌شود که اسکریپت این بخش هم بارگذاری شده باشد،
   تا اگر اسکریپت اجرا نشد، سال‌ها هیچ‌وقت نامرئی نمانند. */
.bz-rv-js.bba-timeline-anim .bba-timeline__link {
  transform: scaleX(0);
}

.bz-rv-js.bba-timeline-anim .bba-timeline__item.is-active .bba-timeline__link {
  transform: scaleX(1);
  transition: transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s;
}

.bz-rv-js.bba-timeline-anim .bba-timeline__year {
  opacity: 0;
  transform: translate3d(0, 12px, 0) scale(0.94);
}

.bz-rv-js.bba-timeline-anim .bba-timeline__item.is-active .bba-timeline__year {
  opacity: 1;
  transform: none;
  transition-delay: 0.05s;
}

/* حرکت جرقه بعد از کامل شدن اتصال */
.bba-timeline__item.is-active .bba-timeline__link::after {
  animation: bba-year-spark 3.6s ease-in-out 1.15s infinite;
}

.bba-timeline__item:nth-child(odd) .bba-timeline__link::after {
  animation-name: bba-year-spark-reverse;
}

/* حلقه‌ای که هنگام وصل شدن روی نقطه تایم‌لاین باز می‌شود */
.bba-timeline__item.is-active .bba-timeline__node span::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--bba-year-color);
  animation: bba-node-ring 1.5s ease-out 0.9s 1 both;
}

/* اتصال دوسویه: سال و کارت هم‌زمان برجسته می‌شوند */
.bba-timeline__item:hover .bba-timeline__year,
.bba-timeline__item:focus-within .bba-timeline__year {
  translate: 0 -3px;
  border-color: color-mix(in srgb, var(--bba-year-color) 55%, var(--bba-border));
  box-shadow: var(--bba-shadow-lg);
}

.bba-timeline__item:hover .bba-timeline__link,
.bba-timeline__item:focus-within .bba-timeline__link {
  background-image: linear-gradient(
    to left,
    color-mix(in srgb, var(--bba-year-color) 25%, transparent),
    var(--bba-year-color)
  );
}

.bba-timeline__item:nth-child(odd):hover .bba-timeline__link,
.bba-timeline__item:nth-child(odd):focus-within .bba-timeline__link {
  background-image: linear-gradient(
    to right,
    color-mix(in srgb, var(--bba-year-color) 25%, transparent),
    var(--bba-year-color)
  );
}

@keyframes bba-year-spark {
  0% {
    inset-inline-start: -3px;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    inset-inline-start: calc(100% - 4px);
    opacity: 0;
  }
}

@keyframes bba-year-spark-reverse {
  0% {
    inset-inline-start: calc(100% - 4px);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    inset-inline-start: -3px;
    opacity: 0;
  }
}

@keyframes bba-node-ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.3);
    opacity: 0;
  }
}

.bba-timeline__card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--bba-heading);
}

.bba-timeline__card p {
  margin: 0;
  font-size: 14px;
  line-height: 2;
  color: var(--bba-muted);
}

.bba-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.bba-tags li {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--bba-text);
  background-color: var(--bba-bg);
  border: 1px solid var(--bba-border);
  border-radius: 8px;
}

.bba-timeline__more {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding-top: 34px;
  color: var(--bba-muted);
}

.bba-timeline__more::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 50%;
  width: 2px;
  height: 26px;
  margin-inline-start: -1px;
  background-image: linear-gradient(
    to bottom,
    var(--bba-border) 0 6px,
    transparent 6px 12px
  );
  background-size: 2px 12px;
  background-repeat: repeat-y;
}

.bba-timeline__more-dots {
  display: flex;
  gap: 6px;
}

.bba-timeline__more-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--bba-primary);
  opacity: 0.25;
  animation: bba-pulse 2.4s ease-in-out infinite;
}

.bba-timeline__more-dots span:nth-child(2) {
  animation-delay: 0.3s;
}

.bba-timeline__more-dots span:nth-child(3) {
  animation-delay: 0.6s;
}

.bba-timeline__more-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
}

@keyframes bba-pulse {
  0%,
  100% {
    opacity: 0.2;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bba-timeline__more-dots span {
    animation: none;
    opacity: 0.6;
  }

  .bz-rv-js.bba-timeline-anim .bba-timeline__year,
  .bz-rv-js.bba-timeline-anim .bba-timeline__link {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .bba-timeline__item.is-active .bba-timeline__link::after,
  .bba-timeline__item.is-active .bba-timeline__node span::after {
    animation: none;
  }

  .bba-timeline__item:hover .bba-timeline__year,
  .bba-timeline__item:focus-within .bba-timeline__year {
    translate: none;
  }
}

@media (prefers-reduced-motion: reduce), (hover: none) {
  .bba-timeline__item.is-active .bba-timeline__link::after {
    display: none;
  }
}

/* ---------- تیم ---------- */
.bba-team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.bba-member {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px 20px 20px;
  text-align: center;
  background-color: var(--bba-surface);
  border: 1px solid var(--bba-border);
  border-radius: var(--bba-radius);
  box-shadow: var(--bba-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.bba-member:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--bba-primary) 40%, var(--bba-border));
  box-shadow: var(--bba-shadow-lg);
}

.bba-member__main {
  display: block;
  width: 100%;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: center;
  background: none;
  border: 0;
  cursor: pointer;
}

.bba-member__main:focus-visible,
.bba-member__more:focus-visible {
  outline: 2px solid var(--bba-primary);
  outline-offset: 6px;
  border-radius: 12px;
}

.bba-member__photo {
  position: relative;
  display: block;
  width: 116px;
  height: 116px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--bba-primary-soft), transparent);
}

.bba-member__photo::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--bba-primary) 35%, transparent);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.6s ease;
}

.bba-member:hover .bba-member__photo::after {
  opacity: 1;
  transform: rotate(45deg);
}

.bba-member__photo img {
  display: block;
  width: 116px;
  height: 116px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--bba-surface);
  box-shadow: 0 10px 24px -14px rgba(17, 25, 40, 0.5);
}

.bba-member__name {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--bba-heading);
}

.bba-member__role {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.8;
  color: var(--bba-primary);
}

.bba-member__tagline {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--bba-muted);
}

.bba-member__skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.bba-member__skills li {
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.8;
  color: var(--bba-muted);
  background-color: var(--bba-bg);
  border: 1px solid var(--bba-border);
  border-radius: 999px;
}

.bba-member__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.bba-member__more {
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--bba-primary);
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bba-member__more::after {
  content: "";
  width: 7px;
  height: 7px;
  border-inline-start: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.bba-member__more:hover::after {
  transform: rotate(45deg) translateY(2px);
}

.bba-member__socials {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bba-member__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--bba-muted);
  background-color: var(--bba-bg);
  border: 1px solid var(--bba-border);
  border-radius: 50%;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.bba-member__socials a:hover {
  color: #fff;
  background-color: var(--bba-primary);
  border-color: var(--bba-primary);
}

.bba-member__socials svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.bba-team__note {
  margin: 36px 0 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.9;
  color: var(--bba-muted);
}

.bba-team__note a {
  color: var(--bba-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- گفت‌وگوی پروفایل ---------- */
.bba-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  width: min(680px, calc(100% - 32px));
  max-height: min(86vh, 780px);
  padding: 0;
  overflow: hidden;
  color: var(--bba-text);
  background-color: var(--bba-surface);
  border: 1px solid var(--bba-border);
  border-radius: 24px;
  box-shadow: var(--bba-shadow-lg);
}

.bba-dialog::backdrop {
  background-color: rgba(17, 25, 40, 0.62);
  backdrop-filter: blur(4px);
}

.bba-dialog[open] {
  animation: bba-dialog-in 0.24s ease-out;
}

@keyframes bba-dialog-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.bba-dialog__scroll {
  max-height: inherit;
  padding: 30px 26px 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.bba-dialog__close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 20px;
  line-height: 1;
  color: var(--bba-muted);
  background-color: var(--bba-bg);
  border: 1px solid var(--bba-border);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.bba-dialog__close:hover {
  color: #fff;
  background-color: var(--bba-primary);
}

.bba-panel[hidden] {
  display: none;
}

.bba-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--bba-border);
}

.bba-panel__photo {
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--bba-surface);
  box-shadow: 0 10px 24px -14px rgba(17, 25, 40, 0.6);
}

.bba-panel__name {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--bba-heading);
}

.bba-panel__role {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.8;
  color: var(--bba-primary);
}

.bba-panel p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 2.1;
  color: var(--bba-muted);
}

.bba-panel__label {
  display: block;
  margin: 20px 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--bba-heading);
}

.bba-panel__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bba-panel__skills li {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bba-text);
  background-color: var(--bba-bg);
  border: 1px solid var(--bba-border);
  border-radius: 999px;
}

.bba-panel__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bba-panel__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bba-text);
  background-color: var(--bba-bg);
  border: 1px solid var(--bba-border);
  border-radius: 10px;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.bba-panel__links a:hover {
  color: var(--bba-primary);
  border-color: var(--bba-primary);
}

.bba-panel__links svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ---------- تقدیرنامه‌ها ---------- */
.bba-brands__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.bba-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  gap: 14px;
  padding: 26px 22px 22px;
  text-align: center;
  text-decoration: none;
  background-color: var(--bba-surface);
  border: 1px solid var(--bba-border);
  border-radius: var(--bba-radius);
  box-shadow: var(--bba-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.bba-brand:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--bba-primary) 40%, var(--bba-border));
  box-shadow: var(--bba-shadow-lg);
}

.bba-brand__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 96px;
  padding: 14px;
  box-sizing: border-box;
  background-color: #d8e5ff;
  border-radius: 14px;
}

.bba-brand__logo img {
  max-width: 100%;
  max-height: 66px;
  object-fit: contain;
}

.bba-brand__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--bba-heading);
}

.bba-brand__meta {
  font-size: 13px;
  line-height: 1.9;
  color: var(--bba-muted);
}

.bba-brand__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--bba-primary);
}

.bba-brand__cta::after {
  content: "";
  width: 6px;
  height: 6px;
  border-inline-start: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

/* در حالت تاریک، کارت‌ها کمی روشن‌تر از پس‌زمینه دیده شوند */
.dark .bba-member,
.dark .bba-brand,
.dark .bba-timeline__card {
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0)
  );
}

/* ---------- فراخوان پایانی ---------- */
.bba-cta {
  position: relative;
  overflow: hidden;
  padding: 56px 0;
  background: linear-gradient(140deg, #2c46d8 0%, var(--bba-primary) 55%, #4b6bff 100%);
}

.bba-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

.bba-cta__inner h2 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.6;
}

.bba-cta__inner p {
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.88);
}

.bba-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background-color: var(--bba-accent);
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bba-cta__btn:hover {
  transform: translateY(-2px);
  background-color: #0bb489;
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.55);
}

.bba-cta__glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(4px);
}

.bba-cta__glow--one {
  top: -220px;
  inset-inline-start: -80px;
}

.bba-cta__glow--two {
  bottom: -260px;
  inset-inline-end: -60px;
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 1023px) {
  .bba-section {
    padding: 60px 0;
  }

  .bba-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .bba-intro__title {
    font-size: 26px;
  }

  .bba-title {
    font-size: 26px;
  }
}

@media (max-width: 767px) {
  .bba-section {
    padding: 48px 0;
  }

  .bba-container {
    padding: 0 16px;
  }

  .bba-head {
    margin-bottom: 34px;
  }

  .bba-title,
  .bba-intro__title {
    font-size: 22px;
  }

  .bba-checks {
    grid-template-columns: minmax(0, 1fr);
  }

  .bba-media {
    grid-auto-rows: 130px;
  }

  /* تایم‌لاین تک‌ستونه؛ خط در سمت راست متن */
  .bba-timeline__line {
    inset-inline-start: 7px;
    margin-inline-start: 0;
  }

  .bba-timeline__list {
    gap: 22px;
  }

  .bba-timeline__item {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  .bba-timeline__item:nth-child(odd) .bba-timeline__card,
  .bba-timeline__item:nth-child(even) .bba-timeline__card {
    grid-column: 2;
    grid-row: 2;
    margin-top: 12px;
  }

  /* سال بالای کارت خودش، کنار خط تایم‌لاین */
  .bba-timeline__item:nth-child(odd) .bba-timeline__year-wrap,
  .bba-timeline__item:nth-child(even) .bba-timeline__year-wrap {
    grid-column: 2;
    grid-row: 1;
    padding-top: 0;
  }

  .bba-timeline__year {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    padding: 6px 14px;
    border-radius: 12px;
    background-image: none;
    box-shadow: none;
  }

  .bba-timeline__year::before {
    inset-inline: 18%;
    height: 2px;
  }

  .bba-timeline__year-chapter {
    display: none;
  }

  .bba-timeline__year-num {
    font-size: 18px;
    line-height: 1.5;
  }

  .bba-timeline__year-cap {
    margin-top: 0;
    font-size: 11px;
  }

  .bba-timeline__link {
    display: none;
  }

  .bba-timeline__node {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 10px;
  }

  .bba-timeline__node span {
    width: 16px;
    height: 16px;
    border-width: 3px;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--bba-year-color) 14%, transparent);
  }

  .bba-timeline__card {
    padding: 20px 18px;
  }

  .bba-timeline__more {
    align-items: flex-start;
    padding-inline-start: 38px;
    margin-top: 26px;
  }

  .bba-timeline__more::before {
    inset-inline-start: 7px;
    margin-inline-start: 0;
  }

  .bba-team__grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }

  .bba-member {
    padding: 22px 16px 16px;
  }

  .bba-member__photo,
  .bba-member__photo img {
    width: 96px;
    height: 96px;
  }

  .bba-member__foot {
    flex-direction: column;
    gap: 14px;
  }

  .bba-dialog__scroll {
    padding: 24px 18px 20px;
  }

  .bba-panel__head {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .bba-panel__name {
    font-size: 18px;
  }

  .bba-brands__grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }

  .bba-cta {
    padding: 44px 0;
  }

  .bba-cta__inner h2 {
    font-size: 22px;
  }

  .bba-cta__inner p {
    font-size: 14px;
  }
}

@media (max-width: 479px) {
  .bba-team__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bba-media {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 170px;
  }

  .bba-media__item--tall {
    grid-row: span 1;
  }

  .bba-brand__logo {
    height: 84px;
  }

  .bba-title,
  .bba-intro__title {
    font-size: 20px;
  }

  .bba-timeline__card {
    padding: 18px 14px;
  }

  .bba-member {
    padding: 20px 14px 14px;
  }

  .bba-dialog__scroll {
    padding: 20px 14px 16px;
  }

  .bba-cta__inner h2 {
    font-size: 20px;
  }
}
