.swesite-home-posts {
	margin-bottom: clamp(50px, 6vw, 90px);
	position: relative;
}

.swesite-home-posts__head {
	align-items: end;
	display: flex;
	justify-content: space-between;
	margin-bottom: clamp(22px, 3vw, 34px);
}

.swesite-home-posts__head h2 {
	color: #0f172a;
	font-size: clamp(32px, 4vw, 56px);
	letter-spacing: 0;
	line-height: 1.02;
	margin: 0 0 12px;
}

.swesite-home-posts__head p:not(.swesite-kicker) {
	color: #64748b;
	font-size: clamp(16px, 1.4vw, 19px);
	line-height: 1.65;
	margin: 0;
	max-width: 720px;
}

.swesite-home-posts__grid {
	display: grid;
	gap: clamp(16px, 2vw, 24px);
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.swesite-home-posts.is-slider .swesite-home-posts__head {
	align-items: center;
	gap: 18px;
}

.swesite-post-slider-controls {
	align-items: center;
	display: flex;
	gap: 10px;
	margin-left: auto;
}

.swesite-post-slider-arrow {
	align-items: center;
	background: rgba(255, 255, 255, .96);
	border: 1px solid rgba(37, 99, 235, .18);
	border-radius: 999px;
	box-shadow: 0 18px 44px rgba(15, 23, 42, .10);
	color: #0f172a;
	cursor: pointer;
	display: inline-flex;
	height: 46px;
	justify-content: center;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
	width: 46px;
}

.swesite-post-slider-arrow:hover,
.swesite-post-slider-arrow:focus-visible {
	border-color: rgba(37, 99, 235, .42);
	box-shadow: 0 22px 58px rgba(15, 23, 42, .14);
	color: #2563eb;
	transform: translateY(-2px);
}

.swesite-post-slider-arrow[aria-disabled="true"] {
	cursor: default;
	opacity: .42;
	pointer-events: none;
	transform: none;
}

.swesite-post-slider-arrow span {
	font-size: 20px;
	font-weight: 900;
	line-height: 1;
}

.swesite-home-posts.is-slider .swesite-post-slider-track {
	--swesite-post-slider-gap: 20px;
	display: flex;
	gap: var(--swesite-post-slider-gap);
	overflow-x: auto;
	overflow-y: hidden;
	padding: 3px 3px 22px;
	scroll-behavior: smooth;
	scroll-padding-inline: 3px;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.swesite-home-posts.is-slider .swesite-post-slider-track::-webkit-scrollbar {
	display: none;
}

.swesite-home-posts.is-slider .swesite-post-slider-card {
	flex: 0 0 calc((100% - 80px) / 5);
	scroll-snap-align: start;
}

.swesite-post-slider-footer {
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin-top: 8px;
	min-height: 24px;
}

.swesite-post-slider-dots {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.swesite-post-slider-dots button {
	background: rgba(37, 99, 235, .2);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	height: 8px;
	padding: 0;
	transition: background .18s ease, transform .18s ease, width .18s ease;
	width: 8px;
}

.swesite-post-slider-dots button.is-active {
	background: linear-gradient(135deg, #2563eb, #08b9b1);
	transform: translateY(-1px);
	width: 24px;
}

.swesite-post-slider-status {
	color: #64748b;
	font-size: 13px;
	font-weight: 800;
	margin: 0;
	min-width: 120px;
	text-align: right;
}

.swesite-home-post-card {
	background: rgba(255, 255, 255, .94);
	border: 1px solid rgba(203, 213, 225, .72);
	border-radius: 28px;
	box-shadow: 0 22px 70px rgba(15, 23, 42, .10);
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}

.swesite-home-post-card:hover {
	box-shadow: 0 30px 86px rgba(15, 23, 42, .14);
	transform: translateY(-3px);
}

.swesite-home-post-card__image {
	align-items: center;
	aspect-ratio: 1.55 / 1;
	background:
		radial-gradient(circle at 22% 20%, rgba(37, 99, 235, .34), transparent 38%),
		linear-gradient(135deg, #eff6ff, #ecfeff);
	display: flex;
	justify-content: center;
	overflow: hidden;
	position: relative;
	text-decoration: none;
}

.swesite-home-post-card__image img {
	height: 100%;
	object-fit: cover;
	transition: transform .25s ease;
	width: 100%;
}

.swesite-home-post-card:hover .swesite-home-post-card__image img {
	transform: scale(1.035);
}

.swesite-home-post-card__image span {
	align-items: center;
	background: linear-gradient(135deg, #2563eb, #08b9b1);
	border-radius: 24px;
	box-shadow: 0 18px 40px rgba(37, 99, 235, .25);
	color: #fff;
	display: flex;
	font-size: 42px;
	font-weight: 950;
	height: 94px;
	justify-content: center;
	width: 94px;
}

.swesite-home-post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 13px;
	padding: clamp(20px, 2vw, 26px);
}

.swesite-home-post-card__meta {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.swesite-home-post-card__meta a,
.swesite-home-post-card__meta span {
	background: rgba(37, 99, 235, .09);
	border: 1px solid rgba(37, 99, 235, .14);
	border-radius: 999px;
	color: #1d4ed8;
	font-size: 12px;
	font-weight: 900;
	padding: 7px 10px;
	text-decoration: none;
}

.swesite-home-post-card h3 {
	font-size: clamp(20px, 2vw, 26px);
	line-height: 1.14;
	margin: 0;
}

.swesite-home-post-card h3 a {
	color: #0f172a;
	text-decoration: none;
}

.swesite-home-post-card p {
	color: #64748b;
	font-size: 15px;
	line-height: 1.65;
	margin: 0;
}

.swesite-home-post-card__button {
	align-items: center;
	background: linear-gradient(135deg, #2563eb, #08b9b1);
	border-radius: 14px;
	color: #fff;
	display: inline-flex;
	font-weight: 900;
	justify-content: center;
	margin-top: auto;
	min-height: 48px;
	padding: 0 18px;
	text-decoration: none;
	width: fit-content;
}

.swesite-home-posts__empty {
	background: rgba(255, 255, 255, .92);
	border: 1px dashed rgba(148, 163, 184, .7);
	border-radius: 24px;
	color: #64748b;
	font-weight: 800;
	padding: 28px;
	text-align: center;
}

@media (max-width: 1080px) {
	.swesite-home-posts__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.swesite-home-posts.is-slider .swesite-post-slider-card {
		flex-basis: calc((100% - 40px) / 3);
	}
}

@media (max-width: 720px) {
	.swesite-home-posts__head {
		align-items: start;
		flex-direction: column;
	}

	.swesite-home-posts.is-slider {
		overflow: hidden;
	}

	.swesite-home-posts__grid {
		grid-template-columns: 1fr;
	}

	.swesite-post-slider-controls {
		margin-left: 0;
	}

	.swesite-home-posts.is-slider .swesite-post-slider-card {
		flex-basis: 84%;
	}

	.swesite-post-slider-footer {
		align-items: flex-start;
		flex-direction: column;
	}

	.swesite-post-slider-status {
		min-width: 0;
		text-align: left;
	}
}
