/* Suntor — Blog (Figma: Blog 2344:2942, frame 1440px).
   .title, .decor, .blog-highlight, .post-card and .read-more come from site.css / motion.css. */

.blog article > * { margin-left: 0; margin-right: 0; max-width: none; }
.post-image--empty { display: block; background: linear-gradient(135deg, var(--primary-50), var(--primary-100)); }

/* ---------- Hero ---------- */
.blog-hero { position: relative; overflow: hidden; height: 400px; box-sizing: border-box; background: var(--primary-50); padding: 0 var(--gutter); display: flex; align-items: center; }
.blog-hero__organic { position: absolute; left: calc(50% + 82px); top: -68px; width: 733px; height: 713.281px; pointer-events: none; animation: blog-organic-in 1.8s var(--ease, ease) .2s both; }
.blog-hero__text { position: relative; width: 576px; max-width: 100%; animation: reveal-up .9s var(--ease, ease) backwards; }
.blog-hero__text h1 { margin: 0 0 16px; font: 400 56px/1.1 var(--font-head); color: var(--primary-500); }
.blog-hero__text p { margin: 0; font: 400 16px/1.4 var(--font-body); color: var(--primary-900); }
.blog-hero__text p + p { margin-top: 22.4px; }
@keyframes blog-organic-in { from { opacity: 0; transform: translate3d(40px, 24px, 0) rotate(4deg); } }

/* ---------- Main area ---------- */
.blog-main { position: relative; overflow: hidden; padding: 80px var(--gutter); }
.blog-main > section { position: relative; }
.blog-main__divider { position: relative; margin: 64px 0; border: 0; border-top: 1px solid rgba(71, 74, 81, .2); }

/* Destaques */
.blog-destaques { display: flex; flex-direction: column; gap: 48px; }
.blog-destaques__row { display: flex; gap: 32px; height: 403px; }
.blog-highlight--destaque { width: 640px; height: 403px; border: 0; }
.blog-highlight--destaque .blog-highlight__img { left: 0; top: 0; width: 643px; height: 403px; }
.blog-highlight--destaque .blog-highlight__blur { left: 0; top: 225px; width: 640px; height: 291px; -webkit-mask: url('../assets/images/blog/destaque-degrade-mask.svg') no-repeat 0 -225px / 640px 403px; mask: url('../assets/images/blog/destaque-degrade-mask.svg') no-repeat 0 -225px / 640px 403px; }
.blog-highlight--destaque .blog-highlight__text { left: 0; bottom: 0; width: 640px; box-sizing: border-box; }
.blog-highlight--destaque .blog-highlight__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }

.blog-side { flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 32px; }
.blog-side li { position: relative; flex: 1; min-height: 0; display: flex; }
.blog-side li + li::before { content: ''; position: absolute; left: 0; right: 0; top: -16.5px; border-top: 1px solid rgba(71, 74, 81, .2); }
.blog-side__card { flex: 1; min-width: 0; display: flex; align-items: stretch; }
.blog-side__media { flex: none; width: 160px; height: 113px; border-radius: 16px; overflow: hidden; }
.blog-side__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease, ease); }
.blog-side__body { flex: 1; min-width: 0; padding: 0 24px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 13.308px; }
.blog-side__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font: 400 18px/1.2 var(--font-head); color: var(--neutral-900); transition: color .3s ease; }
.blog-side__card:hover .blog-side__img { transform: scale(1.08); }
.blog-side__card:hover .blog-side__title { color: var(--primary-900); }
.blog-side__card:hover .read-more img { transform: translate(3px, -3px); }

/* Todas as notícias */
.blog-todas { display: flex; flex-direction: column; align-items: center; gap: 48px; scroll-margin-top: 24px; }
.blog-todas__head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.blog-search { position: relative; flex: none; width: 413px; max-width: 100%; height: 48px; box-sizing: border-box; margin: 0; padding: 0 16px; border: 1px solid rgba(71, 74, 81, .2); border-radius: 999px; background: var(--white); display: flex; align-items: center; gap: 8px; transition: border-color .25s ease, box-shadow .25s ease; }
.blog-search img { flex: none; width: 20px; height: 20px; }
.blog-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; padding: 0; font: 400 16px/1.4 var(--font-body); color: var(--neutral-900); outline: none; }
.blog-search input::placeholder { color: var(--neutral-900); opacity: 1; }
.blog-search input::-webkit-search-cancel-button { display: none; }
.blog-search:hover { border-color: rgba(206, 105, 106, .5); }
.blog-search:focus-within { border-color: var(--primary-500); box-shadow: 0 0 0 3px var(--primary-500-a10); }
.blog-search__clear { flex: none; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; color: var(--primary-500); }
.blog-search__clear:hover { background: var(--primary-500-a10); }

.blog-grid { width: 100%; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.blog-grid li { display: flex; }
.blog-card { width: auto; flex: 1; }
.blog-card .post-card__media { height: 200px; }
/* Figma trims the text boxes: cards are 336px, 2px less than plain line-heights give */
.blog-card .post-card__body { gap: 22px; }
.blog-empty { margin: 0; font: 400 16px/1.4 var(--font-body); color: var(--neutral-900); }

/* Pagination */
.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; }
.pager__item, .pager__arrow { width: 48px; height: 48px; box-sizing: border-box; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--primary-500-a10); color: var(--primary-500); font: 400 18px/1.2 var(--font-head); transition: background-color .2s ease, color .2s ease, transform .2s ease; }
a.pager__item:hover, a.pager__item:focus-visible { background: var(--primary-100); }
.pager__item.is-current { background: var(--primary-500); color: var(--white); }
.pager__item--dots { background: none; }
a.pager__arrow { background: var(--primary-500); color: var(--white); }
a.pager__arrow:hover, a.pager__arrow:focus-visible { background: var(--primary-700); }
.pager__arrow[aria-disabled="true"] svg { opacity: .4; }
.pager a:focus-visible { outline: 2px solid var(--primary-700); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .blog-hero__organic, .blog-hero__text { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .blog-highlight--destaque { flex: 1 1 50%; width: auto; }
  .blog-highlight--destaque .blog-highlight__img, .blog-highlight--destaque .blog-highlight__blur, .blog-highlight--destaque .blog-highlight__text { width: 100%; }
  .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .blog-hero { height: auto; padding-top: 72px; padding-bottom: 72px; }
  .blog-hero__organic { left: auto; right: -420px; opacity: .35; }
  .blog-destaques__row { flex-direction: column; height: auto; }
  .blog-highlight--destaque { flex: none; height: 403px; }
  .blog-side li { flex: none; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

@media (max-width: 720px) {
  .blog-hero { padding-top: 48px; padding-bottom: 48px; }
  .blog-hero__text h1 { font-size: 44px; }
  .blog-main { padding-top: 48px; padding-bottom: 56px; }
  .blog-destaques { gap: 24px; }
  .blog-main__divider { margin: 40px 0; }
  .blog-highlight--destaque { height: 360px; }
  .blog-highlight--destaque .blog-highlight__text { padding: 24px; }
  .blog-highlight--destaque .blog-highlight__title { font-size: 20px; }
  .blog-side { gap: 24px; }
  .blog-side li + li::before { top: -12.5px; }
  .blog-side__media { width: 112px; height: 88px; }
  .blog-side__body { padding: 0 0 0 16px; gap: 8px; }
  .blog-side__title { font-size: 16px; }
  .blog-todas { gap: 32px; }
  .blog-todas__head { flex-direction: column; align-items: stretch; gap: 16px; }
  .blog-search { width: 100%; }
  .blog-grid { grid-template-columns: 1fr; }
  .pager { gap: 8px; }
  .pager__item, .pager__arrow { width: 40px; height: 40px; font-size: 16px; }
}
