.he-pcs {
	--he-pcs-card-bg: #ffffff;
	--he-pcs-card-border: #e1e4e8;
	--he-pcs-title: #1a1a1a;
	--he-pcs-title-divider: #e5e7eb;
	--he-pcs-nav-prev-bg: #8d9299;
	--he-pcs-nav-next-bg: #2b2f36;
	--he-pcs-nav-color: #ffffff;
	--he-pcs-read-bg: #2072ef;
	--he-pcs-read-color: #ffffff;
	--he-pcs-media-pad: 16px 14px 12px;
	--he-pcs-toolbar-gap: 10px;
	box-sizing: border-box;
}

.he-pcs *,
.he-pcs *::before,
.he-pcs *::after {
	box-sizing: inherit;
}

.he-pcs__swiper {
	overflow: hidden;
	width: 100%;
	margin-bottom: 14px;
	padding: 10px;
}

.he-pcs__swiper .swiper-slide {
	height: auto;
	display: flex;
	transition: all .3s ease;
}

.he-pcs__swiper .swiper-slide:hover{
	box-shadow: 0 0 0 10px #1967b521;
}

.he-pcs__card {
	display: grid;
	grid-template-rows: 1fr auto;
	align-items: stretch;
	width: 100%;
	min-height: 260px;
	height: 100%;
	background: var(--he-pcs-card-bg);
	border: 1px solid var(--he-pcs-card-border);
	border-radius: 0;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s ease;
}

.he-pcs__card:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.he-pcs__media {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	
	background: #ffffff;
	height: 100%;
}

.he-pcs--posts .he-pcs__media{
	max-height: 270px;
}

.he-pcs__media img {
	max-width: 270px;
	width: 100%;
	height: 100%;
	object-fit: cover;
	vertical-align: middle;
	padding: 20px;
}
.he-pcs--posts .he-pcs__media img {
	max-width: 100%;
	padding: 0;
	min-height: 270px;
	object-fit: cover;
}

.cs-pd-pcs.he-pcs--posts .he-pcs__media img{
	object-fit: contain;
}

.he-pcs__title {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 58px;
	padding: 14px;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.3;
	text-align: left;
	color: var(--he-pcs-title);
}

.he-pcs--posts .he-pcs__title {
	background: #e6e6e6;
	font-size: 17px;
	font-weight: 600;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	word-break: break-all;
	white-space: nowrap;
	text-align: center;
}

.cs-no-expet .he-pcs__title{
	font-size: 20px;
	font-weight: 700;
	color: #313131;
}

.he-pcs__toolbar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: var(--he-pcs-toolbar-gap);
}

.he-pcs__nav-group {
	display: inline-flex;
	gap: 6px;
}

.he-pcs__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 70px;
	height: 50px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	color: var(--he-pcs-nav-color);
	cursor: pointer;
	transition: opacity 0.2s ease, filter 0.2s ease;
}

.he-pcs__nav--prev {
	background: #333;
}

.he-pcs__nav--next {
	background: #333;
}

.he-pcs__nav:hover:not(:disabled) {
	filter: brightness(1.05);
}

.he-pcs__nav:disabled {
	opacity: 0.38;
	cursor: default;
	filter: none;
}

.he-pcs__nav svg {
	display: block;
}

.he-pcs__nav svg path {
	stroke: none;
}

.he-pcs__read-more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0 30px;
	min-height: 40px;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	color: var(--he-pcs-read-color);
	background: #0653a3;
	border-radius: 0;
	transition: filter 0.2s ease, opacity 0.2s ease;
	height: 50px;
	font-weight: 400;
}

.he-pcs__read-more{
  overflow: hidden;
  position: relative;
}
.he-pcs__read-more:before{
  content:'';
  background: linear-gradient(to right, #000000f0 0%, #023f7f00 100%);
  inset: 0;
  position: absolute;
  z-index: 2;
  transition: all .3s ease;
  transform: translateX(-100%);
}


.he-pcs__read-more:hover:before {
    transform: translateX(0);
}

a.he-pcs__read-more .he-pcs__read-more-text{
  z-index: 3;
  position: relative;
  color: #fff;
}

a.he-pcs__read-more .he-pcs__rm-icon,
a.he-pcs__read-more .he-pcs__read-more-text{
  transition: all .3s ease;
  transform: translateX(0);
}
a.he-pcs__read-more:hover .he-pcs__rm-icon{
  transform: translateX(10px)
}
a.he-pcs__read-more:hover .he-pcs__read-more-text{
  transform: translateX(10px)
}

.he-pcs__read-more:focus-visible {
	outline: 2px solid var(--he-pcs-read-color);
	outline-offset: 2px;
}

.he-pcs__rm-icon {
	display: inline-flex;
	font-size: 1.15em;
	line-height: 1;
	font-weight: 700;
	opacity: 1;
	color: #fff;
}


.he-pcs__placeholder {
	display: block;
	width: 100%;
	max-width: 140px;
	height: 100px;
	margin: 0 auto;
	background: linear-gradient(145deg, #f0f1f3 0%, #e4e6ea 100%);
}


.he-pcs--posts {
	--he-pcs-excerpt: #4b5563;
	--he-pcs-excerpt-bg: #e6e6e6;
}

.he-pcs--posts .he-pcs__card {
	grid-template-rows: 1fr auto auto;
}

.he-pcs--posts .he-pcs__excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	padding: 0 20px 16px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	text-align: left;
	word-break: break-word;
	color: var(--he-pcs-excerpt, #4b5563);
	background: var(--he-pcs-excerpt-bg, #e6e6e6);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	text-overflow: ellipsis;
	/* text-wrap-mode: nowrap; */
}

.cs-no-expet .he-pcs__excerpt {
	display: none;
}

@media (max-width: 639px) {
	.he-pcs--posts .he-pcs__excerpt {
		padding: 0 14px 12px;
		font-size: 13px;
		text-wrap-mode: nowrap;
	}

	.he-pcs__card {
		min-height: 230px;
	}

	.he-pcs__media {
		min-height: 140px;
	}

	.he-pcs__media img {
		max-height: 250px;
		object-fit: contain;
	}
	.he-pcs--posts .he-pcs__media img {
	    min-height: 170px;
	}

	.he-pcs__title {
		min-height: 52px;
		font-size: 13px;
	}

	.he-pcs__toolbar {
		justify-content: flex-end;
	}
}
