/* Bank Vacancy Nepal — layout & components. Variables from Customizer inline CSS. */

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--bvn-font-body, system-ui, sans-serif);
	font-size: var(--bvn-font-size, 18px);
	line-height: var(--bvn-line-height, 1.65);
	color: var(--bvn-color-text, #0f172a);
	background: var(--bvn-color-body-bg, #f1f5f9);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--bvn-font-heading, inherit);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 0.5em;
}

a {
	color: var(--bvn-color-primary, #2563eb);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.12em;
}

a:hover {
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

.bvn-container {
	width: 100%;
	max-width: var(--bvn-container, 1200px);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

/* Top bar */
.bvn-top-bar {
	background: var(--bvn-top-bg, #0f172a);
	color: var(--bvn-top-color, #f8fafc);
	font-size: 0.9rem;
}
.bvn-top-bar__inner {
	padding: 0.45rem 0;
}
.bvn-top-bar a {
	color: inherit;
	font-weight: 600;
}

/* Header */
.bvn-header {
	background: var(--bvn-header-bg, #fff);
	border-bottom: 1px solid var(--bvn-header-border, #e2e8f0);
	position: relative;
	z-index: 100;
}
.bvn-header.is-stuck {
	position: sticky;
	top: 0;
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

.bvn-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	padding-top: 0.85rem;
	padding-bottom: 0.85rem;
}

.bvn-header__inner--logo-left .bvn-header__brand {
	flex: 0 0 auto;
}
.bvn-header__inner--logo-left .bvn-header__search {
	flex: 1 1 200px;
	max-width: 320px;
	margin-left: auto;
}
.bvn-header__inner--logo-left .bvn-social {
	margin-left: 0;
}
.bvn-header__inner--logo-left .bvn-nav {
	flex: 1 0 100%;
	order: 10;
}

.bvn-header__inner--logo-center {
	justify-content: center;
	text-align: center;
}
.bvn-header__inner--logo-center .bvn-header__brand {
	flex: 1 0 100%;
}
.bvn-header__inner--logo-center .bvn-header__search,
.bvn-header__inner--logo-center .bvn-social {
	flex: 0 1 auto;
}
.bvn-header__inner--logo-center .bvn-nav-toggle {
	position: absolute;
	right: 1.25rem;
	top: 1rem;
}
.bvn-header__inner--logo-center .bvn-nav {
	flex: 1 0 100%;
	justify-content: center;
}

.custom-logo-link {
	display: inline-block;
	max-width: var(--bvn-logo-max, 220px);
}
.custom-logo {
	width: 100%;
	height: auto;
}

.bvn-site-title {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--bvn-nav-color, #0f172a);
	text-decoration: none;
}
.bvn-site-tagline {
	margin: 0.15rem 0 0;
	font-size: 0.85rem;
	color: var(--bvn-color-muted, #64748b);
}

/* Search */
.bvn-header .search-form {
	display: flex;
	gap: 0.35rem;
	align-items: center;
}
.bvn-header .search-field {
	flex: 1;
	min-width: 0;
	padding: 0.5rem 0.65rem;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font: inherit;
}
.bvn-header .search-submit {
	padding: 0.5rem 0.85rem;
	border: 0;
	border-radius: 6px;
	background: var(--bvn-color-primary, #2563eb);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}
.bvn-header .search-submit:hover {
	filter: brightness(1.05);
}

/* Social */
.bvn-social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.bvn-social__link {
	display: inline-block;
	padding: 0.25rem 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 4px;
	color: var(--bvn-nav-color, #0f172a);
	border: 1px solid #e2e8f0;
}
.bvn-social__link:hover {
	border-color: var(--bvn-color-primary, #2563eb);
	color: var(--bvn-color-primary, #2563eb);
}

/* Nav */
.bvn-nav-toggle {
	display: none;
	background: transparent;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 0.5rem 0.65rem;
	cursor: pointer;
}
.bvn-nav-toggle__bar {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--bvn-nav-color, #0f172a);
	margin: 4px 0;
	border-radius: 1px;
}

.bvn-nav .menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.bvn-nav .menu a {
	color: var(--bvn-nav-color, #0f172a);
	font-weight: 600;
	text-decoration: none;
}
.bvn-nav .menu a:hover,
.bvn-nav .menu .current-menu-item > a {
	color: var(--bvn-nav-hover, #2563eb);
}

@media (max-width: 900px) {
	.bvn-header__inner--logo-left .bvn-header__search {
		order: 5;
		flex: 1 1 100%;
		max-width: none;
		margin-left: 0;
	}
	.bvn-nav-toggle {
		display: block;
		margin-left: auto;
	}
	.bvn-header__inner--logo-center .bvn-nav-toggle {
		position: static;
	}
	.bvn-nav {
		display: none;
		flex: 1 0 100%;
	}
	.bvn-nav.is-open {
		display: block;
	}
	.bvn-nav .menu {
		flex-direction: column;
		gap: 0;
		padding: 0.5rem 0 0;
		border-top: 1px solid #e2e8f0;
	}
	.bvn-nav .menu a {
		display: block;
		padding: 0.5rem 0;
	}
}

/* Main layout */
.bvn-main-wrap {
	padding: 2rem 0 3rem;
}

.bvn-main {
	display: flex;
	flex-wrap: wrap;
	gap: 1.75rem;
	align-items: flex-start;
}

.bvn-main--with-sidebar .bvn-content {
	flex: 1 1 calc(var(--bvn-main-pct, 68%) - 1rem);
	min-width: 0;
}

.bvn-main--with-sidebar .bvn-sidebar {
	flex: 0 0 var(--bvn-sidebar-pct, 32%);
	max-width: 100%;
}

.bvn-main--sidebar-left .bvn-sidebar {
	order: -1;
}

.bvn-main--full .bvn-content {
	flex: 1 1 100%;
}

/* Sidebar */
.bvn-sidebar {
	background: var(--bvn-sidebar-bg, #f8fafc);
	border: 1px solid var(--bvn-sidebar-border, #e2e8f0);
	border-radius: 10px;
	padding: 1rem 1.1rem;
}
.bvn-sidebar .widget {
	margin-bottom: 1.5rem;
}
.bvn-sidebar .widget:last-child {
	margin-bottom: 0;
}
.bvn-sidebar .widget-title {
	font-size: 1rem;
	margin: 0 0 0.75rem;
	padding-bottom: 0.35rem;
	border-bottom: 2px solid var(--bvn-color-primary, #2563eb);
}

@media (min-width: 901px) {
	.bvn-sidebar-sticky .bvn-sidebar--sticky {
		position: sticky;
		top: calc(1rem + var(--bvn-sticky-offset, 0px));
	}
}

/* Cards */
.bvn-card {
	background: var(--bvn-color-card, #fff);
	border-radius: 12px;
	padding: 1.35rem 1.5rem;
	margin-bottom: 1.25rem;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.bvn-page-header {
	margin-bottom: 1.5rem;
}
.bvn-page-title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin-bottom: 0.35rem;
}
.bvn-page-intro,
.bvn-archive-desc {
	color: var(--bvn-color-muted, #64748b);
	margin: 0;
}

.bvn-loop-item {
	display: grid;
	grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
	gap: 1.25rem;
	align-items: start;
}
.bvn-loop-item__thumb {
	display: block;
	border-radius: 8px;
	overflow: hidden;
}
.bvn-loop-item__thumb img {
	width: 100%;
	object-fit: cover;
}
.bvn-loop-item--compact {
	grid-template-columns: 1fr;
}

@media (max-width: 600px) {
	.bvn-loop-item {
		grid-template-columns: 1fr;
	}
}

.entry-title {
	font-size: 1.35rem;
	margin-bottom: 0.35rem;
}
.entry-title a {
	color: inherit;
	text-decoration: none;
}
.entry-title a:hover {
	color: var(--bvn-color-primary, #2563eb);
}

.bvn-meta {
	font-size: 0.85rem;
	color: var(--bvn-color-muted, #64748b);
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
}
.bvn-meta time::after,
.bvn-meta__author::after {
	content: "·";
	margin-left: 0.35rem;
	opacity: 0.5;
}
.bvn-meta span:last-child::after {
	content: none;
}

.bvn-read-more {
	display: inline-block;
	margin-top: 0.65rem;
	font-weight: 700;
	text-decoration: none;
}
.bvn-read-more:hover {
	text-decoration: underline;
}

.entry-content > *:first-child {
	margin-top: 0;
}
.entry-content > *:last-child {
	margin-bottom: 0;
}

/* Pagination */
.pagination,
.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	justify-content: center;
	margin-top: 2rem;
}
.pagination a,
.pagination span,
.nav-links a {
	display: inline-block;
	padding: 0.4rem 0.75rem;
	border-radius: 6px;
	border: 1px solid #e2e8f0;
	text-decoration: none;
	color: inherit;
}
.pagination a:hover,
.nav-links a:hover {
	border-color: var(--bvn-color-primary, #2563eb);
	color: var(--bvn-color-primary, #2563eb);
}
.pagination .current {
	background: var(--bvn-color-primary, #2563eb);
	border-color: transparent;
	color: #fff;
}

/* Post nav */
.post-navigation {
	margin-top: 1.5rem;
}
.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
.post-navigation a {
	display: block;
	padding: 1rem;
	background: var(--bvn-color-card, #fff);
	border-radius: 10px;
	border: 1px solid #e2e8f0;
	text-decoration: none;
	color: inherit;
}
.post-navigation .nav-label {
	display: block;
	font-size: 0.8rem;
	color: var(--bvn-color-muted, #64748b);
}
.post-navigation .nav-title {
	font-weight: 700;
}

/* Footer */
.bvn-footer {
	background: var(--bvn-footer-bg, #0f172a);
	color: var(--bvn-footer-text, #94a3b8);
	margin-top: auto;
}
.bvn-footer__widgets {
	padding: 2.5rem 0 1rem;
}
.bvn-footer__grid {
	display: grid;
	grid-template-columns: repeat(var(--bvn-footer-columns, 3), minmax(0, 1fr));
	gap: 1.5rem;
}
.bvn-footer .widget-title {
	color: var(--bvn-footer-heading, #f1f5f9);
	font-size: 1rem;
	margin: 0 0 0.75rem;
}
.bvn-footer a {
	color: #e2e8f0;
}
.bvn-footer a:hover {
	color: #fff;
}
.bvn-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 1.25rem 0;
	font-size: 0.9rem;
}
.bvn-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.bvn-footer__copy a {
	color: inherit;
	font-weight: 600;
}
.bvn-footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.bvn-footer-menu a {
	text-decoration: none;
}

/* Utilities */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.bvn-btn {
	display: inline-block;
	padding: 0.65rem 1.1rem;
	background: var(--bvn-color-primary, #2563eb);
	color: #fff !important;
	font-weight: 700;
	border-radius: 8px;
	text-decoration: none;
}
.bvn-btn:hover {
	filter: brightness(1.05);
}

.bvn-comments {
	margin-top: 1.5rem;
}
.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.comment-list .children {
	list-style: none;
	margin-left: 1rem;
}

/* Site flex for sticky footer */
html, body {
	height: 100%;
}
.bvn-site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
#content.site-content {
	flex: 1 0 auto;
}
