/* =========================================================
   MENU PRINCIPAL — CORREÇÃO DEFINITIVA DE CENTRALIZAÇÃO
========================================================= */
.main-navigation {
	width: 100%;
	text-align: center !important;
}

.main-navigation > div,
.main-navigation .menu-menu-container,
.main-navigation .nav-menu,
.main-navigation ul.menu {
	width: 100%;
	text-align: center !important;
}

.main-navigation ul.menu {
	display: inline-block !important;
	margin: 0 auto !important;
	padding: 0 !important;
	max-width: 100%;
	list-style: none;
	vertical-align: top;
}

.main-navigation ul.menu > li {
	display: inline-block !important;
	float: none !important;
	vertical-align: middle;
	margin: 0 8px !important;
	position: relative;
}

.main-navigation a {
	display: inline-block;
	font-size: 14.5px !important;
	color: #007C91 !important;
	text-decoration: none;
	font-weight: 600 !important;
	transition: color .3s ease, border-bottom .3s ease;
	white-space: nowrap;
}

.main-navigation a:hover {
	color: #00A0C6 !important;
	border-bottom: 2px solid #00A0C6 !important;
}

.main-navigation .current-menu-item > a {
	color: #005d73 !important;
	border-bottom: 2px solid #005d73 !important;
}

/* =========================================================
   SUBMENU GERAL — DESKTOP
========================================================= */
.main-navigation ul ul.sub-menu {
	min-width: 260px !important;
	max-width: 280px !important;
	padding: 10px 0 !important;
	background-color: #ffffff !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
	white-space: normal !important;
	box-sizing: border-box !important;
	z-index: 9999 !important;
	text-align: left !important;
}

.main-navigation ul ul.sub-menu li {
	display: block !important;
	margin: 0 !important;
}

.main-navigation ul ul.sub-menu li a {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 14px !important;
	padding: 6px 16px !important;
	color: #007C91 !important;
	text-align: left !important;
	line-height: 1.4 !important;
	white-space: normal !important;
	word-break: normal !important;
	overflow-wrap: break-word !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

.main-navigation ul ul.sub-menu li a:hover {
	color: #00A0C6 !important;
	background-color: #f5f5f5 !important;
}

/* =========================================================
   MENU PRINCIPAL — MOBILE
========================================================= */
@media (max-width: 768px) {
	.main-navigation {
		text-align: center !important;
	}
	
	.main-navigation ul.menu {
		display: block !important;
		width: 100%;
		margin: 0 auto !important;
		padding: 0 !important;
		text-align: center !important;
	}
	
	.main-navigation ul.menu > li {
		display: inline-block !important;
		float: none !important;
		margin: 0 6px 8px !important;
		vertical-align: top;
		position: relative;
	}
	
	.main-navigation a {
		display: inline-block !important;
		font-size: 14px !important;
		line-height: 1.3 !important;
		padding: 4px 6px !important;
		white-space: nowrap !important;
	}
	
	/* Submenus fechados por padrão */
	.main-navigation ul ul.sub-menu {
		display: none !important;
		position: absolute !important;
		left: 50% !important;
		transform: translateX(-50%) !important;
		top: 100% !important;
		min-width: 240px !important;
		max-width: 280px !important;
		background: #fff !important;
		box-shadow: 0 2px 6px rgba(0,0,0,0.12) !important;
		padding: 10px 0 !important;
		z-index: 9999 !important;
		text-align: left !important;
	}
	
	/* Abrir submenu quando o tema marcar o item como ativo/focado */
	.main-navigation li:hover > ul.sub-menu,
		.main-navigation li.focus > ul.sub-menu,
		.main-navigation li.toggled-on > ul.sub-menu,
		.main-navigation li.menu-item-has-children.toggled-on > ul.sub-menu,
		.main-navigation li.current-menu-ancestor > ul.sub-menu {
		display: block !important;
	}
	
	.main-navigation ul ul.sub-menu li {
		display: block !important;
		margin: 0 !important;
	}
	
	.main-navigation ul ul.sub-menu li a {
		display: block !important;
		font-size: 14px !important;
		padding: 6px 16px !important;
		text-align: left !important;
		white-space: normal !important;
		line-height: 1.4 !important;
	}
	
	/* Não esconder o toggle nativo do tema */
	.menu-toggle,
		button.menu-toggle {
		display: none !important;
	}
}

/* =========================================================
   4) IMAGEM DO CABEÇALHO
   Objetivo:
   - inserir a arte do cabeçalho acima do menu
========================================================= */
body::before {
	content: "";
	display: block;
	width: 100%;
	height: 110px;
	background-image: url('https://aprendendobio.com.br/wp-content/uploads/2025/05/header-x-7.png');
	background-repeat: no-repeat;
	background-position: center top;
	background-size: contain;
	margin-bottom: 0;
	padding-bottom: 0;
}

/* =========================================================
   5) AJUSTES DE ESPAÇAMENTO DO CABEÇALHO
   Objetivo:
   - aproximar melhor cabeçalho e navegação
   - esconder utility bar, se existir
========================================================= */
.site-header {
	padding-top: 0 !important;
	margin-top: -20px !important;
	background-color: transparent !important;
	border: none !important;
}

.branding-container {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.utility-container {
	display: none !important;
}

/* =========================================================
   6) MENU LATERAL (WIDGET NAV MENU)
   Objetivo:
   - deixar o menu lateral mais compacto e discreto
========================================================= */
.widget_nav_menu ul.menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.widget_nav_menu ul.menu li {
	margin-bottom: 2px;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.2;
}

.widget_nav_menu ul.menu li a {
	display: block;
	padding: 4px 6px;
	color: #007C91 !important;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	border-radius: 3px;
	transition: all .2s ease;
}

.widget_nav_menu ul.menu li a:hover {
	color: #00A0C6 !important;
	background-color: #f5f5f5;
}

/* =========================================================
   7) WIDGET DE PESQUISA
   Objetivo:
   - manter o campo de busca enxuto e alinhado
========================================================= */
.wp-block-search__inside-wrapper {
	display: flex;
	max-width: 100%;
	height: 36px;
	border: 1px solid #ccc;
	border-radius: 4px;
	overflow: hidden;
	box-sizing: border-box;
}

.wp-block-search__input {
	font-size: 13px;
	padding: 6px 8px;
	border: none;
	flex: 1;
	height: 100%;
	box-sizing: border-box;
	color: #007C91;
}

.wp-block-search__button {
	background-color: #c9a617;
	color: white;
	border: none;
	height: 100%;
	padding: 0 12px;
	cursor: pointer;
	transition: background-color .3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wp-block-search__button:hover {
	background-color: #b08910;
}

/* =========================================================
   8) WIDGET DE ARQUIVOS
   Objetivo:
   - padronizar o dropdown de arquivos
========================================================= */
.widget_archive label,
.widget_archive select {
	font-size: 13px;
	font-weight: 500;
	color: #007C91 !important;
}

.widget_archive select {
	width: 100%;
	padding: 4px 6px;
	border: 1px solid #ccc;
	border-radius: 3px;
	background-color: white;
	box-sizing: border-box;
	font-family: inherit;
	transition: border-color .3s ease;
}

.widget_archive select:focus {
	outline: none;
	border-color: #00A0C6;
}

/* =========================================================
   9) WIDGET DE ESTATÍSTICAS
   Objetivo:
   - reduzir poluição visual
========================================================= */
.widget_blog_stats,
.widget_blog_stats h2,
.widget_blog_stats * {
	font-size: 13px;
	color: #007C91 !important;
	font-weight: 500;
	line-height: 1.3;
	margin: 0;
	padding: 4px 6px;
}

/* =========================================================
   10) LINKS GERAIS RELACIONADOS / TAGS / METADATA
   Objetivo:
   - manter links auxiliares com a mesma paleta
========================================================= */
.tagcloud a,
.widget-title a,
.entry-meta a {
	color: #007C91 !important;
	text-decoration: none;
}

.tagcloud a:hover,
.entry-meta a:hover {
	color: #00A0C6 !important;
	text-decoration: underline;
}

/* =========================================================
   11) BLOCO "PUBLICADO POR"
   Objetivo:
   - destacar o box do autor no fim do post
========================================================= */
.author-box {
	border-top: 1px solid #ccc;
	margin-top: 24px;
	padding: 16px;
	background-color: #f9f9f9;
	color: #007C91;
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.6;
}

.author-box h4 {
	font-size: 15px;
	margin-bottom: 6px;
	font-weight: 600;
	color: #005d73;
}

.author-box a {
	color: #007C91;
	text-decoration: none;
}

.author-box a:hover {
	color: #00A0C6;
	text-decoration: underline;
}

/* =========================================================
   12) NAVEGAÇÃO ENTRE POSTS
   Objetivo:
   - padronizar os botões de post anterior/próximo
========================================================= */
.post-navigation .nav-links a {
	display: inline-block;
	background-color: #f5f5f5 !important;
	color: #007C91 !important;
	font-weight: 600;
	font-size: 14px;
	padding: 12px 16px;
	border-radius: 4px;
	text-decoration: none;
	box-shadow: 0 2px 4px rgba(0,0,0,0.06);
	transition: background-color .3s ease, color .3s ease;
	text-align: center;
}

.post-navigation .nav-links a:hover {
	background-color: #e0e0e0 !important;
	color: #00A0C6 !important;
}

/* =========================================================
   13) BLOCO MODERNO DO AUTOR
   Objetivo:
   - dar destaque suave ao perfil do autor
========================================================= */
.entry-author {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	background-color: #f0f8fa;
	border-left: 4px solid #007C91;
	border-radius: 10px;
	padding: 20px 24px;
	margin-top: 40px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
	gap: 20px;
}

.author-avatar img {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.author-bio {
	flex: 1;
	font-size: 14px;
	line-height: 1.6;
	color: #333;
	margin: 0;
}

.author-bio strong {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: #005d73;
	margin-bottom: 6px;
}

.author-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	padding: 6px 12px;
	background-color: #007C91;
	color: #ffffff !important;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	border-radius: 5px;
	transition: background-color .3s ease;
}

.author-link::after {
	content: "→";
	font-size: 14px;
	line-height: 1;
	margin-left: 4px;
}

.author-link:hover {
	background-color: #005d73;
	text-decoration: none;
	color: #ffffff !important;
}

/* =========================================================
   14) PÁGINA DE CONTATO — ESTILO ESPECÍFICO
   Objetivo:
   - deixar a página de contato mais limpa e padronizada
========================================================= */
.page-id-1600 .entry-content {
	font-family: 'PT Serif', serif;
	font-size: 15px;
	line-height: 1.6;
	color: #333;
	background-color: #f5f5f5;
	padding: 20px;
	border-radius: 8px;
	max-width: 800px;
	margin: 0 auto;
}

.page-id-1600 .entry-content h2,
.page-id-1600 .entry-content h3,
.page-id-1600 .entry-content h4,
.page-id-1600 .entry-content h5 {
	color: #007C91;
	font-weight: 700;
	margin-top: 20px;
	margin-bottom: 10px;
	text-transform: none !important;
}

.page-id-1600 .entry-content p,
.page-id-1600 .entry-content li,
.page-id-1600 .entry-content label {
	color: #333;
	font-size: 15px;
	text-transform: none !important;
}

.page-id-1600 input[type="text"],
.page-id-1600 input[type="email"],
.page-id-1600 textarea {
	width: 100%;
	padding: 8px 12px;
	margin-top: 6px;
	margin-bottom: 16px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	font-size: 15px;
	font-family: inherit;
}

.page-id-1600 input[type="submit"] {
	background-color: #007C91;
	color: white;
	padding: 10px 24px;
	border: none;
	border-radius: 24px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: background-color .3s ease;
}

.page-id-1600 input[type="submit"]:hover {
	background-color: #005d73;
}

.page-id-1600 h6,
.page-id-1600 .wp-block-heading {
	text-transform: none !important;
}

/* =========================================================
   15) METADATA DOS POSTS
   Objetivo:
   - reduzir o peso visual da linha de data/categorias/tags
========================================================= */
.entry-meta,
.entry-meta a,
.entry-meta span {
	font-size: 9px !important;
	line-height: 1.8 !important;
	color: #555 !important;
	font-weight: 400;
}

.entry-meta a:hover {
	color: #007C91 !important;
	text-decoration: underline;
}

/* =========================================================
   16) PÁGINA "COMECE POR AQUI" — ID 3659
   Objetivo:
   - remover sidebar
   - dar largura total ao conteúdo
========================================================= */
.page-id-3659 .sidebar,
.page-id-3659 .widget-area {
	display: none !important;
}

.page-id-3659 .content-area {
	width: 100% !important;
}

/* =========================================================
   17) GRID DE ÍCONES — COMECE POR AQUI
   Objetivo:
   - organizar os ícones em grades responsivas
========================================================= */
.page-id-3659 .grid-icons {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 40px;
	justify-items: center;
	text-align: center;
	margin: 30px 0;
	padding: 0 10px;
}

.page-id-3659 .grid-icons img {
	width: 100px;
	height: auto;
	margin-bottom: 10px;
}

.page-id-3659 .grid-icons h3 {
	font-size: 16px;
	margin: 5px 0;
	color: #0d2a36;
}

.page-id-3659 .grid-icons p {
	font-size: 14px;
	color: #444;
	line-height: 1.4;
}

.grid-icons {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 30px;
	justify-items: center;
	margin-top: 40px;
}

.grid-icons div {
	max-width: 180px;
	min-height: 280px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	justify-content: space-between;
	padding: 10px;
	box-sizing: border-box;
}

.grid-icons img {
	width: 100px;
	height: auto;
	margin-bottom: 12px;
	border: 2px solid #003366;
	border-radius: 6px;
}

.grid-icons h3 {
	font-size: 15px;
	margin: 10px 0 5px;
	color: #1a1a1a;
}

.grid-icons p {
	font-size: 13px;
	line-height: 1.4;
	color: #444;
}

/* =========================================================
   18) GRID DE ÍCONES DE BIOLOGIA
   Objetivo:
   - grade compacta para áreas e tópicos
========================================================= */
.grid-biology-icons {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 24px;
	justify-items: center;
	align-items: center;
	text-align: center;
	margin-top: 20px;
}

.grid-biology-icons a {
	text-decoration: none;
	color: inherit;
	display: block;
}

.grid-biology-icons img {
	width: 100%;
	max-width: 120px;
	height: auto;
	border-radius: 8px;
}

.grid-biology-icons span {
	display: block;
	margin-top: 2px;
	font-weight: 600;
	font-size: 14px;
}

/* =========================================================
   19) GRID DOS ANOS DO ENEM
   Objetivo:
   - organizar anos em grade visual compacta
========================================================= */
.grid-enem-year-icons {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 24px;
	justify-items: center;
	text-align: center;
	margin-top: 20px;
}

.grid-enem-year-icons a {
	text-decoration: none;
	color: inherit;
	display: block;
}

.grid-enem-year-icons img {
	width: 100%;
	max-width: 90px;
	height: auto;
	transition: transform .2s ease;
}

.grid-enem-year-icons a:hover img {
	transform: scale(1.05);
}

.grid-enem-year-icons span {
	display: block;
	margin-top: 2px;
	font-weight: 600;
	font-size: 13px;
}

.grid-enem-year-icons .inactive {
	filter: grayscale(100%) opacity(0.4);
	pointer-events: none;
	cursor: default;
}

/* =========================================================
   20) GRID DO GLOSSÁRIO
   Objetivo:
   - organizar letras/termos em cards simples
========================================================= */
.glossario-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	gap: 1.2rem;
	justify-items: center;
	margin-top: 2rem;
}

.glossario-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	background-color: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 12px 8px;
	transition: background-color 0.2s, transform .2s;
	width: 100%;
	max-width: 120px;
}

.glossario-item:hover {
	background-color: #eef6ff;
	transform: scale(1.05);
}

.glossario-item img {
	width: 50px;
	height: 50px;
	margin-bottom: 6px;
}

.glossario-label {
	font-size: .95rem;
	color: #333;
	margin-top: 2px;
}

/* =========================================================
   21) PÁGINA "SOBRE O AUTOR" — BLOCO PRINCIPAL
   Objetivo:
   - estilizar apenas a área da página do autor
   - evitar regras globais soltas
========================================================= */
.sobre-autor {
	max-width: 800px;
	margin: 0 auto;
	font-family: Arial, sans-serif;
	line-height: 1.8;
	color: #222;
	padding: 30px 20px;
}

.sobre-autor .autor-container {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.sobre-autor .autor-foto {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #ccc;
}

.sobre-autor .autor-nome {
	font-size: 1.6em;
	margin: 0;
}

.sobre-autor .autor-formacao {
	margin-top: 5px;
	font-size: 1em;
	color: #555;
}

.sobre-autor .subtitulo {
	margin-top: 30px;
	font-size: 1.2em;
	font-weight: bold;
	color: #160774;
	border-bottom: 2px solid #160774;
	display: inline-block;
	padding-bottom: 4px;
}

.sobre-autor ul {
	padding-left: 20px;
	margin-top: 10px;
}

.sobre-autor ul li {
	margin-bottom: 6px;
}

.sobre-autor a {
	color: #160774;
	text-decoration: none;
}

.sobre-autor a:hover {
	text-decoration: underline;
}

.sobre-autor p,
.sobre-autor li {
	text-align: justify;
	text-justify: inter-word;
}