/* MANA SANGAREDDY - WAY2NEWS MOBILE-FIRST STORY FORMAT (v1.3.0) */

/* Suppress distracting theme breadcrumbs on single news pages */
.single-village_news .aft-main-breadcrumb-wrapper,
.single-post .aft-main-breadcrumb-wrapper,
.single-village_news .af-breadcrumbs,
.single-post .af-breadcrumbs {
	display: none !important;
}

/* Base Wrapper */
.w2n-page-wrapper {
	max-width: 640px;
	margin: 16px auto 50px;
	padding: 0 14px;
	font-family: 'Noto Sans Telugu', 'Segoe UI', system-ui, -apple-system, sans-serif;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}

.w2n-page-wrapper * {
	box-sizing: border-box;
}

/* 1. Top Navigation & Brand Strip */
.w2n-top-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	padding: 0 2px;
}

.w2n-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #0D47A1;
	text-decoration: none;
	transition: color 0.2s ease;
}

.w2n-back-link:hover {
	color: #1565C0;
	text-decoration: underline;
}

.w2n-top-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Font Size Controls (A- / A+) */
.w2n-font-sizer {
	display: inline-flex;
	align-items: center;
	background: #F1F5F9;
	border: 1px solid #CBD5E1;
	border-radius: 18px;
	padding: 2px 6px;
	gap: 4px;
}

.w2n-font-btn {
	background: none;
	border: none;
	color: #334155;
	font-size: 12px;
	font-weight: 700;
	padding: 2px 5px;
	cursor: pointer;
	border-radius: 4px;
	line-height: 1;
	transition: background 0.15s ease, color 0.15s ease;
}

.w2n-font-btn:hover {
	background: #E2E8F0;
	color: #0D47A1;
}

.w2n-font-divider {
	color: #CBD5E1;
	font-size: 11px;
}

.w2n-top-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #EFF6FF;
	color: #1D4ED8;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 20px;
	border: 1px solid #DBEAFE;
}

.w2n-top-badge-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #2563EB;
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* 2. Main Way2News Story Card */
.w2n-story-card {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
	transition: box-shadow 0.2s ease;
}

/* 3. Landscape Image & Overlaid Badge */
.w2n-media-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #F1F5F9;
}

.w2n-story-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.w2n-image-overlay-gradient {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 75px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
	pointer-events: none;
}

.w2n-location-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #0D47A1;
	color: #FFFFFF !important;
	font-size: 12px;
	font-weight: 700;
	padding: 5px 13px;
	border-radius: 20px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: background 0.2s ease, transform 0.15s ease;
	z-index: 2;
}

.w2n-location-badge:hover {
	background: #1565C0;
	transform: scale(1.03);
}

/* 4. Story Card Body */
.w2n-story-body {
	padding: 20px 22px 24px;
}

.w2n-meta-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 12.5px;
	color: #64748B;
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid #F1F5F9;
}

.w2n-reporter-tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-weight: 700;
	color: #0D47A1;
}

.w2n-verified-badge {
	background: #16A34A;
	color: #FFFFFF;
	font-size: 9.5px;
	width: 15px;
	height: 15px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-weight: 800;
}

.w2n-time-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #64748B;
	font-weight: 500;
}

.w2n-meta-sep {
	color: #CBD5E1;
}

/* 5. Telugu Headline */
.w2n-story-title {
	font-size: 22px;
	font-weight: 800;
	line-height: 1.5;
	color: #0F172A;
	margin: 0 0 16px 0;
	letter-spacing: -0.1px;
}

/* 6. Story Paragraphs (Way2News Reading Experience) */
.w2n-story-text {
	font-size: 16.5px;
	line-height: 1.88;
	color: #1E293B;
	margin-bottom: 22px;
	transition: font-size 0.2s ease;
}

.w2n-story-text p {
	margin: 0 0 16px 0;
}

.w2n-story-text p:last-child {
	margin-bottom: 0;
}

/* 7. District Tag Row */
.w2n-tag-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	padding: 12px 0;
	border-top: 1px solid #F1F5F9;
	border-bottom: 1px solid #F1F5F9;
	margin-bottom: 20px;
	font-size: 12.5px;
}

.w2n-tag-chip {
	color: #0D47A1;
	font-weight: 700;
	text-decoration: none;
	background: #EFF6FF;
	padding: 4px 11px;
	border-radius: 12px;
	border: 1px solid #DBEAFE;
}

.w2n-tag-chip:hover {
	text-decoration: underline;
}

.w2n-district-label {
	color: #64748B;
	font-weight: 600;
}

/* 8. Action & Viral Share Buttons */
.w2n-actions-box {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.w2n-whatsapp-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #25D366;
	color: #FFFFFF !important;
	font-size: 15px;
	font-weight: 700;
	padding: 13px 20px;
	border-radius: 12px;
	text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	text-align: center;
	min-height: 48px;
}

.w2n-whatsapp-cta:hover {
	background: #1EBE5D;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.w2n-native-share-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #F8FAFC;
	border: 1px solid #CBD5E1;
	color: #475569;
	font-size: 13px;
	font-weight: 600;
	padding: 11px 18px;
	border-radius: 10px;
	cursor: pointer;
	width: 100%;
	transition: all 0.2s ease;
	min-height: 44px;
}

.w2n-native-share-btn:hover {
	background: #F1F5F9;
	color: #0F172A;
	border-color: #94A3B8;
}

/* 9. Next / Previous Story Flip Navigation Bar */
.w2n-story-nav-bar {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 20px;
}

.w2n-nav-btn {
	display: flex;
	flex-direction: column;
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 12px;
	padding: 12px 14px;
	text-decoration: none !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	transition: all 0.2s ease;
}

.w2n-nav-btn:hover {
	border-color: #0D47A1;
	box-shadow: 0 4px 12px rgba(13, 71, 161, 0.12);
	transform: translateY(-1px);
}

.w2n-nav-sub {
	font-size: 11px;
	font-weight: 700;
	color: #0D47A1;
	margin-bottom: 4px;
}

.w2n-nav-text {
	font-size: 12.5px;
	font-weight: 600;
	color: #334155;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.w2n-nav-disabled {
	opacity: 0.5;
	pointer-events: none;
	background: #F8FAFC;
}

.w2n-nav-disabled .w2n-nav-sub {
	color: #94A3B8;
}

/* 10. Bottom Village Feed CTA */
.w2n-bottom-nav {
	margin-top: 20px;
	text-align: center;
}

.w2n-village-feed-cta {
	display: inline-block;
	background: #FFFFFF;
	border: 1.5px solid #0D47A1;
	color: #0D47A1 !important;
	font-size: 13.5px;
	font-weight: 700;
	padding: 11px 24px;
	border-radius: 25px;
	text-decoration: none !important;
	transition: all 0.2s ease;
	box-shadow: 0 2px 8px rgba(13, 71, 161, 0.08);
}

.w2n-village-feed-cta:hover {
	background: #0D47A1;
	color: #FFFFFF !important;
	box-shadow: 0 4px 14px rgba(13, 71, 161, 0.25);
}

/* ==========================================================================
   11. RESPONSIVE ADAPTATIONS: MOBILE, TABLET & SMALL SCREENS
   ========================================================================== */

/* Tablets & iPads (600px to 900px) */
@media (min-width: 601px) and (max-width: 900px) {
	.w2n-page-wrapper {
		max-width: 580px;
		margin: 16px auto 40px;
		padding: 0 16px;
	}

	.w2n-story-title {
		font-size: 21px;
	}

	.w2n-story-text {
		font-size: 16px;
		line-height: 1.85;
	}
}

/* Mobile Screens (< 600px: iPhone, Android, Foldables) */
@media (max-width: 600px) {
	.w2n-page-wrapper {
		max-width: 100%;
		margin: 10px auto 35px;
		padding: 0 8px;
	}

	.w2n-top-nav {
		padding: 0 4px;
		margin-bottom: 10px;
	}

	.w2n-story-card {
		border-radius: 12px;
		box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	}

	.w2n-media-wrap {
		border-radius: 12px 12px 0 0;
	}

	.w2n-story-body {
		padding: 16px 14px 20px;
	}

	.w2n-story-title {
		font-size: 19.5px;
		line-height: 1.48;
		margin-bottom: 14px;
	}

	.w2n-story-text {
		font-size: 15.5px;
		line-height: 1.82;
		margin-bottom: 18px;
	}

	.w2n-whatsapp-cta {
		font-size: 14.5px;
		padding: 13px 16px;
	}

	.w2n-story-nav-bar {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.w2n-nav-btn {
		padding: 10px 12px;
	}

	.w2n-bottom-nav {
		padding: 0 4px;
	}

	.w2n-village-feed-cta {
		display: block;
		width: 100%;
		text-align: center;
		padding: 11px 16px;
	}
}

/* Extra Small Screens (< 360px: Small Androids) */
@media (max-width: 360px) {
	.w2n-page-wrapper {
		padding: 0 4px;
	}

	.w2n-story-title {
		font-size: 18px;
	}

	.w2n-story-text {
		font-size: 14.5px;
	}

	.w2n-top-badge {
		display: none;
	}
}
