/* ==========================================================================
   Velocity by MedShift — Blog family (listing + single)
   Scoped styles, prefix: velp-blog-. Reuses vel-* tokens from velocity.css.
   ========================================================================== */

/* ---------- shared placeholders ---------- */

.velp-blog-ph {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #c3ceda, #8fa1b8);
}

.velp-blog-ph--1 { background: linear-gradient(135deg, #c3ceda, #8fa1b8); }
.velp-blog-ph--2 { background: linear-gradient(135deg, #d8c4b2, #b08e77); }
.velp-blog-ph--3 { background: linear-gradient(135deg, #c5d3b4, #93ad74); }
.velp-blog-ph--4 { background: linear-gradient(135deg, #b6c4d8, #7288a5); }

.velp-blog-ph-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- chips ---------- */

.velp-blog-chip {
	display: inline-block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #4a6da5;
	background: #e9eef7;
	border-radius: 999px;
	padding: 5px 11px;
	line-height: 1.3;
}

.velp-blog-chip--featured {
	color: var(--vel-slate);
	background: #eceff4;
}

.velp-blog-chip--center { display: inline-block; margin-bottom: 16px; }

/* ---------- meta line ---------- */

.velp-blog-meta {
	font-size: 13px;
	font-weight: 600;
	color: var(--vel-slate-light);
	margin: 0;
}

.velp-blog-dot { margin: 0 5px; color: var(--vel-slate-light); }

/* ==========================================================================
   Listing — hero
   ========================================================================== */

.velp-blog-hero {
	background: linear-gradient(180deg, #fbfcfe 0%, #f7f9fc 100%);
	padding: 60px 0 40px;
	text-align: center;
}

.velp-blog-kicker {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--vel-slate-light);
	margin: 0 0 14px;
}

.velp-blog-h1 {
	font-size: clamp(34px, 5vw, 52px);
	line-height: 1.1;
	font-weight: 700;
	color: var(--vel-navy);
	margin: 0 0 16px;
	letter-spacing: -0.01em;
}

.velp-blog-lead {
	max-width: 560px;
	margin: 0 auto;
	font-size: 17px;
	line-height: 1.6;
	color: var(--vel-slate);
}

/* ==========================================================================
   Listing — featured card
   ========================================================================== */

.velp-blog-featured { padding: 20px 0 0; }

.velp-blog-featured-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: #fff;
	border: 1px solid var(--vel-line);
	border-radius: var(--vel-radius);
	overflow: hidden;
	box-shadow: var(--vel-shadow-soft);
}

.velp-blog-featured-media {
	position: relative;
	min-height: 300px;
	display: block;
	background: var(--vel-bg-soft);
}

.velp-blog-featured-media .velp-blog-ph,
.velp-blog-featured-media .velp-blog-ph-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.velp-blog-featured-body {
	padding: clamp(26px, 3.2vw, 44px);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.velp-blog-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.velp-blog-featured-title {
	font-size: clamp(22px, 2.6vw, 28px);
	line-height: 1.22;
	font-weight: 700;
	color: var(--vel-navy);
	margin: 0 0 14px;
	letter-spacing: -0.01em;
}

.velp-blog-featured-title a { color: var(--vel-navy) !important; text-decoration: none !important; }
.velp-blog-featured-title a:hover { color: var(--vel-navy-soft) !important; }

.velp-blog-featured-excerpt {
	font-size: 15px;
	line-height: 1.65;
	color: var(--vel-slate);
	margin: 0 0 22px;
}

/* ==========================================================================
   Listing — filter chips
   ========================================================================== */

.velp-blog-filters-wrap { padding: 30px 0; }

.velp-blog-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.velp-blog-chip-filter {
	font-family: var(--vel-font);
	font-size: 13px;
	font-weight: 700;
	color: var(--vel-navy);
	background: #fff;
	border: 1px solid var(--vel-line);
	border-radius: 999px;
	padding: 9px 18px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.velp-blog-chip-filter:hover { background: #f2f4f7; border-color: #d4dbe4; }
.velp-blog-chip-filter.is-active { background: var(--vel-navy); color: #fff; border-color: var(--vel-navy); }
.velp-blog-chip-filter.is-active:hover { background: var(--vel-navy-2); }

/* ==========================================================================
   Listing — post grid
   ========================================================================== */

.velp-blog-grid-wrap {
    padding: 48px 0;
    background: #f3f7fc;
}

.velp-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.velp-blog-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--vel-line);
	border-radius: var(--vel-radius);
	overflow: hidden;
	text-decoration: none !important;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.velp-blog-card:hover { transform: translateY(-3px); box-shadow: var(--vel-shadow-soft); }

.velp-blog-card-media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--vel-bg-soft);
}

.velp-blog-card-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex: 1;
	padding: 20px 20px 22px;
}

.velp-blog-card-body .velp-blog-chip { margin-bottom: 12px; }

.velp-blog-card-title {
	font-size: 16.5px;
	line-height: 1.32;
	font-weight: 700;
	color: var(--vel-navy);
	margin-bottom: 10px;
}
.velp-blog-card:hover .velp-blog-card-title{
	color:var(--vel-slate);
}

.velp-blog-card-excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: var(--vel-slate);
	margin-bottom: 16px;
}

.velp-blog-meta--card { margin-top: auto; }

.velp-blog-onlyfeatured {
	text-align: center;
	color: var(--vel-slate);
	font-size: 15px;
	margin: 8px 0 0;
}

.velp-blog-empty {
	max-width: 560px;
	margin: 8px auto 0;
	text-align: center;
	background: var(--vel-bg-soft);
	border: 1px solid var(--vel-line);
	border-radius: var(--vel-radius);
	padding: 56px 32px;
}

.velp-blog-empty h2 { font-size: 21px; font-weight: 700; color: var(--vel-navy); margin: 0 0 10px; }
.velp-blog-empty p { font-size: 15px; line-height: 1.6; color: var(--vel-slate); margin: 0; }

/* ==========================================================================
   Newsletter band (both templates)
   ========================================================================== */

.velp-blog-nl { padding: 56px 0 72px; }

.velp-blog-nl-card {
	background: linear-gradient(150deg, var(--vel-navy-soft) 0%, var(--vel-navy) 72%);
	border-radius: 24px;
	box-shadow: var(--vel-shadow);
	padding: clamp(40px, 6vw, 64px) 32px;
	text-align: center;
}

.velp-blog-nl-title {
	font-size: clamp(26px, 3.4vw, 34px);
	font-weight: 700;
	color: #fff;
	margin: 0 0 12px;
}

.velp-blog-nl-sub {
    max-width: 520px;
    margin: 0 auto 28px;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
}

.velp-blog-nl-form {
	max-width: 420px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.velp-blog-nl-form input {
	background: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--vel-radius-btn);
	color: var(--vel-navy);
	font-family: var(--vel-font);
	font-size: 14px;
	padding: 13px 14px;
	min-width: 0;
}

.velp-blog-nl-form input::placeholder { color: #74829A; }
.velp-blog-nl-form input:focus { outline: none; border-color: rgba(255, 255, 255, 0.5); }

.velp-blog-nl-email { grid-column: 1 / -1; }

.velp-blog-nl-submit {
	grid-column: 1 / -1;
	background: #D7EFFF;
	color: var(--vel-navy);
	border: 0;
	border-radius: var(--vel-radius-btn);
	font-family: var(--vel-font);
	font-size: 14.5px;
	font-weight: 700;
	padding: 14px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.velp-blog-nl-submit:hover { background: #eef1f5; transform: translateY(-2px); color: var(--vel-navy);}

/* ==========================================================================
   Single — author band
   ========================================================================== */

.velp-blog-author {
	background: #f3f7fc;
	padding: 56px 0 64px;
	margin-top: 64px;
	text-align: center;
}

.velp-blog-author-eyebrow {
	display: block;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--vel-slate-light);
	margin-bottom: 20px;
}

.velp-blog-author-avatar {
	display: inline-block;
	width: 66px;
	height: 66px;
	border-radius: 50%;
	overflow: hidden;
	background: linear-gradient(135deg, #d8c4b2, #b08e77);
	line-height: 0;
}

.velp-blog-author-avatar img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.velp-blog-author-name {
	font-size: 22px;
	font-weight: 700;
	color: var(--vel-navy);
	margin: 16px 0 0;
	letter-spacing: -0.01em;
}

.velp-blog-author-meta {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--vel-slate);
	margin: 8px 0 0;
}

.velp-blog-author-bio {
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--vel-slate);
	margin: 16px auto 0;
	max-width: 520px;
}

/* ==========================================================================
   Single — tags, prev/next, related
   ========================================================================== */

.velp-blog-foot { padding: 44px 0 80px; }

/* ---------- tags ---------- */

.velp-blog-tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.velp-blog-tags-label {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--vel-slate-light);
	margin-right: 4px;
}

.velp-blog-tag {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	background: #eaf1fb;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--vel-navy) !important;
	text-decoration: none !important;
	transition: background 0.15s ease;
}

.velp-blog-tag:hover { background: #dbe7f7; }

/* ---------- prev / next ---------- */

.velp-blog-pn {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 26px;
	padding-top: 26px;
	border-top: 1px solid var(--vel-line);
}

.velp-blog-pn-link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-decoration: none !important;
}

/* The "next" column right-aligns so the pair reads outward from the centre. */
.velp-blog-pn-link--next { text-align: right; grid-column: 2; }

.velp-blog-pn-label {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--vel-slate-light);
}

.velp-blog-pn-title {
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--vel-navy);
	transition: color 0.15s ease;
}

.velp-blog-pn-link:hover .velp-blog-pn-title { color: var(--vel-blue, #2f6fd0); }

/* ---------- related ---------- */

.velp-blog-related { margin-top: 48px; }

.velp-blog-related-title {
	font-size: 24px;
	font-weight: 700;
	color: var(--vel-navy);
	margin: 0 0 22px;
	letter-spacing: -0.01em;
}

.velp-blog-related-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

@media (max-width: 700px) {
	.velp-blog-related-grid { grid-template-columns: 1fr; }
	.velp-blog-pn { grid-template-columns: 1fr; gap: 20px; }
	.velp-blog-pn-link--next { text-align: left; grid-column: 1; }
}

/* ==========================================================================
   Single — head
   ========================================================================== */

.velp-blog-single { padding-top: 8px; }

.velp-blog-post-head { text-align: center; padding-top: 38px; }

/* Back link owns its own full-width row so it sits top-left while the chip,
   title and byline below stay centred. */
.velp-blog-back {
	display: block;
	width: 100%;
	text-align: left;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--vel-slate) !important;
	text-decoration: none !important;
	margin-bottom: 26px;
}

.velp-blog-back:hover { color: var(--vel-navy) !important; }

.velp-blog-title {
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.16;
	font-weight: 700;
	color: var(--vel-navy);
	margin: 0 auto 18px;
	max-width: 760px;
	letter-spacing: -0.01em;
}

.velp-blog-byline {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--vel-slate);
}

.velp-blog-avatar {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: linear-gradient(135deg, #d8c4b2, #b08e77);
	flex: 0 0 30px;
	overflow: hidden;
	line-height: 0;
}

/* The plugin's <img> — fill the disc regardless of the source aspect ratio. */
.velp-blog-avatar img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

/* ---------- single — featured image ---------- */

.velp-blog-post-media { margin-top: 30px; }

.velp-blog-post-img,
.velp-blog-post-ph {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 8;
	object-fit: cover;
	border-radius: 20px;
}

/* ==========================================================================
   Single — two-column body + index
   ========================================================================== */

.velp-blog-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 258px;
	gap: 56px;
	align-items: start;
	padding: 42px 0 8px;
}

.velp-blog-layout.is-single-col { grid-template-columns: minmax(0, 1fr); max-width: 760px; }

/* article typography */

.velp-blog-article { font-size: 16px; line-height: 1.75; color: var(--vel-slate); }

.velp-blog-article > *:first-child { margin-top: 0; }

.velp-blog-article h2 {
	font-size: clamp(22px, 2.6vw, 28px);
	line-height: 1.25;
	font-weight: 700;
	color: var(--vel-navy);
	margin: 40px 0 14px;
	letter-spacing: -0.01em;
	scroll-margin-top: 96px;
}

.velp-blog-article h3 {
	font-size: 19px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--vel-navy);
	margin: 30px 0 10px;
}

.velp-blog-article p { margin: 0 0 18px; }

.velp-blog-article ul,
.velp-blog-article ol { margin: 0 0 20px; padding-left: 22px; }

.velp-blog-article li { margin-bottom: 8px; }

.velp-blog-article a { color: var(--vel-navy); font-weight: 700; }
.velp-blog-article strong { color: var(--vel-navy); }

.velp-blog-article img { max-width: 100%; height: auto; border-radius: 12px; }

.velp-blog-article blockquote {
	margin: 0 0 20px;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--vel-line);
	color: var(--vel-navy);
	font-weight: 600;
}

/* inline CTA band */

.velp-blog-inline-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	background: linear-gradient(150deg, var(--vel-navy-soft) 0%, var(--vel-navy) 80%);
	border-radius: 14px;
	padding: 22px 26px;
	margin: 34px 0 8px;
}

/* When the CTA is hoisted above an FAQ heading it needs real space beneath it,
   and the heading's own top margin must not collapse the gap shut. */
.velp-blog-inline-cta:not(:last-child) { margin-bottom: 38px; }
.velp-blog-inline-cta + h2,
.velp-blog-inline-cta + h3 { margin-top: 0; }

.velp-blog-inline-cta p {
	margin: 0;
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.35;
}

.velp-blog-inline-cta a.vel-btn {
	background: #d7efff;
}

/* index sidebar */

.velp-blog-index {
    position: sticky;
    top: 96px;
    background: #f3f7fc;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e3e9f1;
}

.velp-blog-index-title {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--vel-slate-light);
	margin-bottom: 14px;
}

.velp-blog-index ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.velp-blog-index li a {
	display: block;
	padding: 8px 0;
	font-size: 13.5px;
	line-height: 1.4;
	font-weight: 400;
	color: var(--vel-slate) !important;
	text-decoration: none !important;
	transition: color 0.15s ease;
}

.velp-blog-index li a:hover { color: var(--vel-navy) !important; }

.comment-count{
	display: none !important;
}

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

.velp-blog-pagination {
	margin-top: 48px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.velp-blog-pagination-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.velp-blog-pagination-list li { margin: 0; }

/* Shares the filter-chip shape so the archive controls read as one family.
   `a` and `span` are both styled: paginate_links() emits a span for the
   current page and for the gap ellipsis. */
.velp-blog-pagination-list .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	font-family: var(--vel-font);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	color: var(--vel-navy) !important;
	background: #fff;
	border: 1px solid var(--vel-line);
	border-radius: var(--vel-radius-btn);
	text-decoration: none !important;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.velp-blog-pagination-list a.page-numbers:hover {
	background: #f2f4f7;
	border-color: #d4dbe4;
}

.velp-blog-pagination-list .page-numbers.current {
	background: var(--vel-navy);
	border-color: var(--vel-navy);
	color: #fff !important;
}

/* The ellipsis is a label, not a control. */
.velp-blog-pagination-list .page-numbers.dots {
	background: transparent;
	border-color: transparent;
	color: var(--vel-slate-light) !important;
}

.velp-blog-pagination-list .prev,
.velp-blog-pagination-list .next { font-weight: 600; }

.velp-blog-pagination-count {
	margin: 0;
	font-size: 13.5px;
	color: var(--vel-slate-light);
}

/* Shown by the category filter, which can only narrow the current page. */
.velp-blog-filter-note {
	margin: 0 0 24px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--vel-slate);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) and (min-width: 901px) {
	.velp-blog-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet / mobile gutters.

   The parent theme (and Elementor on the blog archive) zero out .vel-container's
   side padding below 1024px, which let the post head, featured image, body and
   bands run to the screen edge. Re-assert the gutter on the single-post
   containers specifically so the override can't strip it again. */
@media (max-width: 1024px) {
	.velp-blog-single .vel-container {
		padding-left: 24px !important;
		padding-right: 24px !important;
	}
}

@media (max-width: 900px) {
	.velp-blog-featured-card { grid-template-columns: 1fr; }
	.velp-blog-featured-media { min-height: 220px; }
	.velp-blog-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
	.velp-blog-layout { grid-template-columns: 1fr; gap: 0; }
	.velp-blog-index { display: none !important; }
}

@media (max-width: 600px) {
	.velp-blog-nl-form { grid-template-columns: 1fr; }
	.velp-blog-pagination-list { gap: 6px; }
	.velp-blog-pagination-list .page-numbers { min-width: 36px; height: 36px; padding: 0 9px; font-size: 13.5px; }
	.velp-blog-inline-cta { flex-direction: column; align-items: flex-start; }
	.velp-blog-byline { flex-wrap: wrap; justify-content: center; }

	/* Tighter gutter on phones, and pull in the bands' own inner padding so
	   the text inside them doesn't crowd the rounded edges. */
	.velp-blog-single .vel-container {
		padding-left: 18px !important;
		padding-right: 18px !important;
	}

	.velp-blog-nl-card { padding-left: 22px; padding-right: 22px; }
	.velp-blog-inline-cta { padding: 20px 20px; }
}
