.ebs-widget {
	position: relative;
}

/* ---------- Header ---------- */
.ebs-header {
	display: flex;
	flex-direction: column;
	margin-bottom: 32px;
}


/* ---------- Carousel ---------- */
.ebs-carousel {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0px;
}

.ebs-track-wrap {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}

.ebs-track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-ms-overflow-style: none;
	scrollbar-width: none;
	padding: 4px 0px 6px;
}

.ebs-track::-webkit-scrollbar {
	display: none;
}

/* ---------- Card ---------- */
.ebs-card {
	padding:20px;
	flex: 0 0 calc((100% - (var(--ebs-visible, 3) - 1) * 24px) / var(--ebs-visible, 3));
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	border: 1px solid #c9a25c;
	border-radius: 16px;
	overflow: hidden;
	background: #fdfaf4;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ebs-card:hover {
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.ebs-card-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 11;
	overflow: hidden;
}

.ebs-card-img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	display: block;
}

/* Decorative "ticket stub" notches cut into the top corners of the image */
.ebs-notch {
	position: absolute;
	top: -10px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background-color: #f2ece1;
}
.ebs-notch-left {
	left: -10px;
}
.ebs-notch-right {
	right: -10px;
}

.ebs-notch.ebs-notch-top {
    top: auto;
    bottom: -10px;
}

.ebs-card-body {
	padding: 18px 20px 22px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ebs-date {
	align-self: flex-start;
	font-size: 12px;
	border: 1px solid #c9a25c;
	border-radius: 4px;
	padding: 4px 10px;
	color: #8a7f6d;
}

.ebs-card-title {
	font-size: 17px;
	line-height: 1.4;
	font-weight: 700;
	letter-spacing: 0em;
	text-transform: normal;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.ebs-excerpt {
	font-size: 14px;
	line-height: 1.6;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	 overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.ebs-view-blog {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #a5271f;
	position:relative;
}

.ebs-view-blog:after {
    content: '';
    width: 100%;
    display: block;
    position: absolute;
    height: 1.5px;
    bottom: 0%;
    opacity: 1;
    transition: all linear 0.2s;
    width: 0;
}

.ebs-view-blog:hover:after{
	width:100%;
}

/* ---------- View All button ---------- */
.ebs-view-all-wrap {
	display: flex;
	justify-content: center;
	margin-top: 36px;
}


/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.ebs-card {
		flex-basis: calc((100% - (var(--ebs-visible-tablet, 2) - 1) * 24px) / var(--ebs-visible-tablet, 2));
	}
}

@media (max-width: 640px) {
	.ebs-card {
		flex-basis: calc((100% - (var(--ebs-visible-mobile, 1) - 1) * 16px) / var(--ebs-visible-mobile, 1));
	}
	.ebs-track {
		gap: 16px;
	}
}
