/*
 * Page Showcase – Elementor widget styles.
 * Every value here is a default; Elementor style controls override them.
 */

.psw-showcase {
	--psw-spv: 3;
	--psw-gap: 36px;
	--psw-title-lines: 2;
	--psw-cols: 1;
	--psw-ink: #0d0d0d;
	--psw-muted: #5c6670;
	--psw-line: #e7eaee;
	--psw-card-bg: #f2f6f8;
	--psw-arrow: #13294b;
	position: relative;
	color: var(--psw-ink);
}

.psw-showcase *,
.psw-showcase *::before,
.psw-showcase *::after {
	box-sizing: border-box;
}

.psw-layout-list {
	--psw-title-lines: 3;
}

/* ---------- Header: heading + arrows ---------- */

.psw-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 34px;
}

.psw-showcase .psw-heading {
	margin: 0;
	padding: 0;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 700;
	color: inherit;
}

.psw-nav {
	display: flex;
	gap: 9px;
	flex-shrink: 0;
	margin-inline-start: auto;
}

.psw-showcase .psw-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1px solid var(--psw-arrow);
	border-radius: 0;
	background: #fff;
	color: var(--psw-ink);
	font-size: 20px;
	line-height: 1;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}

.psw-showcase .psw-arrow svg {
	display: block;
	width: 1em;
	height: 1em;
	pointer-events: none;
}

.psw-showcase .psw-arrow:not(:disabled):hover,
.psw-showcase .psw-arrow:not(:disabled):focus-visible {
	background: var(--psw-arrow);
	border-color: var(--psw-arrow);
	color: #fff;
}

.psw-showcase .psw-arrow:focus-visible {
	outline: 2px solid var(--psw-arrow);
	outline-offset: 2px;
}

.psw-showcase .psw-arrow:disabled {
	opacity: .35;
	cursor: default;
}

[dir="rtl"] .psw-showcase .psw-arrow svg,
.psw-showcase[dir="rtl"] .psw-arrow svg {
	transform: scaleX(-1);
}

.psw-no-scroll .psw-nav {
	visibility: hidden;
}

/* ---------- Carousel ---------- */

.psw-carousel {
	position: relative;
}

.psw-carousel__track {
	position: relative;
	display: flex;
	gap: var(--psw-gap);
	margin: 0;
	padding: 0;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	list-style: none;
}

.psw-carousel__track::-webkit-scrollbar {
	display: none;
}

.psw-carousel__track:focus {
	outline: none;
}

.psw-carousel__track:focus-visible {
	outline: 2px solid var(--psw-arrow);
	outline-offset: 4px;
}

.psw-carousel__track.is-dragging {
	scroll-snap-type: none;
	scroll-behavior: auto;
	cursor: grabbing;
	user-select: none;
}

.psw-carousel__slide {
	display: flex;
	flex: 0 0 calc((100% - (var(--psw-spv) - 1) * var(--psw-gap)) / var(--psw-spv));
	min-width: 0;
	scroll-snap-align: start;
}

/* Carousel card */
.psw-card {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 20px;
	width: 100%;
	margin: 0;
	padding: 20px;
	background-color: var(--psw-card-bg);
}

.psw-card .psw-thumb {
	flex-shrink: 0;
	width: var(--psw-card-img-w, 40%);
	height: 168px;
}

.psw-card__body {
	flex: 1 1 auto;
	align-self: stretch;
	display: flex;
	flex-direction: column;
	justify-content: var(--psw-body-justify, center);
	min-width: 0;
}

/* Arrows on both sides */
.psw-arrows-sides .psw-carousel > .psw-nav {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	z-index: 2;
	display: flex;
	justify-content: space-between;
	margin: 0;
	padding: 0 10px;
	transform: translateY(-50%);
	pointer-events: none;
}

.psw-arrows-sides .psw-carousel > .psw-nav .psw-arrow {
	pointer-events: auto;
}

/* ---------- List ---------- */

.psw-list {
	display: grid;
	grid-template-columns: repeat(var(--psw-cols), minmax(0, 1fr));
	column-gap: 30px;
	row-gap: 0;
}

.psw-item {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 30px;
	min-width: 0;
	margin: 0;
	padding: 30px 0;
}

.psw-list--divider .psw-item {
	border-bottom: 1px solid var(--psw-line);
}

.psw-item.psw-is-hidden {
	display: none;
}

.psw-item .psw-thumb {
	flex-shrink: 0;
	width: var(--psw-item-img-w, 48%);
	aspect-ratio: 424 / 300;
}

.psw-item__body {
	flex: 1 1 0;
	align-self: stretch;
	min-width: 0;
	padding-top: 6px;
}

.psw-loadmore-wrap {
	margin-top: 30px;
	text-align: center;
}

.psw-showcase .psw-loadmore {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 12px 30px;
	border: 1px solid var(--psw-arrow);
	border-radius: 0;
	background: var(--psw-arrow);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.psw-showcase .psw-loadmore:hover,
.psw-showcase .psw-loadmore:focus-visible {
	background: #fff;
	color: var(--psw-arrow);
}

/* ---------- Shared: image, title, meta, excerpt ---------- */

.psw-showcase .psw-thumb {
	position: relative;
	display: block;
	overflow: hidden;
	background-color: #dfe5ea;
	text-decoration: none;
}

.psw-showcase .psw-thumb img,
.psw-showcase .psw-thumb__placeholder {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: cover;
	transition: transform .5s ease;
}

.psw-showcase .psw-thumb__placeholder {
	background: linear-gradient(135deg, #e8edf1 0%, #d3dbe2 100%);
}

.psw-zoom-yes .psw-thumb:hover img {
	transform: scale(1.06);
}

.psw-showcase .psw-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--psw-title-lines);
	line-clamp: var(--psw-title-lines);
	overflow: hidden;
	margin: 0;
	padding: 0;
	color: var(--psw-ink);
	font-size: 22px;
	line-height: 1.3;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.psw-layout-list .psw-title {
	font-size: 32px;
	line-height: 1.22;
}

.psw-showcase .psw-title a {
	color: inherit;
	text-decoration: none;
	box-shadow: none;
	transition: opacity .2s ease, color .2s ease;
}

.psw-showcase .psw-title a:hover,
.psw-showcase .psw-title a:focus {
	color: inherit;
	opacity: .72;
	text-decoration: none;
}

.psw-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin-top: 16px;
	color: var(--psw-muted);
	font-size: 15px;
	line-height: 1.4;
}

.psw-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.psw-meta__author {
	gap: 10px;
	color: #3d454d;
	font-weight: 600;
}

.psw-showcase .psw-meta__avatar {
	display: block;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	margin: 0;
	border-radius: 50%;
	object-fit: cover;
}

.psw-meta__icon {
	display: inline-flex;
	font-size: 15px;
	line-height: 1;
}

.psw-meta__icon svg {
	display: block;
	width: 1em;
	height: 1em;
}

.psw-meta__sep {
	flex: 0 0 4px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background-color: currentColor;
	opacity: .75;
}

.psw-excerpt {
	margin-top: 18px;
	color: #1f2328;
	font-size: 17px;
	line-height: 1.6;
}

.psw-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.psw-empty {
	padding: 24px;
	border: 1px dashed #c3c9cf;
	color: #6b7280;
	font-size: 14px;
	text-align: center;
}

/* ---------- Small screens (defaults only; Elementor responsive controls override) ---------- */

@media (max-width: 767px) {
	.psw-header {
		margin-bottom: 20px;
	}

	.psw-showcase .psw-heading {
		font-size: 22px;
	}

	.psw-card {
		gap: 14px;
		padding: 14px;
	}

	.psw-showcase .psw-title {
		font-size: 18px;
	}

	.psw-layout-list .psw-title {
		font-size: 24px;
	}

	.psw-meta {
		margin-top: 10px;
		font-size: 14px;
	}

	.psw-item {
		gap: 18px;
		padding: 24px 0;
	}

	.psw-excerpt {
		margin-top: 12px;
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.psw-carousel__track {
		scroll-behavior: auto;
	}

	.psw-showcase .psw-thumb img,
	.psw-showcase .psw-arrow,
	.psw-showcase .psw-title a {
		transition: none;
	}
}
