/* =========================================================
   Net Pay Advance — Author Bio Template Styles
   Scope: all rules prefixed .npa- / #npa-author-bio to avoid
   clashing with Astra / astra-child theme styles.
   Reuses the same color tokens as blog-listing.css.
   ========================================================= */
.ast-container {
	display: block !important; /* override Astra's default flex layout for the main container */
}

.npa-author-bio {
	--npa-cerulean: #003366;
	--npa-primary: #004699;
	--npa-secondary-text: #555;
	--npa-stroke: #DFE4EA;
	--npa-white: #FFFFFF;
	--npa-gray: #F9FAFB;
	--npa-green: #0A7F53;
	--npa-radius: 12px;
	--npa-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);

	color: var(--npa-secondary-text);
	font-family: Inter,ui-sans-serif,system-ui,sans-serif;
}

.npa-author-bio * {
	box-sizing: border-box;
	font-family: Inter,ui-sans-serif,system-ui,sans-serif;
}

.npa-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Breadcrumb ---------- */

.npa-author-breadcrumb {
	padding: 20px 0;
	font-size: 0.85rem;
	display: none;
}

.npa-author-breadcrumb a {
	color: var(--npa-secondary-text);
	text-decoration: none;
}

.npa-author-breadcrumb a:hover {
	text-decoration: underline;
}

.npa-author-breadcrumb__sep {
	margin: 0 8px;
	color: var(--npa-stroke);
}

.npa-author-breadcrumb__current {
	color: var(--npa-cerulean);
	font-weight: 600;
}

/* ---------- Hero ---------- */

.npa-author-hero {
	background: linear-gradient(180deg, #0054A9 0%, #036 100%);
	padding: 60px 0;
	color: var(--npa-white);
}

.npa-author-hero__eyebrow {
	display: block;
	color: #DCF3FF;
	font-size: 14px;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
	text-transform: uppercase;
	margin-bottom: 8px;
}

h1.npa-author-hero__name {
	color: #FFF;
	font-size: 44px;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
	margin: 0 0 8px;
	padding: 0;
	text-align: left;
}

.npa-author-hero__title {
	color: #E5E7EB;
	font-size: 20px;
	font-style: normal;
	font-weight: 500;
	line-height: normal;
	margin: 0 !important;
}

/* ---------- Bio body ---------- */

.npa-author-bio-body {
	padding: 60px 0;
}

.npa-author-bio-body__grid {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 64px;
	align-items: start;
}

.npa-author-bio-body__photo-col {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.npa-author-bio-body__photo {
	width: 100%;
	border-radius: var(--npa-radius);
	display: block;
	object-fit: cover;
}

.npa-author-share {
	display: flex;
	align-items: center;
	gap: 12px;
}

.npa-author-share__label {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--npa-secondary-text);
	margin-right: 4px;
}

.npa-author-share a,
.npa-author-share__copy {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: #333;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	font: inherit;
	padding: 0;
	transition: background 0.15s ease;
}

.npa-author-share a:hover svg rect,
.npa-author-share__copy:hover svg rect {
	fill: var(--npa-stroke);
}

.npa-author-bio-body__buttons {
	display: flex;
	flex-direction: row;
	gap: 12px;
}

.npa-author-btn {
	flex: 1;
	display: block;
	text-align: center;
	padding: 12px 20px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
}

.npa-author-btn--primary {
	background: var(--npa-primary);
	color: var(--npa-white) !important;
	border: 1px solid var(--npa-primary);
}

.npa-author-btn--primary:hover {
	color: #fff;
}

.npa-author-btn--outline {
	background: var(--npa-white);
	color: var(--npa-primary) !important;
	border: 1px solid var(--npa-primary);
}

.npa-author-btn--outline:hover {
	background: var(--npa-gray);
}

/* Content column */

.npa-author-quote {
	margin: 0 0 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--npa-stroke);
	color: #1B2B5E;
	font-size: 20px;
	font-style: normal;
	font-weight: 600;
	line-height: 150%; /* 30px */
}

.npa-author-body-content {
	color: #1F2A37;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 160%; /* 25.6px */
}

.npa-author-body-content p {
	margin: 0 0 20px;
}

.npa-author-body-content p:last-child {
	margin-bottom: 0;
}

.npa-author-body-content h2 {
	color: #1B2B5E;
	font-size: 22px;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
	margin: 32px 0 16px;
}

.npa-author-body-content h3 {
	color: #1B2B5E;
	font-size: 1.15rem;
	font-weight: 700;
	margin: 24px 0 12px;
}

.npa-author-body-content ul,
.npa-author-body-content ol {
	margin: 0 0 20px;
	padding-left: 22px;
}

.npa-author-body-content li {
	margin-bottom: 8px;
}

/* ---------- Recent Posts ---------- */

.npa-author-recent {
	background: var(--npa-gray);
	padding: 65px 0;
}

.npa-author-recent__title {
	color: #1B2B5E;
	font-size: 28px;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
	margin: 0 0 40px;
}

.npa-author-posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.npa-author-post-card {
	position: relative;
	height: 100%;
	border-radius: var(--npa-radius);
	border: 1px solid var(--npa-stroke);
	background: var(--npa-white);
	box-shadow: var(--npa-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.npa-author-post-card__image-link {
	display: block;
	width: 100%;
	height: 170px;
}

.npa-author-post-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.npa-blog-card__badge {
	display: inline-block;
	width: fit-content;
	border-radius: 5px;
	border: 1px solid var(--npa-stroke);
	background: var(--npa-gray);
	padding: 8px;
	color: #333;
	font-weight: 500;
    font-size: 12px;
    line-height: normal;
}

.npa-author-post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 12px;
	padding: 20px;
}

.npa-author-post-card__title {
	margin: 0;
	color: var(--npa-cerulean);
	font-size: 18px;
	font-weight: 600;
	line-height: 24px;
}

.npa-author-post-card__title a {
	color: inherit;
	text-decoration: none;
}

.npa-author-post-card__title a::after {
	content: '';
	position: absolute;
	inset: 0;
}

.npa-author-post-card__title a:hover {
	text-decoration: underline;
}

.npa-author-post-card__excerpt {
	color: var(--npa-secondary-text);
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	margin: 0 !important;
}

.npa-author-post-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
}

.npa-author-post-card__date {
	color: var(--npa-secondary-text);
	font-size: 0.85rem;
}

.npa-author-post-card__cta {
	position: relative;
	z-index: 1;
	color: var(--npa-green);
	font-weight: 600;
	font-size: 0.88rem;
	text-decoration: none;
}

.npa-author-post-card__cta:hover {
	text-decoration: underline;
}

.npa-load-more-wrap {
	text-align: center;
	margin-top: 40px;
}

.npa-load-more {
	background: var(--npa-primary);
	color: var(--npa-white);
	border: 1px solid var(--npa-primary);
	border-radius: 6px;
	padding: 12px 28px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.npa-load-more:hover {
	color: #fff;
}

.npa-load-more:disabled {
	color: #fff;
	opacity: 0.6;
	cursor: default;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.npa-author-bio-body__grid {
		grid-template-columns: 1fr;
	}

	.npa-author-bio-body__photo-col {
		max-width: 320px;
	}

	.npa-author-posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.npa-author-hero__name {
		font-size: 1.8rem;
	}

	.npa-author-posts-grid {
		grid-template-columns: 1fr;
	}

	.npa-author-bio-body__photo-col {
		max-width: 100%;
	}

	.npa-author-bio-body__buttons {
		flex-direction: column;
	}
	.npa-author-share {
		justify-content: center;
	}
}