/*
 * Structure only, in the design's brand tokens as defaults. Every colour, size
 * and spacing here is overridden by the widget's own Elementor controls, whose
 * generated CSS is more specific — so editing in Elementor always wins.
 */

.tc-grid,
.tc-crumbs,
.tc-meta,
.tc-share,
.tc-pagination {
	--tc-accent: #01ae9b;
	--tc-heading: #131313;
	--tc-body: #464e50;
	--tc-muted: #949494;
	--tc-border: #e4f4f1;
	--tc-card: #ffffff;
	--tc-tint: #f5fffe;
}

/* ------------------------------------------------------------------- grid */

.tc-grid {
	display: grid;
	grid-template-columns: repeat(var(--tc-cols, 3), minmax(0, 1fr));
	gap: 28px;
}

/* Fallback for the shortcode, where Elementor generates no breakpoint CSS. */
@media (max-width: 1024px) {
	.tc-grid { grid-template-columns: repeat(min(var(--tc-cols, 3), 2), minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.tc-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ card */

.tc-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--tc-card);
	border: 1px solid var(--tc-border);
	border-radius: 16px;
	transition: transform .25s ease, box-shadow .25s ease;
}

.tc-card__media {
	display: block;
	overflow: hidden;
	line-height: 0;
}

.tc-card__img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
	transition: transform .4s ease;
}

.tc-card__img--empty {
	background: linear-gradient(135deg, var(--tc-tint), var(--tc-border));
}

.tc-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 10px;
	padding: 24px;
}

.tc-card__eyebrow {
	align-self: flex-start;
	color: var(--tc-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
}

.tc-card__title {
	margin: 0;
	font-size: 20px;
	line-height: 1.3;
}

.tc-card__title a {
	color: var(--tc-heading);
	text-decoration: none;
}

.tc-card__title a:hover {
	color: var(--tc-accent);
}

.tc-card__excerpt {
	margin: 0;
	color: var(--tc-body);
	font-size: 15px;
	line-height: 1.65;
}

.tc-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 14px;
}

.tc-card__date {
	color: var(--tc-muted);
	font-size: 13px;
}

.tc-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--tc-accent);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.tc-card__cta-arrow {
	transition: transform .2s ease;
}

.tc-card__cta:hover .tc-card__cta-arrow {
	transform: translateX(4px);
}

/* The lead card on the blog index spans the row and lays out side by side. */
.tc-card--featured {
	grid-column: 1 / -1;
}

@media (min-width: 768px) {
	.tc-card--featured {
		flex-direction: row;
		align-items: stretch;
	}
	.tc-card--featured .tc-card__media { flex: 1 1 50%; }
	.tc-card--featured .tc-card__img { height: 100%; min-height: 280px; }
	.tc-card--featured .tc-card__body { flex: 1 1 50%; justify-content: center; padding: 36px; }
	.tc-card--featured .tc-card__title { font-size: 28px; }
}

/* ------------------------------------------------------------------- meta */

.tc-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	color: var(--tc-muted);
	font-size: 14px;
}

.tc-meta a {
	color: inherit;
	text-decoration: none;
}

.tc-meta a:hover {
	color: var(--tc-accent);
}

.tc-meta__sep {
	opacity: .6;
}

/* ------------------------------------------------------------ breadcrumbs */

.tc-crumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
}

.tc-crumbs__item {
	margin: 0;
}

.tc-crumbs a {
	color: var(--tc-muted);
	text-decoration: none;
}

.tc-crumbs a:hover {
	color: var(--tc-accent);
}

.tc-crumbs__item--current {
	color: var(--tc-heading);
}

.tc-crumbs__sep {
	color: var(--tc-muted);
	opacity: .6;
}

/* ------------------------------------------------------------------ share */

.tc-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.tc-share__label {
	color: var(--tc-muted);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.tc-share__btn {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border: 1px solid var(--tc-border);
	border-radius: 999px;
	background: transparent;
	color: var(--tc-body);
	font: inherit;
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.tc-share__btn:hover,
.tc-share__btn.is-copied {
	border-color: var(--tc-accent);
	background: var(--tc-accent);
	color: #fff;
}

/* ------------------------------------------------------------- pagination */

.tc-pagination {
	margin-top: 40px;
}

.tc-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tc-pagination a,
.tc-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--tc-border);
	border-radius: 8px;
	color: var(--tc-body);
	font-size: 14px;
	text-decoration: none;
}

.tc-pagination .current {
	border-color: var(--tc-accent);
	background: var(--tc-accent);
	color: #fff;
}

/* -------------------------------------------------------------- utilities */

.tc-empty {
	padding: 24px;
	border: 1px dashed var(--tc-border, #e4f4f1);
	border-radius: 12px;
	color: #949494;
	font-size: 15px;
	text-align: center;
}

.tc-related__heading {
	margin: 0 0 24px;
}

.tc-hp-field {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.tc-card,
	.tc-card__img,
	.tc-card__cta-arrow,
	.tc-share__btn {
		transition: none !important;
	}
	.tc-card:hover { transform: none !important; }
	.tc-card:hover .tc-card__img { transform: none !important; }
}
