/* Aumaujaya Annadanam — front end */
.aanp {
	--aanp-maroon: #7a1f1f;
	--aanp-maroon-2: #5c1414;
	--aanp-saffron: #e8892b;
	--aanp-gold: #c9a227;
	--aanp-cream: #fff8ee;
	--aanp-sand: #f6ead6;
	--aanp-ink: #2b1d14;
	--aanp-muted: #6d5a4b;
	--aanp-line: #ead9bf;
	--aanp-radius: 16px;
	color: var(--aanp-ink);
	line-height: 1.6;
	box-sizing: border-box;
}
.aanp *, .aanp *::before, .aanp *::after { box-sizing: border-box; }
.aanp img { max-width: 100%; height: auto; }
.aanp a { text-decoration: none; }
.aanp p { margin: 0; }

/* Headings */
.aanp .aanp-h {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	margin: 0 0 18px; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem);
	line-height: 1.25; color: var(--aanp-maroon);
}
.aanp .aanp-h::after {
	content: ""; flex: 1 1 40px; height: 2px; min-width: 40px;
	background: linear-gradient(90deg, var(--aanp-gold), transparent);
}
.aanp .aanp-h img { width: 36px; height: 36px; }
.aanp .aanp-h3 { margin: 28px 0 14px; font-size: 1.15rem; line-height: 1.3; color: var(--aanp-maroon); }
.aanp [lang="te"] { font-weight: 600; }
.aanp .aanp-eyebrow {
	margin: 0 0 6px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
	color: var(--aanp-saffron); font-weight: 700;
}
.aanp-section { margin: 0 0 48px; }

/* Hero */
.aanp-hero {
	text-align: center; padding: 40px 20px 32px; margin: 0 0 40px;
	border-radius: var(--aanp-radius);
	background: radial-gradient(circle at 50% 0, #fff 0, var(--aanp-cream) 55%, var(--aanp-sand) 100%);
	border: 1px solid var(--aanp-line);
}
.aanp-hero-logo { width: 84px; height: 84px; margin: 0 auto 12px; display: block; }
.aanp .aanp-hero-title {
	margin: 0 0 14px; font-size: clamp(1.8rem, 1.3rem + 2.4vw, 2.8rem); line-height: 1.2; color: var(--aanp-maroon);
}
.aanp-hero-title span { display: block; font-size: .62em; color: var(--aanp-saffron); margin-top: 4px; }
.aanp-hero-te { font-size: 1.08rem; max-width: 720px; margin: 0 auto 10px !important; }
.aanp-hero-en { color: var(--aanp-muted); max-width: 720px; margin: 0 auto !important; }
.aanp-stats {
	list-style: none; padding: 0; margin: 22px 0 0;
	display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.aanp-stats li {
	margin: 0; padding: 8px 16px; border-radius: 999px; background: #fff;
	border: 1px solid var(--aanp-line); font-size: .92rem; color: var(--aanp-muted);
}
.aanp-stats strong { color: var(--aanp-maroon); }

/* Buttons */
.aanp .aanp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 44px; padding: 10px 20px; border-radius: 999px;
	background: var(--aanp-maroon); color: #fff; font-weight: 600; font-size: .95rem;
	border: 2px solid var(--aanp-maroon); transition: background .2s, color .2s;
	text-align: center; line-height: 1.2;
}
.aanp .aanp-btn:hover, .aanp .aanp-btn:focus { background: var(--aanp-maroon-2); color: #fff; }
.aanp .aanp-btn-ghost { background: transparent; color: var(--aanp-maroon); }
.aanp .aanp-btn-ghost:hover, .aanp .aanp-btn-ghost:focus { background: var(--aanp-maroon); color: #fff; }
.aanp .aanp-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }

/* Badges */
.aanp-badge {
	display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700;
	letter-spacing: .04em; text-transform: uppercase; vertical-align: middle;
	background: #e9f4ea; color: #24622d; white-space: nowrap;
}
.aanp-badge-occ { background: #fdeedd; color: #a14d00; }

/* Spotlight / next Annadanam */
.aanp-spotlight, .aanp-regular {
	display: grid; grid-template-columns: 1fr; gap: 20px;
	padding: 22px; margin: 0 0 20px; border-radius: var(--aanp-radius);
	background: linear-gradient(135deg, var(--aanp-maroon) 0%, #8f2a1a 60%, #a8441c 100%);
	color: #fff; box-shadow: 0 10px 30px rgba(122, 31, 31, .18);
}
.aanp-spotlight a, .aanp-regular a { color: #ffe3a8; }
.aanp .aanp-spot-label { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: #ffd27a; font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.aanp .aanp-spot-date { font-size: clamp(1.25rem, 1.05rem + 1vw, 1.6rem); font-weight: 700; line-height: 1.3; margin: 6px 0 4px; }
.aanp .aanp-spot-time { font-size: 1.05rem; opacity: .95; }
.aanp .aanp-spot-place { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.aanp .aanp-kshetra-link { font-weight: 700; }
.aanp-venue { opacity: .85; font-size: .92rem; }
.aanp .aanp-spot-note, .aanp .aanp-reg-note { margin-top: 10px; opacity: .92; font-size: .95rem; }
.aanp-spot-cd, .aanp-reg-next { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.aanp-spotlight .aanp-btn-ghost { border-color: #ffd27a; color: #ffd27a; }
.aanp-spotlight .aanp-btn-ghost:hover { background: #ffd27a; color: var(--aanp-maroon); }

/* Countdown */
.aanp-countdown { display: flex; flex-wrap: wrap; gap: 8px; }
.aanp-cd-unit {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-width: 64px; padding: 10px 6px; border-radius: 12px;
	background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
}
.aanp-cd-unit b { font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.aanp-cd-unit i { font-style: normal; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; opacity: .85; }
.aanp-cd-live { display: none; padding: 10px 16px; border-radius: 12px; background: #ffd27a; color: var(--aanp-maroon); font-weight: 700; }
.aanp-countdown.is-live .aanp-cd-unit { display: none; }
.aanp-countdown.is-live .aanp-cd-live { display: inline-block; }

/* Upcoming list */
.aanp .aanp-upcoming { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.aanp .aanp-up-item {
	display: flex; align-items: center; gap: 14px; margin: 0; padding: 14px;
	background: #fff; border: 1px solid var(--aanp-line); border-radius: 14px;
}
.aanp-datetile {
	flex: 0 0 58px; height: 62px; border-radius: 12px; display: flex; flex-direction: column;
	align-items: center; justify-content: center; background: var(--aanp-cream); border: 1px solid var(--aanp-line);
}
.aanp-datetile b { font-size: 1.4rem; line-height: 1; color: var(--aanp-maroon); }
.aanp-datetile i { font-style: normal; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--aanp-saffron); margin-top: 4px; font-weight: 700; }
.aanp-up-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.aanp-up-title { font-weight: 700; overflow-wrap: anywhere; }
.aanp-up-title a { color: var(--aanp-maroon); }
.aanp-up-meta { font-size: .9rem; color: var(--aanp-muted); }
.aanp-up-item .aanp-badge { flex: 0 0 auto; }

/* Filter chips */
.aanp-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 0 16px; scrollbar-width: thin; }
.aanp .aanp-chip {
	flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
	padding: 8px 14px; border-radius: 999px; border: 1px solid var(--aanp-line); background: #fff;
	color: var(--aanp-ink); font-size: .9rem; white-space: nowrap;
}
.aanp .aanp-chip span { font-size: .78rem; color: var(--aanp-muted); }
.aanp .aanp-chip.is-active { background: var(--aanp-maroon); border-color: var(--aanp-maroon); color: #fff; }
.aanp .aanp-chip.is-active span { color: #ffd27a; }

/* Cards grid */
.aanp-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.aanp-card {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--aanp-line);
	border-radius: var(--aanp-radius); overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.aanp-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(43, 29, 20, .1); }
.aanp-card-media { display: block; aspect-ratio: 16 / 10; background: var(--aanp-cream); overflow: hidden; }
.aanp-card-media img, .aanp .aanp-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aanp-card-ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.aanp-card-ph img { width: 64px; height: 64px; opacity: .55; }
.aanp-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.aanp .aanp-card-kshetra { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--aanp-saffron); }
.aanp .aanp-card-title { margin: 0; font-size: 1.05rem; line-height: 1.4; overflow-wrap: anywhere; }
.aanp .aanp-card-title a { color: var(--aanp-ink); }
.aanp .aanp-card-title a:hover { color: var(--aanp-maroon); }
.aanp .aanp-card-meta { font-size: .86rem; color: var(--aanp-muted); }
.aanp-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 24px; color: var(--aanp-muted); }
.aanp-empty { padding: 18px; border-radius: 12px; background: var(--aanp-cream); border: 1px dashed var(--aanp-line); color: var(--aanp-muted); }

/* WhatsApp card */
.aanp-wa {
	display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 32px 0 0; padding: 18px 20px;
	border-radius: var(--aanp-radius); background: #eafaf0; border: 1px solid #bfe9cf;
}
.aanp-wa-icon { flex: 0 0 48px; height: 48px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; }
.aanp-wa-text { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.aanp-wa-text span { color: #3d5a47; font-size: .92rem; }
.aanp .aanp-btn-wa { background: #128c3e; border-color: #128c3e; }
.aanp .aanp-btn-wa:hover { background: #0d6d30; border-color: #0d6d30; }

/* Kshetra page section */
.aanp-kshetra { margin: 48px 0; padding-top: 8px; clear: both; }
.aanp .aanp-reg-when { margin: 0 0 12px; font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem); line-height: 1.3; color: #fff; }
.aanp-regular .aanp-eyebrow { color: #ffd27a; }
.aanp .aanp-reg-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.aanp .aanp-reg-facts li { margin: 0; padding-left: 22px; position: relative; }
.aanp .aanp-reg-facts li::before { content: ""; position: absolute; left: 4px; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: #ffd27a; }

/* Post extras */
.aanp-post-extras { margin: 36px 0 0; clear: both; }
.aanp .aanp-post-facts {
	list-style: none; margin: 0 0 8px; padding: 16px; display: grid; grid-template-columns: 1fr; gap: 12px;
	border-radius: 14px; background: var(--aanp-cream); border: 1px solid var(--aanp-line);
}
.aanp .aanp-post-facts li { margin: 0; display: flex; flex-direction: column; }
.aanp .aanp-post-facts span { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--aanp-muted); font-weight: 700; }
.aanp-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.aanp-gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--aanp-cream); }
.aanp-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.aanp-gallery a:hover img { transform: scale(1.05); }
.aanp-fb-embeds { display: grid; gap: 16px; margin-top: 16px; justify-items: center; }
.aanp-fb { width: 100%; max-width: 500px; }
.aanp-fb iframe { width: 100%; max-width: 500px; display: block; }

/* Lightbox */
.aanp-lb {
	position: fixed; inset: 0; z-index: 99999; background: rgba(20, 10, 5, .92);
	display: flex; align-items: center; justify-content: center; padding: 48px 12px;
}
.aanp-lb img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.aanp-lb button {
	position: absolute; background: rgba(255, 255, 255, .14); color: #fff; border: 0; border-radius: 50%;
	width: 46px; height: 46px; font-size: 24px; line-height: 1; cursor: pointer; padding: 0;
}
.aanp-lb .aanp-lb-close { top: 12px; right: 12px; }
.aanp-lb .aanp-lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.aanp-lb .aanp-lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* Larger screens */
@media (min-width: 640px) {
	.aanp-grid { grid-template-columns: repeat(2, 1fr); }
	.aanp-gallery { grid-template-columns: repeat(3, 1fr); }
	.aanp .aanp-post-facts { grid-template-columns: repeat(3, 1fr); }
	.aanp-spotlight, .aanp-regular { padding: 28px 30px; }
}
@media (min-width: 900px) {
	.aanp-grid { grid-template-columns: repeat(3, 1fr); }
	.aanp-gallery { grid-template-columns: repeat(4, 1fr); }
	.aanp-spotlight, .aanp-regular { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 28px; }
	.aanp-spot-cd, .aanp-reg-next { align-items: flex-end; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
	.aanp-card, .aanp-gallery img { transition: none; }
}
