/* Swiper CSS will be loaded via CDN link tag in the widget scripts */

/* Slider Widget Styles */
.ecw-slider-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.ecw-slider {
	width: 100%;
	height: 100%;
}

.ecw-slider .swiper-slide {
	position: relative;
	display: flex;
	flex-direction: column;
	height: auto;
}

.ecw-slider .swiper-slide.ecw-slide-card-link {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ecw-slide-image {
	position: relative;
	width: 100%;
	height: 300px;
	overflow: hidden;
	flex-shrink: 0;
}

.ecw-slide-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ecw-slide-content {
	position: relative;
	width: 100%;
	padding: 30px;
	box-sizing: border-box;
	flex: 1;
	display: flex;
	flex-direction: column;
	padding-left: 0;
}

/* Button alignment is handled by .ecw-slide-button-wrapper text-align */

.ecw-slide-title {
	margin: 0 0 15px 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
}

.ecw-slide-description {
	font-size: 16px;
	line-height: 1.6;
	margin-bottom: 20px;
	flex: 0 0 auto;
}

.ecw-slide-button-wrapper {
	margin-top: auto;
	width: 100%;
}

.ecw-slide-button {
	display: inline-block;
	text-decoration: none;
	padding: 12px 24px;
	border-radius: 4px;
	transition: all 0.3s ease;
	cursor: pointer;
	font-weight: 600;
}

.ecw-slide-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Navigation Arrows */
.ecw-slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	z-index: 10;
	cursor: pointer;
	background-color: rgba(0, 0, 0, 0.3);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.ecw-slider-arrow:hover {
	background-color: rgba(0, 0, 0, 0.6);
}

.ecw-slider-arrow::after {
	font-size: 20px;
	font-weight: bold;
	color: inherit;
}

/* Arrows Inside */
.ecw-arrows-inside.swiper-button-prev {
	left: 20px;
}

.ecw-arrows-inside.swiper-button-next {
	right: 20px;
}

/* Arrows Outside - wrapper creates space, slider clips content */
.ecw-slider-wrapper.ecw-arrows-outside-wrapper {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 0;
	overflow: hidden;
}

.ecw-slider-wrapper.ecw-arrows-outside-wrapper .ecw-slider {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

/* Outside arrows - positioned in the flex gap */
.ecw-slider-wrapper.ecw-arrows-outside-wrapper .ecw-arrows-outside {
	position: relative;
	top: auto;
	transform: none;
	flex-shrink: 0;
}

.ecw-slider-wrapper.ecw-arrows-outside-wrapper .ecw-arrows-outside.swiper-button-prev {
	left: auto !important;
	right: auto !important;
	order: -1;
}

.ecw-slider-wrapper.ecw-arrows-outside-wrapper .ecw-arrows-outside.swiper-button-next {
	left: auto !important;
	right: auto !important;
	order: 1;
}

/* Pagination */
.ecw-slider .swiper-pagination {
	bottom: 30px;
}

.ecw-slider .swiper-pagination-bullet {
	width: 12px;
	height: 12px;
	background-color: rgba(255, 255, 255, 0.5);
	opacity: 1;
}

.ecw-slider .swiper-pagination-bullet-active {
	background-color: #ffffff;
}

/* Ensure slides have proper height */
.ecw-slider .swiper-wrapper {
	display: flex;
	align-items: stretch;
}

/* ============================================
   SVG Viewer Styles
   ============================================ */
.ecw-svg-viewer-wrapper {
	position: relative;
	width: 100%;
}

.ecw-svg-viewer-container {
	position: relative;
	width: 100%;
	height: 600px;
	overflow: hidden;
	border: 1px solid #ddd;
	background-color: #f5f5f5;
}

.ecw-svg-viewer-content {
	width: 100%;
	height: 100%;
	overflow: hidden;
	position: relative;
	touch-action: none;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
}

.ecw-svg-viewer-content svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* Overlay for activation prompt */
.ecw-svg-viewer-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: opacity 0.3s ease;
}

.ecw-svg-viewer-overlay-content {
	background-color: #ffffff;
	border-radius: 12px;
	padding: 40px 30px;
	max-width: 400px;
	text-align: center;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	animation: ecw-svg-overlay-fadein 0.3s ease;
}

@keyframes ecw-svg-overlay-fadein {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.ecw-svg-viewer-overlay-icon {
	color: #0073aa;
	margin-bottom: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.ecw-svg-viewer-overlay-icon svg {
	width: 48px;
	height: 48px;
}

.ecw-svg-viewer-overlay-content h3 {
	margin: 0 0 12px 0;
	font-size: 20px;
	font-weight: 600;
	color: #333333;
}

.ecw-svg-viewer-overlay-content p {
	margin: 0;
	font-size: 14px;
	color: #666666;
	line-height: 1.5;
}

/* Mobile Modal */
.ecw-svg-mobile-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.95);
	z-index: 9999;
	display: flex;
	flex-direction: column;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ecw-svg-mobile-modal.ecw-mobile-modal-active {
	opacity: 1;
	visibility: visible;
}

.ecw-svg-mobile-modal-header {
	position: relative;
	padding: 15px;
	z-index: 10000;
	flex-shrink: 0;
}

.ecw-svg-mobile-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 44px;
	height: 44px;
	background-color: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #333333;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	transition: all 0.2s ease;
	z-index: 10001;
}

.ecw-svg-mobile-modal-close:hover,
.ecw-svg-mobile-modal-close:active {
	background-color: #ffffff;
	transform: scale(1.1);
}

.ecw-svg-mobile-modal-close svg {
	width: 24px;
	height: 24px;
}

.ecw-svg-mobile-modal-content {
	flex: 1;
	width: 100%;
	height: 100%;
	overflow: hidden;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ecw-svg-mobile-viewer-content {
	width: 100%;
	height: 100%;
	overflow: hidden;
	position: relative;
	touch-action: none;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
}

.ecw-svg-mobile-viewer-content svg {
	width: 100%;
	height: 100%;
	display: block;
}

@media (min-width: 769px) {
	.ecw-svg-mobile-modal {
		display: none !important;
	}
}

/* Zoom Controls */
.ecw-svg-zoom-controls {
	position: absolute;
	top: 15px;
	right: 15px;
	z-index: 10;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ecw-svg-zoom-controls button {
	width: 40px;
	height: 40px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background-color: #ffffff;
	color: #333333;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	padding: 0;
}

.ecw-svg-zoom-controls button:hover {
	background-color: #f0f0f0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.ecw-svg-zoom-controls button:active {
	transform: scale(0.95);
}

.ecw-svg-zoom-controls button svg {
	width: 20px;
	height: 20px;
}

/* Reset Button */
.ecw-svg-reset-button {
	position: absolute;
	bottom: 15px;
	right: 15px;
	z-index: 10;
	padding: 8px 16px;
	border: none;
	border-radius: 4px;
	background-color: #0073aa;
	color: #ffffff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ecw-svg-reset-button:hover {
	background-color: #005a87;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.ecw-svg-reset-button:active {
	transform: scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
	.ecw-slide-content {
		padding: 20px;
	}
	
	.ecw-slide-image {
		height: 250px;
	}
	
	.ecw-slide-title {
		font-size: 20px;
	}
	
	.ecw-slide-description {
		font-size: 14px;
	}
	
	.ecw-slider-arrow {
		width: 40px;
		height: 40px;
	}
	
	.ecw-slider-arrow.swiper-button-prev {
		left: 10px;
	}
	
	.ecw-slider-arrow.swiper-button-next {
		right: 10px;
	}
}

/* ========================================
   TABBED SVG VIEWER WIDGET
   ======================================== */

.ecw-tabbed-svg-wrapper {
	display: flex;
	width: 100%;
	background-color: #e8ebe8;
	border-radius: 8px;
	overflow: hidden;
	align-items: stretch;
}

/* Wrapper Layout - Top */
.ecw-tabbed-svg-wrapper--top {
	flex-direction: column;
}

/* Wrapper Layout - Left */
.ecw-tabbed-svg-wrapper--left {
	flex-direction: row;
}

/* Tabs Container */
.ecw-tabbed-svg-tabs {
	display: flex;
	flex-wrap: nowrap;
	background-color: #e8ebe8;
	padding: 0;
	gap: 0;
}

.ecw-tabbed-svg-tabs--top {
	flex-direction: row;
	border-bottom: 1px solid #d0d4d0;
}

.ecw-tabbed-svg-tabs--left {
	flex-direction: column;
	flex-shrink: 0;
	width: 200px;
	border-right: 1px solid #d0d4d0;
	padding: 20px 0;
}

/* Individual Tab - Clean text style */
.ecw-tabbed-svg-tab {
	display: block;
	cursor: pointer;
	border: none;
	background: transparent;
	transition: color 0.2s ease;
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	color: #5a6a5a;
	text-align: left;
	padding: 12px 24px;
	white-space: nowrap;
}

.ecw-tabbed-svg-tab:hover {
	color: #1a5fb4;
}

.ecw-tabbed-svg-tab.ecw-tab-active {
	color: #1a5fb4;
	font-weight: 500;
}

.ecw-tabbed-svg-tabs--left .ecw-tabbed-svg-tab {
	width: 100%;
	border-left: 3px solid transparent;
}

.ecw-tabbed-svg-tabs--left .ecw-tabbed-svg-tab.ecw-tab-active {
	border-left-color: #1a5fb4;
	background-color: rgba(26, 95, 180, 0.05);
}

/* Content Area */
.ecw-tabbed-svg-content {
	flex: 1 1 auto;
	min-width: 0;
	position: relative;
	/* Height is set by Elementor responsive control */
}

/* Default heights when Elementor doesn't set them */
.elementor-widget-ecw-tabbed-svg-viewer .ecw-tabbed-svg-content {
	min-height: 300px;
}

/* Viewer Container */
.ecw-tabbed-svg-viewer {
	position: relative;
	height: 100%;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

/* Title Overlay */
.ecw-tabbed-svg-title-overlay {
	position: absolute;
	top: 20px;
	left: 24px;
	z-index: 5;
	pointer-events: none;
}

.ecw-tabbed-svg-display-title {
	font-family: 'Georgia', 'Times New Roman', serif;
	font-size: 32px;
	font-weight: 400;
	color: #1a3a5c;
	margin: 0 0 4px 0;
	line-height: 1.2;
}

.ecw-tabbed-svg-display-subtitle {
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	color: #5a7a8a;
	margin: 0;
	letter-spacing: 0.02em;
}

/* SVG Container */
.ecw-tabbed-svg-svg-container {
	width: 100%;
	height: 100%;
	overflow: hidden;
	touch-action: none;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
}

.ecw-tabbed-svg-svg-container svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* Loading Indicator */
.ecw-tabbed-svg-loading {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-color: rgba(255, 255, 255, 0.9);
	z-index: 20;
}

.ecw-tabbed-svg-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid #e0e0e0;
	border-top-color: #0073aa;
	border-radius: 50%;
	animation: ecw-tabbed-spin 0.8s linear infinite;
	margin-bottom: 12px;
}

@keyframes ecw-tabbed-spin {
	to { transform: rotate(360deg); }
}

/* Error Message */
.ecw-tabbed-svg-error {
	padding: 40px 20px;
	text-align: center;
	color: #999;
	font-size: 14px;
}

/* Zoom Controls */
.ecw-tabbed-svg-zoom-controls {
	position: absolute;
	top: 15px;
	right: 15px;
	z-index: 10;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ecw-tabbed-svg-zoom-controls button {
	width: 40px;
	height: 40px;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	padding: 0;
}

.ecw-tabbed-svg-zoom-controls button:hover {
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.ecw-tabbed-svg-zoom-controls button:active {
	transform: scale(0.95);
}

.ecw-tabbed-svg-zoom-controls button svg {
	width: 20px;
	height: 20px;
}

/* Reset Button */
.ecw-tabbed-svg-reset-button {
	position: absolute;
	bottom: 15px;
	right: 15px;
	z-index: 10;
	padding: 8px 16px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ecw-tabbed-svg-reset-button:hover {
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.ecw-tabbed-svg-reset-button:active {
	transform: scale(0.95);
}

/* Responsive - Tabbed SVG */
@media (max-width: 768px) {
	.ecw-tabbed-svg-wrapper--left {
		flex-direction: column;
	}
	
	.ecw-tabbed-svg-tabs--left {
		flex-direction: row;
		width: 100% !important;
		overflow-x: auto;
		flex-wrap: nowrap;
	}
	
	.ecw-tabbed-svg-tabs--left .ecw-tabbed-svg-tab {
		width: auto;
		flex-shrink: 0;
	}
	
	.ecw-tabbed-svg-zoom-controls {
		top: 10px;
		right: 10px;
	}
	
	.ecw-tabbed-svg-zoom-controls button {
		width: 36px;
		height: 36px;
	}
	
	.ecw-tabbed-svg-reset-button {
		bottom: 10px;
		right: 10px;
		padding: 6px 12px;
		font-size: 13px;
	}
}

