/* About page «مدیران ارشد هر بخش» — Figma 688:2000. Edge-to-edge photo cards with no gaps, bottom-aligned; the role
   (18 Black → 18/800) and name (12 SemiBold → 14/500) sit 20px from the bottom right over Figma's fade (transparent at
   1%, 50% black at 61%). Figma's 423×556 card among 339×400 ones is the hover state: on a pointer device the row keeps
   the taller card's height, every card starts equal, and the hovered or focused card widens and rises. */
.wp-block-post-content > .scico-team-leaders { margin-block-start: 0; }

.scico-team-leaders { box-sizing: border-box; margin-block-start: 0; padding: 72px 0 96px; background: #fff; }
.scico-team-leaders h2 { box-sizing: border-box; width: min(100%, 1440px); margin: 0 auto 40px; padding-inline: 96px; color: var(--team-leaders-headingColor, #000); font-size: var(--team-leaders-headingSize, 32px); font-weight: var(--team-leaders-headingWeight, 800); line-height: 1.4; text-align: right; }
.scico-team-leaders__list { display: flex; align-items: flex-end; margin: 0; padding: 0; list-style: none; }
.scico-team-leaders__card { position: relative; display: flex; overflow: hidden; box-sizing: border-box; min-width: 0; height: var(--team-leaders-cardHeight, 400px); flex: 1 1 0; flex-direction: column; justify-content: flex-end; margin: 0; padding: 20px; background: #e9e9e7; transition: flex-grow 450ms ease, height 450ms ease; }
.scico-team-leaders__card img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--team-leaders-zoom, 1)); }
.scico-team-leaders__card::after { position: absolute; inset: 0; background: linear-gradient(181.9deg, rgb(0 0 0 / 0) 1.36%, rgb(0 0 0 / var(--team-leaders-overlay, .5)) 61.23%); content: ""; pointer-events: none; }
.scico-team-leaders__card:focus-visible { outline: 2px solid #4c504a; outline-offset: -4px; }
.scico-team-leaders__copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; color: var(--team-leaders-textColor, #fff); text-align: right; }
.scico-team-leaders .scico-team-leaders__role { margin: 0; color: inherit; font-size: var(--team-leaders-roleSize, 18px); font-weight: var(--team-leaders-roleWeight, 800); line-height: 1.4; }
.scico-team-leaders .scico-team-leaders__name { margin: 0; color: inherit; font-size: var(--team-leaders-nameSize, 14px); font-weight: var(--team-leaders-nameWeight, 500); line-height: 1.5; }

@media (hover: hover) {
	.scico-team-leaders__list { height: var(--team-leaders-hoverHeight, 480px); }
	.scico-team-leaders__card:hover,
	.scico-team-leaders__card:focus-visible { height: var(--team-leaders-hoverHeight, 480px); flex-grow: var(--team-leaders-hoverWidth, 1.25); }
}
/* Keyboard users get the same state without a pointer device. */
.scico-team-leaders__card:focus-visible { height: var(--team-leaders-hoverHeight, 480px); flex-grow: var(--team-leaders-hoverWidth, 1.25); }
@media (prefers-reduced-motion: reduce) {
	.scico-team-leaders__card { transition: none; }
}

@media (max-width: 1100px) {
	.scico-team-leaders { padding: 64px 0 80px; }
	.scico-team-leaders h2 { padding-inline: 32px; font-size: min(var(--team-leaders-headingSize, 32px), 28px); }
}

/* Two to a row; no hover growth, so the cards keep a portrait shape. */
@media (max-width: 900px) {
	.scico-team-leaders__list { display: grid; height: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-inline: 16px; }
	.scico-team-leaders__card,
	.scico-team-leaders__card:hover,
	.scico-team-leaders__card:focus-visible { height: auto; aspect-ratio: 4 / 5; }
}

@media (max-width: 600px) {
	.scico-team-leaders { padding: 56px 0 64px; }
	.scico-team-leaders h2 { margin-bottom: 24px; padding-inline: 16px; font-size: min(var(--team-leaders-headingSize, 32px), 24px); }
	.scico-team-leaders__card { padding: 14px; }
	.scico-team-leaders__copy { gap: 4px; }
	.scico-team-leaders .scico-team-leaders__role { font-size: min(var(--team-leaders-roleSize, 18px), 15px); }
	.scico-team-leaders .scico-team-leaders__name { font-size: min(var(--team-leaders-nameSize, 14px), 12px); }
}
