/**
 * Storbox theme overrides: sticky header positioning (replaces Elementor Pro
 * sticky module), YouTube facade, misc.
 */

/* Sticky header — replicates e-sticky fixed positioning + spacer behavior */
#bb-header.elementor-sticky--active {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 100;
}

/* YouTube lite-embed facade (replaces Elementor video widget JS) */
.elementor-widget-video .elementor-video {
	position: relative;
	height: 100%;
}
.storbox-yt-facade {
	position: absolute;
	inset: 0;
	cursor: pointer;
	background: #000;
}
.storbox-yt-facade img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.storbox-yt-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 68px;
	height: 48px;
	background: #f00;
	border-radius: 12px;
	opacity: .9;
}
.storbox-yt-play::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-30%, -50%);
	border-style: solid;
	border-width: 10px 0 10px 17px;
	border-color: transparent transparent transparent #fff;
}

/* --- Value section image slider --- */
.storbox-cards-slider {
	width: 100%;
}
.storbox-slider {
	position: relative;
	max-width: 860px;
	margin: 0 auto;
}
.storbox-slider-viewport {
	overflow: hidden;
	border-radius: 12px;
}
.storbox-slider-track {
	display: flex;
	transition: transform .45s ease;
	will-change: transform;
}
.storbox-slide {
	flex: 0 0 100%;
	min-width: 0;
	text-align: center;
	padding: 0 4px;
	box-sizing: border-box;
}
.storbox-slide img {
	width: 100%;
	height: auto;
	border-radius: 10px;
	display: block;
	margin: 0 auto 14px;
	box-shadow: 0 4px 18px rgba(0,0,0,.12);
}
.storbox-slide-tag {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #3DA148;
	margin-bottom: 6px;
}
.storbox-slide h4.elementor-heading-title {
	margin: 0 0 8px;
}
.storbox-slide p {
	margin: 0 auto;
	max-width: 640px;
}
.storbox-slider-btn {
	position: absolute;
	top: 38%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: rgba(255,255,255,.92);
	color: #2e7d32;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0,0,0,.18);
	z-index: 2;
	transition: background .2s, opacity .2s;
}
.storbox-slider-btn:hover { background: #fff; }
.storbox-slider-prev { left: -8px; }
.storbox-slider-next { right: -8px; }
.storbox-slider-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}
.storbox-slider-dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #cfd8cf;
	cursor: pointer;
	transition: background .2s, transform .2s;
}
.storbox-slider-dots button.active {
	background: #3DA148;
	transform: scale(1.25);
}

/* --- Homepage video carousel --- */
.storbox-video-carousel {
	width: 100%;
	max-width: 780px;
	flex: 0 0 100%;
}
.storbox-video-carousel .storbox-slide {
	padding: 0;
}
.storbox-video-carousel .elementor-widget-video {
	max-width: 680px;
	margin: 0 auto;
}
.storbox-video-carousel .elementor-video {
	position: relative;
	aspect-ratio: 16 / 9;
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	background: #000;
}
.storbox-video-carousel .storbox-yt-facade img {
	border-radius: 12px;
}
@media (max-width: 767px) {
	.storbox-slider { max-width: 100%; }
	.storbox-slide { padding: 0 2px; }
	.storbox-slider-btn {
		width: 38px;
		height: 38px;
		font-size: 24px;
	}
	.storbox-slider-prev { left: 2px; }
	.storbox-slider-next { right: 2px; }
}

/* Hero: align headline block with top of quote form + blog pagination brand color */
.elementor-9 .elementor-element.elementor-element-b8d3fb4 {
	--justify-content: flex-start;
	justify-content: flex-start;
	--padding-top: 130px;
}
.elementor-2532 {
	--tpg-primary-color: #3DA148;
	--tpg-secondary-color: #2e7d32;
}

/* Blog page — simple post grid */
.storbox-blog { max-width: 1220px; margin: 0 auto; padding: 60px 20px 80px; }
.storbox-blog-header { text-align: center; margin-bottom: 40px; }
.storbox-blog-title { font-size: 42px; font-weight: 700; margin: 0 0 10px; }
.storbox-blog-subtitle { color: #6C6C6C; font-size: 18px; margin: 0; }
.storbox-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.storbox-blog-card { background: #F7F7F7; border-radius: 5px; overflow: hidden; display: flex; flex-direction: column; }
.storbox-blog-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e9ece9; }
.storbox-blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.storbox-blog-card:hover .storbox-blog-card-media img { transform: scale(1.04); }
.storbox-blog-card-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #dfe8df, #c9d8c9); }
.storbox-blog-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.storbox-blog-card-meta { display: flex; gap: 12px; align-items: center; font-size: 13px; color: #8a8a8a; margin-bottom: 10px; }
.storbox-blog-card-cat { color: #3DA148; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.storbox-blog-card-title { font-size: 20px; line-height: 1.35; margin: 0 0 10px; }
.storbox-blog-card-title a { color: #161E29; text-decoration: none; }
.storbox-blog-card-title a:hover { color: #3DA148; }
.storbox-blog-card-excerpt { color: #555; font-size: 15px; line-height: 1.6; margin: 0 0 16px; flex: 1; }
.storbox-blog-card-more { color: #3DA148; font-weight: 700; font-size: 14px; text-decoration: none; align-self: flex-start; }
.storbox-blog-card-more:hover { text-decoration: underline; }
.storbox-blog-empty { text-align: center; color: #6C6C6C; font-size: 18px; padding: 60px 0; }
.storbox-blog-pagination { margin-top: 50px; display: flex; justify-content: center; }
.storbox-blog-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; height: 44px; padding: 0 12px; margin: 0 3px;
	background: #fff; border: 1px solid #ddd; border-radius: 3px;
	color: #212121; text-decoration: none; font-size: 15px; transition: .2s;
}
.storbox-blog-pagination .page-numbers:hover { background: #3DA148; border-color: #3DA148; color: #fff; }
.storbox-blog-pagination .page-numbers.current { background: #3DA148; border-color: #3DA148; color: #fff; cursor: default; }
.storbox-blog-pagination .page-numbers.prev, .storbox-blog-pagination .page-numbers.next { font-weight: 700; }
@media (max-width: 991px) {
	.storbox-blog-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
	.storbox-blog-title { font-size: 34px; }
}
@media (max-width: 575px) {
	.storbox-blog-grid { grid-template-columns: 1fr; }
	.storbox-blog { padding: 40px 14px 60px; }
}

/* Green band below hero slider (replaces the 3% section gap) */
.elementor-9 .elementor-element.elementor-element-55098ef{margin-top:0 !important}
.storbox-green-gap{height:0;padding-top:3%;background:#3DA148;line-height:0;font-size:0}
