/* ==========================================================================
   Widget: Formação (texto e dados à esquerda, linha do tempo à direita)
   ========================================================================== */

.mr-edu {
	position: relative;
	padding: 5rem 1.5rem 6.5rem;
	background: var(--mr-white);
	font-family: var(--mr-font-body);
}

.mr-edu__inner {
	max-width: var(--mr-max-w);
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 3rem 5rem;
	align-items: start;
}

/* ---------- Coluna da esquerda ---------- */
/* a coluna estica até o fim da linha do tempo; o conteúdo gruda dentro dela e para onde ela termina */
.mr-edu__head { align-self: stretch; }
.mr-edu--sticky .mr-edu__head-inner { position: sticky; top: 7.5rem; }
.admin-bar .mr-edu--sticky .mr-edu__head-inner { top: 9.5rem; }

.mr-edu__eyebrow { display: block; margin-bottom: .9rem; }

.mr-edu .mr-edu__title {
	margin: 0 0 1rem;
	padding: 0;
	font-family: var(--mr-font-display);
	font-size: clamp(2.2rem, 4.4vw, 4rem);
	font-style: italic;
	font-weight: 400;
	font-variant-numeric: lining-nums;
	line-height: 1.05;
	color: var(--mr-purple);
	text-wrap: balance;
}
.mr-edu .mr-edu__title em,
.mr-edu .mr-edu__title strong { font-style: italic; font-weight: 500; color: var(--mr-purple-mid); }

.mr-edu .mr-edu__lead {
	max-width: 44ch;
	margin: 0 0 1.75rem;
	font-size: 1.05rem;
	line-height: 1.55;
	color: var(--mr-text-muted);
}

/* ---------- Foto em balão (abaixo da linha do tempo) ---------- */
.mr-edu__photo {
	margin-top: 1.75rem;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--mr-lavender);
	border-radius: 1.5rem;
	box-shadow: 0 10px 44px rgba(83, 32, 107, .12);
}
.mr-edu .mr-edu__photo-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

/* a linha do tempo acompanha a rolagem enquanto a coluna da esquerda (mais alta, com a foto) passa */
.mr-edu__main { align-self: stretch; }
.mr-edu.mr-edu--sticky .mr-edu__timeline { position: sticky; top: 7.5rem; }
.admin-bar .mr-edu.mr-edu--sticky .mr-edu__timeline { top: 9.5rem; }

/* ---------- Cards de dados (2 colunas) ---------- */
.mr-edu .mr-edu__facts {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: .75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mr-edu .mr-edu__fact {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin: 0;
	padding: 1.1rem 1.15rem 1.2rem;
	background: var(--mr-lavender-soft);
	border: 1.5px solid var(--mr-lavender);
	border-radius: 1.1rem;
}

.mr-edu__fact-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin-bottom: .85rem;
	border-radius: 50%;
	background: var(--mr-white);
	color: var(--mr-purple);
	font-size: 16px;
}
.mr-edu__fact-icon i { line-height: 1; }
.mr-edu__fact-icon svg { width: 17px; height: 17px; fill: currentColor; }

.mr-edu__fact-value {
	font-family: var(--mr-font-display);
	font-size: 1.6rem;
	font-weight: 600;
	font-variant-numeric: lining-nums;
	line-height: 1.1;
	color: var(--mr-purple);
}

.mr-edu__fact-label {
	margin-top: .35rem;
	font-size: .78rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--mr-text-muted);
}

/* ---------- Linha do tempo (direita) ---------- */
.mr-edu .mr-edu__timeline {
	position: relative;
	margin: 0;
	padding: 0 0 0 2.25rem;
	list-style: none;
}

/* linha vertical */
.mr-edu__timeline::before {
	content: '';
	position: absolute;
	top: .6rem;
	bottom: .6rem;
	left: 7px;
	width: 2px;
	border-radius: 2px;
	background: linear-gradient(to bottom, var(--mr-purple-mid), var(--mr-lavender));
}

.mr-edu .mr-edu__item {
	position: relative;
	margin: 0 0 1rem;
	padding: 1.4rem 1.6rem 1.5rem;
	background: var(--mr-white);
	border: 1.5px solid var(--mr-border);
	border-radius: 1.25rem;
	transition: border-color .2s, box-shadow .2s;
}
.mr-edu .mr-edu__item:last-child { margin-bottom: 0; }
.mr-edu .mr-edu__item:hover { border-color: var(--mr-lavender); box-shadow: var(--mr-shadow); }

/* marcador sobre a linha */
.mr-edu__dot {
	position: absolute;
	top: 1.75rem;
	left: calc(-2.25rem + 1px);
	width: 20px;
	height: 20px;
	box-sizing: border-box;
	border: 3px solid var(--mr-white);
	border-radius: 50%;
	background: var(--mr-purple);
	box-shadow: 0 0 0 2px var(--mr-lavender);
	transform: translateX(-3px);
}

.mr-edu__period {
	display: inline-block;
	margin-bottom: .55rem;
	padding: .22rem .7rem;
	border-radius: 100px;
	background: var(--mr-lavender);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--mr-purple);
}

.mr-edu .mr-edu__item-title {
	margin: 0;
	padding: 0;
	font-family: var(--mr-font-display);
	font-size: 1.55rem;
	font-weight: 500;
	line-height: 1.2;
	color: var(--mr-purple);
}

.mr-edu .mr-edu__place {
	margin: .3rem 0 0;
	font-size: .92rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--mr-purple-mid);
}

.mr-edu .mr-edu__item-text {
	margin: .6rem 0 0;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--mr-text-muted);
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 960px) {
	.mr-edu { padding: 4rem 1.25rem 5rem; }
	.mr-edu__inner { grid-template-columns: 1fr; gap: 2.5rem; }
	.mr-edu--sticky .mr-edu__head-inner,
	.admin-bar .mr-edu--sticky .mr-edu__head-inner { position: static; }
	.mr-edu.mr-edu--sticky .mr-edu__timeline,
	.admin-bar .mr-edu.mr-edu--sticky .mr-edu__timeline { position: relative; top: auto; }
	.mr-edu .mr-edu__lead { max-width: 56ch; }
}

@media (max-width: 640px) {
	.mr-edu { padding: 3.5rem 1rem 4.5rem; }
	.mr-edu .mr-edu__timeline { padding-left: 1.9rem; }
	.mr-edu__dot { left: calc(-1.9rem + 1px); }
	.mr-edu .mr-edu__item { padding: 1.2rem 1.15rem 1.3rem; }
	.mr-edu .mr-edu__item-title { font-size: 1.35rem; }
}
