/* Grid layout for all post types */
.dynamic-post-list {
	width: 100vw;
	margin-left: calc(-50vw + 50%);
	padding: 1rem;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
}

.coupon-link-wrapper {
	text-decoration: none;
	color: inherit;
	display: block;
	width: 100%;
	border-bottom: 0.6px double #ccc
}

.coupon-link-wrapper:hover {
	background-color: #f5f5f5; /* optional hover effect */
}

/* Default vertical stack layout */
.dynamic-post {
	display: flex;
	flex-direction: column;
}

/* Headings and links */
.coupon-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0 0 0.2rem 0;
    color: #333;
}

/* Paragraph text */
.dynamic-post p {
	color: #444;
	font-size: 0.9rem;
	font-weight: 300;
	line-height: 1.3;
	margin: 0;
}

.vendor-name {
	text-align: right;
	font-style: italic;
	font-size:0.8rem;
}

/* Coupon-specific horizontal layout */
.design-coupon .coupon-layout {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 2rem;
	padding-bottom: 0.4rem;
	position: relative;
}
.design-coupon .coupon-layout::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 30vw;
	/*border-bottom: 1px solid #bbb;*/
}
.design-coupon .coupon-layout:last-of-type::after {
	content: none; /* Remove bottom line from last item */
}

/* Thumbnail column */
.design-coupon .coupon-thumb {
	display: flex;
	align-items: center;
	width: 25vw;
	max-width: 150px;
	padding: 0.2rem;
	flex-shrink: 0;
}
.design-coupon .coupon-thumb img {
	aspect-ratio: 1 / 1;
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
}

/* Info section */
.design-coupon .coupon-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.5rem;
	flex-grow: 1;
}