/* ===== Blog Content Section ===== */

.section.blog-content .content {
    display: flex;
    flex-direction: row;
    gap: 20px;
    background-color: #fff;
    flex-wrap: nowrap;
}

.section.blog-content .main-posts {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 20px;
}


.home_blog_left {
    margin-left: -50px;
    height: 100%;
    width: 100%;
}

.home_blog_txt h1,
.categoria_blog_txt h1 {
    line-height: 49px;
    font-weight: 700 !important;
}

.home_blog_txt h1 .subtitle, 
.categoria_blog_txt h1 .subtitle {
    color: var(--bege);
}


/* ===== Posts Area ===== */

.section.blog-content .posts-area {
  width: 70%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

 .posts-area .main-posts {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 30px;
}

/* ===== Single Post Card ===== */

.section.blog-content .post-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--bege_claro);
  padding: 0;
  transition: box-shadow 0.3s ease;
}

.section.blog-content .post-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ===== Image Proporcional: 352x218 ===== */

.section.blog-content .post-card .post-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 352 / 218; /* Mantém a proporção */
  overflow: hidden;
  flex-shrink: 0;
  max-width: 328px;
}

.section.blog-content .post-card .post-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Texto do Post ===== */

.section.blog-content .post-card .post-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.section.blog-content .post-card .post-info .post-category {
  color: var(--bege);
}

.section.blog-content .post-card .post-info h2 {
  font-size: 23px;
  font-weight: 800;
  line-height: normal;
  margin-bottom: 0;
}

.section.blog-content .post-card .leia-mais {
  font-weight: 800;
  text-transform: uppercase;
  color: var(--marrom_claro);
  align-self: flex-end;
  text-decoration: underline;
}


/* --------------------------
   Sidebar geral
-------------------------- */
.sidebar {
  width: 100%;
  max-width: 360px;
  min-width: 322px;
  padding-left: 24px;
}

@media (max-width: 768px) {
  .sidebar {
    padding-left: 0;
    max-width: 100%;
    width: 100%;
    margin-top: 40px;
  }
}

/* --------------------------
   Campo de busca
-------------------------- */
.sidebar .widget.widget_search {
  margin-bottom: 40px;
  position: relative;
  border-bottom: 1px solid #c4bda8;
}

.sidebar .widget.widget_search input[type="search"] {
  width: 100%;
  border: none;
  background: transparent;
  padding: 12px 32px 12px 0;
  font-size: 16px;
  color: #413114;
  outline: none;
  font-family: inherit;
}

.sidebar .widget.widget_search button {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
}

/* --------------------------
   Categorias
-------------------------- */
.sidebar .widget.widget_categories {
  margin-bottom: 48px;
}

.sidebar .widget.widget_categories h3 {
  font-size: 24px;
  color: #5c441a;
  margin-bottom: 20px;
  font-weight: 700;
}

.sidebar .widget.widget_categories ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar .widget.widget_categories ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 600;
  color: #413114;
  font-family: inherit;
  text-transform: uppercase;
}

.sidebar .widget.widget_categories ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 14px;
  background-image: url('../img/seta.svg');
  background-size: contain;
  background-repeat: no-repeat;
}

/* --------------------------
   Mais lidas
-------------------------- */
.sidebar .widget.mais-lidas h3 {
  font-size: 24px;
  color: #5c441a;
  margin-bottom: 20px;
  font-weight: 700;
}

.sidebar .widget.mais-lidas ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar .widget.mais-lidas ul li {
  margin-bottom: 16px;
}

.sidebar .widget.mais-lidas ul li a {
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  color: #4c4c4c;
  transition: 0.2s ease-in-out;
}

.sidebar .widget.mais-lidas ul li a:hover {
  color: #5c441a;
  text-decoration: underline;
}


section.blog_wrapper .content {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 60px;
    align-items: center;
    padding: 67px 20px 0;
    color: var(--branco);
}



/* --------------------------
   Categorias category.php
-------------------------- */

.categoria_blog_txt {
    display: flex;
    align-content: center;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    text-align: center;
    max-width: 630px;
    margin: 0 auto;
    padding-bottom: 20px;
}


/* --------------------------
   Single post
-------------------------- */


.single-post .section.blog-content .content {
    padding-top: 100px;
}

.single-post span.post-category.subtitle {
    color: var(--marrom_claro);
}

.single-post h1, .single-post p.subtitle.data {
    margin-bottom: 0;
}

.single-post  p.subtitle.data {
    color: #A4A49E;
}

.single-post h1 {
    font-size: 40px;
    font-weight: 700 !important;
    line-height: 40px;
}

.single-post img.attachment-large.size-large.wp-post-image {
    width: 100%;
}

.single-post .post-thumb.full {
    max-height: 580px;
    overflow: hidden;
}

.single-post .post-autor {
    background-color: var(--bege_claro);
    padding: 15px 25px;
}

.single-post .post-autor p {
    margin-bottom: 0;
    color: var(--bege);
}

.single-post .autor-nome {
    font-size: 23px;
    font-style: normal;
    font-weight: 800;
}

.single-post .post-content blockquote p {
    font-size: 20px;
    font-style: italic;
    padding-left: 30px;
}

.single-post .post-content blockquote p::before {
    content: '"';
    position: absolute;
    font-size: 50px;
    margin-top: 12px;
    margin-left: -30px;
    color: var(--bege);
}

.pp-author-boxes-name a {
  pointer-events: none;
  cursor: default;
  text-decoration: none;
  color: inherit;
}

/* =====================
   BLOCO: CONFIRA TAMBÉM
======================== */

.section.blog_posts {
  background-color: var(--cinza-fundo, #f8f8f8);
  padding: 60px 20px;
  margin-top: 80px;
}

.section.blog_posts .container {
  max-width: 1200px;
  margin: 0 auto;
}

.section.blog_posts h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--escuro);
  margin-bottom: 40px;
  text-align: center;
}

.section.blog_posts .posts-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.section.blog_posts .post-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 352px;
  text-decoration: none;
  background-color: #fff;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.section.blog_posts .post-card:hover {
  transform: translateY(-5px);
}

.section.blog_posts .post-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 352 / 218;
  overflow: hidden;
}

.section.blog_posts .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section.blog_posts .post-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.section.blog_posts .post-info h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.1;
}

.section.blog_posts .leia-mais {
  font-size: 14px;
  color: var(--marrom_claro);
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: underline;
}
