/* Aumaujaya Satsang Banner */

.vgsb-wrap {
	container-type: inline-size;
	clear: both;
	margin: 2.2em 0;
	max-width: 100%;
}

.vgsb {
	/* Evening lamp (default) */
	--vgsb-bg: #0f3b45;
	--vgsb-glow: rgba(242, 200, 107, 0.22);
	--vgsb-line: rgba(247, 239, 224, 0.16);
	--vgsb-ink: #f7efe0;
	--vgsb-muted: #b9d0cf;
	--vgsb-accent: #e9bf5f;
	--vgsb-btn: #f2c86b;
	--vgsb-btn-ink: #0f3b45;
	--vgsb-live: #ffd98a;

	box-sizing: border-box;
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 0 22px;
	padding: 18px 22px;
	border: 1px solid var(--vgsb-line);
	border-radius: 14px;
	background: radial-gradient(130px 100px at 46px 50%, var(--vgsb-glow), transparent 72%), var(--vgsb-bg);
	color: var(--vgsb-ink);
	line-height: 1.45;
	text-align: left;
}

.vgsb *,
.vgsb *::before,
.vgsb *::after { box-sizing: border-box; }

.vgsb--dawn {
	--vgsb-bg: #fff3e2;
	--vgsb-glow: rgba(240, 150, 60, 0.18);
	--vgsb-line: #efcf9d;
	--vgsb-ink: #4a1f0e;
	--vgsb-muted: #7a5238;
	--vgsb-accent: #b8511a;
	--vgsb-btn: #9e3b12;
	--vgsb-btn-ink: #fffaf2;
	--vgsb-live: #b8511a;
}

.vgsb--ivory {
	--vgsb-bg: #fbf8f1;
	--vgsb-glow: rgba(201, 154, 59, 0.14);
	--vgsb-line: #dccfae;
	--vgsb-ink: #2b2418;
	--vgsb-muted: #6b5f4a;
	--vgsb-accent: #7a1e1e;
	--vgsb-btn: #7a1e1e;
	--vgsb-btn-ink: #fdf7ec;
	--vgsb-live: #7a1e1e;
}

.vgsb--midnight {
	--vgsb-bg: #0b1426;
	--vgsb-glow: rgba(245, 184, 46, 0.17);
	--vgsb-line: rgba(138, 155, 181, 0.35);
	--vgsb-ink: #ffffff;
	--vgsb-muted: #a9b6ca;
	--vgsb-accent: #f5b82e;
	--vgsb-btn: #f5b82e;
	--vgsb-btn-ink: #0b1426;
	--vgsb-live: #ffc94a;
	border-radius: 18px;
	box-shadow: 0 10px 28px rgba(11, 20, 38, 0.18);
}
.vgsb--midnight .vgsb__when { border-right-style: dashed; }
.vgsb.vgsb--midnight .vgsb__btn { border-radius: 999px; }

.vgsb--font,
.vgsb--font .vgsb__day,
.vgsb--font .vgsb__time,
.vgsb--font .vgsb__title,
.vgsb--font .vgsb__telugu,
.vgsb--font .vgsb__text,
.vgsb--font .vgsb__btn,
.vgsb--font .vgsb__btn-label,
.vgsb--font .vgsb__count {
	font-family: "Hind Guntur", "Noto Sans Telugu", system-ui, -apple-system, "Segoe UI", sans-serif !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}

/* Fixed sizes: themes often shrink rem or restyle paragraphs. */
.vgsb .vgsb__title,
.vgsb .vgsb__telugu,
.vgsb .vgsb__text,
.vgsb .vgsb__day,
.vgsb .vgsb__time,
.vgsb .vgsb__count,
.vgsb .vgsb__btn { font-style: normal !important; word-spacing: normal; }

/* Time tile */
.vgsb__when {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 80px;
	padding-right: 22px;
	border-right: 1px solid var(--vgsb-line);
}

.vgsb__flame {
	display: block;
	width: 12px;
	height: 18px;
	margin-bottom: 8px;
	border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
	background: radial-gradient(circle at 50% 72%, #fff4c7 0 24%, #f6c453 46%, #e07b24 100%);
	box-shadow: 0 0 14px 4px rgba(246, 196, 83, 0.42);
	transform-origin: 50% 100%;
	animation: vgsb-flicker 2.6s ease-in-out infinite;
}

/* Portrait instead of the lamp */
.vgsb__photo {
	display: block;
	width: 56px;
	height: 56px;
	margin-bottom: 8px;
	border-radius: 50%;
	padding: 2px;
	background: var(--vgsb-accent);
	box-shadow: 0 0 18px 3px var(--vgsb-glow);
	flex-shrink: 0;
}
.vgsb .vgsb__photo img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	margin: 0;
	border-radius: 50%;
	border: 2px solid var(--vgsb-bg);
	object-fit: cover;
	object-position: 50% 30%;
	box-shadow: none;
}
.vgsb--live .vgsb__photo { box-shadow: 0 0 24px 7px rgba(246, 196, 83, 0.5); }

@keyframes vgsb-flicker {
	0%, 100% { transform: scale(1, 1) rotate(-1deg); }
	40% { transform: scale(0.93, 1.07) rotate(1.5deg); }
	70% { transform: scale(1.04, 0.97) rotate(-0.5deg); }
}

.vgsb .vgsb__day {
	font-size: 28px !important;
	font-weight: 700;
	line-height: 1;
	color: var(--vgsb-accent);
}

.vgsb .vgsb__time {
	margin-top: 5px;
	font-size: 12.5px !important;
	color: var(--vgsb-muted);
	white-space: nowrap;
}

/* Message */
.vgsb .vgsb__title,
.vgsb .vgsb__telugu,
.vgsb .vgsb__text {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
}

.vgsb .vgsb__title {
	font-size: 21px !important;
	font-weight: 700;
	line-height: 1.25 !important;
	color: var(--vgsb-ink);
}

.vgsb .vgsb__telugu {
	margin-top: 3px;
	font-size: 16.5px !important;
	font-weight: 600;
	line-height: 1.55 !important;
	color: var(--vgsb-accent);
}

.vgsb .vgsb__text {
	max-width: 60ch;
	margin-top: 6px;
	font-size: 15px !important;
	line-height: 1.55 !important;
	color: var(--vgsb-muted);
}

/* Action */
.vgsb__act {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
}

.vgsb .vgsb__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 22px;
	border: 0;
	border-radius: 10px;
	background: var(--vgsb-btn) !important;
	color: var(--vgsb-btn-ink) !important;
	font-size: 16px !important;
	font-weight: 700;
	line-height: 1.2 !important;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: none;
	transition: transform 0.15s ease, filter 0.15s ease;
}

.vgsb .vgsb__btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.vgsb .vgsb__btn:focus-visible { outline: 3px solid var(--vgsb-accent); outline-offset: 3px; }

.vgsb .vgsb__count {
	font-size: 12.5px !important;
	line-height: 1.3;
	color: var(--vgsb-muted);
	white-space: nowrap;
}

/* Live state */
.vgsb--live {
	--vgsb-glow: rgba(242, 200, 107, 0.38);
}

.vgsb--live .vgsb__flame {
	box-shadow: 0 0 20px 7px rgba(246, 196, 83, 0.55);
}

.vgsb--live .vgsb__count {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	color: var(--vgsb-live);
}

.vgsb--live .vgsb__count::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}

/* Narrow columns and phones */
@container (max-width: 560px) {
	.vgsb {
		grid-template-columns: auto minmax(0, 1fr);
		gap: 14px 16px;
		padding: 16px;
	}
	.vgsb__when { min-width: 64px; padding-right: 16px; }
	.vgsb .vgsb__day { font-size: 24px !important; }
	.vgsb__photo { width: 50px; height: 50px; }
	.vgsb .vgsb__title { font-size: 19px !important; }
	.vgsb__act {
		grid-column: 1 / -1;
		flex-direction: row;
		justify-content: space-between;
		gap: 12px;
		padding-top: 14px;
		border-top: 1px solid var(--vgsb-line);
	}
	.vgsb--midnight .vgsb__act { border-top-style: dashed; }
	.vgsb .vgsb__btn { flex: 0 1 auto; }
}

@container (max-width: 360px) {
	.vgsb__act { flex-direction: column-reverse; align-items: stretch; text-align: center; }
	.vgsb__count { white-space: normal; }
	.vgsb--live .vgsb__count { justify-content: center; }
}

/* Browsers without container queries */
@supports not (container-type: inline-size) {
	@media (max-width: 600px) {
		.vgsb { grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; padding: 16px; }
		.vgsb__when { min-width: 64px; padding-right: 16px; }
		.vgsb__act { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--vgsb-line); }
	}
}

@media (prefers-reduced-motion: reduce) {
	.vgsb__flame { animation: none; }
	.vgsb .vgsb__btn { transition: none; }
	.vgsb .vgsb__btn:hover { transform: none; }
}

@media print {
	.vgsb-wrap { display: none; }
}
