/* Diwali and Karwa Chauth band on LaxmiFin pages. */
.fest-lights {
	display: flex;
	justify-content: space-evenly;
	align-items: flex-start;
	gap: 4px;
	height: 28px;
	padding: 0 12px;
	background: #140814;
	position: relative;
	overflow: hidden;
	z-index: 6;
}

.fest-lights::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 3px;
	background: linear-gradient(90deg, #3a2412, #e8c27a, #3a2412);
}

.fest-lights span {
	position: relative;
	width: 11px;
	height: 14px;
	margin-top: 8px;
	border-radius: 50% 50% 46% 46%;
	background:
		radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.85), transparent 36%),
		currentColor;
	box-shadow: 0 0 8px currentColor, 0 0 16px currentColor;
	animation: fest-bulb 1.8s ease-in-out infinite;
	flex: 0 0 auto;
}

.fest-lights span::before {
	content: "";
	position: absolute;
	left: 4px;
	top: -8px;
	width: 1px;
	height: 8px;
	background: #8a6230;
}

.fest-lights span:nth-child(5n + 1) { color: #ffd56a; }
.fest-lights span:nth-child(5n + 2) { color: #ff6b4a; animation-delay: 0.25s; }
.fest-lights span:nth-child(5n + 3) { color: #9dffc3; animation-delay: 0.5s; }
.fest-lights span:nth-child(5n + 4) { color: #ff9ad4; animation-delay: 0.75s; }
.fest-lights span:nth-child(5n + 5) { color: #fff1b8; animation-delay: 1s; }

@keyframes fest-bulb {
	0%, 100% { opacity: 0.72; filter: brightness(0.9); }
	50% { opacity: 1; filter: brightness(1.35); }
}

.fest-banner {
	position: relative;
	overflow: hidden;
	margin: 0;
	padding: 16px 72px 14px;
	text-align: center;
	color: #fff8e8;
	background:
		radial-gradient(circle at 18% 80%, rgba(255, 168, 64, 0.22), transparent 28%),
		radial-gradient(circle at 82% 20%, rgba(255, 214, 120, 0.16), transparent 26%),
		linear-gradient(180deg, #2a1024 0%, #5c1830 55%, #8a2a22 100%);
	border-bottom: 1px solid rgba(232, 194, 122, 0.55);
	box-shadow: inset 0 0 0 1px rgba(255, 214, 140, 0.08), 0 10px 24px rgba(40, 8, 16, 0.18);
	z-index: 6;
}

.fest-banner::before,
.fest-banner::after {
	content: "";
	position: absolute;
	left: 8%;
	right: 8%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 214, 140, 0.85), transparent);
}

.fest-banner::before { top: 7px; }
.fest-banner::after { bottom: 7px; }

.fest-moon {
	position: absolute;
	right: 28px;
	top: 18px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: transparent;
	box-shadow: 11px 2px 0 0 #fff3c4;
	filter: drop-shadow(0 0 10px rgba(255, 226, 150, 0.95));
}

.fest-kicker {
	margin: 0 0 2px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-size: 11px;
	font-weight: 600;
	color: #f0d48a;
}

.fest-banner h2 {
	margin: 0;
	font-family: Fraunces, Georgia, serif;
	font-weight: 650;
	font-size: clamp(18px, 2.6vw, 30px);
	line-height: 1.15;
	letter-spacing: 0.01em;
	text-shadow: 0 2px 0 rgba(70, 16, 12, 0.35), 0 0 18px rgba(255, 196, 90, 0.35);
}

.fest-banner h2 span {
	color: #ffd56a;
	font-style: italic;
}

.fest-hindi {
	margin: 6px 0 0;
	font-size: 14px;
	letter-spacing: 0.02em;
	color: #ffe7c2;
}

.fest-diyas {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	gap: 22px;
	margin-top: 10px;
}

.fest-diya {
	position: relative;
	width: 36px;
	height: 16px;
	border-radius: 0 0 18px 18px;
	background: linear-gradient(180deg, #ffe0a0 0%, #e0a04a 42%, #8d4e16 100%);
	box-shadow: inset 0 2px 0 rgba(255, 244, 214, 0.7), 0 4px 8px rgba(60, 16, 0, 0.28), 0 0 12px rgba(255, 170, 60, 0.35);
}

.fest-diya::before {
	content: "";
	position: absolute;
	left: 6px;
	right: 6px;
	top: 3px;
	height: 4px;
	border-radius: 4px;
	background: rgba(255, 248, 220, 0.55);
}

.fest-diya i {
	position: absolute;
	left: 50%;
	bottom: 12px;
	width: 9px;
	height: 18px;
	margin-left: -4px;
	border-radius: 50% 50% 45% 45%;
	background: radial-gradient(circle at 50% 78%, #fff8dc 0%, #ffd15c 28%, #ff7a1a 62%, transparent 70%);
	transform-origin: center bottom;
	animation: fest-flame 0.55s ease-in-out infinite alternate;
	filter: drop-shadow(0 0 6px #ffb703);
}

.fest-diya:nth-child(2) i { animation-delay: 0.12s; height: 20px; }
.fest-diya:nth-child(3) i { animation-delay: 0.22s; height: 24px; }
.fest-diya:nth-child(4) i { animation-delay: 0.08s; height: 20px; }

@keyframes fest-flame {
	from { transform: scaleX(0.86) scaleY(0.94) rotate(-3deg); }
	to { transform: scaleX(1.05) scaleY(1.06) rotate(3deg); }
}

#fest-crackers {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 1040;
	pointer-events: none;
}

@media (max-width: 640px) {
	.fest-banner { padding: 14px 16px 12px; }
	.fest-moon { width: 30px; height: 30px; right: 10px; top: 12px; box-shadow: 8px 2px 0 0 #fff3c4; }
	.fest-diyas { gap: 12px; }
	.fest-diya { width: 28px; }
	.fest-lights span:nth-child(n + 13) { display: none; }
	.fest-hindi { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
	.fest-lights span,
	.fest-diya i {
		animation: none;
	}
}

/* Society sites use a different pattern from LaxmiFin. */
.fest-lights.DLXS,
.fest-banner.DLXS { --fest-ink: #14532d; }
.fest-lights.DLXS { background: #14281a; }
.fest-lights.DLXS::before { background: linear-gradient(90deg, #166534, #ff9933, #166534); }
.fest-lights.DLXS span { border-radius: 40% 40% 50% 50%; }
.fest-banner.DLXS {
	background: linear-gradient(100deg, #9a3412 0%, #c2410c 42%, #166534 100%);
}
.fest-banner.DLXS .fest-moon { left: 24px; right: auto; }

.fest-lights.KRSN { background: #082f49; }
.fest-lights.KRSN::before { background: linear-gradient(90deg, #0369a1, #facc15, #0369a1); }
.fest-lights.KRSN span { width: 10px; height: 10px; border-radius: 2px; margin-top: 10px; }
.fest-banner.KRSN {
	background: linear-gradient(160deg, #0c4a6e 0%, #1e3a8a 55%, #a16207 100%);
}
.fest-banner.KRSN .fest-moon { left: 28px; right: auto; box-shadow: -10px 3px 0 0 #fef3c7; }
.fest-banner.KRSN .fest-diya { background: linear-gradient(180deg, #fde68a, #0369a1); }

.fest-lights.DHSS { background: #3f0d12; }
.fest-lights.DHSS::before { background: linear-gradient(90deg, #fecdd3, #fff7ed, #fecdd3); }
.fest-lights.DHSS span { border-radius: 0; transform: rotate(45deg); width: 9px; height: 9px; margin-top: 11px; }
.fest-banner.DHSS {
	background: linear-gradient(180deg, #fff7ed 0%, #9f1239 38%, #4c0519 100%);
	color: #fff7ed;
}
.fest-banner.DHSS .fest-kicker { color: #ffe4e6; }
.fest-banner.DHSS .fest-moon { right: 18px; top: 28px; }

.fest-lights.AMLS { background: #1e1b4b; }
.fest-lights.AMLS::before { background: linear-gradient(90deg, #ffd600, #c4b5fd, #ffd600); }
.fest-lights.AMLS span { border-radius: 50%; width: 12px; height: 12px; }
.fest-banner.AMLS {
	background: linear-gradient(90deg, #2d2643 0%, #534585 58%, #713f12 100%);
}
.fest-banner.AMLS .fest-diya { background: linear-gradient(180deg, #fde68a, #6d28d9); }
