/* ===================================================
   SEÇÃO BLOG (HOME)
   =================================================== */

.s-blog {
  padding: 80px 0;
  background: #f3f4f6;
}

.blog-header {
  margin-bottom: 32px;
}

.blog-eyebrow {
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font: 600 18px / 1.3 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--eq-muted, #6b7280);
  margin: 0 0 8px;
}

.blog-title {
  font-size: clamp(1.8rem, 2vw, 2.2rem);
  font-weight: 700;
  color: #111827;
}

/* GRID: 2 grandes em cima + 3 pequenos embaixo */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: flex-start;
}

.blog-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.blog-card--feature {
  height: 100%;
  grid-column: span 6; /* 2 cards grandes por linha */
}

.blog-card--small {
  align-items: stretch;
  grid-column: span 4; /* 3 cards menores por linha */
  min-height: 100%;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.blog-card__image {
  position: relative;
  overflow: hidden;
}

.blog-card--small .blog-card__image {
  flex: 0 0 38%;
}

.blog-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__content {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffffff;
  background: #111827;
}

.blog-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.blog-card__excerpt {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #4b5563;
  margin-top: 10px;
}

.blog-card__link {
  margin-top: 8px;
  border: none;
  background: none;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
  cursor: pointer;
}

.blog-card__link:hover {
  text-decoration: underline;
}

.blog-card__icon {
  width: 14px;
  height: 14px;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Responsivo */
@media (max-width: 960px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card--feature {
    grid-column: auto;
  }

  .blog-card--small {
    grid-column: auto;
    flex-direction: row;
  }
}

@media (max-width: 640px) {
  .s-blog {
    padding: 56px 0;
  }

  .blog-card--small {
    flex-direction: column;
  }

  .blog-card__content {
    padding: 14px 16px 16px;
  }
}

/* ===================================================
   MODAL DE ARTIGO DO BLOG
   =================================================== */

.blog-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.blog-modal.is-open {
  display: flex;
}

.blog-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
}

.blog-modal__dialog {
  position: relative;
  max-width: 820px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 48px);
  background: #f9fafb;
  border-radius: 24px;
  padding: 28px 28px 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-modal__article {
  overflow-y: auto;
  padding-right: 8px;
}

/* botão X */
.blog-modal__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.blog-modal__header {
  margin-bottom: 18px;
}

.blog-modal__author {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 12px;
  font-style: italic;
}

.blog-modal__image {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 20px;
}

.blog-modal__image img {
  display: block;
  width: 100%;
  height: auto;
}

.blog-modal__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.blog-modal__subtitle {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 18px;
}

.blog-modal__body {
  font-size: 0.9rem;
  color: #111827;
  line-height: 1.6;
}

.blog-modal__body h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 18px;
  margin-bottom: 6px;
}

.blog-modal__body p + p {
  margin-top: 8px;
}

.blog-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.blog-modal__btn {
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.blog-modal__btn--primary {
  background: #111827;
  color: #ffffff;
}

.blog-modal__btn--ghost {
  background: transparent;
  color: #111827;
  border-color: #d1d5db;
}

/* Travar scroll por trás do modal */
body.blog-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .blog-modal__dialog {
    padding: 20px 18px 18px;
    max-height: calc(100vh - 24px);
  }

  .blog-modal__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-modal__btn {
    width: 100%;
    justify-content: center;
  }
}