/* Homepage Latest Update — slider, 3 cards visible */

.ph-latest {
	--ph-latest-ink: #111d6a;
	--ph-latest-title: #1a9e9a;
	--ph-latest-muted: #6b7280;
	--ph-latest-text: #4b5563;
	padding: 72px 0 88px;
	background: #f7f5f2;
}

.ph-latest__head {
	margin: 0 0 36px;
}

.ph-latest__title {
	margin: 0;
	color: var(--ph-latest-ink);
	font-family: "Poppins", sans-serif;
	font-size: clamp(28px, 3.2vw, 40px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.ph-latest__slider {
	position: relative;
	padding: 0 52px;
}

.ph-latest__viewport {
	overflow: hidden;
	width: 100%;
}

.ph-latest__track {
	display: flex;
	align-items: stretch;
	gap: 28px;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.ph-latest__slide {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	box-sizing: border-box;
	width: calc((100% - 56px) / 3);
	min-width: calc((100% - 56px) / 3);
	max-width: calc((100% - 56px) / 3);
	align-self: stretch;
}

.ph-latest__nav {
	position: absolute;
	top: 28%;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ph-navy, #111d6a);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(17, 29, 106, 0.22);
	transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.ph-latest__nav:hover:not(:disabled) {
	background: var(--ph-accent, #f77f00);
	transform: scale(1.05);
}

.ph-latest__nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.ph-latest__nav--prev {
	left: 0;
}

.ph-latest__nav--next {
	right: 0;
}

.ph-latest__dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 28px;
}

.ph-latest__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(17, 29, 106, 0.2);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.ph-latest__dot.is-active,
.ph-latest__dot:hover {
	background: var(--ph-accent, #f77f00);
	transform: scale(1.15);
}

.ph-latest-card {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	width: 100%;
	min-height: 100%;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.ph-latest-card__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #e5e7eb;
}

.ph-latest-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ph-latest-card:hover .ph-latest-card__media img {
	transform: scale(1.04);
}

.ph-latest-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 18px 2px 0;
}

.ph-latest-card__title {
	margin: 0 0 12px;
	font-family: "Poppins", sans-serif;
	font-size: clamp(17px, 1.5vw, 20px);
	font-weight: 700;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.7em;
}

.ph-latest-card__title a {
	color: var(--ph-latest-title);
	text-decoration: none;
	transition: color 0.2s ease;
}

.ph-latest-card__title a:hover {
	color: var(--ph-accent, #f77f00);
}

.ph-latest-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin: 0 0 12px;
	color: var(--ph-latest-muted);
	font-family: "Poppins", sans-serif;
	font-size: 12px;
	line-height: 1.4;
}

.ph-latest-card__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ph-latest-card__meta-item svg {
	flex: 0 0 auto;
	opacity: 0.75;
}

.ph-latest-card__meta-item a {
	color: inherit;
	text-decoration: none;
}

.ph-latest-card__meta-item a:hover {
	color: var(--ph-accent, #f77f00);
}

.ph-latest-card__excerpt {
	margin: 0;
	color: var(--ph-latest-text);
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	line-height: 1.7;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: calc(1.7em * 3);
}

@media (max-width: 980px) {
	.ph-latest__slider {
		padding: 0 44px;
	}

	.ph-latest__slide {
		width: calc((100% - 28px) / 2);
		min-width: calc((100% - 28px) / 2);
		max-width: calc((100% - 28px) / 2);
	}

	.ph-latest__nav {
		top: 26%;
		width: 40px;
		height: 40px;
	}
}

@media (max-width: 640px) {
	.ph-latest {
		padding: 52px 0 60px;
	}

	.ph-latest__head {
		margin-bottom: 24px;
	}

	.ph-latest__slider {
		padding: 0 40px;
	}

	.ph-latest__slide {
		width: 100%;
		min-width: 100%;
		max-width: 100%;
	}

	.ph-latest-card__title {
		font-size: 18px;
		min-height: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ph-latest__track,
	.ph-latest-card__media img {
		transition: none;
	}

	.ph-latest-card:hover .ph-latest-card__media img {
		transform: none;
	}
}
