.bdp-page {
	--bdp-dark: #121212;
	--bdp-body: #797979;
	--bdp-border: #e5e5e5;
	--bdp-tag-bg: #f5f6f7;
	--bdp-icon-bg: #f0f0f0;
	--bdp-orange: var( --primary, #ff5b2e );
}

/* Hero banner (title + meta) — reuses the site's .artificial-details-main
   striped background image, scoped to just this block. */
.bdp-hero-banner {
	position: relative;
	overflow: hidden;
}

.bdp-hero-banner::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 45%;
	background: linear-gradient( to bottom, rgba( 255, 255, 255, 0 ), #fff );
	pointer-events: none;
}

.bdp-hero-banner .container {
	position: relative;
	z-index: 1;
}

.bdp-meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 40px;
}

.bdp-back-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.bdp-back-link svg {
	flex-shrink: 0;
}

.bdp-back-link span {
	font-family: "DM Sans", sans-serif;
	font-weight: 500;
	font-size: 18px;
	background: linear-gradient( 102.28deg, #ff5b2e 7.25%, #f5e12d 127% );
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.bdp-meta-right {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.bdp-meta-right .bdp-date,
.bdp-meta-right .bdp-author {
	font-family: "Roboto", sans-serif;
	font-weight: 400;
	font-size: 18px;
	color: var( --bdp-body );
}

.bdp-author span {
	font-variant: small-caps;
}

.bdp-meta-sep {
	width: 1px;
	height: 18px;
	background: var( --bdp-border );
	flex-shrink: 0;
}

.bdp-hero-inner {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.bdp-tag {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	height: 32px;
	background: #fff;
	border-radius: 30px;
	padding: 0 18px;
	font-family: "Roboto", sans-serif;
	font-weight: 400;
	font-size: 14px;
	color: var( --bdp-dark );
}

.bdp-title {
	font-family: "Roboto", sans-serif;
	font-weight: 700;
	font-size: clamp( 32px, 5.4vw, 78px );
	line-height: 1.05;
	color: var( --bdp-dark );
	margin: 0;
	max-width: 1500px;
	text-align: left;
}

/* Body */
.bdp-body-section {
	background: #fff;
	padding-bottom: clamp( 60px, 8vw, 130px );
}

.bdp-featured-image {
	border-radius: 20px;
	overflow: hidden;
	height: 450px;
}

.bdp-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bdp-layout {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) 445px;
	gap: 24px;
	align-items: start;
	margin-top: 120px;
}

/* Article typography */
.bdp-content {
	font-family: "DM Sans", sans-serif;
	font-weight: 500;
	font-size: 18px;
	line-height: 26px;
	color: var( --bdp-body );
	min-width: 0;
}

.bdp-content h2 {
	font-family: "Roboto", sans-serif;
	font-weight: 500;
	font-size: clamp( 26px, 3.2vw, 42px );
	color: var( --bdp-dark );
	margin: 44px 0 18px;
	line-height: 1.25;
	scroll-margin-top: 100px;
}

.bdp-content h3 {
	font-family: "DM Sans", sans-serif;
	font-weight: 600;
	font-size: 20px;
	color: var( --bdp-dark );
	margin: 36px 0 14px;
	line-height: 1.3;
	scroll-margin-top: 100px;
}

.bdp-content > *:first-child {
	margin-top: 0;
}

.bdp-content p {
	margin: 0 0 20px;
}

.bdp-content strong {
	color: var( --bdp-dark );
	font-weight: 600;
}

.bdp-content a {
	color: var( --bdp-orange );
	text-decoration: underline;
}

/* Higher specificity than ".bdp-content a" above, so the mid-article
   CTA (a .cta-btn anchor) keeps its white label instead of inheriting
   orange-on-orange invisible text. */
.bdp-content .cta-btn,
.bdp-content .cta-btn:hover {
	color: #fff;
	text-decoration: none;
}

.bdp-content ul {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bdp-content ul li {
	position: relative;
	padding-left: 30px;
}

.bdp-content ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 4px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var( --bdp-orange );
}

.bdp-content ul li::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 9px;
	width: 8px;
	height: 5px;
	border-left: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate( -45deg );
}

.bdp-content img {
	width: 100%;
	height: auto;
	border-radius: 20px;
	display: block;
	margin: 12px 0 28px;
}

.bdp-content blockquote {
	background: rgba( 255, 91, 46, 0.06 );
	border-left: 3px solid var( --bdp-orange );
	border-radius: 20px;
	padding: 24px;
	margin: 0 0 28px;
	color: #1e1e1e;
	font-weight: 500;
}

.bdp-content blockquote p:last-child {
	margin-bottom: 0;
}

/* Mid-article CTA */
.bdp-cta-wrap {
	margin: 44px 0;
}

/* Sidebar */
.bdp-sidebar {
	position: sticky;
	top: 30px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.bdp-toc {
	background: #f8f8f8;
	border-radius: 20px;
	padding: 30px 20px;
}

.bdp-toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.bdp-toc-list li {
	position: relative;
	padding-left: 20px;
}

.bdp-toc-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 7px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.bdp-toc-list a {
	font-family: "Roboto", sans-serif;
	font-size: 16px;
	line-height: 1.3;
	text-decoration: none;
	color: #5e5e5e;
}

.bdp-toc-list a:hover {
	color: var( --bdp-orange );
}

/* Section currently in the middle of the viewport (set by blog-details.js). */
.bdp-toc-list a.is-active {
	font-weight: 600;
	color: var( --bdp-orange );
}

.bdp-contact-card {
	background: #fff5f2;
	border-radius: 20px;
	padding: 30px;
}

.bdp-contact-card h3 {
	font-family: "Roboto", sans-serif;
	font-weight: 400;
	font-size: 18px;
	margin: 0 0 24px;
	color: var( --bdp-dark );
}

.bdp-contact-card h3 strong {
	font-weight: 500;
}

/* Loosen the site's default Bootstrap grid inside this narrow card so
   fields stack full-width instead of squeezing side by side. */
.bdp-contact-card .row {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bdp-contact-card .row > [class*="col-"] {
	width: 100%;
	max-width: 100%;
	flex: 0 0 100%;
	padding: 0;
}

.bdp-contact-card .form-group {
	margin-bottom: 0;
}

/* The design shows a single "Full Name" field. The real form behind
   this card splits that into First/Last Name, so the Last Name
   column is collapsed entirely (its value is mirrored from First
   Name via JS below) rather than shown as a second box. Safe to
   fully collapse: the form carries novalidate, so Contact Form 7's
   own JS — not native required validation — checks the value. */
.bdp-contact-card .row > div:has( [id^="lname"] ) {
	display: none;
}

/* The theme's global .form-control rule (font-size:18px, weight:300,
   line-height:24px, transparent background !important) otherwise
   bleeds into this card, so every property here is forced with
   !important to guarantee the design's actual field styling wins. */
.bdp-contact-card .wpcf7-form-control.form-control {
	width: 100% !important;
	background: #fff !important;
	border: 0 !important;
	border-radius: 8px !important;
	padding: 12px 16px !important;
	font-family: "Roboto", sans-serif !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.3 !important;
	color: var( --bdp-dark ) !important;
}

.bdp-contact-card .wpcf7-form-control.form-control::placeholder {
	font-family: "Roboto", sans-serif;
	font-size: 15px;
	color: #949494;
	opacity: 1;
}

.bdp-contact-card textarea.wpcf7-form-control.form-control {
	height: 106px !important;
	resize: vertical;
}

/* Simplify the phone field's country-code widget (intl-tel-input) so
   it reads as a plain "Phone" input like the design, instead of a
   flag dropdown. */
.bdp-contact-card .intl-tel-input {
	width: 100%;
}

.bdp-contact-card .intl-tel-input .flag-container {
	display: none;
}

.bdp-contact-card .intl-tel-input input {
	padding-left: 16px !important;
}

.bdp-contact-card .form-button {
	margin-top: 10px;
}

/* The theme's global input.wpcf7-submit rule sets an icon-only white
   background with !important, so matching !important here is the only
   way to get the orange, labelled button the design calls for. */
.bdp-contact-card input.wpcf7-form-control.btn.btn-primary {
	width: 100% !important;
	background: var( --bdp-orange ) !important;
	border: 0 !important;
	border-radius: 8px !important;
	padding: 12px 14px !important;
	font-family: "Roboto", sans-serif;
	font-weight: 600;
	font-size: 15px;
	color: #fff !important;
	cursor: pointer;
}

.bdp-contact-card .wpcf7-spinner {
	display: block;
	margin: 10px auto 0;
}

.bdp-contact-card .wpcf7-not-valid-tip {
	font-size: 12px;
	margin-top: 4px;
}

/* Recommended blogs */
.bdp-related {
	margin-top: clamp( 60px, 8vw, 120px );
}

.bdp-related-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 40px;
}

.bdp-related-title {
	font-family: "Roboto", sans-serif;
	font-weight: 600;
	font-size: clamp( 28px, 3.4vw, 44px );
	color: #1e1e1e;
	margin: 0;
}

.bdp-related-grid {
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	column-gap: 24px;
	row-gap: 40px;
}

.bdp-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.bdp-card-img {
	display: block;
	border-radius: 20px;
	overflow: hidden;
	height: 350px;
}

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

.bdp-card-img:hover img {
	transform: scale( 1.06 );
}

.bdp-card-body {
	background: #fff;
	border: 1px solid var( --bdp-border );
	border-radius: 20px;
	padding: 25px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bdp-card-top {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.bdp-card-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bdp-card-text h3 {
	margin: 0;
	font-family: "Roboto", sans-serif;
	font-weight: 500;
	font-size: 20px;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bdp-card-text h3 a {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var( --bdp-dark );
	text-decoration: none;
}

.bdp-card-text h3 a:hover {
	color: var( --bdp-orange );
}

.bdp-card-text p {
	margin: 0;
	font-family: "DM Sans", sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 20px;
	color: var( --bdp-body );
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bdp-card-arrow {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	border-radius: 50px;
	background: var( --bdp-icon-bg );
	display: flex;
	align-items: center;
	justify-content: center;
	transition: 0.25s ease;
}

.bdp-card-arrow:hover {
	background: var( --bdp-orange );
}

.bdp-card-arrow:hover svg path {
	stroke: #fff;
}

.bdp-card-tag {
	align-self: flex-start;
	background: var( --bdp-tag-bg );
	border-radius: 30px;
	padding: 6px 18px;
	font-family: "Roboto", sans-serif;
	font-weight: 400;
	font-size: 14px;
	color: #1e1e1e;
}

.bdp-empty {
	font-family: "DM Sans", sans-serif;
	color: var( --bdp-body );
	padding: 60px 0;
	text-align: center;
}

/* Responsive */
@media ( max-width: 1199px ) {
	.bdp-layout {
		grid-template-columns: 1fr;
	}

	.bdp-sidebar {
		position: static;
	}

	.bdp-featured-image {
		height: clamp( 260px, 40vw, 450px );
	}
}

@media ( max-width: 767px ) {
	.bdp-meta-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.bdp-featured-image {
		height: 220px;
		margin-top: 30px;
	}

	.bdp-related-grid {
		grid-template-columns: 1fr;
	}

	.bdp-card-img {
		height: 220px;
	}
}
