.institutions-index-header {
	align-items: center;
	flex-direction: row;
}

.institutions-index-title-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-direction: row;
	flex-wrap: nowrap;
}

.institutions-index-title-wrap h1 {
	margin: 0;
}

.institutions-index-title-wrap .documents-count-badge {
	flex: 0 0 auto;
}

.links-conselhos {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 20px 10px;
}

.link-card {
	position: relative;
	background: #ffffff;
	border-radius: 16px;
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	width: 100%;
	min-height: 180px;
	border: 1px solid rgba(0, 0, 0, 0.03);
	box-shadow: 0 4px 6px -2px rgb(0 0 0 / 16%);
	overflow: hidden;

	&:hover {
		transform: translateY(-6px);
		box-shadow: 0 6px 10px -2px rgb(0 0 0 / 16%);
		border-color: rgba(79, 112, 89, 0.15);
	}

	&:active {
		transform: translateY(-0px);
		box-shadow: 0 4px 6px -2px rgb(0 0 0 / 16%);
	}

	&.conselho-inativo {
		position: relative;
		background-color: #fafafa;
		box-shadow: unset;

		.link-conselho .sigla-conselho {
			color: #4f7059;
			background-color: rgba(79, 112, 89, 0.1);
		}

		&::after {
			content: 'Conselho inativo';

			position: absolute;
			bottom: 10px;
			left: 50%;
			transform: translateX(-50%);

			font-size: 1rem;
			opacity: 1;
		}

		.link-conselho {

			.sigla-conselho {
				color: #4f7059;
				background-color: rgba(79, 112, 89, 0.1);
			}
		}
	}

	&.conselho-bloqueado {
		position: relative;
		opacity: 0.6;
		background-color: #d4d4d4;
		cursor: not-allowed;
		box-shadow: unset;

		&:hover {
			transform: initial;

			.link-conselho .sigla-conselho {
				color: #4f7059;
				background-color: rgba(79, 112, 89, 0.1);
				transform: translateY(-15px);
			}
		}

		&::before {
			content: '🔒';

			position: absolute;
			top: 50%;
			left: 50%;
			transform: translate(-50%, -50%);

			font-size: 6rem;
			opacity: 1;
		}

		.link-conselho {
			cursor: not-allowed;
			pointer-events: none;

			.sigla-conselho {
				color: #4f7059;
				background-color: rgba(79, 112, 89, 0.1);
				transform: translateY(-15px);
			}

			.titulo-conselho {
				display: none;
			}
		}
	}

	.link-conselho {
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		align-items: center;
		height: 100%;
		width: 100%;
		color: #333;
		text-decoration: none;
		padding: 35px 25px;

		.sigla-conselho {
			text-align: center;
			margin: 0 0 18px 0;
			color: #4f7059;
			background-color: rgba(79, 112, 89, 0.1);

			background-color: #4f7059;
			color: #ffffff;
			padding: 10px 24px;
			border-radius: 20px;
			font-weight: 700;
			font-size: 1.15rem;
			letter-spacing: 0.5px;
			transition: all 0.3s ease;
		}

		.titulo-conselho {
			font-size: 1.05rem;
			font-weight: 500;
			line-height: 1.5;
			width: 100%;
			color: #555;
			text-align: center;
			margin: 0;
			display: -webkit-box;
			-webkit-line-clamp: 3;
			line-clamp: 3;
			-webkit-box-orient: vertical;
			overflow: hidden;
		}
	}

	&:hover .link-conselho .sigla-conselho {
		transform: scale(1.05);
	}
}

.pages-search-empty {
	grid-column: 1 / -1;
	padding: 24px;
	text-align: center;
	color: #555;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 12px;
	box-shadow: 0 4px 6px -2px rgb(0 0 0 / 12%);
}
