/* Image Fan Carousel plugin - Scroll Timeline widget styles */

.ifc-timeline-wrap {
	--ifc-tl-line-width: 2px;
	--ifc-tl-line-color: #3a3d46;
	--ifc-tl-line-fill-color: #5b8def;
	--ifc-tl-speed: 150ms;
	--ifc-tl-circle-size: 44px;
	--ifc-tl-circle-gap: 8px;
	--ifc-tl-circle-border-width: 1px;
	--ifc-tl-circle-bg: #1b1d24;
	--ifc-tl-circle-border-color: #3a3d46;
	--ifc-tl-circle-color: #9a9daa;
	--ifc-tl-circle-bg-filled: #5b8def;
	--ifc-tl-circle-border-color-filled: #5b8def;
	--ifc-tl-circle-color-filled: #ffffff;
	--ifc-tl-content-gap: 28px;
	--ifc-tl-item-spacing: 48px;
	--ifc-tl-corner-size: 12px;
	--ifc-tl-corner-border-width: 2px;

	max-width: 100%;
}

.ifc-timeline {
	--ifc-tl-line-width: inherit;
	position: relative;
}

.ifc-timeline-items {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The track line running behind all circles */
.ifc-timeline-line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc( var( --ifc-tl-circle-size ) / 2 );
	width: var( --ifc-tl-line-width );
	background: var( --ifc-tl-line-color );
	transform: translateX( -50% );
	border-radius: var( --ifc-tl-line-width );
	overflow: hidden;
}

.ifc-timeline-line-fill {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 0%;
	background: var( --ifc-tl-line-fill-color );
	transition: height var( --ifc-tl-speed ) linear;
	will-change: height;
}

.ifc-timeline-item {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: var( --ifc-tl-content-gap );
}

.ifc-timeline-item:not( :last-child ) {
	margin-bottom: var( --ifc-tl-item-spacing );
}

.ifc-timeline-node {
	position: relative;
	z-index: 2;
	flex: 0 0 var( --ifc-tl-circle-size );
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var( --ifc-tl-circle-gap );
}

.ifc-timeline-circle {
	position: relative;
	width: var( --ifc-tl-circle-size );
	height: var( --ifc-tl-circle-size );
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var( --ifc-tl-circle-bg );
	border: var( --ifc-tl-circle-border-width ) solid var( --ifc-tl-circle-border-color );
	color: var( --ifc-tl-circle-color );
	overflow: hidden;
	flex-shrink: 0;
	transition: background-color var( --ifc-tl-speed ) linear,
		border-color var( --ifc-tl-speed ) linear,
		color var( --ifc-tl-speed ) linear;
}

/* Square node shape: sharp corners on the circle itself, plus 4 small
   corner brackets (viewfinder / focus-frame look) that switch to the
   filled color once the scroll line reaches this item. */
.ifc-tl-shape-square .ifc-timeline-circle {
	border-radius: 2px;
	overflow: visible;
}

.ifc-timeline-corner {
	display: none;
	position: absolute;
	width: var( --ifc-tl-corner-size );
	height: var( --ifc-tl-corner-size );
	border-color: var( --ifc-tl-circle-border-color );
	transition: border-color var( --ifc-tl-speed ) linear;
}

.ifc-tl-shape-square .ifc-timeline-corner {
	display: block;
}

.ifc-timeline-corner-tl {
	top: -1px;
	left: -1px;
	border-top: var( --ifc-tl-corner-border-width ) solid;
	border-left: var( --ifc-tl-corner-border-width ) solid;
}

.ifc-timeline-corner-tr {
	top: -1px;
	right: -1px;
	border-top: var( --ifc-tl-corner-border-width ) solid;
	border-right: var( --ifc-tl-corner-border-width ) solid;
}

.ifc-timeline-corner-bl {
	bottom: -1px;
	left: -1px;
	border-bottom: var( --ifc-tl-corner-border-width ) solid;
	border-left: var( --ifc-tl-corner-border-width ) solid;
}

.ifc-timeline-corner-br {
	bottom: -1px;
	right: -1px;
	border-bottom: var( --ifc-tl-corner-border-width ) solid;
	border-right: var( --ifc-tl-corner-border-width ) solid;
}

.ifc-timeline-item.ifc-is-filled .ifc-timeline-corner {
	border-color: var( --ifc-tl-circle-border-color-filled );
}

.ifc-timeline-circle img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ifc-timeline-circle svg,
.ifc-timeline-circle i {
	width: 45%;
	height: 45%;
	font-size: calc( var( --ifc-tl-circle-size ) * 0.4 );
	line-height: 1;
}

.ifc-timeline-circle-text {
	font-size: 0.85em;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* Filled state (line has scrolled past this circle) */
.ifc-timeline-item.ifc-is-filled .ifc-timeline-circle {
	background: var( --ifc-tl-circle-bg-filled );
	border-color: var( --ifc-tl-circle-border-color-filled );
	color: var( --ifc-tl-circle-color-filled );
}

/* "Border Only" fill style: keep the original background, only the
   border and icon/text color change once the line passes the circle. */
.ifc-tl-fill-border .ifc-timeline-item.ifc-is-filled .ifc-timeline-circle {
	background: var( --ifc-tl-circle-bg );
}

.ifc-timeline-content {
	flex: 1 1 auto;
	min-width: 0;
	padding-top: 2px;
}

.ifc-timeline-link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.ifc-timeline-date {
	font-size: 0.8em;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin-bottom: 4px;
}

.ifc-timeline-title {
	font-size: 1.15em;
	font-weight: 600;
	margin-bottom: 2px;
}

.ifc-timeline-subtitle {
	font-size: 0.95em;
	margin-bottom: 10px;
}

.ifc-timeline-bullets {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ifc-timeline-bullets li {
	position: relative;
	padding-left: 1.1em;
	font-size: 0.92em;
	line-height: 1.6;
}

.ifc-timeline-bullets li::before {
	content: "•";
	position: absolute;
	left: 0;
	top: 0;
}

@media ( max-width: 767px ) {
	.ifc-timeline-wrap {
		--ifc-tl-content-gap: 16px;
	}
}
