/**
 * Post List (Horizontal) widget.
 * Section header + a vertical stack of horizontal cards: image left; category,
 * serif title and excerpt right, with an author + read-more footer row.
 */

.fpg-pl {
	width: 100%;
}

/* -- Section header ------------------------------------------------------- */
.fpg-pl__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	margin-bottom: 28px;
}

.fpg-pl__title-main {
	margin: 0;
	font-family: Georgia, "Times New Roman", "Playfair Display", serif;
	font-weight: 700;
	font-size: 34px;
	line-height: 1.1;
	color: #1a1a1a;
}

.fpg-pl__explore {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	white-space: nowrap;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 15px;
	line-height: 1;
	color: #1a1a1a;
	text-decoration: none;
}

.fpg-pl__explore svg {
	width: 16px;
	height: 16px;
	flex: none;
}

/* -- List of cards -------------------------------------------------------- */
.fpg-pl__list {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.fpg-pl__card {
	display: flex;
	align-items: stretch;
	gap: 32px;
	background-color: #ffffff;
	border-radius: 20px;
	padding: 24px;
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.06);
}

/* Image (left). Background layer keeps corners crisp. */
.fpg-pl__thumb {
	display: block;
	position: relative;
	flex: 0 0 40%;
	overflow: hidden;
	border-radius: 14px;
	aspect-ratio: 1 / 1;
	background-color: #ece9e2;
	align-self: stretch;
}

.fpg-pl__img {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	border-radius: inherit;
	transition: transform 0.6s ease;
}

.fpg-pl__card:hover .fpg-pl__img {
	transform: scale(1.04);
}

/* Body (right) */
.fpg-pl__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.fpg-pl__category {
	display: block;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-size: 12px;
	font-weight: 600;
	color: #b07a3c;
	margin-bottom: 12px;
}

.fpg-pl__title {
	margin: 0 0 14px;
	font-family: Georgia, "Times New Roman", "Playfair Display", serif;
	font-weight: 700;
	font-size: 27px;
	line-height: 1.22;
	color: #2b2b2b;
}

.fpg-pl__title a {
	color: inherit;
	text-decoration: none;
}

.fpg-pl__title a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.fpg-pl__excerpt {
	margin: 0 0 22px;
	font-size: 15px;
	line-height: 1.65;
	color: #8a7f72;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Footer row: author (left) + read more (right), with a top divider */
.fpg-pl__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px solid rgba(0, 0, 0, 0.10);
}

.fpg-pl__author {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.fpg-pl__avatar {
	flex: none;
	width: 30px;
	height: 30px;
	line-height: 0;
}

.fpg-pl__avatar img,
.fpg-pl__avatar-img {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.fpg-pl__author-name {
	font-size: 14px;
	font-weight: 600;
	color: #2b2b2b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fpg-pl__author-name a {
	color: inherit;
	text-decoration: none;
}

.fpg-pl__author-name a:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fpg-pl__readmore {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: none;
	font-size: 14px;
	font-weight: 600;
	color: #2b2b2b;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.fpg-pl__readmore svg {
	width: 14px;
	height: 14px;
	flex: none;
	transition: transform 0.25s ease;
}

.fpg-pl__readmore:hover svg {
	transform: translateX(3px);
}

.fpg-pl__empty {
	padding: 24px;
	text-align: center;
	color: #777;
	border: 1px dashed #ccc;
	border-radius: 8px;
}

/* -- Responsive ----------------------------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
	.fpg-pl__title-main {
		font-size: 28px;
	}
	.fpg-pl__title {
		font-size: 23px;
	}
	.fpg-pl__card {
		gap: 24px;
	}
}

/* Mobile: stack image over content */
@media (max-width: 767px) {
	.fpg-pl__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	.fpg-pl__card {
		flex-direction: column;
		gap: 18px;
	}
	.fpg-pl__thumb {
		flex-basis: auto;
		width: 100%;
		aspect-ratio: 16 / 10;
	}
	.fpg-pl__footer {
		flex-wrap: wrap;
		gap: 12px;
	}
}
