/**
 * Homepage Problems section — split layout (Phase 3.3)
 */

.jawharet-home-problems {
	background: var(--color-white, #ffffff);
	padding-block: var(--space-12, 3rem);
}

.jawharet-home-problems__inner {
	width: min(100%, var(--container-max, 75rem));
	margin-inline: auto;
	padding-inline: var(--container-padding, 1rem);
}

.jawharet-home-problems__split {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-8, 2rem);
	align-items: center;
}

.jawharet-home-problems--has-image .jawharet-home-problems__split {
	align-items: stretch;
}

@media (min-width: 900px) {
	.jawharet-home-problems--has-image .jawharet-home-problems__split {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: var(--space-10, 2.5rem);
	}
}

.jawharet-home-problems__media {
	min-width: 0;
	overflow: hidden;
	border-radius: var(--radius-lg, 1rem);
	box-shadow: 0 12px 40px rgba(20, 45, 62, 0.08);
}

.jawharet-home-problems__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: center;
	border-radius: var(--radius-lg, 1rem);
}

@media (min-width: 900px) {
	.jawharet-home-problems--has-image .jawharet-home-problems__media {
		position: relative;
		align-self: stretch;
		min-height: 0;
	}

	.jawharet-home-problems--has-image .jawharet-home-problems__image {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		aspect-ratio: auto;
		max-height: none;
	}
}

.jawharet-home-problems__content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: var(--space-6, 1.5rem);
}

.jawharet-home-problems__eyebrow {
	margin: 0 0 var(--space-2, 0.5rem);
	font-size: var(--font-size-sm, 0.875rem);
	font-weight: var(--font-weight-semibold, 600);
	letter-spacing: 0.02em;
	color: var(--color-teal, #0d9488);
	text-transform: none;
}

.jawharet-home-problems__title {
	margin: 0;
	font-size: clamp(var(--font-size-xl, 1.75rem), 2.2vw, var(--font-size-2xl, 2.25rem));
	font-weight: var(--font-weight-bold, 700);
	line-height: var(--line-height-tight, 1.25);
	color: var(--color-navy, #142d3e);
}

.jawharet-home-problems__subtitle {
	margin: var(--space-3, 0.75rem) 0 0;
	font-size: var(--font-size-md, 1.125rem);
	line-height: var(--line-height-relaxed, 1.75);
	color: var(--color-text-muted, #5a6b76);
}

.jawharet-home-problems__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-4, 1rem);
}

.jawharet-home-problems__item {
	display: flex;
	align-items: flex-start;
	gap: var(--space-3, 0.75rem);
	padding: var(--space-4, 1rem);
	background: var(--color-off-white, #f6f8fa);
	border: 1px solid var(--color-border, #d8e3e8);
	border-radius: var(--radius-md, 0.5rem);
}

.jawharet-home-problems__item-icon {
	flex-shrink: 0;
	width: 1.75rem;
	height: 1.75rem;
	margin-block-start: 0.1rem;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--color-teal, #087e8b), var(--color-teal-dark, #066670));
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
	position: relative;
}

.jawharet-home-problems__item-icon::after {
	content: "";
	position: absolute;
	inset: 0.45rem;
	border-inline-end: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(45deg);
}

.jawharet-home-problems__item-body {
	min-width: 0;
	flex: 1;
}

.jawharet-home-problems__item-title {
	margin: 0;
	font-size: var(--font-size-md, 1.0625rem);
	font-weight: var(--font-weight-semibold, 600);
	line-height: var(--line-height-snug, 1.4);
	color: var(--color-navy, #142d3e);
}

.jawharet-home-problems__item-desc {
	margin: var(--space-2, 0.5rem) 0 0;
	font-size: var(--font-size-sm, 0.9375rem);
	line-height: var(--line-height-relaxed, 1.65);
	color: var(--color-text-muted, #5a6b76);
}
