/* Pro Driver Health: blog listing + single post (loaded only on those screens). */

/* Hello caps .site-main at 1140px on non-Elementor screens; the blog draws its own widths. */
body .site-main.pdh-blog { max-width: none; width: auto; margin: 0; padding: 0; }

/* ============================================================ Banner */
/* A rounded inset section that tucks under the header tab, like the page heroes. */
.pdh-blog-hero {
	position: relative; isolation: isolate; display: flex; align-items: center;
	margin: calc(-1 * (var(--pdh-logo-h) + 20px - 1.5625vw)) var(--pdh-inset) 0;
	min-height: clamp(300px, 22vw, 420px); padding: calc(var(--pdh-logo-h) + 40px) 0 clamp(48px, 4vw, 76px);
	border-radius: var(--pdh-radius); overflow: hidden; box-sizing: border-box;
	background: var(--pdh-navy) center / cover no-repeat;
	background-image: radial-gradient(120% 140% at 100% 0%, rgba(202, 44, 45, .55) 0%, rgba(202, 44, 45, 0) 55%), linear-gradient(135deg, #0d1b27 0%, var(--pdh-navy) 100%);
}
.pdh-blog-hero:before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .45) 60%, rgba(0, 0, 0, .25) 100%); }
.pdh-blog-hero:not(.has-image):before { background: none; }
.pdh-blog-hero__inner { position: relative; }
.pdh-blog-hero__title {
	margin: 0; color: #fff; font-family: var(--pdh-display); font-stretch: 62%; font-weight: 800; text-transform: uppercase;
	font-size: clamp(40px, 4.4vw, 84px); line-height: .96; letter-spacing: -.01em;
}
.pdh-blog-hero__lead { margin: 16px 0 0; max-width: 640px; color: rgba(255, 255, 255, .85); font-size: clamp(15px, .99vw, 19px); line-height: 1.5; }

/* Single post: centred title over the featured image, category pill above it. */
.pdh-post-hero { text-align: center; }
.pdh-post-hero:before { background: rgba(0, 0, 0, .55); }
.pdh-post-hero .pdh-blog-hero__inner { max-width: 1100px; }
.pdh-post-hero .pdh-blog-hero__title { font-size: clamp(34px, 3.6vw, 70px); line-height: 1; text-transform: none; font-stretch: 70%; }
.pdh-post-hero__cat {
	display: inline-block; margin-bottom: clamp(16px, 1.3vw, 24px); padding: .5em 1.3em; border-radius: 5px; background: var(--pdh-red);
	color: #fff !important; font-size: clamp(12px, .73vw, 14px); font-weight: 600; line-height: 1.2; text-transform: uppercase; text-decoration: none;
}
.pdh-post-hero__cat:hover { background: var(--pdh-red-dark); }
.pdh-post-hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: clamp(16px, 1.3vw, 24px) 0 0; color: rgba(255, 255, 255, .85); font-size: clamp(13px, .833vw, 16px); line-height: 1.4; }
.pdh-post-hero__meta > * { position: relative; }
.pdh-post-hero__meta > * + *:before { content: ""; position: absolute; left: -13px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--pdh-red); }

@media (max-width: 1199px) { .pdh-blog-hero { margin-top: -38px; padding-top: 88px; } }
@media (max-width: 767px) { .pdh-blog-hero { min-height: 220px; padding-bottom: 40px; } }

/* ============================================================ Breadcrumbs */
.pdh-blog__body { padding: clamp(28px, 2.1vw, 40px) 0 clamp(64px, 5.2vw, 100px); }
.pdh-crumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 clamp(28px, 2.6vw, 50px); padding: 0; font-size: clamp(13px, .833vw, 16px); line-height: 1.5; color: var(--pdh-muted); }
.pdh-crumbs li { margin: 0; padding: 0; }
.pdh-crumbs li + li:before { content: "\00BB"; margin: 0 .5em; color: var(--pdh-muted); }
.pdh-crumbs a { color: var(--pdh-ink); text-decoration: none; }
.pdh-crumbs a:hover { color: var(--pdh-red); }
.pdh-crumbs [aria-current] { color: var(--pdh-muted); }

/* ============================================================ Post cards */
.pdh-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 2.3vw, 44px) var(--pdh-gap); align-items: stretch; }
.pdh-blog-card {
	position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0; background: #fff;
	border-radius: 10px; overflow: hidden; box-shadow: 0 30px 90px -10px rgba(17, 17, 17, .14); transition: transform .3s ease, box-shadow .3s ease;
}
.pdh-blog-card:hover { transform: translateY(-4px); box-shadow: 0 34px 90px -8px rgba(17, 17, 17, .2); }
.pdh-blog-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e9edf1; }
.pdh-blog-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pdh-blog-card__media:after { content: ""; position: absolute; inset: 0; background: rgba(202, 43, 45, .45); opacity: 0; transition: opacity .3s ease; }
.pdh-blog-card:hover .pdh-blog-card__media img { transform: scale(1.05); }
.pdh-blog-card:hover .pdh-blog-card__media:after { opacity: 1; }
.pdh-blog-card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: clamp(20px, 1.56vw, 30px) clamp(22px, 1.56vw, 30px) clamp(24px, 1.77vw, 34px); }
.pdh-blog-card__cat {
	position: relative; z-index: 2; align-self: flex-start; margin-bottom: 12px; color: var(--pdh-red); text-decoration: none;
	font-family: var(--pdh-eyebrow-font); font-style: italic; font-weight: 600; font-size: clamp(12px, .78vw, 15px); line-height: 1.3; letter-spacing: .12em; text-transform: uppercase;
}
.pdh-blog-card__cat:hover { color: var(--pdh-red-dark); }
.pdh-blog-card__title { margin: 0 0 12px; font-family: var(--pdh-display); font-stretch: 70%; font-weight: 800; font-size: clamp(22px, 1.46vw, 28px); line-height: 1.12; letter-spacing: -.01em; }
.pdh-blog-card__title a { color: var(--pdh-ink); text-decoration: none; }
/* The title link covers the whole card, so anywhere on it opens the post. */
.pdh-blog-card__title a:after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pdh-blog-card:hover .pdh-blog-card__title a { color: var(--pdh-red); }
.pdh-blog-card__title a:focus-visible { outline: none; }
.pdh-blog-card:focus-within { outline: 2px solid var(--pdh-red); outline-offset: 3px; }
.pdh-blog-card__excerpt { margin: 0 0 clamp(20px, 1.56vw, 30px); color: var(--pdh-text); font-size: clamp(14px, .833vw, 16px); line-height: 1.7; }
.pdh-blog-card__meta { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--pdh-line); font-size: clamp(13px, .78vw, 15px); line-height: 1.4; }
.pdh-blog-card__author { color: var(--pdh-ink); font-weight: 600; }
.pdh-blog-card__date { color: var(--pdh-muted); font-size: .92em; }

@media (max-width: 1024px) { .pdh-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .pdh-blog-grid { grid-template-columns: minmax(0, 1fr); } }

.pdh-blog__empty { text-align: center; color: var(--pdh-muted); }

/* ============================================================ Pagination */
.pdh-blog-pagination { margin-top: clamp(40px, 3.6vw, 70px); }
.pdh-blog-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pdh-blog-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 12px; box-sizing: border-box;
	border: 1px solid var(--pdh-line); border-radius: 999px; color: var(--pdh-ink); font-weight: 600; text-decoration: none; line-height: 1;
}
.pdh-blog-pagination a.page-numbers:hover { border-color: var(--pdh-red); color: var(--pdh-red); }
.pdh-blog-pagination .page-numbers.current { background: var(--pdh-red); border-color: var(--pdh-red); color: #fff; }
.pdh-blog-pagination .page-numbers.dots { border: 0; }

/* ============================================================ Single post body */
.pdh-post .pdh-blog__body { max-width: 900px; width: var(--pdh-container); }
.pdh-post__content { color: var(--pdh-text); font-size: clamp(15px, .94vw, 18px); line-height: 1.85; }
.pdh-post__content > * { margin-top: 0; margin-bottom: 1.2em; }
.pdh-post__content h2, .pdh-post__content h3, .pdh-post__content h4 { margin: 1.6em 0 .5em; color: var(--pdh-ink); line-height: 1.1; }
.pdh-post__content h2 { font-size: clamp(28px, 2.08vw, 40px); }
.pdh-post__content h3 { font-size: clamp(24px, 1.67vw, 32px); }
.pdh-post__content h4 { font-size: clamp(20px, 1.3vw, 25px); }
.pdh-post__content > :first-child { margin-top: 0; }
.pdh-post__content a { color: var(--pdh-red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pdh-post__content a:hover { color: var(--pdh-red-dark); }
.pdh-post__content ul, .pdh-post__content ol { padding-left: 1.3em; }
.pdh-post__content li { margin-bottom: .4em; }
.pdh-post__content li::marker { color: var(--pdh-red); }
.pdh-post__content img { max-width: 100%; height: auto; border-radius: 10px; }
.pdh-post__content blockquote { margin: 1.6em 0; padding: 22px 28px; border-left: 4px solid var(--pdh-red); border-radius: 0 10px 10px 0; background: var(--pdh-soft); color: var(--pdh-ink); font-size: 1.05em; }
.pdh-post__content blockquote p:last-child { margin-bottom: 0; }

.pdh-post__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 0; padding-top: 24px; border-top: 1px solid var(--pdh-line); }
.pdh-post__tags a { padding: .45em 1.1em; border-radius: 999px; background: var(--pdh-soft); color: var(--pdh-ink); font-size: 14px; line-height: 1.2; text-decoration: none; }
.pdh-post__tags a:hover { background: var(--pdh-red); color: #fff; }

/* ============================================================ Comments */
.pdh-post .comments-area { margin-top: clamp(40px, 3.6vw, 70px); padding-top: clamp(32px, 2.6vw, 50px); border-top: 1px solid var(--pdh-line); }
.pdh-post .comment-reply-title, .pdh-post .comments-title { margin: 0 0 12px; font-size: clamp(28px, 2.08vw, 40px); line-height: 1.1; }
.pdh-post .comment-notes, .pdh-post .logged-in-as { color: var(--pdh-muted); font-size: 14px; }
.pdh-post .comment-form label { display: block; margin-bottom: 6px; color: var(--pdh-ink); font-size: 15px; font-weight: 500; }
.pdh-post .comment-form input[type="text"], .pdh-post .comment-form input[type="email"], .pdh-post .comment-form input[type="url"], .pdh-post .comment-form textarea {
	width: 100%; box-sizing: border-box; padding: 14px 18px; border: 1px solid var(--pdh-line); border-radius: 8px; background: #fff; font-size: 15px; color: var(--pdh-ink);
}
.pdh-post .comment-form input:focus, .pdh-post .comment-form textarea:focus { outline: none; border-color: var(--pdh-red); box-shadow: 0 0 0 3px rgba(202, 44, 45, .12); }
.pdh-post .comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.pdh-post .comment-form-cookies-consent label { display: inline; font-weight: 400; color: var(--pdh-text); }
.pdh-post .comment-form .submit {
	height: var(--pdh-btn-h); padding: 0 clamp(24px, 1.8vw, 34px); border: 0; border-radius: 999px; background: var(--pdh-red); color: #fff; cursor: pointer;
	font-size: clamp(13px, .833vw, 16px); font-weight: 700; text-transform: uppercase; transition: background-color .25s;
}
.pdh-post .comment-form .submit:hover { background: var(--pdh-red-dark); }
