/**
 * Karaaslan Tarım — Haberler (arşiv + tekil): kroki hero, krem kart ızgarası, makale kolonu.
 */

/* ---- Kroki hero ---- */

.ka-news-hero {
	position: relative;
	height: 390px;
	overflow: hidden;
	background: #5b6080;
}

.ka-news-hero-single {
	height: 320px;
}

.ka-news-hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .5;
}

.ka-news-hero-overlay {
	position: absolute;
	inset: 0;
	background: rgba(83, 88, 120, .35);
}

.ka-news-hero-content {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: 40px;
}

.ka-news-hero-title {
	font-weight: 600;
	font-size: clamp(30px, 4.5vw, 44px);
	color: #fff;
	margin: 0;
	text-align: center;
}

/* ---- Arşiv: krem kart ızgarası ---- */

.ka-news-archive {
	background: var(--ka-cream-2);
	padding: 84px 0 96px;
}

.ka-news-archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
	gap: 26px;
	align-items: start;
}

.ka-news-archive-card {
	border: 1.5px solid var(--ka-ink);
	padding: 22px 20px 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: #fff;
}

.ka-news-archive-img {
	width: 100%;
	height: 250px;
	object-fit: cover;
	display: block;
}

.ka-news-archive-tag {
	font-size: 13px;
	color: #3d475c;
	margin-top: 6px;
}

.ka-news-archive-card-title {
	font-weight: 600;
	font-size: 15.5px;
	line-height: 1.5;
	color: var(--ka-ink);
	margin: 0;
}

.ka-news-archive-link {
	align-self: flex-start;
	background: none;
	border: none;
	border-bottom: 2px solid var(--ka-orange);
	color: var(--ka-ink);
	font-size: 14px;
	padding: 0 0 3px;
	transition: color .15s ease;
}

.ka-news-archive-link:hover,
.ka-news-archive-link:focus-visible {
	color: var(--ka-orange);
}

.ka-news-archive-empty {
	color: var(--ka-muted);
	font-size: 15px;
}

/* ---- Arşiv: sayfalama ---- */

.ka-news-archive-pagination {
	margin-top: 56px;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.ka-news-archive-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1.5px solid var(--ka-ink);
	color: var(--ka-ink);
	font-size: 14px;
	background: #fff;
	transition: background .15s ease, color .15s ease;
}

.ka-news-archive-pagination .page-numbers.current {
	background: var(--ka-orange);
	border-color: var(--ka-orange);
	color: #fff;
}

.ka-news-archive-pagination .page-numbers:hover:not(.current) {
	background: var(--ka-ink);
	color: #fff;
}

/* ---- Tekil: makale kolonu ---- */

.ka-news-single {
	background: var(--ka-cream-2);
	padding: 70px 0 100px;
}

.ka-news-single-col {
	max-width: 880px;
	margin: 0 auto;
	padding: 0 40px;
}

.ka-news-single-meta {
	display: flex;
	gap: 12px;
	align-items: center;
	font-size: 13px;
	margin-bottom: 14px;
}

.ka-news-single-tag {
	background: #fff;
	color: var(--ka-magenta);
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 999px;
}

.ka-news-single-date {
	color: var(--ka-faint);
}

.ka-news-single-title {
	font-weight: 600;
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.35;
	color: var(--ka-ink);
	margin: 0 0 26px;
}

.ka-news-single-cover {
	width: 100%;
	height: 420px;
	object-fit: cover;
	display: block;
	margin-bottom: 30px;
}

.ka-news-single-body {
	color: var(--ka-ink);
	font-size: 15px;
	line-height: 1.85;
}

.ka-news-single-body p {
	margin: 0 0 20px;
}

.ka-news-single-body img {
	max-width: 100%;
	height: auto;
}

.ka-news-single-back {
	display: inline-block;
	margin-top: 30px;
	background: var(--ka-orange);
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 12px 22px;
	font-size: 14px;
	font-weight: 500;
	transition: background .15s ease;
}

.ka-news-single-back:hover,
.ka-news-single-back:focus-visible {
	background: var(--ka-orange-hover);
	color: #fff;
}

/* ---- Responsive ---- */

@media (max-width: 640px) {
	.ka-news-hero {
		height: 260px;
	}

	.ka-news-hero-single {
		height: 220px;
	}

	.ka-news-archive {
		padding: 44px 0 70px;
	}

	.ka-news-single {
		padding: 44px 0 70px;
	}

	.ka-news-single-col {
		padding: 0 22px;
	}

	.ka-news-single-cover {
		height: 260px;
	}
}
