/*==================== Homepage Redesign ====================
   Loaded after style.css + color css, scoped to the front page.
   Brand accent kept in sync with css/colors/default.css (#008080).
================================================================*/
:root {
	--hp-accent: #008080;
	--hp-accent-dark: #002954;
	--hp-ink: #1a1d23;
	--hp-muted: #6b7280;
	--hp-card-radius: 10px;
	--hp-shadow: 0 2px 10px rgba(20, 20, 30, .07);
	--hp-shadow-hover: 0 16px 32px rgba(20, 20, 30, .14);
	--hp-font-display: 'Playfair Display', Georgia, serif;
}

/* ---------- A. Max-width shell (front page only) ---------- */
#content.home,
.mg-fea-area .container-fluid {
	max-width: 1360px;
	margin-left: auto;
	margin-right: auto;
	float: none;
}

/* ---------- B. Ticker row (popular tags + flash news) ---------- */
.hp-ticker-row {
	background: #fff;
	border-bottom: 1px solid #eef0f2;
	margin-bottom: 0;
}
.hp-ticker-row .mg-tpt-tag-area,
.hp-ticker-row .mg-latest-news-sec {
	margin-bottom: 0;
}

/* ---------- C. Hero section ---------- */
.mg-fea-area {
	padding-top: 28px;
	padding-bottom: 8px;
	margin-bottom: 48px;
	background-color: #f6f7f9;
}
.mg-fea-area.over {
	background-color: transparent;
}

/* Editor pick + carousel card treatment */
.mg-fea-area .mg-blog-post,
.mg-fea-area .mg-blog-post.lg {
	border-radius: var(--hp-card-radius);
	overflow: hidden;
	box-shadow: var(--hp-shadow);
	transition: box-shadow .25s ease, transform .25s ease;
}
.mg-fea-area .mg-blog-post:hover,
.mg-fea-area .mg-blog-post.lg:hover {
	box-shadow: var(--hp-shadow-hover);
	transform: translateY(-4px);
}
.mg-fea-area .mg-blog-post.back-img {
	background-size: cover;
	background-position: center;
	transition: transform .5s ease;
}
.mg-fea-area .mg-blog-post .link-div {
	position: absolute;
	inset: 0;
	z-index: 2;
}
/* Gradient scrim so captions stay legible over photos */
.mg-fea-area .mg-blog-post article.bottom {
	background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .55) 45%, transparent 100%);
	padding: 18px 20px 20px;
}
.mg-fea-area .mg-blog-post.lg.mins {
	min-height: 260px;
}
.mg-fea-area .homemain .item .mg-blog-post.lg {
	min-height: 420px;
}

/* Category pill badges (hero + everywhere newsup-categories is used) */
.mg-blog-category {
	position: relative;
	z-index: 3;
	margin-bottom: 8px;
}
a.newsup-categories {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	line-height: 1.6;
}

.mg-fea-area .mg-blog-post .title,
.mg-fea-area .mg-blog-post .title a {
	font-family: var(--hp-font-display);
	font-weight: 700;
	line-height: 1.25;
}
.mg-fea-area .mg-blog-post.lg .title {
	font-size: clamp(18px, 1.6vw + 10px, 26px);
}
.mg-fea-area .mg-blog-post.lg.mins .title {
	font-size: clamp(15px, 1.1vw + 9px, 18px);
}

/* Tabbed Latest/Popular/Trending widget -> segmented control + list cards */
.top-right-area {
	background: #fff;
	border-radius: var(--hp-card-radius);
	box-shadow: var(--hp-shadow);
	padding: 6px 6px 14px;
}
.top-right-area .nav-tabs {
	border-bottom: none;
	background: #f2f3f5;
	border-radius: 999px;
	padding: 4px;
	gap: 4px;
	flex-wrap: nowrap;
	margin-bottom: 10px;
}
.top-right-area .nav-tabs .nav-item {
	flex: 1;
}
.top-right-area .nav-tabs > li > a,
.top-right-area .nav-tabs .nav-link {
	border: none !important;
	border-radius: 999px;
	text-align: center;
	padding: 7px 6px;
	font-size: 12px;
	white-space: nowrap;
}
.top-right-area .nav-tabs .nav-link.active {
	background-color: var(--hp-accent) !important;
	color: #fff !important;
	border-bottom-color: transparent !important;
}
.top-right-area .nav-tabs .nav-link.active i {
	color: #fff;
}

.top-right-area .small-post {
	padding: 10px 6px;
	border-bottom: 1px solid #eef0f2;
	transition: background-color .2s ease;
}
.top-right-area .small-post:last-child {
	border-bottom: none;
}
.top-right-area .small-post:hover {
	background-color: #f9fafb;
}
.top-right-area .img-small-post {
	border-radius: 8px;
	overflow: hidden;
}
.top-right-area .img-small-post img {
	transition: transform .4s ease;
}
.top-right-area .small-post:hover .img-small-post img {
	transform: scale(1.08);
}
.top-right-area .title_small_post h5 {
	font-size: 13.5px;
	line-height: 1.4;
	margin-top: 6px;
}

/* Header logo-flanking ad slots */
.header-ads {
	position: relative;
	display: inline-block;
}
.header-ads::before {
	content: 'Advertisement';
	position: absolute;
	top: -16px;
	left: 0;
	font-size: 9px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--hp-muted);
}
.header-ads img {
	border-radius: 6px;
}

/* ---------- D. Main content stream ---------- */
.hp-main-stream {
	margin-top: 4px;
}
.hp-main-stream .mg-posts-sec {
	margin-bottom: 40px;
}
.hp-main-stream .mg-sec-title {
	margin-bottom: 20px;
}
.hp-main-stream .mg-posts-sec-post,
.hp-main-stream .small-list-post li,
.hp-main-stream .small-post {
	border-radius: var(--hp-card-radius);
	box-shadow: var(--hp-shadow);
	transition: box-shadow .25s ease, transform .25s ease;
	overflow: hidden;
}
.hp-main-stream .mg-posts-sec-post:hover,
.hp-main-stream .small-list-post li:hover {
	box-shadow: var(--hp-shadow-hover);
	transform: translateY(-3px);
}
.hp-main-stream img {
	transition: transform .5s ease;
}
.hp-main-stream a:hover img {
	transform: scale(1.05);
}

/* ---------- E. Sidebars / trending-ad rail ---------- */
.hp-side-rail .mg-widget {
	border-radius: var(--hp-card-radius);
	box-shadow: var(--hp-shadow);
	overflow: hidden;
	margin-bottom: 24px;
}
@media (min-width: 992px) {
	.hp-side-rail {
		position: sticky;
		top: 90px;
		align-self: flex-start;
	}
	.hp-frontpage-row {
		display: flex;
		flex-wrap: wrap;
	}
}

/* ---------- F. Section rhythm / headings ---------- */
.mg-sec-title h4,
.mg-heading h3 {
	font-family: var(--hp-font-display);
}
#content.home {
	padding: 0 0 48px;
}

/* ---------- G. New homepage content sections (Round 2) ---------- */
.hp-section {
	margin-bottom: 44px;
}
.hp-sec-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-right: 34px;
}
.hp-sec-title .hp-view-all {
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	color: var(--hp-muted);
}
.hp-sec-title .hp-view-all:hover {
	color: var(--hp-accent);
}

.mg-blog-post-3.hp-lead {
	height: 380px;
}
.mg-blog-post-3.hp-lead .title {
	font-family: var(--hp-font-display);
	font-size: clamp(20px, 1.4vw + 12px, 28px);
}

/* Latest News / Spotlight card grids reuse existing .mg-blog-post-3 styling
   (already applied via the general card-elevation rules above). */

/* More Headlines: Hindu-style brief-list columns */
.hp-brief-section .row {
	background: #fff;
	border-radius: var(--hp-card-radius);
	box-shadow: var(--hp-shadow);
	padding: 20px 8px;
	margin-left: 0;
	margin-right: 0;
}
.hp-brief-col {
	border-right: 1px solid #eef0f2;
	padding: 0 18px;
}
.hp-brief-col:last-child {
	border-right: none;
}
.hp-brief-col-title {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .03em;
	border-bottom: 2px solid var(--hp-accent);
	padding-bottom: 8px;
	margin-bottom: 12px;
}
.hp-brief-col-title a {
	color: var(--hp-ink);
}
.hp-brief-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.hp-brief-list li {
	padding: 8px 0;
	border-bottom: 1px dashed #eef0f2;
	font-size: 13.5px;
	line-height: 1.4;
}
.hp-brief-list li:last-child {
	border-bottom: none;
}
.hp-brief-list a {
	color: var(--hp-ink);
}
.hp-brief-list a:hover {
	color: var(--hp-accent);
}

/* Trending Now / Just In sidebar blocks reuse .mg-widget/.mg-wid-title chrome
   already styled by the parent theme; .hp-side-rail .mg-widget rules above
   (card elevation) apply automatically since they share the same markup. */

/* Categories widget: collapse the tall one-per-line list into a pill wrap */
.hp-side-rail .wp-block-categories,
.hp-side-rail .wp-block-categories-list,
.mg-sidebar .widget_categories ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.hp-side-rail .wp-block-categories li,
.mg-sidebar .widget_categories ul li {
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
}
.hp-side-rail .wp-block-categories a,
.mg-sidebar .widget_categories ul a {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 999px;
	background: #f2f3f5;
	font-size: 12.5px;
	white-space: nowrap;
}
.hp-side-rail .wp-block-categories a:hover,
.mg-sidebar .widget_categories ul a:hover {
	background: var(--hp-accent);
	color: #fff;
}

/* ---------- H. Single post page (Round 3) ---------- */
.hp-reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: rgba(0, 0, 0, .06);
	z-index: 9999;
}
.hp-reading-progress-bar {
	height: 100%;
	width: 0;
	background: var(--hp-accent);
	transition: width .1s linear;
}

.hp-single-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
}
.mg-page-breadcrumb-wrap {
	flex: 1 1 auto;
}
.hp-read-time {
	flex: 0 0 auto;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--hp-muted);
	background: #f2f3f5;
	padding: 5px 12px;
	border-radius: 999px;
	white-space: nowrap;
}

/* Article typography */
.mg-blog-post-box .title.single {
	font-family: var(--hp-font-display);
	font-size: clamp(24px, 2vw + 14px, 38px);
	line-height: 1.25;
}
.mg-blog-post-box .page-content-single {
	max-width: 780px;
	font-size: 16.5px;
	line-height: 1.85;
}
.mg-blog-post-box .page-content-single img {
	border-radius: var(--hp-card-radius);
	margin: 20px 0;
}
.mg-blog-post-box .page-content-single blockquote {
	border-left: 3px solid var(--hp-accent);
	padding: 4px 20px;
	font-style: italic;
	color: var(--hp-ink);
}
.mg-blog-post-box .featured-image-caption {
	display: block;
	font-size: 13px;
	color: var(--hp-muted);
	margin-top: 8px;
	font-style: italic;
}
.mg-blog-post-box .img-fluid {
	border-radius: var(--hp-card-radius);
}

/* Byline */
.mg-blog-post-box .mg-info-author-block {
	border-radius: var(--hp-card-radius);
	box-shadow: var(--hp-shadow);
}

/* Social share */
.post-share-icons {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.post-share-icons .link {
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: transform .2s ease;
}
.post-share-icons .link:hover {
	transform: translateY(-3px);
}

/* Related posts + author box + any sidebar widget: shared card elevation
   (previously scoped to .hp-side-rail only; single-post sidebar uses plain
   .mg-sidebar, so this generalizes the same treatment). */
.mg-sidebar .mg-widget,
.mg-featured-slider .mg-blog-post-3 {
	border-radius: var(--hp-card-radius);
	box-shadow: var(--hp-shadow);
	transition: box-shadow .25s ease, transform .25s ease;
	overflow: hidden;
}
.mg-featured-slider .mg-blog-post-3:hover {
	box-shadow: var(--hp-shadow-hover);
	transform: translateY(-3px);
}
.mg-featured-slider .mg-sec-title {
	box-shadow: none;
}

/* ---------- Responsive (Bootstrap 4 breakpoints: 576 / 768 / 992 / 1200) ---------- */
@media (max-width: 991px) {
	.hp-side-rail {
		position: static;
	}
	.mg-fea-area .mg-blog-post.lg.mins {
		min-height: 180px;
	}
	.mg-fea-area .homemain .item .mg-blog-post.lg {
		min-height: 320px;
	}
}
@media (max-width: 767px) {
	.mg-fea-area {
		padding-top: 16px;
		margin-bottom: 28px;
	}
	.top-right-area .nav-tabs {
		flex-wrap: wrap;
	}
	.hp-brief-col {
		border-right: none;
		border-bottom: 1px solid #eef0f2;
		padding-bottom: 16px;
		margin-bottom: 16px;
	}
	.hp-brief-col:last-child {
		border-bottom: none;
	}
}
@media (max-width: 575px) {
	.mg-fea-area .mg-blog-post .title {
		font-size: 16px;
	}
}
