/* About page — exam.aryan.ac.ir/about */
:root {
  --ab-ink: #102027;
  --ab-muted: #5c6b73;
  --ab-cream: #f7f3ec;
  --ab-sand: #c9ae86;
  --ab-teal: #1a4f58;
  --ab-teal-soft: #e7f1f2;
  --ab-line: rgba(16, 32, 39, 0.1);
  --ab-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ab {
  margin: 0;
  font-family: "Vazirmatn", "IRANSansX", Tahoma, sans-serif;
  color: var(--ab-ink);
  background: var(--ab-cream);
  line-height: 1.75;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.ab-wrap { overflow-x: clip; }

.ab-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px clamp(14px, 3.5vw, 32px);
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ab-line);
}

.ab-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
  flex: 1 1 auto;
}
.ab-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
}
.ab-brand span {
  min-width: 0;
}
.ab-brand strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ab-brand small {
  display: block;
  font-size: 0.7rem;
  color: var(--ab-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42vw;
}

.ab-top-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ab-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 650;
  border: 1px solid var(--ab-line);
  background: transparent;
  color: var(--ab-ink);
  white-space: nowrap;
  transition: background 0.25s var(--ab-ease), border-color 0.25s var(--ab-ease), color 0.25s var(--ab-ease);
}
.ab-chip:hover,
.ab-chip:focus-visible {
  background: rgba(16, 32, 39, 0.04);
  outline: none;
}
.ab-chip--solid {
  background: var(--ab-teal);
  color: #fff;
  border-color: transparent;
}
.ab-chip--solid:hover,
.ab-chip--solid:focus-visible {
  background: #163f46;
}

.ab-chip--ghost {
  display: none;
}

.ab-toc {
  position: sticky;
  top: 58px;
  z-index: 25;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 10px clamp(14px, 3.5vw, 32px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ab-line);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}
.ab-toc::-webkit-scrollbar { display: none; }
.ab-toc a {
  flex: 0 0 auto;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--ab-muted);
  background: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.2s var(--ab-ease), background 0.2s var(--ab-ease), border-color 0.2s var(--ab-ease);
}
.ab-toc a:hover,
.ab-toc a:focus-visible {
  color: var(--ab-teal);
  background: var(--ab-teal-soft);
  outline: none;
}

@media (max-width: 720px) {
  .ab-top {
    min-height: 54px;
    padding: 8px 12px;
    gap: 8px;
  }
  .ab-brand small { display: none; }
  .ab-brand strong { font-size: 0.86rem; max-width: 46vw; }
  .ab-brand img { width: 30px; height: 30px; border-radius: 8px; }
  .ab-chip--home { display: none; }
  .ab-chip {
    padding: 7px 12px;
    font-size: 0.78rem;
  }
  .ab-toc {
    top: 54px;
    padding: 8px 12px;
    gap: 2px;
    mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  }
  .ab-toc a {
    font-size: 0.76rem;
    padding: 6px 10px;
  }
}

.ab-hero {
  position: relative;
  min-height: min(78vh, 680px);
  display: grid;
  align-items: end;
  color: #f4efe6;
}
.ab-hero__lead {
  margin: 14px 0 0;
  max-width: 64ch;
  font-size: 0.98rem;
  line-height: 1.85;
  color: rgba(244, 239, 230, 0.9);
}
.ab-flow__step small {
  display: block;
  margin-top: 6px;
  line-height: 1.55;
}
.ab-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ab-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ab-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 22, 28, 0.35) 0%, rgba(10, 22, 28, 0.78) 100%);
}
.ab-hero__content {
  position: relative;
  z-index: 1;
  padding: 48px clamp(16px, 4vw, 48px) 40px;
  max-width: 920px;
}
.ab-kicker {
  margin: 0 0 10px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ab-sand);
}
.ab-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4.8vw, 3rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.ab-section {
  padding: 56px clamp(16px, 4vw, 40px);
  max-width: 1120px;
  margin: 0 auto;
}
.ab-section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
}
.ab-section > .ab-intro {
  margin: 0 0 28px;
  color: var(--ab-muted);
  max-width: 62ch;
}

.ab-feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 42px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--ab-line);
  border-radius: 22px;
}
.ab-feature:nth-child(even) { grid-template-columns: 0.95fr 1.05fr; }
.ab-feature:nth-child(even) .ab-feature__media { order: 2; }
.ab-feature__media {
  border-radius: 16px;
  overflow: hidden;
  background: var(--ab-teal-soft);
  aspect-ratio: 4 / 3;
}
.ab-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ab-feature__tag {
  display: inline-block;
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ab-teal);
  background: var(--ab-teal-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.ab-feature h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}
.ab-feature p {
  margin: 0 0 12px;
  color: var(--ab-muted);
  font-size: 0.95rem;
}
.ab-feature ul {
  margin: 0;
  padding: 0 1.1rem 0 0;
  color: var(--ab-ink);
}
.ab-feature li { margin: 0 0 6px; font-size: 0.92rem; }

.ab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ab-card {
  background: #fff;
  border: 1px solid var(--ab-line);
  border-radius: 18px;
  padding: 18px;
}
.ab-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.ab-card p, .ab-card li {
  margin: 0;
  color: var(--ab-muted);
  font-size: 0.88rem;
}
.ab-card ul { margin: 8px 0 0; padding: 0 1rem 0 0; }
.ab-card li { margin-bottom: 5px; }

.ab-roadmap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.ab-road {
  background: linear-gradient(180deg, #fff, #f3f8f8);
  border: 1px dashed rgba(26, 79, 88, 0.28);
  border-radius: 18px;
  padding: 18px;
}
.ab-road span {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #8a6b3d;
  background: #f3e8d6;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.ab-stats {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: stretch;
}
.ab-chart-box, .ab-adv-box {
  background: #fff;
  border: 1px solid var(--ab-line);
  border-radius: 20px;
  padding: 22px;
}
.ab-chart-box h3, .ab-adv-box h3 {
  margin: 0 0 16px;
  font-size: 1.05rem;
}
.ab-bars { display: grid; gap: 14px; }
.ab-bar { display: grid; gap: 6px; }
.ab-bar__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--ab-muted);
}
.ab-bar__track {
  height: 12px;
  border-radius: 999px;
  background: #e8eef0;
  overflow: hidden;
}
.ab-bar__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1a4f58, #2f7a84);
}
.ab-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.ab-flow__step {
  background: var(--ab-teal-soft);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--ab-teal);
}
.ab-adv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ab-adv-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 14px;
  background: #f8fafb;
}
.ab-adv-list strong { display: block; font-size: 0.95rem; }
.ab-adv-list span { color: var(--ab-muted); font-size: 0.84rem; }
.ab-adv-ico,
.ab-adv-list span.ab-adv-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--ab-teal);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
}

.ab-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas: "media text";
  gap: 0;
  align-items: stretch;
  background: #102027;
  color: #f4efe6;
  border-radius: 24px;
  overflow: hidden;
  direction: ltr; /* physical: media left, text right */
}
.ab-summary__media {
  grid-area: media;
  min-height: 280px;
  position: relative;
}
.ab-summary__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
  position: absolute;
  inset: 0;
}
.ab-summary__text {
  grid-area: text;
  padding: clamp(22px, 4vw, 36px);
  direction: rtl;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ab-summary__text h2 { margin: 0 0 10px; color: #fff; }
.ab-summary__text p { margin: 0 0 14px; color: rgba(244,239,230,0.82); }
.ab-summary__eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ab-sand);
}
.ab-summary__text a {
  color: #e6d3b2;
  text-decoration: none;
  border-bottom: 1px solid rgba(230, 211, 178, 0.35);
}
.ab-summary__text a:hover {
  border-bottom-color: #e6d3b2;
}
.ab-summary__text .ab-cta a {
  border-bottom: 0;
}
.ab-summary__text .ab-cta {
  justify-content: flex-start;
}
.ab-summary__collab {
  margin: 16px 0 0 !important;
  font-size: 0.9rem;
  font-weight: 650;
  color: rgba(244, 239, 230, 0.78) !important;
}

.ab-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ab-cta a {
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
}
.ab-cta .primary {
  background: var(--ab-sand);
  color: #102027;
}
.ab-cta .ghost {
  border: 1px solid rgba(244,239,230,0.28);
  color: #f4efe6;
}

.ab-dev {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: clamp(28px, 5vw, 44px);
  background:
    radial-gradient(1200px 420px at 100% 0%, rgba(201, 174, 134, 0.18), transparent 55%),
    linear-gradient(145deg, #0f242b 0%, #163940 48%, #1a4f58 100%);
  color: #f4efe6;
  border: 1px solid rgba(244, 239, 230, 0.12);
  text-align: center;
}
.ab-dev__glow {
  position: absolute;
  inset: auto auto -40% -10%;
  width: 55%;
  height: 70%;
  background: radial-gradient(circle, rgba(201,174,134,0.16), transparent 70%);
  pointer-events: none;
}
.ab-dev__eyebrow {
  position: relative;
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ab-sand);
}
.ab-dev h2 {
  position: relative;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}
.ab-dev__lead,
.ab-dev__text {
  position: relative;
  margin: 0 auto 12px;
  max-width: 58ch;
  color: rgba(244, 239, 230, 0.86);
  font-size: 0.98rem;
  line-height: 1.9;
}
.ab-dev a {
  color: #e6d3b2;
  text-decoration: none;
  border-bottom: 1px solid rgba(230, 211, 178, 0.35);
}
.ab-dev a:hover {
  border-bottom-color: #e6d3b2;
}
.ab-dev__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 18px;
}
.ab-dev__phone,
.ab-dev__site {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  border-bottom: 0 !important;
  transition: transform 0.25s var(--ab-ease), background 0.25s var(--ab-ease);
}
.ab-dev__phone {
  background: var(--ab-sand);
  color: #102027 !important;
}
.ab-dev__site {
  background: rgba(255,255,255,0.06);
  color: #f4efe6 !important;
  border: 1px solid rgba(244,239,230,0.22);
}
.ab-dev__phone:hover,
.ab-dev__site:hover {
  transform: translateY(-2px);
}
.ab-dev__collab {
  position: relative;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 650;
  color: rgba(244, 239, 230, 0.78);
  letter-spacing: -0.01em;
}

.ab-foot {
  padding: 28px 16px 36px;
  text-align: center;
  color: var(--ab-muted);
  font-size: 0.84rem;
}

@media (max-width: 900px) {
  .ab-feature,
  .ab-feature:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .ab-feature:nth-child(even) .ab-feature__media { order: 0; }
  .ab-grid { grid-template-columns: 1fr 1fr; }
  .ab-stats, .ab-roadmap { grid-template-columns: 1fr; }
  .ab-summary {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "text";
  }
  .ab-summary__media {
    min-height: 220px;
    aspect-ratio: 16 / 10;
  }
  .ab-flow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ab-grid { grid-template-columns: 1fr; }
  .ab-flow { grid-template-columns: 1fr; }
}
