/* ==========================================================================
   AEPT Problem Section - Modern Speech Bubble Callout Layout
   ========================================================================== */

.aept-problem-section {
	width: 100%;
	padding: 0px;
	overflow: visible;
	background: transparent;
	box-sizing: border-box;
}

.aept-problem-container {
	margin: 0 auto;
	width: 100%;
	box-sizing: border-box;
}

/* Three-Column Layout for Desktop - Tight spacing hugging center illustration */
.aept-problem-content {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	width: 100%;
	box-sizing: border-box;
	padding: 0px 0 10px;
}

/* Left and Right Columns holding the problem cards */
.aept-problem-col--left,
.aept-problem-col--right {
	flex: 1 1 0;
	min-width: 260px;
	max-width: 360px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 28px;
	z-index: 2;
	box-sizing: border-box;
}

/* Center Column holding the illustration - prominent and large */
.aept-problem-col--center {
	flex: 0 0 380px;
	max-width: 390px;
	min-width: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
	align-self: center;
	box-sizing: border-box;
}

.aept-problem-center {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: translateY(-10px);
}

.aept-problem-center__image {
	width: 100%;
	max-width: 390px;
	height: auto;
	display: block;
	object-fit: contain;
}

/* Problem Card (Speech Bubble) - Compact, balanced with vertically centered icon */
.aept-problem-item {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 16px;
	padding: 22px 24px;
	border-radius: 20px;
	background-color: var(--aept-item-bg, #EDF9F2);
	width: 100%;
	box-sizing: border-box;
	box-shadow: 0 2px 10px rgba(13, 148, 83, 0.03);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.aept-problem-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(13, 148, 83, 0.07);
}

/* Icon Badge (White Circle) - Vertically centered with text */
.aept-problem-item__icon-box {
	width: 58px;
	height: 58px;
	flex: 0 0 58px;
	border-radius: 50%;
	background-color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
	box-sizing: border-box;
}

.aept-problem-item__icon {
	font-size: 26px;
	color: #00A859;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.aept-problem-item__icon svg {
	width: 26px;
	height: 26px;
	fill: currentColor;
	display: block;
}

/* Card Body Content */
.aept-problem-item__body {
	flex: 1 1 auto;
	min-width: 0;
}

.aept-problem-item__title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 6px 0;
	color: #065F46;
	letter-spacing: -0.01em;
}

.aept-problem-item__description {
	font-size: 13px;
	font-weight: 400;
	line-height: 1.6;
	margin: 0;
	color: #4B5563;
}

/* Speech Bubble Tails pointing inward toward character and desk */
.aept-problem-item__tail {
	position: absolute;
	width: 16px;
	height: 22px;
	display: flex;
	align-items: center;
	pointer-events: none;
	color: var(--aept-item-bg, #EDF9F2);
	z-index: 1;
}

.aept-problem-item__tail svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
	display: block;
}

/* Top-Left: Points right toward character's head */
.aept-problem-item--top-left .aept-problem-item__tail {
	right: -14px;
	bottom: 24px;
}

/* Bottom-Left: Points right toward sleeve/books */
.aept-problem-item--bottom-left .aept-problem-item__tail {
	right: -14px;
	top: 36px;
}

/* Top-Right: Points left toward character's head */
.aept-problem-item--top-right .aept-problem-item__tail {
	left: -14px;
	bottom: 24px;
}

/* Bottom-Right: Points left toward laptop */
.aept-problem-item--bottom-right .aept-problem-item__tail {
	left: -14px;
	top: 36px;
}

/* ==========================================================================
   Tablet & Mobile Responsive (max-width: 1024px) - 2x2 Grid with illustration at bottom
   ========================================================================== */
@media (max-width: 1024px) {
	.aept-problem-section {
		padding: 24px 12px;
	}

	/* CSS Grid: 2 equal columns on row 1, illustration full width on row 2 */
	.aept-problem-content {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 16px 14px;
		padding: 10px 0;
		width: 100%;
		align-items: stretch;
	}

	/* Left cards in Column 1 */
	.aept-problem-col--left {
		grid-column: 1 !important;
		grid-row: 1 !important;
		display: flex;
		flex-direction: column;
		gap: 14px;
		width: 100%;
		min-width: 0 !important;
		max-width: 100% !important;
	}

	/* Right cards in Column 2 */
	.aept-problem-col--right {
		grid-column: 2 !important;
		grid-row: 1 !important;
		display: flex;
		flex-direction: column;
		gap: 14px;
		width: 100%;
		min-width: 0 !important;
		max-width: 100% !important;
	}

	/* Center Illustration in Row 2 spanning both columns */
	.aept-problem-col--center {
		grid-column: 1 / -1 !important;
		grid-row: 2 !important;
		width: 100% !important;
		max-width: 100% !important;
		flex: none !important;
		margin: 20px auto 0;
		display: flex;
		justify-content: center;
		align-items: center;
		align-self: center;
		transform: none !important;
	}

	.aept-problem-center {
		width: 100%;
		display: flex;
		justify-content: center;
		transform: none !important;
	}

	.aept-problem-center__image {
		width: 100%;
		max-width: 350px;
		height: auto;
		margin: 0 auto;
		display: block;
	}

	/* Card: Vertical layout with natural content expansion */
	.aept-problem-item {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		padding: 18px 16px;
		border-radius: 18px;
		gap: 12px;
		width: 100%;
		height: 100%;
		min-height: 180px;
		box-sizing: border-box;
		background-color: var(--aept-item-bg, #EDF9F2);
		transform: none !important;
	}

	.aept-problem-item:hover {
		transform: none;
	}

	.aept-problem-item__icon-box {
		width: 50px;
		height: 50px;
		flex: 0 0 50px;
		border-radius: 50%;
		background-color: #ffffff;
		display: flex;
		align-items: center;
		justify-content: center;
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
		box-sizing: border-box;
		margin-bottom: 2px;
	}

	.aept-problem-item__icon {
		font-size: 24px;
		color: #00A859;
		display: flex;
		align-items: center;
		justify-content: center;
		line-height: 1;
	}

	.aept-problem-item__icon svg {
		width: 24px;
		height: 24px;
		fill: currentColor;
		display: block;
	}

	.aept-problem-item__body {
		width: 100%;
		flex: 1 1 auto;
	}

	.aept-problem-item__title {
		font-size: 15.5px;
		font-weight: 700;
		line-height: 1.35;
		margin: 0 0 6px 0;
		color: #065F46;
		word-break: break-word;
	}

	.aept-problem-item__description {
		font-size: 12px;
		font-weight: 400;
		line-height: 1.5;
		margin: 0;
		color: #4B5563;
		word-break: break-word;
	}

	/* Hide tails on tablet and mobile */
	.aept-problem-item__tail {
		display: none !important;
	}
}

/* ==========================================================================
   Extra Small Mobile (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
	.aept-problem-section {
		padding: 20px 8px;
	}

	.aept-problem-content {
		gap: 10px 8px;
	}

	.aept-problem-col--left,
	.aept-problem-col--right {
		gap: 8px;
	}

	.aept-problem-col--center {
		margin-top: 14px;
	}

	.aept-problem-center__image {
		max-width: 280px;
	}

	.aept-problem-item {
		padding: 14px 12px;
		gap: 8px;
		border-radius: 16px;
	}

	.aept-problem-item__icon-box {
		width: 44px;
		height: 44px;
		flex: 0 0 44px;
	}

	.aept-problem-item__icon {
		font-size: 20px;
	}

	.aept-problem-item__icon svg {
		width: 20px;
		height: 20px;
	}

	.aept-problem-item__title {
		font-size: 14px;
		margin-bottom: 4px;
		line-height: 1.3;
	}

	.aept-problem-item__description {
		font-size: 11px;
		line-height: 1.45;
	}
}
