/* ==========================================================================
   Projects Showcase Carousel — Elementor Widget
   Premium enterprise style: L&T / Tata Projects / Afcons / Adani / SP
   Primary: #0B2E75 (Navy Blue) | Accent: #FF7A00 (Orange)
   ========================================================================== */

/* ── Custom Properties ──────────────────────────────────────────────────── */
.psw-section {
	--psw-primary:     #0B2E75;
	--psw-accent:      #FF7A00;
	--psw-white:       #ffffff;
	--psw-bg:          #f8f9fb;
	--psw-gray-light:  #f4f6f9;
	--psw-border:      #e8eaed;
	--psw-text-muted:  #8a8fa8;
	--psw-shadow-card: 0 8px 48px rgba(11, 46, 117, 0.11);
	--psw-shadow-nav:  0 4px 20px rgba(0, 0, 0, 0.14);
	--psw-ease:        cubic-bezier(0.4, 0, 0.2, 1);
	--psw-dur:         0.5s;
	--psw-radius:      20px;
	--psw-radius-sm:   12px;

	font-family: inherit;
	padding: 80px 0;
	background-color: var(--psw-bg);
	box-sizing: border-box;
}

.psw-section *,
.psw-section *::before,
.psw-section *::after {
	box-sizing: inherit;
}

/* ── Section Header ─────────────────────────────────────────────────────── */
.psw-section-header {
	text-align: center;
	margin-bottom: 52px;
	padding: 0 20px;
}

.psw-portfolio-label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: var(--psw-accent);
	margin-bottom: 14px;
	position: relative;
}

.psw-portfolio-label::before,
.psw-portfolio-label::after {
	content: '';
	display: inline-block;
	width: 32px;
	height: 2px;
	background: var(--psw-accent);
	opacity: 0.45;
	border-radius: 2px;
	flex-shrink: 0;
}

.psw-heading {
	font-size: clamp(26px, 3.8vw, 44px);
	font-weight: 800;
	color: var(--psw-primary);
	margin: 0 0 18px 0;
	line-height: 1.15;
	letter-spacing: -0.5px;
}

.psw-subtitle {
	font-size: 16px;
	color: var(--psw-text-muted);
	max-width: 540px;
	margin: 0 auto;
	line-height: 1.75;
}

/* ── Main Card ──────────────────────────────────────────────────────────── */
.psw-main-card {
	background: var(--psw-white);
	border-radius: var(--psw-radius);
	box-shadow: var(--psw-shadow-card);
	overflow: hidden;
	margin-bottom: 28px;
	transition: box-shadow 0.35s var(--psw-ease);
}

.psw-main-card:hover {
	box-shadow: 0 16px 64px rgba(11, 46, 117, 0.16);
}

.psw-card-inner {
	display: flex;
	min-height: 550px;
}

/* ── Image Panel (left 70%) ─────────────────────────────────────────────── */
.psw-image-panel {
	position: relative;
	flex: 0 0 70%;
	overflow: hidden;
	border-radius: var(--psw-radius) 0 0 var(--psw-radius);
	/* Fallback background while images load */
	background: linear-gradient(135deg, #0B2E75 0%, #1a4fa0 100%);
}

/* Canvas fills the panel — slides are positioned inside it */
.psw-slides-canvas {
	position: absolute;
	inset: 0;
}

/* ── Slides ─────────────────────────────────────────────────────────────── */
.psw-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transform: scale(1.04);
	transition:
		opacity   var(--psw-dur) var(--psw-ease),
		transform var(--psw-dur) var(--psw-ease);
	pointer-events: none;
	will-change: opacity, transform;
}

.psw-slide.psw-active {
	opacity: 1;
	transform: scale(1);
	pointer-events: auto;
}

.psw-slide-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* ── Navigation Arrows ──────────────────────────────────────────────────── */
.psw-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 20;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--psw-white);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--psw-shadow-nav);
	color: var(--psw-primary);
	transition:
		background-color 0.25s var(--psw-ease),
		color            0.25s var(--psw-ease),
		transform        0.25s var(--psw-ease),
		box-shadow       0.25s var(--psw-ease);
	outline: none;
	padding: 0;
	flex-shrink: 0;
}

.psw-nav:hover {
	background: var(--psw-accent);
	color: var(--psw-white);
	transform: translateY(-50%) scale(1.1);
	box-shadow: 0 8px 28px rgba(255, 122, 0, 0.38);
}

.psw-nav:active {
	transform: translateY(-50%) scale(0.96);
}

.psw-nav:focus-visible {
	outline: 3px solid var(--psw-accent);
	outline-offset: 2px;
}

.psw-nav-prev {
	left: 20px;
}

.psw-nav-next {
	right: 20px;
}

/* ── Project List (right 30%) ───────────────────────────────────────────── */
.psw-project-list {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: thin;
	scrollbar-color: var(--psw-border) transparent;
	padding: 4px 0;
}

.psw-project-list::-webkit-scrollbar {
	width: 4px;
}

.psw-project-list::-webkit-scrollbar-track {
	background: transparent;
}

.psw-project-list::-webkit-scrollbar-thumb {
	background: var(--psw-border);
	border-radius: 4px;
}

.psw-list-item {
	flex-shrink: 0;
	padding: 20px 20px 20px 24px;
	cursor: pointer;
	border-left: 4px solid transparent;
	background: transparent;
	transition:
		background-color 0.25s var(--psw-ease),
		border-color     0.25s var(--psw-ease);
	outline: none;
}

.psw-list-item:hover {
	background-color: rgba(11, 46, 117, 0.03);
}

.psw-list-item.psw-active {
	border-left-color: var(--psw-accent);
	background-color: rgba(255, 122, 0, 0.05);
}

.psw-list-item:focus-visible {
	outline: 2px solid var(--psw-accent);
	outline-offset: -2px;
}

.psw-city {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 600;
	color: var(--psw-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.8px;
	margin: 0 0 7px 0;
	line-height: 1;
}

.psw-city-icon {
	color: var(--psw-accent);
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	line-height: 0;
}

.psw-project-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--psw-primary);
	margin: 0;
	line-height: 1.35;
	letter-spacing: 0.1px;
}

.psw-list-item.psw-active .psw-project-title {
	color: var(--psw-primary);
}

.psw-divider {
	flex-shrink: 0;
	height: 1px;
	background: var(--psw-border);
	margin: 0 20px;
	border: none;
}

/* ── Thumbnail Strip ────────────────────────────────────────────────────── */
.psw-thumbnails-outer {
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	-ms-overflow-style: none;
	margin-bottom: 24px;
	padding: 4px 2px;
}

.psw-thumbnails-outer::-webkit-scrollbar {
	display: none;
}

.psw-thumbnails-track {
	display: flex;
	gap: 14px;
	padding: 2px 0;
	/* Allows horizontal scroll without min-width clipping */
	width: max-content;
	min-width: 100%;
}

.psw-thumb {
	flex-shrink: 0;
	width: 140px;
	cursor: pointer;
	border: 2px solid var(--psw-border);
	border-radius: var(--psw-radius-sm);
	overflow: hidden;
	background: var(--psw-white);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition:
		border-color 0.25s var(--psw-ease),
		transform    0.25s var(--psw-ease),
		box-shadow   0.25s var(--psw-ease);
	outline: none;
}

.psw-thumb:hover {
	transform: scale(1.05);
	box-shadow: 0 6px 20px rgba(11, 46, 117, 0.13);
	border-color: rgba(255, 122, 0, 0.4);
}

.psw-thumb.psw-active {
	border-color: var(--psw-accent);
	box-shadow: 0 4px 18px rgba(255, 122, 0, 0.22);
}

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

.psw-thumb-img-wrap {
	width: 100%;
	height: 84px;
	overflow: hidden;
}

.psw-thumb-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.35s var(--psw-ease);
}

.psw-thumb:hover .psw-thumb-image {
	transform: scale(1.08);
}

.psw-thumb-title {
	display: block;
	font-size: 11px;
	font-weight: 600;
	color: var(--psw-primary);
	padding: 8px 8px 9px;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	border-bottom: 2px solid transparent;
	transition: color 0.25s var(--psw-ease), border-color 0.25s var(--psw-ease);
}

.psw-thumb.psw-active .psw-thumb-title {
	color: var(--psw-accent);
	border-bottom-color: var(--psw-accent);
}

/* ── Dots ───────────────────────────────────────────────────────────────── */
.psw-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-bottom: 36px;
}

.psw-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--psw-border);
	border: none;
	cursor: pointer;
	padding: 0;
	transition:
		background-color 0.25s var(--psw-ease),
		transform        0.25s var(--psw-ease),
		width            0.3s  var(--psw-ease),
		border-radius    0.3s  var(--psw-ease);
	outline: none;
}

.psw-dot:hover {
	background: rgba(255, 122, 0, 0.45);
	transform: scale(1.25);
}

.psw-dot.psw-active {
	background: var(--psw-accent);
	width: 28px;
	border-radius: 5px;
	transform: none;
}

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

/* ── CTA Button ─────────────────────────────────────────────────────────── */
.psw-cta {
	display: flex;
	justify-content: center;
	margin-top: 4px;
}

.psw-btn-all {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 38px;
	background: transparent;
	border: 2px solid var(--psw-accent);
	color: var(--psw-accent);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 50px;
	transition:
		background-color 0.3s var(--psw-ease),
		color            0.3s var(--psw-ease),
		transform        0.2s var(--psw-ease),
		box-shadow       0.3s var(--psw-ease);
	outline: none;
}

.psw-btn-all:hover {
	background: var(--psw-accent);
	color: var(--psw-white);
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(255, 122, 0, 0.32);
}

.psw-btn-all:active {
	transform: translateY(0);
}

.psw-btn-all:focus-visible {
	outline: 3px solid var(--psw-accent);
	outline-offset: 3px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* ── Tablet (≤1100px) ───────────────────────────────────────────────────── */
@media screen and (max-width: 1100px) {
	.psw-image-panel {
		flex: 0 0 65%;
	}

	.psw-project-title {
		font-size: 14px;
	}

	.psw-list-item {
		padding: 16px 16px 16px 20px;
	}
}

/* ── Tablet Portrait (≤900px) ───────────────────────────────────────────── */
@media screen and (max-width: 900px) {
	.psw-section {
		padding: 60px 0;
	}

	.psw-section-header {
		margin-bottom: 36px;
	}

	.psw-card-inner {
		flex-direction: column;
		min-height: unset;
	}

	.psw-image-panel {
		flex: none;
		width: 100%;
		height: 360px;
		min-height: 360px;
		border-radius: var(--psw-radius) var(--psw-radius) 0 0;
	}

	.psw-slides-canvas {
		position: absolute;
		inset: 0;
	}

	/* Show list as a 2-column grid on tablet */
	.psw-project-list {
		flex-direction: row;
		flex-wrap: wrap;
		overflow-y: visible;
		overflow-x: visible;
		padding: 8px;
		gap: 0;
		max-height: none;
	}

	.psw-list-item {
		flex: 1 1 calc(50% - 2px);
		min-width: 180px;
		border-left: none;
		border-bottom: 3px solid transparent;
		padding: 16px 14px;
	}

	.psw-list-item:hover {
		background-color: rgba(255, 122, 0, 0.04);
	}

	.psw-list-item.psw-active {
		border-left-color: transparent;
		border-bottom-color: var(--psw-accent);
		background-color: rgba(255, 122, 0, 0.05);
	}

	.psw-divider {
		display: none;
	}

	.psw-thumb {
		width: 120px;
	}

	.psw-thumb-img-wrap {
		height: 70px;
	}
}

/* ── Mobile (≤640px) ────────────────────────────────────────────────────── */
@media screen and (max-width: 640px) {
	.psw-section {
		padding: 48px 0;
	}

	.psw-section-header {
		margin-bottom: 28px;
		padding: 0 16px;
	}

	.psw-heading {
		font-size: 24px;
	}

	.psw-subtitle {
		font-size: 14px;
	}

	.psw-portfolio-label::before,
	.psw-portfolio-label::after {
		display: none;
	}

	.psw-main-card {
		border-radius: 16px;
		margin-bottom: 20px;
	}

	.psw-image-panel {
		height: 260px;
		min-height: 260px;
		border-radius: 16px 16px 0 0;
	}

	/* Single column on mobile */
	.psw-project-list {
		flex-direction: column;
		padding: 4px 0;
	}

	.psw-list-item {
		flex: none;
		width: 100%;
		border-left: 4px solid transparent;
		border-bottom: none;
		padding: 14px 14px 14px 18px;
	}

	.psw-list-item.psw-active {
		border-left-color: var(--psw-accent);
		border-bottom-color: transparent;
	}

	.psw-divider {
		display: block;
		margin: 0 14px;
	}

	.psw-nav {
		width: 44px;
		height: 44px;
	}

	.psw-nav-prev { left: 12px; }
	.psw-nav-next { right: 12px; }

	.psw-thumb {
		width: 100px;
	}

	.psw-thumb-img-wrap {
		height: 60px;
	}

	.psw-thumb-title {
		font-size: 10px;
		padding: 6px 6px 7px;
	}

	.psw-btn-all {
		font-size: 12px;
		padding: 12px 26px;
		letter-spacing: 1.2px;
	}

	.psw-thumbnails-track {
		gap: 10px;
	}
}

/* ── Tiny Mobile (≤400px) ───────────────────────────────────────────────── */
@media screen and (max-width: 400px) {
	.psw-image-panel {
		height: 210px;
		min-height: 210px;
	}

	.psw-thumb {
		width: 86px;
	}

	.psw-thumb-img-wrap {
		height: 52px;
	}

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

/* ── Elementor Editor helpers ───────────────────────────────────────────── */
.elementor-editor-active .psw-slide {
	/* All slides visible in editor for easier editing */
	opacity: 1;
	transform: none;
	position: relative;
	display: none;
}

.elementor-editor-active .psw-slide:first-child {
	display: block;
}

.elementor-editor-active .psw-slides-canvas {
	position: relative;
}
