/**
 * AV NEWS ePaper Manager - Premium Public Stylesheet
 *
 * Scoped strictly to #avnews-epaper-app and .avnews-epaper-container
 * to eliminate styling collisions with Jannah Theme or WordPress core.
 *
 * Designed to achieve 100% visual parity with AV NEWS reference designs
 * across Desktop, Mobile Web, and Responsive Screen layouts.
 *
 * @package AVNEWS_Epaper
 */

/* ==========================================================================
   1. CSS Variables & Scoped Container
   ========================================================================== */

#avnews-epaper-app,
.avnews-epaper-container {
	--avnews-red: #D71920;
	--avnews-red-hover: #B5141A;
	--avnews-red-dark: #8B0000;
	--avnews-red-soft: #FEF2F2;
	--avnews-red-border: #FECACA;
	--avnews-dark: #111827;
	--avnews-dark-text: #1F2937;
	--avnews-text-secondary: #4B5563;
	--avnews-text-muted: #6B7280;
	--avnews-bg-light: #F9FAFB;
	--avnews-bg-card: #FFFFFF;
	--avnews-border-light: #E5E7EB;
	--avnews-border-card: #F3F4F6;
	--avnews-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
	--avnews-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
	--avnews-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
	--avnews-shadow-red: 0 8px 24px rgba(215, 25, 32, 0.22);
	--avnews-radius-sm: 8px;
	--avnews-radius-md: 12px;
	--avnews-radius-lg: 16px;
	--avnews-radius-xl: 20px;
	--avnews-transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);

	position: relative;
	width: 100%;
	max-width: 1240px;
	margin: 15px auto 40px auto;
	padding: 0 16px;
	background: transparent;
	color: var(--avnews-dark-text);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Devanagari", Oxygen, Ubuntu, Cantarell, sans-serif;
	line-height: 1.5;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}

#avnews-epaper-app *,
#avnews-epaper-app *::before,
#avnews-epaper-app *::after {
	box-sizing: border-box;
}

/* ==========================================================================
   2. AV NEWS Top Navigation Bar
   ========================================================================== */

.avnews-site-header {
	background: #FFFFFF;
	border: 1px solid var(--avnews-border-light);
	border-radius: var(--avnews-radius-md);
	padding: 10px 20px;
	margin-bottom: 20px;
	box-shadow: var(--avnews-shadow-sm);
}

.avnews-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

/* Brand Logo */
.avnews-header-brand {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.avnews-brand-link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

.avnews-logo-text-group {
	display: flex;
	align-items: baseline;
	gap: 4px;
	line-height: 1;
}

.avnews-logo-av {
	font-size: 26px;
	font-weight: 900;
	color: var(--avnews-red);
	letter-spacing: -0.5px;
}

.avnews-logo-news {
	font-size: 26px;
	font-weight: 900;
	color: #111827;
	letter-spacing: -0.5px;
}

.avnews-logo-tagline {
	font-size: 10px;
	font-weight: 600;
	color: var(--avnews-text-muted);
	letter-spacing: 0.2px;
	margin-top: 2px;
}

/* Center: Topbar Meta */
.avnews-topbar-meta {
	display: flex;
	align-items: center;
	gap: 10px;
}

.avnews-topbar-date {
	font-size: 13px;
	font-weight: 600;
	color: var(--avnews-text-secondary);
}

.avnews-topbar-edition-badge {
	font-size: 11px;
	font-weight: 700;
	background: var(--avnews-red-soft);
	color: var(--avnews-red);
	padding: 2px 8px;
	border-radius: 4px;
	border: 1px solid var(--avnews-red-border);
}

.avnews-topbar-read-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: var(--avnews-red);
	color: #ffffff !important;
	font-size: 13px;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 20px;
	text-decoration: none;
	transition: var(--avnews-transition);
}

.avnews-topbar-read-btn:hover {
	background: var(--avnews-red-hover);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(215, 25, 32, 0.3);
}

/* Desktop Editorial Navigation */
.avnews-header-nav {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: nowrap;
	overflow-x: auto;
	scrollbar-width: none;
}

/* Header Right: LIVE Pill */
.avnews-header-right {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.avnews-live-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--avnews-red);
	color: #FFFFFF !important;
	font-size: 11px;
	font-weight: 800;
	padding: 5px 12px;
	border-radius: 999px;
	text-decoration: none;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 8px rgba(215, 25, 32, 0.35);
	transition: var(--avnews-transition);
}

.avnews-live-pill:hover {
	background: var(--avnews-red-hover);
	transform: scale(1.03);
	text-decoration: none;
}

.avnews-live-pulse-dot {
	width: 7px;
	height: 7px;
	background: #FFFFFF;
	border-radius: 50%;
	animation: avnews-pulse-white 1.6s infinite;
}

@keyframes avnews-pulse-white {
	0% {
		transform: scale(0.9);
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
	}

	70% {
		transform: scale(1.1);
		box-shadow: 0 0 0 5px rgba(255, 255, 255, 0);
	}

	100% {
		transform: scale(0.9);
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
	}
}

.avnews-dark-hero-section {
	background-color: #0B0D11;
	background-image:
		linear-gradient(90deg, #0B0D11 0%, rgba(11, 13, 17, 0.96) 38%, rgba(11, 13, 17, 0.72) 56%, rgba(11, 13, 17, 0.25) 80%),
		var(--avnews-hero-banner-url, url('../../assets/images/hero-banner.webp'));
	background-position: right center;
	background-size: cover;
	background-repeat: no-repeat;
	position: relative;
	border-radius: var(--avnews-radius-lg);
	padding: 42px 48px;
	margin-bottom: 28px;
	color: #FFFFFF;
	overflow: hidden;
	box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4), 0 0 1px rgba(255, 255, 255, 0.12) inset;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.avnews-dark-hero-section::before {
	content: "";
	position: absolute;
	top: -60px;
	right: -60px;
	width: 380px;
	height: 380px;
	background: radial-gradient(circle, rgba(215, 25, 32, 0.28) 0%, rgba(139, 0, 0, 0.12) 45%, rgba(19, 23, 32, 0) 70%);
	pointer-events: none;
	z-index: 0;
	border-radius: 50%;
}

.avnews-dark-hero-section::after {
	content: "";
	position: absolute;
	bottom: -80px;
	left: -40px;
	width: 320px;
	height: 320px;
	background: radial-gradient(circle, rgba(79, 70, 229, 0.12) 0%, rgba(215, 25, 32, 0.06) 40%, transparent 70%);
	pointer-events: none;
	z-index: 0;
	border-radius: 50%;
}

.avnews-dark-hero-inner {
	display: block;
	max-width: 660px;
	position: relative;
	z-index: 1;
}

/* Left Hero Content */
.avnews-hero-brand-mark {
	font-size: clamp(34px, 4.5vw, 48px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -1px;
	margin-bottom: 12px;
}

.avnews-hero-brand-mark .brand-e {
	color: var(--avnews-red);
}

.avnews-hero-brand-mark .brand-paper {
	color: #FFFFFF;
}

.avnews-hero-headline {
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 800;
	color: #FFFFFF !important;
	margin: 0 0 10px 0;
	line-height: 1.25;
	letter-spacing: -0.4px;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.avnews-hero-tagline {
	font-size: clamp(13px, 1.6vw, 15px);
	color: #E2E8F0 !important;
	margin: 0 0 24px 0;
	line-height: 1.5;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* 4 Action Pill Badges */
.avnews-hero-pill-badges {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.avnews-hero-badge-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: rgba(255, 255, 255, 0.14) !important;
	border: 1px solid rgba(255, 255, 255, 0.28) !important;
	color: #FFFFFF !important;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 999px;
	text-decoration: none;
	backdrop-filter: blur(8px);
	cursor: pointer;
	transition: var(--avnews-transition);
}

.avnews-hero-badge-pill svg {
	color: #FF4D4F;
	transition: var(--avnews-transition);
}

.avnews-hero-badge-pill:hover {
	background: var(--avnews-red) !important;
	border-color: var(--avnews-red) !important;
	color: #FFFFFF !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(215, 25, 32, 0.45);
	text-decoration: none;
}

.avnews-hero-badge-pill:hover svg {
	color: #FFFFFF;
}

/* ==========================================================================
   4. City Selection Cards (Exact Reference Design)
   ========================================================================== */

.avnews-cities-section {
	margin-bottom: 24px;
}

.avnews-epaper-cities-grid {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 6px;
	scrollbar-width: thin;
	scrollbar-color: rgba(215, 25, 32, 0.45) transparent;
}

.avnews-epaper-cities-grid::-webkit-scrollbar {
	height: 5px;
}

.avnews-epaper-cities-grid::-webkit-scrollbar-track {
	background: #F3F4F6;
	border-radius: 4px;
}

.avnews-epaper-cities-grid::-webkit-scrollbar-thumb {
	background: var(--avnews-red);
	border-radius: 4px;
}

.avnews-epaper-city-card {
	flex: 0 0 calc((100% - (3 * 14px)) / 4);
	min-width: 220px;
	scroll-snap-align: start;
	background: #FFFFFF;
	border: 1px solid var(--avnews-border-light);
	border-radius: var(--avnews-radius-md);
	padding: 12px 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	text-decoration: none !important;
	box-shadow: var(--avnews-shadow-sm);
	transition: var(--avnews-transition);
	position: relative;
}

.avnews-epaper-city-card:hover:not(.is-active) {
	border-color: var(--avnews-red-border);
	transform: translateY(-2px);
	box-shadow: var(--avnews-shadow-md);
}

/* Inactive City Card Content */
.avnews-city-landmark-wrap {
	width: 44px;
	height: 44px;
	border-radius: var(--avnews-radius-sm);
	overflow: hidden;
	flex-shrink: 0;
	background: var(--avnews-bg-light);
	border: 1px solid var(--avnews-border-light);
	display: flex;
	align-items: center;
	justify-content: center;
}

.avnews-city-landmark-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.avnews-city-info-col {
	display: flex;
	flex-direction: column;
	text-align: left;
	flex: 1;
	min-width: 0;
}

.avnews-city-name-hindi {
	font-size: 17px;
	font-weight: 800;
	color: #111827;
	line-height: 1.2;
}

.avnews-city-name-eng {
	font-size: 12px;
	font-weight: 500;
	color: #6B7280;
	line-height: 1.1;
	margin-top: 2px;
}

.avnews-city-arrow-pill {
	color: #9CA3AF;
	font-size: 16px;
	font-weight: 700;
	flex-shrink: 0;
	transition: var(--avnews-transition);
}

/* Active City Card: SOLID RED (#D71920) per Reference Image */
.avnews-epaper-city-card.is-active {
	background: var(--avnews-red) !important;
	border-color: var(--avnews-red) !important;
	color: #FFFFFF !important;
	box-shadow: 0 8px 24px rgba(215, 25, 32, 0.35) !important;
	transform: translateY(-2px);
}

.avnews-epaper-city-card.is-active .avnews-city-name-hindi {
	color: #FFFFFF !important;
}

.avnews-epaper-city-card.is-active .avnews-city-name-eng {
	color: rgba(255, 255, 255, 0.85) !important;
}

.avnews-epaper-city-card.is-active .avnews-city-arrow-pill {
	color: #FFFFFF !important;
}

.avnews-epaper-city-card.is-active .avnews-city-landmark-wrap {
	border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   5. Today's Edition Section Bar
   ========================================================================== */

.avnews-today-section {
	margin-bottom: 32px;
}

.avnews-today-edition-wrapper {
	width: 100%;
}

.avnews-today-header-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 18px;
}

.avnews-today-section-heading {
	font-size: clamp(20px, 2.6vw, 25px);
	font-weight: 800;
	color: #111827;
	margin: 0;
	letter-spacing: -0.3px;
}

.avnews-city-name-accent {
	color: var(--avnews-red);
}

.avnews-today-header-right {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.avnews-date-indicator-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	font-weight: 700;
	color: #374151;
	background: #FFFFFF;
	border: 1px solid var(--avnews-border-light);
	padding: 7px 14px;
	border-radius: var(--avnews-radius-sm);
	box-shadow: var(--avnews-shadow-sm);
}

.avnews-date-indicator-badge svg {
	color: var(--avnews-red);
}

/* "अन्य तारीख चुनें" Button */
.avnews-date-picker-button-wrap {
	position: relative;
	display: inline-block;
}

.avnews-btn-select-date {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--avnews-red);
	color: #FFFFFF !important;
	font-size: 13px;
	font-weight: 700;
	padding: 8px 16px;
	border-radius: var(--avnews-radius-sm);
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(215, 25, 32, 0.28);
	transition: var(--avnews-transition);
	margin: 0;
}

.avnews-btn-select-date:hover {
	background: var(--avnews-red-hover);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(215, 25, 32, 0.38);
}

.avnews-hidden-native-datepicker {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
}

/* Reset to latest button */
.avnews-btn-reset-latest {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #FFFFFF;
	border: 1px solid var(--avnews-border-light);
	color: var(--avnews-red);
	font-size: 12px;
	font-weight: 700;
	padding: 7px 12px;
	border-radius: var(--avnews-radius-sm);
	cursor: pointer;
	transition: var(--avnews-transition);
}

.avnews-btn-reset-latest:hover {
	background: var(--avnews-red-soft);
	border-color: var(--avnews-red);
}

/* ==========================================================================
   6. Today's Edition 2-Column Showcase Card & 2x2 Feature Grid
   ========================================================================== */

.avnews-edition-showcase-card {
	background: #FFFFFF;
	border: 1px solid var(--avnews-border-light);
	border-radius: var(--avnews-radius-lg);
	padding: 28px;
	display: grid;
	grid-template-columns: 360px 1fr;
	gap: 32px;
	box-shadow: var(--avnews-shadow-md);
	align-items: center;
}

/* Left Column: Newspaper Cover */
.avnews-showcase-cover-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.avnews-newspaper-frame {
	position: relative;
	width: 100%;
	max-width: 340px;
	aspect-ratio: 1 / 1.414;
	background: #F3F4F6;
	border: 1px solid var(--avnews-border-light);
	border-radius: var(--avnews-radius-md);
	box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
	overflow: hidden;
	transition: var(--avnews-transition);
}

.avnews-newspaper-frame:hover {
	transform: scale(1.015);
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.avnews-newspaper-cover-link {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
	text-decoration: none;
}

.avnews-newspaper-cover-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Cover Fallback Masthead */
.avnews-cover-fallback-masthead {
	width: 100%;
	height: 100%;
	background: #FAFAFA;
	padding: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #111827;
}

.avnews-masthead-badge {
	font-size: 28px;
	font-weight: 900;
	margin-bottom: 6px;
}

.avnews-red-txt {
	color: var(--avnews-red);
}

.avnews-masthead-sub {
	font-size: 14px;
	font-weight: 700;
	color: #4B5563;
	margin: 0 0 4px 0;
}

.avnews-masthead-date {
	font-size: 12px;
	color: #6B7280;
	margin-bottom: 16px;
}

.avnews-masthead-read-hint {
	font-size: 12px;
	font-weight: 700;
	color: var(--avnews-red);
	background: var(--avnews-red-soft);
	padding: 6px 14px;
	border-radius: 999px;
}

/* Badges on Cover Frame */
.avnews-frame-badges {
	position: absolute;
	top: 10px;
	left: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	pointer-events: none;
	z-index: 2;
}

.avnews-edition-city-badge {
	background: rgba(17, 24, 39, 0.85);
	color: #FFFFFF;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 4px;
	backdrop-filter: blur(4px);
}

.avnews-edition-pages-badge {
	background: var(--avnews-red);
	color: #FFFFFF;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 4px;
	box-shadow: 0 2px 6px rgba(215, 25, 32, 0.4);
}

/* Hover Overlay */
.avnews-frame-hover-overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: var(--avnews-transition);
	z-index: 3;
}

.avnews-newspaper-frame:hover .avnews-frame-hover-overlay {
	opacity: 1;
}

.avnews-overlay-read-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--avnews-red);
	color: #FFFFFF;
	font-size: 14px;
	font-weight: 700;
	padding: 10px 22px;
	border-radius: 999px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
	transform: translateY(6px);
	transition: var(--avnews-transition);
}

.avnews-newspaper-frame:hover .avnews-overlay-read-pill {
	transform: translateY(0);
}

/* Mobile-only CTA & Share elements under cover (hidden on desktop) */
.avnews-mobile-cover-actions {
	display: none;
}

.avnews-mobile-share-strip {
	display: none;
}

/* Right Column: 2x2 Feature Action Cards Grid */
.avnews-showcase-features-col {
	width: 100%;
}

.avnews-features-2x2-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
}

.avnews-action-box {
	background: #FAFAFA;
	border: 1px solid var(--avnews-border-light);
	border-radius: var(--avnews-radius-md);
	padding: 22px 20px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	transition: var(--avnews-transition);
}

.avnews-action-box:hover {
	background: #FFFFFF;
	border-color: var(--avnews-red-border);
	transform: translateY(-2px);
	box-shadow: var(--avnews-shadow-md);
}

.avnews-action-icon-circle {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--avnews-red);
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 3px 10px rgba(215, 25, 32, 0.25);
}

.avnews-action-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-align: left;
}

.avnews-action-title {
	font-size: 16.5px;
	font-weight: 800;
	color: #111827;
	margin: 0;
}

.avnews-action-desc {
	font-size: 12.5px;
	color: #4B5563;
	margin: 0;
	line-height: 1.45;
}

/* Card 1: Solid Red Pill Button */
.avnews-btn-action-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: var(--avnews-red);
	color: #FFFFFF !important;
	font-size: 13px;
	font-weight: 700;
	padding: 9px 20px;
	border-radius: var(--avnews-radius-sm);
	text-decoration: none !important;
	box-shadow: 0 4px 12px rgba(215, 25, 32, 0.28);
	transition: var(--avnews-transition);
	margin-top: auto;
}

.avnews-btn-action-primary:hover {
	background: var(--avnews-red-hover);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(215, 25, 32, 0.38);
	color: #FFFFFF !important;
}

/* Card 2 & 4: White Outline Button */
.avnews-btn-action-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: #FFFFFF;
	border: 1px solid var(--avnews-border-light);
	color: #1F2937 !important;
	font-size: 13px;
	font-weight: 700;
	padding: 9px 18px;
	border-radius: var(--avnews-radius-sm);
	text-decoration: none !important;
	box-shadow: var(--avnews-shadow-sm);
	transition: var(--avnews-transition);
	margin-top: auto;
}

.avnews-btn-action-outline:hover {
	border-color: var(--avnews-red);
	color: var(--avnews-red) !important;
	background: #FFFFFF;
	transform: translateY(-1px);
	box-shadow: var(--avnews-shadow-md);
}

/* Card 3: Social Share Circular Buttons Row */
#avnews-epaper-app .avnews-social-icons-row,
.avnews-social-icons-row {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	flex-wrap: nowrap !important;
	margin-top: auto;
}

#avnews-epaper-app button.avnews-social-btn,
#avnews-epaper-app a.avnews-social-btn,
#avnews-epaper-app .avnews-social-btn,
button.avnews-social-btn,
a.avnews-social-btn,
.avnews-social-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	max-width: 38px !important;
	min-height: 38px !important;
	max-height: 38px !important;
	border-radius: 50% !important;
	padding: 0 !important;
	margin: 0 !important;
	box-sizing: border-box !important;
	cursor: pointer !important;
	text-decoration: none !important;
	transition: all 0.22s ease !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
	flex: 0 0 38px !important;
	flex-shrink: 0 !important;
	border: none !important;
	outline: none !important;
	line-height: 1 !important;
	vertical-align: middle !important;
}

#avnews-epaper-app .avnews-social-btn svg,
.avnews-social-btn svg {
	display: block !important;
	flex-shrink: 0 !important;
	margin: auto !important;
}

#avnews-epaper-app .avnews-social-btn.whatsapp,
.avnews-social-btn.whatsapp {
	background: #25D366 !important;
	color: #FFFFFF !important;
}

#avnews-epaper-app .avnews-social-btn.facebook,
.avnews-social-btn.facebook {
	background: #1877F2 !important;
	color: #FFFFFF !important;
}

#avnews-epaper-app .avnews-social-btn.twitter,
.avnews-social-btn.twitter {
	background: #000000 !important;
	color: #FFFFFF !important;
}

#avnews-epaper-app button.avnews-social-btn.copy-link,
#avnews-epaper-app .avnews-social-btn.copy-link,
button.avnews-social-btn.copy-link,
.avnews-social-btn.copy-link {
	background: #374151 !important;
	color: #FFFFFF !important;
	border: 1.5px solid #4B5563 !important;
}

#avnews-epaper-app .avnews-social-btn.copy-link svg,
.avnews-social-btn.copy-link svg {
	width: 16px !important;
	height: 16px !important;
	stroke: #FFFFFF !important;
	stroke-width: 2.2 !important;
	fill: none !important;
}

#avnews-epaper-app .avnews-social-btn:hover,
.avnews-social-btn:hover {
	transform: translateY(-2px) scale(1.08) !important;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25) !important;
}

#avnews-epaper-app button.avnews-social-btn.copy-link:hover,
#avnews-epaper-app button.avnews-social-btn.copy-link.is-copied,
#avnews-epaper-app .avnews-social-btn.copy-link:hover,
#avnews-epaper-app .avnews-social-btn.copy-link.is-copied,
.avnews-social-btn.copy-link:hover,
.avnews-social-btn.copy-link.is-copied {
	background: var(--avnews-red) !important;
	border-color: var(--avnews-red) !important;
	color: #FFFFFF !important;
	box-shadow: 0 4px 14px rgba(215, 25, 32, 0.45) !important;
}

/* ==========================================================================
   7. Previous Editions Archive Carousel
   ========================================================================== */

.avnews-archive-section-wrapper {
	margin-bottom: 36px;
}

.avnews-archive-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.avnews-archive-title {
	font-size: clamp(20px, 2.5vw, 24px);
	font-weight: 800;
	color: #111827;
	margin: 0;
	letter-spacing: -0.3px;
}

.avnews-archive-see-all-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--avnews-red) !important;
	text-decoration: none;
	transition: var(--avnews-transition);
}

.avnews-archive-see-all-link:hover {
	color: var(--avnews-red-hover) !important;
	text-decoration: none;
	gap: 7px;
}

/* Carousel Outer with Side Floating Navigation Arrows */
.avnews-archive-carousel-outer {
	position: relative;
	width: 100%;
	padding: 0 4px;
}

#avnews-epaper-app button.avnews-carousel-nav-btn,
#avnews-epaper-app .avnews-carousel-nav-btn,
button.avnews-carousel-nav-btn,
.avnews-carousel-nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px !important;
	height: 40px !important;
	min-width: 40px !important;
	max-width: 40px !important;
	min-height: 40px !important;
	max-height: 40px !important;
	border-radius: 50% !important;
	background: #FFFFFF !important;
	border: 1.5px solid #D1D5DB !important;
	color: #1F2937 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
	z-index: 10 !important;
	padding: 0 !important;
	margin: 0 !important;
	transition: all 0.22s ease !important;
	outline: none !important;
}

#avnews-epaper-app button.avnews-carousel-nav-btn svg,
#avnews-epaper-app .avnews-carousel-nav-btn svg,
.avnews-carousel-nav-btn svg {
	width: 18px !important;
	height: 18px !important;
	stroke: currentColor !important;
	stroke-width: 2.5 !important;
	fill: none !important;
	display: block !important;
	margin: auto !important;
	transition: transform 0.2s ease;
}

#avnews-epaper-app button.avnews-carousel-nav-btn:hover:not(:disabled):not(.is-disabled),
#avnews-epaper-app .avnews-carousel-nav-btn:hover:not(:disabled):not(.is-disabled),
.avnews-carousel-nav-btn:hover:not(:disabled):not(.is-disabled) {
	background: var(--avnews-red) !important;
	border-color: var(--avnews-red) !important;
	color: #FFFFFF !important;
	box-shadow: 0 6px 18px rgba(215, 25, 32, 0.4) !important;
	transform: translateY(-50%) scale(1.08) !important;
}

#avnews-epaper-app button.avnews-carousel-nav-btn.avnews-carousel-prev,
.avnews-carousel-nav-btn.avnews-carousel-prev {
	left: -12px;
}

#avnews-epaper-app button.avnews-carousel-nav-btn.avnews-carousel-prev:hover svg,
.avnews-carousel-nav-btn.avnews-carousel-prev:hover svg {
	transform: translateX(-2px);
}

#avnews-epaper-app button.avnews-carousel-nav-btn.avnews-carousel-next,
.avnews-carousel-nav-btn.avnews-carousel-next {
	right: -12px;
}

#avnews-epaper-app button.avnews-carousel-nav-btn.avnews-carousel-next:hover svg,
.avnews-carousel-nav-btn.avnews-carousel-next:hover svg {
	transform: translateX(2px);
}

#avnews-epaper-app button.avnews-carousel-nav-btn:disabled,
#avnews-epaper-app button.avnews-carousel-nav-btn.is-disabled,
.avnews-carousel-nav-btn:disabled,
.avnews-carousel-nav-btn.is-disabled {
	opacity: 0.35 !important;
	cursor: default !important;
	pointer-events: none !important;
	border-color: #E5E7EB !important;
	color: #9CA3AF !important;
	box-shadow: none !important;
}

/* Archive Track */
.avnews-archive-track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 4px 2px 14px 2px;
}

.avnews-archive-track::-webkit-scrollbar {
	display: none;
}

/* Individual Archive Card */
.avnews-archive-card {
	flex: 0 0 175px;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	text-decoration: none;
}

.avnews-archive-card-link {
	display: flex;
	flex-direction: column;
	text-decoration: none !important;
	color: inherit;
}

.avnews-archive-card-thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1.38;
	background: #F3F4F6;
	border: 1px solid var(--avnews-border-light);
	border-radius: var(--avnews-radius-sm);
	overflow: hidden;
	box-shadow: var(--avnews-shadow-sm);
	transition: var(--avnews-transition);
}

.avnews-archive-card:hover .avnews-archive-card-thumb {
	transform: translateY(-3px);
	border-color: var(--avnews-red-border);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.avnews-archive-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.avnews-archive-thumb-fallback {
	width: 100%;
	height: 100%;
	background: #FAFAFA;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 10px;
	text-align: center;
}

.avnews-archive-thumb-fallback .fallback-masthead {
	font-size: 15px;
	font-weight: 900;
	margin-bottom: 4px;
}

.avnews-archive-thumb-fallback .red-mark {
	color: var(--avnews-red);
}

.avnews-archive-thumb-fallback .fallback-city {
	font-size: 11px;
	font-weight: 600;
	color: #6B7280;
}

.avnews-archive-thumb-fallback .fallback-pages {
	font-size: 10px;
	color: #9CA3AF;
	margin-top: 2px;
}

.avnews-archive-city-pill {
	position: absolute;
	top: 6px;
	left: 6px;
	background: var(--avnews-red);
	color: #FFFFFF;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	z-index: 2;
}

.avnews-archive-pages-pill {
	position: absolute;
	bottom: 6px;
	right: 6px;
	background: rgba(17, 24, 39, 0.85);
	color: #FFFFFF;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 4px;
}

.avnews-archive-hover-badge {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0.55);
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 700;
	opacity: 0;
	transition: var(--avnews-transition);
}

.avnews-archive-card:hover .avnews-archive-hover-badge {
	opacity: 1;
}

/* Card Caption (Date + Weekday) */
.avnews-archive-card-body {
	padding: 8px 4px 0 4px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.avnews-archive-date-full {
	font-size: 12.5px;
	font-weight: 700;
	color: #1F2937;
	line-height: 1.3;
}

.avnews-archive-date-mobile {
	display: none;
	font-size: 12px;
	font-weight: 700;
	color: #1F2937;
	line-height: 1.3;
}

.avnews-archive-weekday {
	font-size: 11.5px;
	font-weight: 500;
	color: #6B7280;
	line-height: 1.2;
	margin-top: 2px;
}

/* ==========================================================================
   8. Latest News Section
   ========================================================================== */

.avnews-news-section {
	margin-bottom: 40px;
}

.avnews-news-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 24px;
}

.avnews-epaper-section-tag {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	color: var(--avnews-red);
	text-transform: uppercase;
	letter-spacing: 0.8px;
	background: var(--avnews-red-soft);
	padding: 3px 8px;
	border-radius: 4px;
	margin-bottom: 4px;
}

.avnews-news-title {
	font-size: clamp(20px, 2.5vw, 24px);
	font-weight: 800;
	color: var(--avnews-dark);
	margin: 4px 0 0 0;
}

.avnews-news-subtitle {
	font-size: 13px;
	color: var(--avnews-text-muted);
	margin: 4px 0 0 0;
}

.avnews-news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.avnews-news-card {
	background: var(--avnews-bg-card);
	border: 1px solid var(--avnews-border-light);
	border-radius: var(--avnews-radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--avnews-shadow-sm);
	transition: var(--avnews-transition);
}

.avnews-news-card:hover {
	transform: translateY(-3px);
	border-color: var(--avnews-red-border);
	box-shadow: var(--avnews-shadow-md);
}

.avnews-news-thumb-link {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #F3F4F6;
	overflow: hidden;
}

.avnews-news-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: var(--avnews-transition);
}

.avnews-news-card:hover .avnews-news-img {
	transform: scale(1.04);
}

.avnews-news-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.avnews-news-meta {
	display: flex;
	align-items: center;
	gap: 8px;
}

.avnews-news-cat-pill {
	font-size: 11px;
	font-weight: 700;
	color: var(--avnews-red);
	background: var(--avnews-red-soft);
	padding: 2px 7px;
	border-radius: 4px;
}

.avnews-news-time {
	font-size: 11px;
	color: var(--avnews-text-muted);
}

.avnews-news-post-title {
	font-size: 15px;
	font-weight: 800;
	line-height: 1.35;
	margin: 0;
}

.avnews-news-post-title a {
	color: var(--avnews-dark);
	text-decoration: none;
	transition: var(--avnews-transition);
}

.avnews-news-post-title a:hover {
	color: var(--avnews-red);
}

.avnews-news-excerpt {
	font-size: 13px;
	color: var(--avnews-text-secondary);
	margin: 0;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.avnews-news-read-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--avnews-red);
	text-decoration: none;
	margin-top: auto;
	padding-top: 6px;
	transition: var(--avnews-transition);
}

.avnews-news-read-more:hover {
	gap: 10px;
	color: var(--avnews-red-hover);
	text-decoration: none;
}

/* ==========================================================================
   9. Mobile App Modal & Toast Notifications
   ========================================================================== */

.avnews-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(17, 24, 39, 0.65);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	padding: 16px;
}

.avnews-modal-box {
	background: #FFFFFF;
	border-radius: var(--avnews-radius-lg);
	padding: 32px 28px;
	max-width: 440px;
	width: 100%;
	position: relative;
	text-align: center;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
	animation: avnews-scale-up 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes avnews-scale-up {
	from {
		opacity: 0;
		transform: scale(0.92);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

.avnews-modal-close-btn {
	position: absolute;
	top: 14px;
	right: 14px;
	background: transparent;
	border: none;
	font-size: 24px;
	color: var(--avnews-text-muted);
	cursor: pointer;
	line-height: 1;
	padding: 4px;
}

.avnews-modal-close-btn:hover {
	color: var(--avnews-dark);
}

.avnews-modal-graphic {
	display: flex;
	justify-content: center;
	margin-bottom: 16px;
}

.avnews-modal-icon-pill {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--avnews-red-soft);
	display: flex;
	align-items: center;
	justify-content: center;
}

.avnews-modal-title {
	font-size: 20px;
	font-weight: 800;
	color: var(--avnews-dark);
	margin: 0 0 8px 0;
}

.avnews-modal-desc {
	font-size: 14px;
	color: var(--avnews-text-secondary);
	line-height: 1.5;
	margin: 0 0 20px 0;
}

.avnews-app-badges {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.avnews-app-badge-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 10px 16px;
	border-radius: var(--avnews-radius-sm);
	background: #111827;
	color: #FFFFFF !important;
	text-decoration: none;
	transition: var(--avnews-transition);
}

.avnews-app-badge-btn:hover {
	background: #1F2937;
	transform: translateY(-1px);
	text-decoration: none;
}

.avnews-badge-txt {
	display: flex;
	flex-direction: column;
	text-align: left;
}

.avnews-badge-txt .sub {
	font-size: 10px;
	letter-spacing: 0.5px;
	opacity: 0.8;
}

.avnews-badge-txt .main {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.1;
}

.avnews-toast {
	position: fixed;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%) translateY(100px);
	background: #111827;
	color: #FFFFFF;
	padding: 10px 20px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 600;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	z-index: 9999999;
	opacity: 0;
	pointer-events: none;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.avnews-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.avnews-toast-icon {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #10B981;
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 800;
}

/* ==========================================================================
   10. Mobile Responsive Layouts (Matching Screen 2 of Reference Image)
   ========================================================================== */

@media (max-width: 1024px) {
	.avnews-edition-showcase-card {
		grid-template-columns: 300px 1fr;
		gap: 24px;
		padding: 20px;
	}

	.avnews-features-2x2-grid {
		gap: 12px;
	}

	.avnews-news-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {

	#avnews-epaper-app,
	.avnews-epaper-container {
		padding: 0 12px;
		margin-top: 10px;
	}

	.avnews-logo-av,
	.avnews-logo-news {
		font-size: 22px;
	}

	/* Mobile Hero Banner */
	.avnews-dark-hero-section {
		background-color: #0B0D11;
		background-image:
			linear-gradient(135deg, rgba(11, 13, 17, 0.96) 0%, rgba(26, 10, 15, 0.92) 50%, rgba(42, 8, 13, 0.88) 100%),
			var(--avnews-hero-banner-url, url('../../assets/images/hero-banner.webp')) !important;
		background-position: center right !important;
		background-size: cover !important;
		background-repeat: no-repeat !important;
		padding: 24px 20px;
		margin-bottom: 20px;
	}

	.avnews-dark-hero-inner {
		display: block;
		width: 100%;
		max-width: 100%;
	}

	.avnews-hero-brand-mark {
		font-size: 32px;
		margin-bottom: 6px;
	}

	.avnews-hero-headline {
		font-size: 20px;
		margin-bottom: 8px;
		line-height: 1.3;
		color: #FFFFFF !important;
	}

	.avnews-hero-tagline {
		font-size: 13px;
		margin-bottom: 16px;
		color: #E2E8F0 !important;
	}

	.avnews-hero-pill-badges {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}

	.avnews-hero-badge-pill {
		padding: 6px 12px;
		font-size: 12px;
		background: rgba(255, 255, 255, 0.14) !important;
		color: #FFFFFF !important;
		border: 1px solid rgba(255, 255, 255, 0.28) !important;
	}

	.avnews-hero-badge-pill svg {
		width: 13px;
		height: 13px;
	}

	/* Mobile City Selector: Horizontal Scrollable Row */
	.avnews-epaper-cities-grid {
		display: flex;
		gap: 10px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 4px;
	}

	.avnews-epaper-cities-grid::-webkit-scrollbar {
		display: none;
	}

	.avnews-epaper-city-card {
		flex: 0 0 155px;
		scroll-snap-align: start;
		padding: 10px 12px;
		gap: 8px;
	}

	.avnews-city-landmark-wrap {
		width: 36px;
		height: 36px;
	}

	.avnews-city-name-hindi {
		font-size: 15px;
	}

	.avnews-city-name-eng {
		font-size: 11px;
	}

	/* Mobile Today's Header Bar */
	.avnews-today-header-bar {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.avnews-today-header-right {
		justify-content: space-between;
		width: 100%;
	}

	/* Mobile Edition Showcase Stack */
	.avnews-edition-showcase-card {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 16px;
	}

	.avnews-newspaper-frame {
		max-width: 100%;
		border-radius: var(--avnews-radius-sm);
	}

	/* Show Mobile Dual CTA Buttons under cover */
	.avnews-mobile-cover-actions {
		display: flex;
		align-items: center;
		gap: 10px;
		width: 100%;
		margin-top: 14px;
	}

	.avnews-mobile-btn-read {
		flex: 1;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		background: var(--avnews-red);
		color: #FFFFFF !important;
		font-size: 14px;
		font-weight: 700;
		padding: 12px 16px;
		border-radius: var(--avnews-radius-sm);
		text-decoration: none !important;
		box-shadow: 0 4px 12px rgba(215, 25, 32, 0.3);
	}

	.avnews-mobile-btn-dl {
		flex: 1;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		background: #FFFFFF;
		border: 1.5px solid #D1D5DB;
		color: #1F2937 !important;
		font-size: 14px;
		font-weight: 700;
		padding: 12px 16px;
		border-radius: var(--avnews-radius-sm);
		text-decoration: none !important;
	}

	/* Show Mobile Share Strip under dual buttons */
	.avnews-mobile-share-strip {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		margin-top: 14px;
		padding-top: 12px;
		border-top: 1px dashed var(--avnews-border-light);
	}

	.avnews-mobile-share-strip .avnews-share-label {
		font-size: 13px;
		font-weight: 700;
		color: #4B5563;
	}

	/* Hide desktop 2x2 grid on mobile */
	.avnews-showcase-features-col {
		display: none;
	}

	/* Mobile Archive Carousel */
	.avnews-carousel-nav-btn {
		display: none;
		/* Use touch swipe on mobile */
	}

	.avnews-archive-card {
		flex: 0 0 135px;
	}

	.avnews-archive-date-full {
		display: none;
	}

	.avnews-archive-date-mobile {
		display: block;
	}

	.avnews-news-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

@media (max-width: 480px) {
	.avnews-site-header {
		padding: 8px 12px;
	}

	.avnews-today-section-heading {
		font-size: 19px;
	}

	.avnews-btn-select-date {
		font-size: 12px;
		padding: 6px 12px;
	}

	.avnews-date-indicator-badge {
		font-size: 12px;
		padding: 6px 10px;
	}
}