/* ==========================================================
 * Usama Plugin — Slider U5 (Split Screen)
 * ========================================================== */

.usama-u5 {
	--u5-img-w: 55%;
	--u5-h: 620px;
	--u5-accent: #e8b04b;
	--u5-speed: 900ms;
	position: relative;
	display: flex;
	width: 100%;
	height: var(--u5-h);
	overflow: hidden;
	background: #111418;
	color: #fff;
	outline: none;
}

.usama-u5-img-right .usama-u5 {
	flex-direction: row-reverse;
}

/* ---------- Image side ---------- */
.usama-u5__media {
	position: relative;
	flex: 0 0 var(--u5-img-w);
	overflow: hidden;
	background: #22262c;
}

.usama-u5__img {
	position: absolute;
	inset: 0;
	opacity: 0;
	z-index: 0;
}

.usama-u5__img img,
.usama-u5__next-item img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	border-radius: 0 !important;
}

/* Fade + zoom */
.usama-u5__img {
	transition: opacity var(--u5-speed) ease;
}
.usama-u5__img img {
	transform: scale(1.08);
	transition: transform calc(var(--u5-speed) * 4) ease;
}
.usama-u5__img.is-active {
	opacity: 1;
	z-index: 2;
}
.usama-u5__img.is-active img {
	transform: scale(1);
}

/* Wipe: nayi image parda ki tarah khulti hai, purani neeche rehti hai */
.usama-u5-fx-wipe .usama-u5__img {
	opacity: 1;
	clip-path: inset(0 0 0 100%);
	transition: clip-path var(--u5-speed) cubic-bezier(.77, 0, .18, 1);
}
.usama-u5-fx-wipe .usama-u5__img.is-prev {
	clip-path: inset(0 0 0 0);
	z-index: 1;
	transition: none;
}
.usama-u5-fx-wipe .usama-u5__img.is-active {
	clip-path: inset(0 0 0 0);
	z-index: 2;
}
.usama-u5-fx-wipe .usama-u5__img.is-back {
	clip-path: inset(0 100% 0 0);
}
.usama-u5-fx-wipe .usama-u5__img.is-back.is-active {
	clip-path: inset(0 0 0 0);
}
.usama-u5-fx-wipe .usama-u5__img.is-prev {
	clip-path: inset(0 0 0 0); /* purani image neeche poori dikhti rahe */
}

/* ---------- Text panel ---------- */
.usama-u5__panel {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	padding: 64px 60px 44px;
	box-sizing: border-box;
	background: #111418;
}

.usama-u5__counter {
	display: flex;
	align-items: baseline;
	gap: 8px;
	line-height: 1;
}

.usama-u5__current {
	font-family: "Bebas Neue", Oswald, Impact, sans-serif;
	font-size: 46px;
	color: #fff;
}

.usama-u5__total {
	font-family: "Bebas Neue", Oswald, Impact, sans-serif;
	font-size: 22px;
	letter-spacing: 2px;
	color: var(--u5-accent);
}

.usama-u5__texts {
	display: grid;
	margin: auto 0;
	padding: 24px 0;
}

.usama-u5__text {
	grid-area: 1 / 1;
	align-self: center;
	visibility: hidden;
	pointer-events: none;
}

.usama-u5__text.is-active {
	visibility: visible;
	pointer-events: auto;
}

.usama-u5__text > * {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .4s ease, transform .4s ease;
}

.usama-u5__text.is-active > * {
	opacity: 1;
	transform: none;
	transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
}

.usama-u5__text.is-active > :nth-child(1) { transition-delay: .2s; }
.usama-u5__text.is-active > :nth-child(2) { transition-delay: .3s; }
.usama-u5__text.is-active > :nth-child(3) { transition-delay: .4s; }
.usama-u5__text.is-active > :nth-child(4) { transition-delay: .5s; }

.usama-u5__tag {
	margin-bottom: 14px;
	color: #9aa3ad;
	font-family: Poppins, sans-serif;
	font-size: 13px;
	letter-spacing: 3px;
	text-transform: uppercase;
}

.usama-u5__title {
	margin: 0 0 18px;
	color: #fff;
	font-family: Poppins, sans-serif;
	font-size: 46px;
	font-weight: 700;
	line-height: 1.1;
	word-break: normal;
	overflow-wrap: break-word;
}

.usama-u5__desc {
	max-width: 420px;
	margin: 0 0 30px;
	color: #aab2bb;
	font-family: Poppins, sans-serif;
	font-size: 15px;
	line-height: 1.7;
}

.usama-u5__btn {
	display: inline-block;
	padding: 14px 30px;
	border: 1px solid transparent;
	border-radius: 40px;
	background: var(--u5-accent);
	color: #111;
	font-family: Poppins, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease, opacity .7s ease, transform .7s ease;
}

a.usama-u5__btn:hover {
	background: #fff;
	color: #111;
}

/* ---------- Bottom: arrows, progress, next ---------- */
.usama-u5__bottom {
	display: flex;
	align-items: center;
	gap: 14px;
}

.usama-u5__arrow {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid #3a4048;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease, opacity .25s ease;
}

.usama-u5__arrow:hover {
	background: #fff;
	border-color: #fff;
	color: #111;
}

.usama-u5__arrow[disabled] {
	opacity: .35;
	cursor: default;
}

.usama-u5__progress,
.usama-u5__spacer {
	position: relative;
	flex: 1 1 auto;
	height: 2px;
	margin: 0 6px;
}

.usama-u5__progress {
	overflow: hidden;
	background: #2b3138;
}

.usama-u5__progress i {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 0;
	background: var(--u5-accent);
	transition: width var(--u5-speed) ease;
}

.usama-u5__next {
	position: relative;
	flex: 0 0 auto;
	width: 130px;
	height: 84px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	overflow: hidden;
	background: #22262c;
	cursor: pointer;
	font: inherit;
}

.usama-u5__next-item {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .5s ease;
}

.usama-u5__next-item.is-active {
	opacity: 1;
}

.usama-u5__next-item img {
	transition: transform .5s ease;
}

.usama-u5__next:hover .usama-u5__next-item img {
	transform: scale(1.08);
}

.usama-u5__next-label {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 18px 8px 7px;
	background: linear-gradient(transparent, rgba(0, 0, 0, .7));
	color: #fff;
	font-family: Poppins, sans-serif;
	font-size: 11px;
	line-height: 1.2;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.usama-u5.is-static .usama-u5__arrow,
.usama-u5.is-static .usama-u5__next {
	display: none;
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.usama-u5__panel { padding: 44px 36px 34px; }
	.usama-u5__title { font-size: 36px; }
}

/* ---------- Mobile: image upar, text neeche ---------- */
@media (max-width: 767px) {
	.usama-u5,
	.usama-u5-img-right .usama-u5 {
		flex-direction: column;
		height: auto;
	}
	.usama-u5__media {
		flex: 0 0 auto;
		height: var(--u5-h);
	}
	.usama-u5__panel {
		padding: 28px 20px 24px;
	}
	.usama-u5__counter {
		position: absolute;
		top: calc(-1 * var(--u5-h) + 16px);
		left: 20px;
		z-index: 3;
		text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
	}
	.usama-u5__texts { padding: 6px 0 22px; }
	.usama-u5__title { font-size: 30px; }
	.usama-u5__desc { margin-bottom: 22px; }
	.usama-u5__arrow { width: 42px; height: 42px; }
	.usama-u5__next { width: 96px; height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
	.usama-u5__img,
	.usama-u5__img img,
	.usama-u5__text > *,
	.usama-u5__progress i {
		transition: none !important;
	}
}
