/* BIQ — Notícias */
.biq-news,
.biq-news * {
	box-sizing: border-box;
}

.biq-news {
	--biq-blue: #20aae0;
	--biq-blue-soft: #5abfe6;
	--biq-mint: #8fd1c4;
	--biq-text: #181818;
	--biq-muted: #5f5f5f;
	--biq-border: #dedede;
	--biq-card-hover: #5e9cff;
	--biq-bg: #fff;
	font-family: inherit;
	color: var(--biq-text);
	background: var(--biq-bg);
}

.biq-news a {
	color: inherit;
	text-decoration: none !important;
}

.biq-news-shell {
	width: min(75.5vw, 1120px);
	margin-inline: auto;
}

/* Homepage ------------------------------------------------------- */
.biq-news-home {
	padding: clamp(36px, 4.2vw, 58px) 0 clamp(28px, 4vw, 54px);
	background: #fff;
}

.biq-news-home-title {
	margin: 0 0 clamp(28px, 3vw, 40px);
	font-size: clamp(23px, 1.75vw, 28px);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	letter-spacing: -0.02em;
}

.biq-news-home-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(24px, 2.2vw, 32px);
}

.biq-news-home-card {
	min-width: 0;
}

.biq-news-home-media {
	display: block;
	aspect-ratio: 1.5 / 1;
	overflow: hidden;
	background: #f3f4f5;
}

.biq-news-home-media img,
.biq-news-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .24s ease;
}

.biq-noticias-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #eef3f4 0%, #f8f8f8 100%);
}

.biq-news-home-copy {
	padding: 17px 8px 0;
}

.biq-news-home-copy h3 {
	margin: 0 0 7px;
	font-size: clamp(15px, 1.05vw, 18px);
	font-weight: 500;
	line-height: 1.13;
}

.biq-news-home-copy h3 a:hover {
	color: var(--biq-blue);
}

.biq-news-home-copy p {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	margin: 0;
	color: #575757;
	font-size: clamp(12px, .88vw, 14px);
	font-weight: 300;
	line-height: 1.16;
}

.biq-news-home-more {
	display: flex;
	justify-content: center;
	margin-top: clamp(24px, 2.8vw, 36px);
}

.biq-news-home-more a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 72px;
	min-height: 38px;
	padding: 10px 18px;
	background: var(--biq-blue);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	transition: filter .2s ease, transform .2s ease;
}

.biq-news-home-more a:hover {
	filter: brightness(.93);
	transform: translateY(-1px);
}

/* Página / hero -------------------------------------------------- */
.biq-news-page {
	margin: 0;
	padding: 0;
	max-width: none;
}

.biq-news-hero {
	width: 100%;
	height: clamp(230px, 22.55vw, 360px);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.biq-news-intro {
	padding: clamp(34px, 3.7vw, 54px) 20px clamp(31px, 3.2vw, 46px);
	text-align: center;
	background: #fff;
}

.biq-news-intro-inner {
	max-width: 760px;
	margin-inline: auto;
}

.biq-news-intro h1 {
	margin: 0 0 24px;
	font-size: clamp(21px, 1.6vw, 28px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.biq-news-intro-lead {
	max-width: 700px;
	margin: 0 auto;
	color: var(--biq-blue);
	font-size: clamp(14px, 1.1vw, 17px);
	font-weight: 700;
	line-height: 1.23;
}

.biq-news-intro-sub {
	margin: 14px auto 0;
	color: #565656;
	font-size: clamp(11px, .78vw, 13px);
	font-weight: 300;
	line-height: 1.35;
}

.biq-news-gradient-line {
	height: 11px;
	background: linear-gradient(90deg, #22afe3 0%, #69c3d3 48%, #99d4c8 100%);
}

/* Filtros -------------------------------------------------------- */
.biq-news-listing {
	padding: clamp(24px, 2.2vw, 36px) 0 clamp(50px, 6vw, 90px);
	background: #fff;
}

.biq-news-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: clamp(24px, 2.6vw, 34px);
}

.biq-news-filters {
	display: flex;
	align-items: center;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.biq-news-filters::-webkit-scrollbar {
	display: none;
}

.biq-news-filter {
	position: relative;
	flex: 0 0 auto;
	padding: 12px 14px;
	border-left: 1px solid #7fd2f2;
	color: #4c4c4c;
	font-size: 12px;
	font-weight: 300;
	line-height: 1;
	white-space: nowrap;
}

.biq-news-filter:last-child {
	border-right: 1px solid #7fd2f2;
}

.biq-news-filter:hover,
.biq-news-filter.is-active {
	color: var(--biq-blue);
}

.biq-news-filter.is-active {
	font-weight: 600;
}

.biq-news-search {
	display: flex;
	align-items: center;
	flex: 0 0 180px;
	border-bottom: 1px solid var(--biq-blue);
}

.biq-news-search input {
	width: 100%;
	min-width: 0;
	padding: 9px 4px 8px;
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	color: #555;
	font: inherit;
	font-size: 12px;
	font-style: italic;
}

.biq-news-search input::placeholder {
	color: #c8c8c8;
	opacity: 1;
}

.biq-news-search button {
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--biq-blue);
	cursor: pointer;
}

.biq-news-search button svg {
	width: 18px;
	height: 18px;
}

/* Grelha --------------------------------------------------------- */
.biq-news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px 16px;
}

.biq-news-card {
	display: flex;
	min-width: 0;
	min-height: 100%;
	flex-direction: column;
	padding: 10px;
	border: 1px solid var(--biq-border);
	background: #fff;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.biq-news-card:hover,
.biq-news-card:focus-within {
	border-color: var(--biq-card-hover);
	box-shadow: 0 0 0 1px var(--biq-card-hover) inset;
}

.biq-news-card-media {
	display: block;
	aspect-ratio: 1.5 / 1;
	overflow: hidden;
	background: #f1f3f4;
}

.biq-news-card-body {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 10px 6px 26px;
}

.biq-news-card time {
	margin-bottom: 10px;
	color: var(--biq-blue-soft);
	font-size: 8px;
	font-weight: 300;
	line-height: 1.2;
}

.biq-news-card h2 {
	margin: 0 0 8px;
	font-size: clamp(11px, .83vw, 14px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.015em;
}

.biq-news-card h2 a:hover {
	color: var(--biq-blue);
}

.biq-news-card p {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	margin: 0;
	color: #5b5b5b;
	font-size: clamp(9px, .69vw, 11.5px);
	font-weight: 300;
	line-height: 1.18;
}

.biq-news-card-arrow {
	position: absolute;
	right: 2px;
	bottom: 0;
	display: block;
	width: 15px;
	height: 15px;
	color: var(--biq-blue);
}

.biq-news-card-arrow svg {
	display: block;
	width: 100%;
	height: 100%;
}

.biq-news-card:hover .biq-news-card-media img,
.biq-news-card:focus-within .biq-news-card-media img,
.biq-news-home-card:hover .biq-news-home-media img {
	transform: scale(1.02);
}

/* Paginação ------------------------------------------------------ */
.biq-news-pagination {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 22px;
	margin-top: 34px;
	padding-right: 8px;
	color: #575757;
	font-size: 12px;
}

.biq-news-page-number,
.biq-news-page-dots,
.biq-news-last-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 12px;
	min-height: 24px;
}

.biq-news-page-number:hover,
.biq-news-page-number.is-current {
	color: var(--biq-blue);
}

.biq-news-page-number.is-current {
	font-weight: 700;
}

.biq-news-last-page:hover {
	color: var(--biq-blue);
}

.biq-news-empty {
	padding: 60px 20px;
	border: 1px solid var(--biq-border);
	text-align: center;
}

.biq-news-empty h2 {
	margin: 0 0 10px;
	font-size: 20px;
}

.biq-news-empty p {
	margin: 0;
	color: var(--biq-muted);
	font-size: 13px;
}

/* Compatibilidade com temas ------------------------------------ */
.biq-news-page .entry-header,
.biq-news-page .page-header,
.biq-news-page + .sidebar {
	display: none;
}

/* Responsivo ----------------------------------------------------- */
@media (max-width: 980px) {
	.biq-news-shell {
		width: min(88vw, 860px);
	}

	.biq-news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.biq-news-home-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.biq-news-home-card:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		max-width: calc(50% - 12px);
		justify-self: center;
	}
}

@media (max-width: 720px) {
	.biq-news-shell {
		width: calc(100% - 32px);
	}

	.biq-news-hero {
		height: 220px;
	}

	.biq-news-toolbar {
		align-items: stretch;
		flex-direction: column;
		gap: 14px;
	}

	.biq-news-search {
		flex-basis: auto;
		width: min(100%, 240px);
		margin-left: auto;
	}

	.biq-news-grid,
	.biq-news-home-grid {
		grid-template-columns: 1fr;
	}

	.biq-news-home-card:last-child:nth-child(odd) {
		grid-column: auto;
		max-width: none;
	}

	.biq-news-home-copy {
		padding-inline: 0;
	}

	.biq-news-pagination {
		justify-content: center;
		gap: 16px;
		padding-right: 0;
	}
}

@media (max-width: 440px) {
	.biq-news-filter {
		padding-inline: 11px;
		font-size: 11px;
	}

	.biq-news-search {
		width: 100%;
	}

	.biq-news-pagination {
		flex-wrap: wrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	.biq-news *,
	.biq-news *::before,
	.biq-news *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}
