/* ==========================================================================
   Horários Acadêmicos — Front-end
   ========================================================================== */

.ha-horarios-wrap {
	margin-top: 0.5rem;
}

.ha-horarios-intro {
	font-size: 1rem;
	color: #4b5563;
}

.ha-horarios-intro p {
	margin-bottom: 0;
}

/* Cards das seções ------------------------------------------------------ */

.ha-card {
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ha-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 0.75rem 1.5rem rgba(13, 71, 161, 0.12) !important;
}

.ha-card-header {
	background: linear-gradient(135deg, #0d47a1 0%, #1565c0 55%, #1e88e5 100%);
	color: #fff;
}

.ha-card-header .ha-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	flex-shrink: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	font-size: 1.15rem;
	line-height: 1;
}

.ha-card-titulo {
	font-size: 1.02rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.ha-badge-semestre {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.35);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	padding: 0.4em 0.7em;
}

/* Itens (links para os PDFs) -------------------------------------------- */

.ha-item {
	border-bottom: 1px solid #eef0f3;
	background-color: #fff;
}

.ha-item:last-child {
	border-bottom: 0;
}

.entry-content .ha-item-link,
.ha-item-link {
	text-decoration: none;
	color: inherit;
	position: relative;
	transition: background-color 0.15s ease, padding-left 0.15s ease;
}

.ha-item-link::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background-color: transparent;
	transition: background-color 0.15s ease;
}

.entry-content .ha-item-link:hover,
.entry-content .ha-item-link:focus-visible,
.ha-item-link:hover,
.ha-item-link:focus-visible {
	background-color: #f4f7fb;
	text-decoration: none;
	color: inherit;
	padding-left: calc(1rem + 3px);
	outline: none;
}

.ha-item-link:hover::before,
.ha-item-link:focus-visible::before {
	background-color: #1565c0;
}

.ha-item-titulo {
	display: block;
	font-weight: 600;
	color: #1f2937;
}

.ha-item-link:hover .ha-item-titulo,
.ha-item-link:focus-visible .ha-item-titulo {
	color: #0d47a1;
}

.ha-item-meta {
	font-size: 0.8rem;
	color: #6b7280;
	line-height: 1.4;
	margin-top: 0.2rem;
}

.ha-item-icone {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	flex-shrink: 0;
	border-radius: 50%;
	background: #e8f0fb;
	color: #1565c0;
	font-size: 1rem;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.ha-item-link:hover .ha-item-icone,
.ha-item-link:focus-visible .ha-item-icone {
	background-color: #1565c0;
	color: #fff;
	transform: scale(1.06);
}

/* Rodapé do card -------------------------------------------------------- */

.ha-card-count {
	font-size: 0.78rem;
	color: #9aa3ad;
}

@media (prefers-reduced-motion: reduce) {
	.ha-card,
	.ha-card:hover,
	.ha-item-link,
	.ha-item-link:hover,
	.ha-item-icone,
	.ha-item-link:hover .ha-item-icone {
		transition: none;
		transform: none;
	}
}