/* Towing Times – Connecticut Towing News
 * Mirrors the Newses theme used on towingtimes.com: blue section-title tab,
 * white image cards, category label on the photo, bold dark headlines.
 * Inherits the theme's fonts; accent follows the theme color when available.
 */

.ttct-news {
	--ttct-accent: var(--pri-color, #1151d3);
	--ttct-heading: var(--head-color, #212121);
	--ttct-text: #6c757d;
	--ttct-card: #fff;
	--ttct-line: #e5e7eb;
	--ttct-radius: 0;
	margin: 0 0 30px;
	font-family: inherit;
}

/* Section title — accent tab sitting on an accent rule, like "LATEST TOWING NEWS" */
.ttct-news .ttct-head {
	border-bottom: 2px solid var(--ttct-accent);
	margin: 0 0 20px;
	display: flex;
}
.ttct-news .ttct-head-title {
	margin: 0;
	padding: 0;
	font-size: 16px;
	line-height: 1;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
}
.ttct-news .ttct-head-title span {
	position: relative;
	display: inline-block;
	background: var(--ttct-accent);
	color: #fff;
	padding: 11px 32px 10px 18px;
	clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 0 100%);
}

/* Grid of cards */
.ttct-news .ttct-grid {
	display: grid;
	grid-template-columns: repeat(var(--ttct-cols, 3), minmax(0, 1fr));
	gap: 24px;
}
@media (max-width: 991px) {
	.ttct-news.ttct-layout-grid .ttct-grid { grid-template-columns: repeat(min(var(--ttct-cols, 3), 2), minmax(0, 1fr)); }
}
@media (max-width: 575px) {
	.ttct-news.ttct-layout-grid .ttct-grid { grid-template-columns: 1fr; }
}

.ttct-news .ttct-card {
	background: var(--ttct-card);
	border-radius: var(--ttct-radius);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s ease, transform .2s ease;
}
.ttct-news .ttct-card:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
	transform: translateY(-2px);
}

.ttct-news .ttct-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #0f1b2d;
}
.ttct-news .ttct-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0;
	transition: transform .4s ease;
}
.ttct-news .ttct-card:hover .ttct-thumb img { transform: scale(1.05); }

/* Category label on the photo — Newses ".mg-blog-category a" style */
.ttct-news .ttct-badge {
	position: absolute;
	left: 12px;
	bottom: 12px;
	background: var(--ttct-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 6px 9px;
}

.ttct-news .ttct-body { padding: 14px 16px 16px; }

.ttct-news .ttct-title {
	margin: 0;
	font-size: 17px;
	line-height: 1.35;
	font-weight: 700;
}
.ttct-news .ttct-title a {
	color: var(--ttct-heading);
	text-decoration: none;
	box-shadow: none;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ttct-news .ttct-title a:hover,
.ttct-news .ttct-title a:focus { color: var(--ttct-accent); }

.ttct-news .ttct-meta {
	margin-top: 8px;
	font-size: 12px;
	color: var(--ttct-text);
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
}
.ttct-news .ttct-meta time::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 5px;
	vertical-align: -1px;
	border: 1.5px solid currentColor;
	border-radius: 50%;
	box-sizing: border-box;
}
.ttct-news .ttct-source { font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }

/* List layout — compact like the "TRENDING" sidebar */
.ttct-news.ttct-layout-list .ttct-grid { grid-template-columns: 1fr; gap: 0; }
.ttct-news.ttct-layout-list .ttct-card {
	flex-direction: row;
	align-items: center;
	gap: 12px;
	box-shadow: none;
	background: transparent;
	padding: 12px 0;
	border-bottom: 1px solid var(--ttct-line);
}
.ttct-news.ttct-layout-list .ttct-card:last-child { border-bottom: 0; }
.ttct-news.ttct-layout-list .ttct-card:hover { transform: none; box-shadow: none; }
.ttct-news.ttct-layout-list .ttct-thumb {
	flex: 0 0 96px;
	width: 96px;
	aspect-ratio: 4 / 3;
}
.ttct-news.ttct-layout-list .ttct-body { padding: 0; min-width: 0; }
.ttct-news.ttct-layout-list .ttct-title { font-size: 15px; }
.ttct-news.ttct-layout-list .ttct-meta { margin-top: 4px; }

/* Credit */
.ttct-news .ttct-credit {
	margin-top: 16px;
	font-size: 12px;
	color: var(--ttct-text);
	text-align: right;
}
.ttct-news .ttct-credit a {
	color: var(--ttct-accent);
	font-weight: 700;
	text-decoration: none;
}
.ttct-news .ttct-credit a:hover { text-decoration: underline; }

.ttct-news .ttct-empty { color: var(--ttct-text); }

/* Newses dark mode */
body.dark .ttct-news,
.ttct-news.ttct-dark {
	--ttct-heading: #fff;
	--ttct-text: #adb5bd;
	--ttct-card: #1c1c1c;
	--ttct-line: #333;
}
