#blog-posts {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 50px;
}

/* HERO DO BLOG */
.blog-hero {
  max-width: 1100px;
  margin: 80px auto 50px;
  padding: 0 20px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.titulo-com-barra {
  position: relative;
  display: inline-block;

  padding-left: 18px;
  margin: 0;

  font-family: "Cormorant SC", serif;
  font-size: 32px;
  font-weight: 500;

  color: var(--title-color, #4A5D41);
}

.titulo-com-barra::before {
  content: "";
  position: absolute;

  left: 0;
  top: 50%;

  transform: translateY(-50%);

  width: 5px;
  height: 38px;

  background: var(--title-color, #4A5D41);
}

.blog-hero p {
  align-self: center;

  margin-top: 16px;
  max-width: 700px;

  text-align: center;

  font-family: "Cormorant SC", serif;
  font-size: 18px;
  line-height: 1.8;

  color: var(--text-readable, #000000);
}

/* LISTA */
.blog-lista {
  width: 100%;
  max-width: 1200px;

  margin: 0 auto;
  padding: 0 20px;
}

#blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
  gap: 35px;
  margin-top: 50px;
}

.blog-post {
  display: flex;
}

.blog-status {
  grid-column: 1 / -1;
  margin: 20px auto;
  color: #4a5140;
  font-family: "Cormorant Infant", serif;
  font-size: 20px;
  line-height: 1.6;
  text-align: center;
}

.blog-status.is-error {
  color: #7a332b;
}

.blog-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 650px;

  background: #fcfaf7;
  border-radius: 28px;

  overflow: hidden;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: 0.4s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-post.expanded {
  grid-column: 1 / -1;
}

.blog-post.expanded .blog-card {
  width: 100%;
  max-width: 900px;
  min-height: 0;
  margin: 0 auto;
}

.blog-post.expanded .full-content {
  max-width: 680px;
  margin: 28px auto 0;
}

.blog-card img {
  width: calc(100% - 28px);
  height: 250px;
  margin: 14px 14px 0;

  object-fit: contain;
  background: #f8f6f2;
  border-radius: 18px;
}

.blog-info {
  padding: 30px 28px;

  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;

  font-family: "Cormorant SC", serif;
}

.blog-card h2 {
  font-family: "Cormorant SC", serif;
  font-size: 31px;
  line-height: 1.15;

  text-align: center;
  color: var(--title-color, #4A5D41);

  overflow-wrap: anywhere;
}

.blog-post:not(.expanded) .blog-card h2 {
  min-height: calc(31px * 1.15 * 3);

  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.blog-card .content {
  width: 100%;
  max-width: 100%;

  margin-top: 18px;

  text-align: left;
  text-align-last: left;

  line-height: 1.72;
  letter-spacing: 0;

  word-break: normal;
  overflow-wrap: anywhere;

  hyphens: none;

  color: #000000;

  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 15px;
}

.blog-card .preview {
  min-height: calc(18px * 1.7 * 4);
  line-height: 1.7;

  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;

  text-align: left;
  text-align-last: left;
}

.blog-post:not(.expanded) .read-more {
  margin-top: auto;
}

/* CONTEÚDO COMPLETO */
.full-content {
  width: 100%;
  margin-top: 20px;

  text-align: left;
  text-align-last: left;

  line-height: 1.78;
  letter-spacing: 0;

  word-break: normal;
  overflow-wrap: anywhere;

  hyphens: none;

  color: #262621;

  font-family: "Cormorant Infant", serif;
  font-size: 20px;
}

.full-content p,
.blog-card .content p {
  margin: 0 0 1.15em;

  text-align: left;
  text-align-last: left;

  hyphens: none;
}

.full-content h2,
.full-content h3,
.full-content h4 {
  margin: 1.7em 0 0.65em;
  font-family: "Cormorant SC", serif;
  line-height: 1.2;
  color: var(--title-color, #4A5D41);
}

.full-content h2 {
  font-size: 30px;
}

.full-content h3 {
  font-size: 25px;
}

.full-content ul,
.full-content ol {
  margin: 0 0 1.25em;
  padding-left: 1.35em;
}

.full-content li {
  margin-bottom: 0.55em;
  line-height: 1.72;
}

.full-content blockquote {
  margin: 1.4em 0;
  padding: 2px 0 2px 18px;
  border-left: 4px solid #a8be87;
  color: #4a5140;
  font-style: italic;
}

.full-content a:not(.blog-whatsapp-cta) {
  color: var(--title-color, #4A5D41);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.full-content > *:last-child {
  margin-bottom: 0;
}
/* BOTÃO */
.blog-card button,
.read-more,
.blog-whatsapp-cta {
  margin-top: 25px;

  background: #a8be87;
  color: white;

  border: none;
  border-radius: 40px;

  padding: 14px 34px;

  font-size: 16px;

  cursor: pointer;

  transition: 0.3s ease;
}

.blog-card button:hover,
.read-more:hover,
.blog-whatsapp-cta:hover {
  background: #90a66f;
}

.blog-whatsapp-cta {
  display: inline-block;
  min-width: 190px;
  margin: 18px auto 0;
  padding: 11px 24px;
  text-decoration: none;
  text-align: center;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .blog-hero {
    margin: 50px auto 35px;
    padding: 0 24px;
  }

  #blog-posts {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
  }

  .blog-card img {
    height: 230px;
  }

  .blog-card h2 {
    font-size: 32px;
  }

  .full-content {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .blog-hero {
    margin: 38px auto 28px;
    padding: 0 18px;
  }

  .titulo-com-barra {
    font-size: 28px;
  }

  .blog-hero p {
    font-size: 16px;
    text-align: center;
  }

  .blog-lista {
    padding: 0 14px;
  }

  #blog-posts {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
  }

  .blog-card {
    border-radius: 18px;
    min-height: 560px;
  }

  .blog-card img {
    width: calc(100% - 20px);
    height: 200px;
    margin: 10px 10px 0;
    border-radius: 14px;
  }

  .blog-card h2 {
    font-size: 28px;
  }

  .blog-post:not(.expanded) .blog-card h2 {
    min-height: calc(28px * 1.15 * 3);
  }

  .blog-info {
    padding: 24px 18px;
  }

  .blog-card .content {
    font-size: 17px;
    line-height: 1.7;
  }

  .blog-card .preview {
    min-height: calc(17px * 1.65 * 4);
    line-height: 1.65;
  }

  .full-content {
    font-size: 18px;
    line-height: 1.72;
  }

  .full-content h2 {
    font-size: 26px;
  }

  .full-content h3 {
    font-size: 23px;
  }

  .blog-card button,
  .read-more {
    width: 100%;
    max-width: 260px;
    padding: 13px 22px;
  }

  .blog-whatsapp-cta {
    width: auto;
    min-width: 180px;
    max-width: 230px;
    padding: 11px 20px;
  }
}
