/*
Theme Name: Pharma Child
Theme URI: https://pharma.test
Description: Child theme for Pharma. Adds the redesigned blog archive and single-post experience (sticky table of contents, key takeaways, CTA, newsletter, author bio).
Author: Pharma
Template: pharma
Version: 1.0.3
Text Domain: pharma
*/

/* =========================================================================
   0. Tokens
   ========================================================================= */

:root {
	--phb-navy: var(--theme-color-title, #02086A);
	--phb-accent: var(--theme-color-link, #05C9F5);
	--phb-accent-hover: var(--theme-color-hover, #04B9E2);
	--phb-text: var(--theme-color-text, #7393AE);
	--phb-meta: var(--theme-color-meta, #8FADC3);
	--phb-bd: var(--theme-color-bd_color, #D7E9EF);
	--phb-soft: var(--theme-color-bg_color_2, #F2F8FA);
	--phb-dark: var(--theme-color-alt_bg_color, #04072A);
	--phb-white: var(--theme-color-bg_color, #FFFFFF);
	--phb-radius: 18px;
	--phb-radius-sm: 10px;
	--phb-shadow: 0 10px 40px rgba(2, 8, 106, .07);
	--phb-shadow-hover: 0 18px 50px rgba(2, 8, 106, .13);
}

/* Full-bleed bands. 100vw includes the scrollbar, so the overhang is clipped by
   the page wrapper. `clip` (not `hidden`) keeps the sticky TOC working. */
.phb-blog-hero,
.phb-newsletter {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.page_content_wrap {
	overflow-x: clip;
}

/* =========================================================================
   1. Blog archive (Template: Blog Modern)
   ========================================================================= */

.phb-blog {
	margin-bottom: 4rem;
}

.phb-blog-hero {
	background: linear-gradient(160deg, var(--phb-soft) 0%, var(--phb-white) 70%);
	padding: 5.5rem 0 4rem;
	margin-bottom: 2.5rem;
	text-align: center;
}

.phb-blog-hero-inner {
	max-width: 780px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.phb-blog-hero-title {
	color: var(--phb-navy);
	margin: 0 0 1rem;
	font-size: 3.2em;
	line-height: 1.12;
	letter-spacing: -.02em;
}

.phb-blog-hero-text {
	color: var(--phb-text);
	font-size: 1.15em;
	line-height: 1.7;
	margin: 0;
}

/* --- Category filter pills --- */

.phb-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .6rem;
	margin: 0 0 3rem;
}

.phb-filter {
	display: inline-block;
	padding: .55em 1.3em;
	border: 1px solid var(--phb-bd);
	border-radius: 100px;
	background: var(--phb-white);
	color: var(--phb-navy);
	font-size: .92em;
	font-weight: 500;
	line-height: 1.5;
	text-decoration: none;
	transition: all .2s ease;
}

.phb-filter:hover {
	border-color: var(--phb-accent);
	color: var(--phb-accent);
}

.phb-filter-active,
.phb-filter-active:hover {
	background: var(--phb-navy);
	border-color: var(--phb-navy);
	color: #fff;
}

/* --- Cards --- */

.phb-featured {
	margin-bottom: 3rem;
}

.phb-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2.2rem;
}

.phb-card {
	display: flex;
	flex-direction: column;
	background: var(--phb-white);
	border: 1px solid var(--phb-bd);
	border-radius: var(--phb-radius);
	overflow: hidden;
	transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

.phb-card:hover {
	box-shadow: var(--phb-shadow-hover);
	border-color: transparent;
	transform: translateY(-4px);
}

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

.phb-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}

.phb-card:hover .phb-card-media img {
	transform: scale(1.05);
}

.phb-card-media-empty {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 180px;
	background: linear-gradient(135deg, var(--phb-soft), var(--phb-bd));
}

.phb-card-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 1.6rem 1.7rem 1.7rem;
}

.phb-card-cat {
	display: inline-block;
	align-self: flex-start;
	margin-bottom: .9rem;
	padding: .3em .9em;
	border-radius: 100px;
	background: var(--phb-soft);
	color: var(--phb-navy);
	font-size: .74em;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
}

a.phb-card-cat:hover {
	background: var(--phb-accent);
	color: #fff;
}

.phb-card-title {
	margin: 0 0 .8rem;
	font-size: 1.22em;
	line-height: 1.35;
}

.phb-card-title a {
	color: var(--phb-navy);
	text-decoration: none;
}

.phb-card-title a:hover {
	color: var(--phb-accent);
}

.phb-card-excerpt {
	color: var(--phb-text);
	line-height: 1.7;
	margin-bottom: 1.2rem;
}

.phb-card-meta {
	margin-top: auto;
	padding-top: .4rem;
	color: var(--phb-meta);
	font-size: .86em;
	display: flex;
	align-items: center;
	gap: .5em;
}

.phb-dot {
	opacity: .6;
}

/* Featured card = horizontal */

.phb-card-featured {
	flex-direction: row;
	align-items: stretch;
	border-radius: 22px;
}

.phb-card-featured .phb-card-media {
	flex: 0 0 54%;
	aspect-ratio: auto;
}

.phb-card-featured .phb-card-body {
	justify-content: center;
	padding: 2.6rem 2.8rem;
}

.phb-card-featured .phb-card-title {
	font-size: 1.9em;
	line-height: 1.25;
}

/* --- Pagination --- */

.phb-pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 3.5rem 0 0;
}

.phb-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.7em;
	height: 2.7em;
	padding: 0 .7em;
	border: 1px solid var(--phb-bd);
	border-radius: 50px;
	color: var(--phb-navy);
	text-decoration: none;
	transition: all .2s ease;
}

.phb-pagination .page-numbers:hover {
	border-color: var(--phb-accent);
	color: var(--phb-accent);
}

.phb-pagination .page-numbers.current {
	background: var(--phb-navy);
	border-color: var(--phb-navy);
	color: #fff;
}

.phb-pagination .page-numbers.dots {
	border-color: transparent;
}

.phb-empty {
	text-align: center;
	color: var(--phb-text);
	padding: 3rem 0;
}

/* =========================================================================
   2. Single post layout + table of contents
   ========================================================================= */

/* The theme centres a narrow (~725px) content column on single posts.
   Widen it so the article + sticky TOC both get a comfortable measure. */
body.single-post:not(.expand_content) [class*="content_wrap"] > .content,
body.single-post.sidebar_hide [class*="content_wrap"] > .content {
	width: 100%;
	margin-left: 0;
	margin-right: 0;
}

.phb-article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 290px;
	grid-template-areas:
		"bar  toc"
		"body toc";
	column-gap: 3.5rem;
	align-items: start;
}

.phb-article-layout > .phb-readingbar {
	grid-area: bar;
}

.phb-article-layout > .post_content {
	grid-area: body;
	min-width: 0;
}

.phb-article-layout > .phb-toc {
	grid-area: toc;
}

.phb-readingbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .8rem;
	margin-bottom: 1.8rem;
	padding-bottom: 1.4rem;
	border-bottom: 1px solid var(--phb-bd);
	color: var(--phb-meta);
	font-size: .9em;
}

.phb-readingbar-time::before {
	content: "";
	display: inline-block;
	width: .85em;
	height: .85em;
	margin-right: .5em;
	vertical-align: -.05em;
	border: 2px solid currentColor;
	border-radius: 50%;
	box-sizing: border-box;
}

.phb-readingbar-cats {
	display: inline-flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin-left: auto;
}

.phb-readingbar-cats .phb-card-cat {
	margin-bottom: 0;
}

/* --- TOC --- */

.phb-toc-inner {
	position: sticky;
	top: 110px;
	background: var(--phb-soft);
	border: 1px solid var(--phb-bd);
	border-radius: var(--phb-radius);
	padding: 1.5rem 1.4rem;
	max-height: calc(100vh - 140px);
	overflow-y: auto;
}

.phb-toc-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0 0 1rem;
	margin: 0 0 1rem;
	border: 0;
	border-bottom: 1px solid var(--phb-bd);
	border-radius: 0;
	background: transparent;
	color: var(--phb-navy);
	font-size: .8em;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-align: left;
	cursor: default;
	box-shadow: none;
}

.phb-toc-toggle:hover,
.phb-toc-toggle:focus {
	background: transparent;
	color: var(--phb-navy);
	box-shadow: none;
}

.phb-toc-caret {
	display: none;
}

.phb-toc-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.phb-toc-nav li {
	margin: 0;
	padding: 0;
	line-height: 1.45;
}

.phb-toc-nav li::before {
	display: none;
}

.phb-toc-nav a {
	display: block;
	padding: .45em 0 .45em .9em;
	border-left: 2px solid transparent;
	color: var(--phb-text);
	font-size: .92em;
	text-decoration: none;
	transition: color .2s ease, border-color .2s ease;
}

.phb-toc-nav a:hover {
	color: var(--phb-accent);
}

.phb-toc-l3 a {
	padding-left: 1.9em;
	font-size: .88em;
}

.phb-toc-nav .phb-toc-active > a {
	border-left-color: var(--phb-accent);
	color: var(--phb-navy);
	font-weight: 600;
}

/* =========================================================================
   3. Single post typography: headings, colours, bullets, quote, image
   ========================================================================= */

.post_item_single .post_content_single {
	color: var(--phb-text);
	font-size: 1.03em;
	line-height: 1.85;
}

.post_item_single .post_content_single h2,
.post_item_single .post_content_single h3,
.post_item_single .post_content_single h4,
.post_item_single .post_content_single h5 {
	color: var(--phb-navy);
	scroll-margin-top: 110px;
}

.post_item_single .post_content_single h2 {
	margin-top: 2.4em;
	margin-bottom: .7em;
	font-size: 1.85em;
	line-height: 1.25;
}

.post_item_single .post_content_single h3 {
	margin-top: 1.9em;
	margin-bottom: .6em;
	font-size: 1.35em;
	line-height: 1.35;
}

.post_item_single .post_content_single a:not(.phb-cta-btn):not(.sc_button) {
	color: var(--phb-accent);
	text-decoration: underline;
	text-underline-offset: .18em;
	text-decoration-thickness: 1px;
}

.post_item_single .post_content_single a:not(.phb-cta-btn):not(.sc_button):hover {
	color: var(--phb-accent-hover);
}

.post_item_single .post_content_single strong,
.post_item_single .post_content_single b {
	color: var(--phb-navy);
	font-weight: 700;
}

/* Featured image */

.post_item_single .post_featured img,
.post_header_wrap .post_featured img {
	border-radius: 22px;
}

.post_item_single .post_featured {
	margin-bottom: 2.4rem;
}

/* Bullets */

.post_item_single .post_content_single > ul,
.post_item_single .post_content_single > * > ul {
	list-style: none;
	margin: 1.5em 0;
	padding: 0;
}

.post_item_single .post_content_single ul:not(.phb-takeaways-list) > li {
	position: relative;
	margin: 0 0 .75em;
	padding-left: 1.9em;
	list-style: none;
}

.post_item_single .post_content_single ul:not(.phb-takeaways-list) > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .62em;
	width: .55em;
	height: .55em;
	border-radius: 50%;
	background: var(--phb-accent);
}

.post_item_single .post_content_single ol {
	margin: 1.5em 0;
	padding-left: 1.3em;
}

.post_item_single .post_content_single ol > li {
	margin-bottom: .75em;
	padding-left: .4em;
}

.post_item_single .post_content_single ol > li::marker {
	color: var(--phb-accent);
	font-weight: 700;
}

/* Quote */

.post_item_single .post_content_single blockquote {
	position: relative;
	margin: 2.5em 0;
	padding: 2.2rem 2.4rem 2.2rem 4.4rem;
	background: var(--phb-soft);
	border: 0;
	border-left: 4px solid var(--phb-accent);
	border-radius: var(--phb-radius);
	color: var(--phb-navy);
	font-size: 1.2em;
	font-style: normal;
	font-weight: 500;
	line-height: 1.6;
}

.post_item_single .post_content_single blockquote::before {
	content: "\201C";
	position: absolute;
	left: 1.4rem;
	top: .35em;
	color: var(--phb-accent);
	font-size: 3.2em;
	line-height: 1;
	font-family: Georgia, "Times New Roman", serif;
	opacity: .45;
}

.post_item_single .post_content_single blockquote p:last-child {
	margin-bottom: 0;
}

.post_item_single .post_content_single blockquote cite {
	display: block;
	margin-top: 1rem;
	color: var(--phb-meta);
	font-size: .72em;
	font-style: normal;
	font-weight: 400;
}

/* =========================================================================
   4. Key takeaways
   ========================================================================= */

.phb-takeaways {
	margin: 2.6em 0;
	padding: 2rem 2.2rem;
	border-radius: var(--phb-radius);
	background: var(--phb-soft);
	border: 1px solid var(--phb-bd);
}

.phb-takeaways-dark {
	background: var(--phb-dark);
	border-color: transparent;
}

.phb-takeaways-head {
	display: flex;
	align-items: center;
	gap: .8rem;
	margin-bottom: 1.2rem;
}

.phb-takeaways-icon {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--phb-accent);
	position: relative;
}

.phb-takeaways-icon::after {
	content: "";
	position: absolute;
	left: 12px;
	top: 8px;
	width: 8px;
	height: 14px;
	border: solid #fff;
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
}

.phb-takeaways-title {
	margin: 0;
	color: var(--phb-navy);
	font-size: 1.15em;
	letter-spacing: .01em;
}

.phb-takeaways-dark .phb-takeaways-title {
	color: #fff;
}

.phb-takeaways .phb-takeaways-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.phb-takeaways .phb-takeaways-list > li {
	position: relative;
	margin: 0 0 .8em;
	padding-left: 1.7em;
	color: var(--phb-navy);
	line-height: 1.65;
	list-style: none;
}

.phb-takeaways-dark .phb-takeaways-list > li {
	color: var(--theme-color-alt_text, #B8BCC4);
}

.phb-takeaways .phb-takeaways-list > li:last-child {
	margin-bottom: 0;
}

.phb-takeaways .phb-takeaways-list > li::before {
	content: "";
	position: absolute;
	left: .1em;
	top: .42em;
	width: .5em;
	height: .8em;
	border: solid var(--phb-accent);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	background: none;
	border-radius: 0;
}

/* =========================================================================
   5. In-article CTA
   ========================================================================= */

.phb-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.6rem;
	margin: 2.8em 0;
	padding: 2.2rem 2.4rem;
	border-radius: var(--phb-radius);
	background: var(--phb-dark);
}

.phb-cta-light {
	background: var(--phb-soft);
	border: 1px solid var(--phb-bd);
}

.phb-cta-body {
	flex: 1 1 320px;
}

.phb-cta-title {
	margin: 0 0 .5rem;
	color: #fff;
	font-size: 1.3em;
	line-height: 1.35;
}

.phb-cta-text {
	margin: 0;
	color: var(--theme-color-alt_text, #B8BCC4);
	line-height: 1.65;
}

.phb-cta-light .phb-cta-title {
	color: var(--phb-navy);
}

.phb-cta-light .phb-cta-text {
	color: var(--phb-text);
}

.phb-cta-btn,
.post_content_single a.phb-cta-btn {
	flex: 0 0 auto;
	display: inline-block;
	padding: 1em 2.2em;
	border-radius: 100px;
	background: var(--phb-accent);
	color: #fff;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background .2s ease, transform .2s ease;
}

.phb-cta-btn:hover,
.post_content_single a.phb-cta-btn:hover {
	background: var(--phb-accent-hover);
	color: #fff;
	transform: translateY(-2px);
}

/* =========================================================================
   6. Author bio
   ========================================================================= */

.post_item_single .author_info {
	display: flex;
	align-items: flex-start;
	gap: 1.6rem;
	margin: 3rem 0 0;
	padding: 2rem 2.2rem;
	border: 1px solid var(--phb-bd);
	border-radius: var(--phb-radius);
	background: var(--phb-white);
	box-shadow: var(--phb-shadow);
}

.post_item_single .author_info .author_avatar {
	flex: 0 0 auto;
	width: 88px;
	margin: 0;
}

.post_item_single .author_info .author_avatar img {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.post_item_single .author_info .author_description {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.post_item_single .author_info .author_label {
	order: -1;
	color: var(--phb-meta);
	font-size: .76em;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	margin-bottom: .3rem;
}

.post_item_single .author_info .author_title {
	margin: 0 0 .5rem;
	font-size: 1.15em;
}

.post_item_single .author_info .author_title a {
	color: var(--phb-navy);
	text-decoration: none;
}

.post_item_single .author_info .author_title a:hover {
	color: var(--phb-accent);
}

.post_item_single .author_info .author_bio {
	color: var(--phb-text);
	line-height: 1.7;
}

.post_item_single .author_info .author_bio p:last-child {
	margin-bottom: 0;
}

/* =========================================================================
   7. Newsletter band
   ========================================================================= */

.phb-newsletter {
	margin-top: 4rem;
	padding: 4rem 1.5rem;
	background: var(--phb-dark);
	color: #fff;
}

.phb-newsletter-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 2.5rem;
}

.phb-newsletter-copy {
	flex: 1 1 380px;
}

.phb-newsletter-title {
	margin: 0 0 .7rem;
	color: #fff;
	font-size: 1.9em;
	line-height: 1.25;
}

.phb-newsletter-text {
	margin: 0;
	color: var(--theme-color-alt_text, #B8BCC4);
	line-height: 1.7;
	max-width: 46ch;
}

.phb-newsletter-form {
	flex: 1 1 420px;
	max-width: 520px;
}

.phb-newsletter-row {
	display: flex;
	gap: .6rem;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 100px;
	padding: .4rem .4rem .4rem 1.4rem;
	transition: border-color .2s ease;
}

.phb-newsletter-row:focus-within {
	border-color: var(--phb-accent);
}

.phb-newsletter-row input[type="email"] {
	flex: 1 1 auto;
	min-width: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: .9em 0;
	color: #fff;
	font-size: 1em;
}

.phb-newsletter-row input[type="email"]:focus {
	background: transparent;
	border: 0;
	box-shadow: none;
	color: #fff;
}

.phb-newsletter-row input[type="email"]::placeholder {
	color: rgba(255, 255, 255, .5);
}

.phb-newsletter-btn {
	flex: 0 0 auto;
	padding: .95em 2em;
	border: 0;
	border-radius: 100px;
	background: var(--phb-accent);
	color: #fff;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background .2s ease;
}

.phb-newsletter-btn:hover {
	background: var(--phb-accent-hover);
	color: #fff;
}

.phb-newsletter-form.phb-loading .phb-newsletter-btn {
	opacity: .6;
	cursor: wait;
}

.phb-newsletter-hp {
	position: absolute !important;
	left: -9999px;
	height: 1px;
	overflow: hidden;
}

.phb-newsletter-msg {
	margin: .9rem 0 0;
	min-height: 1.4em;
	font-size: .9em;
	padding-left: 1.4rem;
}

.phb-newsletter-msg.phb-msg-success {
	color: #6EE7B7;
}

.phb-newsletter-msg.phb-msg-error {
	color: #FCA5A5;
}

/* Blog archive: newsletter closes the page */
.phb-blog .phb-newsletter {
	margin-bottom: -4rem;
}

/* =========================================================================
   8. Responsive
   ========================================================================= */

@media (max-width: 1279px) {
	.phb-article-layout {
		grid-template-columns: minmax(0, 1fr) 250px;
		column-gap: 2.5rem;
	}
}

@media (max-width: 1023px) {
	.phb-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.8rem;
	}

	.phb-card-featured {
		flex-direction: column;
	}

	.phb-card-featured .phb-card-media {
		flex: 0 0 auto;
		aspect-ratio: 16 / 9;
	}

	.phb-card-featured .phb-card-body {
		padding: 1.8rem;
	}

	.phb-card-featured .phb-card-title {
		font-size: 1.45em;
	}

	/* TOC becomes a collapsible bar above the article */
	.phb-article-layout {
		display: block;
	}

	.phb-toc {
		margin: 0 0 2rem;
	}

	.phb-toc-inner {
		position: static;
		max-height: none;
		padding: 1.1rem 1.3rem;
	}

	.phb-toc-toggle {
		margin: 0;
		padding: 0;
		border-bottom: 0;
		cursor: pointer;
	}

	.phb-toc-caret {
		display: block;
		width: 9px;
		height: 9px;
		border: solid var(--phb-navy);
		border-width: 0 2px 2px 0;
		transform: rotate(45deg) translateY(-2px);
		transition: transform .2s ease;
	}

	.phb-toc-open .phb-toc-caret {
		transform: rotate(-135deg) translateY(-2px);
	}

	.phb-toc-nav {
		display: none;
		padding-top: 1rem;
		margin-top: 1rem;
		border-top: 1px solid var(--phb-bd);
	}

	.phb-toc-open .phb-toc-nav {
		display: block;
	}

	.phb-blog-hero {
		padding: 3.5rem 0 2.5rem;
	}

	.phb-blog-hero-title {
		font-size: 2.4em;
	}
}

@media (max-width: 767px) {
	.phb-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.phb-filters {
		flex-wrap: nowrap;
		overflow-x: auto;
		justify-content: flex-start;
		padding-bottom: .5rem;
		-webkit-overflow-scrolling: touch;
	}

	.phb-filter {
		flex: 0 0 auto;
	}

	.phb-blog-hero-title {
		font-size: 2em;
	}

	.phb-cta,
	.phb-takeaways {
		padding: 1.6rem 1.4rem;
	}

	.phb-cta-btn {
		width: 100%;
		text-align: center;
	}

	.phb-newsletter {
		padding: 2.8rem 1.2rem;
	}

	.phb-newsletter-title {
		font-size: 1.5em;
	}

	.phb-newsletter-row {
		flex-direction: column;
		border-radius: 22px;
		padding: .5rem;
	}

	.phb-newsletter-row input[type="email"] {
		padding: .9em 1rem;
	}

	.phb-newsletter-btn {
		width: 100%;
	}

	.phb-newsletter-msg {
		padding-left: 0;
	}

	.post_item_single .author_info {
		flex-direction: column;
		padding: 1.6rem 1.4rem;
	}

	.post_item_single .post_content_single blockquote {
		padding: 1.8rem 1.4rem;
		font-size: 1.05em;
	}

	.post_item_single .post_content_single blockquote::before {
		display: none;
	}
}

/* =========================================================================
   9. Metform: placeholder-only fields (labels removed, thriveagency style)
   ========================================================================= */

/* With mf_input_label emptied, the label element still reserves a row for the
   required "*". Drop it. The GDPR consent label carries no class, so it stays. */
/* Scoped to the contact form only, so other Metform forms keep their labels.
   !important beats Elementor's per-widget generated `display: block`. */
.elementor-2192 .mf-input-wrapper > .mf-input-label {
	display: none !important;
}

.elementor-2192 .mf_select__placeholder,
.elementor-2192 .mf-input::placeholder {
	color: #ACAFB2;
}

/* =========================================================================
   10. "Request ..." popup form
   ========================================================================= */

.phb-modal[hidden] {
	display: none;
}

.phb-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 4vh 1.2rem;
	overflow-y: auto;
}

.phb-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(2, 8, 106, .55);
	backdrop-filter: blur(3px);
}

body.phb-modal-open {
	overflow: hidden;
}

.phb-modal-dialog {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 820px;
	margin: auto;
	padding: 2.6rem 2.8rem 2.2rem;
	border-radius: 22px;
	background: var(--phb-white);
	box-shadow: 0 30px 90px rgba(2, 8, 106, .35);
	animation: phb-modal-in .22s ease-out;
}

@keyframes phb-modal-in {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.phb-modal-dialog {
		animation: none;
	}
}

.phb-modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--phb-soft);
	color: var(--phb-navy);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}

.phb-modal-close:hover {
	background: var(--phb-navy);
	color: #fff;
}

.phb-modal-title {
	margin: 0 3rem .6rem 0;
	color: var(--phb-navy);
	font-size: 1.55em;
	line-height: 1.25;
}

.phb-modal-text {
	margin: 0 0 1.8rem;
	color: var(--phb-text);
	line-height: 1.7;
}

/* The popup form is a copy of the site contact form, so it needs the same
   label-free treatment. */
.elementor-7390 .mf-input-wrapper > .mf-input-label {
	display: none !important;
}

.elementor-7390 .mf_select__placeholder,
.elementor-7390 .mf-input::placeholder {
	color: #ACAFB2;
}

@media (max-width: 767px) {
	.phb-modal {
		padding: 2vh .8rem;
	}

	.phb-modal-dialog {
		padding: 2rem 1.3rem 1.6rem;
		border-radius: 18px;
	}

	.phb-modal-title {
		font-size: 1.25em;
	}
}

/* =========================================================================
   11. Info-box cards: breathing room above the button
   ========================================================================= */

/* The button sits in .trx-addons-info-box-footer, which is outside the
   description block - so the widget's own "Elements Spacing" control can't
   reach it and the button ends up flush against the copy. */
.trx-addons-info-box-footer {
	margin-top: 1.5rem;
}

@media (max-width: 767px) {
	.trx-addons-info-box-footer {
		margin-top: 1.2rem;
	}
}

/* =========================================================================
   12. Footer wordmark: keep "Pharma Marketings" on one line
   ========================================================================= */

/* At the theme's 165px it measures ~1336px against ~1285px of container, so it
   wrapped. A fixed size only fixes one viewport - below ~1400px it wraps again,
   and the container is max-width capped so a pure vw size overflows on wide
   screens. min() does both: caps at 150px where there's room, scales down when
   there isn't. nowrap guarantees the single line. !important is needed to beat
   Elementor's generated per-widget font-size. */
.elementor-element-1a0238c .elementor-heading-title {
	font-size: min(150px, 10.8vw) !important;
	white-space: nowrap;
	line-height: 1.05;
}

/* =========================================================================
   13. Marquee separator - no asset dependency
   ========================================================================= */

/* The theme inlines asterisk-icon.svg by READING THE FILE from disk; where that
   read fails (e.g. the asset is missing on the live server) it falls back to an
   <img> that 404s, which is the broken-image glyph between the marquee words.
   Drawing the separator in CSS removes the dependency entirely, so it renders
   identically on every environment. */
.trx_addons_bg_text_delimiter > * {
	display: none !important;
}

.trx_addons_bg_text_delimiter::before {
	content: "\2731";           /* heavy asterisk */
	display: inline-block;
	font-size: 1em;             /* Changes.docx #3 - was .62em, too small to read */
	font-weight: 700;
	line-height: 1;
	vertical-align: middle;
	color: inherit;
}


/* =========================================================================
   14. Lead form - popup + the band above the footer
   ========================================================================= */

/* The band sits between the page content and the site footer on every page. */
.phb-footer-form {
	background: #F4F8FB;
	padding: 80px 20px;
}

.phb-footer-form-inner {
	max-width: 820px;
	margin: 0 auto;
}

.phb-footer-form-title {
	margin: 0 0 12px;
	font-size: 40px;
	line-height: 1.2;
	color: #04072A;
}

.phb-footer-form-text {
	margin: 0 0 32px;
	color: #5A6B85;
	font-size: 17px;
	line-height: 1.6;
}

/* Two-up rows collapse on narrow screens; Metform's own gap is 0 there. */
.phb-lead-form .e-con-inner,
.phb-lead-form .elementor-widget-container {
	min-width: 0;
}

.phb-lead-form .mf-input:not([type="checkbox"]):not([type="radio"]),
.phb-lead-form textarea.mf-input {
	width: 100%;
	background: #fff;
	border-radius: 4px;
}

/* The services list: a checkbox grid rather than one long column. */
.phb-lead-form .mf-checkbox-option {
	display: block;
	margin: 0 0 10px;
}

.phb-lead-form .mf-checkbox.multi-option-input-type {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 20px;
	row-gap: 2px;
}

.phb-lead-form .elementor-widget-mf-checkbox .mf-input-label {
	display: block;
	margin-bottom: 12px;
	color: #04072A;
	font-weight: 600;
}

.phb-lead-form .mf-checkbox-option label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
}

.phb-lead-form .mf-checkbox-option input[type="checkbox"] {
	/* Metform sets width:100% on every .mf-input, which blows the box up. */
	flex: 0 0 auto;
	width: 16px;
	min-width: 16px;
	height: 16px;
	margin: 3px 0 0;
	accent-color: #05C9F5;
}

.phb-lead-form .elementor-widget-mf-checkbox label {
	font-size: 15px;
	line-height: 1.45;
	color: #04072A;
}

@media (max-width: 1024px) {
	.phb-lead-form .mf-checkbox.multi-option-input-type {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.phb-footer-form {
		padding: 56px 16px;
	}

	.phb-footer-form-title {
		font-size: 28px;
	}

	.phb-footer-form-text {
		font-size: 16px;
	}

	.phb-lead-form .mf-checkbox.multi-option-input-type {
		grid-template-columns: 1fr;
	}

	/* Metform zeroes the row gap on mobile, which butts the two-up fields
	   together once they stack. */
	.phb-lead-form .e-con.e-flex {
		row-gap: 9px;
	}
}

/* Elementor stacks the two-up rows at its own mobile breakpoint (767px), but
   the phone widget carries no mobile width of its own and stays at 50%. */
@media (max-width: 767px) {
	.phb-lead-form .e-con.e-flex > .elementor-element {
		width: 100%;
		max-width: 100%;
	}
}

/* The modal is narrower than the footer band, so the services grid gets two
   columns there rather than three. */
.phb-modal-dialog .mf-checkbox.multi-option-input-type {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
	.phb-modal-dialog .mf-checkbox.multi-option-input-type {
		grid-template-columns: 1fr;
	}
}


/* =========================================================================
   15. Changes.docx - footer form, CTA spacing, consent line
   ========================================================================= */

/* #8 - the footer CTA copy is two paragraphs; the theme zeroes <p> margins
   inside text widgets, so they ran together as one block. */
.elementor-element-d14adbb p + p {
	margin-top: 1em;
}

/* #4 - the lead form in the footer column is about half the width of the old
   band, so the services grid drops to two columns there. */
.phb-footer-lead-form .mf-checkbox.multi-option-input-type {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Consent on one line (#4, every form). The widget was sized to its content,
   so the sentence wrapped inside a narrow box. */
.phb-lead-form .elementor-widget-mf-gdpr-consent,
.elementor-2192 .elementor-widget-mf-gdpr-consent {
	width: 100%;
	max-width: 100%;
}

@media (min-width: 768px) {
	.phb-lead-form .elementor-widget-mf-gdpr-consent label,
	.elementor-2192 .elementor-widget-mf-gdpr-consent label {
		white-space: nowrap;
	}
}

@media (max-width: 640px) {
	.phb-footer-lead-form .mf-checkbox.multi-option-input-type {
		grid-template-columns: 1fr;
	}
}
