/*
 * DaynaCity Elementor Sidebar Posts
 * All rules are scoped to the widget.
 */
.dcesp-widget,
.dcesp-widget * {
	box-sizing: border-box;
}

.dcesp-widget {
	--dcesp-scroll-track: #f2f2f2;
	width: 100%;
	min-width: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 5px;
	font-family: "Siyam Rupali", "Hind Siliguri", Arial, sans-serif;
	box-shadow: 0 3px 14px rgba(15, 23, 42, .06);
}

.dcesp-tabs {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	width: 100%;
	background: #dedede;
}

.dcesp-tab {
	min-width: 0;
	min-height: 50px;
	margin: 0;
	padding: 10px 8px;
	border: 0;
	border-radius: 0;
	background: #dedede;
	color: #222;
	font: inherit;
	font-size: 19px;
	font-weight: 500;
	line-height: 1.25;
	text-align: center;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease;
	appearance: none;
	-webkit-appearance: none;
}

.dcesp-tab.is-active {
	background: #c90000;
	color: #fff;
	font-weight: 700;
}

.dcesp-tab:focus-visible {
	position: relative;
	z-index: 2;
	outline: 3px solid rgba(201, 0, 0, .24);
	outline-offset: -3px;
}

.dcesp-panel {
	width: 100%;
	overflow: visible;
}

.dcesp-scroll-enabled .dcesp-panel {
	max-height: 430px;
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #9b9b9b var(--dcesp-scroll-track);
}

.dcesp-panel[hidden] {
	display: none !important;
}

.dcesp-panel::-webkit-scrollbar {
	width: 5px;
}

.dcesp-panel::-webkit-scrollbar-track {
	background: var(--dcesp-scroll-track);
}

.dcesp-panel::-webkit-scrollbar-thumb {
	background: #9b9b9b;
	border-radius: 999px;
}

.dcesp-post-item {
	margin: 0;
	padding: 0;
	border: 0;
	border-bottom: 1px solid #e5e5e5;
	background: #fff;
}

.dcesp-post-item:last-child {
	border-bottom: 0 !important;
}

.dcesp-post-link {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	width: 100%;
	min-width: 0;
	padding: 14px 12px;
	color: inherit;
	text-decoration: none !important;
	transition: background-color .18s ease;
}

.dcesp-post-link:hover {
	background: #fafafa;
}

.dcesp-post-link:focus-visible {
	outline: 3px solid rgba(201, 0, 0, .22);
	outline-offset: -3px;
}

.dcesp-image-right .dcesp-post-link {
	flex-direction: row-reverse;
}

.dcesp-thumb-wrap {
	display: block;
	flex: 0 0 100px;
	width: 100px;
	min-width: 0;
}

.dcesp-thumb {
	display: block;
	width: 100%;
	height: 62px;
	margin: 0;
	border: 0;
	border-radius: 7px;
	object-fit: cover;
	background: #eceff3;
}

.dcesp-placeholder {
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, #ececec, #d7d7d7);
}

.dcesp-placeholder svg {
	width: 31px;
	height: 31px;
	fill: #8b8b8b;
}

.dcesp-post-content {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
}

.dcesp-post-title {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	color: #111;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	word-break: break-word;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	transition: color .18s ease;
}

.dcesp-post-link:hover .dcesp-post-title {
	color: #c90000;
}

.dcesp-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	margin-top: 4px;
	color: #6b7280;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.35;
}

.dcesp-meta > span + span::before {
	content: "•";
	margin-inline-end: 7px;
	opacity: .7;
}

.dcesp-excerpt {
	display: block;
	margin-top: 5px;
	color: #4b5563;
	font-size: 13px;
	line-height: 1.5;
}

.dcesp-empty {
	margin: 0;
	padding: 25px 15px;
	color: #6b7280;
	font-size: 15px;
	text-align: center;
}

@media (max-width: 380px) {
	.dcesp-tab {
		min-height: 46px;
		font-size: 16px;
	}

	.dcesp-post-link {
		gap: 9px;
		padding: 12px 10px;
	}

	.dcesp-thumb-wrap {
		flex-basis: 88px;
		width: 88px;
	}

	.dcesp-thumb {
		height: 56px;
	}

	.dcesp-post-title {
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dcesp-tab,
	.dcesp-post-link,
	.dcesp-post-title {
		transition: none;
	}
}
