/* TanguTech Mak News — Makerere-style news section */

.elementor-widget-tangutech-mak-news .tmn {
	--tmn-gap: 24px;
	--tmn-green: #007a3d;
	--tmn-maroon: #8b1e2d;
	--tmn-hover-panel: #b21f1f;
	--tmn-hover-panel-height: 68%;
	width: 100%;
	box-sizing: border-box;
	color: #222;
}

.elementor-widget-tangutech-mak-news .tmn *,
.elementor-widget-tangutech-mak-news .tmn *::before,
.elementor-widget-tangutech-mak-news .tmn *::after {
	box-sizing: border-box;
}

.elementor-widget-tangutech-mak-news .tmn__header {
	margin: 0 0 36px;
	text-align: center;
}

.elementor-widget-tangutech-mak-news .tmn__title {
	margin: 0 0 14px;
	color: #8b1e2d;
	font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
	font-size: clamp(1.85rem, 3vw, 2.35rem);
	font-weight: 400;
	line-height: 1.25;
	text-align: center;
}

.elementor-widget-tangutech-mak-news .tmn__intro {
	margin: 0 auto;
	max-width: 760px;
	text-align: center;
	color: #222222;
	font-family: "Source Sans 3", "Segoe UI", sans-serif;
	font-size: 1.05rem;
	font-weight: 400;
	line-height: 1.55;
}

/* Featured row */
.elementor-widget-tangutech-mak-news .tmn__featured {
	display: grid;
	grid-template-columns: repeat(var(--tmn-featured-cols, 2), minmax(0, 1fr));
	gap: var(--tmn-gap);
}

.elementor-widget-tangutech-mak-news .tmn__featured-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 360px;
	padding: 0;
	overflow: hidden;
	background-color: #1a1a1a;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	color: #fff;
	text-decoration: none;
	isolation: isolate;
}

.elementor-widget-tangutech-mak-news .tmn__featured-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.55) 100%);
	opacity: 1;
	transition: opacity 0.3s ease;
}

.elementor-widget-tangutech-mak-news .tmn__featured-card:hover::after,
.elementor-widget-tangutech-mak-news .tmn__featured-card:focus-visible::after {
	opacity: 0;
}

.elementor-widget-tangutech-mak-news .tmn__featured-panel {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	margin-top: auto;
	padding: 20px 36px 18px 16px;
	background-color: transparent;
	transition:
		background-color 0.35s ease,
		min-height 0.35s ease;
}

.elementor-widget-tangutech-mak-news .tmn__featured-card:hover .tmn__featured-panel,
.elementor-widget-tangutech-mak-news .tmn__featured-card:focus-visible .tmn__featured-panel {
	display: flex;
	align-items: center;
	min-height: var(--tmn-hover-panel-height);
	background-color: var(--tmn-hover-panel);
}

.elementor-widget-tangutech-mak-news .tmn__featured-body {
	position: relative;
	z-index: 1;
	width: 100%;
	min-width: 0;
	text-align: left;
}

.elementor-widget-tangutech-mak-news .tmn__featured-date {
	display: block;
	margin: 0 0 10px;
	color: #fff;
	font-family: "Source Sans 3", "Segoe UI", sans-serif;
	font-size: 0.9rem;
	font-weight: 400;
	line-height: 1.3;
}

.elementor-widget-tangutech-mak-news .tmn__featured-title {
	margin: 0;
	color: #fff;
	font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
	font-size: clamp(1.2rem, 1.8vw, 1.55rem);
	font-weight: 400;
	line-height: 1.35;
}

.elementor-widget-tangutech-mak-news .tmn__featured-excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	max-height: 0;
	margin: 0;
	opacity: 0;
	color: #fff;
	font-family: "Source Sans 3", "Segoe UI", sans-serif;
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.5;
	transition:
		max-height 0.35s ease,
		opacity 0.3s ease,
		margin 0.35s ease;
}

.elementor-widget-tangutech-mak-news .tmn__featured-card:hover .tmn__featured-excerpt,
.elementor-widget-tangutech-mak-news .tmn__featured-card:focus-visible .tmn__featured-excerpt {
	max-height: 5.2em;
	margin-top: 14px;
	opacity: 1;
}

.elementor-widget-tangutech-mak-news .tmn__featured-toggle {
	position: absolute;
	right: 14px;
	bottom: 16px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.25em;
	color: #fff;
	font-family: "Source Sans 3", sans-serif;
	font-size: 1.65rem;
	font-weight: 300;
	line-height: 1;
	pointer-events: none;
}

.elementor-widget-tangutech-mak-news .tmn__featured-card:hover .tmn__featured-toggle,
.elementor-widget-tangutech-mak-news .tmn__featured-card:focus-visible .tmn__featured-toggle {
	top: 50%;
	bottom: auto;
	transform: translateY(-50%);
}

.elementor-widget-tangutech-mak-news .tmn__featured-plus,
.elementor-widget-tangutech-mak-news .tmn__featured-minus {
	display: block;
}

.elementor-widget-tangutech-mak-news .tmn__featured-minus {
	display: none;
}

.elementor-widget-tangutech-mak-news .tmn__featured-card:hover .tmn__featured-plus,
.elementor-widget-tangutech-mak-news .tmn__featured-card:focus-visible .tmn__featured-plus {
	display: none;
}

.elementor-widget-tangutech-mak-news .tmn__featured-card:hover .tmn__featured-minus,
.elementor-widget-tangutech-mak-news .tmn__featured-card:focus-visible .tmn__featured-minus {
	display: block;
}

/* Divider / row gap — spacing stays even when the line is hidden */
.elementor-widget-tangutech-mak-news .tmn__divider {
	--tmn-divider-space: 28px;
	display: block;
	width: 100%;
	margin: var(--tmn-divider-space) 0;
	border: 0;
	padding: 0;
}

.elementor-widget-tangutech-mak-news .tmn__divider--line {
	height: 1px;
	background-color: #e5e5e5;
}

.elementor-widget-tangutech-mak-news .tmn__divider--spacer {
	height: 0;
	background: transparent;
}

/* Secondary row */
.elementor-widget-tangutech-mak-news .tmn__secondary {
	display: grid;
	grid-template-columns: repeat(var(--tmn-secondary-cols, 3), minmax(0, 1fr));
	gap: var(--tmn-gap);
}

.elementor-widget-tangutech-mak-news .tmn__secondary-card {
	display: flex;
	flex-direction: column;
	background-color: #fff;
	min-width: 0;
	overflow: hidden;
}

.elementor-widget-tangutech-mak-news .tmn__secondary-media {
	position: relative;
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: #ececec;
	border-bottom: 0 solid transparent;
}

.elementor-widget-tangutech-mak-news .tmn__secondary-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.elementor-widget-tangutech-mak-news .tmn__secondary-card:hover .tmn__secondary-media img {
	transform: scale(1.04);
}

.elementor-widget-tangutech-mak-news .tmn__secondary-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 18px 0 8px;
	text-align: left;
}

.elementor-widget-tangutech-mak-news .tmn__secondary-date {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 2;
	display: inline-block;
	margin: 0;
	padding: 6px 12px;
	color: #ffffff;
	background-color: #1e5aa8;
	border-radius: 4px;
	font-family: "Source Sans 3", "Segoe UI", sans-serif;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	pointer-events: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.elementor-widget-tangutech-mak-news .tmn__secondary-title {
	margin: 0 0 18px;
	color: var(--tmn-maroon);
	font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
	font-size: clamp(1.05rem, 1.35vw, 1.2rem);
	font-weight: 400;
	line-height: 1.4;
}

.elementor-widget-tangutech-mak-news .tmn__secondary-title-link {
	color: inherit;
	text-decoration: none;
}

.elementor-widget-tangutech-mak-news .tmn__secondary-title-link:hover,
.elementor-widget-tangutech-mak-news .tmn__secondary-title-link:focus {
	text-decoration: underline;
}

.elementor-widget-tangutech-mak-news .tmn__continue {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	width: 100%;
	color: var(--tmn-green);
	font-family: "Source Sans 3", "Segoe UI", sans-serif;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
}

.elementor-widget-tangutech-mak-news .tmn__continue--no-arrow {
	justify-content: flex-start;
	width: auto;
}

.elementor-widget-tangutech-mak-news .tmn__continue:hover,
.elementor-widget-tangutech-mak-news .tmn__continue:focus {
	text-decoration: underline;
}

.elementor-widget-tangutech-mak-news .tmn__continue-arrow {
	color: #222;
	font-size: 1.1em;
	line-height: 1;
	text-decoration: none;
}

/* View more */
.elementor-widget-tangutech-mak-news .tmn__view-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.elementor-widget-tangutech-mak-news .tmn__view-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--tmn-green);
	font-family: "Source Sans 3", "Segoe UI", sans-serif;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
}

.elementor-widget-tangutech-mak-news .tmn__view-more:hover,
.elementor-widget-tangutech-mak-news .tmn__view-more:focus {
	text-decoration: underline;
}

.elementor-widget-tangutech-mak-news .tmn__view-more-icon {
	font-size: 0.95em;
	line-height: 1;
}

/* Tablet */
@media (max-width: 1024px) {
	.elementor-widget-tangutech-mak-news .tmn__featured {
		grid-template-columns: 1fr 1fr;
	}

	.elementor-widget-tangutech-mak-news .tmn__secondary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.elementor-widget-tangutech-mak-news .tmn__featured-card {
		min-height: 300px;
	}

	.elementor-widget-tangutech-mak-news .tmn__featured-panel {
		padding: 18px 32px 16px 14px;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.elementor-widget-tangutech-mak-news .tmn__header {
		margin-bottom: 28px;
		padding: 0 4px;
	}

	.elementor-widget-tangutech-mak-news .tmn__title {
		font-size: clamp(1.55rem, 7vw, 2rem);
	}

	.elementor-widget-tangutech-mak-news .tmn__intro {
		font-size: 0.98rem;
	}

	.elementor-widget-tangutech-mak-news .tmn__featured,
	.elementor-widget-tangutech-mak-news .tmn__secondary {
		grid-template-columns: 1fr;
	}

	.elementor-widget-tangutech-mak-news .tmn__featured-card {
		min-height: 260px;
	}

	.elementor-widget-tangutech-mak-news .tmn__divider {
		--tmn-divider-space: 22px;
	}

	.elementor-widget-tangutech-mak-news .tmn__secondary-media {
		height: 210px;
	}

	.elementor-widget-tangutech-mak-news .tmn__view-more-wrap {
		margin-top: 32px;
		text-align: center;
	}

	.elementor-widget-tangutech-mak-news .tmn__view-more {
		justify-content: center;
		text-align: center;
	}
}

/* Elementor device preview */
.elementor-device-mobile .elementor-widget-tangutech-mak-news .tmn__featured,
.elementor-device-mobile .elementor-widget-tangutech-mak-news .tmn__secondary {
	grid-template-columns: 1fr !important;
}

.elementor-device-tablet .elementor-widget-tangutech-mak-news .tmn__secondary {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
