/**
 * Centiva Post Navigation — structural layout only.
 * Colours, typography, arrow size, spacing and borders are generated by
 * Elementor from the widget's control selectors.
 */

.elementor-post-navigation {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 20px;
	width: 100%;
}

.elementor-post-navigation__prev,
.elementor-post-navigation__next {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
}

.elementor-post-navigation__prev {
	justify-content: flex-start;
	text-align: start;
}

.elementor-post-navigation__next {
	justify-content: flex-end;
	text-align: end;
}

/* The clickable link fills its half and lays arrow + text on one row. */
.elementor-post-navigation__link a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
	max-width: 100%;
}

.elementor-post-navigation__next a {
	flex-direction: row;
}

/* Stack label above title. */
.elementor-post-navigation__link__prev,
.elementor-post-navigation__link__next {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.elementor-post-navigation__link__prev {
	align-items: flex-start;
}

.elementor-post-navigation__link__next {
	align-items: flex-end;
}

/* Arrow wrapper — inherits `color`; SVGs using currentColor pick it up. */
.post-navigation__arrow-wrapper {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	line-height: 1;
}

.post-navigation__arrow-wrapper svg {
	display: block;
	width: 24px;
	height: 24px;
}

/*
 * Titles wrap fully, then clamp to a maximum number of lines with an ellipsis.
 * The line count is driven by the "Max Lines" control (default 3); clearing that
 * control removes the clamp and shows the whole title.
 */
.post-navigation__prev--title,
.post-navigation__next--title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
 * Swap sides — flip Previous / Next placement.
 * Default: Previous left, Next right. When enabled: Next left, Previous right,
 * with each half's alignment mirrored so the layout stays a clean reflection.
 * ----------------------------------------------------------------------- */
.elementor-post-navigation--swap-yes .elementor-post-navigation {
	flex-direction: row-reverse;
}

.elementor-post-navigation--swap-yes .elementor-post-navigation__prev {
	justify-content: flex-end;
	text-align: end;
}

.elementor-post-navigation--swap-yes .elementor-post-navigation__next {
	justify-content: flex-start;
	text-align: start;
}

.elementor-post-navigation--swap-yes .elementor-post-navigation__link__prev {
	align-items: flex-end;
}

.elementor-post-navigation--swap-yes .elementor-post-navigation__link__next {
	align-items: flex-start;
}

/* Screen-reader-only helper (mirrors Elementor's own utility). */
.elementor-screen-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
