/**
 * JT Hero Banner Slider widget styles.
 *
 * This is the AUTHORITATIVE version of this widget's CSS, extracted
 * from the widget's own inline <style> block (scoped by the stable
 * .jt-hero-banner-wrapper class instead of the per-instance element
 * ID) - NOT from the shared jt-widgets.css "JT Hero Banner Slider"
 * section, which was a stale duplicate silently overridden by the
 * inline block's higher ID specificity (different padding, missing
 * border-radius/box-shadow/background-color, single-level var()
 * fallback instead of the two-level fallback actually needed by the
 * per-slide position controls). That old section has been dropped.
 *
 * Two genuinely per-instance/conditional rules stay inline in
 * render() rather than living here: the .jt-hbs-tagline/-heading/
 * -subtext text-shadow override (only emitted when the "Enable Text
 * Shadow" toggle is off - the text-shadow defaults below are what
 * apply when it's on) and the hover-zoom rule (only emitted when the
 * "Hover Zoom" toggle is on).
 */

.jt-hero-banner-wrapper { 
	position: relative; 
	width: 100%; 
	padding: 0; 
}
.jt-hero-banner-wrapper .jt-hbs-container {
	position: relative;
	width: 100%;
	border-radius: var(--mj-hbs-radius, 24px);
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
	height: var(--mj-hbs-height, 450px);
	transform: translateZ(0); /* Hardware accel for smooth rounded corners overflow */
}

/* Track & Slides using pure CSS Scroll Snapping */
.jt-hero-banner-wrapper .jt-hbs-track {
	display: flex;
	width: 100%;
	height: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none; /* Firefox */
	-webkit-overflow-scrolling: touch;
}
.jt-hero-banner-wrapper .jt-hbs-track::-webkit-scrollbar {
	display: none; /* Chrome/Safari */
}
.jt-hero-banner-wrapper .jt-hbs-slide {
	position: relative;
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	scroll-snap-align: start;
	overflow: hidden;
}

/* Clickable Overlay Link */
.jt-hero-banner-wrapper .jt-hbs-link-overlay {
	position: absolute;
	inset: 0;
	z-index: 10;
}

/* Background Image & Zoom Hover Effect */
.jt-hero-banner-wrapper .jt-hbs-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	background-color: #f1f5f9;
}
.jt-hero-banner-wrapper .jt-hbs-bg picture,
.jt-hero-banner-wrapper .jt-hbs-bg picture img,
.jt-hero-banner-wrapper .jt-hbs-bg > img {
	width: 100%;
	height: 100%;
	object-fit: var(--mj-hbs-img-fit, cover);
	object-position: var(--mj-hbs-img-pos, center center);
	display: block;
	transition: transform 3s ease; /* Slow, premium zoom effect */
}

/* Dark to Transparent Gradient Overlay */
.jt-hero-banner-wrapper .jt-hbs-gradient {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(to top, rgba(15, 23, 42, var(--mj-hbs-overlay, 0.75)) 0%, transparent 60%);
	pointer-events: none;
}

/* Bottom Left Content */
.jt-hero-banner-wrapper .jt-hbs-content {
	position: absolute;
	inset: 0;
	z-index: 11;
	width: 100%;
	padding: 40px 60px 50px 60px; /* Safe padding left and right to prevent text edge hugging */
	display: flex;
	flex-direction: column;
	justify-content: var(--jt-hbs-content-justify, var(--jt-hbs-justify-content, flex-end));
	align-items: var(--jt-hbs-content-align, var(--jt-hbs-align-items, flex-start));
	pointer-events: none; /* Let clicks pass to the overlay link */
	box-sizing: border-box;
}
.jt-hero-banner-wrapper .jt-hbs-content-inner {
	display: flex;
	flex-direction: column;
	align-items: inherit;
	width: 100%;
	max-width: var(--mj-hbs-content-width, 550px);
}
.jt-hero-banner-wrapper .jt-hbs-tagline {
	display: block;
	white-space: normal;
	overflow-wrap: break-word;
	word-break: normal;
	text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Default; overridden to none via inline !important when "Enable Text Shadow" is off */
}
.jt-hero-banner-wrapper .jt-hbs-heading {
	margin: 0 0 10px 0;
	display: block;
	white-space: normal;
	overflow-wrap: break-word;
	word-break: normal;
	text-shadow: 0 2px 10px rgba(0,0,0,0.2); /* Default; overridden to none via inline !important when "Enable Text Shadow" is off */
}
.jt-hero-banner-wrapper .jt-hbs-subtext {
	margin-bottom: 5px;
	display: block;
	white-space: normal;
	overflow-wrap: break-word;
	word-break: normal;
	text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Default; overridden to none via inline !important when "Enable Text Shadow" is off */
}

/* Button */
.jt-hero-banner-wrapper .jt-hbs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 24px;
	margin-top: 24px;
	text-decoration: none;
	transition: all 0.3s ease;
	pointer-events: auto; /* Clickable above overlay */
	height: auto; /* Prevents line-height from blowing up button height */
}
.jt-hero-banner-wrapper .jt-hbs-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.jt-hero-banner-wrapper .jt-hbs-btn i {
	font-size: 13px;
	transition: transform 0.3s ease;
}
.jt-hero-banner-wrapper .jt-hbs-btn:hover i {
	transform: translateX(4px);
}

/* Next Arrow (Right Center) */
.jt-hero-banner-wrapper .jt-hbs-arrow {
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border: none;
	color: #0f172a;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 20;
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
	transition: all 0.3s ease;
}
.jt-hero-banner-wrapper .jt-hbs-arrow:hover {
	background: #ffffff;
	color: var(--primary-color, #FA3434);
	transform: translateY(-50%) scale(1.1);
}

/* Dots Navigation (Bottom Center) */
.jt-hero-banner-wrapper .jt-hbs-dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 20;
}
.jt-hero-banner-wrapper .jt-hbs-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.4);
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
}
.jt-hero-banner-wrapper .jt-hbs-dot.active {
	background: #ffffff;
	width: 24px;
}

/* Responsive - Tablet & Mobile */
@media (max-width: 1024px) {
	.jt-hero-banner-wrapper .jt-hbs-content {
		padding: 30px;
	}
}
@media (max-width: 768px) {
	.jt-hero-banner-wrapper .jt-hbs-container {
		border-radius: 16px;
		height: var(--mj-hbs-height, 350px) !important;
	}
	.jt-hero-banner-wrapper .jt-hbs-bg picture img,
	.jt-hero-banner-wrapper .jt-hbs-bg > img {
		object-fit: cover !important;
		object-position: center center !important;
		height: 100% !important;
		width: 100% !important;
	}
	.jt-hero-banner-wrapper .jt-hbs-content {
		padding: 15px 15px 30px 15px; /* Mobile friendly padding fallback */
	}
	.jt-hero-banner-wrapper .jt-hbs-arrow {
		display: none; /* Hide arrows on mobile for cleaner UI, use swipe */
	}
	.jt-hero-banner-wrapper .jt-hbs-dots {
		bottom: 10px;
	}
	.jt-hero-banner-wrapper .jt-hbs-content-inner {
		gap: 2px;
	}
	.jt-hero-banner-wrapper .jt-hbs-btn {
		padding: 8px 18px;
		font-size: 13px;
		margin-top: 8px;
	}
}

/* --- Trust Info Bar (additive, opt-in via "Show Info Bar" toggle) --- */
.jt-hero-banner-wrapper .jt-hbs-info-bar {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	background: #ffffff;
	border-radius: 20px;
	padding: 22px 36px;
	margin: -30px 24px 0;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}
.jt-hero-banner-wrapper .jt-hbs-info-item {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1 1 0;
	min-width: 160px;
}
.jt-hero-banner-wrapper .jt-hbs-info-item i {
	font-size: 26px;
	color: #FA3434;
	flex-shrink: 0;
}
.jt-hero-banner-wrapper .jt-hbs-info-item svg {
	width: 26px !important;
	height: 26px !important;
	min-width: 26px;
	max-width: 26px;
	fill: #FA3434;
	flex-shrink: 0;
	display: block;
}
.jt-hero-banner-wrapper .jt-hbs-info-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.jt-hero-banner-wrapper .jt-hbs-info-title {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	white-space: nowrap;
}
.jt-hero-banner-wrapper .jt-hbs-info-subtitle {
	font-size: 12.5px;
	color: #64748b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
@media (max-width: 1200px) {
	.jt-hero-banner-wrapper .jt-hbs-info-bar {
		margin: -24px 16px 0;
		padding: 18px 24px;
	}
}
@media (max-width: 768px) {
	.jt-hero-banner-wrapper .jt-hbs-info-bar {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 18px 14px;
		border-radius: 16px;
		margin: -20px 12px 0;
		padding: 20px 16px;
	}
	.jt-hero-banner-wrapper .jt-hbs-info-item {
		flex: none;
		min-width: 0;
		gap: 10px;
	}
	.jt-hero-banner-wrapper .jt-hbs-info-item i {
		font-size: 20px;
	}
	.jt-hero-banner-wrapper .jt-hbs-info-item svg {
		width: 20px !important;
		height: 20px !important;
		min-width: 20px;
		max-width: 20px;
	}
	.jt-hero-banner-wrapper .jt-hbs-info-title {
		font-size: 12.5px;
		white-space: normal;
		line-height: 1.3;
	}
	.jt-hero-banner-wrapper .jt-hbs-info-subtitle {
		font-size: 10.5px;
		white-space: normal;
		line-height: 1.3;
	}
}
@media (max-width: 400px) {
	.jt-hero-banner-wrapper .jt-hbs-info-bar {
		grid-template-columns: 1fr;
	}
}
