/* Keep the homepage title and latest-post section visually connected. */
.home .entry-hero-container-inner {
	padding-top: 54px;
	padding-bottom: 54px;
}

.home .content-area {
	margin-top: 28px;
}

.home .entry-content-wrap {
	padding-top: 28px;
}

@media (max-width: 767px) {
	.home .entry-hero-container-inner {
		padding-top: 34px;
		padding-bottom: 34px;
	}

	.home .content-area {
		margin-top: 18px;
	}

	.home .entry-content-wrap {
		padding-top: 22px;
	}
}

.laborcode-latest {
	--lc-navy: #08233d;
	--lc-blue: #135a91;
	--lc-red: #c72c34;
	--lc-gold: #f1c75b;
	--lc-white: #ffffff;
	margin: 0 0 48px;
	position: relative;
}

.laborcode-latest__topline {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 18px;
}

.laborcode-latest__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 6px;
	color: var(--lc-red);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	line-height: 1.2;
	text-transform: uppercase;
}

.laborcode-latest__eyebrow::before {
	width: 28px;
	height: 3px;
	background: var(--lc-red);
	content: "";
}

.laborcode-latest__heading {
	margin: 0;
	color: var(--lc-navy);
	font-size: clamp(1.55rem, 2.5vw, 2.15rem);
	letter-spacing: -0.025em;
	line-height: 1.12;
}

.laborcode-latest__controls {
	display: flex;
	gap: 9px;
	flex: 0 0 auto;
}

.laborcode-latest__arrow {
	display: inline-grid;
	width: 44px;
	height: 44px;
	padding: 0;
	place-items: center;
	border: 1px solid rgba(8, 35, 61, 0.18);
	border-radius: 50%;
	background: #ffffff;
	color: var(--lc-navy);
	box-shadow: 0 8px 24px rgba(8, 35, 61, 0.08);
	cursor: pointer;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.laborcode-latest__arrow:hover,
.laborcode-latest__arrow:focus-visible {
	border-color: var(--lc-red);
	background: var(--lc-red);
	color: #ffffff;
	transform: translateY(-2px);
}

.laborcode-latest__arrow svg {
	width: 20px;
	height: 20px;
}

.laborcode-latest__viewport {
	overflow: hidden;
	border: 1px solid rgba(8, 35, 61, 0.12);
	border-radius: 20px;
	background: var(--lc-navy);
	box-shadow: 0 24px 58px rgba(8, 35, 61, 0.2);
}

.laborcode-latest__track {
	display: flex;
	transform: translate3d(0, 0, 0);
	transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.laborcode-latest__slide {
	position: relative;
	min-width: 100%;
	height: clamp(430px, 47vw, 590px);
	isolation: isolate;
	overflow: hidden;
}

.laborcode-latest__media,
.laborcode-latest__media > a,
.laborcode-latest__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.laborcode-latest__image {
	object-fit: cover;
	object-position: center;
	transform: scale(1.01);
	transition: transform 8s cubic-bezier(0.2, 0.65, 0.25, 1);
}

.laborcode-latest__slide.is-active .laborcode-latest__image {
	transform: scale(1.08);
}

.laborcode-latest__image--fallback {
	background:
		radial-gradient(circle at 82% 20%, rgba(241, 199, 91, 0.34), transparent 25%),
		linear-gradient(135deg, #135a91 0%, #08233d 62%, #051727 100%);
}

.laborcode-latest__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(90deg, rgba(5, 23, 39, 0.92) 0%, rgba(5, 23, 39, 0.76) 42%, rgba(5, 23, 39, 0.12) 76%),
		linear-gradient(0deg, rgba(5, 23, 39, 0.9) 0%, transparent 58%);
	pointer-events: none;
}

.laborcode-latest__content {
	position: absolute;
	z-index: 2;
	left: clamp(26px, 5vw, 68px);
	bottom: clamp(30px, 5vw, 62px);
	width: min(720px, calc(100% - 52px));
	color: #ffffff;
}

.laborcode-latest__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.laborcode-latest__meta time {
	color: rgba(255, 255, 255, 0.82);
}

.laborcode-latest__category {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 5px 11px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 999px;
	background: rgba(199, 44, 52, 0.92);
	box-shadow: 0 7px 18px rgba(0, 0, 0, 0.16);
	color: #ffffff;
	font-size: 0.74rem;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
}

.laborcode-latest__title {
	max-width: 17ch;
	margin: 0 0 15px;
	color: #ffffff;
	font-size: clamp(2rem, 4.4vw, 3.55rem);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1.03;
	text-wrap: balance;
}

.laborcode-latest__title a {
	color: inherit;
	text-decoration: none;
	text-shadow: 0 3px 20px rgba(0, 0, 0, 0.28);
}

.laborcode-latest__title a:hover,
.laborcode-latest__title a:focus-visible {
	color: #ffffff;
	text-decoration: underline;
	text-decoration-color: var(--lc-gold);
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}

.laborcode-latest__excerpt {
	max-width: 64ch;
	margin: 0 0 23px;
	color: rgba(255, 255, 255, 0.9);
	font-size: clamp(0.98rem, 1.5vw, 1.12rem);
	line-height: 1.55;
}

.laborcode-latest__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	padding: 11px 17px;
	border-radius: 8px;
	background: #ffffff;
	color: var(--lc-navy);
	font-size: 0.91rem;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
	transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.laborcode-latest__cta:hover,
.laborcode-latest__cta:focus-visible {
	background: var(--lc-gold);
	color: var(--lc-navy);
	transform: translateY(-2px);
}

.laborcode-latest__cta svg {
	width: 18px;
	height: 18px;
	transition: transform 180ms ease;
}

.laborcode-latest__cta:hover svg,
.laborcode-latest__cta:focus-visible svg {
	transform: translateX(3px);
}

.laborcode-latest__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 14px 6px 0;
}

.laborcode-latest__dots {
	display: flex;
	align-items: center;
	gap: 8px;
}

.laborcode-latest__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(8, 35, 61, 0.22);
	cursor: pointer;
	transition: width 220ms ease, background-color 220ms ease;
}

.laborcode-latest__dot.is-active {
	width: 34px;
	background: var(--lc-red);
}

.laborcode-latest__dot:focus-visible {
	outline: 2px solid var(--lc-blue);
	outline-offset: 4px;
}

.laborcode-latest__count {
	color: rgba(8, 35, 61, 0.56);
	font-size: 0.82rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.12em;
}

.laborcode-latest__count strong {
	color: var(--lc-navy);
	font-size: 1rem;
}

@media (max-width: 767px) {
	body.home .content-area {
		margin-top: 18px;
	}

	.laborcode-latest {
		margin-bottom: 36px;
	}

	.laborcode-latest__topline {
		align-items: center;
	}

	.laborcode-latest__heading {
		font-size: 1.45rem;
	}

	.laborcode-latest__controls {
		gap: 6px;
	}

	.laborcode-latest__arrow {
		width: 40px;
		height: 40px;
	}

	.laborcode-latest__viewport {
		border-radius: 16px;
	}

	.laborcode-latest__slide {
		height: 520px;
	}

	.laborcode-latest__shade {
		background:
			linear-gradient(0deg, rgba(5, 23, 39, 0.96) 0%, rgba(5, 23, 39, 0.76) 53%, rgba(5, 23, 39, 0.12) 100%);
	}

	.laborcode-latest__content {
		left: 22px;
		bottom: 28px;
		width: calc(100% - 44px);
	}

	.laborcode-latest__meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.laborcode-latest__title {
		max-width: none;
		font-size: clamp(1.75rem, 8vw, 2.45rem);
	}

	.laborcode-latest__excerpt {
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
	}
}

@media (max-width: 480px) {
	.laborcode-latest__eyebrow {
		font-size: 0.68rem;
	}

	.laborcode-latest__heading {
		font-size: 1.25rem;
	}

	.laborcode-latest__arrow {
		width: 36px;
		height: 36px;
	}

	.laborcode-latest__slide {
		height: 500px;
	}

	.laborcode-latest__excerpt {
		margin-bottom: 18px;
		font-size: 0.95rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.laborcode-latest__track,
	.laborcode-latest__image,
	.laborcode-latest__arrow,
	.laborcode-latest__cta,
	.laborcode-latest__cta svg,
	.laborcode-latest__dot {
		transition-duration: 0.01ms !important;
	}
}
