/*
Theme Name: Hinglish Blogs Theme
Theme URI: https://example.com/patra
Author: PromptDon.com
Description: A bilingual blog theme for writing in English and हिन्दी. A content-aware masonry grid on the home page, an elegant long-form reading layout, self-hosted Noto Sans and Noto Sans Devanagari, and automatic language detection so Hindi text always gets the right font, line height and spacing.
Version: 1.0.2
Requires at least: 6.2
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: patra
Tags: blog, grid-layout, three-columns, custom-logo, custom-menu, featured-images, post-formats, translation-ready, editor-style, threaded-comments, wide-blocks
*/

/* ==========================================================================
   1. Fonts (self-hosted, subset)
   Latin file has no Devanagari glyphs and the Devanagari file has no Latin
   glyphs, so English always renders in Noto Sans and Hindi always renders
   in Noto Sans Devanagari, even inside mixed-language sentences.
   ========================================================================== */

@font-face {
	font-family: "Noto Sans";
	src: url("assets/fonts/noto-sans-latin-var.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0100-024F, U+0259, U+1E00-1EFF, U+2000-206F, U+20AC, U+20B9, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Noto Sans";
	src: url("assets/fonts/noto-sans-italic-latin-var.woff2") format("woff2");
	font-weight: 400 700;
	font-style: italic;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0100-024F, U+0259, U+1E00-1EFF, U+2000-206F, U+20AC, U+20B9, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Noto Sans Devanagari";
	src: url("assets/fonts/noto-sans-devanagari-var.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+25CC, U+A830-A839, U+A8E0-A8FF;
	/* Devanagari reads small next to Latin at the same font-size; nudge it up so
	   mixed-script lines and bilingual grids look evenly weighted. */
	size-adjust: 106%;
}

/* ==========================================================================
   2. Design tokens
   ========================================================================== */

:root {
	/* Colour: indigo ink, neel indigo, haldi turmeric, cool mist */
	--ink: #1b1f3b;
	--text: #2b3050;
	--text-soft: #4a4f6a;
	--slate: #5d6280;
	--indigo: #3346a8;
	--indigo-deep: #232f78;
	--haldi: #f2b233;
	--haldi-wash: rgba(242, 178, 51, 0.45);
	--mist: #eef1f8;
	--line: #e1e4ee;
	--paper: #ffffff;

	/* Type */
	--font-sans: "Noto Sans", "Noto Sans Devanagari", -apple-system, "Segoe UI", Roboto, "Nirmala UI", "Kohinoor Devanagari", Mangal, sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	/* Layout */
	--gutter: clamp(1.25rem, 4vw, 3rem);
	--wrap: 80rem;
	--measure: 42rem;
	--wide: 76rem;
	--gap-x: clamp(1.25rem, 2.6vw, 2.5rem);
	--gap-y: clamp(2.25rem, 4vw, 3.25rem);
	--header-h: 4rem;

	/* Shape and motion */
	--r-lg: 1rem;
	--r-md: 0.625rem;
	--ease: cubic-bezier(0.22, 0.8, 0.24, 1);
	--shadow-lift: 0 1.75rem 3rem -1.75rem rgba(27, 34, 84, 0.5);

	/* Header overrides — set by the Customizer (Header section) */
	--header-bg: var(--paper);
	--header-ink: var(--ink);
}

@supports (color: color-mix(in srgb, red, blue)) {
	:root {
		--indigo-deep: color-mix(in srgb, var(--indigo) 70%, #000);
		--haldi-wash: color-mix(in srgb, var(--haldi) 48%, transparent);
	}
}

@media (min-width: 64em) {
	:root {
		--header-h: 5rem;
	}
}

/* ==========================================================================
   3. Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	font-synthesis: none; /* never fake an italic or bold, especially for Devanagari */
	scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-tap-highlight-color: transparent;
}

[lang|="hi"] {
	line-height: 1.85;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	color: var(--ink);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

/* Devanagari needs room for matras above and below, and zero tracking so
   the headline bar (shirorekha) stays joined. */
:is(h1, h2, h3, h4, h5, h6):lang(hi) {
	line-height: 1.45;
	letter-spacing: 0;
}

/* Hindi has no true italic; emphasise with weight instead of a fake slant. */
:lang(hi) :is(em, i, cite) {
	font-style: normal;
	font-weight: 600;
}

p {
	margin: 0;
}

a {
	color: var(--indigo);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
}

button,
a,
input,
label {
	touch-action: manipulation;
}

::selection {
	background: var(--haldi-wash);
	color: var(--ink);
}

:focus-visible {
	outline: 3px solid var(--indigo);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ==========================================================================
   4. Layout helpers & accessibility
   ========================================================================== */

.wrap {
	width: min(var(--wrap), 100% - 2 * var(--gutter));
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100;
	width: auto;
	height: auto;
	padding: 0.75rem 1.25rem;
	margin: 0;
	clip: auto;
	clip-path: none;
	background: var(--ink);
	color: #fff;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
}

.site-main {
	display: block;
	padding-bottom: clamp(4rem, 9vw, 7.5rem);
}

.site-main:has(> .related:last-child) {
	padding-bottom: 0;
}

.button,
.search-form__submit,
.comment-form .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0 1.5rem;
	border: 0;
	border-radius: 999px;
	background: var(--indigo);
	color: #fff;
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.button:hover,
.search-form__submit:hover,
.comment-form .submit:hover {
	background: var(--indigo-deep);
	color: #fff;
}

.chip {
	display: inline-flex;
	align-items: center;
	min-height: 2.5rem;
	padding: 0 1rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--ink);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.chip:hover {
	border-color: var(--ink);
}

/* ==========================================================================
   5. Header & navigation
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--header-bg);
	transition: box-shadow 0.25s ease;
}

/* Added by Customizer > Header: hide scroll-border */
.site-header.no-scroll-border.is-scrolled,
.menu-open .site-header.no-scroll-border,
.no-header-border .site-header.is-scrolled,
.no-header-border.menu-open .site-header {
	box-shadow: none;
}

/* Added by Customizer > Header: disable sticky */
.no-sticky-header .site-header {
	position: relative;
	top: auto;
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header.is-scrolled,
.menu-open .site-header {
	box-shadow: 0 1px 0 var(--line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	height: var(--header-h);
}

.site-brand {
	display: flex;
	align-items: center;
	min-width: 0;
	margin-right: auto;
}

.site-title {
	display: inline-block;
	margin: 0;
	color: var(--header-ink);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.site-title:lang(hi) {
	letter-spacing: 0;
}

.custom-logo-link {
	display: inline-flex;
}

.custom-logo {
	display: block;
	width: auto;
	max-height: 2.5rem;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin-right: -0.5rem;
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--header-ink);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.icon-btn:hover,
.icon-btn[aria-expanded="true"] {
	background: var(--mist);
}

.icon-btn svg {
	width: 1.375rem;
	height: 1.375rem;
}

/* Hamburger: two bars that fold into an X */
.menu-toggle__bars {
	position: relative;
	display: block;
	width: 1.375rem;
	height: 0.875rem;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.3s var(--ease), top 0.3s var(--ease), bottom 0.3s var(--ease);
}

.menu-toggle__bars::before {
	top: 1px;
}

.menu-toggle__bars::after {
	bottom: 1px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
	top: calc(50% - 1px);
	transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
	bottom: calc(50% - 1px);
	transform: rotate(-45deg);
}

.submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}

.submenu-toggle svg {
	width: 1rem;
	height: 1rem;
	transition: transform 0.25s var(--ease);
}

.is-open > .submenu-toggle svg {
	transform: rotate(180deg);
}

.primary-nav .menu,
.primary-nav .sub-menu,
.primary-nav .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Mobile & tablet: full-screen, touch-first panel */
@media (max-width: 63.99em) {
	html.menu-open {
		overflow: hidden;
	}

	.search-toggle {
		display: none;
	}

	.primary-nav {
		position: fixed;
		top: var(--menu-top, var(--header-h));
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 55;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 0.5rem var(--gutter) calc(2.5rem + env(safe-area-inset-bottom));
		background: var(--paper);
		visibility: hidden;
		opacity: 0;
		transform: translateY(-0.5rem);
		transition: opacity 0.2s ease, transform 0.3s var(--ease), visibility 0s linear 0.3s;
	}

	.menu-open .primary-nav {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity 0.2s ease, transform 0.3s var(--ease), visibility 0s;
	}

	.primary-nav .menu > li {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		border-bottom: 1px solid var(--line);
	}

	.primary-nav .menu > li > a {
		flex: 1;
		display: flex;
		align-items: center;
		min-height: 3.75rem;
		color: var(--ink);
		font-size: 1.375rem;
		font-weight: 700;
		letter-spacing: -0.01em;
		text-decoration: none;
	}

	.primary-nav .menu > li > a:lang(hi) {
		letter-spacing: 0;
	}

	.primary-nav .menu > li > a:active,
	.primary-nav .sub-menu a:active,
	.primary-nav .children a:active {
		color: var(--indigo);
	}

	.primary-nav .menu .current-menu-item > a,
	.primary-nav .menu .current_page_item > a {
		color: var(--indigo);
	}

	.primary-nav .submenu-toggle {
		width: 3.25rem;
		height: 3.25rem;
		margin-right: -0.75rem;
	}

	.primary-nav .sub-menu,
	.primary-nav .children {
		display: none;
		flex-basis: 100%;
		padding: 0 0 0.75rem 1rem;
	}

	.primary-nav .is-open > .sub-menu,
	.primary-nav .is-open > .children {
		display: block;
	}

	.primary-nav .sub-menu a,
	.primary-nav .children a {
		display: flex;
		align-items: center;
		min-height: 3rem;
		color: var(--text);
		font-size: 1.0625rem;
		text-decoration: none;
	}

	.primary-nav__search {
		margin-top: 2rem;
	}
}

/* Desktop */
@media (min-width: 64em) {
	.menu-toggle,
	.primary-nav__search {
		display: none;
	}

	.primary-nav .menu {
		display: flex;
		align-items: center;
		gap: 0.125rem;
	}

	.primary-nav .menu > li {
		position: relative;
		display: flex;
		align-items: center;
	}

	.primary-nav .menu > li > a {
		display: block;
		padding: 0.5rem 0.875rem;
		border-radius: 999px;
		color: var(--ink);
		font-size: 0.9375rem;
		font-weight: 500;
		text-decoration: none;
		transition: background-color 0.2s ease, color 0.2s ease;
	}

	.primary-nav .menu > li > a:hover {
		background: var(--mist);
	}

	.primary-nav .menu > .current-menu-item > a,
	.primary-nav .menu > .current_page_item > a,
	.primary-nav .menu > .current-menu-ancestor > a {
		color: var(--indigo);
		background: var(--mist);
	}

	.primary-nav .menu-item-has-children > a,
	.primary-nav .page_item_has_children > a {
		padding-right: 0.25rem;
	}

	.primary-nav .submenu-toggle {
		width: 2rem;
		height: 2rem;
	}

	.primary-nav .sub-menu,
	.primary-nav .children {
		position: absolute;
		top: calc(100% + 0.25rem);
		left: 0;
		z-index: 10;
		min-width: 14rem;
		padding: 0.5rem;
		border: 1px solid var(--line);
		border-radius: 0.875rem;
		background: var(--paper);
		box-shadow: 0 1.25rem 2.5rem -1.25rem rgba(27, 34, 84, 0.35);
		visibility: hidden;
		opacity: 0;
		transform: translateY(0.375rem);
		transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0s linear 0.25s;
	}

	.primary-nav li:hover > .sub-menu,
	.primary-nav li:hover > .children,
	.primary-nav li:focus-within > .sub-menu,
	.primary-nav li:focus-within > .children,
	.primary-nav li.is-open > .sub-menu,
	.primary-nav li.is-open > .children {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0s;
	}

	.primary-nav .sub-menu a,
	.primary-nav .children a {
		display: block;
		padding: 0.625rem 0.875rem;
		border-radius: 0.5rem;
		color: var(--ink);
		font-size: 0.9375rem;
		text-decoration: none;
	}

	.primary-nav .sub-menu a:hover,
	.primary-nav .children a:hover {
		background: var(--mist);
	}

	.primary-nav .sub-menu .submenu-toggle,
	.primary-nav .children .submenu-toggle {
		display: none;
	}

	.header-actions {
		margin-left: 0.5rem;
	}
}

/* Reading progress, pinned to the bottom edge of the header on posts */
.reading-progress {
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 3px;
	pointer-events: none;
}

.reading-progress span {
	display: block;
	height: 100%;
	background: var(--haldi);
	transform: scaleX(0);
	transform-origin: 0 50%;
}

/* ==========================================================================
   6. Search
   ========================================================================== */

.search-panel {
	padding: 1.25rem 0 1.5rem;
	border-top: 1px solid var(--line);
	background: var(--paper);
}

.search-panel[hidden] {
	display: none;
}

.search-form {
	display: flex;
	gap: 0.5rem;
	width: 100%;
	max-width: 36rem;
}

.search-panel .search-form {
	max-width: 42rem;
	margin-inline: auto;
}

.search-form__input {
	flex: 1;
	min-width: 0;
	min-height: 3rem;
	padding: 0 1.25rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	font-size: 1rem; /* 16px prevents iOS zoom on focus */
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.2s ease;
}

.search-form__input:focus {
	border-color: var(--indigo);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(51, 70, 168, 0.18);
}

.search-form__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

/* ==========================================================================
   7. Page intros & topic list
   ========================================================================== */

.home-intro,
.page-intro {
	padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2rem, 4.5vw, 3.5rem);
}

.home-intro__title {
	max-width: 17em;
	font-size: clamp(2rem, 1.15rem + 3.6vw, 3.75rem);
	line-height: 1.08;
	letter-spacing: -0.03em;
}

.home-intro__title:lang(hi) {
	line-height: 1.35;
	letter-spacing: 0;
}

.home-intro--compact {
	padding-block: clamp(1.5rem, 4vw, 3rem) 0;
}

.page-intro__title {
	font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem);
	line-height: 1.1;
	letter-spacing: -0.025em;
}

.page-intro__desc {
	max-width: var(--measure);
	margin-top: 1rem;
	color: var(--text-soft);
	font-size: 1.125rem;
}

.page-intro__count {
	margin-top: 0.75rem;
	color: var(--slate);
	font-size: 0.9375rem;
}

.page-intro .search-form {
	margin-top: 1.75rem;
}

.topic-list {
	display: flex;
	gap: 0.5rem;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}

.topic-list::-webkit-scrollbar {
	display: none;
}

.topic-list li {
	flex: none;
	scroll-snap-align: start;
}

.topic-list .chip {
	min-height: 2.75rem;
	padding: 0 1.125rem;
	font-size: 0.9375rem;
}

.topic-list .is-current .chip {
	border-color: var(--ink);
	background: var(--ink);
	color: #fff;
}

@media (max-width: 47.99em) {
	/* Let the topic row bleed to the screen edge so it reads as swipeable */
	.topic-list {
		margin-inline: calc(-1 * var(--gutter));
		padding-inline: var(--gutter);
		scroll-padding-inline: var(--gutter);
	}
}

/* ==========================================================================
   8. Masonry grid
   Without JavaScript this is a tidy top-aligned grid. theme.js measures each
   card and places it in the shortest column on a 2px row grid, so columns
   end evenly; source (keyboard and screen reader) order never changes.
   ========================================================================== */

.masonry {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	column-gap: var(--gap-x);
	row-gap: var(--gap-y);
	align-items: start;
}

@media (min-width: 40em) {
	.masonry {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.card--lead {
		grid-column: 1 / -1;
	}
}

@media (min-width: 64em) {
	.masonry {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.card--lead {
		grid-column: span 2;
	}
}

.masonry.is-laid-out {
	grid-auto-rows: 2px;
	row-gap: 0;
}

.masonry.is-laid-out > .masonry__item {
	margin-bottom: var(--gap-y);
}

/* ==========================================================================
   9. Cards
   ========================================================================== */

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.card__media {
	overflow: hidden;
	border-radius: var(--r-lg);
	background: var(--mist);
	transition: box-shadow 0.45s var(--ease);
}

.card__media img {
	display: block;
	width: 100%;
	height: auto;
	max-height: min(34rem, 125vw);
	object-fit: cover;
	transition: transform 0.8s var(--ease);
}

.card__body {
	display: flex;
	flex-direction: column;
	padding-top: 1.125rem;
}

.card__title {
	font-size: clamp(1.1875rem, 1.05rem + 0.45vw, 1.4375rem);
	line-height: 1.25;
	letter-spacing: -0.012em;
}

.card__link {
	color: inherit;
	text-decoration: none;
}

/* Whole card is clickable; the title link stays the single, named target */
.card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--r-lg);
}

.card__link:focus-visible {
	outline: 0;
}

.card__link:focus-visible::after {
	outline: 3px solid var(--indigo);
	outline-offset: 6px;
}

/* The haldi highlighter that sweeps under the title on hover */
.card__title span {
	background-image: linear-gradient(var(--haldi-wash), var(--haldi-wash));
	background-repeat: no-repeat;
	background-position: 0 88%;
	background-size: 0% 0.42em;
	transition: background-size 0.6s var(--ease);
}

.card__excerpt {
	margin-top: 0.625rem;
	color: var(--text-soft);
	font-size: 1rem;
	line-height: 1.6;
}

.card__excerpt:lang(hi) {
	line-height: 1.8;
}

.card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.25rem 1rem;
	margin-top: 1rem;
	color: var(--slate);
	font-size: 0.8125rem;
	line-height: 1.4;
}

.card__cat {
	position: relative;
	z-index: 2;
	margin-block: -0.625rem; /* bigger touch target without extra visual space */
	padding-block: 0.625rem;
	color: var(--indigo);
	font-weight: 600;
	text-decoration: none;
}

.card__cat:hover {
	text-decoration: underline;
}

/* Text-only posts: a quiet mist panel with a larger title */
.card--text {
	padding: clamp(1.5rem, 2.8vw, 2rem);
	border-radius: var(--r-lg);
	background: var(--mist);
}

.card--text .card__body {
	padding-top: 0;
}

.card--text .card__title {
	font-size: clamp(1.375rem, 1.12rem + 0.8vw, 1.75rem);
	line-height: 1.22;
}

.card--text .card__excerpt {
	margin-top: 0.875rem;
	color: var(--text);
}

/* Quote posts: indigo panel, the quote is the headline */
.card--quote {
	padding: clamp(1.75rem, 3vw, 2.25rem);
	border-radius: var(--r-lg);
	background: var(--indigo-deep);
	color: #fff;
}

.card--quote .card__body {
	padding-top: 0;
}

.card__quote {
	margin: 0;
}

.card__quote blockquote {
	margin: 0;
	font-size: clamp(1.3125rem, 1.08rem + 0.8vw, 1.625rem);
	font-weight: 500;
	line-height: 1.38;
	color: #fff;
}

.card__quote blockquote::before {
	content: "\201C";
	display: block;
	height: 2.25rem;
	color: var(--haldi);
	font-size: 3.5rem;
	font-weight: 700;
	line-height: 1;
}

.card__quote figcaption {
	margin-top: 0.875rem;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.9375rem;
}

.card--quote .card__title {
	margin-top: 1.5rem;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0;
}

.card--quote .card__meta,
.card--quote .card__cat {
	color: rgba(255, 255, 255, 0.8);
}

/* Lead card: newest post spans two columns */
.card--lead .card__title {
	font-size: clamp(1.75rem, 1.1rem + 2.1vw, 2.75rem);
	line-height: 1.12;
	letter-spacing: -0.025em;
}

.card--lead .card__title:lang(hi) {
	line-height: 1.38;
	letter-spacing: 0;
}

.card--lead .card__excerpt {
	font-size: 1.0625rem;
}

.card--lead .card__media img {
	aspect-ratio: 16 / 10;
	max-height: none;
}

.card--lead.card--text {
	padding: clamp(1.75rem, 4vw, 3rem);
}

@media (min-width: 48em) {
	.card--lead.card--image {
		display: grid;
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		align-items: center;
		gap: var(--gap-x);
	}

	.card--lead.card--image .card__body {
		padding-top: 0;
	}

	.card--lead .card__media img {
		aspect-ratio: 4 / 3;
	}
}

/* Hover & focus: lift, image zoom, title highlighter */
@media (hover: hover) and (pointer: fine) {
	.card:hover {
		transform: translateY(-6px);
	}

	.card--image:hover .card__media {
		box-shadow: var(--shadow-lift);
	}

	.card--image:hover .card__media img {
		transform: scale(1.045);
	}

	.card--text:hover,
	.card--quote:hover {
		box-shadow: var(--shadow-lift);
	}

	.card:hover .card__title span {
		background-size: 100% 0.42em;
	}
}

.card:focus-within .card__title span {
	background-size: 100% 0.42em;
}

/* Touch feedback */
@media (hover: none) {
	.card:active {
		transform: scale(0.985);
		transition-duration: 0.15s;
	}
}

/* ==========================================================================
   10. Pagination
   ========================================================================== */

.pagination {
	margin-top: clamp(2.5rem, 6vw, 4rem);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	height: 2.75rem;
	padding: 0 0.875rem;
	border-radius: 999px;
	color: var(--ink);
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

a.page-numbers:hover {
	background: var(--mist);
}

.page-numbers.current {
	background: var(--ink);
	color: #fff;
}

.page-numbers.dots {
	min-width: auto;
	padding: 0 0.25rem;
}

.page-numbers.prev,
.page-numbers.next {
	border: 1px solid var(--line);
}

/* ==========================================================================
   11. Single post & page
   ========================================================================== */

.entry-header {
	padding: clamp(2.5rem, 7vw, 5.5rem) var(--gutter) 0;
}

.entry-header > * {
	max-width: var(--measure);
	margin-inline: auto;
}

/* Title shares the text column's left edge but may run wider to the right */
.entry-header > .entry-title {
	max-width: calc(var(--measure) + (var(--wide) - var(--measure)) / 2);
	margin-left: max(0px, calc((100% - var(--measure)) / 2));
	margin-right: 0;
}

.entry-title {
	font-size: clamp(2.125rem, 1.3rem + 3.5vw, 4rem);
	line-height: 1.06;
	letter-spacing: -0.03em;
}

.entry-title:lang(hi) {
	line-height: 1.32;
	letter-spacing: 0;
}

.entry-dek {
	margin-top: 1.25rem;
	color: var(--text-soft);
	font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
	line-height: 1.5;
}

.entry-dek:lang(hi) {
	line-height: 1.75;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.875rem 1rem;
	margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.entry-meta__avatar {
	flex: none;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: var(--mist);
}

.entry-meta__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.4;
}

.entry-meta__author {
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
}

.entry-meta__author:hover {
	color: var(--indigo);
}

.entry-meta__details {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.875rem;
	color: var(--slate);
	font-size: 0.875rem;
}

.entry-meta__cat {
	flex: none;
	margin-left: auto;
}

/* Phones: keep the category chip on the author row and let the date and
   reading time wrap inside the text column instead. */
@media (max-width: 39.99em) {
	.entry-meta {
		flex-wrap: nowrap;
	}

	.entry-meta__text {
		flex: 1 1 auto;
	}
}

.entry-hero {
	width: min(var(--wide), 100% - 2 * var(--gutter));
	margin: clamp(2rem, 5vw, 3.5rem) auto 0;
}

.entry-hero img {
	display: block;
	width: 100%;
	height: auto;
	max-height: min(82vh, 52rem);
	object-fit: cover;
	border-radius: var(--r-lg);
	background: var(--mist);
}

.entry-hero figcaption {
	width: min(var(--measure), 100%);
	margin: 0.875rem auto 0;
	color: var(--slate);
	font-size: 0.875rem;
	line-height: 1.5;
}

@media (max-width: 47.99em) {
	/* Edge-to-edge hero on phones */
	.entry-hero {
		width: 100%;
	}

	.entry-hero img {
		max-height: 72vh;
		border-radius: 0;
	}

	.entry-hero figcaption {
		width: auto;
		padding-inline: var(--gutter);
	}
}

/* ==========================================================================
   12. Entry content (block & classic)
   ========================================================================== */

.entry-content {
	padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 0;
	color: var(--text);
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
	line-height: 1.75;
	overflow-wrap: break-word;
}

.entry-content:lang(hi) {
	line-height: 1.9;
}

.entry-content::after {
	content: "";
	display: table;
	clear: both;
}

.entry-content > * {
	max-width: var(--measure);
	margin-inline: auto;
	margin-block: 0;
}

.entry-content > * + * {
	margin-top: 1.4em;
}

.entry-content > p:first-child,
.page-template-default .entry-content > p:first-child {
	color: var(--ink);
	font-size: 1.16em;
	line-height: 1.65;
}

.entry-content > p:first-child:lang(hi) {
	line-height: 1.85;
}

.entry-content > :is(h2, h3, h4, h5, h6) {
	margin-top: 2.1em;
}

.entry-content > :is(h2, h3, h4, h5, h6) + * {
	margin-top: 0.75em;
}

.entry-content h2 {
	font-size: 1.6em;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.entry-content h3 {
	font-size: 1.3em;
	line-height: 1.28;
}

.entry-content h4 {
	font-size: 1.1em;
}

.entry-content :is(h2, h3, h4):lang(hi) {
	line-height: 1.5;
	letter-spacing: 0;
}

.entry-content a {
	text-decoration-color: rgba(51, 70, 168, 0.4);
	transition: text-decoration-color 0.2s ease, text-decoration-thickness 0.2s ease;
}

.entry-content a:hover {
	text-decoration-color: var(--haldi);
	text-decoration-thickness: 0.18em;
}

.entry-content :is(ul, ol) {
	padding-left: 1.25em;
}

.entry-content li + li {
	margin-top: 0.45em;
}

.entry-content li::marker {
	color: var(--indigo);
}

.entry-content strong {
	color: var(--ink);
	font-weight: 700;
}

.entry-content blockquote,
.entry-content .wp-block-quote {
	padding-left: 1.25em;
	border-left: 3px solid var(--haldi);
	color: var(--ink);
	font-size: 1.18em;
	font-weight: 500;
	line-height: 1.55;
}

.entry-content blockquote:lang(hi) {
	line-height: 1.8;
}

.entry-content blockquote p + p {
	margin-top: 0.75em;
}

.entry-content blockquote cite,
.entry-content .wp-block-quote cite {
	display: block;
	margin-top: 0.875em;
	color: var(--slate);
	font-size: 0.72em;
	font-style: normal;
	font-weight: 400;
}

.entry-content .wp-block-pullquote {
	padding: 1.5em 0;
	border-top: 3px solid var(--haldi);
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.entry-content .wp-block-pullquote blockquote {
	padding: 0;
	border: 0;
	font-size: clamp(1.25em, 1.05em + 1vw, 1.45em);
	line-height: 1.35;
}

.entry-content figure {
	margin-inline: auto;
}

.entry-content img {
	display: block;
	border-radius: var(--r-md);
}

.entry-content figcaption,
.entry-content .wp-element-caption {
	margin-top: 0.75rem;
	color: var(--slate);
	font-size: 0.8125rem;
	line-height: 1.5;
	text-align: left;
}

.entry-content > .alignwide {
	max-width: var(--wide);
}

.entry-content > .alignfull {
	max-width: none;
	margin-inline: calc(-1 * var(--gutter));
}

.entry-content > .alignfull img {
	width: 100%;
	border-radius: 0;
}

.entry-content > .alignfull figcaption {
	padding-inline: var(--gutter);
}

.entry-content .aligncenter {
	margin-inline: auto;
	text-align: center;
}

@media (min-width: 40em) {
	.entry-content > .alignleft {
		float: left;
		max-width: min(50%, 20rem);
		margin: 0.35em 1.75em 1em max(0px, calc((100% - var(--measure)) / 2));
	}

	.entry-content > .alignright {
		float: right;
		max-width: min(50%, 20rem);
		margin: 0.35em max(0px, calc((100% - var(--measure)) / 2)) 1em 1.75em;
	}
}

.entry-content pre {
	overflow-x: auto;
	padding: 1.25em 1.5em;
	border-radius: var(--r-md);
	background: var(--mist);
	color: var(--ink);
	font-family: var(--font-mono);
	font-size: 0.82em;
	line-height: 1.65;
	tab-size: 4;
}

.entry-content :not(pre) > code {
	padding: 0.12em 0.4em;
	border-radius: 0.3rem;
	background: var(--mist);
	font-family: var(--font-mono);
	font-size: 0.86em;
}

.entry-content hr,
.entry-content .wp-block-separator {
	width: 4rem;
	height: 3px;
	margin-block: 3em;
	border: 0;
	border-radius: 3px;
	background: var(--haldi);
	opacity: 1;
}

.entry-content .wp-block-table,
.entry-content table {
	overflow-x: auto;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9em;
}

.entry-content :is(th, td) {
	padding: 0.75em 1em 0.75em 0;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.entry-content th {
	color: var(--ink);
	font-weight: 700;
}

.entry-content .wp-block-embed,
.entry-content .wp-block-video,
.entry-content iframe {
	max-width: var(--measure);
}

.entry-content .wp-block-button__link {
	border-radius: 999px;
	background: var(--indigo);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
}

.entry-content .wp-block-gallery {
	gap: 0.75rem;
}

.page-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	font-weight: 600;
}

.page-links a,
.page-links > span:not(:first-child) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	background: var(--mist);
	text-decoration: none;
}

/* ==========================================================================
   13. Entry footer, author box, post navigation
   ========================================================================== */

.entry-footer {
	padding: clamp(2.5rem, 5vw, 3.5rem) var(--gutter) 0;
}

.entry-footer > * {
	max-width: var(--measure);
	margin-inline: auto;
}

.entry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-block: 0;
	padding: 0;
	list-style: none;
}

.author-box {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1.25rem;
	align-items: start;
	margin-top: 2.5rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--line);
}

.author-box__avatar {
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	background: var(--mist);
}

.author-box__name {
	font-size: 1.125rem;
}

.author-box__name a {
	color: inherit;
	text-decoration: none;
}

.author-box__bio {
	margin-top: 0.375rem;
	color: var(--text-soft);
	font-size: 0.9375rem;
}

.post-nav {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.75rem;
	width: min(var(--measure), 100% - 2 * var(--gutter));
	margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
}

.post-nav a {
	display: block;
	padding: 1.25rem 1.375rem;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	color: var(--ink);
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.post-nav a:hover {
	border-color: var(--ink);
}

.post-nav__label {
	display: block;
	margin-bottom: 0.25rem;
	color: var(--slate);
	font-size: 0.8125rem;
}

.post-nav__title {
	display: block;
	font-weight: 700;
	line-height: 1.35;
}

.post-nav__title:lang(hi) {
	line-height: 1.6;
}

@media (min-width: 40em) {
	.post-nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.post-nav__next {
		grid-column: 2;
		text-align: right;
	}
}

/* ==========================================================================
   14. Related posts
   ========================================================================== */

.related {
	margin-top: clamp(4rem, 8vw, 6.5rem);
	padding-block: clamp(3rem, 6vw, 5rem);
	background: var(--mist);
}

.related__title {
	margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	letter-spacing: -0.02em;
}

.related__title a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--haldi);
	text-decoration-thickness: 0.12em;
	text-underline-offset: 0.18em;
}

.related .card--text {
	background: var(--paper);
}

/* ==========================================================================
   15. Comments
   ========================================================================== */

.comments-area {
	width: min(var(--measure), 100% - 2 * var(--gutter));
	margin: clamp(3rem, 6vw, 4.5rem) auto 0;
}

.comments-title,
.comment-reply-title {
	font-size: 1.5rem;
	letter-spacing: -0.015em;
}

.comment-list,
.comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list {
	margin-top: 1.5rem;
}

.comment-list .children {
	padding-left: clamp(1rem, 4vw, 2.5rem);
	border-left: 2px solid var(--line);
}

.comment-body {
	position: relative;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--line);
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.75rem;
	margin-bottom: 0.75rem;
	font-size: 0.875rem;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--ink);
	font-weight: 600;
}

.comment-author .avatar {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
}

.comment-author .says {
	display: none;
}

.comment-metadata a {
	color: var(--slate);
	text-decoration: none;
}

.comment-content {
	font-size: 1rem;
}

.comment-content p + p {
	margin-top: 0.75em;
}

.reply {
	margin-top: 0.75rem;
}

.comment-reply-link {
	display: inline-flex;
	align-items: center;
	min-height: 2.5rem;
	padding: 0 1rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--ink);
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
}

.comment-respond {
	margin-top: 2.5rem;
}

.comment-form {
	display: grid;
	gap: 1rem;
	margin-top: 1.25rem;
}

.comment-form p {
	margin: 0;
}

.comment-form label {
	display: block;
	margin-bottom: 0.375rem;
	color: var(--ink);
	font-size: 0.9375rem;
	font-weight: 500;
}

.comment-form :is(input[type="text"], input[type="email"], input[type="url"], textarea) {
	width: 100%;
	min-height: 3rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--line);
	border-radius: 0.75rem;
	background: var(--paper);
	font-size: 1rem;
	-webkit-appearance: none;
	appearance: none;
}

.comment-form textarea {
	min-height: 9rem;
	resize: vertical;
}

.comment-form :is(input, textarea):focus {
	border-color: var(--indigo);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(51, 70, 168, 0.18);
}

.comment-form-cookies-consent {
	display: flex;
	gap: 0.625rem;
	align-items: flex-start;
	font-size: 0.875rem;
}

.comment-form-cookies-consent label {
	display: inline;
	font-weight: 400;
}

.comment-notes,
.logged-in-as {
	color: var(--slate);
	font-size: 0.875rem;
}

.no-comments {
	margin-top: 1.5rem;
	color: var(--slate);
}

/* ==========================================================================
   16. Notices (404, empty results)
   ========================================================================== */

.notice {
	max-width: var(--measure);
	padding-block: clamp(3rem, 10vw, 7rem) 0;
}

.notice__title {
	font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem);
	letter-spacing: -0.025em;
}

.notice__text {
	margin-top: 1rem;
	color: var(--text-soft);
	font-size: 1.125rem;
}

.notice .search-form {
	margin-top: 2rem;
}

.notice__actions {
	margin-top: 1.25rem;
}

.notice__actions a {
	font-weight: 600;
}

/* ==========================================================================
   17. Footer
   ========================================================================== */

.site-footer {
	padding-block: clamp(2.5rem, 5vw, 3.5rem) calc(clamp(2rem, 4vw, 3rem) + env(safe-area-inset-bottom));
	border-top: 1px solid var(--line);
	color: var(--slate);
	font-size: 0.9375rem;
}

.site-footer__inner {
	display: grid;
	gap: 1.75rem;
}

.site-footer__title {
	color: var(--ink);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.015em;
	text-decoration: none;
}

.site-footer__tagline {
	max-width: 30rem;
	margin-top: 0.375rem;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	color: var(--ink);
	font-weight: 500;
	text-decoration: none;
}

.footer-menu a:hover {
	color: var(--indigo);
}

.site-footer__legal {
	font-size: 0.8125rem;
}

@media (min-width: 48em) {
	.site-footer__inner {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: end;
	}

	.site-footer__legal {
		grid-column: 1 / -1;
	}
}

/* ==========================================================================
   18. WordPress core classes
   ========================================================================== */

.alignleft {
	float: left;
}

.alignright {
	float: right;
}

.wp-caption-text,
.gallery-caption {
	color: var(--slate);
	font-size: 0.8125rem;
}

.sticky,
.bypostauthor {
	/* styled through cards and comments */
	outline: 0;
}

/* ==========================================================================
   18a. Google AdSense ad slots
   All ad slots share .patra-ad. Each placement adds its own modifier class.
   Google policy requires ads to be visually labelled — .patra-ad__label
   satisfies that rule.
   ========================================================================== */

.patra-ad {
	/* Contain the ad: prevent adsbygoogle overflow from widening the page */
	overflow: hidden;
	/* Reset any inherited text alignment */
	text-align: center;
}

.patra-ad__label {
	margin: 0 0 0.375rem;
	color: var(--slate);
	font-size: 0.6875rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1;
}

/* Make the <ins> element responsive: never wider than its container */
.patra-ad .adsbygoogle {
	display: block;
	max-width: 100%;
}

/* ---- Above the post grid / archive list ---- */
.patra-ad--leaderboard {
	padding-block: clamp(1.25rem, 3vw, 2rem);
	border-bottom: 1px solid var(--line);
}

/* ---- In-content (injected after Nth paragraph) ---- */
.patra-ad--in-content {
	margin-block: clamp(1.5rem, 4vw, 2.5rem);
	/* Match the reading column width so it sits inline with the text */
	max-width: var(--measure);
	margin-inline: auto;
}

/* ---- Below post content ---- */
.patra-ad--below-content {
	width: min(var(--measure), 100% - 2 * var(--gutter));
	margin: clamp(2rem, 5vw, 3rem) auto 0;
	padding-top: clamp(1.5rem, 4vw, 2.5rem);
	border-top: 1px solid var(--line);
}

/* ---- Footer banner ---- */
.patra-ad--footer {
	padding-block: clamp(1.5rem, 3vw, 2.5rem);
	border-bottom: 1px solid var(--line);
}

/* ==========================================================================
   19. Reduced motion & print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.card:hover,
	.card:active {
		transform: none !important;
	}

	.card:hover .card__media img {
		transform: none !important;
	}
}

@media print {
	.site-header,
	.site-footer,
	.post-nav,
	.related,
	.comments-area,
	.reading-progress,
	.patra-ad {
		display: none !important;
	}

	.entry-content {
		font-size: 11pt;
	}

	.entry-hero img {
		max-height: 12cm;
	}
}


/* ==========================================================================
   HINGLISHBLOG v3 — GenZ Pure Blog
   White bg · Inter font · Coral-orange accent · Hindi-ready
   ========================================================================== */

:root {
  --hb-bg:          #FAFAF9;
  --hb-surface:     #FFFFFF;
  --hb-surface2:    #F3F4F6;
  --hb-border:      #E5E7EB;
  --hb-text:        #111827;
  --hb-text-soft:   #6B7280;
  --hb-text-muted:  #9CA3AF;
  --hb-accent:      #FF5733;
  --hb-accent-dark: #E04020;
  --hb-accent-bg:   #FFF1EE;
  --hb-font:        'Inter', 'Noto Sans', 'Noto Sans Devanagari', system-ui, sans-serif;
  --hb-r:           0.5rem;
  --hb-r-lg:        0.875rem;
  --hb-r-xl:        1.25rem;
  --hb-shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.05);
  --hb-shadow-md:   0 4px 16px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.05);
  --hb-shadow-lg:   0 8px 32px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  --hb-ease:        cubic-bezier(0.22, 0.8, 0.24, 1);
  --hb-max:         1180px;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
body {
  background: var(--hb-bg);
  color: var(--hb-text);
  font-family: var(--hb-font);
  -webkit-font-smoothing: antialiased;
}
[lang|="hi"] {
  font-family: 'Noto Sans Devanagari', 'Noto Sans', sans-serif;
  line-height: 1.95;
  letter-spacing: 0;
  word-spacing: 0.05em;
}

.hb-container {
  width: min(var(--hb-max), 100% - 2 * clamp(1rem, 4vw, 2rem));
  margin-inline: auto;
}
.hb-main { min-height: 60vh; }

/* ── Section shared ─────────────────────────────────────────────────────── */
.hb-section { padding-block: clamp(2.5rem, 6vw, 4rem) 0; }

.hb-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.hb-section-title {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 800;
  color: var(--hb-text);
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.2;
  padding-left: 0.875rem;
  position: relative;
}
.hb-section-title::before {
  content: '';
  position: absolute;
  left: 0; top: 0.1em; bottom: 0.1em;
  width: 3px;
  background: var(--hb-accent);
  border-radius: 2px;
}
.hb-see-all {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hb-accent);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s;
}
.hb-see-all:hover { color: var(--hb-accent-dark); }

/* Shared badge */
.hb-badge {
  display: inline-block;
  padding: 0.18em 0.6em;
  background: var(--hb-accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  border-radius: 3px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.5;
  transition: background 0.18s;
}
.hb-badge:hover { background: var(--hb-accent-dark); color: #fff; }
.hb-badge--xs { font-size: 0.58rem; padding: 0.14em 0.5em; }

/* Dot separator */
.hb-dot {
  display: inline-block;
  width: 3px; height: 3px;
  background: var(--hb-text-muted);
  border-radius: 50%;
  vertical-align: middle;
  margin-inline: 0.35rem;
}

/* Reading time */
.hb-read-time {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  color: var(--hb-text-muted);
  font-weight: 500;
}

/* CTA button */
.hb-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.65rem 1.375rem;
  background: var(--hb-accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255,87,51,.28);
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}
.hb-btn:hover {
  background: var(--hb-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,87,51,.38);
  color: #fff;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.hb-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,249,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hb-border);
  transition: box-shadow 0.22s;
}
.hb-header.is-scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.09); }
.hb-header.site-header { background: rgba(250,250,249,0.88); }
.hb-header.site-header.is-scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.09); }

.hb-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 3.75rem;
}

/* Logo */
.hb-logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex: none;
}
.hb-logo__text {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
}
.hb-logo__hi  { color: var(--hb-text); }
.hb-logo__dot { color: var(--hb-accent); }
.hb-logo--footer .hb-logo__text { font-size: 1.3rem; }

/* Nav */
.hb-nav { margin-left: auto; }
.hb-nav .hb-nav__list,
.hb-nav .menu {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  list-style: none;
  margin: 0; padding: 0;
}
.hb-nav .menu > li > a {
  display: block;
  padding: 0.38rem 0.8rem;
  color: var(--hb-text-soft);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.16s, color 0.16s;
}
.hb-nav .menu > li > a:hover,
.hb-nav .menu > .current-menu-item > a {
  background: var(--hb-accent-bg);
  color: var(--hb-accent);
}

.hb-header__actions { display: flex; align-items: center; gap: 0.2rem; }
.hb-header .icon-btn { color: var(--hb-text); background: transparent; }
.hb-header .icon-btn:hover { background: var(--hb-surface2); }
.hb-search-btn, .hb-menu-btn {
  background: transparent; border: none;
  color: var(--hb-text); cursor: pointer;
  padding: 0.45rem; border-radius: var(--hb-r);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.16s;
}
.hb-search-btn:hover, .hb-menu-btn:hover { background: var(--hb-surface2); }

.hb-search-panel {
  padding: 0.875rem 0;
  border-top: 1px solid var(--hb-border);
  background: rgba(250,250,249,.98);
}
.hb-search-panel .search-form { max-width: 36rem; margin-inline: auto; }
.hb-search-panel .search-form__input {
  background: var(--hb-surface);
  border-color: var(--hb-border);
  color: var(--hb-text);
  border-radius: 999px;
}
.hb-search-panel .search-form__input:focus {
  border-color: var(--hb-accent);
  box-shadow: 0 0 0 3px rgba(255,87,51,.12);
}

@media (max-width: 63.99em) {
  .hb-header .primary-nav {
    background: rgba(250,250,249,.98);
    border-top: 1px solid var(--hb-border);
    padding: 0.75rem clamp(1rem,4vw,2rem) 2.5rem;
  }
  .hb-header .primary-nav .menu > li { border-bottom-color: var(--hb-border); }
  .hb-header .primary-nav .menu > li > a { color: var(--hb-text); font-size: 1.1rem; font-weight: 700; min-height: 3rem; }
  .hb-header .primary-nav .menu > li > a:hover { color: var(--hb-accent); background: transparent; }
  .hb-menu-btn { display: flex; }
}
@media (min-width: 64em) { .hb-menu-btn { display: none; } }

/* ==========================================================================
   HERO  — full-bleed image card + 2 side cards
   ========================================================================== */
.hb-hero { padding-block: clamp(1.5rem, 4vw, 2.5rem) 0; }
.hb-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}
@media (max-width: 47.99em) { .hb-hero__layout { grid-template-columns: 1fr; } }

/* Big left card — image full, text overlaid at bottom */
.hb-hero__main { position: relative; border-radius: var(--hb-r-xl); overflow: hidden; }
.hb-hero__img-link { display: block; position: relative; height: 100%; min-height: 340px; }
.hb-hero__img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
  transition: transform 0.65s var(--hb-ease);
}
.hb-hero__main:hover .hb-hero__img { transform: scale(1.04); }
.hb-hero__img--empty {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--hb-surface2), var(--hb-border));
}
/* Gradient overlay so white text reads on any photo */
.hb-hero__img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,.82) 0%,
    rgba(0,0,0,.38) 45%,
    rgba(0,0,0,.0) 75%);
}
/* Text at bottom of image */
.hb-hero__img-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  z-index: 2;
}
.hb-hero__img-body .hb-badge { margin-bottom: 0.625rem; }
.hb-hero__title {
  font-size: clamp(1.3rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 0.625rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.hb-hero__title:lang(hi) { letter-spacing: 0; line-height: 1.4; }
.hb-hero__excerpt {
  font-size: 0.9rem;
  color: rgba(255,255,255,.80);
  line-height: 1.6;
  margin: 0 0 0.875rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hb-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,.70);
}
.hb-hero__author { font-weight: 600; color: rgba(255,255,255,.88); }

/* Side 2 cards stacked */
.hb-hero__side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hb-hero__side-card {
  display: grid;
  grid-template-columns: 6rem minmax(0,1fr);
  gap: 0.75rem;
  align-items: start;
  background: var(--hb-surface);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-r-lg);
  padding: 0.875rem;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  flex: 1;
}
.hb-hero__side-card:hover {
  box-shadow: var(--hb-shadow-md);
  border-color: transparent;
  transform: translateY(-2px);
}
.hb-hero__side-img-link { display: block; overflow: hidden; border-radius: var(--hb-r); flex: none; }
.hb-hero__side-img {
  display: block; width: 100%;
  aspect-ratio: 4/3; object-fit: cover;
  transition: transform 0.45s var(--hb-ease);
}
.hb-hero__side-card:hover .hb-hero__side-img { transform: scale(1.08); }
.hb-hero__side-body { display: flex; flex-direction: column; gap: 0.3rem; }
.hb-hero__side-title {
  font-size: 0.9rem; font-weight: 700;
  line-height: 1.38; margin: 0.25rem 0 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hb-hero__side-title:lang(hi) { letter-spacing: 0; line-height: 1.6; }
.hb-hero__side-title a { color: var(--hb-text); text-decoration: none; }
.hb-hero__side-title a:hover { color: var(--hb-accent); }
.hb-hero__side-meta {
  display: flex; align-items: center;
  font-size: 0.72rem; color: var(--hb-text-muted);
  margin-top: 0.125rem;
}

/* ==========================================================================
   CATEGORY CHIP STRIP  (horizontal scroll)
   ========================================================================== */
.hb-cat-strip {
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--hb-border);
  overflow: hidden;
}
.hb-cat-strip__track {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  padding-bottom: 2px; /* room for focus ring */
}
.hb-cat-strip__track::-webkit-scrollbar { display: none; }

.hb-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 1rem;
  background: var(--hb-surface);
  border: 1.5px solid var(--hb-border);
  border-radius: 999px;
  color: var(--hb-text-soft);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex: none;
  scroll-snap-align: start;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.hb-chip:hover {
  background: var(--chip-color, var(--hb-accent));
  color: #fff;
  border-color: var(--chip-color, var(--hb-accent));
}
.hb-chip--active {
  background: var(--hb-accent);
  color: #fff;
  border-color: var(--hb-accent);
}

/* ==========================================================================
   POSTS GRID  (3 col)
   ========================================================================== */
.hb-posts-section { padding-bottom: clamp(2rem, 5vw, 3.5rem); }

.hb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
@media (max-width: 63.99em) { .hb-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 39.99em) { .hb-grid { grid-template-columns: 1fr; } }

.hb-card {
  background: var(--hb-surface);
  border-radius: var(--hb-r-lg);
  border: 1px solid var(--hb-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s var(--hb-ease), box-shadow 0.22s, border-color 0.22s;
}
.hb-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hb-shadow-lg);
  border-color: transparent;
}
.hb-card__img-wrap {
  display: block; overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--hb-surface2);
}
.hb-card__img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--hb-ease);
}
.hb-card:hover .hb-card__img { transform: scale(1.07); }
.hb-card__img-placeholder {
  width: 100%; aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--hb-surface2) 0%, var(--hb-border) 100%);
}
.hb-card__body {
  padding: 1.125rem;
  display: flex; flex-direction: column;
  gap: 0.5rem; flex: 1;
}
.hb-card__title {
  font-size: 0.975rem; font-weight: 700;
  line-height: 1.42; letter-spacing: -0.01em; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hb-card__title:lang(hi) { letter-spacing: 0; line-height: 1.65; }
.hb-card__title a { color: var(--hb-text); text-decoration: none; }
.hb-card__title a:hover { color: var(--hb-accent); }
.hb-card__excerpt {
  font-size: 0.845rem; color: var(--hb-text-soft);
  line-height: 1.65; margin: 0; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hb-card__foot {
  display: flex; align-items: center;
  justify-content: space-between; gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--hb-border);
  margin-top: 0.25rem;
}
.hb-card__author-row {
  display: flex; align-items: center; gap: 0.4rem;
}
.hb-card__avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  flex: none;
  object-fit: cover;
}
.hb-card__author {
  font-size: 0.75rem; font-weight: 600;
  color: var(--hb-text-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 8rem;
}

/* Pagination */
.hb-main .nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 2.5rem; justify-content: center; list-style: none; padding: 0; }
.hb-main .nav-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.5rem; height: 2.5rem; padding: 0 0.75rem;
  border-radius: 999px; font-size: 0.875rem; font-weight: 600;
  text-decoration: none; color: var(--hb-text-soft);
  border: 1px solid var(--hb-border); background: var(--hb-surface);
  transition: all 0.18s;
}
a.page-numbers:hover { background: var(--hb-accent-bg); color: var(--hb-accent); border-color: var(--hb-accent); }
.page-numbers.current { background: var(--hb-accent); color: #fff; border-color: var(--hb-accent); }

/* ==========================================================================
   CATEGORY CARDS  (2-row, image bg)
   ========================================================================== */
.hb-cats-section {
  background: var(--hb-surface2);
  border-top: 1px solid var(--hb-border);
  border-bottom: 1px solid var(--hb-border);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.hb-cats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 0.875rem;
}
@media (max-width: 63.99em) { .hb-cats-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 39.99em) { .hb-cats-grid { grid-template-columns: repeat(2,1fr); } }

.hb-cat-card {
  position: relative;
  display: flex; align-items: flex-end;
  aspect-ratio: 3/4;
  border-radius: var(--hb-r-lg);
  overflow: hidden;
  text-decoration: none;
  background: var(--cat-color, var(--hb-accent));
  transition: transform 0.22s var(--hb-ease), box-shadow 0.22s;
}
.hb-cat-card:hover { transform: translateY(-4px); box-shadow: var(--hb-shadow-lg); }
.hb-cat-card__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--hb-ease);
}
.hb-cat-card:hover .hb-cat-card__bg { transform: scale(1.08); }
.hb-cat-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,.80) 0%,
    color-mix(in srgb, var(--cat-color, #FF5733) 60%, transparent) 55%,
    color-mix(in srgb, var(--cat-color, #FF5733) 20%, transparent) 100%);
}
@supports not (color: color-mix(in srgb, red, blue)) {
  .hb-cat-card__overlay { background: linear-gradient(to top, rgba(0,0,0,.80) 0%, rgba(0,0,0,.25) 100%); }
}
.hb-cat-card__inner {
  position: relative; z-index: 2;
  padding: 0.875rem;
  width: 100%;
}
.hb-cat-card__icon { display: block; font-size: 1.5rem; margin-bottom: 0.25rem; }
.hb-cat-card__name { display: block; color: #fff; font-weight: 800; font-size: 0.9rem; line-height: 1.2; }
.hb-cat-card__count { display: block; color: rgba(255,255,255,.65); font-size: 0.68rem; margin-top: 0.15rem; }

/* ==========================================================================
   TRENDING POSTS  (numbered list)
   ========================================================================== */
.hb-trending-section { padding-bottom: clamp(2rem, 5vw, 3.5rem); }

.hb-trending-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hb-trending-item {
  display: grid;
  grid-template-columns: 2.5rem 6rem minmax(0,1fr);
  gap: 1rem;
  align-items: center;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--hb-border);
  transition: background 0.18s;
}
.hb-trending-item:last-child { border-bottom: 0; }
.hb-trending-item:hover { background: var(--hb-accent-bg); border-radius: var(--hb-r); padding-inline: 0.75rem; margin-inline: -0.75rem; }

.hb-trending-num {
  font-size: 1.625rem;
  font-weight: 900;
  color: var(--hb-border);
  letter-spacing: -0.04em;
  line-height: 1;
  flex: none;
}
.hb-trending-item:first-child .hb-trending-num { color: var(--hb-accent); }
.hb-trending-item:nth-child(2) .hb-trending-num { color: #9CA3AF; }
.hb-trending-item:nth-child(3) .hb-trending-num { color: #D97706; }

.hb-trending-img-link { display: block; overflow: hidden; border-radius: var(--hb-r); flex: none; }
.hb-trending-img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.hb-trending-body { display: flex; flex-direction: column; gap: 0.3rem; }
.hb-trending-title { font-size: 0.925rem; font-weight: 700; line-height: 1.38; margin: 0.25rem 0 0; }
.hb-trending-title:lang(hi) { letter-spacing: 0; line-height: 1.6; }
.hb-trending-title a { color: var(--hb-text); text-decoration: none; }
.hb-trending-title a:hover { color: var(--hb-accent); }
.hb-trending-meta { display: flex; align-items: center; font-size: 0.72rem; color: var(--hb-text-muted); }

@media (max-width: 39.99em) {
  .hb-trending-item { grid-template-columns: 2rem minmax(0,1fr); }
  .hb-trending-img-link { display: none; }
}

/* ==========================================================================
   AD SLOT
   ========================================================================== */
.hb-ad-slot { padding-block: clamp(1rem, 3vw, 1.75rem); text-align: center; }
.hb-ad-slot .patra-ad__label { color: var(--hb-text-muted); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.hb-footer {
  background: var(--hb-text);
  padding-top: clamp(2.5rem, 6vw, 4rem);
}
.hb-footer__top {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) repeat(2, minmax(0,1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 47.99em) { .hb-footer__top { grid-template-columns: 1fr; } }

.hb-footer__tagline { color: rgba(255,255,255,.5); font-size: 0.875rem; line-height: 1.7; margin: 0.625rem 0 1.25rem; max-width: 26rem; }
.hb-footer__social { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.hb-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.125rem; height: 2.125rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--hb-r);
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.hb-social svg { width: 0.9rem; height: 0.9rem; display: block; }
.hb-social:hover { background: var(--hb-accent); color: #fff; border-color: var(--hb-accent); transform: translateY(-2px); }

.hb-footer__heading {
  font-size: 0.72rem; font-weight: 700;
  color: rgba(255,255,255,.38);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin: 0 0 0.875rem;
}
.hb-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.hb-footer__links a {
  color: rgba(255,255,255,.6); text-decoration: none;
  font-size: 0.875rem; transition: color 0.18s;
  display: flex; align-items: center; gap: 0.375rem;
}
.hb-footer__links a::before { content: '›'; color: var(--hb-accent); font-weight: 700; }
.hb-footer__links a:hover { color: #fff; }

.hb-footer__bottom {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  padding: 1.25rem 0;
}
.hb-footer__copy { font-size: 0.78rem; color: rgba(255,255,255,.32); margin: 0; }
.hb-footer__copy--right { text-align: right; }

/* ==========================================================================
   ARCHIVE PAGE
   ========================================================================== */
.hb-archive { padding-block: clamp(2rem, 5vw, 3.5rem); }
.hb-archive__head { margin-bottom: 2rem; }
.hb-archive__title {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  font-weight: 900; letter-spacing: -0.03em; color: var(--hb-text);
}

/* ==========================================================================
   SINGLE POST
   ========================================================================== */
.site-main--single { background: var(--hb-bg); }
.entry-title { font-family: var(--hb-font); letter-spacing: -0.03em; color: var(--hb-text); }
.entry-title:lang(hi) { letter-spacing: 0; }
.entry-content { font-family: var(--hb-font); line-height: 1.82; color: #374151; }
.entry-content:lang(hi) { line-height: 2.05; letter-spacing: 0; }
.entry-content > p:first-child { font-size: 1.14em; color: var(--hb-text); }
.entry-content h2, .entry-content h3 { letter-spacing: -0.02em; color: var(--hb-text); }
.entry-content h2:lang(hi), .entry-content h3:lang(hi) { letter-spacing: 0; }
.entry-content a { color: var(--hb-accent); }
.entry-content a:hover { color: var(--hb-accent-dark); }
.entry-content li::marker { color: var(--hb-accent); }
.entry-content blockquote { border-left-color: var(--hb-accent); }
.reading-progress span { background: var(--hb-accent); }

/* ==========================================================================
   PRINT & REDUCED MOTION
   ========================================================================== */
@media print {
  .hb-header, .hb-footer, .hb-cat-strip, .patra-ad { display: none !important; }
  body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .hb-card, .hb-cat-card, .hb-hero__side-card, .hb-btn,
  .hb-card__img, .hb-hero__img, .hb-hero__side-img,
  .hb-cat-card__bg, .hb-social { transition: none !important; transform: none !important; }
}

/* ==========================================================================
   SINGLE POST  — HinglishBlog v3
   ========================================================================== */

/* ── Layout ── */
.hb-single { max-width: 100%; }

.hb-single__header {
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
  max-width: 52rem;
  margin-inline: auto;
}

.hb-single__cat { margin-bottom: 1rem; display: inline-block; }

.hb-single__title {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.875rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.18;
  color: var(--hb-text);
  margin: 0 0 1rem;
}
.hb-single__title:lang(hi) { letter-spacing: 0; line-height: 1.4; }

.hb-single__dek {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: var(--hb-text-soft);
  line-height: 1.65;
  margin: 0 0 1.5rem;
}

/* Meta row */
.hb-single__meta {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
}
.hb-single__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  flex: none;
  object-fit: cover;
  border: 2px solid var(--hb-border);
}
.hb-single__meta-text { display: flex; flex-direction: column; gap: 0.15rem; }
.hb-single__author {
  font-size: 0.9rem; font-weight: 700;
  color: var(--hb-text); text-decoration: none;
}
.hb-single__author:hover { color: var(--hb-accent); }
.hb-single__meta-details {
  display: flex; align-items: center;
  font-size: 0.78rem; color: var(--hb-text-muted);
}

/* ── Hero image ── */
.hb-single__hero {
  margin: 0 0 clamp(1.5rem, 4vw, 3rem);
  max-width: min(900px, 100% - 2 * clamp(1rem, 4vw, 2rem));
  margin-inline: auto;
}
.hb-single__hero-img {
  display: block; width: 100%;
  border-radius: var(--hb-r-xl);
  height: auto;
  max-height: min(75vh, 52rem);
  object-fit: cover;
}
.hb-single__hero-cap {
  margin-top: 0.625rem;
  color: var(--hb-text-muted);
  font-size: 0.8125rem;
  text-align: center;
}
@media (max-width: 47.99em) {
  .hb-single__hero { max-width: 100%; }
  .hb-single__hero-img { border-radius: 0; max-height: 60vw; }
}

/* ── Body layout: content + ToC ── */
.hb-single__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
@media (max-width: 63.99em) {
  .hb-single__body { grid-template-columns: 1fr; }
  /* ToC goes above content on mobile */
  .hb-toc { order: -1; }
}

/* ── Table of Contents ── */
.hb-toc {
  position: sticky;
  top: calc(4rem + 1.5rem); /* header height + gap */
  background: var(--hb-surface);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-r-lg);
  padding: 1.125rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--hb-border) transparent;
  order: 2;
}
.hb-toc__head {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid var(--hb-accent);
}
.hb-toc__title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--hb-text);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.hb-toc__toggle {
  background: transparent; border: none;
  color: var(--hb-text-soft); cursor: pointer;
  padding: 0.2rem; line-height: 1;
  transition: transform 0.2s;
}
.hb-toc__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.1rem;
}
.hb-toc__item { margin: 0; }
.hb-toc__item--h3 { padding-left: 0.875rem; }
.hb-toc__link {
  display: block;
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--hb-text-soft);
  text-decoration: none;
  border-radius: var(--hb-r);
  border-left: 2px solid transparent;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
}
.hb-toc__link:hover { color: var(--hb-accent); background: var(--hb-accent-bg); }
.hb-toc__link--active {
  color: var(--hb-accent);
  border-left-color: var(--hb-accent);
  background: var(--hb-accent-bg);
  font-weight: 600;
}

/* ── Entry content (override Patra) ── */
.hb-single__content.entry-content {
  order: 1;
  font-size: clamp(1.05rem, 1rem + 0.2vw, 1.125rem);
}

/* ── Post footer: tags + share ── */
.hb-single__footer {
  padding-block: 1.5rem;
  border-top: 1px solid var(--hb-border);
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-bottom: 2rem;
  max-width: 52rem;
  margin-inline: auto;
}
.hb-single__tags {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 0.4rem;
  flex: 1;
}
.hb-single__tags-label {
  font-size: 0.78rem; font-weight: 700;
  color: var(--hb-text-soft);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-right: 0.25rem;
}
.hb-tag {
  display: inline-block;
  padding: 0.28rem 0.75rem;
  background: var(--hb-surface2);
  border: 1px solid var(--hb-border);
  border-radius: 999px;
  color: var(--hb-text-soft);
  font-size: 0.78rem; font-weight: 600;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.hb-tag:hover { background: var(--hb-accent-bg); color: var(--hb-accent); border-color: var(--hb-accent); }

/* ── Social share ── */
.hb-share { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.hb-share--header { margin-left: auto; }
.hb-share--footer .hb-share__label {
  font-size: 0.8rem; font-weight: 700;
  color: var(--hb-text-soft);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-right: 0.25rem;
}
.hb-share__btn {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.38rem 0.875rem;
  border: 1.5px solid var(--hb-border);
  border-radius: 999px;
  font-size: 0.78rem; font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
  background: transparent;
}
.hb-share__btn svg { width: 0.9rem; height: 0.9rem; flex: none; }
/* Header share — icon-only pills */
.hb-share--header .hb-share__btn {
  width: 2.25rem; height: 2.25rem; padding: 0;
  justify-content: center;
  border-radius: 50%;
}
.hb-share__btn--tw  { color: #1da1f2; border-color: #d4edf9; }
.hb-share__btn--tw:hover  { background: #1da1f2; color: #fff; border-color: #1da1f2; transform: translateY(-2px); }
.hb-share__btn--fb  { color: #1877f2; border-color: #dce8fd; }
.hb-share__btn--fb:hover  { background: #1877f2; color: #fff; border-color: #1877f2; transform: translateY(-2px); }
.hb-share__btn--wa  { color: #25d366; border-color: #d4f5e2; }
.hb-share__btn--wa:hover  { background: #25d366; color: #fff; border-color: #25d366; transform: translateY(-2px); }
.hb-share__btn--copy { color: var(--hb-text-soft); border-color: var(--hb-border); }
.hb-share__btn--copy:hover { background: var(--hb-surface2); color: var(--hb-text); transform: translateY(-2px); }
.hb-share__btn--copied { background: #d1fae5; color: #059669; border-color: #6ee7b7; }

/* ── Author box ── */
.hb-author-box {
  display: grid;
  grid-template-columns: 80px minmax(0,1fr);
  gap: 1.25rem;
  align-items: start;
  padding: 1.75rem;
  background: var(--hb-surface);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-r-xl);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 52rem;
  margin-inline: auto;
}
.hb-author-box__avatar {
  width: 80px; height: 80px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid var(--hb-accent-bg);
  flex: none;
}
.hb-author-box__label {
  display: block;
  font-size: 0.65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--hb-accent);
  margin-bottom: 0.25rem;
}
.hb-author-box__name {
  display: block;
  font-size: 1.1rem; font-weight: 800;
  color: var(--hb-text);
  text-decoration: none; letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.hb-author-box__name:hover { color: var(--hb-accent); }
.hb-author-box__bio { font-size: 0.9rem; color: var(--hb-text-soft); line-height: 1.65; margin: 0 0 0.875rem; }
.hb-author-box__link {
  font-size: 0.82rem; font-weight: 700;
  color: var(--hb-accent); text-decoration: none;
}
.hb-author-box__link:hover { color: var(--hb-accent-dark); text-decoration: underline; }

/* ── Prev / Next nav ── */
.hb-post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
@media (max-width: 39.99em) { .hb-post-nav { grid-template-columns: 1fr; } }

.hb-post-nav__item {
  display: grid;
  grid-template-columns: 4rem minmax(0,1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.125rem;
  background: var(--hb-surface);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-r-lg);
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  min-height: 4.5rem;
}
.hb-post-nav__item:hover { box-shadow: var(--hb-shadow-md); border-color: transparent; transform: translateY(-2px); }
.hb-post-nav__thumb {
  width: 4rem; height: 4rem;
  object-fit: cover;
  border-radius: var(--hb-r);
  flex: none;
}
.hb-post-nav__next {
  grid-column: 2;
  text-align: right;
  grid-template-columns: minmax(0,1fr) 4rem;
}
@media (max-width: 39.99em) { .hb-post-nav__next { grid-column: 1; text-align: left; grid-template-columns: 4rem minmax(0,1fr); } }
.hb-post-nav__dir {
  display: block;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--hb-text-muted);
  margin-bottom: 0.2rem;
}
.hb-post-nav__ttl {
  display: block;
  font-size: 0.875rem; font-weight: 700;
  color: var(--hb-text); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── Related posts ── */
.hb-related {
  background: var(--hb-surface2);
  border-top: 1px solid var(--hb-border);
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
.hb-related__grid { }
.hb-related .hb-section-title span { color: var(--hb-accent); }

/* ── Comments area ── */
.hb-comments { padding-block: clamp(2rem, 5vw, 3.5rem); max-width: 52rem; margin-inline: auto; }

/* ── Back to top ── */
.hb-back-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 3rem; height: 3rem;
  background: var(--hb-accent);
  color: #fff;
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255,87,51,.35);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.22s, transform 0.22s;
  z-index: 50;
}
.hb-back-top--visible { opacity: 1; transform: translateY(0); }
.hb-back-top:hover { background: var(--hb-accent-dark); transform: translateY(-2px); }
@media (max-width: 39.99em) { .hb-back-top { bottom: 1.25rem; right: 1.25rem; width: 2.75rem; height: 2.75rem; } }


/* Centered post pagination */
.hb-pagination,
.navigation.pagination,
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 32px auto;
  text-align: center;
}

.hb-pagination .nav-links,
.navigation.pagination .nav-links,
.pagination .nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  text-align: center;
}

.hb-pagination a,
.hb-pagination span,
.navigation.pagination a,
.navigation.pagination span,
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  box-sizing: border-box;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1;
}

.hb-pagination .page-numbers.current,
.navigation.pagination .page-numbers.current,
.pagination .page-numbers.current {
  min-width: 36px;
}

.hb-pagination .prev,
.hb-pagination .next,
.navigation.pagination .prev,
.navigation.pagination .next,
.pagination .prev,
.pagination .next {
  padding-left: 14px;
  padding-right: 14px;
}

@media (max-width: 600px) {
  .hb-pagination .nav-links,
  .navigation.pagination .nav-links,
  .pagination .nav-links {
    gap: 4px;
    padding: 4px 6px;
    max-width: 100%;
  }

  .hb-pagination a,
  .hb-pagination span,
  .navigation.pagination a,
  .navigation.pagination span,
  .pagination a,
  .pagination span {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
  }
}


/* ==========================================================================
   Beautiful centered pagination
   Uses the existing WordPress paginate_links() markup.
   ========================================================================== */

.pagination,
.navigation.pagination {
	width: 100% !important;
	margin: clamp(2rem, 4vw, 3rem) auto !important;
	padding: 0 !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	float: none !important;
	clear: both !important;
}

.pagination .nav-links,
.navigation.pagination .nav-links {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-wrap: nowrap !important;
	gap: 5px !important;
	margin: 0 auto !important;
	padding: 7px !important;
	background: #fff !important;
	border: 1px solid rgba(20, 27, 40, 0.09) !important;
	border-radius: 18px !important;
	box-shadow: 0 8px 24px rgba(20, 27, 40, 0.08) !important;
}

.pagination .page-numbers,
.navigation.pagination .page-numbers {
	position: static !important;
	float: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 auto !important;
	width: 38px !important;
	min-width: 38px !important;
	height: 38px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: transparent !important;
	color: var(--ink) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease !important;
}

.pagination a.page-numbers:hover,
.navigation.pagination a.page-numbers:hover {
	background: #fff1ed !important;
	color: #ff5538 !important;
	transform: translateY(-1px);
}

.pagination .page-numbers.current,
.navigation.pagination .page-numbers.current {
	background: #ff5538 !important;
	color: #fff !important;
	font-weight: 700 !important;
	box-shadow: 0 5px 12px rgba(255, 85, 56, 0.22) !important;
}

.pagination .page-numbers.dots,
.navigation.pagination .page-numbers.dots {
	width: 30px !important;
	min-width: 30px !important;
	color: #8a909a !important;
	background: transparent !important;
	box-shadow: none !important;
}

.pagination .prev,
.pagination .next,
.navigation.pagination .prev,
.navigation.pagination .next {
	width: auto !important;
	min-width: 88px !important;
	padding: 0 15px !important;
	border-radius: 12px !important;
	background: #f7f8fa !important;
	color: var(--ink) !important;
	font-weight: 700 !important;
}

.pagination .prev:hover,
.pagination .next:hover,
.navigation.pagination .prev:hover,
.navigation.pagination .next:hover {
	background: #fff1ed !important;
	color: #ff5538 !important;
}

.pagination .prev {
	margin-right: 4px !important;
}

.pagination .next {
	margin-left: 4px !important;
}

/* Keep the pagination centered even if surrounding theme rules use floats. */
.pagination .nav-links::before,
.pagination .nav-links::after,
.navigation.pagination .nav-links::before,
.navigation.pagination .nav-links::after {
	display: none !important;
	content: none !important;
}

@media (max-width: 600px) {
	.pagination,
	.navigation.pagination {
		margin: 24px auto !important;
	}

	.pagination .nav-links,
	.navigation.pagination .nav-links {
		max-width: calc(100vw - 24px) !important;
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch !important;
		scrollbar-width: none !important;
		border-radius: 15px !important;
		padding: 5px !important;
	}

	.pagination .nav-links::-webkit-scrollbar,
	.navigation.pagination .nav-links::-webkit-scrollbar {
		display: none !important;
	}

	.pagination .page-numbers,
	.navigation.pagination .page-numbers {
		width: 34px !important;
		min-width: 34px !important;
		height: 34px !important;
		border-radius: 10px !important;
		font-size: 13px !important;
	}

	.pagination .prev,
	.pagination .next,
	.navigation.pagination .prev,
	.navigation.pagination .next {
		min-width: 72px !important;
		padding: 0 12px !important;
	}
}

/* ==========================================================================
   Post pagination - actual paginate_links() markup
   ========================================================================== */

.hb-post-pagination {
	display: flex !important;
	width: 100% !important;
	justify-content: center !important;
	align-items: center !important;
	margin: 34px auto 40px !important;
	padding: 0 !important;
	clear: both !important;
	float: none !important;
	text-align: center !important;
}

.hb-post-pagination > ul.page-numbers {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	list-style: none !important;
	margin: 0 auto !important;
	padding: 7px !important;
	width: max-content !important;
	max-width: calc(100% - 24px) !important;
	box-sizing: border-box !important;
	background: #ffffff !important;
	border: 1px solid rgba(20, 27, 40, .10) !important;
	border-radius: 18px !important;
	box-shadow: 0 7px 24px rgba(20, 27, 40, .08) !important;
}

.hb-post-pagination > ul.page-numbers > li {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.hb-post-pagination > ul.page-numbers > li > a,
.hb-post-pagination > ul.page-numbers > li > span {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 38px !important;
	min-width: 38px !important;
	height: 38px !important;
	padding: 0 !important;
	margin: 0 !important;
	box-sizing: border-box !important;
	border: 0 !important;
	border-radius: 11px !important;
	background: transparent !important;
	color: var(--ink, #172033) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	text-decoration: none !important;
}

.hb-post-pagination > ul.page-numbers > li > a:hover {
	background: #fff0eb !important;
	color: #ff5639 !important;
}

.hb-post-pagination > ul.page-numbers > li > span.current {
	background: #ff5639 !important;
	color: #ffffff !important;
	font-weight: 700 !important;
	box-shadow: 0 5px 12px rgba(255, 86, 57, .22) !important;
}

.hb-post-pagination > ul.page-numbers > li > span.dots {
	width: 28px !important;
	min-width: 28px !important;
	background: transparent !important;
	color: #8b919b !important;
	box-shadow: none !important;
}

.hb-post-pagination > ul.page-numbers > li > a.prev,
.hb-post-pagination > ul.page-numbers > li > a.next {
	width: auto !important;
	min-width: 86px !important;
	padding: 0 14px !important;
	background: #f7f8fa !important;
	font-weight: 700 !important;
}

.hb-post-pagination > ul.page-numbers > li > a.prev:hover,
.hb-post-pagination > ul.page-numbers > li > a.next:hover {
	background: #fff0eb !important;
	color: #ff5639 !important;
}

@media (max-width: 600px) {
	.hb-post-pagination {
		margin: 26px auto 32px !important;
	}

	.hb-post-pagination > ul.page-numbers {
		gap: 4px !important;
		padding: 5px !important;
		max-width: calc(100vw - 20px) !important;
		overflow-x: auto !important;
		scrollbar-width: none !important;
	}

	.hb-post-pagination > ul.page-numbers::-webkit-scrollbar {
		display: none !important;
	}

	.hb-post-pagination > ul.page-numbers > li > a,
	.hb-post-pagination > ul.page-numbers > li > span {
		width: 34px !important;
		min-width: 34px !important;
		height: 34px !important;
		border-radius: 10px !important;
		font-size: 13px !important;
	}

	.hb-post-pagination > ul.page-numbers > li > a.prev,
	.hb-post-pagination > ul.page-numbers > li > a.next {
		min-width: 70px !important;
		padding: 0 10px !important;
	}
}


/* Keep paginated Latest Posts identical to the homepage grid. */
.home .hb-latest-grid,
.blog .hb-latest-grid,
.paged .hb-latest-grid {
	display: grid;
}


/* ==========================================================================
   Pagination
   ========================================================================== */

.hb-post-pagination {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 34px auto 40px;
	padding: 0;
	clear: both;
}

.hb-post-pagination > ul.page-numbers {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	list-style: none;
	width: max-content;
	max-width: calc(100% - 24px);
	margin: 0 auto;
	padding: 7px;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid rgba(20, 27, 40, .10);
	border-radius: 18px;
	box-shadow: 0 7px 24px rgba(20, 27, 40, .08);
}

.hb-post-pagination > ul.page-numbers > li {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hb-post-pagination > ul.page-numbers > li > a,
.hb-post-pagination > ul.page-numbers > li > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	min-width: 38px;
	height: 38px;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	border: 0;
	border-radius: 11px;
	background: transparent;
	color: var(--ink, #172033);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
}

.hb-post-pagination > ul.page-numbers > li > a:hover {
	background: #fff0eb;
	color: #ff5639;
}

.hb-post-pagination > ul.page-numbers > li > span.current {
	background: #ff5639;
	color: #fff;
	font-weight: 700;
	box-shadow: 0 5px 12px rgba(255, 86, 57, .22);
}

.hb-post-pagination > ul.page-numbers > li > span.dots {
	width: 28px;
	min-width: 28px;
	color: #8b919b;
	background: transparent;
}

.hb-post-pagination > ul.page-numbers > li > a.prev,
.hb-post-pagination > ul.page-numbers > li > a.next {
	width: auto;
	min-width: 82px;
	padding: 0 14px;
	background: #f7f8fa;
	font-weight: 700;
}

.hb-post-pagination > ul.page-numbers > li > a.prev:hover,
.hb-post-pagination > ul.page-numbers > li > a.next:hover {
	background: #fff0eb;
	color: #ff5639;
}

@media (max-width: 600px) {
	.hb-post-pagination {
		margin: 26px auto 32px;
	}

	.hb-post-pagination > ul.page-numbers {
		gap: 4px;
		padding: 5px;
		max-width: calc(100vw - 20px);
		overflow-x: auto;
		scrollbar-width: none;
	}

	.hb-post-pagination > ul.page-numbers::-webkit-scrollbar {
		display: none;
	}

	.hb-post-pagination > ul.page-numbers > li > a,
	.hb-post-pagination > ul.page-numbers > li > span {
		width: 34px;
		min-width: 34px;
		height: 34px;
		border-radius: 10px;
		font-size: 13px;
	}

	.hb-post-pagination > ul.page-numbers > li > a.prev,
	.hb-post-pagination > ul.page-numbers > li > a.next {
		min-width: 70px;
		padding: 0 10px;
	}
}

/* MOBILE MENU LAYER FIX */
@media (max-width: 63.99em) {
	/* The header stays above the page while the menu is open. */
	#site-header.hb-header {
		position: sticky;
		top: 0;
		z-index: 1000;
	}

	#site-header.hb-header .hb-header__inner {
		position: relative;
		z-index: 1002;
	}

	#site-header.hb-header .header-actions {
		position: relative;
		z-index: 1004;
	}

	#site-header.hb-header .menu-toggle,
	#site-header.hb-header .hb-menu-btn {
		position: relative;
		z-index: 1005;
		display: inline-flex !important;
		visibility: visible !important;
		opacity: 1 !important;
		width: 44px;
		height: 44px;
		flex: 0 0 44px;
	}

	/* Full-screen panel begins below the actual header.
	   It sits above every page section, card, image and content block. */
	#site-header.hb-header .primary-nav {
		position: fixed !important;
		top: var(--menu-top, var(--header-h)) !important;
		right: 0 !important;
		bottom: 0 !important;
		left: 0 !important;
		width: 100vw !important;
		max-width: none !important;
		height: calc(100dvh - var(--menu-top, var(--header-h))) !important;
		z-index: 1001 !important;
		box-sizing: border-box !important;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch;
		background: var(--paper) !important;
	}

	/* When the menu is open, keep the page itself behind the menu. */
	html.menu-open body {
		overflow: hidden !important;
	}

	html.menu-open .site,
	html.menu-open main,
	html.menu-open .hb-main,
	html.menu-open .hb-page,
	html.menu-open .hb-content {
		position: relative;
		z-index: 0;
	}
}

/* MOBILE BURGER RIGHT ALIGN */
@media (max-width: 63.99em) {
	#site-header.hb-header .hb-header__inner {
		display: flex;
		align-items: center;
	}

	#site-header.hb-header .header-actions {
		margin-left: auto !important;
		display: flex !important;
		align-items: center;
		justify-content: flex-end;
	}

	#site-header.hb-header .hb-menu-btn,
	#site-header.hb-header .menu-toggle {
		margin-left: auto !important;
		margin-right: 0 !important;
	}
}

/* MOBILE BURGER MENU VERTICAL ITEMS */
@media (max-width: 63.99em) {
	#site-header.hb-header .primary-nav .menu,
	#site-header.hb-header .primary-nav .menu > li,
	#site-header.hb-header .primary-nav ul.menu,
	#site-header.hb-header .primary-nav ul.menu > li {
		display: block !important;
		width: 100% !important;
	}

	#site-header.hb-header .primary-nav .menu > li > a {
		display: block !important;
		width: 100% !important;
		box-sizing: border-box !important;
	}

	#site-header.hb-header .primary-nav .sub-menu {
		display: block;
		width: 100%;
	}

	#site-header.hb-header .primary-nav .sub-menu > li {
		display: block !important;
		width: 100% !important;
	}
}

/* HINGLISH BLOGS - TABLET PORTRAIT BURGER MENU */
@media (min-width: 64em) and (max-width: 63.99em) {
	/* Reserved: never used because this range is intentionally empty. */
}

/* iPad / tablet portrait: keep the burger navigation vertical */
@media (orientation: portrait) and (min-width: 600px) and (max-width: 1024px) {
	#site-header.hb-header .primary-nav .menu,
	#site-header.hb-header .primary-nav .menu > li,
	#site-header.hb-header .primary-nav ul.menu,
	#site-header.hb-header .primary-nav ul.menu > li {
		display: block !important;
		width: 100% !important;
		float: none !important;
		flex-direction: column !important;
	}

	#site-header.hb-header .primary-nav .menu {
		flex-direction: column !important;
	}

	#site-header.hb-header .primary-nav .menu > li > a,
	#site-header.hb-header .primary-nav ul.menu > li > a {
		display: block !important;
		width: 100% !important;
		box-sizing: border-box !important;
	}

	#site-header.hb-header .primary-nav .sub-menu,
	#site-header.hb-header .primary-nav .sub-menu > li {
		display: block !important;
		width: 100% !important;
		float: none !important;
	}

	#site-header.hb-header .primary-nav .sub-menu > li > a {
		display: block !important;
		width: 100% !important;
		box-sizing: border-box !important;
	}
}
