/* ==========================================================================
   Awesome List Group Widget
   ========================================================================== */

.awea-lg-wrap {
	--awea-lg-primary: var(--e-global-color-primary, #4f46e5);
	--awea-lg-heading: #0f172a;
	--awea-lg-text: #475569;
	--awea-lg-border: #e2e8f0;

	width: 100%;
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	box-sizing: border-box;
}

.awea-lg-wrap *,
.awea-lg-wrap *::before,
.awea-lg-wrap *::after {
	box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   1. Connected Container Mode
   -------------------------------------------------------------------------- */
.awea-lg-mode-connected .awea-lg-wrap {
	background-color: #ffffff;
	border: 1px solid var(--awea-lg-border);
	border-radius: 24px;
	padding: 12px;
	gap: 0;
}

.awea-lg-mode-connected .awea-lg-item {
	border-bottom: 1px solid #f1f5f9;
}

.awea-lg-mode-connected .awea-lg-item:last-child {
	border-bottom: none;
}

/* --------------------------------------------------------------------------
   2. Separated Cards Mode
   -------------------------------------------------------------------------- */
.awea-lg-mode-separated .awea-lg-wrap {
	gap: 14px;
	background: transparent;
	border: none;
	padding: 0;
}

.awea-lg-mode-separated .awea-lg-item {
	background-color: #ffffff;
	border: 1px solid var(--awea-lg-border);
	border-radius: 18px;
}

.awea-lg-mode-separated .awea-lg-item:hover {
	border-color: var(--awea-lg-primary);
}

/* --------------------------------------------------------------------------
   3. List Row Structure
   -------------------------------------------------------------------------- */
.awea-lg-item {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 20px 22px;
	border-radius: 18px;
	text-decoration: none;
	color: inherit;
	transition:
		background-color 0.25s ease,
		border-color 0.25s ease,
		box-shadow 0.25s ease;
}

.awea-lg-item:hover {
	background-color: #f8fafc;
}

.awea-lg-item:focus-visible {
	outline: 2px solid var(--awea-lg-primary);
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   4. Icon Box (Stacked & Framed Views)
   -------------------------------------------------------------------------- */
.awea-lg-icon {
	width: 50px;
	height: 50px;
	border-radius: 14px;
	background-color: rgba(79, 70, 229, 0.08);
	border: 1px solid transparent;
	color: var(--awea-lg-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition:
		background-color 0.25s ease,
		border-color 0.25s ease,
		color 0.25s ease;
}

.awea-lg-icon-framed .awea-lg-icon {
	background-color: transparent !important;
	border-width: 1.5px;
	border-color: var(--awea-lg-primary);
}

.awea-lg-icon i {
	font-size: 18px;
	line-height: 1;
}

.awea-lg-icon svg {
	width: 18px;
	height: 18px;
	display: block;
	fill: currentColor;
}

.awea-lg-item:hover .awea-lg-icon {
	background-color: var(--awea-lg-primary) !important;
	border-color: var(--awea-lg-primary);
	color: #ffffff;
}

.awea-lg-item:hover .awea-lg-icon svg {
	fill: #ffffff;
}

/* --------------------------------------------------------------------------
   5. Typography Spine
   -------------------------------------------------------------------------- */
.awea-lg-body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.awea-lg-title {
	margin: 0 0 4px 0;
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: var(--awea-lg-heading);
	word-break: break-word;
	transition: color 0.25s ease;
}

.awea-lg-item:hover .awea-lg-title {
	color: var(--awea-lg-primary);
}

.awea-lg-desc {
	margin: 0;
	font-size: 0.94rem;
	line-height: 1.6;
	color: var(--awea-lg-text);
	word-break: break-word;
}

/* --------------------------------------------------------------------------
   6. Trailing Badge & Chevron Arrow
   -------------------------------------------------------------------------- */
.awea-lg-meta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	margin-inline-start: 8px;
}

.awea-lg-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 100px;
	background-color: rgba(79, 70, 229, 0.08);
	color: var(--awea-lg-primary);
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	line-height: 1.2;
	user-select: none;
}

.awea-lg-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #94a3b8;
	transition:
		color 0.25s ease,
		transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.awea-lg-arrow svg {
	width: 17px;
	height: 17px;
}

.awea-lg-item:hover .awea-lg-arrow {
	color: var(--awea-lg-primary);
	transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   7. Accessibility & Responsive
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.awea-lg-item,
	.awea-lg-icon,
	.awea-lg-arrow {
		transition: none !important;
		transform: none !important;
	}
}

@media (max-width: 640px) {
	.awea-lg-mode-connected .awea-lg-wrap {
		padding: 8px;
		border-radius: 18px;
	}

	.awea-lg-item {
		padding: 16px;
		gap: 14px;
		border-radius: 14px;
		flex-wrap: wrap;
	}

	.awea-lg-icon {
		width: 42px;
		height: 42px;
		border-radius: 12px;
	}

	.awea-lg-icon i {
		font-size: 16px;
	}

	.awea-lg-icon svg {
		width: 16px;
		height: 16px;
	}

	.awea-lg-title {
		font-size: 1.05rem;
	}

	.awea-lg-desc {
		font-size: 0.88rem;
		line-height: 1.55;
	}
}