/**
 * Per-page overrides — /ar/solutions-ar/ (AR). EN twin: page-solutions.css.
 *
 * Hero layout per the approved design (Solutions.png):
 *   ┌────────────────────────────┬──────────────────────────────────────┐
 *   │ SOLUTIONS (eyebrow)        │ [🧑] [🛡] [📊] [🔒]                   │
 *   │ Solutions for Every …      │ Personalized  AI-Enh  Meas  Ent.G.  │
 *   │ Nabed empowers …           │ 4 chromeless value-props in one row │
 *   └────────────────────────────┴──────────────────────────────────────┘
 *
 * Header sits on the inline-start of the block's flex container (default
 * `headerLayout: side`), vertically centred; the 4 value cards fill the
 * inline-end. Under RTL the block's flex container reverses column
 * order automatically (writing-mode aware), so the header lands on the
 * right and the cards on the left with no extra rule. Icons are
 * rounded-square soft-tinted tiles with a per-item colored glyph
 * (blue → green → purple → orange), scoped via nth-child to match the
 * seeded item order. Cards are chromeless — no background, border, or
 * shadow — per the design; the block's `cardStyle: plain` handles that
 * on the base rule so nothing needs adding here, only removing the
 * earlier white-card modernisation that QA flagged as "too much empty
 * space" (QA row 12).
 *
 * Loads after the theme bundle (priority 20) so equal-specificity
 * overrides win deterministically.
 */

.seamlessmd-card-grid__card .seamlessmd-card-grid__icon {
	inline-size: 56px;
	block-size: 56px;
	border-radius: 14px;
	font-size: 1.35rem;
	background: #eff4ff;
	color: #2563eb;
}

.seamlessmd-card-grid__card:nth-child(2) .seamlessmd-card-grid__icon {
	background: #e9faf4;
	color: #10b981;
}

.seamlessmd-card-grid__card:nth-child(3) .seamlessmd-card-grid__icon {
	background: #f3efff;
	color: #8b5cf6;
}

.seamlessmd-card-grid__card:nth-child(4) .seamlessmd-card-grid__icon {
	background: #fef5e7;
	color: #f59e0b;
}

.seamlessmd-card-grid--variant-feature .seamlessmd-card-grid__card {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.9rem;
	text-align: start;
}

.seamlessmd-card-grid--variant-feature .seamlessmd-card-grid__header {
	align-self: center;
	flex: 0 0 460px;
	min-inline-size: 0;
	margin-inline: 0;
	margin-bottom: 0;
	text-align: start;
}

.seamlessmd-card-grid--variant-feature .seamlessmd-card-grid__header > * {
	margin-inline: 0;
}

.seamlessmd-card-grid--variant-feature .seamlessmd-card-grid__eyebrow {
	color: #2563eb;
}

.seamlessmd-card-grid--variant-feature .seamlessmd-card-grid__grid {
	flex: 1 1 auto;
	min-inline-size: 0;
	gap: 1.25rem;
	align-content: center;
}

.seamlessmd-card-grid--variant-feature .seamlessmd-card-grid__title {
	font-size: 1.05rem;
	color: var(--seamlessmd-dark-navy);
	margin: 0 0 0.35rem;
}

.seamlessmd-card-grid--variant-feature .seamlessmd-card-grid__description {
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--seamlessmd-text-muted);
	margin: 0;
}

/* Responsive — see EN twin for the full rationale. Ranges:
 *   ≥1200  → header 460 on start, 4 cards on end
 *   992–1199 → same side layout, 2-col grid
 *   ≤991   → stacked (header full width above card grid)
 *   ≤767   → 1-col card grid */

@media (max-width: 1199px) {
	.seamlessmd-card-grid--variant-feature .seamlessmd-card-grid__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Below desktop, restore the white-card treatment (see EN twin). */
	.seamlessmd-card-grid--variant-feature .seamlessmd-card-grid__card {
		background: #fff;
		border: 1px solid #e6ebf5;
		border-radius: 16px;
		padding: 1.5rem 1.4rem;
		box-shadow: 0 1px 2px rgba(15, 30, 70, 0.04);
		transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
	}

	.seamlessmd-card-grid--variant-feature .seamlessmd-card-grid__card:hover {
		transform: translateY(-4px);
		box-shadow: 0 14px 30px rgba(15, 30, 70, 0.1);
		border-color: #c7d7f8;
	}
}

@media (max-width: 991px) {
	.seamlessmd-card-grid .seamlessmd-container {
		display: block;
	}

	.seamlessmd-card-grid--variant-feature .seamlessmd-card-grid__header {
		flex: none;
		max-inline-size: 720px;
		margin-block-end: 2rem;
	}
}

@media (max-width: 767px) {
	.seamlessmd-card-grid--variant-feature .seamlessmd-card-grid__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
