/* =========================================================
   BLOG.CSS
   Estilos exclusivos do blog da Casa das Fragmentadoras
   Versão sem filtros na página inicial
========================================================= */

.page-blog {
  background: #ffffff;
}

/* =========================
   HERO / BANNER
   Imagem original: 1920 x 400 px
========================= */
.blog-hero {
  background: #061f3f;
  padding: 0;
  margin: 0;
  line-height: 0;
  overflow: hidden;
}

.blog-hero .container-site {
  width: 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin-left: auto;
  margin-right: auto;
}

.blog-hero__image {
  display: block;
  width: 100%;
  height: auto;
  min-height: 260px;
  object-fit: cover;
  object-position: center center;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  image-rendering: auto;
}

@media (max-width: 959.98px) {
  .blog-hero__image {
    width: 100%;
    height: 250px;
    min-height: 0;
    object-fit: cover;
    object-position: center center;
  }
}

@media (max-width: 575.98px) {
  .blog-hero__image {
    height: 210px;
    min-height: 0;
    object-fit: cover;
    object-position: center center;
  }
}

/* =========================================================
   HOME DO BLOG - SEM FILTROS
========================================================= */
.blog-clean {
  padding: 40px 0 72px;
  background: #ffffff;
}

.blog-clean__top {
  max-width: 920px;
  margin: 0 auto 32px;
  text-align: center;
}

.blog-clean__title {
  margin: 0 0 10px;
  font-family: 'Gilroy-ExtraBold', Arial, sans-serif;
  font-size: clamp(2.1rem, 3vw, 3.25rem);
  line-height: 1.02;
  color: #0A5998;
  letter-spacing: -0.04em;
}

.blog-clean__subtitle {
  max-width: 820px;
  margin: 0 auto;
  font-family: 'Gilroy-Medium', Arial, sans-serif;
  font-size: clamp(1rem, 1.08vw, 1.15rem);
  line-height: 1.48;
  color: #222222;
}

.blog-clean__list {
  display: grid;
  gap: 5px;
  width: min(100%, 1200px);
  margin: 0 auto;
}

.blog-clean__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 54px;
  padding: 12px 18px 12px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0A5998 0%, #064a80 100%);
  color: #ffffff;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(10, 89, 152, .14);
  transition: box-shadow .22s ease, background .22s ease;
}

.blog-clean__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 50%, rgb(11 176 31 / 54%), transparent 82%), linear-gradient(135deg, rgba(255, 255, 255, .10), transparent 42%);
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}

.blog-clean__item::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transform: skewX(-18deg);
  transition: left .55s ease;
  pointer-events: none;
}

.blog-clean__item:hover {
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(10, 89, 152, .22);
}

.blog-clean__item:hover::before {
  opacity: 1;
}

.blog-clean__item:hover::after {
  left: 130%;
}

.blog-clean__content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.blog-clean__post-title {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 18px;
  line-height: 1.18;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.blog-clean__date {
  display: inline-flex;
  margin-top: 5px;
  font-family: 'Gilroy-Regular', Arial, sans-serif;
  font-size: 11px;
  line-height: 1;
  color: rgba(255,255,255,.56);
}

.blog-clean__button {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  min-width: 120px;
  padding: 0 18px;
  border-radius: 999px;
  background: #4CAF50;
  color: #ffffff;
  font-family: 'Gilroy-ExtraBold', Arial, sans-serif;
  font-size: .92rem;
  white-space: nowrap;
  transition: background .22s ease;
}

.blog-clean__button i {
  transition: transform .22s ease;
}

.blog-clean__item:hover .blog-clean__button {
  background: rgba(255,255,255,.22);
}

.blog-clean__item:hover .blog-clean__button i {
  transform: translateX(4px);
}

.blog-clean-empty {
  max-width: 680px;
  margin: 0 auto;
  padding: 34px 22px;
  border-radius: 18px;
  text-align: center;
  background: #f3f5f7;
  border: 1px solid #e0e4e9;
}

.blog-clean-empty h2 {
  margin: 0 0 8px;
  font-family: 'Gilroy-ExtraBold', Arial, sans-serif;
  color: #101010;
}

.blog-clean-empty p {
  margin: 0;
  color: #66717d;
  font-family: 'Gilroy-Medium', Arial, sans-serif;
}

@media (max-width: 767.98px) {
  .blog-clean {
    padding: 32px 0 52px;
  }

  .blog-clean__top {
    margin-bottom: 24px;
  }

  .blog-clean__title {
    font-size: clamp(1.85rem, 7vw, 2.35rem);
  }

  .blog-clean__subtitle {
    font-size: .98rem;
    line-height: 1.45;
  }

  .blog-clean__item {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    padding: 14px;
  }

  .blog-clean__post-title {
    font-size: .98rem;
    line-height: 1.18;
  }

  .blog-clean__button {
    width: auto;
    min-width: 160px;
    align-self: center;
  }
}

/* =========================================================
   PÁGINA INTERNA DO BLOG
========================================================= */

.blog-post-page {
  background: #ffffff;
}

.blog-post-wrap {
  padding: 34px 0 72px;
}

.blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  font-family: 'Gilroy-Medium', Arial, sans-serif;
  font-size: .95rem;
  color: #66717d;
}

.blog-breadcrumb a {
  color: #0A5998;
  text-decoration: none;
}

.blog-breadcrumb a:hover {
  text-decoration: underline;
}

.blog-breadcrumb strong {
  color: #101010;
  font-weight: 600;
}

.blog-post-layout {
  display: block;
  max-width: 1080px;
  margin: 0 auto;
}

.blog-post-main {
  min-width: 0;
  max-width: 1080px;
  margin: 0 auto;
}

.blog-post-hero-image {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: 16px;
  background: #eef2f6;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
}

.blog-post-hero-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center center;
}

.blog-post-header {
  margin-bottom: 26px;
}

.blog-post-category {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eaf4ff;
  color: #0A5998;
  font-family: 'Gilroy-ExtraBold', Arial, sans-serif;
  font-size: .82rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .02em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.blog-post-title {
  margin: 0 0 12px;
  font-family: 'Gilroy-ExtraBold', Arial, sans-serif;
  font-size: clamp(2.1rem, 3.2vw, 4rem);
  line-height: .98;
  color: #101010;
  letter-spacing: -0.04em;
}

.blog-post-date {
  display: block;
  font-family: 'Gilroy-Medium', Arial, sans-serif;
  font-size: 1rem;
  color: #66717d;
}

.blog-post-content {
  font-family: 'Gilroy-Medium', Arial, sans-serif;
  font-size: 1.08rem;
  line-height: 1.68;
  color: #202020;
}

.blog-post-content > *:first-child {
  margin-top: 0;
}

.blog-post-content p {
  margin: 0 0 20px;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
  font-family: 'Gilroy-ExtraBold', Arial, sans-serif;
  color: #101010;
  letter-spacing: -0.02em;
}

.blog-post-content h1 {
  margin: 0 0 22px;
  font-size: clamp(1.8rem, 2.3vw, 2.6rem);
  line-height: 1.08;
}

.blog-post-content h2 {
  margin: 34px 0 14px;
  font-size: clamp(1.65rem, 2vw, 2.25rem);
  line-height: 1.08;
}

.blog-post-content h3 {
  margin: 28px 0 12px;
  font-size: clamp(1.35rem, 1.6vw, 1.8rem);
  line-height: 1.12;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 0 0 22px;
  padding-left: 24px;
}

.blog-post-content li {
  margin-bottom: 8px;
}

.blog-post-content a {
  color: #0A5998;
  font-family: 'Gilroy-ExtraBold', Arial, sans-serif;
}

.blog-post-content img {
  display: block;
  width: 100%;
  height: auto;
  margin: 28px 0;
  border-radius: 16px;
}

.blog-post-content blockquote {
  margin: 28px 0;
  padding: 22px 24px;
  border-left: 5px solid #81B00B;
  background: #f3f6f8;
  border-radius: 12px;
  font-family: 'Gilroy-Bold', Arial, sans-serif;
  color: #173f69;
}

.blog-post-content .blog-post-toc {
  margin: 0 0 28px;
  padding: 20px 22px;
  border-radius: 16px;
  background: #f3f6f8;
  border: 1px solid #dfe4ea;
}

.blog-post-content .blog-post-toc h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  color: #0A5998;
}

.blog-post-content .blog-post-toc ol {
  margin-bottom: 0;
}

.blog-post-content .blog-post-image {
  margin: 30px 0;
}

.blog-post-content .blog-post-image img {
  margin: 0;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.blog-post-content .blog-post-image--medium {
  max-width: 920px;
}

/* =========================
   TAGS, COMPARTILHAMENTO E RELACIONADOS
========================= */
.blog-post-tags {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid #e0e4e9;
}

.blog-post-tags h2,
.blog-share h2 {
  margin: 0 0 14px;
  font-family: 'Gilroy-ExtraBold', Arial, sans-serif;
  font-size: 1.4rem;
  color: #101010;
}

.blog-post-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-post-tags__list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eaf4ff;
  color: #0A5998;
  font-family: 'Gilroy-ExtraBold', Arial, sans-serif;
  font-size: .85rem;
  line-height: 1;
}

.blog-share {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid #e0e4e9;
}

.blog-share__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-share__button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: #0A5998;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Gilroy-ExtraBold', Arial, sans-serif;
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .18s ease;
  cursor: pointer;
}

.blog-share__button:hover {
  background: #81B00B;
  color: #ffffff;
}

.blog-related {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid #e0e4e9;
}

.blog-related__title {
  margin: 0 0 18px;
  font-family: 'Gilroy-ExtraBold', Arial, sans-serif;
  font-size: clamp(1.6rem, 2vw, 2.1rem);
  line-height: 1;
  color: #101010;
}

.blog-related__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.blog-related-card__link {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  min-height: 120px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #d9dde3;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  transition: box-shadow .18s ease, border-color .18s ease;
}

.blog-related-card__link:hover {
  border-color: #b7c5d4;
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}

.blog-related-card__image {
  width: 120px;
  height: 100%;
  object-fit: cover;
}

.blog-related-card__body {
  padding: 14px;
}

.blog-related-card__body span {
  display: block;
  margin-bottom: 8px;
  color: #0A5998;
  font-family: 'Gilroy-ExtraBold', Arial, sans-serif;
  font-size: .75rem;
  line-height: 1;
  text-transform: uppercase;
}

.blog-related-card__body h3 {
  margin: 0;
  font-family: 'Gilroy-ExtraBold', Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.12;
  color: #101010;
}

/* =========================
   404 DO POST
========================= */
.blog-post-404 {
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 24px;
  text-align: center;
}

.blog-post-404 h1 {
  margin: 0 0 14px;
  font-family: 'Gilroy-ExtraBold', Arial, sans-serif;
  font-size: clamp(2rem, 3vw, 3.5rem);
}

.blog-post-404 p {
  margin: 0 0 24px;
  font-family: 'Gilroy-Medium', Arial, sans-serif;
  font-size: 1.1rem;
  color: #4f5d6c;
}

.blog-post-404__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: #0A5998;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Gilroy-ExtraBold', Arial, sans-serif;
}

/* =========================
   RESPONSIVO DA PÁGINA INTERNA
========================= */
@media (max-width: 767.98px) {
  .blog-post-wrap {
    padding: 26px 0 52px;
  }

  .blog-breadcrumb {
    font-size: .88rem;
    margin-bottom: 20px;
  }

  .blog-post-hero-image {
    margin-bottom: 22px;
    border-radius: 12px;
  }

  .blog-post-hero-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  .blog-post-content {
    font-size: 1rem;
    line-height: 1.62;
  }

  .blog-share__buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .blog-share__button {
    justify-content: center;
  }

  .blog-related__grid {
    grid-template-columns: 1fr;
  }

  .blog-related-card__link {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .blog-related-card__image {
    width: 104px;
  }
}


