/*
 * Block: hero. Reference: section pt-6 pb-8; grid gap 24px; lg 3/9 columns.
 * Sidebar: dark head, divided list. Banner: 340px (395px from sm), dotted background,
 * slides with copy and a 256/320/384px image.
 */

.kd-home .kd-hero {
	padding-block: 24px 32px;
}

.kd-home .kd-hero__grid {
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1024px) {
	.kd-home .kd-hero__grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}
	.kd-home .kd-hero__aside {
		grid-column: span 3 / span 3;
	}
	.kd-home .kd-hero__banner {
		grid-column: span 9 / span 9;
	}
}

/* Sidebar */
.kd-home .kd-hero__aside {
	align-self: start;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid var(--kd-border);
	border-radius: var(--kd-radius-md);
	box-shadow: var(--kd-shadow-card);
}

.kd-home .kd-hero__aside-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	background: var(--kd-ink);
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 16px;
}

.kd-home .kd-hero__aside-head svg {
	color: var(--kd-brand);
}

.kd-home .kd-hero__cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 16px;
	border-block-end: 1px solid #f3f4f6;
	font-size: 13px;
	line-height: 19.5px;
	color: #374151;
	transition: background-color 0.2s var(--kd-ease), color 0.2s var(--kd-ease);
}

.kd-home .kd-hero__cats li:last-child .kd-hero__cat {
	border-block-end: 0;
}

.kd-home .kd-hero__cat svg {
	color: #9ca3af;
}

.kd-home .kd-hero__cat:hover {
	background: #f9fafb;
	color: var(--kd-brand);
}

.kd-home .kd-hero__more {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-block-start: 1px solid #f3f4f6;
	font-size: 12px;
	font-weight: 600;
	color: var(--kd-ink);
}

.kd-home .kd-hero__more:hover {
	color: var(--kd-brand);
}

/* Banner */
.kd-home .kd-hero__banner {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 340px;
	overflow: hidden;
	background-color: #efefef;
	background-image: radial-gradient(#dcdcdc 1px, transparent 1px);
	background-size: 16px 16px;
	border: 1px solid var(--kd-border);
	border-radius: var(--kd-radius-md);
}

@media (min-width: 640px) {
	.kd-home .kd-hero__banner {
		min-height: 395px;
	}
}

.kd-home .kd-slide {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 32px 24px;
}

@media (min-width: 640px) {
	.kd-home .kd-slide {
		padding-inline: 48px;
	}
}

@media (min-width: 768px) {
	.kd-home .kd-slide {
		flex-direction: row;
	}
}

.kd-home .kd-slide.is-entering {
	animation: kd-fade-in 0.35s ease-out both;
}

@keyframes kd-fade-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.kd-home .kd-slide__copy {
	width: 100%;
	max-width: 448px;
	display: grid;
	gap: 12px;
	justify-items: start;
}

.kd-home .kd-slide__eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	font-weight: 500;
	color: #4b5563;
	line-height: 20px;
}

@media (min-width: 640px) {
	.kd-home .kd-slide__eyebrow {
		font-size: 14px;
	}
}

.kd-home .kd-slide__rule {
	display: block;
	width: 40px;
	height: 1px;
	background: #9ca3af;
}

.kd-home .kd-slide__title {
	font-family: var(--kd-font-display);
	font-size: 30px;
	font-weight: 700;
	line-height: 36px;
	color: var(--kd-ink);
}

@media (min-width: 640px) {
	.kd-home .kd-slide__title {
		font-size: 36px;
		line-height: 40px;
	}
}

@media (min-width: 1024px) {
	.kd-home .kd-slide__title {
		font-size: 42px;
		line-height: 40px;
	}
}

.kd-home .kd-slide__text {
	padding-block-start: 0;
	margin-block-start: 12px;
	font-size: 12px;
	line-height: 1.625;
	color: #4b5563;
}

@media (min-width: 640px) {
	.kd-home .kd-slide__text {
		font-size: 14px;
		line-height: 22px;
	}
}

.kd-home .kd-slide__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding-block-start: 12px;
}

.kd-home .kd-slide__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.kd-home .kd-slide__img {
	width: 256px;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
	filter: drop-shadow(0 20px 13px rgba(0, 0, 0, 0.03)) drop-shadow(0 8px 5px rgba(0, 0, 0, 0.08));
}

@media (min-width: 640px) {
	.kd-home .kd-slide__img {
		width: 320px;
	}
}

@media (min-width: 1024px) {
	.kd-home .kd-slide__img {
		width: 384px;
	}
}

.kd-home .kd-slide__badge {
	position: absolute;
	inset-block-start: -8px;
	inset-inline-end: 8px;
	padding: 4px 10px;
	background: var(--kd-ink);
	color: var(--kd-brand);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Arrows and dots */
.kd-home .kd-hero__arrow {
	position: absolute;
	inset-block-start: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.9);
	color: var(--kd-ink);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
	cursor: pointer;
	z-index: 2;
	transition: background-color 0.2s var(--kd-ease), color 0.2s var(--kd-ease);
}

.kd-home .kd-hero__arrow--prev {
	inset-inline-start: 12px;
}

.kd-home .kd-hero__arrow--next {
	inset-inline-end: 12px;
}

.kd-home .kd-hero__arrow:hover {
	background: var(--kd-brand);
	color: var(--kd-brand-ink);
}

.kd-home .kd-hero__dots {
	position: absolute;
	inset-block-end: 16px;
	inset-inline: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	z-index: 2;
}

.kd-home .kd-hero__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 9999px;
	background: rgba(156, 163, 175, 0.6);
	cursor: pointer;
	transition: width 0.3s var(--kd-ease), background-color 0.2s var(--kd-ease);
}

.kd-home .kd-hero__dot:hover {
	background: #4b5563;
}

.kd-home .kd-hero__dot.is-active {
	width: 24px;
	background: var(--kd-brand);
}
