﻿/* Insights & Events: list pages, article page, and the Home cards' click area.
   Builds on sw-solutions.css (buttons, hero banner, CTA, spacing). */

/* ---- list page ---- */
.sw-ins-intro {
	margin-bottom: 30px;
	font-size: 17px;
}
.sw-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}
.sw-post-card {
	position: relative;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #ececec;
	border-radius: 4px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
	overflow: hidden;
	transition: box-shadow .25s ease, transform .25s ease;
}
.sw-post-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
	transform: translateY(-3px);
}
.sw-post-img {
	position: relative;
	display: block;
	height: 210px;
	overflow: hidden;
	border-bottom: 1px solid #ececec;
	background: #f4f4f4;
}
.sw-post-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.sw-post-label {
	position: absolute;
	left: 0;
	bottom: 0;
	background: #bb0b0b;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .6px;
	text-transform: uppercase;
	padding: 6px 14px;
}
.sw-post-body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 20px 22px 22px;
}
.sw-post-date {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	color: #bb0b0b;
}
.sw-post-title {
	margin: 0 0 10px;
	font-size: 20px;
	line-height: 1.3;
}
.sw-post-title a {
	color: #0c0c0c;
	text-decoration: none;
}
.sw-post-title a:hover {
	color: #bb0b0b;
}
.sw-post-excerpt {
	flex-grow: 1;
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.6;
	color: #6b6b6b;
}
/* "Read more →": red underlined text link; its ::after stretches over the whole card so the entire
   card is the click target (same pattern as the Ingredients cards). */
.sw-post-card:hover .sw-post-title a {
	color: #bb0b0b;
}
.sw-post-link {
	align-self: flex-start;
	color: #bb0b0b;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: underline !important;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}
.sw-post-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}
.sw-post-link-arrow {
	display: inline-block;
	text-decoration: none;
	transition: transform .2s ease;
}
.sw-post-card:hover .sw-post-link {
	color: #8f0808;
	text-decoration-thickness: 2px;
}
.sw-post-card:hover .sw-post-link-arrow {
	transform: translateX(4px);
}
.sw-post-link:focus-visible::after {
	outline: 2px solid #bb0b0b;
	outline-offset: -2px;
}

/* pagination */
.sw-pagination {
	margin-top: 40px;
}
/* WordPress prints <ul class="page-numbers"><li><a class="page-numbers">â€¦; the box styling must only
   go on the links/current page, never on the <ul> itself (that is what stacked the numbers vertically). */
.sw-pagination ul.page-numbers {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	list-style: none;
}
.sw-pagination ul.page-numbers > li {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}
.sw-pagination li > a.page-numbers,
.sw-pagination li > span.page-numbers {
	display: inline-block;
	min-width: 42px;
	padding: 9px 14px;
	text-align: center;
	line-height: 1.2;
	border: 1px solid #ececec;
	border-radius: 3px;
	background: #ffffff;
	color: #0c0c0c;
	font-weight: 600;
	text-decoration: none;
}
.sw-pagination li > a.page-numbers:hover,
.sw-pagination li > span.page-numbers.current {
	background: #bb0b0b;
	border-color: #bb0b0b;
	color: #ffffff;
}

/* ---- article page ---- */
.sw-hero-eyebrow {
	display: inline-block;
	margin-bottom: 14px;
	padding: 5px 14px;
	background: #bb0b0b;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .8px;
	text-transform: uppercase;
}
.sw-hero-meta {
	margin: 14px 0 0;
	color: #ffffff;
	font-size: 16px;
	font-weight: 600;
	opacity: .9;
}
.sw-article-wrap {
	padding-top: 50px;
}
/* full container width, so the article lines up with the hero, the cards and the CTA */
.sw-article {
	width: 100%;
}
.sw-article-body {
	font-size: 17px;
	line-height: 1.8;
	color: #2b2b2b;
}
.sw-article-body p {
	margin-bottom: 20px;
}
.sw-article-body h2,
.sw-article-body h3,
.sw-article-body h4 {
	margin: 34px 0 14px;
	color: #0c0c0c;
}
.sw-article-body img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}
.sw-article-body blockquote {
	position: static;
	margin: 26px 0;
	padding: 6px 0 6px 22px;
	background: none !important;
	border: 0 !important;
	border-left: 4px solid #bb0b0b !important;
	box-shadow: none !important;
	color: #3c3c3c !important;
	font-family: inherit;
	font-size: 1.1em;
	font-style: italic;
	font-weight: 400;
	line-height: 1.7;
}
/* the theme also centres blockquote text in bold navy; keep it plain, left-aligned, in the body colour */
.sw-article-body blockquote,
.sw-article-body blockquote p {
	text-align: left !important;
	color: #3c3c3c !important;
	font-family: inherit !important;
	font-size: 1.1em !important;
	font-style: italic !important;
	font-weight: 400 !important;
	line-height: 1.7 !important;
	margin-bottom: 0;
}
/* the theme adds a big quote-mark icon to every blockquote; not wanted here */
.sw-article-body blockquote::before,
.sw-article-body blockquote::after {
	display: none !important;
	content: none !important;
}
.sw-article-body ul,
.sw-article-body ol {
	margin: 0 0 20px 22px;
}
.sw-article-body a {
	color: #bb0b0b;
}
.sw-article .sw-back-link {
	margin-top: 40px;
}
.sw-related-heading {
	margin-bottom: 24px;
}

/* ---- Home: whole Insights / Events card is clickable (title link stretched over the card) ----
   The theme positions .services-title/.services-text/.services-part itself, which would shrink the
   click area to the title box, so those are reset and the Elementor widget is the anchor. */
.sw-linkcard {
	position: relative;
}
.sw-linkcard .services-part,
.sw-linkcard .services-text,
.sw-linkcard .services-title {
	position: static !important;
}
.sw-linkcard .services-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}
.sw-linkcard:hover .services-title a {
	color: #bb0b0b;
}

@media (max-width: 991px) {
	.sw-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 575px) {
	.sw-post-grid {
		grid-template-columns: 1fr;
	}
	.sw-post-img {
		height: 190px;
	}
	.sw-article-body {
		font-size: 16px;
	}
}

/* Article headlines are sentences, not product names: normal case */
.sw-insight .sw-hero-title {
	text-transform: none;
	font-size: 40px;
	line-height: 1.25;
	max-width: 980px;
}
@media (max-width: 575px) {
	.sw-insight .sw-hero {
		padding: 70px 0;
	}
	.sw-insight .sw-hero-title {
		font-size: 28px;
	}
}
