/* =============================================================================
   PJ Case Study Slider — Frontend Styles
   Version: 1.2.0 | CMAK — Smooth portrait-card layout
   ============================================================================= */

.pj-css-wrapper {
	--pj-container:    1240px;
	--pj-gap:          20px;
	--pj-peek:         350px !important;
	--pj-speed:        700ms;
	--pj-accent:       #00bcd4;
	--pj-card-bg:      #0a2a3a;
	--pj-card-border:  #1a4a5a;
	--pj-color-title:  #ffffff;
	--pj-color-stat:   #00bcd4;
	--pj-color-label:  #a0b8c8;
	--pj-color-body:   #a0b8c8;
	--pj-color-client: #ffffff;
	--pj-color-btn:    #ffffff;
	--pj-btn-border:   #2a5a6a;
	--pj-card-radius:  16px;
	--pj-image-height: 220px;
	--pj-nav-size:     48px;

	box-sizing: border-box;
	width: 100%;
	overflow: hidden;
	position: relative;
}

.pj-css-wrapper *,
.pj-css-wrapper *::before,
.pj-css-wrapper *::after {
	box-sizing: inherit;
}

/* Container */
.pj-css-container {
	width: 100%;
	max-width: var(--pj-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

.pj-css-container--left {
	max-width: none;
	padding-right: 0;
	padding-left: max(24px, calc((100vw - var(--pj-container)) / 2 + 24px));
}

/* Header — title left, nav arrows right */
.pj-css-header {
	margin-bottom: 24px;
}

.pj-css-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.pj-css-section-title {
	margin: 0;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	color: var(--pj-color-title);
	line-height: 1.2;
}



/* Track */
.pj-css-track-outer { overflow: visible; }
.pj-css-track-inner { overflow: hidden; }

.pj-css-track {
	display: flex;
	gap: var(--pj-gap);
	transition: transform var(--pj-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: transform;
	list-style: none;
	margin: 0;
	padding: 0;
	cursor: grab;
}

.pj-css-track.is-dragging {
	transition: none !important;
	cursor: grabbing;
}

/* Slide card */
.pj-css-slide {
	flex: 0 0 calc((100% - (var(--pj-gap) * 2) - var(--pj-peek)) / 3);
	background: rgba(14, 186, 221, 0.03);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	border: 2px solid #0EBADD;
	border-radius: var(--pj-card-radius);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
	overflow: hidden;
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 480px;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
	user-select: none;
}

.pj-css-slide:hover {
	box-shadow: 0 16px 44px rgba(0, 0, 0, 0.25);
}

.pj-css-slide::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--pj-card-radius);
	pointer-events: none;
	z-index: 0;
	background:
		linear-gradient(90deg, rgba(14,186,221,0.14), rgba(14,186,221,0.08) 35%, rgba(120,170,255,0.04) 65%, rgba(255,255,255,0.02)),
		linear-gradient(90deg, transparent, rgba(255,255,255,0.22) 25%, rgba(255,255,255,0.40) 50%, rgba(255,255,255,0.22) 75%, transparent) top / 100% 1px no-repeat,
		linear-gradient(90deg, transparent, rgba(255,255,255,0.14) 25%, rgba(255,255,255,0.28) 50%, rgba(255,255,255,0.14) 75%, transparent) bottom / 100% 1px no-repeat;
}

.pj-css-slide::after {
	content: "";
	position: absolute;
	inset: -4%;
	border-radius: calc(var(--pj-card-radius) + 4px);
	pointer-events: none;
	z-index: 0;
	background: linear-gradient(
		140deg,
		rgba(255,255,255,0),
		rgba(255,255,255,0.08) 20%,
		rgba(150,200,255,0.18) 52%,
		rgba(120,180,255,0.13) 74%,
		rgba(255,255,255,0.05)
	);
	opacity: 0.18;
	transform: translate3d(0, 0, 0) scale(1.02);
	transition: opacity 0.45s ease, transform 0.45s ease;
}

.pj-css-slide:hover::after {
	opacity: 0.58;
	transform: translate3d(1.5%, -1%, 0) scale(1.04);
}

.pj-css-slide-image,
.pj-css-slide-body {
	position: relative;
	z-index: 1;
}

/* Slide image */
.pj-css-slide-image {
	width: 100%;
	height: var(--pj-image-height);
	background-color: rgba(0, 0, 0, 0.2);
	background-size: cover;
	background-position: center;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pj-css-slide-image-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.3);
}

/* Slide body */
.pj-css-slide-body {
	padding: 26px 28px 28px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.pj-css-client {
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--pj-color-client);
	opacity: 0.7;
	margin-bottom: 10px;
}

.pj-css-stat {
	font-family: "Odibee Sans", sans-serif;
	font-size: 46px;
	font-weight: 500;
	color: #ffffff;
	line-height: 1;
	letter-spacing: 1px;
	margin-bottom: 6px;
}

.pj-css-stat-label {
	font-size: 19px;
	font-weight: 600;
	color: #ffffff;
	margin-bottom: 18px;
	line-height: 1.4;
}

.pj-css-desc {
	font-size: 0.8125rem;
	color: hsl(0deg 0% 100% / 70%);
	line-height: 1.65;
	margin: 0 0 auto;
	padding-bottom: 14px;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* CTA Button */
.pj-css-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	padding: 10px 18px;
	border: 1px solid #0EBADD;
	border-radius: 12px;
	color: #0EBADD;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	align-self: flex-start;
	background: transparent;
	position: relative;
	z-index: 1;
	transform: translateY(0);
	transition:
		letter-spacing 0.3s ease,
		transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
		color 0.3s ease,
		box-shadow 0.3s ease,
		border-color 0.3s ease;
}

.pj-css-btn::before {
	content: '';
	position: absolute;
	inset: 0;
	background: #ffffff;
	border-radius: inherit;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: -1;
}

.pj-css-btn:hover {
	color: #00bcd4;
	border-color: #00bcd4;
	box-shadow: 0 0 18px rgba(0, 188, 212, 0.45);
	transform: translateY(-2px);
}

.pj-css-btn:hover::before { transform: scaleX(1); }
.pj-css-btn:hover .pj-css-btn-icon { transform: translateX(3px); }

.pj-css-btn:active {
	transform: translateY(0px) scale(0.97);
	box-shadow: 0 0 8px rgba(0, 188, 212, 0.3);
}

.pj-css-btn-icon {
	display: inline-block;
	transition: transform 0.2s ease;
}

/* Breakdance button overrides */
.pj-css-slide a.breakdance-link.button-atom.button-atom--primary.bde-button__button {
	position: relative;
	z-index: 1;
	transform: translateY(0);
	transition:
		letter-spacing 0.3s ease,
		transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
		color 0.3s ease,
		box-shadow 0.3s ease,
		border-color 0.3s ease;
}

.pj-css-slide a.breakdance-link.button-atom.button-atom--primary.bde-button__button::before {
	content: '';
	position: absolute;
	inset: 0;
	background: #ffffff;
	border-radius: inherit;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: -1;
}

.pj-css-slide a.breakdance-link.button-atom.button-atom--primary.bde-button__button:hover {
	color: #00bcd4 !important;
	border-color: #00bcd4;
	box-shadow: 0 0 18px rgba(0, 188, 212, 0.45);
	transform: translateY(-2px);
}

.pj-css-slide a.breakdance-link.button-atom.button-atom--primary.bde-button__button:hover::before { transform: scaleX(1); }

.pj-css-slide a.breakdance-link.button-atom.button-atom--primary.bde-button__button:active {
	transform: translateY(0px) scale(0.97);
	box-shadow: 0 0 8px rgba(0, 188, 212, 0.3);
}



/* Responsive — Tablet */
@media (max-width: 1024px) {
	.pj-css-slide {
		flex: 0 0 calc((100% - var(--pj-gap) - var(--pj-peek)) / 2);
		min-height: 460px;
	}
	
	
}

/* Responsive — Mobile */
@media (max-width: 767px) {

	/* Kill peek entirely on mobile */
	.pj-css-wrapper {
		--pj-peek: 0px;
	}

	.pj-css-container--left {
		padding-left: 16px;
		padding-right: 16px;
	}

	/* Full-width single slide, no offset */
	.pj-css-slide {
		flex: 0 0 100%;
		min-height: 440px;
	}

	/* Clip any overflow so no partial next-slide bleeds in */
	.pj-css-track-outer {
		overflow: hidden;
	}

	.pj-css-section-title { font-size: 1.375rem; }
	.pj-css-stat { font-size: 38px; }
}
