/* =========================================
   Case Study Showcase Widget - BSS-CoP
   All values below are defaults and can be
   overridden via Elementor style controls.
   ========================================= */

/* --- Container --- */
.bss-csshowcase {
	width: 100%;
}

/* --- Section Title --- */
.bss-csshowcase__title {
	font-size: 2.25rem;
	font-weight: 700;
	color: #1a1a2e;
	text-align: center;
	margin: 0 0 1.5rem;
}

/* --- Navigation Wrapper --- */
.bss-csshowcase__nav-wrapper {
	margin-bottom: 2rem;
}

/* Nav container */
.bss-csshowcase__nav {
	overflow: visible;
}

/* Desktop: plain centered flex */
.bss-csshowcase__nav .swiper-wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}

/* Mobile: Swiper takes over */
.bss-csshowcase__nav.bss-csshowcase__nav--swiping {
	overflow: hidden;
}

.bss-csshowcase__nav--swiping .swiper-wrapper {
	flex-wrap: nowrap;
	justify-content: flex-start;
	gap: 0;
}

/* slidesPerView:"auto" — let each button size to its content */
.bss-csshowcase__nav--swiping .bss-csshowcase__nav-btn {
	width: auto !important;
	flex-shrink: 0;
}

/* --- Nav Button (default: card with logo) --- */
.bss-csshowcase__nav-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 80px;
	padding: 12px 24px;
	background: #ffffff;
	color: #4b5563;
	font-weight: 600;
	font-size: 0.95rem;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: inherit;
	white-space: nowrap;
	line-height: 1.4;
	outline: none;
	box-sizing: border-box;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.bss-csshowcase__nav-btn:hover {
	box-shadow: 0 2px 8px rgba(0, 82, 204, 0.1);
}

/* Active: only bottom border via pseudo-element */
.bss-csshowcase__nav-btn--active {
	box-shadow: 0 2px 8px rgba(0, 82, 204, 0.1);
}

.bss-csshowcase__nav-btn::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background-color: #0052cc;
	border-radius: 0 0 12px 12px;
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

.bss-csshowcase__nav-btn--active::after {
	transform: scaleX(1);
}

/* Nav logo image */
.bss-csshowcase__nav-logo {
	display: block;
	height: 40px;
	width: auto;
	max-width: 120px;
	object-fit: contain;
}

/* Nav label */
.bss-csshowcase__nav-label {
	display: block;
}

/* Nav icon */
.bss-csshowcase__nav-btn i,
.bss-csshowcase__nav-btn > svg {
	font-size: 1.25em;
	width: 1.25em;
	height: 1.25em;
}

/* --- Panels --- */
.bss-csshowcase__panels {
	position: relative;
}

.bss-csshowcase__panel {
	display: none;
	opacity: 0;
	transition: opacity 0.35s ease;
}

.bss-csshowcase__panel--active {
	display: block;
	opacity: 1;
}

/* When content Swiper is active, all panels must be visible as slides */
.bss-csshowcase__panel--swiper-slide {
	display: block !important;
	opacity: 1 !important;
}

/* Grid container — no background, just layout */
.bss-csshowcase__panel-inner {
	display: grid;
	grid-template-columns:55% 1fr;
	gap: 1.4rem;
	align-items: stretch;
}

/* --- Content Card (Left) --- */
.bss-csshowcase__content {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-radius: 16px;
	padding: 2.5rem;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.bss-csshowcase__category {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #0052cc;
	margin-bottom: 0.75rem;
	align-self: flex-start;
}

.bss-csshowcase__content-title {
	font-size: 1.75rem;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 1rem;
	line-height: 1.3;
}

.bss-csshowcase__description {
	color: #6b7280;
	font-size: 0.95rem;
	line-height: 1.7;
	margin-bottom: 1rem;
}

.bss-csshowcase__description p {
	margin: 0;
}

/* --- Highlights --- */
.bss-csshowcase__highlights {
	margin-bottom: 1rem;
}

.bss-csshowcase__highlights-heading {
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
	color: #1a1a2e;
}

.bss-csshowcase__highlights ul {
	list-style: disc;
	padding-left: 1.25rem;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.bss-csshowcase__highlights li {
	color: #4b5563;
	font-size: 0.9rem;
	line-height: 1.5;
}

/* --- Extra Text --- */
.bss-csshowcase__extra-text {
	color: #6b7280;
	font-size: 0.9rem;
	line-height: 1.6;
	margin-bottom: 1rem;
}

.bss-csshowcase__extra-text p {
	margin: 0;
}

/* --- CTA Link --- */
.bss-csshowcase__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 600;
	color: #0052cc;
	text-decoration: none;
	font-size: 0.95rem;
	transition: color 0.3s ease;
	margin-top: 0.75rem;
}

.bss-csshowcase__cta:hover {
	color: #003d99;
}

.bss-csshowcase__cta svg {
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease;
}

.bss-csshowcase__cta:hover svg {
	transform: translateX(4px);
}

/* --- Image Card (Right) --- */
.bss-csshowcase__image {
	display: flex;
	justify-content: center;
	align-items: center;
	background: #f3f4f6;
	border-radius: 16px;
	padding: 2rem;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.bss-csshowcase__image img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* --- View All --- */
.bss-csshowcase__view-all-wrap {
	display: flex;
	justify-content: center;
	margin-top: 2.5rem;
}

.bss-csshowcase__view-all-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: #0052cc;
	color: #ffffff;
	padding: 0.75rem 2rem;
	border: 2px solid transparent;
	border-radius: 50px;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	transition: all 0.3s ease;
}

.bss-csshowcase__view-all-btn:hover {
	background: #003d99;
	color: #ffffff;
}

.bss-csshowcase__view-all-btn svg {
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease;
}

.bss-csshowcase__view-all-btn:hover svg {
	transform: translateX(4px);
}

/* Desktop: slidesPerView auto — let button size to its content */
@media (min-width: 1025px) {
	.bss-csshowcase__nav-btn {
		width: auto !important;
		min-width: 140px;
	}
}


/* --- Responsive: Tablet / Mobile --- */
@media (max-width: 1024px) {
	.bss-csshowcase__title {
		font-size: 1.75rem;
	}

	.bss-csshowcase__panel-inner {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.bss-csshowcase__content {
		order: 2;
		padding: 1.5rem;
	}

	.bss-csshowcase__image {
		order: 1;
		padding: 1.25rem;
	}
}

@media (max-width: 767px) {
	.bss-csshowcase__content-title {
		font-size: 1.35rem;
	}

	.bss-csshowcase__content {
		padding: 1.25rem;
	}

	.bss-csshowcase__image {
		padding: 1rem;
	}
}

/* --- Elementor Editor Empty State --- */
.bss-csshowcase__empty {
	text-align: center;
	padding: 3rem 1rem;
	color: #6b7280;
	font-size: 1.1rem;
	background: #f9fafb;
	border-radius: 12px;
	border: 2px dashed #e5e7eb;
}
