/**
 * Child-Theme NEWS PAGE Style
 *
 * Color Set
 *   Vermelho:   #BA2229
 *   Preto:      #1A1919
 *
 * Shortcode: [bglbc_newspage]
 */

/* =======================================
	FONTES
 ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');




/* =======================================
	CORES
 ======================================== */
:root {
	--the-red: #BA2229;
	--the-black: #1A1919;
	--the-white: #FFFFFF;
	--the-light-gray: #f0f0f0;
	--the-medium-gray: #999999;
	--the-dark-gray: #666666;
}




/* =======================================
   LAYOUT BASE
======================================== */
.bglbc-newspage-main {
	display: flex;
	max-width: 1579px;
	width: 100%;
	margin: 0 auto;
	column-gap: 3.2rem;
}

/* =======================================
   SIDEBAR
======================================== */
.bglbc-np-sidebar {
	width: 100%;
	max-width: 320px;
	flex-shrink: 0;
	position: sticky;
	top: 18rem;
	margin-top: 6rem;
	align-self: flex-start;
}

.bglbc-np-head {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.6rem;
}

.bglbc-np-filtros-titulo {
	font-family: "Exo 2", sans-serif!important;
	font-weight: 700;
	font-size: 1.4rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.bglbc-np-filtros-limpar {
	font-family: "Exo 2", sans-serif!important;
	text-transform: uppercase;
	background: transparent!important;
	border: none!important;
	color: var(--the-black)!important;
	font-size: 1.2rem!important;
	cursor: pointer!important;
	padding: 0!important;
	transition: all 0.3s ease;
}

.bglbc-np-filtros-limpar:hover {
	color: var(--the-red)!important;
}

/* =======================================
   FILTROS APLICADOS
======================================== */
.bglbc-np-filtrosaplicados {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	align-items: center;
	margin-bottom: 20px;
}

.bglbc-np-filtrosaplicados:empty {
	display: none;
}

.bglbc-np-filtro-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	background: #f5f5f5;
	padding: 0.4rem 0.8rem;
	font-size: 1.2rem;
	border-radius: 0;
}

.bglbc-np-filtro-tag-remove {
	background: white !important;
	border: 1px solid #1A1919 !important;
	border-radius: 50% !important;
	cursor: pointer !important;
	font-weight: 700;
	font-size: 0.8rem;
	line-height: 0;
	width: 1.4rem !important;
	height: 1.4rem !important;
	min-width: 1.4rem !important;
	max-width: 1.4rem !important;
	min-height: 1.4rem !important;
	max-height: 1.4rem !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: #1A1919 !important;
	transition: background 0.3s ease;
	padding: 0 !important;
	margin: 0;
	flex-shrink: 0;
	aspect-ratio: 1 / 1;
	box-sizing: border-box !important;
}

.bglbc-np-filtro-tag-remove:hover {
	background: #BA2229 !important;
	color: #fff !important;
	border-color: #BA2229 !important;
}

/* =======================================
   CALENDÁRIO - TOGGLE
======================================== */
.bglbc-np-filtros-calendario {
	border: 1px solid #E5E5E5;
	background: #fff;
	border-radius: 0;
}

.bglbc-np-f-cal-toggler {
	font-family: "Exo 2", sans-serif!important;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.6rem;
	font-weight: 400;
	font-size: 1.6rem;
	cursor: pointer;
	user-select: none;
	background: #fff;
}

.bglbc-np-f-cal-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
	transform: rotate(90deg);
}

.bglbc-np-f-cal-arrow svg {
	width: 24px;
	height: 24px;
}

.bglbc-np-filtros-calendario.open .bglbc-np-f-cal-arrow {
	transform: rotate(-90deg);
}

/* =======================================
   CALENDÁRIO - CONTEÚDO
======================================== */
.bglbc-np-f-calbox {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.bglbc-np-filtros-calendario.open .bglbc-np-f-calbox {
	max-height: 500px;
}

/* Selector de Ano */
.bglbc-np-f-cal-selector {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.2rem 1.6rem;
	background: #fff;
	border-bottom: 1px solid #E5E5E5;
}

.bglbc-np-f-cal-previousyear,
.bglbc-np-f-cal-nextyear {
	display: flex;
	align-items: center;
	justify-content: center;

	background: white!important;
	color: var(--the-black)!important;

	width: 16px!important;
	height: 16px!important;
	padding: 2px!important;

	border: 1px solid var(--the-black)!important;
	border-radius: 50%!important;

	cursor: pointer;

	transition: opacity 0.3s ease;
}

.bglbc-np-f-cal-previousyear:hover,
.bglbc-np-f-cal-nextyear:hover {
	border: 1px solid var(--the-red)!important;
	color: var(--the-red)!important;
}

.bglbc-np-f-cal-previousyear svg,
.bglbc-np-f-cal-nextyear svg {
	width: 20px;
	height: 20px;
}

.bglbc-np-f-cal-year {
	font-family: "Exo 2", sans-serif!important;
	font-weight: 700;
	font-size: 1.6rem;
}

/* Grelha de Meses */
.bglbc-np-f-calmeses {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	background: #fff;
}

.bglbc-np-f-cal-mes {
	font-family: "Exo 2", sans-serif!important;
	background: #fff !important;
	border: none !important;
	border-top: 1px solid #E5E5E5 !important;
	border-right: 1px solid #E5E5E5 !important;
	border-radius: 0 !important;
	padding: 1.4rem 1.2rem;
	font-size: 1.4rem;
	font-weight: 400;
	color: #BA2229 !important;
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease;
}

.bglbc-np-f-cal-mes:nth-child(2n) {
	border-right: none !important;
}

.bglbc-np-f-cal-mes:hover {
	background: #f5f5f5 !important;
	color: var(--the-red)!important;
}

.bglbc-np-f-cal-mes.active {
	background: #BA2229 !important;
	color: #fff !important;
}

/* =======================================
   MAIN
======================================== */
.bglbc-np-main {
	flex: 1 1 0%;
	min-width: 0;
	width: calc(100vw - 320px - 3.2rem);
}

/* =======================================
   CATEGORIAS
======================================== */
.bglbc-np-categorias {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 7.3rem;
}

.bglbc-np-cat-btn {
	font-family: "Exo 2", sans-serif;
	border-radius: 0!important;
	padding: 0.4rem 2rem !important;
	font-size: 1.1rem;
	font-weight: 600!important;
	text-transform: uppercase;
	transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.bglbc-np-cat-btn:hover,
.bglbc-np-cat-btn.active {
	background: #1A1919;
	color: #fff;
}

/* =======================================
   ARTIGOS - GRID
======================================== */
.bglbc-np-artigos {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	column-gap: 3.2rem !important;
	row-gap: 6.4rem !important;
	margin-bottom: 4.8rem;
	width: 100% !important;
	min-width: 100% !important;
	box-sizing: border-box;
}

/* =======================================
   CARD - ARTIGO
======================================== */
.bglbc-np-umartigo {
	display: flex;
	flex-direction: column;
}

.bglbc-np-featuredimage {
	margin-bottom: 1.6rem;
	overflow: hidden;
	max-width: 370px;
	width: 100%;
	height: 250px;
}

.bglbc-np-featuredimage img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: scale-down;
	object-position: left top;
}

.bglbc-np-ua-meta {
	display: flex;
	flex-direction: column;
	align-items: start ;
	margin-bottom: 1.6rem;
}

.bglbc-np-uam-data {
	font-family: "Exo 2", sans-serif;
	font-size: 1.2rem;
	color: var(--the-dark-gray)!important;
	margin-bottom: 4px;
}

.bglbc-np-uam-categoria {
	font-family: "Exo 2", sans-serif;
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.3rem!important;
	color: #ffffff;
	background-color: #ba2229;
	padding: 0.6rem 2rem;
	margin-right: 1.6rem;
	text-transform: uppercase;
	width: fit-content;
}

.bglbc-np-uam-titulo {
	font-family: "Exo 2", sans-serif;
	font-weight: 500;
	font-size: 2.4rem;
	line-height: 3.2rem;
	margin-bottom: 3.2rem;
	flex-grow: 1;
}

.bglbc-np-uam-titulo a,
.bglbc-np-uam-titulo a:hover {
	font-family: "Exo 2", sans-serif;
	font-weight: 600;
	font-size: 2.4rem;
	line-height: 3.2rem;
	text-decoration: none;
	line-height: 1.4;
	transition: color 0.3s ease;
}

.bglbc-np-uam-titulo a {
	color: #1A1919;
}

.bglbc-np-uam-titulo a:hover {
	color: #BA2229;
}

.bglbc-np-uam-sabermais {
	margin-top: auto;
}

body .bglbc-np-uam-sabermais .btn-saber-mais {
	font-family: "Exo 2", sans-serif;
	display: inline-block;
	color: var(--the-black)!important;
	font-size: 1.2rem!important;
	font-weight: 600!important;
	text-decoration: none!important;
	text-transform: uppercase;
	line-height: 16px;
	position: relative;
	border-bottom: 1px solid var(--the-red);
	transition: all 0.3s ease!important;
}

body .bglbc-np-uam-sabermais .btn-saber-mais:hover {
	color: var(--the-red)!important;
	border-bottom: 1px solid var(--the-black);
	font-size: 1.2rem!important;
	transition: all 0.3s ease!important;
}

/* =======================================
   MENSAGEM SEM ARTIGOS
======================================== */
.bglbc-np-mensagem-semartigos {
	grid-column: 1 / -1;
	text-align: center;
	padding: 4.8rem 2rem;
	min-height: 400px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.bglbc-np-ms-titulo {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: #1A1919;
}

.bglbc-np-ms-texto {
	font-size: 1.4rem;
	color: #666;
}

.bglbc-np-ms-subtexto {
	display: block;
	margin-top: 0.5rem;
	font-size: 1.2rem;
}

/* =======================================
   CONTADOR E BARRA DE PROGRESSO
======================================== */
.bglbc-np-counter {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.bglbc-np-counter-txt {
	font-size: 1.4rem;
	color: #1A1919;
	width: fit-content;
}

.bglbc-np-counter-barra {
	width: 50rem;
	max-width: 100%;
	height: 1rem;
	background: #E5E5E5;
	margin-top: 2.4rem;
	overflow: hidden;
}

.bglbc-np-counter-barra-progress {
	height: 100%;
	background: #1A1919;
	transition: width 0.3s ease;
}

.bglbc-np-counter-load-more__button {
	margin-top: 5.6rem;
	background-color: #BA2229;
	color: #fff;
	padding: 1.7rem 2.7rem;
	min-width: 37rem;
	text-align: center;
	font-size: 1.4rem;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: background-color 0.3s ease;
}

.bglbc-np-counter-load-more__button:hover {
	background-color: #1A1919;
}

/* =======================================
   RESPONSIVO
======================================== */

/* Portátil */
@media (max-width: 1366px) {
	.bglbc-np-sidebar {
		max-width: 260px;
	}

	.bglbc-np-artigos {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

/* Tablet Landscape */
@media (max-width: 1200px) {
	.bglbc-np-sidebar {
		display: none;
	}

	.bglbc-newspage-main {
		max-width: 100%;
	}

	.bglbc-np-filtros-calendario {
		margin-bottom: 7.3rem;
	}
}

/* Tablet Portrait */
@media (max-width: 1024px) {
	.bglbc-np-artigos {
		column-gap: 2.4rem !important;
		row-gap: 4.8rem !important;
	}
}

/* Mobile Landscape */
@media (max-width: 880px) {
	.bglbc-np-artigos {
		column-gap: 1.6rem !important;
		row-gap: 4rem !important;
	}

	.bglbc-np-uam-titulo a {
		font-size: 2rem;
		line-height: 2.8rem;
	}

	.bglbc-np-categorias {
		gap: 0.8rem;
		margin-bottom: 5rem;
	}
}

/* Mobile Portrait */
@media (max-width: 767px) {
	.bglbc-np-artigos {
		grid-template-columns: 1fr !important;
		row-gap: 4rem !important;
	}

	.bglbc-np-featuredimage {
		max-width: 100%;
		height: auto;
		aspect-ratio: 3 / 2;
	}

	.bglbc-np-uam-titulo a,
	.bglbc-np-uam-titulo a:hover {
		font-size: 2rem;
		line-height: 2.6rem;
	}

	.bglbc-np-cat-btn {
		padding: 0.4rem 1.4rem !important;
		font-size: 1rem;
	}

	.bglbc-np-counter-load-more__button {
		min-width: auto;
		width: 100%;
		padding: 1.4rem 2rem;
	}
}

/* Tablet - 2 colunas */
/* REMOVIDO - conflitava com novas queries */

/* Mobile - 1 coluna */
/* REMOVIDO - conflitava com novas queries */
