/* ==========================================================================
   Timeline Apoio19 Widget Styles
   ========================================================================== */

.timeline-apoio19__container {
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.timeline-apoio19__wrapper {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	width: 100%;
	box-sizing: border-box;
}

/* Colunas Responsivas */
.timeline-apoio19__left-side {
	flex: 0 0 50%;
	max-width: 50%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
}

.timeline-apoio19__right-side {
	flex: 1 1 0%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
}

/* Subtítulo e Título Principal */
.timeline-apoio19__subtitle {
	display: block;
	font-size: 16px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 8px;
}

.timeline-apoio19__main-title {
	display: block;
	font-size: 48px;
	font-weight: 700;
	line-height: 1.15;
	color: #FFFFFF;
	margin: 0 0 35px 0;
	text-transform: uppercase;
	letter-spacing: -0.5px;
}

/* Linha do Tempo (Barra de Anos) - Estrutura Estável */
.timeline-apoio19__bar-wrapper {
	position: relative;
	display: flex;
	align-items: flex-end;
	width: 100%;
	height: 65px;
	margin: 30px 0 35px 0;
	box-sizing: border-box;
}

.timeline-apoio19__axis-line {
	position: absolute;
	left: 0;
	bottom: 6px;
	width: 100%;
	height: 1px;
	background-color: rgba(255, 255, 255, 0.25);
	z-index: 1;
	pointer-events: none;
}

.timeline-apoio19__years-viewport {
	position: relative;
	flex: 1;
	height: 100%;
	overflow: hidden;
	z-index: 2;
	box-sizing: border-box;
}

.timeline-apoio19__years-track {
	position: relative; /* Garante offsetParent relativo ao próprio trilho */
	display: flex;
	align-items: flex-end;
	height: 100%;
	gap: 45px;
	padding-bottom: 22px;
	box-sizing: border-box;
	transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
	will-change: transform;
}

.timeline-apoio19__year-item {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	height: 40px;
	cursor: pointer;
	user-select: none;
	transition: all 0.3s ease;
	flex-shrink: 0;
}

.timeline-apoio19__year-text {
	font-size: 24px;
	font-weight: 600;
	line-height: 1;
	color: rgba(255, 255, 255, 0.6);
	transform-origin: left bottom;
	transition: color 0.35s ease, transform 0.35s ease, opacity 0.35s ease;
	white-space: nowrap;
}

.timeline-apoio19__year-item:hover .timeline-apoio19__year-text {
	color: rgba(255, 255, 255, 0.9);
}

.timeline-apoio19__dot-indicator {
	position: absolute;
	bottom: -22px;
	left: 0;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background-color: #FFFFFF;
	opacity: 0;
	transform: scale(0.3);
	transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
	z-index: 3;
}

/* Ano Ativo com Destaque via CSS Transform (sem alterar largura de layout) */
.timeline-apoio19__year-item.is-active .timeline-apoio19__year-text {
	color: #FFFFFF;
	font-weight: 700;
	transform: scale(1.3);
}

.timeline-apoio19__year-item.is-active .timeline-apoio19__dot-indicator {
	opacity: 1;
	transform: scale(1);
}

/* Setas de Navegação */
.timeline-apoio19__arrows {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: 25px;
	z-index: 10;
	flex-shrink: 0;
	padding-bottom: 16px;
}

.timeline-apoio19__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 50%;
	color: rgba(255, 255, 255, 0.85);
	cursor: pointer;
	outline: none;
	transition: all 0.25s ease;
	pointer-events: auto;
}

.timeline-apoio19__arrow svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	transition: stroke 0.25s ease;
	pointer-events: none;
}

.timeline-apoio19__arrow:hover:not(.is-disabled):not([disabled]) {
	color: #FFFFFF;
	background-color: rgba(255, 255, 255, 0.15);
	transform: scale(1.08);
}

.timeline-apoio19__arrow:active:not(.is-disabled):not([disabled]) {
	transform: scale(0.95);
}

.timeline-apoio19__arrow.is-disabled,
.timeline-apoio19__arrow[disabled] {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}

/* Conteúdo do Marco (Título & Descrição) - Grid Overlay anti-deslocamento */
.timeline-apoio19__content-wrapper {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
	width: 100%;
	min-height: 130px;
	align-items: start;
}

.timeline-apoio19__content-item {
	grid-area: 1 / 1 / 2 / 2;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
	pointer-events: none;
}

.timeline-apoio19__content-item.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.timeline-apoio19__item-title {
	font-size: 24px;
	font-weight: 600;
	line-height: 1.3;
	color: #FFFFFF;
	margin: 0 0 15px 0;
}

.timeline-apoio19__item-description {
	font-size: 15px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
}

.timeline-apoio19__item-description p {
	margin: 0 0 10px 0;
}

.timeline-apoio19__item-description p:last-child {
	margin-bottom: 0;
}

/* Imagem de Destaque com Transição Fade In / Fade Out - Grid Overlay */
.timeline-apoio19__image-wrapper {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
	width: 100%;
	height: 480px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.timeline-apoio19__image-item {
	grid-area: 1 / 1 / 2 / 2;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
	pointer-events: none;
	z-index: 1;
}

.timeline-apoio19__image-item.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 2;
}

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

/* Responsividade Mobile / Tablet */
@media (max-width: 767px) {
	.timeline-apoio19__wrapper {
		flex-direction: column !important;
		gap: 30px;
	}

	.timeline-apoio19__left-side,
	.timeline-apoio19__right-side {
		flex: 0 0 100% !important;
		max-width: 100% !important;
		width: 100%;
	}

	.timeline-apoio19__main-title {
		font-size: 32px;
		margin-bottom: 25px;
	}

	.timeline-apoio19__image-wrapper {
		height: 320px;
	}
}
