/* Project page «نتایج بر اساس سه محور ارزش» — Figma 687:1372. Three bordered cards: photo on the right, then the
   figure, title and line. Photos are grey like Figma and take their colours on hover. */
.wp-block-post-content > .scico-project-results { margin-block-start: 0; }

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

.scico-project-results__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.scico-project-results__card { display: flex; min-width: 0; min-height: 190px; box-sizing: border-box; align-items: stretch; gap: 16px; margin: 0; padding: 14px; border: 1px solid var(--project-results-borderColor, #f3efe5); border-radius: 8px; background: #fff; transition: transform 300ms ease, box-shadow 300ms ease; }
.scico-project-results__media { position: relative; display: block; width: 160px; flex: 0 0 160px; overflow: hidden; border-radius: 6px; background: #f3efe5; }
.scico-project-results__media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 700ms cubic-bezier(.2, .7, .2, 1), filter 500ms ease; }
.scico-project-results.is-grayscale .scico-project-results__media img { filter: grayscale(1); }
.scico-project-results__body { display: flex; min-width: 0; flex: 1 1 auto; flex-direction: column; justify-content: flex-end; gap: 6px; text-align: right; }
.scico-project-results__number { margin: 0 0 4px; color: var(--project-results-numberColor, #000); font-size: var(--project-results-numberSize, 32px); font-weight: var(--project-results-numberWeight, 800); line-height: 1.2; }
.scico-project-results__body h3 { margin: 0; color: var(--project-results-numberColor, #000); font-size: var(--project-results-titleSize, 20px); font-weight: var(--project-results-titleWeight, 700); line-height: 1.5; }
.scico-project-results__text { margin: 0; color: var(--project-results-textColor, #4c504a); font-size: var(--project-results-textSize, 14px); font-weight: 400; line-height: 1.75; }

@media (hover: hover) {
	.scico-project-results__card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgb(19 22 17 / 8%); }
	.scico-project-results__card:hover .scico-project-results__media img { transform: scale(1.05); }
	.scico-project-results.is-grayscale .scico-project-results__card:hover .scico-project-results__media img { filter: grayscale(0); }
}
@media (prefers-reduced-motion: reduce) {
	.scico-project-results__card,
	.scico-project-results__media img { transition: none; }
	.scico-project-results__card:hover,
	.scico-project-results__card:hover .scico-project-results__media img { transform: none; }
}

@media (max-width: 1100px) {
	.scico-project-results { padding: 8px 32px 80px; }
	.scico-project-results h2 { font-size: min(var(--project-results-headingSize, 32px), 28px); }
	.scico-project-results__cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.scico-project-results__media { width: 200px; flex-basis: 200px; }
}

@media (max-width: 600px) {
	.scico-project-results { padding: 0 16px 64px; }
	.scico-project-results__inner { gap: 24px; }
	.scico-project-results h2 { font-size: min(var(--project-results-headingSize, 32px), 24px); }
	.scico-project-results__cards { gap: 12px; }
	.scico-project-results__card { min-height: 150px; gap: 12px; padding: 12px; }
	.scico-project-results__media { width: 38%; flex-basis: 38%; }
	.scico-project-results__number { font-size: min(var(--project-results-numberSize, 32px), 26px); }
	.scico-project-results__body h3 { font-size: min(var(--project-results-titleSize, 20px), 17px); }
}
