/* re_blog_widget.css – klon re_product_widget.css, upraveno pro blogový related-posts widget */

.re_blog_widget_skeleton-loading {
	/*height: 368px;*/
	margin-bottom: 25px;
}

.re_blog_widget_list {
	/*height: 347px;*/
}

/* Skeleton Loading Placeholder */
.re_blog_widget_skeleton-loading {
	position: relative;
	overflow: hidden;
	background: #f5f5f5;
}

.re_blog_widget_skeleton-loading .skeleton-items {
	display: flex;
	gap: 20px;
	padding: 0 35px;
	/*overflow: hidden;*/
}

.re_blog_widget_skeleton-loading .skeleton-card {
	flex: 0 0 280px;
	height: 380px;
	display: flex;
	flex-direction: column;
}

.re_blog_widget_skeleton-loading .skeleton-card-image {
	height: 180px;
	background: #e0e0e0;
	border-radius: 4px;
	margin-bottom: 10px;
}

.re_blog_widget_skeleton-loading .skeleton-card-title {
	height: 20px;
	background: #e0e0e0;
	border-radius: 4px;
	margin-bottom: 8px;
}

.re_blog_widget_skeleton-loading .skeleton-card-title-short {
	height: 20px;
	width: 70%;
	background: #e0e0e0;
	border-radius: 4px;
	margin-bottom: 10px;
}

/* Shimmer Animation */
.re_blog_widget_skeleton-loading::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.5) 50%,
		rgba(255, 255, 255, 0) 100%
	);
	animation: blog-skeleton-shimmer 1.5s infinite;
	pointer-events: none;
}

@keyframes blog-skeleton-shimmer {
	0% {
		transform: translateX(-100%);
	}
	100% {
		transform: translateX(100%);
	}
}

.block_re_blog_widget h3.re_blog_widget_h3 {
	color: #555454;
	font-family: "Open Sans", sans-serif;
	font-weight: 600;
	line-height: 30px;
	padding: 25px 0 30px;
	margin: 0 !important;
	position: relative;
}

/* Responsive Skeleton */
@media (max-width: 1199px) {
	.re_blog_widget_skeleton-loading .skeleton-card:nth-child(n+5) {
		display: none;
	}
}

@media (max-width: 990px) {
	.re_blog_widget_skeleton-loading .skeleton-card:nth-child(n+4) {
		display: none;
	}
}

@media (max-width: 767px) {
	.re_blog_widget_skeleton-loading .skeleton-card:nth-child(n+3) {
		display: none;
	}

	.re_blog_widget_skeleton-loading .skeleton-items {
		justify-content: center;
	}
}

@media (max-width: 520px) {
	.re_blog_widget_skeleton-loading .skeleton-card:nth-child(n+2) {
		display: none;
	}
}

.re_blog_widget_list {
	white-space: nowrap;
	overflow-x: auto;
	/*overflow-y: hidden;*/
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	cursor: grab;
	margin-left: 0px;
	margin-right: 0px;
	width: 100%;
	margin-bottom: 25px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.re_blog_widget_list::-webkit-scrollbar {
	display: none;
}

.re_blog_widget_list ul {
	list-style-type: none;
	margin: 0!important;
    width: auto !important;
    display: flex;
    align-items: stretch;
    justify-content: start;
}

@media screen and (-webkit-min-device-pixel-ratio:0) {
	.re_blog_widget_list li {
		margin: 0 7px;
	}
}

.re_blog_widget_list li.item {
	padding: 0px;
	margin: 10px;
	margin-bottom: 0;
	margin-top: 0px;
    flex: 0 0 33.3333%;
	width: auto;
    min-width: 360px;
    max-width: 380px;
	display: inline-block;
	vertical-align: top;
	white-space: normal;
}
@media (max-width: 1199px) {
	.re_blog_widget_list li.item {
		flex: 0 0 320px;
		min-width: 300px;
		max-width: 320px;
	}
}
@media (max-width: 990px) {
	.re_blog_widget_list li.item {
		flex: 0 0 280px;
	}
}
@media (max-width: 767px) {
	.re_blog_widget_list li.item {
		flex: 0 0 240px;
		min-width: 220px;
		max-width: 240px;
	}
}
@media (max-width: 520px) {
    .re_blog_widget_list li.item {
        flex: 0 0 100%;
        min-width: 65vw;
        max-width: 80vw;
    }
}

.re_blog_widget_list li.item:first-of-type {
    margin-left: 0;
}

/* Slider wrapper – relativní pozicování pro absolutní šipky */
.re_blog_widget_slider_wrapper {
	position: relative;
}

.block_re_blog_widget .re_blog_widget_rightslide {
	background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMjMiIHZpZXdCb3g9IjAgMCAxMyAyMyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik05LjYxODUgMTEuMjVMMC4zNDk1ODQgMi4wMjc2MkMtMC4xMTY1MjggMS41NjM3NyAtMC4xMTY1MjggMC44MTE3MyAwLjM0OTU4NCAwLjM0Nzg4NEMwLjgxNTY5NiAtMC4xMTU5NjEgMS41NzE0MSAtMC4xMTU5NjEgMi4wMzc1MyAwLjM0Nzg4NEwxMi4xNTA0IDEwLjQxMDFDMTIuNjE2NSAxMC44NzQgMTIuNjE2NSAxMS42MjYgMTIuMTUwNCAxMi4wODk5TDIuMDM3NTMgMjIuMTUyMUMxLjU3MTQxIDIyLjYxNiAwLjgxNTY5NiAyMi42MTYgMC4zNDk1ODQgMjIuMTUyMUMtMC4xMTY1MjggMjEuNjg4MyAtMC4xMTY1MjggMjAuOTM2MiAwLjM0OTU4NCAyMC40NzI0TDkuNjE4NSAxMS4yNVoiIGZpbGw9IiMwMDkzN0EiLz4KPC9zdmc+Cg==);
	background-repeat: no-repeat;
	background-position: 13px;
	background-size: 10px auto;
	background-color: #fdfdfd;
	border-radius: 50%;
	border: 1px solid #dfdfdf;
    transform: translate(0, -50%);
	position: absolute;
    right: 4px;
    top: 50%;
	margin-top: -17px;
	height: 34px;
	width: 34px;
	z-index: 11;
	cursor: pointer;
}

.block_re_blog_widget .re_blog_widget_leftslide {
	background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMjMiIHZpZXdCb3g9IjAgMCAxMyAyMyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik05LjYxODUgMTEuMjVMMC4zNDk1ODQgMi4wMjc2MkMtMC4xMTY1MjggMS41NjM3NyAtMC4xMTY1MjggMC44MTE3MyAwLjM0OTU4NCAwLjM0Nzg4NEMwLjgxNTY5NiAtMC4xMTU5NjEgMS41NzE0MSAtMC4xMTU5NjEgMi4wMzc1MyAwLjM0Nzg4NEwxMi4xNTA0IDEwLjQxMDFDMTIuNjE2NSAxMC44NzQgMTIuNjE2NSAxMS42MjYgMTIuMTUwNCAxMi4wODk5TDIuMDM3NTMgMjIuMTUyMUMxLjU3MTQxIDIyLjYxNiAwLjgxNTY5NiAyMi42MTYgMC4zNDk1ODQgMjIuMTUyMUMtMC4xMTY1MjggMjEuNjg4MyAtMC4xMTY1MjggMjAuOTM2MiAwLjM0OTU4NCAyMC40NzI0TDkuNjE4NSAxMS4yNVoiIGZpbGw9IiMwMDkzN0EiLz4KPC9zdmc+Cg==);
	background-repeat: no-repeat;
	background-position: 13px;
	background-size: 10px auto;
	background-color: #fdfdfd;
	border-radius: 50%;
	border: 1px solid #dfdfdf;
	transform: scale(-1, 1) translate(0, -50%);
	position: absolute;
    left: 4px;
    top: 50%;
	margin-top: -17px;
	height: 34px;
	width: 34px;
	z-index: 10;
	cursor: pointer;
}
.block_re_blog_widget .re_blog_widget_rightslide:hover, .block_re_blog_widget .re_blog_widget_leftslide:hover {
    border: 1px solid #cbcbcb;
}

.block_re_blog_widget .re_blog_widget_leftslide img,
.block_re_blog_widget .re_blog_widget_rightslide img {
	height: 30px !important;
	width: auto !important;
}

/* Pagination dots */
.re_blog_widget_dots {
	text-align: center;
	padding: 5px 0 10px;
	width: calc(100% - 20px);
	margin-left: 10px;
	display: flex;
	justify-content: center;
	gap: 6px;
	flex-wrap: nowrap;
}

.re_blog_widget_dot {
	flex: 1 1 40px;
	max-width: 40px;
	min-width: 6px;
	height: 6px;
	border-radius: 0;
	background-color: #CBE7E1;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.re_blog_widget_dot.active {
	background-color: #00937A;
}

.re_blog_widget_dot:hover {
	background-color: #00937A;
}

.block_re_blog_widget .center {
	text-align: center;
	width: 100%;
}

.block_re_blog_widget {
	display: block;
	margin: auto;
}

/* Fade efekty na krajích scrollovatelného widgetu */
.re_blog_widget_slider_wrapper.before::before,
.re_blog_widget_slider_wrapper.after::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	width: 30px;
	pointer-events: none;
	z-index: 10;
	opacity: 0;
	transition: opacity 0.3s;
}
.re_blog_widget_slider_wrapper::before {
	left: 0px;
	background: linear-gradient(to right, rgba(255,255,255,0.9), transparent);
}
.re_blog_widget_slider_wrapper::after {
	right: 0px;
	background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
}
.re_blog_widget_slider_wrapper.rw-can-scroll:not(.rw-at-start)::before { opacity: 1; }
.re_blog_widget_slider_wrapper.rw-can-scroll:not(.rw-at-end)::after   { opacity: 1; }

/* Přechod opacity na šipkách */
.block_re_blog_widget .re_blog_widget_leftslide,
.block_re_blog_widget .re_blog_widget_rightslide {
	transition: opacity 0.3s ease;
}

/* Šipky pošednou na krajích (loop – klik přeskočí na druhý konec) */
.re_blog_widget_slider_wrapper.rw-at-start .re_blog_widget_leftslide,
.re_blog_widget_slider_wrapper.rw-at-end   .re_blog_widget_rightslide {
	opacity: 0.60;
}

/* ── Blog card styles ─────────────────────────────────────────── */

.re_blog_widget_list .sdsarticleCat {
	background: #fff;
	border-bottom: 1px solid #E1E1E1;
	border-radius: 4px;
	/*overflow: hidden;*/
	height: 100%;
}

.re_blog_widget_list .imageFeatured {
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
}

.re_blog_widget_list .articleContent {
	line-height: 0;
}

.re_blog_widget_list .sdsarticle-des {
	padding: 10px;
}

.re_blog_widget_list .sdstitle_block {
	font-weight: 600;
	margin-bottom: 6px;
	line-height: 1.4;
	/*overflow: hidden;*/
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.re_blog_widget_list .sdstitle_block a {
	color: #333;
	text-decoration: none;
}

.re_blog_widget_list .sdstitle_block a:hover {
	color: #00937a;
	text-decoration: underline;
}

.re_blog_widget_list #lipsum {
	/*font-size: 12px;*/
	/*color: #666;*/
	overflow: hidden;
	display: -webkit-box;
	/*-webkit-line-clamp: 3;*/
	-webkit-box-orient: vertical;
	/*margin-bottom: 8px;*/
	white-space: normal;
}

.re_blog_widget_list a.zelena {
	font-size: 100%;
	color: #00937a;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.re_blog_widget_list a.zelena:hover {
    text-decoration: none;
}

.re_blog_widget_list .imageFeaturedLink {
	text-decoration: none;
	color: inherit;
	display: block;
}
