/**
 * GUS Blog Cards — modern safari journal style.
 * Brand: forest green + gold. Used on homepage + Total/VCEX blog grids.
 */

:root {
	--gus-bc-green: #0c8766;
	--gus-bc-green-dark: #00542c;
	--gus-bc-green-mid: #285e27;
	--gus-bc-gold: #c9a227;
	--gus-bc-gold-soft: #f1c741;
	--gus-bc-ink: #1a2e24;
	--gus-bc-muted: #5c6b63;
	--gus-bc-surface: #f3f6f4;
	--gus-bc-card: #ffffff;
	--gus-bc-radius: 14px;
	--gus-bc-shadow: 0 10px 36px rgba(0, 50, 30, 0.08);
	--gus-bc-shadow-hover: 0 18px 48px rgba(0, 50, 30, 0.14);
}

/* —— Homepage: From Our Blog —— */
.gus-home__blog {
	padding: 3rem 0 3.5rem;
	background:
		radial-gradient(ellipse 80% 60% at 50% 0%, rgba(12, 135, 102, 0.06), transparent 70%),
		var(--gus-bc-surface);
}

.gus-home__blog .gus-home__section-title {
	margin-bottom: 1.75rem;
	letter-spacing: -0.02em;
}

.gus-home__blog-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.gus-home__blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 960px) {
	.gus-home__blog-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.75rem;
	}
}

.gus-blog-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0 !important;
	padding: 0 !important;
	background: var(--gus-bc-card);
	border-radius: var(--gus-bc-radius);
	box-shadow: var(--gus-bc-shadow);
	overflow: hidden;
	border: 1px solid rgba(0, 84, 44, 0.06);
	transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

/* Kill Total .entry / .has-media spacing so media is full-bleed to the top */
.gus-home__blog .gus-blog-card.entry,
.gus-home__blog article.gus-blog-card,
.gus-blog-card.has-media {
	padding: 0 !important;
	margin: 0 !important;
}

.gus-blog-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--gus-bc-shadow-hover);
	border-color: rgba(12, 135, 102, 0.18);
}

.gus-blog-card__link {
	display: flex;
	flex-direction: column;
	flex: 1;
	color: inherit;
	text-decoration: none !important;
	min-height: 100%;
	margin: 0;
	padding: 0;
}

.gus-blog-card__link:hover,
.gus-blog-card__link:focus,
.gus-blog-card__link:focus-visible {
	text-decoration: none !important;
}

/* Whole-card <a> must not underline meta / excerpt / CTA — title only */
.gus-blog-card__link:hover .gus-blog-card__meta,
.gus-blog-card__link:hover .gus-blog-card__meta *,
.gus-blog-card__link:hover .gus-blog-card__excerpt,
.gus-blog-card__link:hover .gus-blog-card__cta,
.gus-blog-card__link:hover .gus-blog-card__badge,
.gus-blog-card:hover .gus-blog-card__meta,
.gus-blog-card:hover .gus-blog-card__meta *,
.gus-blog-card:hover .gus-blog-card__excerpt,
.gus-blog-card:hover .gus-blog-card__cta,
.gus-blog-card:hover .gus-blog-card__badge {
	text-decoration: none !important;
}

.gus-blog-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #dce8e1;
	margin: 0;
	padding: 0;
	border-radius: 0;
	width: 100%;
}

.gus-blog-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	vertical-align: top;
	transition: transform 0.55s ease;
}

.gus-blog-card:hover .gus-blog-card__media img {
	transform: scale(1.06);
}

.gus-blog-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 45%, rgba(0, 40, 25, 0.35) 100%);
	pointer-events: none;
	opacity: 0.85;
}

.gus-blog-card__badge {
	position: absolute;
	z-index: 2;
	top: 0.85rem;
	left: 0.85rem;
	display: inline-block;
	padding: 0.28rem 0.7rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--gus-bc-green-dark);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.2;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.gus-blog-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.15rem 1.25rem 1.35rem;
	gap: 0.55rem;
}

.gus-blog-card__meta {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.75rem;
	color: var(--gus-bc-muted);
	letter-spacing: 0.02em;
}

.gus-blog-card__meta,
.gus-blog-card__meta time,
.gus-blog-card__excerpt,
.gus-blog-card__cta {
	text-decoration: none !important;
}

.gus-blog-card__meta time {
	font-variant-numeric: tabular-nums;
}

.gus-blog-card__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.015em;
	color: var(--gus-bc-green-dark);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-decoration: none;
	text-underline-offset: 0.18em;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.gus-blog-card:hover .gus-blog-card__title,
.gus-blog-card__link:hover .gus-blog-card__title,
.gus-blog-card__link:focus-visible .gus-blog-card__title {
	color: var(--gus-bc-green);
	text-decoration: underline;
	text-decoration-color: var(--gus-bc-gold);
	text-decoration-thickness: 2px;
}

.gus-blog-card__excerpt {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--gus-bc-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
}

.gus-blog-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.65rem;
	padding-top: 0.85rem;
	border-top: 1px solid rgba(0, 84, 44, 0.08);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--gus-bc-green);
}

.gus-blog-card__cta-arrow {
	display: inline-block;
	transition: transform 0.25s ease;
}

.gus-blog-card:hover .gus-blog-card__cta-arrow {
	transform: translateX(4px);
}

.gus-blog-card:hover .gus-blog-card__cta {
	color: var(--gus-bc-green-dark);
}

@media (prefers-reduced-motion: reduce) {
	.gus-blog-card,
	.gus-blog-card__media img,
	.gus-blog-card__cta-arrow {
		transition: none;
	}

	.gus-blog-card:hover {
		transform: none;
	}

	.gus-blog-card:hover .gus-blog-card__media img {
		transform: none;
	}
}

/* —— Total theme / VCEX blog grids (sitewide) —— */
body.gus-blog-cards-active .blog-entry,
body.gus-blog-cards-active .vcex-blog-entry,
.wpex-row .vcex-blog-entry {
	background: var(--gus-bc-card);
	border-radius: var(--gus-bc-radius);
	box-shadow: var(--gus-bc-shadow);
	border: 1px solid rgba(0, 84, 44, 0.06);
	overflow: hidden;
	transition: transform 0.28s ease, box-shadow 0.28s ease;
}

body.gus-blog-cards-active .blog-entry:hover,
body.gus-blog-cards-active .vcex-blog-entry:hover,
.wpex-row .vcex-blog-entry:hover {
	transform: translateY(-5px);
	box-shadow: var(--gus-bc-shadow-hover);
}

body.gus-blog-cards-active .blog-entry-media,
body.gus-blog-cards-active .vcex-blog-entry-media,
.wpex-row .vcex-blog-entry-media {
	overflow: hidden;
}

body.gus-blog-cards-active .blog-entry-media img,
body.gus-blog-cards-active .vcex-blog-entry-media img,
.wpex-row .vcex-blog-entry-media img {
	transition: transform 0.55s ease;
}

body.gus-blog-cards-active .blog-entry:hover .blog-entry-media img,
body.gus-blog-cards-active .vcex-blog-entry:hover .vcex-blog-entry-media img,
.wpex-row .vcex-blog-entry:hover .vcex-blog-entry-media img {
	transform: scale(1.05);
}

body.gus-blog-cards-active .blog-entry-title a,
body.gus-blog-cards-active .vcex-blog-entry-title a,
.wpex-row .vcex-blog-entry-title a {
	color: var(--gus-bc-green-dark);
	font-weight: 700;
	letter-spacing: -0.015em;
	text-decoration: none;
	text-underline-offset: 0.18em;
}

/* Card hover → underline title only (not date / excerpt / read more) */
body.gus-blog-cards-active .blog-entry:hover .blog-entry-title a,
body.gus-blog-cards-active .vcex-blog-entry:hover .vcex-blog-entry-title a,
.wpex-row .vcex-blog-entry:hover .vcex-blog-entry-title a,
body.gus-blog-cards-active .blog-entry-title a:hover,
body.gus-blog-cards-active .vcex-blog-entry-title a:hover,
.wpex-row .vcex-blog-entry-title a:hover {
	color: var(--gus-bc-green);
	text-decoration: underline;
	text-decoration-color: var(--gus-bc-gold);
	text-decoration-thickness: 2px;
}

body.gus-blog-cards-active .blog-entry:hover .blog-entry-date,
body.gus-blog-cards-active .blog-entry:hover .blog-entry-date a,
body.gus-blog-cards-active .blog-entry:hover .blog-entry-excerpt,
body.gus-blog-cards-active .blog-entry:hover .blog-entry-excerpt a,
body.gus-blog-cards-active .blog-entry:hover .blog-entry-readmore a,
body.gus-blog-cards-active .blog-entry:hover .theme-button,
body.gus-blog-cards-active .vcex-blog-entry:hover .vcex-blog-entry-date,
body.gus-blog-cards-active .vcex-blog-entry:hover .vcex-blog-entry-date a,
body.gus-blog-cards-active .vcex-blog-entry:hover .vcex-blog-entry-excerpt,
body.gus-blog-cards-active .vcex-blog-entry:hover .vcex-blog-entry-excerpt a,
body.gus-blog-cards-active .vcex-blog-entry:hover .theme-button,
.wpex-row .vcex-blog-entry:hover .vcex-blog-entry-date,
.wpex-row .vcex-blog-entry:hover .vcex-blog-entry-date a,
.wpex-row .vcex-blog-entry:hover .vcex-blog-entry-excerpt,
.wpex-row .vcex-blog-entry:hover .vcex-blog-entry-excerpt a,
.wpex-row .vcex-blog-entry:hover .theme-button {
	text-decoration: none !important;
}

body.gus-blog-cards-active .blog-entry-excerpt,
body.gus-blog-cards-active .vcex-blog-entry-excerpt,
.wpex-row .vcex-blog-entry-excerpt {
	color: var(--gus-bc-muted);
}

body.gus-blog-cards-active .blog-entry-readmore a,
body.gus-blog-cards-active .theme-button.blog-entry-readmore,
body.gus-blog-cards-active .vcex-blog-entry .theme-button,
.wpex-row .vcex-blog-entry .theme-button {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	color: var(--gus-bc-green) !important;
	font-weight: 700 !important;
	font-size: 0.8rem !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.gus-blog-cards-active .blog-entry-readmore a::after,
body.gus-blog-cards-active .vcex-blog-entry .theme-button::after,
.wpex-row .vcex-blog-entry .theme-button::after {
	content: " →";
	display: inline;
}
