/* MANA SANGAREDDY - FRONT-END VILLAGE NEWS CARDS (v1.3.0) */

/* Suppress distracting theme breadcrumbs across village views */
.tax-village .aft-main-breadcrumb-wrapper,
.tax-village .af-breadcrumbs,
.page-template-page-village-news .aft-main-breadcrumb-wrapper,
.page-template-page-village-news .af-breadcrumbs,
.page .aft-main-breadcrumb-wrapper,
.aft-main-breadcrumb-wrapper {
	display: none !important;
}

/* Hide empty theme content block on homepage */
body.home #content,
body.front-page #content {
	display: none !important;
}

.vnd-news-feed-grid {
	display: grid;
	gap: 24px;
	margin: 25px 0;
	font-family: 'Noto Sans Telugu', 'Segoe UI', system-ui, sans-serif;
	box-sizing: border-box;
}

.vnd-news-feed-grid * {
	box-sizing: border-box;
}

.vnd-cols-1 { grid-template-columns: 1fr; }
.vnd-cols-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.vnd-cols-3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.vnd-cols-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.vnd-card-item {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vnd-card-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.vnd-card-image-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 700 / 400;
	overflow: hidden;
	background: #EDF2F7;
}

.vnd-card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.vnd-card-item:hover .vnd-card-image {
	transform: scale(1.03);
}

.vnd-badge-village {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #0D47A1;
	color: #FFFFFF;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 20px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.25);
}

.vnd-card-content {
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.vnd-card-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 11.5px;
	color: #718096;
	margin-bottom: 8px;
}

.vnd-author {
	font-weight: 600;
	color: #0D47A1;
}

.vnd-card-title {
	font-size: 16px;
	font-weight: 800;
	line-height: 1.45;
	margin: 0 0 10px 0;
	color: #1A202C;
}

.vnd-card-title a {
	color: #1A202C;
	text-decoration: none;
	transition: color 0.2s ease;
}

.vnd-card-title a:hover {
	color: #0D47A1;
}

.vnd-card-desc {
	font-size: 13px;
	color: #4A5568;
	line-height: 1.6;
	margin-bottom: 15px;
	flex: 1;
}

.vnd-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid #EDF2F7;
	padding-top: 12px;
	margin-top: auto;
}

.vnd-read-more {
	font-size: 12px;
	font-weight: 700;
	color: #0D47A1;
	text-decoration: none;
}

.vnd-read-more:hover {
	text-decoration: underline;
}

.vnd-whatsapp-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #25D366;
	color: #FFFFFF !important;
	text-decoration: none !important;
	font-size: 11px;
	font-weight: 700;
	padding: 5px 10px;
	border-radius: 6px;
	transition: background 0.2s ease;
}

.vnd-whatsapp-btn:hover {
	background: #1EBE5D;
}

.vnd-frontend-empty {
	padding: 40px 20px;
	text-align: center;
	color: #718096;
	background: #F8FAFC;
	border: 1px dashed #CBD5E0;
	border-radius: 12px;
	margin: 30px 0;
}

/* Village Archive Page Styling */
.vnd-archive-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 25px 15px 60px;
	font-family: 'Noto Sans Telugu', system-ui, sans-serif;
}

.vnd-archive-banner {
	background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%);
	color: #FFFFFF;
	padding: 26px 30px;
	border-radius: 14px;
	margin-bottom: 30px;
	box-shadow: 0 6px 20px rgba(13, 71, 161, 0.15);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
}

.vnd-archive-banner-info h1.vnd-archive-title {
	margin: 0 0 6px 0;
	font-size: 26px;
	font-weight: 800;
	color: #FFFFFF;
	font-family: 'Noto Sans Telugu', system-ui, sans-serif;
	display: flex;
	align-items: center;
	gap: 8px;
}

.vnd-archive-banner-badge {
	display: inline-block;
	background: #FFCB05;
	color: #0D47A1;
	font-size: 11px;
	font-weight: 800;
	padding: 4px 10px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 6px;
}

.vnd-archive-banner-desc {
	margin: 0;
	font-size: 14px;
	color: #E2E8F0;
	font-family: 'Noto Sans Telugu', system-ui, sans-serif;
}

.vnd-archive-count-badge {
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	padding: 8px 18px;
	border-radius: 30px;
	font-size: 13px;
	font-weight: 700;
	color: #FFFFFF;
	white-space: nowrap;
}

/* Pagination */
.vnd-pagination {
	margin: 40px 0 20px;
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.vnd-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 14px;
	background: #FFFFFF;
	border: 1px solid #CBD5E0;
	border-radius: 8px;
	color: #2D3748;
	text-decoration: none;
	font-weight: 700;
	font-size: 13px;
	transition: all 0.2s ease;
}

.vnd-pagination .page-numbers.current,
.vnd-pagination .page-numbers:hover {
	background: #0D47A1;
	color: #FFFFFF;
	border-color: #0D47A1;
}

.vnd-pagination .page-numbers.dots {
	border: none;
	background: transparent;
}

@media (max-width: 768px) {
	.vnd-archive-banner {
		padding: 20px;
		flex-direction: column;
		align-items: flex-start;
	}
	.vnd-archive-banner-info h1.vnd-archive-title {
		font-size: 22px;
	}
}

@media (max-width: 600px) {
	.vnd-news-feed-grid {
		grid-template-columns: 1fr !important;
	}
}

/* ==========================================================================
   HOMEPAGE TOP 3 RECENT NEWS STYLES
   ========================================================================== */

.vnd-top-news-section {
	max-width: 1240px;
	margin: 20px auto 45px;
	padding: 0 15px;
	box-sizing: border-box;
	font-family: 'Noto Sans Telugu', 'Segoe UI', system-ui, sans-serif;
}

.vnd-top-news-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 22px;
	padding-bottom: 14px;
	border-bottom: 2px solid #E2E8F0;
}

.vnd-top-news-title-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.vnd-live-pulse-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #FEF2F2;
	color: #DC2626;
	font-size: 11px;
	font-weight: 800;
	padding: 3px 10px;
	border-radius: 20px;
	border: 1px solid #FECACA;
	width: fit-content;
}

.vnd-pulse-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #DC2626;
	box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
	animation: vndPulseRed 1.8s infinite;
}

@keyframes vndPulseRed {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
	}
	70% {
		transform: scale(1);
		box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
	}
	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
	}
}

.vnd-top-news-heading {
	font-size: 24px;
	font-weight: 800;
	color: #0F172A;
	margin: 2px 0 0 0;
	letter-spacing: -0.2px;
}

.vnd-top-news-sub {
	font-size: 13.5px;
	color: #64748B;
	margin: 0;
	font-weight: 500;
}

.vnd-recent-count-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #EFF6FF;
	color: #1D4ED8;
	font-size: 12px;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 20px;
	border: 1px solid #DBEAFE;
}

.vnd-top-news-footer {
	text-align: center;
	margin-top: 25px;
}

.vnd-explore-villages-btn {
	display: inline-block;
	background: #FFFFFF;
	border: 1.5px solid #0D47A1;
	color: #0D47A1 !important;
	font-size: 14px;
	font-weight: 700;
	padding: 12px 28px;
	border-radius: 30px;
	text-decoration: none !important;
	transition: all 0.2s ease;
	box-shadow: 0 2px 8px rgba(13, 71, 161, 0.08);
}

.vnd-explore-villages-btn:hover {
	background: #0D47A1;
	color: #FFFFFF !important;
	box-shadow: 0 4px 14px rgba(13, 71, 161, 0.25);
	transform: translateY(-1px);
}

@media (max-width: 600px) {
	.vnd-top-news-section {
		margin: 15px auto 35px;
		padding: 0 10px;
	}

	.vnd-top-news-header {
		margin-bottom: 16px;
		padding-bottom: 10px;
	}

	.vnd-top-news-heading {
		font-size: 20px;
	}

	.vnd-top-news-sub {
		font-size: 12.5px;
	}

	.vnd-explore-villages-btn {
		display: block;
		width: 100%;
		padding: 12px 16px;
		box-sizing: border-box;
	}
}


