/**
 * A Latest Posts (UX Builder Element) Stylesheet
 * Dark Tech Sidebar & Compact Post List
 *
 * @package Flatsome Child
 */

:root {
	--a-lp-bg: #070c18;
	--a-lp-padding: 20px;
	--a-lp-radius: 10px;
	--a-lp-border: rgba(255, 255, 255, 0.05);
	--a-lp-title-color: #3b82f6;
	--a-lp-title-size: 16px;
	--a-lp-thumb-w: 96px;
	--a-lp-thumb-h: 62px;
	--a-lp-thumb-radius: 4px;
	--a-lp-post-title-color: #ffffff;
	--a-lp-post-title-hover: #60a5fa;
	--a-lp-post-title-size: 13.5px;
	--a-lp-title-lines: 2;
	--a-lp-date-color: #64748b;
	--a-lp-date-icon-color: #64748b;
	--a-lp-divider: rgba(255, 255, 255, 0.08);
	--a-lp-item-spacing: 12px;
	--a-lp-view-all-color: #3b82f6;
	--a-lp-view-all-hover: #60a5fa;
}

/* Outer Container */
.a-latest-posts {
	position: relative;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	background: var(--a-lp-bg, #070c18);
	padding: 20px;
	border-radius: var(--a-lp-radius, 10px);
	border: 1px solid var(--a-lp-border, rgba(255, 255, 255, 0.05));
	margin-bottom: 20px;
}

.a-latest-posts *,
.a-latest-posts *::before,
.a-latest-posts *::after {
	box-sizing: border-box;
}

/* Header Area */
.a-lp-header {
	margin-bottom: 14px;
}

.a-lp-heading {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: var(--a-lp-title-size, 16px);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--a-lp-title-color, #3b82f6);
	line-height: 1.3;
}

/* Post Items List */
.a-lp-list {
	display: flex;
	flex-direction: column;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Single Item */
.a-lp-item {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 12px;
	padding: var(--a-lp-item-spacing, 12px) 0;
	border-bottom: 1px solid var(--a-lp-divider, rgba(255, 255, 255, 0.08));
	transition: background 0.2s ease;
	position: relative;
}

.a-lp-item:first-child {
	padding-top: 2px;
}

/* Thumbnail Wrapper */
.a-lp-thumb-wrap {
	flex: 0 0 var(--a-lp-thumb-w, 96px);
	width: var(--a-lp-thumb-w, 96px);
	height: var(--a-lp-thumb-h, 62px);
	border-radius: var(--a-lp-thumb-radius, 4px);
	overflow: hidden;
	background: #0d1527;
	position: relative;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.a-lp-thumb-link {
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.a-lp-thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease;
}

.a-lp-item:hover .a-lp-thumb-img {
	transform: scale(1.06);
	filter: brightness(1.08);
}

/* Fallback SVG Thumbnail */
.a-lp-thumb-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #0d1527 0%, #152238 100%);
	color: #475569;
}

.a-lp-fallback-icon {
	width: 24px;
	height: 24px;
	stroke: currentColor;
	opacity: 0.65;
}

/* Right Content Area */
.a-lp-content {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

/* Post Title */
.a-lp-title {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: var(--a-lp-post-title-size, 13.5px);
	font-weight: 600;
	line-height: 1.38;
}

.a-lp-title a {
	color: var(--a-lp-post-title-color, #ffffff);
	text-decoration: none;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--a-lp-title-lines, 2);
	overflow: hidden;
	text-overflow: ellipsis;
	word-break: break-word;
	transition: color 0.2s ease;
}

.a-lp-item:hover .a-lp-title a,
.a-lp-title a:hover {
	color: var(--a-lp-post-title-hover, #60a5fa);
}

/* Meta / Date */
.a-lp-meta {
	display: flex;
	align-items: center;
	margin-top: 1px;
}

.a-lp-date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11.5px;
	font-weight: 400;
	color: var(--a-lp-date-color, #64748b);
	line-height: 1;
	letter-spacing: 0.2px;
}

.a-lp-calendar-icon {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	stroke: var(--a-lp-date-icon-color, #64748b);
}

/* Footer (VIEW ALL POSTS) */
.a-lp-footer {
	margin-top: 4px;
	padding-top: 14px;
}

.a-lp-view-all {
	display: flex;
	align-items: center;
	justify-content: space-between;
	text-decoration: none;
	color: var(--a-lp-view-all-color, #3b82f6);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	line-height: 1;
	transition: color 0.2s ease;
}

.a-lp-view-all:hover {
	color: var(--a-lp-view-all-hover, #60a5fa);
}

.a-lp-arrow-icon {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
	stroke: currentColor;
	transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.a-lp-view-all:hover .a-lp-arrow-icon {
	transform: translateX(4px);
}

/* Empty State */
.a-lp-empty {
	padding: 24px 12px;
	text-align: center;
	color: #64748b;
	font-size: 13px;
}

.a-lp-empty p {
	margin: 0;
}

/* Responsive */
@media (max-width: 480px) {
	.a-latest-posts {
		padding: 16px;
	}

	.a-lp-thumb-wrap {
		flex: 0 0 84px;
		width: 84px;
		height: 55px;
	}

	.a-lp-title {
		font-size: 13px;
	}

	.a-latest-posts {
		padding: 0px;
	}
}