/* Morning India Slider */
.mis {
	--mis-accent: var(--mi-accent, #e3a21a);
	--mis-h: 82vh;
	--mis-mh: 560px;
	--mis-speed: 1100ms;
	--mis-ease: cubic-bezier(.77, 0, .18, 1);
	position: relative;
	height: var(--mis-h);
	min-height: 460px;
	max-height: 900px;
	overflow: hidden;
	background: #0f2418;
	color: #fff;
	isolation: isolate;
	user-select: none;
}
.mis-track { position: absolute; inset: 0; }
.mis-slide { position: absolute; inset: 0; visibility: hidden; z-index: 1; overflow: hidden; }
.mis-slide.is-active { visibility: visible; z-index: 3; }
.mis-slide.is-leaving { visibility: visible; z-index: 2; }

/* Background + Ken Burns motion */
.mis-bg-wrap { position: absolute; inset: 0; overflow: hidden; }
.mis-bg { position: absolute; inset: -6%; background-size: cover; background-position: 78% center; will-change: transform; }
.mis-slide.is-active[data-motion="zoom-in"] .mis-bg { animation: mis-kb-in 10s linear forwards; }
.mis-slide.is-active[data-motion="zoom-out"] .mis-bg { animation: mis-kb-out 10s linear forwards; }
.mis-slide.is-active[data-motion="pan-left"] .mis-bg { animation: mis-kb-pl 10s linear forwards; }
.mis-slide.is-active[data-motion="pan-right"] .mis-bg { animation: mis-kb-pr 10s linear forwards; }
.mis-slide.is-active[data-motion="pan-up"] .mis-bg { animation: mis-kb-pu 10s linear forwards; }
.mis-slide.is-leaving .mis-bg { animation-play-state: paused; }
@keyframes mis-kb-in { from { transform: scale(1); } to { transform: scale(1.15); } }
@keyframes mis-kb-out { from { transform: scale(1.18); } to { transform: scale(1); } }
@keyframes mis-kb-pl { from { transform: scale(1.1) translateX(4%); } to { transform: scale(1.1) translateX(-4%); } }
@keyframes mis-kb-pr { from { transform: scale(1.1) translateX(-4%); } to { transform: scale(1.1) translateX(4%); } }
@keyframes mis-kb-pu { from { transform: scale(1.1) translateY(4%); } to { transform: scale(1.1) translateY(-4%); } }

.mis-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 22, 13, calc(var(--mis-ov, .5) + .25)) 0%, rgba(8, 22, 13, var(--mis-ov, .5)) 45%, rgba(8, 22, 13, calc(var(--mis-ov, .5) * .3)) 100%); }
.mis-align-center .mis-overlay { background: rgba(8, 22, 13, var(--mis-ov, .5)); }
.mis-align-right .mis-overlay { background: linear-gradient(270deg, rgba(8, 22, 13, calc(var(--mis-ov, .5) + .25)) 0%, rgba(8, 22, 13, var(--mis-ov, .5)) 45%, rgba(8, 22, 13, calc(var(--mis-ov, .5) * .3)) 100%); }

/* Content */
.mis-content { position: relative; z-index: 4; height: 100%; display: flex; align-items: center; max-width: var(--mi-container, 1240px); margin: 0 auto; padding: 0 24px 60px; }
.mis-inner { max-width: 640px; transition: transform .25s ease-out; }
.mis-align-center .mis-content { justify-content: center; text-align: center; }
.mis-align-right .mis-content { justify-content: flex-end; text-align: right; }
.mis-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 18px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--mis-accent) 70%, transparent); background: color-mix(in srgb, var(--mis-accent) 18%, transparent); color: var(--mis-accent); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px; backdrop-filter: blur(4px); }
.mis-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: mis-blink 1.6s infinite; }
@keyframes mis-blink { 50% { opacity: .25; } }
.mis-title { font-family: var(--mi-font-head, Georgia, serif); font-size: clamp(2.2rem, 5.2vw, 4.2rem); line-height: 1.1; color: #fff; margin: 0 0 20px; font-weight: 700; }
.mis-text { font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.7; color: rgba(255,255,255,.9); margin: 0 0 32px; }
.mis-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.mis-align-center .mis-btns { justify-content: center; }
.mis-align-right .mis-btns { justify-content: flex-end; }
.mis-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 32px; border-radius: 999px; background: var(--mis-accent); color: #1b1b1b; font-weight: 600; text-decoration: none; border: 2px solid var(--mis-accent); transition: transform .35s cubic-bezier(.22,.8,.26,1), box-shadow .35s, background .3s, color .3s; }
.mis-btn:hover { color: #1b1b1b; background: #fff; border-color: #fff; transform: translateY(-3px); box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); }
.mis-btn svg { transition: transform .3s; }
.mis-btn:hover svg { transform: translateX(4px); }
.mis-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.mis-btn-ghost:hover { background: #fff; color: #1b1b1b; }

/* Text animations (staggered via --i) */
.mis-a { opacity: 0; }
.mis-slide.is-active .mis-a { animation: mis-fade-up .95s cubic-bezier(.22,.8,.26,1) forwards; animation-delay: calc(var(--mis-speed) * .45 + var(--i, 0) * 140ms); }
.mis-slide.is-active[data-anim="slide-right"] .mis-a { animation-name: mis-slide-r; }
.mis-slide.is-active[data-anim="slide-left"] .mis-a { animation-name: mis-slide-l; }
.mis-slide.is-active[data-anim="zoom"] .mis-a { animation-name: mis-zoom; }
.mis-slide.is-active[data-anim="flip"] .mis-a { animation-name: mis-flip; transform-origin: 50% 100%; }
.mis-slide[data-anim="mask"] .mis-title { overflow: hidden; }
.mis-slide[data-anim="mask"] .mis-title span { display: inline-block; }
.mis-slide.is-active[data-anim="mask"] .mis-a { animation-name: mis-fade; }
.mis-slide.is-active[data-anim="mask"] .mis-title span { animation: mis-mask 1s cubic-bezier(.77,0,.18,1) both; animation-delay: calc(var(--mis-speed) * .45 + 140ms); }
.mis-inner { perspective: 800px; }
@keyframes mis-fade { to { opacity: 1; } }
@keyframes mis-fade-up { from { opacity: 0; transform: translateY(46px); } to { opacity: 1; transform: none; } }
@keyframes mis-slide-r { from { opacity: 0; transform: translateX(-80px); } to { opacity: 1; transform: none; } }
@keyframes mis-slide-l { from { opacity: 0; transform: translateX(80px); } to { opacity: 1; transform: none; } }
@keyframes mis-zoom { from { opacity: 0; transform: scale(.8); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes mis-flip { from { opacity: 0; transform: rotateX(-80deg); } to { opacity: 1; transform: none; } }
@keyframes mis-mask { from { transform: translateY(110%); } to { transform: none; } }

/* ---------- Transitions ---------- */
.mis-slide.mis-in, .mis-slide.mis-out { animation-duration: var(--mis-speed); animation-timing-function: var(--mis-ease); animation-fill-mode: both; }
/* fade */
.mis-t-fade .mis-in { animation-name: mis-t-fade-in; }
@keyframes mis-t-fade-in { from { opacity: 0; } to { opacity: 1; } }
/* slide */
.mis-t-slide .mis-in { animation-name: mis-t-slide-in; }
.mis-t-slide .mis-out { animation-name: mis-t-slide-out; }
@keyframes mis-t-slide-in { from { transform: translateX(calc(100% * var(--dir, 1))); } to { transform: none; } }
@keyframes mis-t-slide-out { from { transform: none; } to { transform: translateX(calc(-100% * var(--dir, 1))); } }
/* parallax slide */
.mis-t-parallax .mis-in { animation-name: mis-t-slide-in; }
.mis-t-parallax .mis-out { animation-name: mis-t-par-out; }
.mis-t-parallax .mis-in .mis-bg-wrap { animation: mis-t-par-bg var(--mis-speed) var(--mis-ease) both; }
@keyframes mis-t-par-out { from { transform: none; filter: brightness(1); } to { transform: translateX(calc(-35% * var(--dir, 1))); filter: brightness(.4); } }
@keyframes mis-t-par-bg { from { transform: translateX(calc(-60% * var(--dir, 1))); } to { transform: none; } }
/* zoom */
.mis-t-zoom .mis-in { animation-name: mis-t-zoom-in; }
.mis-t-zoom .mis-out { animation-name: mis-t-zoom-out; }
@keyframes mis-t-zoom-in { from { opacity: 0; transform: scale(1.25); } to { opacity: 1; transform: none; } }
@keyframes mis-t-zoom-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(.85); } }
/* curtain */
.mis-t-curtain .mis-in { animation-name: mis-t-curtain; }
.mis-t-curtain .mis-out .mis-bg-wrap { animation: mis-t-curtain-out var(--mis-speed) var(--mis-ease) both; }
@keyframes mis-t-curtain { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
.mis-t-curtain .mis-in.mis-rev { animation-name: mis-t-curtain-r; }
@keyframes mis-t-curtain-r { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes mis-t-curtain-out { to { transform: translateX(calc(-20% * var(--dir, 1))) scale(1.05); } }
/* circle */
.mis-t-circle .mis-in { animation-name: mis-t-circle; }
@keyframes mis-t-circle { from { clip-path: circle(0% at var(--cx, 50%) var(--cy, 50%)); } to { clip-path: circle(150% at var(--cx, 50%) var(--cy, 50%)); } }

/* Floating shapes */
.mis-shapes { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.mis-shape { position: absolute; border-radius: 50%; transition: transform .3s ease-out; }
.mis-shape.s1 { width: 120px; height: 120px; right: 9%; top: 16%; border: 2px dashed color-mix(in srgb, var(--mis-accent) 60%, transparent); animation: mis-rot 22s linear infinite; }
.mis-shape.s2 { width: 18px; height: 18px; right: 22%; bottom: 26%; background: var(--mis-accent); box-shadow: 0 0 0 10px color-mix(in srgb, var(--mis-accent) 20%, transparent); animation: mis-bob 4s ease-in-out infinite; }
.mis-shape.s3 { width: 260px; height: 260px; right: -70px; bottom: -90px; background: radial-gradient(circle, color-mix(in srgb, var(--mis-accent) 35%, transparent), transparent 70%); animation: mis-breathe 7s ease-in-out infinite; }
@keyframes mis-rot { to { rotate: 360deg; } }
@keyframes mis-bob { 50% { translate: 0 -18px; } }
@keyframes mis-breathe { 50% { scale: 1.2; opacity: .6; } }

/* Arrows */
.mis-arrow { position: absolute; top: 50%; z-index: 8; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); transition: background .3s, border-color .3s, color .3s, transform .3s, opacity .3s; opacity: 0; }
.mis:hover .mis-arrow, .mis-arrow:focus-visible { opacity: 1; }
.mis-prev { left: 24px; transform: translateX(-12px); }
.mis-next { right: 24px; transform: translateX(12px); }
.mis:hover .mis-prev, .mis:hover .mis-next { transform: none; }
.mis-arrow:hover { background: var(--mis-accent); border-color: var(--mis-accent); color: #1b1b1b; }

/* Numbered indicators */
.mis-dots { position: absolute; z-index: 8; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; gap: 18px; }
.mis-dot { background: none; border: 0; padding: 4px 0; color: rgba(255,255,255,.6); cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font: 600 .82rem/1 var(--mi-font-body, system-ui); letter-spacing: .08em; transition: color .3s; }
.mis-dot i { display: block; width: 46px; height: 2px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; border-radius: 2px; }
.mis-dot i::after { content: ""; position: absolute; inset: 0; background: var(--mis-accent); transform: scaleX(0); transform-origin: left; }
.mis-dot.is-active { color: #fff; }
.mis-dot.is-active i::after { transform: scaleX(1); transition: transform var(--mis-delay, 6000ms) linear; }
.mis.is-paused .mis-dot.is-active i::after { transition: none; }
.mis-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 8; background: rgba(255,255,255,.12); }
.mis-progress span { display: block; height: 100%; width: 0; background: var(--mis-accent); }
.mis-empty { padding: 30px; text-align: center; background: #fff8e6; border: 2px dashed #e3a21a; border-radius: 12px; color: #6b5300; }

@media (max-width: 767px) {
	.mis { height: var(--mis-mh); min-height: 420px; }
	.mis-bg[style*="--mis-mobile"] { background-image: var(--mis-mobile) !important; }
	.mis-overlay, .mis-align-right .mis-overlay { background: linear-gradient(0deg, rgba(8,22,13,calc(var(--mis-ov, .5) + .3)), rgba(8,22,13,calc(var(--mis-ov, .5) * .6))); }
	.mis-content { justify-content: center !important; text-align: center !important; padding-bottom: 80px; }
	.mis-btns { justify-content: center !important; }
	.mis-arrow, .mis-shape.s1 { display: none; }
	.mis-dot i { width: 28px; }
}
@media (prefers-reduced-motion: reduce) {
	.mis *, .mis-slide { animation-duration: .01ms !important; transition-duration: .01ms !important; }
	.mis-a { opacity: 1; }
}
