/*
Theme Name: Beed News Express Child
Description: Responsive Marathi news presentation for Beed News Express.
Template: newspack-theme
Version: 1.0.0
Text Domain: beed-news-express-child
*/

:root {
	--bne-red: #b51f2b;
	--bne-ink: #202725;
	--bne-muted: #58615e;
	--bne-line: #d9dfdc;
	--bne-green: #15803d;
}

body {
	color: var(--bne-ink);
}

h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.page-title {
	margin-block-start: 0;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: 0;
	text-align: left;
	text-wrap: balance;
	overflow-wrap: anywhere;
}

.entry-content h2 {
	font-size: clamp(1.35rem, 2.8vw, 1.8rem);
	margin-block: 1.75em 0.65em;
}

.entry-content h3 {
	font-size: clamp(1.2rem, 2.3vw, 1.5rem);
	margin-block: 1.5em 0.6em;
}

.entry-content h4,
.entry-content h5,
.entry-content h6 {
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	margin-block: 1.35em 0.55em;
}

.site-header .site-branding {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 1rem;
	text-align: left;
	min-width: 0;
}

.site-header .middle-header-contain > .wrapper,
.site-header .bottom-header-contain > .wrapper {
	align-items: center;
}

.site-header .middle-header-contain {
	padding-block: 0.75rem;
}

.site-header .custom-logo {
	width: auto !important;
	height: auto !important;
	max-width: min(28vw, 220px) !important;
	max-height: 96px !important;
	object-fit: contain;
}

.site-header .site-identity {
	flex: 0 1 auto;
	text-align: left;
}

.site-header .site-title {
	font-size: 1.4rem;
	line-height: 1.4;
	margin: 0;
}

.site-header .site-description {
	line-height: 1.5;
	margin: 0.15rem 0 0;
	max-width: 52ch;
	color: var(--bne-muted);
	text-align: left;
}

.main-navigation .main-menu {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.15rem 0.5rem;
}

.main-navigation .main-menu > li > a {
	min-height: 44px;
	padding: 0.65rem 0.5rem;
	line-height: 1.5;
}

.home .wpnbha .post-thumbnail {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	min-height: 0 !important;
	align-self: flex-start;
	aspect-ratio: 4 / 3;
	margin: 0 0 0.5rem;
	overflow: hidden;
	background: #f0f2f1;
}

.home .wpnbha .post-thumbnail > a {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.home .wpnbha .post-thumbnail img {
	display: block;
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	object-position: center;
}

.home .bne-story-card img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: contain;
	background: #f0f2f1;
}

.bne-home-category {
	margin-block: 2rem;
	padding-block: 1rem;
	border-top: 1px solid var(--bne-line);
}

.bne-home-category > header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.bne-home-category h2 {
	margin: 0;
	font-size: 1.4rem;
	line-height: 1.5;
}

.bne-home-category h2 a,
.bne-category-more {
	color: inherit;
	text-decoration: none;
}

.bne-category-more {
	flex: 0 0 auto;
	font-weight: 700;
}

.bne-home-category .bne-category-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.site-footer .custom-logo {
	width: auto !important;
	height: auto !important;
	max-width: 180px !important;
	max-height: 72px !important;
	object-fit: contain;
}

.site-footer .site-info,
.site-footer .site-branding {
	text-align: left;
}

.site-footer .site-branding .wrapper,
.site-footer .site-info-contain {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
}

.site-footer .site-description,
.site-footer .site-title,
.site-footer p {
	line-height: 1.6;
}

.site-footer h2,
.site-footer h3,
.site-footer h4 {
	font-size: 1.1rem;
	line-height: 1.5;
}

.bne-sitewide-ad {
	width: 100%;
	padding: 0.85rem 1rem;
	border-block: 1px solid var(--bne-line);
	background: #f7f8f7;
}

.main-navigation .bne-dynamic-category > a {
	font-weight: 700;
}

.bne-sitewide-ad-inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
	width: min(100%, 1200px);
	min-height: 92px;
	margin-inline: auto;
	padding: 1.25rem 1rem 0.75rem;
	background: #fff;
	text-align: left;
}

.bne-sitewide-ad-inner > a {
	display: flex;
	align-items: center;
	gap: 1rem;
	width: 100%;
	color: inherit;
	text-decoration: none;
}

.bne-sitewide-ad img {
	flex: 0 0 auto;
	width: min(180px, 28vw);
	height: 72px;
	object-fit: contain;
}

.bne-sitewide-ad-label {
	position: absolute;
	top: 0.25rem;
	left: 1rem;
	color: var(--bne-muted);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bne-sitewide-ad-title,
.bne-sitewide-ad-copy p {
	margin: 0;
	line-height: 1.5;
}

.bne-sitewide-ad-title {
	font-size: clamp(1rem, 2.2vw, 1.25rem);
	font-weight: 700;
}

.bne-sitewide-ad-copy p + p {
	margin-top: 0.25rem;
}

.bne-footer-links {
	border-top: 1px solid var(--bne-line);
	margin: 2rem auto 0;
	max-width: none;
	padding: 1rem max(1.25rem, calc((100vw - 1200px) / 2));
	background: #f7f8f7;
}

.bne-footer-links ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bne-footer-links a {
	color: inherit;
	text-decoration: none;
}

.bne-footer-links a:hover {
	color: var(--bne-red);
}

.single-post .site-branding .custom-logo {
	max-width: min(28vw, 220px) !important;
	max-height: 96px !important;
	width: auto;
	object-fit: contain;
}

.single-post .site-header .site-branding {
	min-height: 86px;
}

.single-post .featured-image-above {
	padding-top: clamp(1.5rem, 4vw, 3rem);
}

.single-post .featured-image-above .entry-header,
.single-post .main-content,
.single-post .entry-footer,
.single-post .author-bio,
.single-post .post-navigation {
	width: min(calc(100% - 2rem), 820px);
	margin-inline: auto;
}

.single-post .featured-image-above .entry-header {
	margin-bottom: clamp(1.25rem, 3vw, 2rem);
	text-align: left;
}

.single-post .entry-header .cat-links {
	display: inline-flex;
	margin-bottom: 0.65rem;
	color: var(--bne-red);
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.03em;
}

.single-post .entry-header .entry-subhead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	margin-top: 1rem;
	padding-top: 0.85rem;
	border-top: 1px solid var(--bne-line);
}

.single-post .entry-header .entry-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem 0.75rem;
	color: var(--bne-muted);
	font-size: 0.9rem;
	line-height: 1.5;
}

.single-post .entry-header .author-avatar img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
}

.single-post .entry-title,
.single-post .entry-content h2,
.single-post .entry-content h3 {
	line-height: 1.45;
	letter-spacing: 0;
	word-break: normal;
	overflow-wrap: anywhere;
}

.single-post .entry-title {
	font-size: clamp(1.75rem, 4vw, 2.65rem);
	margin-bottom: 0;
}

.single-post .entry-content {
	font-size: 1.15rem;
	line-height: 1.9;
}

.single-post .entry-content > * {
	max-width: 100%;
}

.single-post .entry-content > p,
.single-post .entry-content > ul,
.single-post .entry-content > ol,
.single-post .entry-content > blockquote {
	margin-block: 0 1.25em;
}

.single-post .featured-image-above .post-thumbnail {
	position: relative;
	width: min(90vw, 960px) !important;
	max-width: 960px !important;
	aspect-ratio: 16 / 9;
	margin: 0 auto clamp(1.5rem, 4vw, 2.5rem) !important;
	overflow: hidden;
	background: #f0f2f1;
}

.single-post .featured-image-above .post-thumbnail > a {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.single-post .featured-image-above .post-thumbnail img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	object-position: center;
}

.bne-breaking-news,
.bne-top-stories,
.bne-video-news {
	margin-block: 1.5rem;
	padding-block: 1rem;
	border-block: 1px solid var(--bne-line);
}

.bne-breaking-news h2,
.bne-top-stories h2,
.bne-video-news h2 {
	margin: 0 0 0.75rem;
	font-size: 1.35rem;
	line-height: 1.5;
}

.bne-breaking-news {
	border-inline-start: 4px solid var(--bne-red);
	padding-inline: 1rem;
}

.bne-breaking-news ul {
	display: flex;
	gap: 1rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	flex-wrap: wrap;
}

.bne-breaking-news li {
	min-width: 0;
	max-width: 100%;
}

.bne-breaking-news a,
.bne-story-card a,
.bne-video-news a {
	color: inherit;
	text-decoration: none;
}

.bne-breaking-news a:hover,
.bne-story-card a:hover h3,
.bne-video-news a:hover {
	color: var(--bne-red);
}

.bne-story-track {
	display: grid;
	grid-auto-columns: minmax(220px, 1fr);
	grid-auto-flow: column;
	gap: 1rem;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scroll-snap-type: inline mandatory;
	padding-bottom: 0.75rem;
}

.bne-story-card {
	min-width: 0;
	scroll-snap-align: start;
}

.bne-story-card img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10.5;
	object-fit: cover;
}

.bne-story-card h3,
.bne-video-news h3 {
	font-size: 1.1rem;
	line-height: 1.5;
}

.bne-video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 1.25rem;
}

.bne-video-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #171b19;
}

.bne-video-frame iframe,
.bne-video-frame video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.bne-article-video {
	margin-block: 2rem;
}

.bne-article-video h2 {
	font-size: clamp(1.25rem, 4vw, 1.6rem);
	line-height: 1.5;
}

.bne-social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-block: 1rem;
}

.bne-social-links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.55rem 0.85rem;
	border: 1px solid var(--bne-line);
	border-radius: 4px;
	color: var(--bne-ink);
	font-weight: 700;
	text-decoration: none;
}

.bne-social-links a:hover {
	border-color: var(--bne-red);
	color: var(--bne-red);
}

.bne-article-share {
	display: block;
	margin-block: 2.5rem 1rem;
	padding: 1.25rem;
	border: 1px solid var(--bne-line);
	border-radius: 8px;
	background: #f7f8f7;
}

.bne-article-share-title {
	margin: 0 0 0.85rem !important;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.5;
}

.bne-article-share-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.bne-article-share a,
.bne-whatsapp-float,
.bne-whatsapp-channel {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.6rem 0.9rem;
	border-radius: 4px;
	font-weight: 700;
	text-decoration: none;
}

.bne-article-share a {
	border: 1px solid var(--bne-line);
	background: #fff;
	color: var(--bne-ink);
}

.bne-article-share .bne-share-whatsapp,
.bne-whatsapp-float,
.bne-whatsapp-channel {
	background: var(--bne-green);
	color: #fff;
}

.bne-article-share .bne-share-facebook {
	border-color: #1877f2;
	background: #1877f2;
	color: #fff;
}

.bne-article-share .bne-share-x {
	border-color: #111;
	background: #111;
	color: #fff;
}

.bne-share-mark {
	display: inline-grid;
	place-items: center;
	width: 1.6rem;
	height: 1.6rem;
	border: 1px solid rgb(255 255 255 / 55%);
	border-radius: 50%;
	font-size: 0.8rem;
	font-weight: 900;
}

.single-post .post-navigation {
	margin-block: 2rem;
	padding-block: 1.25rem;
	border-block: 1px solid var(--bne-line);
}

.single-post .post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.single-post .post-navigation a {
	display: block;
	color: var(--bne-ink);
	text-decoration: none;
}

.single-post .post-navigation .meta-nav {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--bne-muted);
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
}

.site-footer {
	margin-top: 0;
}

.site-footer .footer-branding,
.site-footer .footer-widgets,
.site-footer .site-info {
	padding-block: clamp(1rem, 3vw, 1.75rem);
}

.site-footer .footer-widgets .widget {
	margin-bottom: 1rem;
}

.bne-whatsapp-float {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 99;
	box-shadow: 0 2px 8px rgb(0 0 0 / 22%);
}

.bne-whatsapp-float:focus-visible,
.bne-whatsapp-channel:focus-visible,
.bne-article-share a:focus-visible,
.bne-breaking-news a:focus-visible,
.bne-story-track:focus-visible {
	outline: 3px solid #f5b700;
	outline-offset: 3px;
}

@media (max-width: 600px) {
	.site-header .site-branding {
		gap: 0.6rem;
	}

	.site-header .custom-logo {
		max-width: min(42vw, 150px) !important;
		max-height: 75px !important;
	}

	.site-header .site-title {
		font-size: 1rem;
		line-height: 1.4;
	}

	.site-header .site-description {
		font-size: 0.85rem;
	}

	.main-navigation .main-menu > li > a {
		min-height: 44px;
	}

	.single-post .site-branding .custom-logo {
		max-width: min(42vw, 150px) !important;
		max-height: 75px !important;
	}

	.single-post .site-header .site-branding {
		min-height: 64px;
	}

	.single-post .entry-title {
		font-size: 1.65rem;
	}

	.single-post .entry-content {
		font-size: 1.05rem;
		line-height: 1.85;
	}

	.bne-breaking-news ul {
		display: block;
	}

	.bne-home-category .bne-category-grid {
		grid-template-columns: 1fr;
	}

	.bne-breaking-news li + li {
		margin-top: 0.5rem;
	}

	.bne-whatsapp-float {
		right: 0.75rem;
		bottom: 0.75rem;
	}

	.single-post .entry-header .entry-subhead,
	.bne-article-share-buttons {
		align-items: stretch;
		flex-direction: column;
	}

	.bne-article-share a {
		width: 100%;
	}

	.single-post .post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	.bne-sitewide-ad-inner,
	.bne-sitewide-ad-inner > a {
		align-items: flex-start;
		flex-direction: column;
	}

	.bne-sitewide-ad img {
		width: 100%;
		height: auto;
		max-height: 140px;
	}

	.site-footer .site-branding .wrapper,
	.site-footer .site-info-contain {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (min-width: 601px) and (max-width: 1023px) {
	.bne-home-category .bne-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
