/*
 * Posts, listagens, busca e 404.
 * Valores medidos no tema anterior para manter o mesmo visual.
 */

/* Grade com barra lateral (8 + 4 colunas a partir de 768px). */
.cpa-row {
	display: flex;
	flex-wrap: wrap;
	margin-right: -15px;
	margin-left: -15px;
}
.cpa-col-12,
.cpa-col-8,
.cpa-col-4 {
	position: relative;
	width: 100%;
	min-height: 1px;
	padding-right: 15px;
	padding-left: 15px;
}
@media (min-width: 768px) {
	.cpa-col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
	.cpa-col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
}

/* Fundo cinza claro em posts e listagens (a cor por página, se houver, tem prioridade). */
.single,
.search,
.archive { background: #edf0f2; }

/* Cartão do post */
article.post {
	position: relative;
	height: auto;
	margin-bottom: 45px;
	overflow: hidden;
	background: #fff;
}
.search article {
	position: relative;
	height: auto;
	margin-bottom: 30px;
	background: #fff;
}
.post .entry-content,
.search .entry-content { padding: 35px 45px 45px; }

.entry-header .entry-title {
	padding-top: 0;
	margin-bottom: 15px;
	font-size: 32px;
	line-height: 40px;
}
.entry-title:not(:first-child) { padding-top: 0; }
.entry-title a { color: var(--cpa-heading); }
.post .entry-title a:hover,
.post .entry-title a:focus,
.post .entry-title a:active { color: var(--cpa-primary); }

/* Linha de dados: data, autor, comentários, categorias */
.entry-meta,
ul.entry-meta {
	list-style: none;
	padding: 0;
	padding-bottom: 0;
	margin: 0 0 15px;
}
.entry-meta li { display: inline-block; }
.entry-meta a { color: #8a8a8a; }
.post .entry-meta li {
	margin-right: 20px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.1px;
	text-transform: capitalize;
	word-break: break-word;
	color: var(--cpa-primary);
}
.search .entry-meta li {
	margin-right: 20px;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.1px;
	text-transform: uppercase;
	color: #8a8a8a;
}
ul.entry-meta li i {
	line-height: inherit;
	padding-right: 4px;
	color: var(--cpa-primary);
	font-style: normal;
}
.single .byline,
.group-blog .byline { display: inline; }

/* Botão "Leia mais" */
.edubin-main-btn {
	display: inline-block;
	border: 0;
	border-radius: 3px;
	background-color: var(--cpa-btn);
	color: #fff;
	cursor: pointer;
	text-decoration: none;
	text-transform: capitalize;
	font-family: var(--cpa-font-form);
	transition: 0.3s;
}
.edubin-main-btn a {
	display: block;
	padding: 1em 2em;
	font-family: var(--cpa-font-form);
	font-size: 15px;
	font-weight: 600;
	line-height: 17px;
	text-transform: capitalize;
	color: #fff;
	transition: 0.3s;
}
.edubin-main-btn:hover {
	border-color: #fff;
	background-color: var(--cpa-btn-hover);
}
.edubin-main-btn:hover a { color: #fff; }
.blog-btn.edubin-main-btn { margin-top: 15px; }

/* Tags no fim do post */
.edubin-entry-footer {
	clear: both;
	padding-top: 20px;
}
.edubin-entry-footer .tags-links {
	display: block;
	margin-bottom: 20px;
	font-size: 20px;
	font-weight: 700;
	color: var(--cpa-heading);
}
.edubin-entry-footer .cat-tags-links a {
	display: inline-block;
	margin: 0 5px 5px 0;
	padding: 4px 24px;
	border: 2px solid #e0e0e0;
	border-radius: 5px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.1px;
	text-transform: uppercase;
	color: #8a8a8a;
	transition: 0.5s;
}
.edubin-entry-footer .cat-tags-links a:hover {
	border-color: var(--cpa-primary);
	background-color: var(--cpa-primary);
	color: #fff;
}

/* Comentários */
div#comments {
	clear: both;
	padding: 45px;
	background: #fff;
}
#comments .commment_title { margin-bottom: 20px; }
#comments .commment_title h3 { font-size: 26px; }
#comments .commment_title small {
	font-size: 22px;
	font-weight: 500;
	text-transform: capitalize;
}

/* Legendas e blocos do editor */
.wp-caption,
.gallery-caption {
	max-width: 100%;
	margin-bottom: 1.5em;
	font-size: 0.8125rem;
	font-style: italic;
	color: #666;
}
.gallery-caption {
	display: block;
	padding: 0.5em 0;
	line-height: 1.5;
}
[class^="wp-block-"]:not(.wp-block-gallery) figcaption,
.wp-block-image,
.wp-block-gallery { margin-bottom: 1.5em; }

/* Barra lateral */
#secondary { padding: 0; }
#secondary.widget-area .widget {
	margin-bottom: 30px;
	padding: 30px;
	background: #fff;
}
.widget a { color: var(--cpa-heading); }
.widget .widget-title {
	position: relative;
	margin-bottom: 35px;
	font-size: 24px;
	font-weight: 700;
	line-height: 36px;
	color: var(--cpa-heading);
}
.widget-area h2 { margin-bottom: 10px; }
.widget .widget-title::before {
	content: "";
	position: absolute;
	bottom: -15px;
	width: 42px;
	height: 3px;
	background: var(--cpa-primary);
}
.widget ul {
	list-style: none;
	margin: 0;
}
.widget ul li {
	position: relative;
	padding: 15px 0;
	border-top: 1px solid #e0e0e0;
}
.widget > ul > li:first-child {
	padding-top: 0;
	border-top: none;
}
.widget-area .widget ul li:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
}
/* Widget "posts recentes com data" */
.edubin_recent_post { padding-top: 10px; }
.edubin_recent_post li.edubin_recent_post_list {
	display: block;
	clear: both;
	overflow: hidden;
	margin-bottom: 0;
	padding: 20px 0;
}
.edubin_recent_post .edubin_recent_post_title {
	margin-bottom: 5px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}
.edubin_recent_post .edubin_recent_post_title a { color: var(--cpa-heading); }
.edubin_recent_post .edubin_recent_post_title a:hover { color: var(--cpa-primary); }
.edubin_recent_post .date {
	margin-bottom: 20px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.1px;
	text-transform: capitalize;
	color: #8a8a8a;
}

/* Formulário de busca */
.search-form { position: relative; }
body .search-form label { display: block; margin-bottom: 0; }
.search input[type="search"] { padding: 0.58em 0 0.58em 10px; }
.widget input[type="search"].search-field { padding: 0.54em 0 0.54em 10px; }
form.search-form button {
	position: absolute;
	top: 0;
	right: 0;
	width: 55px;
	height: 44px;
	padding: 0;
	font-size: 15px;
}
.widget-area button { border-radius: 0 3px 3px 0; }
body .not-found .search-form label,
.wrong-search-wrapper .search-form label { display: inline-block; }
body .not-found .search-form .search-submit,
.wrong-search-wrapper .search-form .search-submit {
	display: inline-block;
	position: relative;
	right: 5px;
}
.text-center { text-align: center; }

/* 404 */
.error-404 .error-404-img { margin: 30px auto; }
.error-404 .error-404-heading {
	margin-bottom: 10px;
	font-size: 54px;
	color: var(--cpa-heading);
}
.error-404 .text-404 {
	margin-bottom: 10px;
	font-size: 20px;
}
.error-404 .go-home { margin-bottom: 30px; }
.error-404 a {
	font-size: 20px;
	text-decoration: underline;
	color: var(--cpa-primary);
	transition: 0.5s;
}
.error-404 a:hover {
	text-decoration: underline;
	color: var(--cpa-primary);
}

@media (max-width: 991.98px) {
	div#comments { padding: 45px 30px; }
	.post .entry-content { padding: 35px 30px 45px; }
}
@media (max-width: 767px) {
	#secondary.widget-area { margin-top: 50px; }
	.entry-header .entry-meta li {
		display: block;
		margin-right: 0;
		line-height: 2;
	}
}
@media (max-width: 576px) {
	.post .entry-meta li {
		margin-bottom: 8px;
		padding: 7px 10px;
		background: #f5f5f5;
	}
}

/* Slideshow do Jetpack: setas com o mesmo visual das versões anteriores (quadrado escuro e seta branca). */
body .wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-prev.swiper-button-prev,
body .wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-next.swiper-button-next {
	width: 48px;
	height: 48px;
	margin-top: -24px;
	border-radius: 4px;
	opacity: 1;
	background-color: rgba(0, 0, 0, 0.5);
	background-position: 50% 50%;
	background-repeat: no-repeat;
	background-size: 24px auto;
}
body .wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-prev.swiper-button-prev {
	left: 10px;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M18 4.12 10.12 12 18 19.88 15.88 22l-10-10 10-10z' fill='%23fff'/%3E%3C/svg%3E");
}
body .wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_button-next.swiper-button-next {
	right: 10px;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M5.88 4.12 13.76 12l-7.88 7.88L8 22l10-10L8 2z' fill='%23fff'/%3E%3C/svg%3E");
}
body .wp-block-jetpack-slideshow .swiper-navigation-icon { display: none; }
/* O Jetpack 16 mostra um contador "1 / 9" no lugar das bolinhas: mesma altura e centralizado como antes. */
body .wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_pagination.swiper-pagination .swiper-pagination-simple {
	line-height: 24px;
	text-align: center;
}
