/* ===== News module (carousel, archive, single) ===== */

.mts-news-section {
	margin: 10px 0 30px;
}

.mts-news-heading {
	margin: 0 0 22px;
	font-size: 28px;
	font-weight: 700;
	color: #111827;
	text-align: center;
}

/* --- Card --- */

.mts-news-card {
	height: 100%;
}

.mts-news-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mts-news-link:hover {
	box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
	transform: translateY(-2px);
}

.mts-news-thumb {
	display: block;
	aspect-ratio: 16 / 10;
	background: #f3f4f6;
	overflow: hidden;
}

.mts-news-thumb-img,
.mts-news-thumb-ph {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mts-news-link:hover .mts-news-thumb-img {
	transform: scale(1.03);
	transition: transform 0.3s ease;
}

.mts-news-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px 16px 18px;
}

.mts-news-date {
	font-size: 13px;
	color: #6b7280;
}

.mts-news-title {
	font-size: 16px;
	line-height: 1.45;
	font-weight: 600;
	color: #111827;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* --- Carousel --- */

.mts-news-carousel {
	margin: 0 -8px;
}

/* Before slick boots (or if its JS fails) the slides must already sit in one
   row — otherwise the visitor sees a stacked grid flash. */
.mts-news-carousel:not(.slick-initialized) {
	display: flex;
	overflow: hidden;
}

.mts-news-carousel:not(.slick-initialized) .mts-news-slide {
	flex: 0 0 25%;
	max-width: 25%;
}

@media (max-width: 1199px) {
	.mts-news-carousel:not(.slick-initialized) .mts-news-slide {
		flex-basis: 33.333%;
		max-width: 33.333%;
	}
}

@media (max-width: 991px) {
	.mts-news-carousel:not(.slick-initialized) .mts-news-slide {
		flex-basis: 50%;
		max-width: 50%;
	}
}

@media (max-width: 639px) {
	.mts-news-carousel:not(.slick-initialized) .mts-news-slide {
		flex-basis: 100%;
		max-width: 100%;
	}
}

.mts-news-carousel .mts-news-slide {
	padding: 4px 8px 12px;
	height: auto;
}

.mts-news-carousel .slick-track {
	display: flex;
}

.mts-news-carousel .slick-slide {
	height: auto;
}

.mts-news-carousel .slick-slide > div,
.mts-news-carousel .mts-news-card {
	height: 100%;
}

.mts-news-arrow {
	position: absolute;
	top: 38%;
	z-index: 2;
	width: 42px;
	height: 42px;
	border: none;
	border-radius: 50%;
	background: #fff;
	color: #111827;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(17, 24, 39, 0.18);
	transition: background 0.2s ease, color 0.2s ease;
}

.mts-news-arrow:hover {
	background: #111827;
	color: #fff;
}

.mts-news-prev { left: -8px; }
.mts-news-next { right: -8px; }

.mts-news-carousel .slick-dots {
	bottom: -28px;
}

.mts-news-carousel .slick-dots li button:before {
	font-size: 10px;
	color: #9ca3af;
}

.mts-news-carousel .slick-dots li.slick-active button:before {
	color: #111827;
}

/* --- "See all" button --- */

.mts-news-more {
	margin-top: 42px;
	text-align: center;
}

.mts-news-btn {
	display: inline-block;
	padding: 12px 34px;
	border-radius: 999px;
	background: #111827;
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.mts-news-btn:hover {
	opacity: 0.85;
	transform: translateY(-1px);
}

/* --- Archive (/category/news/) --- */

.mts-news-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px 60px;
}

.mts-news-container--narrow {
	max-width: 860px;
}

.mts-news-page-title {
	margin: 0 0 30px;
	font-size: 34px;
	font-weight: 700;
	color: #111827;
	text-align: center;
}

.mts-news-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

@media (max-width: 1100px) {
	.mts-news-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
	.mts-news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
	.mts-news-grid { grid-template-columns: 1fr; }
}

.mts-news-pagination {
	margin-top: 34px;
	text-align: center;
}

.mts-news-pagination .nav-links {
	display: inline-flex;
	gap: 6px;
}

.mts-news-pagination .page-numbers {
	display: inline-block;
	min-width: 38px;
	padding: 8px 10px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	color: #111827;
	text-decoration: none;
	font-weight: 600;
}

.mts-news-pagination .page-numbers.current,
.mts-news-pagination .page-numbers:hover {
	background: #111827;
	border-color: #111827;
	color: #fff;
}

/* --- Single post --- */

.mts-news-back {
	display: inline-block;
	margin-bottom: 18px;
	color: #6b7280;
	font-size: 14px;
	text-decoration: none;
}

.mts-news-back:hover {
	color: #111827;
}

.mts-news-post-title {
	margin: 0 0 10px;
	font-size: 32px;
	line-height: 1.3;
	font-weight: 700;
	color: #111827;
}

.mts-news-single .mts-news-date {
	display: block;
	margin-bottom: 22px;
	font-size: 14px;
}

.mts-news-featured {
	margin: 0 0 26px;
	border-radius: 12px;
	overflow: hidden;
}

.mts-news-featured img {
	display: block;
	width: 100%;
	height: auto;
}

.mts-news-content {
	font-size: 16px;
	line-height: 1.75;
	color: #1f2937;
}

.mts-news-content p {
	margin: 0 0 1em;
}

.mts-news-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

@media (max-width: 767px) {
	.mts-news-heading { font-size: 24px; }
	.mts-news-page-title { font-size: 27px; }
	.mts-news-post-title { font-size: 25px; }
	.mts-news-prev { left: 4px; }
	.mts-news-next { right: 4px; }
}
