/* Project page «جدول زمانی پروژه» — Figma 687:1379. A 3px #F3EFE5 line through 16px #4C504A dots, from the first
   milestone (right) to the last (left); title and date centred under each dot. A milestone not yet reached is hollow. */
.wp-block-post-content > .scico-project-timeline { margin-block-start: 0; }

.scico-project-timeline { box-sizing: border-box; margin-block-start: 0; padding: 8px 96px 96px; background: #fff; }
.scico-project-timeline__inner { display: flex; width: min(100%, var(--project-timeline-contentWidth, 1248px)); flex-direction: column; gap: 40px; margin-inline: auto; }
.scico-project-timeline h2 { margin: 0; color: var(--project-timeline-headingColor, #000); font-size: var(--project-timeline-headingSize, 32px); font-weight: var(--project-timeline-headingWeight, 800); line-height: 1.45; text-align: right; }

.scico-project-timeline__list { position: relative; display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 0; list-style: none; }
/* Line between the first and last dot centres (each milestone column is 96px wide). */
.scico-project-timeline__list::before { position: absolute; top: 6.5px; right: 48px; left: 48px; height: 3px; border-radius: 2px; background: var(--project-timeline-lineColor, #f3efe5); content: ""; }
.scico-project-timeline__item { position: relative; display: flex; width: 96px; min-width: 0; flex: 0 0 96px; flex-direction: column; align-items: center; gap: 20px; margin: 0; text-align: center; }
.scico-project-timeline__dot { width: 16px; height: 16px; box-sizing: border-box; border: 2px solid var(--project-timeline-dotColor, #4c504a); border-radius: 50%; background: var(--project-timeline-dotColor, #4c504a); transition: transform 250ms ease; }
.scico-project-timeline__item.is-upcoming .scico-project-timeline__dot { background: #fff; }
.scico-project-timeline__text { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.scico-project-timeline__label { color: var(--project-timeline-labelColor, #000); font-size: var(--project-timeline-labelSize, 17px); font-weight: var(--project-timeline-labelWeight, 600); line-height: 1.5; white-space: nowrap; }
.scico-project-timeline__item.is-upcoming .scico-project-timeline__label { opacity: .6; }
.scico-project-timeline__date { color: var(--project-timeline-dateColor, #767676); font-size: var(--project-timeline-dateSize, 14px); font-weight: 400; line-height: 1.5; unicode-bidi: isolate; white-space: nowrap; }
.scico-project-timeline .screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (hover: hover) {
	.scico-project-timeline__item:hover .scico-project-timeline__dot { transform: scale(1.3); }
}
@media (prefers-reduced-motion: reduce) {
	.scico-project-timeline__dot { transition: none; }
}

@media (max-width: 1100px) {
	.scico-project-timeline { padding: 8px 32px 80px; }
	.scico-project-timeline h2 { font-size: min(var(--project-timeline-headingSize, 32px), 28px); }
	.scico-project-timeline__item { width: 80px; flex-basis: 80px; }
	.scico-project-timeline__list::before { right: 40px; left: 40px; }
	.scico-project-timeline__label { font-size: min(var(--project-timeline-labelSize, 17px), 15px); }
}

/* Narrow screens: a vertical line on the right, each milestone a row with its date at the far end. */
@media (max-width: 760px) {
	.scico-project-timeline { padding: 0 16px 64px; }
	.scico-project-timeline__inner { gap: 24px; }
	.scico-project-timeline h2 { font-size: min(var(--project-timeline-headingSize, 32px), 24px); }
	.scico-project-timeline__list { flex-direction: column; gap: 20px; }
	.scico-project-timeline__list::before { top: 8px; right: 6.5px; bottom: 8px; left: auto; width: 3px; height: auto; }
	.scico-project-timeline__item { width: auto; flex: none; flex-direction: row; align-items: center; gap: 16px; text-align: right; }
	.scico-project-timeline__dot { flex: 0 0 16px; }
	.scico-project-timeline__text { min-width: 0; flex: 1 1 auto; flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
	.scico-project-timeline__label { font-size: min(var(--project-timeline-labelSize, 17px), 16px); white-space: normal; }
}

/* Layout «path» — about page «مسیر رشد», Figma 688:1949. 200×120 photos (Figma's grey is the colour photo desaturated;
   colour returns on hover), a 2px #D5D5D5 line dashed 8/8 with an arrowhead at each end 24px under the photos, and per
   milestone a 7px square on the line, a 1px drop and an 11px square beside the year (28 Bold → 24) and text (20 → 16). */
.scico-project-timeline--path { --path-photo: 120px; padding: 80px 96px 96px; }
.scico-project-timeline--path .scico-project-timeline__track { position: relative; }
.scico-project-timeline--path .scico-project-timeline__axis { position: absolute; top: calc(var(--path-photo) + 23px); right: 0; left: 0; height: 2px; background: repeating-linear-gradient(to left, var(--project-timeline-lineColor, #d5d5d5) 0 8px, transparent 8px 16px); }
.scico-project-timeline--path .scico-project-timeline__axis::before,
.scico-project-timeline--path .scico-project-timeline__axis::after { position: absolute; top: 50%; width: 9px; height: 9px; box-sizing: border-box; border: solid var(--project-timeline-lineColor, #d5d5d5); border-radius: 1px; content: ""; }
.scico-project-timeline--path .scico-project-timeline__axis::before { left: 1px; border-width: 0 0 2px 2px; transform: translateY(-50%) rotate(45deg); }
.scico-project-timeline--path .scico-project-timeline__axis::after { right: 1px; border-width: 2px 2px 0 0; transform: translateY(-50%) rotate(45deg); }
.scico-project-timeline--path .scico-project-timeline__list { justify-content: center; gap: 32px; }
.scico-project-timeline--path .scico-project-timeline__list::before { content: none; }
.scico-project-timeline--path .scico-project-timeline__item { width: auto; flex: 0 1 200px; align-items: stretch; gap: 20px; text-align: right; }
.scico-project-timeline__photo { display: block; overflow: hidden; height: var(--path-photo); background: #f1f1f1; }
.scico-project-timeline__photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter 400ms ease, transform 500ms ease; }
.scico-project-timeline--path .scico-project-timeline__text { position: relative; align-items: stretch; gap: 12px; min-height: 92px; padding: 20px 23px 0 0; }
.scico-project-timeline__marker { position: absolute; top: 1px; right: 0; width: 11px; height: 91px; background: linear-gradient(var(--project-timeline-dotColor, #d9d9d9), var(--project-timeline-dotColor, #d9d9d9)) 5px 7px / 1px 73px no-repeat; transition: filter 250ms ease; }
.scico-project-timeline__marker::before,
.scico-project-timeline__marker::after { position: absolute; background: var(--project-timeline-dotColor, #d9d9d9); content: ""; transition: background-color 250ms ease; }
.scico-project-timeline__marker::before { top: 0; left: 2px; width: 7px; height: 7px; }
.scico-project-timeline__marker::after { bottom: 0; left: 0; width: 11px; height: 11px; }
.scico-project-timeline--path .scico-project-timeline__date { color: var(--project-timeline-dateColor, #000); font-size: var(--project-timeline-dateSize, 24px); font-weight: var(--project-timeline-dateWeight, 700); line-height: 1.3; unicode-bidi: normal; }
.scico-project-timeline--path .scico-project-timeline__label { font-size: var(--project-timeline-labelSize, 16px); font-weight: var(--project-timeline-labelWeight, 500); line-height: 1.6; white-space: normal; }

@media (hover: hover) {
	.scico-project-timeline--path .scico-project-timeline__item:hover .scico-project-timeline__photo img { filter: grayscale(0); transform: scale(1.05); }
	.scico-project-timeline--path .scico-project-timeline__item:hover .scico-project-timeline__marker { background-image: linear-gradient(var(--project-timeline-labelColor, #000), var(--project-timeline-labelColor, #000)); }
	.scico-project-timeline--path .scico-project-timeline__item:hover .scico-project-timeline__marker::before,
	.scico-project-timeline--path .scico-project-timeline__item:hover .scico-project-timeline__marker::after { background: var(--project-timeline-labelColor, #000); }
}
@media (prefers-reduced-motion: reduce) {
	.scico-project-timeline__photo img,
	.scico-project-timeline__marker,
	.scico-project-timeline__marker::before,
	.scico-project-timeline__marker::after { transition: none; }
	.scico-project-timeline--path .scico-project-timeline__item:hover .scico-project-timeline__photo img { transform: none; }
}

@media (max-width: 1100px) {
	.scico-project-timeline--path { padding: 72px 32px 80px; }
	.scico-project-timeline--path .scico-project-timeline__list { gap: 20px; }
	.scico-project-timeline--path .scico-project-timeline__item { width: auto; flex: 1 1 0; }
	.scico-project-timeline--path .scico-project-timeline__date { font-size: min(var(--project-timeline-dateSize, 24px), 22px); }
	.scico-project-timeline--path .scico-project-timeline__label { font-size: min(var(--project-timeline-labelSize, 16px), 15px); }
}

/* Narrow screens: the dashed line runs down the right edge, arrowheads at both ends; each milestone is a row of the
   year and text (an 11px square on the line beside the year) with the photo on the left. */
@media (max-width: 760px) {
	.scico-project-timeline--path { --path-photo: 96px; padding: 56px 16px 64px; }
	.scico-project-timeline--path .scico-project-timeline__axis { top: 0; right: 4px; bottom: 0; left: auto; width: 2px; height: auto; background: repeating-linear-gradient(to bottom, var(--project-timeline-lineColor, #d5d5d5) 0 8px, transparent 8px 16px); }
	.scico-project-timeline--path .scico-project-timeline__axis::before { top: 1px; left: 50%; transform: translateX(-50%) rotate(135deg); }
	.scico-project-timeline--path .scico-project-timeline__axis::after { top: auto; right: auto; bottom: 1px; left: 50%; transform: translateX(-50%) rotate(135deg); }
	.scico-project-timeline--path .scico-project-timeline__list { flex-direction: column; gap: 24px; padding: 16px 28px 16px 0; }
	.scico-project-timeline--path .scico-project-timeline__item { flex: none; flex-direction: row; align-items: flex-start; gap: 16px; }
	.scico-project-timeline--path .scico-project-timeline__photo { order: 2; flex: 0 0 42%; }
	.scico-project-timeline--path .scico-project-timeline__text { min-width: 0; min-height: 0; flex: 1 1 auto; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; gap: 6px; padding: 0; }
	.scico-project-timeline__marker { top: 9px; right: -28.5px; height: 11px; background: none; }
	.scico-project-timeline__marker::before { content: none; }
	.scico-project-timeline--path .scico-project-timeline__label { font-size: min(var(--project-timeline-labelSize, 16px), 16px); }
}
