/* Image Video Slider - Frontend Styles (Dark Mode) */

/* Sab kuch is scope container ke andar hi rahega, page ke baaki hisson ko
   koi effect nahi karega. */
.ivs-plugin-scope {
	all: initial;
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.ivs-plugin-scope *,
.ivs-plugin-scope *::before,
.ivs-plugin-scope *::after {
	box-sizing: border-box;
}

.ivs-outer {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	max-width: 1280px;
	margin: 30px auto;
	padding: 0 10px;
	box-sizing: border-box;
	overflow: hidden;
}

.ivs-wrapper {
	--ivs-bg: #444444;
	--ivs-theme: #f48f00;
	--ivs-text: #ffffff;

	flex: 1 1 0%;
	min-width: 0;
	max-width: 100%;
	padding: 20px;
	background: var(--ivs-bg);
	border-radius: 10px;
	box-sizing: border-box;
	overflow: hidden;
}

.ivs-wrapper * {
	box-sizing: border-box;
}

.ivs-track-container {
	position: relative;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.ivs-track {
	display: flex;
	width: 100%;
	max-width: 100%;
	transition: transform 0.4s ease;
	touch-action: pan-y;
	cursor: grab;
}

.ivs-track:active {
	cursor: grabbing;
}

/* Desktop: 3 slides visible (default/fallback via media query) */
.ivs-slide {
	flex: 0 0 33.3333%;
	max-width: 33.3333%;
	padding: 10px;
}

.ivs-slide-inner {
	background: #111111;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: 20px;
	height: 100%;
	border: 1px solid #555;
}

.ivs-image-box {
	width: 100%;
	max-width: 100%;
	height: auto;
	overflow: hidden;
	background: #111111;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ivs-image-box img {
	width: 100%;
	height: auto;
	max-width: 100%;
	object-fit: contain;
	display: block;
	pointer-events: none;
	user-select: none;
}

.ivs-step-label {
	display: block;
	margin: 14px 0 0;
	color: var(--ivs-theme, #f48f00);
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ivs-feature-title {
	margin: 12px 0 0;
	color: #ffffff;
	font-size: 14px;
	font-weight: 500;
	text-align: center;
	line-height: 1.35;
}

.ivs-watch-btn {
	display: block;
	width: 100%;
	margin: 12px auto 0;
	padding: 10px 16px;
	background: #444444;
	color: #ffffff;
	border: none;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.25s ease, transform 0.15s ease;
}

.ivs-watch-btn:hover {
	background: var(--ivs-theme);
}

.ivs-watch-btn:active {
	transform: scale(0.97);
}

/* Arrows - ab slider ke bahar (outside), overlap nahi karte */
.ivs-arrow {
	position: relative;
	flex: 0 0 auto;
	background: #2f2f2f;
	color: var(--ivs-theme, #f48f00);
	border: 2px solid var(--ivs-theme, #f48f00);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 5;
	transition: background 0.2s ease, color 0.2s ease;
}

.ivs-arrow:hover {
	background: var(--ivs-theme, #f48f00);
	color: #fff;
}

.ivs-arrow[disabled] {
	opacity: 0.3;
	cursor: not-allowed;
}

/* Dots navigation */
.ivs-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
}

.ivs-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #777777;
	border: 1px solid #888;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s ease, transform 0.2s ease;
}

.ivs-dot.active {
	background: var(--ivs-theme);
	border-color: var(--ivs-theme);
	transform: scale(1.2);
}

.ivs-no-slides {
	color: #999;
	text-align: center;
	padding: 30px;
}

/* ===== JS-driven layout (container ki actual width ke hisaab se) =====
   Ye classes JS ke through outer element par lagti hain aur viewport-only
   media queries se zyada reliable hain, kyunki ye slider ke apne container
   ki width dekhti hain, na ki poore browser window ki. */
.ivs-outer.ivs-layout-3 .ivs-slide {
	flex: 0 0 33.3333%;
	max-width: 33.3333%;
}

.ivs-outer.ivs-layout-2 .ivs-slide {
	flex: 0 0 50%;
	max-width: 50%;
}

.ivs-outer.ivs-layout-1 .ivs-slide {
	flex: 0 0 100%;
	max-width: 100%;
}

/* Tablet: 2 slides visible (fallback jab tak JS load na ho) */
@media (max-width: 1024px) {
	.ivs-slide {
		flex: 0 0 50%;
		max-width: 50%;
	}
}

/* Mobile: 1 slide visible (fallback jab tak JS load na ho) */
@media (max-width: 640px) {
	.ivs-slide {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.ivs-outer {
		gap: 6px;
		padding: 0 4px;
	}

	.ivs-arrow {
		width: 34px;
		height: 34px;
		flex-shrink: 0;
	}

	.ivs-wrapper {
		padding: 14px;
	}
}

/* Very small screens: arrows chhupa kar poori width slide ko dein (swipe/dots se navigation) */
@media (max-width: 400px) {
	.ivs-arrow {
		display: none !important;
	}

	.ivs-outer {
		padding: 0;
	}

	.ivs-wrapper {
		padding: 10px;
	}
}

/* ===== Popup Modal for YouTube video ===== */
.ivs-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.ivs-modal-box {
	position: relative;
	width: 100%;
	max-width: 900px;
	background: #444444;
	border-radius: 10px;
	padding: 16px;
	border: 1px solid #f48f00;
	box-sizing: border-box;
}

.ivs-modal-lang-switch {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: 12px;
}

.ivs-lang-btn {
	background: transparent;
	border: 1.5px solid var(--ivs-theme, #f48f00);
	color: #fff;
	padding: 6px 18px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.ivs-lang-btn:hover {
	background: rgba(244, 143, 0, 0.2);
}

.ivs-lang-btn.active {
	background: var(--ivs-theme, #f48f00);
	color: #fff;
	border-color: var(--ivs-theme, #f48f00);
}

.ivs-modal-video-wrap {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 */
	background: #000;
	border-radius: 6px;
	overflow: hidden;
}

.ivs-modal-iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ivs-modal-close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--ivs-theme, #f48f00);
	color: #fff;
	border: 2px solid #444;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.ivs-modal-close:hover {
	background: #ff9f1a;
}

body.ivs-modal-open {
	overflow: hidden;
}
