/* Nuggets of Wisdom — listing & detail */

/* --------------------------------------------------------------------------
   Header clearance + full-width banner with particles overlay
-------------------------------------------------------------------------- */
body.post-type-archive-quote.ad-quotes-has-banner .titlebar {
	position: relative;
	min-height: 0 !important;
	height: auto !important;
	padding: 0 !important;
	margin: 0 !important;
	background: #fff !important;
	background-image: none !important;
	overflow: visible;
}

body.post-type-archive-quote.ad-quotes-has-banner .titlebar::before,
body.post-type-archive-quote.ad-quotes-has-banner .titlebar-overlay {
	display: none !important;
}

body.post-type-archive-quote.ad-quotes-has-banner .titlebar-inner,
body.post-type-archive-quote.ad-quotes-has-banner .titlebar-container,
body.post-type-archive-quote.ad-quotes-has-banner .titlebar-col {
	display: none !important;
}

body.post-type-archive-quote #lqd-contents-wrap {
	padding-top: 0;
	overflow: visible;
	width: 100% !important;
	max-width: none !important;
}

/* Theme container (1140px) squeezes the listing — let this section set its own width */
body.post-type-archive-quote #lqd-contents-wrap > .container,
body.post-type-archive-quote #lqd-contents-wrap > .container-fluid,
body.post-type-archive-quote .lqd-contents > .container,
body.post-type-archive-quote .lqd-contents > .container-fluid,
body.post-type-archive-quote #lqd-site-content > .container {
	width: 100% !important;
	max-width: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Full-width banner image — natural height, never cropped */
body.post-type-archive-quote .ad-quotes-hero--banner {
	position: relative;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	line-height: 0;
	overflow: hidden;
	background: #fff;
}

body.post-type-archive-quote .ad-quotes-hero--banner > .ad-quotes-hero__img,
body.post-type-archive-quote .ad-quotes-hero--banner > img {
	position: relative;
	z-index: 1;
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	object-fit: contain !important;
}

/* Particles sit on top of the banner image */
body.post-type-archive-quote .ad-quotes-hero--banner .lqd-particles-bg-wrap,
body.post-type-archive-quote .ad-quotes-hero--banner .ld-particles-container,
body.post-type-archive-quote .ad-quotes-hero--banner .ld-particles-inner {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	pointer-events: none;
}

body.post-type-archive-quote .ad-quotes-hero--banner .ld-particles-container {
	height: 100% !important;
}

/* --------------------------------------------------------------------------
   Archive content
-------------------------------------------------------------------------- */
body.post-type-archive-quote .ad-quotes-archive {
	background: #fff;
	padding: 8px 0 64px;
}

body.post-type-archive-quote #lqd-contents-wrap {
	padding-top: 0;
	overflow: visible;
}

.ad-quotes-container {
	max-width: 1360px;
	margin: 0 auto;
	padding: 48px 32px 80px;
}

.ad-quotes-archive__intro {
	max-width: 920px;
	margin: 0 auto 48px;
	text-align: center;
}

.ad-quotes-archive__kicker {
	margin: 0 0 12px;
	color: #ef7f4d;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ad-quotes-archive__title {
	margin: 0 0 16px;
	color: #0b1f3a;
	font-size: clamp(1.75rem, 2.6vw, 2.15rem);
	line-height: 1.3;
	font-weight: 700;
}

.ad-quotes-archive__lead {
	margin: 0;
	color: #64748b;
	font-size: 1.2rem;
	line-height: 1.75;
}

.ad-quotes-eyebrow {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #ef7f4d;
}

/* --------------------------------------------------------------------------
   3-column cards
-------------------------------------------------------------------------- */
.ad-quotes-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}

.ad-quotes-card {
	margin: 0;
	background: #fff;
	border: 1px solid #e8eef4;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(11, 31, 58, 0.04);
	transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.ad-quotes-card:hover {
	border-color: rgba(239, 127, 77, 0.35);
	box-shadow: 0 16px 36px rgba(11, 31, 58, 0.1);
	transform: translateY(-4px);
}

.ad-quotes-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.ad-quotes-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 24px 8px;
	background: linear-gradient(180deg, #f3f7fb 0%, #ffffff 100%);
}

.ad-quotes-card__media img,
.ad-quotes-card__placeholder {
	width: 112px;
	height: 112px;
	border-radius: 50%;
	object-fit: cover;
	background: #dce7f2;
	border: 4px solid #fff;
	box-shadow: 0 8px 20px rgba(11, 31, 58, 0.12);
}

.ad-quotes-card__placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #0b1f3a;
	font-size: 2rem;
	font-weight: 700;
}

.ad-quotes-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px 28px 32px;
	text-align: center;
}

.ad-quotes-card__author {
	margin: 0 0 8px;
	color: #0b1f3a;
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.3;
}

.ad-quotes-card__topic {
	margin: 0 0 16px;
	color: #ef7f4d;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
}

.ad-quotes-card__quote {
	margin: 0 0 20px;
	padding: 0;
	border: 0;
	flex: 1;
}

.ad-quotes-card__quote p {
	margin: 0;
	color: #475569;
	font-size: 1.15rem;
	line-height: 1.6;
	font-style: italic;
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ad-quotes-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	align-self: center;
	margin-top: auto;
	color: #0b1f3a;
	font-size: 1.05rem;
	font-weight: 700;
}

.ad-quotes-card:hover .ad-quotes-card__cta {
	color: #ef7f4d;
}

/* --------------------------------------------------------------------------
   Detail page
-------------------------------------------------------------------------- */
/* Hide Hub titlebar heading on quote detail (keeps site header) */
body.single-quote .titlebar {
	min-height: 0 !important;
	height: auto !important;
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
}

body.single-quote .titlebar-inner,
body.single-quote .titlebar-container,
body.single-quote .titlebar-col,
body.single-quote .titlebar .breadcrumb,
body.single-quote .titlebar .lqd-shop-topbar-breadcrumb {
	display: none !important;
}

.ad-quotes-single__title {
	margin: 0 0 6px;
	color: #0b1f3a;
	font-size: clamp(1.75rem, 3vw, 2.35rem);
	line-height: 1.2;
	font-weight: 700;
}

.ad-quotes-single__subtitle {
	margin: 0 0 12px;
	color: #0b1f3a;
	font-size: clamp(1.15rem, 2vw, 1.35rem);
	font-weight: 700;
	font-style: normal;
	letter-spacing: -0.01em;
	text-transform: none;
	line-height: 1.35;
}

.ad-quotes-back {
	margin: 0 0 28px;
}

.ad-quotes-back a {
	color: #5b6b7c;
	text-decoration: none;
	font-size: 0.95rem;
}

.ad-quotes-back a:hover {
	color: #ef7f4d;
}

.ad-quotes-single__header {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 32px;
	align-items: center;
	margin-bottom: 40px;
	padding-bottom: 32px;
	border-bottom: 1px solid #e8eef4;
}

.ad-quotes-single__media img,
.ad-quotes-single__placeholder {
	width: 160px;
	height: 160px;
	border-radius: 50%;
	object-fit: cover;
	background: #dce7f2;
	box-shadow: 0 16px 36px rgba(11, 31, 58, 0.12);
}

.ad-quotes-single__placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #0b1f3a;
	font-size: 2.5rem;
	font-weight: 700;
}

.ad-quotes-single__sep {
	margin: 0 0.25em;
	color: #94a3b8;
	font-weight: 400;
}

.ad-quotes-single__attribution {
	margin: 12px 0 0;
	color: #7a8a9a;
	font-size: 0.92rem;
	line-height: 1.5;
}

.ad-quotes-section {
	margin-bottom: 36px;
}

.ad-quotes-section__label {
	margin: 0 0 12px;
	color: #ef7f4d;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.ad-quotes-section__content {
	color: #334155;
	font-size: 1.05rem;
	line-height: 1.75;
}

.ad-quotes-section__content p:last-child {
	margin-bottom: 0;
}

.ad-quotes-section__quote {
	margin: 0;
	padding: 28px 32px;
	border-left: 3px solid #ef7f4d;
	background: #f7fafc;
	border-radius: 0 18px 18px 0;
}

.ad-quotes-section__quote p {
	margin: 0;
	color: #0b1f3a;
	font-size: 1.2rem;
	line-height: 1.7;
	font-style: italic;
}

.ad-quotes-section--note .ad-quotes-section__content {
	color: #64748b;
	font-size: 0.98rem;
}

.ad-quotes-single__nav {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 48px;
	padding-top: 28px;
	border-top: 1px solid #e8eef4;
}

.ad-quotes-single__nav a {
	color: #0b1f3a;
	text-decoration: none;
	font-weight: 600;
}

.ad-quotes-single__nav a:hover {
	color: #ef7f4d;
}

.ad-quotes-empty {
	color: #64748b;
}

@media (max-width: 900px) {
	.ad-quotes-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Wide banner art is cropped on phones so the title stays readable. */
@media (max-width: 767px) {
	body.post-type-archive-quote .ad-quotes-hero--banner {
		height: clamp(220px, 62vw, 340px);
	}

	body.post-type-archive-quote .ad-quotes-hero--banner > .ad-quotes-hero__img,
	body.post-type-archive-quote .ad-quotes-hero--banner > img {
		position: absolute;
		inset: 0;
		width: 100% !important;
		height: 100% !important;
		max-height: none !important;
		object-fit: cover !important;
		object-position: left center !important;
	}
}

@media (max-width: 640px) {
	.ad-quotes-grid {
		grid-template-columns: 1fr;
	}

	.ad-quotes-single__header {
		grid-template-columns: 1fr;
		text-align: center;
		justify-items: center;
	}
}
