/* === BLOCO: "Ele é" (bloco-he-is) === */

/* Container principal */
.bloco-he-is {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 60px 0 45px 0;
  padding-bottom: 15px;
}

/* Cabeçalho do bloco */
.bloco-he-is-header {
  margin-bottom: 10px;
}

.bloco-he-is-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1e1e1e;
  margin-bottom: 0;
}

/* Grade de posts (1 principal + 2 menores abaixo) */
.bloco-he-is-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* === CARD PRINCIPAL (1º post - destaque) === */
.bloco-he-is-card:first-child {
  grid-column: span 2;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
}

.bloco-he-is-card:first-child .bloco-he-is-thumb {
  flex: 0 0 45%;
  display: block;
}

.bloco-he-is-card:first-child .bloco-he-is-thumb img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.bloco-he-is-card:first-child .bloco-he-is-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-top: 10px;
  margin-bottom: 15px;
}

/* === CARDS MENORES (2º e 3º posts) === */
.bloco-he-is-card:not(:first-child) {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 140px;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  background-color: #fff;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.bloco-he-is-card:not(:first-child):hover {
  transform: scale(1.01);
}

.bloco-he-is-card:not(:first-child) .bloco-he-is-thumb {
  flex: 0 0 40%;
  max-width: 40%;
  overflow: hidden;
  border-radius: 8px 0 0 8px;
  display: flex;
  align-items: stretch;
}

.bloco-he-is-card:not(:first-child) .bloco-he-is-thumb picture {
  width: 100%;
  display: flex;
}

.bloco-he-is-card:not(:first-child) .bloco-he-is-thumb picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 165px;
}

/* Conteúdo menor */
.bloco-he-is-card:not(:first-child) .bloco-he-is-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 14px;
}

/* Categoria */
.bloco-he-is-category {
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.785rem;
  margin-bottom: 3px;
  color: #0011ff;
  transition: color 0.3s ease;
}

.bloco-he-is-category:hover {
  color: #222222;
}

/* Título */
.bloco-he-is-post-title {
  font-size: 2rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 0px;
  line-height: 1.4;
}

.bloco-he-is-card:not(:first-child) .bloco-he-is-post-title {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: bold;
}

.bloco-he-is-post-title a {
  color: inherit;
  text-decoration: none;
}

.bloco-he-is-post-title a:hover {
  text-decoration: underline;
}

/* Remover post-excerpt nos menores */
.bloco-he-is-card:not(:first-child) .bloco-he-is-post-excerpt {
  display: none !important;
}

/* Metadados padrão */
.bloco-he-is-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Autor com avatar - apenas no destaque */
.meta-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #333;
}

.meta-author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.meta-author-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.meta-author-info .author-name {
  font-weight: 500;
}

.meta-author-info time {
  font-size: 0.75rem;
  color: #555;
}

/* Autor e data inline (para cards menores) */
.author-inline {
  font-size: 0.75rem;
  color: #333;
  font-weight: 500;
}

.date-inline {
  font-size: 0.75rem;
  color: #555;
  margin-left: auto;
}

/* Botão Saiba Mais (somente no destaque) */
.bloco-he-is-button {
  font-size: 0.875rem;
  font-weight: 500;
  color: #000;
  border: 1px solid #000;
  padding: 6px 14px;
  border-radius: 20px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-left: auto;
}

.bloco-he-is-button:hover {
  background: #000;
  color: #fff;
}

/* === Mobile === */
@media (max-width: 768px) {
  .bloco-he-is-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .bloco-he-is-card:first-child {
    flex-direction: column;
    grid-column: span 1;
    padding-bottom: 5px;
  }

  .bloco-he-is-thumb {
    flex: unset !important;
    width: 100%;
  }

  .bloco-he-is-thumb picture {
    aspect-ratio: 16 / 9;
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .bloco-he-is-thumb picture img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    display: block;
  }

  .bloco-he-is-info {
    padding: 0 15px;
  }

  .bloco-he-is-post-excerpt {
    margin-top: 12px;
  }


  /* Garante que a imagem do autor apareça no mobile no destaque */
.bloco-he-is-card:first-child .meta-author img {
  display: block !important;
}

/* (opcional) Garante que nos itens menores continue escondida se desejar leveza */
.bloco-he-is-card:not(:first-child) .meta-author img {
  display: none !important;
}



  .bloco-he-is-card:not(:first-child) {
    flex-direction: row;
    align-items: stretch; /* ✅ permite que a imagem acompanhe o conteúdo */
    min-height: unset; /* ✅ altura é definida pelo conteúdo */
  }

  .bloco-he-is-card:not(:first-child) .bloco-he-is-thumb {
    flex: 0 0 40%;
    max-width: 40%;
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: stretch; /* ✅ garante que o picture estique */
  }

  .bloco-he-is-card:not(:first-child) .bloco-he-is-thumb picture {
    flex: 1;
    display: flex;
  }

  .bloco-he-is-card:not(:first-child) .bloco-he-is-thumb picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px 0 0 8px;
    min-height: unset !important; /* ✅ remove o min-height que travava */
  }

  .bloco-he-is-card:not(:first-child) .bloco-he-is-info {
    padding-left: 10px;
  }

  .bloco-he-is-card:not(:first-child) .bloco-he-is-post-title {
    font-size: 1rem;
    margin-bottom: 3px;
  }
}

