/*
Theme Name: Jagaran News
Theme URI: https://jagarantripura.com/
Author: Jagaran
Description: Newspaper front page for Jagaran Tripura. Same categories, with advertisement slots.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 7.1
Text Domain: jagaran-news
*/

:root {
	--ink: #111;
	--muted: #5c5c5c;
	--line: #e4e4e4;
	--paper: #fff;
	--red: #e10600;
	--max: 1160px;
	--serif: "Noto Serif Bengali", "Noto Sans Bengali", serif;
	--sans: "Noto Sans Bengali", "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	color: var(--ink);
	background: var(--paper);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.mast { background: #fff; }
.mast-row {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 96px;
	padding: 14px 0 10px;
}
.logo { display: block; line-height: 0; }
.logo img { width: min(460px, 62vw); height: auto; }

.navwrap { background: #fff; position: sticky; top: 0; z-index: 30; border-bottom: 1px solid #eee; }
.nav-bar { position: relative; }
.nav-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	border: 0;
	background: transparent;
	padding: 12px 0;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.nav-bars { display: flex; flex-direction: column; gap: 4px; }
.nav-bars span { display: block; width: 18px; height: 2px; background: #111; }
.navwrap .menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}
.navwrap .menu > li { position: relative; }
.navwrap .menu > li > a {
	display: block;
	padding: 12px 14px 10px;
	font-size: 15px;
	font-weight: 500;
	color: #222;
	border-bottom: 3px solid transparent;
}
.navwrap .menu > li > a:hover,
.navwrap .current-menu-item > a,
.navwrap .current-menu-ancestor > a { color: var(--red); border-bottom-color: var(--red); }
.navwrap .sub-menu {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 180px;
	background: #fff;
	border: 1px solid var(--line);
	list-style: none;
	margin: 0;
	padding: 6px 0;
	z-index: 40;
}
.navwrap li:hover > .sub-menu { display: block; }
.navwrap .sub-menu a { display: block; padding: 8px 14px; font-size: 14px; }
.navrule { height: 3px; background: var(--red); }

.leaderboard { margin: 16px auto; }
.jg-ad { text-align: center; }

.hero {
	display: grid;
	grid-template-columns: 1.55fr 0.85fr;
	gap: 28px;
	margin: 22px auto 8px;
	align-items: start;
}
.lead-photo { display: block; margin-bottom: 12px; background: #f2f2f2; }
.lead-photo img, .feature img, .story-hero { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.kicker { color: var(--red); font-size: 13px; font-weight: 700; }
.lead-title {
	margin: 6px 0 8px;
	font-family: var(--serif);
	font-size: 32px !important;
	line-height: 1.28 !important;
	font-weight: 700 !important;
}
.lead-title a:hover { color: var(--red); }
.deck { margin: 0; color: #333; font-size: 16px; line-height: 1.55; }

.block-label, .section-head h2, .rail h2 {
	font-family: var(--serif) !important;
	font-size: 22px !important;
	line-height: 1.2 !important;
	font-weight: 700 !important;
	margin: 0;
}
.side-list .block-label {
	display: inline-block;
	border-bottom: 3px solid var(--red);
	padding-bottom: 6px;
	margin-bottom: 4px;
}
.side-item, .sec-item {
	display: grid;
	grid-template-columns: 92px 1fr;
	gap: 12px;
	align-items: start;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
}
.side-item:not(:has(img, .photo-slot)),
.sec-item:not(:has(img, .photo-slot)) { grid-template-columns: 1fr; }
.side-photo { width: 92px; height: 68px; object-fit: cover; }
.side-item strong, .sec-item strong {
	display: block;
	font-size: 16px !important;
	line-height: 1.35 !important;
	font-weight: 700 !important;
}
.side-item em {
	display: block;
	margin-top: 4px;
	font-style: normal;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.4;
}
.side-item:hover strong, .sec-item:hover strong, .feature h3 a:hover { color: var(--red); }

.layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; margin-top: 28px; }
.section { margin: 0 0 36px; }
.section-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	border-bottom: 1px solid #111;
	margin-bottom: 16px;
}
.section-head h2 { border-bottom: 3px solid var(--red); padding: 0 0 6px; margin-bottom: -1px; }
.section-head a { color: var(--red); font-size: 13px; font-weight: 700; padding-bottom: 8px; }
.sec-grid { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 28px; align-items: stretch; }
.feature h3 {
	margin: 10px 0 6px;
	font-family: var(--serif);
	font-size: 22px !important;
	line-height: 1.35 !important;
	font-weight: 700 !important;
}
.feature p { margin: 0; color: #333; font-size: 15px; }
.sec-side {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 14px;
	border-top: 0;
}
.sec-side .sec-item { flex: 1; align-items: center; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card h3 {
	margin: 8px 0 0;
	font-size: 16px !important;
	line-height: 1.4 !important;
	font-weight: 700 !important;
}
.card a:hover h3 { color: var(--red); }
.photo-slot, .lead-photo img, .feature img, .card img, .story-hero, .side-photo {
	background: #ececec;
}
.photo-slot { display: block; }
.lead-photo .photo-slot, .feature .photo-slot, .card .photo-slot, .lead-photo img, .feature img, .card img {
	width: 100%;
	aspect-ratio: 16/10;
	object-fit: cover;
}
.side-photo.photo-slot { width: 92px; height: 68px; }

.ad-slider { margin: 0 0 18px; }
.ad-kicker { margin: 0 0 6px; color: #888; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
.ad-viewport { overflow: hidden; background: #f6f6f6; }
.ad-track { display: flex; transition: transform 0.45s ease; }
.ad-slide { flex: 0 0 100%; }
.ad-slide img { width: 100%; height: 220px; object-fit: contain; background: #f6f6f6; }

.rail h2 {
	border-bottom: 3px solid var(--red);
	padding-bottom: 6px;
	margin-bottom: 4px;
}
.rail ol { margin: 0; padding: 0; list-style: none; counter-reset: n; }
.rail li {
	counter-increment: n;
	display: grid;
	grid-template-columns: 28px 1fr;
	gap: 8px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
	line-height: 1.4;
	font-weight: 600;
}
.rail li::before { content: counter(n); color: var(--red); font-weight: 700; font-size: 18px; }
.rail li a:hover { color: var(--red); }

.site-footer { margin-top: 28px; background: #f3f3f3; color: #111; }
.foot-links {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 32px 36px;
	padding: 36px 0 16px;
}
.foot-brand { max-width: none; }
.foot-brand .logo img { width: min(280px, 100%); margin-bottom: 12px; }
.foot-brand p, .foot-brand address { margin: 0 0 12px; color: #444; font-size: 14px; font-style: normal; line-height: 1.6; }
.foot-editions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.foot-editions a {
	display: inline-block;
	border: 1px solid #111;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 700;
	color: #111;
}
.foot-editions a:hover { color: #fff; background: var(--red); border-color: var(--red); }
.foot-links > div { display: flex; flex-direction: column; min-width: 140px; }
.foot-links h2 { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.foot-links a { color: #444; font-size: 14px; line-height: 1.9; }
.foot-links a:hover { color: var(--red); }
.foot-editions a { line-height: 1.3; color: #111; }
.foot-latest { border-top: 1px solid #e0e0e0; padding: 8px 0 4px; }
.foot-latest h2 { margin: 16px 0 10px; font-size: 15px; }
.foot-latest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 28px; padding-bottom: 16px; }
.foot-latest-grid a { color: #222; font-weight: 600; line-height: 1.4; }
.foot-latest-grid a:hover { color: var(--red); }
.copyright { font-size: 13px; color: #666; }
.copyright .wrap { padding: 16px 0 22px; }

.single-wrap, .archive-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 36px; margin: 24px auto 48px; }
.story h1 {
	margin: 8px 0 10px;
	font-family: var(--serif);
	font-size: 36px !important;
	line-height: 1.28 !important;
	font-weight: 700 !important;
}
.story .entry { font-size: 18px; line-height: 1.75; }
.story .entry p { margin: 0 0 1em; }
.story .meta, .archive-item .meta { color: var(--muted); font-size: 13px; }
.byline {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	align-items: baseline;
	margin: 4px 0 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
	color: #555;
	font-size: 14px;
}
.byline-author { font-weight: 700; color: #111; }
.byline time { color: #666; }
.share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 18px; }
.share span { font-size: 13px; font-weight: 700; color: #444; margin-right: 2px; }
.share a, .share button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.share svg { width: 18px; height: 18px; display: block; }
.share-facebook { background: #1877f2; }
.share-whatsapp { background: #25d366; }
.share-x { background: #111; }
.share-telegram { background: #229ed9; }
.share-copy { background: #5c6570; }
.share a:hover, .share button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.share-copy.is-copied { background: #1f8a4c; }
.related .sec-item { border-bottom: 1px solid var(--line); }
.story-hero { margin: 8px 0 18px; }
.archive-list { display: flex; flex-direction: column; }
.archive-item { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.archive-item .thumb img { width: 220px; height: 140px; object-fit: cover; }
.archive-item h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 22px !important; line-height: 1.35 !important; }
.archive-item h2 a:hover { color: var(--red); }
.archive-item p { margin: 0; color: #333; }
.pager { display: flex; gap: 12px; margin-top: 16px; }
.pager a, .pager span { border: 1px solid var(--line); padding: 8px 12px; }

body.postx-page .jg-title,
body.postx-page .jg-title a,
body.postx-page .lead-title,
body.postx-page .lead-title a,
body.postx-page .feature h3,
body.postx-page .feature h3 a,
body.postx-page .card h3,
body.postx-page .story h1,
body.postx-page .archive-item h2,
body.postx-page .archive-item h2 a {
	font-size: inherit;
}

@media (max-width: 900px) {
	.mast { position: sticky; top: 0; z-index: 40; background: #fff; }
	.hero, .layout, .sec-grid, .cards, .single-wrap, .archive-wrap, .archive-item { grid-template-columns: 1fr; }
	.mast-row { justify-content: flex-start; min-height: 0; padding: 10px 0; }
	.logo { margin-right: auto; }
	.logo img { width: min(220px, 62vw); }
	.lead-title { font-size: 26px !important; }
	.story h1 { font-size: 28px !important; }
	.nav-toggle { display: inline-flex; flex: 0 0 auto; padding: 8px 4px 8px 0; }
	.navwrap { position: static; }
	.navwrap .menu {
		display: none;
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		max-height: calc(100vh - 120px);
		overflow: auto;
		background: #fff;
		border-top: 1px solid var(--line);
	}
	body.nav-open .navwrap .menu { display: flex; }
	.navwrap .menu > li > a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
	.navwrap .sub-menu { position: static; display: block; border: 0; min-width: 0; padding: 0 0 8px 12px; }
	.foot-links { grid-template-columns: 1fr; gap: 22px; }
	.foot-latest-grid { grid-template-columns: 1fr; }
	.side-item, .sec-item { grid-template-columns: 92px 1fr; }
	.archive-item .thumb img { width: 100%; height: auto; aspect-ratio: 16/9; }
}
