/**
 * Related Technologies block — see init.php's top comment for the
 * Figma source (node 2001:14520 @1920) and why the card is bare
 * (no border/background, no button, no link on the title) rather than
 * copying development_offerings_block's/related_services_block's
 * bordered-card visual.
 *
 * @package intobi
 */

.related-technologies__container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding-top: var(--io-section-py);
	padding-bottom: var(--io-section-py);
}

.related-technologies__heading {
	/* font-size now comes from the base h2 cascade (css/base.css) */
	width: 100%;
}

.related-technologies__subtext {
	font-size: 16px;
	max-width: 640px;
}

/* ---------------------------------------------------------------
   Grid — cards-per-row read from the same evidenced breakpoint table
   already used by technology_stack_block / industries_block's
   "stacked" layout (see those blocks' block.css top comments): 1 col
   below 768px, 2 at ≥768, 3 at ≥1240, 4 at ≥1440. Gap matches Figma's
   own 64px row/column gap on this section's frame.
------------------------------------------------------------------ */

.related-technologies__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	width: 100%;
	margin-top: 16px;
}

@media (min-width: 768px) {
	.related-technologies__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 64px;
	}
}

@media (min-width: 1240px) {
	.related-technologies__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1440px) {
	.related-technologies__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.related-technologies__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	width: 100%;
	color: inherit;
	text-decoration: none;
}

.related-technologies__card:hover .related-technologies__card-title,
.related-technologies__card:focus-visible .related-technologies__card-title {
	color: var(--io-primary-dark);
}

.related-technologies__card-title {
	transition: color 0.15s ease;
}

/* ---------------------------------------------------------------
   Card layout switcher — init.php's "layout" field. Default (column,
   node 2001:14520): icon above the title, matching this block's
   original design. "row" (node 2001:16020): icon beside the title —
   see block.php's markup, both share the same .related-technologies__
   card-head wrapper, only its flex-direction/gap change; the excerpt
   below is unaffected either way, already full-width/unindented.
------------------------------------------------------------------ */

.related-technologies__card-head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	width: 100%;
}

.related-technologies--row .related-technologies__card-head {
	flex-direction: row;
	align-items: center;
	gap: 24px;
}

.related-technologies__icon {
	display: inline-flex;
	flex-shrink: 0;
	width: 48px;
	height: 48px;
}

.related-technologies__icon img,
.related-technologies__icon svg {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.related-technologies__card-title {
	width: 100%;
	/* font-size now comes from the base h4 cascade (css/base.css) */
}

.related-technologies--row .related-technologies__card-title {
	width: auto;
	flex: 1 1 0%;
	min-width: 0;
}

.related-technologies__text {
	width: 100%;
	margin: 0;
	font-family: var(--io-font-body);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.5;
	color: var(--io-body);
}

/* .related-technologies__empty-state — see .io-empty-state (css/base.css) */
