﻿/* Origem: figma-to-bootstrap/outputs/blog-lean/merged/styles.css
   Tokens e reset escopados ao wrapper .blog-page para nao vazar no layout global.
   Imagens referenciadas via <img> no Razor (sem url() nesta folha). */

/* ============================================================ */
/* BLOG LEAN — styles agregados (1-hero · busque · explore)     */
/* Gerado a partir das seções em ../sections/                   */
/* ============================================================ */

/* ============================================================ */
/* DESIGN TOKENS — Hero Blog Lean (LIB)                        */
/* ============================================================ */
.blog-page {
  /* Cores */
  --color-accent:         #ff8000;
  --color-accent-dark:    #e67300;
  --color-white:          #ffffff;
  --color-badge-lilac:    #cb6ce6;
  --color-card-surface:   rgba(28, 0, 77, 0.65);   /* #1C004D @ 65% */
  --hero-card-border:     rgba(255, 255, 255, 0.6);

  /* Tipografia */
  --font-primary:         'Roboto', sans-serif;
  --font-weight-regular:  400;
  --font-weight-bold:     700;
  --font-weight-extrabold: 800;

  /* Hero */
  --hero-blog-height:     556px;
  --content-card-image-ratio: 882 / 329;
  /* Gradiente diagonal teal → azul → navy (fiel ao Figma) */
  --hero-blog-gradient:
    linear-gradient(-49.95deg, rgb(22, 145, 148) 1.49%, rgb(57, 65, 149) 75.83%, rgb(36, 34, 85) 106.49%);
}


/* ============================================================ */
/* GLOBAL                                                      */
/* ============================================================ */
.blog-page {
  font-family: var(--font-primary);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}


/* ============================================================ */
/* SECTION: HERO BLOG                                          */
/* ============================================================ */
.hero-blog {
  position: relative;
  min-height: var(--hero-blog-height);
  background: var(--hero-blog-gradient);
  overflow: hidden;
}

/* --- Camada 1: textura fotográfica ---
   Réplica das transformações do Figma: caixa deslocada para fora
   do frame, espelhada, em luminosity a 15% sobre o gradiente */
.hero-blog__texture {
  position: absolute;
  left: -275px;
  top: -237px;
  width: 1725.41px;
  height: 1154.33px;
  display: flex;
  align-items: center;
  justify-content: center;
  mix-blend-mode: luminosity;
  opacity: 0.15;
  pointer-events: none;
}

.hero-blog__texture-box {
  position: relative;
  width: 1720.56px;
  height: 1147.04px;
  flex: none;
  overflow: hidden;
  transform: rotate(-179.76deg) scaleY(-1);
}

.hero-blog__texture-box img {
  position: absolute;
  left: -0.05%;
  top: -5.38%;
  width: 100.02%;
  height: 100%;
}

/* --- Camada 2: anéis decorativos --- */
.hero-blog__ring {
  position: absolute;
  pointer-events: none;
}

.hero-blog__ring--outer {
  left: -176px;
  top: -194px;
  width: 387px;
  height: 387px;
}

.hero-blog__ring--inner {
  left: -120.82px;
  top: -138.82px;
  width: 276.65px;
  height: 276.65px;
}

/* --- Container do conteúdo (acima das camadas de fundo) ---
   1086px = margens de 177px no frame de 1440px */
.hero-blog__container {
  position: relative;
  z-index: 2;
  max-width: 1086px;
  margin: 0 auto;
  padding-top: 69px;
  padding-bottom: 58px;
}


/* ============================================================ */
/* HERO: COLUNA ESQUERDA                                       */
/* ============================================================ */
.hero-blog__title {
  font-size: 4rem;                       /* 64px */
  font-weight: var(--font-weight-extrabold);
  color: var(--color-white);
  line-height: 121px;                    /* caixa de 121px v-centralizada (fiel ao Figma) */
  margin: 40px 0 0 4px;
}

.hero-blog__title-accent {
  color: var(--color-accent);
}

.hero-blog__subtitle {
  font-size: 1.25rem;                    /* 20px */
  font-weight: var(--font-weight-regular);
  color: var(--color-white);
  line-height: 1.396;
  max-width: 489px;
  margin: 1px 0 0 2px;
}

.hero-blog__subtitle-accent {
  color: var(--color-accent);
}

/* --- Estatísticas --- */
.hero-blog__stats {
  margin-top: 37px;
  margin-left: 2px;
  gap: 22px;
  flex-wrap: wrap;
}

.hero-blog__intro { max-width: 100%; min-width: 0; }

.stat-chip {
    width: 149px;
    height: 66px;
    padding-left: 1px;
    padding-top: 3px;
    background-color: rgb(28 0 77 / 58%);
    border: 1px solid var(--hero-card-border);
    border-radius: 14.9px / 11.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-chip__value {
  font-size: 1.25rem;                    /* 20px */
  font-weight: var(--font-weight-extrabold);
  color: var(--color-accent);
  line-height: normal;
  margin: 0;
}

.stat-chip__label {
  font-size: 0.875rem;                   /* 14px */
  font-weight: var(--font-weight-regular);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.25rem;                  /* 20px */
  margin: 3px 0 0;                       /* respiro entre valor e rótulo (fiel ao Figma) */
}


/* ============================================================ */
/* COMPONENT: FEATURED POST (post em destaque)                 */
/* ============================================================ */
.featured-post {
    position: relative;
    width: min(456px, 100%);
    min-height: 429px;
    height: auto;
    background-color: #22325C;
    /* Stroke como sombra interna: sobre o fundo, sob o header (fiel ao Figma) */
    box-shadow: inset 0 0 0 1px var(--hero-card-border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.featured-post__track {
  display: flex;
  flex-wrap: nowrap;
  flex: 1 1 auto;
  min-height: 0;
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.featured-post__slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* --- Cabeçalho ilustrado (Gente Lean) --- */
.featured-post__header {
  aspect-ratio: var(--content-card-image-ratio);
  background: linear-gradient(135deg, rgba(255, 128, 0, 0.10) 0%, rgba(57, 65, 149, 0.12) 100%);
}

.featured-post__image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.featured-post__header img {
  display: block;
  width: 100%;
  height: 100%;
  margin-left: 0;
  /* O PNG exportado traz o gradiente do fundo nos cantos; o recorte
     arredondado descarta esses pixels e revela o navy do card atrás */
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
}

/* --- Corpo --- */
.featured-post__body {
  padding: 9px 23.5px 0;
}

.featured-post__badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 0.625rem;
  font-weight: var(--fw-bold);
  line-height: normal;
  border-radius: 4px;
  padding: 4px 10px;
}

.featured-post__badge.featured-post__badge--intro {
  color: #ffffff;
  background-color: rgba(57, 65, 149, 0.72);
}

.post-card__tag.post-card__tag--intro {
  color: #ffffff;
  background-color: rgba(57, 65, 149, 0.72);
}

.featured-post__title {
  font-size: 1.25rem;                    /* 20px */
  font-weight: var(--font-weight-extrabold);
  color: var(--color-white);
  line-height: 23px;
  max-width: 416px;
  margin: 14.25px 0 0;
}

.featured-post__desc {
  font-size: 0.875rem;                   /* 14px */
  font-weight: var(--font-weight-regular);
  color: var(--color-white);
  line-height: 1.25rem;                  /* 20px */
  max-width: 394px;
  margin: 6px 0 0;
}

.featured-post__author {
  font-size: 0.625rem;                   /* 10px */
  font-weight: var(--font-weight-regular);
  color: var(--color-white);
  line-height: normal;
  margin: 13px 0 0;
}

.featured-post__link {
  display: inline-block;
  font-size: 0.6875rem;                  /* 11px */
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  text-decoration: none;
  margin-top: 14px;
  transition: color 0.2s;
}

.featured-post__link:hover {
  color: var(--color-accent-dark);
}

.featured-post__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  height: 61px;
  margin-top: 9px;
  padding: 0 16px 0 24px;
  flex-shrink: 0;
}

.featured-post__dots {
  gap: 8px;
}

.featured-post__dot {
  width: 9px;
  height: 9px;
  border-radius: 4.5px;
  background-color: rgba(255, 255, 255, 0.18);
  border: 0;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.featured-post__dot:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.featured-post__dot--active {
  width: 25px;
  background-color: var(--color-accent);
}

.featured-post__nav {
  gap: 9px;
}

.featured-post__nav-btn {
  width: 32px;
  height: 30px;
  border: none;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-primary);
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.featured-post__nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}


/* ============================================================ */
/* RESPONSIVO                                                  */
/* ============================================================ */
@media (max-width: 1140px) {
  .hero-blog__container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-blog__container > .d-flex {
    flex-wrap: wrap;
    gap: 48px;
  }

  .featured-post { margin-inline: auto; }

  .hero-blog__title {
    text-align: center;
    margin-left: 0;
  }

  .hero-blog__subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  .hero-blog__stats {
    justify-content: center;
    margin-left: 0;
  }
}

@media (max-width: 992px) {
  .hero-blog__title {
    font-size: 2.75rem;
    line-height: normal;
    margin-top: 0;
  }
}

@media (max-width: 576px) {
  .hero-blog__title {
    font-size: 2rem;
  }

  .hero-blog__subtitle {
    font-size: 1rem;
  }

  .stat-chip {
    width: 130px;
  }

  .featured-post {
    width: 100%;
    height: auto;
    padding-bottom: 24px;
  }

  .featured-post__header img {
    width: 100%;
    height: auto;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-post__track { transition: none; }
}

/* ============================================================ */
/* DESIGN TOKENS — Busque novos conhecimentos lean (blog-lean)  */
/* ============================================================ */
/* .busque também: o /vocabulario usa esta seção sem o .blog-page em volta e ficava sem cores/pesos/bordas. */
.blog-page,
.busque {
  /* Cores base */
  --color-navy-deep:       #29235c;
  --color-accent:          #ff8000;
  --color-accent-dark:     #e67300;
  --color-text-muted:      #666666;

  /* Tipo / busca */
  --color-tipo-label:      #47454f;
  --color-tipo-value:      #140b47;
  --color-tipo-bg:         #f7f2f8;
  --color-input-border:    #e2e0f0;

  /* Superfícies */
  --color-section-bg:      #fcf8fe;
  --color-card-bg:         #fcf8fe;
  --busque-card-border:    #e2e0f0;

  /* Tags */
  --color-tag-navy-deep:   #29235c;
  --color-tag-navy-deep-bg: rgba(41, 35, 92, 0.16);
  --color-tag-indigo:      #394195;
  --color-tag-indigo-bg:   rgba(57, 65, 149, 0.16);
  --color-tag-lilac:       #cb6ce6;
  --color-tag-lilac-bg:    rgba(203, 108, 230, 0.18);
  --color-tag-teal:        #169194;
  --color-tag-teal-bg:     rgba(22, 145, 148, 0.2);
  --color-tag-orange:      #ff8000;
  --color-tag-orange-bg:   rgba(255, 128, 0, 0.2);
  --color-tag-amber:       #ffa626;
  --color-tag-amber-bg:    rgba(255, 166, 38, 0.2);

  /* Sidebar — 3 destaques */
  --color-aside-purple:    #cb6ce6;
  --color-aside-purple-bg: rgba(203, 108, 230, 0.07);
  --color-aside-navy:      #394195;
  --color-aside-navy-bg:   rgba(57, 65, 149, 0.07);
  --color-aside-teal:      #169194;
  --color-aside-teal-bg:   rgba(22, 145, 148, 0.07);

  /* Tipografia */
  --font-primary:          'Roboto', sans-serif;
  --fw-regular:            400;
  --fw-bold:               700;
  --fw-extrabold:          800;
}


/* ============================================================ */
/* GLOBAL                                                      */
/* ============================================================ */
.blog-page {
  font-family: var(--font-primary);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}


/* ============================================================ */
/* SECTION                                                     */
/* ============================================================ */
.busque {
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  background-color: var(--color-section-bg);
  padding: 61px 0 80px;
}

/* Container: conteúdo entre 114px e 103px no frame de 1440 (largura útil 1223px);
   o padding esquerdo de 11px reproduz as margens assimétricas do Figma */
.busque__container {
  max-width: 1234px;
  margin: 0 auto;
  padding: 0 0 0 11px;
}


/* ============================================================ */
/* CABEÇALHO                                                   */
/* ============================================================ */
.busque__title {
  font-size: 2.375rem;                 /* 38px */
  font-weight: var(--fw-extrabold);
  color: var(--color-navy-deep);
  line-height: 1.05;
  margin: 0;
}

.busque__title-underline {
  width: 36px;
  height: 3px;
  background-color: var(--color-accent);
  margin-top: 19px;
  margin-bottom: 28px;
}


/* ============================================================ */
/* LAYOUT: coluna principal + sidebar de filtros               */
/* ============================================================ */
.busque__layout {
  display: flex;
  gap: 66px;
}

.busque__main {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 846px;
}

.busque__rail {
  flex: 0 0 311px;
  max-width: 311px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.busque__filtros {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid var(--color-input-border);
  border-radius: 12px;
  padding: 22px 20px 24px;
}

.busque__filtros-title {
  display: flex;
  align-items: center;
  border-left: 2px solid var(--color-accent);
  padding-left: 12px;
  font-size: 1.5rem;                              /* 24px */
  font-weight: var(--fw-extrabold);
  color: var(--color-navy-deep);
  line-height: normal;
  margin: 0 0 18px;
}

.busque__filtros .search-bar {
  width: 100%;
  margin-bottom: 14px;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Botão Filtrar — navy, largura total */
.filters__submit {
  width: 100%;
  height: 44px;
  background-color: var(--color-tipo-value);      /* #140b47 — navy, igual a artigos */
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 4px;
}

.filters__submit:hover {
  background-color: var(--color-navy-deep);       /* #29235c */
}

/* Link "Limpar filtros" — mesmo padrão do calendário/eventos */
.filters__clear {
  display: inline-block;
  font-size: 0.8125rem;                  /* 13px */
  font-weight: var(--fw-regular);
  color: var(--color-accent);
  text-decoration: underline;
  margin-top: 14px;
}

.filters__clear:hover {
  color: var(--color-accent-dark);
}


/* ============================================================ */
/* COMPONENT: DROPDOWN DE FILTRO (padronizado)                */
/* ============================================================ */
.field-select { width: 100%; position: relative; }

.field-select__label {
  font-size: 0.75rem;            /* 12px */
  font-weight: var(--fw-bold);
  color: var(--color-tipo-label);  /* #47454f */
  letter-spacing: 0.6px;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0 0 6px;
}

/* Linha 38px — gêmea da busca */
.field-select__control {
  position: relative;
  display: flex;
  align-items: center;
  height: 38px;
  background-color: #ffffff;
  border: 1px solid var(--color-input-border);   /* #e2e0f0 */
  border-radius: 10px;
  padding: 0 44px 0 14px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.field-select__control:hover,
.field-select__control:focus-within {
  border-color: var(--color-accent);             /* #ff8000 */
}

.field-select__value {
  flex: 1 1 auto;
  min-width: 0;                  /* permite truncar com ellipsis dentro do flex */
  font-size: 0.875rem;           /* 14px */
  font-weight: var(--fw-bold);
  color: var(--color-tipo-value); /* #140b47 */
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Botão laranja — gêmeo do .search-bar__btn */
.field-select__btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 7px;
  background-color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.field-select__btn:hover { background-color: var(--color-accent-dark); }

/* chevron color is baked into the Lucide SVG stroke — no filter needed */

/* ----- Dropdown CSS-only via <details> (sem JS) ----- */
.field-select__control { list-style: none; }
.field-select__control::-webkit-details-marker { display: none; }
.field-select__control::marker { content: ""; }

.field-select__btn img { transition: transform 0.2s; }
.field-select[open] .field-select__btn img { transform: rotate(180deg); }

.field-select__menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background-color: #ffffff;
  border: 1px solid var(--color-input-border);     /* #e2e0f0 */
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(41, 35, 92, 0.14);
  max-height: 240px;
  overflow-y: auto;
}

/* ============================================================ */
/* DROPDOWN PADRÃO (Setor / Categoria) — IGUAL AO TEMAS         */
/* Alinhado 100% pixel-perfect com li[data-themes-cascade-      */
/* option='true'] (Temas primários/secundários) em:             */
/*  - font-weight: 500 / 700 ativo                              */
/*  - min-height: 36px                                           */
/*  - border: 1px solid transparente / laranja no ativo         */
/*  - mesmo alpha do bg ativo (0.10, não 0.16)                  */
/*  - transition incluindo border-color                         */
/*  - focus-visible com mesma sombra azul suave                 */
/* ============================================================ */
.blog-page .field-select__option {
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--color-tipo-value);
  line-height: 1.3;
  cursor: pointer;
  font-weight: 500 !important;
  background-color: transparent;
  border: 1px solid transparent;
  min-height: 36px;
  margin: 0 0 1px 0;
  box-sizing: border-box;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.blog-page .field-select__option:hover:not(.field-select__option--active) {
  background-color: rgba(13, 71, 161, 0.12);
  color: #0d47a1;
  border-color: rgba(13, 71, 161, 0.18);
}

.blog-page .field-select__option--active {
  background-color: rgba(255, 128, 0, 0.10) !important;
  border-color: rgba(255, 128, 0, 0.28) !important;
  color: var(--color-accent-dark) !important;
  font-weight: 700 !important;
}

.blog-page .field-select__option:focus-visible {
  outline: none !important;
  border-color: rgba(13, 71, 161, 0.45) !important;
  box-shadow: 0 0 0 2px rgba(13, 71, 161, 0.12);
}

/* ============================================================ */
/* DROPDOWN DE TEMAS (CHECKBOX STYLE — CASCADE FILTER)         */
/*                                                              */
/* Alinhado 100% ao .field-select__option padrão (Setor etc)   */
/* em padding/border-radius/fonte/transition. Apenas diverge:   */
/*  - Hover de item NÃO selecionado → LARANJA (padrão do site) */
/*  - Item SELECIONADO (ativo) → AZUL (conforme espec)         */
/* ============================================================ */

/* 1. Menu externo: padding/border-radius igual dropdown padrão */
.field-select[open] .field-select__menu {
  padding: 6px !important;           /* mesmo valor do .field-select__menu padrão */
  border-radius: 10px !important;    /* alinhado ao padrão global */
  max-height: 240px;
}

/* 2. Cada item do tema: MESMOS valores do .field-select__option padrão
      (padding 9x10, border-radius 6px, fonte 14px / 1.3).
      Alinhamento V+H pixel-perfect cross-browser (Chrome / FF / Safari):
      - display:flex (não inline-flex: bug Safari no alinhamento vertical)
      - align-items:center + justify-content:flex-start
      - flex-wrap: nowrap (checkbox + label sempre na mesma linha inicial)
      - min-height do container garante baseline mesmo em labels de 1 ou 2 linhas */
.field-select[open] .field-select__menu > li.field-select__option[data-themes-cascade-option='true'] {
  display: flex !important;
  align-items: center !important;              /* CENTRALIZA VERTICALMENTE checkbox ↔ texto */
  justify-content: flex-start !important;      /* alinha HORIZONTALMENTE à esquerda */
  flex-wrap: nowrap !important;                /* nunca quebra linha do checkbox separado */
  gap: 10px !important;
  padding: 9px 10px !important;
  border-radius: 6px !important;
  margin: 0 0 1px 0;
  cursor: pointer;
  background-color: transparent !important;
  border: 1px solid transparent !important;
  color: var(--color-tipo-value) !important;
  font-size: 0.875rem !important;              /* 14px — igual padrão */
  line-height: 1.3 !important;                 /* igual padrão */
  font-weight: 500 !important;
  letter-spacing: normal;
  text-transform: none;
  /* Altura mínima do item: checkbox 18px + padding vertical 18px = 36px (min).
     Se o label crescer p/ 2 linhas (texto longo), a altura cresce naturalmente
     e o align-items:center mantém checkbox centralizado com bloco do texto. */
  min-height: 36px !important;
  max-width: 100%;
  box-sizing: border-box !important;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  /* Correção cross-browser: evita subpixel rendering no Safari/FF */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Estado de foco (teclado / accessibility): borda azul sutil
   — checkbox e texto permanecem centralizados (mesmos estilos de base) */
.field-select[open] .field-select__menu > li.field-select__option[data-themes-cascade-option='true']:focus-visible {
  outline: none !important;
  border-color: rgba(13, 71, 161, 0.45) !important;
  box-shadow: 0 0 0 2px rgba(13, 71, 161, 0.12);
}

/* 3. HOVER em item NÃO SELECIONADO → AZUL */
.field-select[open] .field-select__menu > li.field-select__option[data-themes-cascade-option='true']:hover:not(.is-tema-option--active) {
  background-color: rgba(13, 71, 161, 0.12) !important;
  color: #0d47a1 !important;
}

/* 4. HOVER no checkbox do item NÃO selecionado — borda AZUL (micro feedback) */
.field-select[open] .field-select__menu > li.field-select__option[data-themes-cascade-option='true']:hover:not(.is-tema-option--active) > span:first-child[aria-hidden='true'] {
  border-color: #0d47a1 !important;
  background-color: rgba(13, 71, 161, 0.03) !important;
}

/* 5. Item SELECIONADO (ativo) → LARANJA */
.field-select[open] .field-select__menu > li.field-select__option[data-themes-cascade-option='true'].is-tema-option--active {
  background-color: rgba(255, 128, 0, 0.10) !important;
  border-color: rgba(255, 128, 0, 0.28) !important;
  color: var(--color-accent-dark) !important;
  font-weight: 700 !important;
}

/* 6. Estado INACTIVE: limpo, sem bordas estranhas */
.field-select[open] .field-select__menu > li.field-select__option[data-themes-cascade-option='true']:not(.is-tema-option--active) {
  background-color: transparent !important;
  border-color: transparent !important;
  border-left: none !important;
  border-inline-start: none !important;
}

/* 7. Fake checkbox (span criado por JS): ALINHAMENTO CROSS-BROWSER
      - display: FLEX (não inline-flex: resolve 90% dos bugs de baseline no Safari)
      - flex-shrink: 0 (nunca encolhe em textos longos / mobile)
      - align-self: center (garantia extra de centralização vertical no li) */
.field-select[open] .field-select__menu > li.field-select__option[data-themes-cascade-option='true'] > span:first-child[aria-hidden='true'] {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;                    /* tamanho fixo do checkbox, nunca encolhe */
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 5px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  border: 1.5px solid #A5B1BC !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #ffffff !important;
  display: flex !important;                     /* display:flex, não inline-flex (fix Safari) */
  align-items: center !important;               /* CENTRO HORIZONTAL do checkmark ✓ */
  justify-content: center !important;           /* CENTRO VERTICAL do checkmark ✓ */
  box-sizing: border-box !important;
  transition: all 0.15s ease;
  user-select: none;
  line-height: 1 !important;                    /* elimina espaço extra "descender" no glyph ✓ */
  text-indent: 0 !important;
  vertical-align: middle;
  align-self: center !important;                /* garantia extra: centro vertical no li */
  text-align: center;
  overflow: hidden;
}

/* 8. Fake checkbox ATIVO → LARANJA (item selecionado) */
.field-select[open] .field-select__menu > li.field-select__option[data-themes-cascade-option='true'].is-tema-option--active > span:first-child[aria-hidden='true'] {
  background-color: #ff8000 !important;
  border-color: #ff8000 !important;
  color: #ffffff !important;
}

/* 9. Label do texto do tema: ALINHAMENTO PIXEL-PERFECT CROSS-BROWSER
      - display: FLEX (não inline-flex: resolve bug Safari baseline / espaço extra abaixo)
      - align-items: center → centraliza VERTICALMENTE o texto dentro do label,
        igualando a baseline do texto com o centro do checkbox.
      - line-height: 1.25 → reduz espaço extra descender vs. 1.3 (screenshot 2)
      - min-height: 18px → garante altura mínima IGUAL ao checkbox (18px)
      - micro-padding block: 0.5px para acomodar descenders (ç, g, p) sem
        desalinhar o centro com o checkbox. */
.field-select[open] .field-select__menu > li.field-select__option[data-themes-cascade-option='true'] > span.field-select__label {
  display: flex !important;                     /* block-level (não inline-flex) */
  align-items: center !important;               /* V centro no label */
  justify-content: flex-start !important;       /* H alinhado à esquerda */
  flex: 1 1 auto !important;
  flex-grow: 1 !important;
  flex-shrink: 1 !important;
  min-width: 0 !important;                      /* permite word-break no flex */
  min-height: 18px !important;                  /* altura MÍNIMA = checkbox (18px) */
  max-width: 100%;
  box-sizing: border-box !important;
  font-size: inherit !important;
  line-height: 1.25 !important;                 /* 1.25 < 1.3: elimina espaço extra descender */
  letter-spacing: normal !important;
  text-transform: none !important;
  font-weight: inherit !important;
  color: inherit !important;
  align-self: center !important;                /* centro vertical no li */
  text-align: left !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  padding-block: 0.5px !important;              /* micro-padding p/ descenders (ç/g/p) */
  /* Cross-browser baseline fix (Safari) */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}


/* Barra de busca */
.search-bar {
  flex: 1 1 auto;
  position: relative;
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid var(--color-input-border);
  border-radius: 10px;
  padding: 0 5px 0 49px;
  height: 38px;                          /* mesma altura da busca de treinamentos */
}

.search-bar__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.search-bar__input {
  flex: 1 1 auto;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-primary);
  font-size: 0.875rem;                 /* 14px */
  color: var(--color-text-muted);
  padding: 0;
}

.search-bar__input::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}

.search-bar__btn {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 7px;
  background-color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-bar__btn:hover {
  background-color: var(--color-accent-dark);
}


/* ============================================================ */
/* GRID DE POSTS                                               */
/* ============================================================ */
.blog-results-summary {
  padding: 0 0 14px;
}

.blog-results-summary__title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: var(--fw-bold);
  color: var(--color-text-muted);
  line-height: 1.35;
}

.blog-results-summary__filter {
  margin: 0 0 4px;
  font-size: 0.88rem;
  color: var(--color-navy-deep);
  line-height: 1.45;
}

.blog-results-summary__count {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(74, 74, 74, 0.78);
  line-height: 1.5;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 412px));
  gap: 30px 22px;
}

.blog-empty-state {
  padding: 6px 0 0;
  max-width: 520px;
}

.blog-empty-state__title {
  font-size: 1.375rem;
  font-weight: var(--fw-extrabold);
  color: var(--color-navy-deep);
  line-height: 1.2;
  margin: 0 0 10px;
}

.blog-empty-state__text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

.post-card {
  min-height: 425px;
  display: flex;
  flex-direction: column;
  background-color: var(--color-card-bg);
  border: 1px solid var(--busque-card-border);
  border-radius: 14px;
  overflow: hidden;
}

.post-card__image {
  display: block;
  aspect-ratio: var(--content-card-image-ratio);
  flex: 0 0 auto;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 128, 0, 0.08) 0%, rgba(57, 65, 149, 0.10) 100%);
}

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

.post-card__image.media-fit--contain img,
.featured-post__header.media-fit--contain img {
  object-fit: contain;
}

.post-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 20px 22px 13px;
}

/* Tag */
.post-card__tag {
  align-self: flex-start;
  font-size: 0.625rem;                 /* 10px */
  font-weight: var(--fw-bold);
  line-height: normal;
  border-radius: 4px;
  padding: 4px 10px;
}

.tag-tone--navy-deep {
  color: var(--color-tag-navy-deep);
  background-color: var(--color-tag-navy-deep-bg);
}

.tag-tone--indigo {
  color: var(--color-tag-indigo);
  background-color: var(--color-tag-indigo-bg);
}

.tag-tone--lilac {
  color: var(--color-tag-lilac);
  background-color: var(--color-tag-lilac-bg);
}

.tag-tone--teal {
  color: var(--color-tag-teal);
  background-color: var(--color-tag-teal-bg);
}

.tag-tone--orange {
  color: var(--color-tag-orange);
  background-color: var(--color-tag-orange-bg);
}

.tag-tone--amber {
  color: var(--color-tag-amber);
  background-color: var(--color-tag-amber-bg);
}

.featured-post__badge.tag-tone--navy-deep,
.featured-post__badge.tag-tone--indigo,
.featured-post__badge.tag-tone--lilac,
.featured-post__badge.tag-tone--teal,
.featured-post__badge.tag-tone--orange,
.featured-post__badge.tag-tone--amber,
.post-card__tag.tag-tone--navy-deep,
.post-card__tag.tag-tone--indigo,
.post-card__tag.tag-tone--lilac,
.post-card__tag.tag-tone--teal,
.post-card__tag.tag-tone--orange,
.post-card__tag.tag-tone--amber {
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.post-card__title {
  font-size: 1rem;                     /* 16px */
  font-weight: var(--fw-extrabold);
  color: var(--color-navy-deep);
  line-height: 1.25rem;                /* 20px */
  margin: 10px 0 0;
}

.post-card__excerpt {
  font-size: 0.875rem;                 /* 14px */
  font-weight: var(--fw-regular);
  color: var(--color-text-muted);
  line-height: 1.25rem;                /* 20px */
  margin: 8px 0 0;
}

/* Caixas de texto mais estreitas que o corpo (fiéis ao Figma);
   nos cards de saúde o excerpt também sobe 2px no design */
.post-card__excerpt--w349 {
  max-width: 349px;
  margin-top: 6px;
}

.post-card__excerpt--w354 {
  max-width: 354px;
}

.post-card__author {
  font-size: 0.625rem;                 /* 10px */
  font-weight: var(--fw-regular);
  color: var(--color-text-muted);
  line-height: 1rem;                   /* 16px */
  margin: 7px 0 0;
}

.post-card__link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 11px;
  font-size: 0.75rem;                  /* 12px */
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.post-card__link:hover {
  color: var(--color-accent-dark);
}


/* ============================================================ */
/* CARREGAR MAIS                                               */
/* ============================================================ */
.busque__more {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.busque__more-btn {
  background-color: #ffffff;
  border: 1px solid var(--busque-card-border);
  border-radius: 8px;
  padding: 11px 25.5px;
  font-family: var(--font-primary);
  font-size: 0.875rem;                 /* 14px */
  font-weight: var(--fw-bold);
  line-height: 20px;
  color: var(--color-navy-deep);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.busque__more-btn:hover {
  background-color: #f7f2f8;
  border-color: #d6d3ea;
}


/* ============================================================ */
/* SIDEBAR — 3 destaques                                       */
/* ============================================================ */
.busque__aside {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: 6px;                       /* alinha ao topo visual do título */
}

.aside-card {
  position: relative;
  min-height: 237px;
  border-radius: 14px;
  overflow: hidden;
  padding: 41px 22px 24px 35px;
}

/* Espaçamentos entre cards (24px e 22px, fiéis ao Figma) */
.aside-card--leanmail {
  margin-top: 24px;
}

.aside-card--academia {
  margin-top: 22px;
}

/* Barra colorida superior */
.aside-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1px;
  right: 1px;
  height: 9px;
}

.aside-card__icon {
  width: 45.53px;
  height: 46px;
  border-radius: 50%;
  background-color: rgba(128, 128, 128, 0.11);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -9px 0 8px -9px;               /* círculo a 26px da borda; título 8px abaixo */
}

.aside-card__title {
  font-size: 1rem;                     /* 16px */
  font-weight: var(--fw-extrabold);
  color: var(--color-navy-deep);
  line-height: 1.25rem;                /* 20px */
  margin: 0;
}

.aside-card__desc {
  font-size: 0.875rem;                 /* 14px */
  font-weight: var(--fw-regular);
  color: var(--color-text-muted);
  line-height: 1.25rem;                /* 20px */
  margin: 10px 0 0;
}

.aside-card__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.875rem;                 /* 14px */
  font-weight: var(--fw-extrabold);
  line-height: 1.25rem;
  text-decoration: none;
}

/* Variação roxa — Dando os primeiros passos */
.aside-card--passos {
  background-color: var(--color-aside-purple-bg);
}
.aside-card--passos::before { background-color: var(--color-aside-purple); }
.aside-card--passos .aside-card__link { color: var(--color-aside-purple); }

/* Variação azul — LeanMail */
.aside-card--leanmail {
  background-color: var(--color-aside-navy-bg);
}
.aside-card--leanmail::before { background-color: var(--color-aside-navy); }
.aside-card--leanmail .aside-card__link { color: var(--color-aside-navy); }

/* Variação teal — Academia lean */
.aside-card--academia {
  background-color: var(--color-aside-teal-bg);
}
.aside-card--academia::before { background-color: var(--color-aside-teal); }
.aside-card--academia .aside-card__link { color: var(--color-aside-teal); }


/* ============================================================ */
/* RESPONSIVO                                                  */
/* ============================================================ */
@media (max-width: 1260px) {
  .busque__container {
    padding: 0 24px;
  }
}

@media (max-width: 1180px) {
  .busque__layout {
    flex-direction: column;
    gap: 40px;
  }
  .busque__rail { display: contents; }
  .busque__filtros { order: 1; max-width: 100%; }
  .busque__main { order: 2; max-width: 100%; }
  .busque__aside { order: 3; }
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .posts-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 576px) {
  .busque__title {
    font-size: 1.75rem;
  }
}

/* ============================================================ */
/* SECTION: EXPLORE NOVOS FORMATOS NA CENTRAL DO CONHECIMENTO    */
/* node 1732:1711 — Novo-Site-LIB                               */
/* ============================================================ */

.blog-page {
  --exp-bg:        #ffffff;
  --exp-navy:      #29235c;
  --exp-orange:    #ff8000;
  --exp-text-body: #666666;
  --exp-spotify:   #1db954;
  --exp-youtube:   #ff0000;
  --exp-font:      'Roboto', sans-serif;
  --exp-h2-size:   2.375rem;   /* 38px */
  --exp-h3-size:   1rem;       /* 16px */
  --exp-body-size: 1.25rem;    /* 20px */
  --exp-cta-size:  0.875rem;   /* 14px */
}

/* ---- Section ---- */
.explore {
  font-family: var(--exp-font);
  background-color: var(--exp-bg);
  position: relative;
  overflow: hidden;
}

/* Círculos decorativos — node 1732:1716 (lilás) e 1732:1717 (teal) */
.explore::before {
  content: '';
  position: absolute;
  top: 0;
  right: 12%;
  width: 512px;
  height: 512px;
  border-radius: 50%;
  background: rgba(203, 108, 230, 0.07);
  pointer-events: none;
  z-index: 0;
}

.explore::after {
  content: '';
  position: absolute;
  bottom: -130px;
  left: -90px;
  width: 382px;
  height: 382px;
  border-radius: 50%;
  background: rgba(22, 145, 148, 0.07);
  pointer-events: none;
  z-index: 0;
}

.explore__container {
  max-width: 1280px;
  padding-left: 64px;
  padding-right: 64px;
  position: relative;
  z-index: 1;
}

/* ---- Heading block ---- */
.explore__title {
  font-size: var(--exp-h2-size);
  font-weight: 800;
  line-height: 1.1;
  color: var(--exp-navy);
  max-width: 533px;
  margin-bottom: 22px;
}

.explore__divider {
  width: 48px;
  height: 3px;
  background-color: var(--exp-orange);
  margin-bottom: 26px;
}

.explore__subtitle {
  font-size: var(--exp-body-size);
  font-weight: 400;
  line-height: 1.4;
  color: var(--exp-text-body);
  max-width: 466px;
  margin-bottom: 0;
}

/* ---- Cards ---- */
/* Grade 2×2 com largura fixa de 245px por card (igual ao Figma),       */
/* alinhada à esquerda da coluna para o círculo lilás aparecer ao redor */
.explore__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 245px));
  gap: 16px;
  justify-content: start;
}

.explore__card {
  background-color: #ffffff;
  border-radius: 10px;
  border-bottom: 3px solid var(--exp-orange);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.07);
  padding: 17px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 121px;
}

.explore__card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
}

/* Quadrado colorido do ícone */
.explore__card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 45px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.explore__card-icon img {
  display: block;
  width: 22px;
  height: 22px;
}

.explore__card-icon--spotify  { background-color: var(--exp-spotify); }
.explore__card-icon--youtube  { background-color: var(--exp-youtube); }
.explore__card-icon--livraria { background-color: var(--exp-orange); }
.explore__card-icon--central  { background-color: var(--exp-navy); }

.explore__card-title {
  font-size: var(--exp-h3-size);
  font-weight: 800;
  line-height: 1.25;
  color: var(--exp-navy);
  margin: 0;
}

.explore__card-cta {
  display: block;
  text-align: center;
  font-size: var(--exp-cta-size);
  font-weight: 800;
  line-height: 1.43;
  color: var(--exp-orange);
  text-decoration: none;
  transition: color 0.15s ease;
}

.explore__card-cta:hover {
  color: #e67200;
  text-decoration: underline;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .explore::before { right: 0; }
  .explore__title,
  .explore__subtitle { max-width: 100%; }
  /* Grade ocupa toda a largura disponível ao empilhar abaixo do texto */
  .explore__grid {
    grid-template-columns: repeat(2, minmax(0, 245px));
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .explore__container {
    padding-left: 24px;
    padding-right: 24px;
  }
  .explore__title { font-size: 2rem; }
  .explore__subtitle { font-size: 1.125rem; }
}

@media (max-width: 575.98px) {
  .explore__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ============================================================ */
/* MOTION (leanweb-ui-standardizer) — preload + hover-zoom      */
/* O reveal vem de reveal-animations.css; aqui só o da página.  */
/* ============================================================ */

/* 1ª dobra: esconde o hero até o JS remover o preload (sem flash).
   Sem JS, o <noscript> da view reexibe. */
.blog-page--preload .hero-blog__title,
.blog-page--preload .hero-blog__subtitle,
.blog-page--preload .hero-blog__stats .stat-chip,
.blog-page--preload .featured-post {
  opacity: 0;
}

/* Hover-zoom — clip SEMPRE no contêiner direto da <img>, nunca na <img>
   (senão o border-radius escalado vaza). .post-card__image já tem
   overflow:hidden; o featured precisa ganhar overflow no header e a
   <img> perde o raio (o card .featured-post já clipa com overflow:hidden). */
.featured-post__header {
  overflow: hidden;
}
.featured-post__header img {
  border-radius: 0;
}
.post-card__image img,
.featured-post__header img {
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .blog-page--preload .hero-blog__title,
  .blog-page--preload .hero-blog__subtitle,
  .blog-page--preload .hero-blog__stats .stat-chip,
  .blog-page--preload .featured-post {
    opacity: 1;
  }
}

/* ============================================================ */
/* SLIDE-UP (mg-btn) — contrato portado da Academia/Artigos.    */
/* texto+seta sobe no hover/focus revelando uma 2a copia; o     */
/* upgrade do markup vem do initMgButtons (mgButtons.js).       */
/* Escopado a .blog-page para nao vazar no layout global.       */
/* ============================================================ */
.blog-page {
  --mg-btn-swap-duration: 0.7s;
}

/* Anti-FOUC: enquanto o JS nao fez upgrade do botao (.mg-btn-nao adicionado),
   esconder conteudo visivel cru (texto nativo, svg, span) para evitar o "piscar"
   da ordem errada (icone direita → esquerda) e da estrutura sem swap.
   O esqueleto do botao (fundo, altura, raio, borda) fica intacto. */
.blog-page .mg-btn-auto:not(.mg-btn) {
  color: transparent !important;
}
.blog-page .mg-btn-auto:not(.mg-btn) > svg,
.blog-page .mg-btn-auto:not(.mg-btn) > img,
.blog-page .mg-btn-auto:not(.mg-btn) > span:not(.mg-btn__inner):not(.mg-btn__swap):not(.mg-btn__swap-text):not(.mg-btn__icon-wrap):not(.mg-btn__icon) {
  opacity: 0 !important;
  visibility: hidden !important;
}

.blog-page .mg-btn { position: relative; }
.blog-page .mg-btn__inner { display: inline-flex; align-items: center; gap: 10px; }
.blog-page .mg-btn__swap { position: relative; display: inline-grid; overflow: hidden; padding-bottom: 2px; }
.blog-page .mg-btn__swap-text {
  grid-area: 1 / 1;
  transition: transform var(--mg-btn-swap-duration, .42s) cubic-bezier(.2, .7, .2, 1);
}
.blog-page .mg-btn__swap-text.is-absolute { position: absolute; inset: 0; transform: translate3d(0, 130%, 0); }
.blog-page .mg-btn:hover .mg-btn__swap-text.is-absolute,
.blog-page .mg-btn:focus-visible .mg-btn__swap-text.is-absolute { transform: translate3d(0, 0, 0); }
.blog-page .mg-btn:hover .mg-btn__swap-text.is-relative,
.blog-page .mg-btn:focus-visible .mg-btn__swap-text.is-relative { transform: translate3d(0, -130%, 0); }

/* Sem animacao de swap em reduced-motion: trava no estado de repouso. */
@media (prefers-reduced-motion: reduce) {
  .blog-page .mg-btn__swap-text { transition: none; }
  .blog-page .mg-btn:hover .mg-btn__swap-text.is-absolute,
  .blog-page .mg-btn:focus-visible .mg-btn__swap-text.is-absolute { transform: translate3d(0, 130%, 0); }
  .blog-page .mg-btn:hover .mg-btn__swap-text.is-relative,
  .blog-page .mg-btn:focus-visible .mg-btn__swap-text.is-relative { transform: translate3d(0, 0, 0); }
}

/* mg-btn — suporte a ICONE (botao "Filtrar"): o icone faz o mesmo */
/* slide-up que o texto. mgButtons monta [texto][icone];          */
/* row-reverse devolve o icone para a esquerda (como no design).  */
.blog-page .mg-btn__icon { grid-area: 1 / 1; display: grid; place-items: center; transition: transform var(--mg-btn-swap-duration, .42s) cubic-bezier(.2, .7, .2, 1); }
.blog-page .mg-btn__icon.is-absolute { position: absolute; inset: 0; transform: translate3d(0, 130%, 0); }
.blog-page .mg-btn:hover .mg-btn__icon.is-absolute,
.blog-page .mg-btn:focus-visible .mg-btn__icon.is-absolute { transform: translate3d(0, 0, 0); }
.blog-page .mg-btn:hover .mg-btn__icon.is-relative,
.blog-page .mg-btn:focus-visible .mg-btn__icon.is-relative { transform: translate3d(0, -130%, 0); }
.blog-page .mg-btn__icon-wrap { width: var(--mg-icon-size, 16px); height: var(--mg-icon-size, 16px); padding-bottom: 0; }
.blog-page .mg-btn__icon svg { width: 100%; height: 100%; display: block; }

.blog-page .filters__submit .mg-btn__inner { flex-direction: row-reverse; }

@media (prefers-reduced-motion: reduce) {
  .blog-page .mg-btn__icon { transition: none; }
  .blog-page .mg-btn:hover .mg-btn__icon.is-absolute,
  .blog-page .mg-btn:focus-visible .mg-btn__icon.is-absolute { transform: translate3d(0, 130%, 0); }
  .blog-page .mg-btn:hover .mg-btn__icon.is-relative,
  .blog-page .mg-btn:focus-visible .mg-btn__icon.is-relative { transform: translate3d(0, 0, 0); }
}

/* ============================================================ */
/* z-index × reveal: o reveal deixa will-change:transform       */
/* permanente -> .busque__filtros e cada .aside-card viram      */
/* stacking contexts, e o menu do dropdown (.field-select__menu */
/* z-index:30) fica preso no contexto do filtro. Ordenar os     */
/* CONTÊINERES: filtro acima dos cards de destaque, senão a     */
/* barra/ícone do aside cobre o dropdown aberto.                */
/* ============================================================ */
.busque__filtros { position: relative; z-index: 2; }
.busque__aside { position: relative; z-index: 1; }

/* ============================================================ */
/* HOVERS de card (lift + sombra + borda) — padrao da Artigos.  */
/* Transicao UNICA incluindo opacity p/ NAO brigar com .reveal  */
/* (que controla a entrada). O zoom da imagem ja foi definido    */
/* na secao MOTION acima (clip no conteiner da <img>).           */
/* ============================================================ */
.post-card,
.explore__card,
.aside-card,
.featured-post {
  transition: opacity 0.6s ease,
              transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.28s ease,
              border-color 0.28s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 14px 30px rgba(41, 35, 92, 0.14);
}

.explore__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(41, 35, 92, 0.12);
}

.aside-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(41, 35, 92, 0.10);
}

.featured-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(20, 11, 71, 0.30);
}

@media (prefers-reduced-motion: reduce) {
  .post-card,
  .explore__card,
  .aside-card,
  .featured-post {
    transition: none;
  }
  .post-card:hover,
  .explore__card:hover,
  .aside-card:hover,
  .featured-post:hover {
    transform: none;
  }
}

/* ============================================================ */
/* BLOG EM LISTA                                                */
/* No /blog as publicações são uma lista de 1 coluna (imagem à  */
/* esquerda, linhas separando os posts) para diferenciar da     */
/* grade de cartões de /artigos. Escopo .blog-page: o blog.css  */
/* também é carregado em Temas e Vocabulário.                   */
/* ============================================================ */
.blog-page .posts-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.blog-page .post-card {
  flex-direction: row;
  align-items: flex-start;
  gap: 28px;
  min-height: 0;
  background: transparent;
  /* borda transparente reservada nos 4 lados: no hover vira laranja sem a publicação "pular" 1px */
  border: 1px solid transparent;
  border-bottom-color: #e2deef;
  border-radius: 0;
  padding: 26px 0;
}

.blog-page .post-card:first-child {
  border-top-color: #e2deef;
}

/* Hover como nos cartões: a publicação inteira sobe, com fundo branco e sombra (o texto não muda).
   No desktop o item ganha 20px de respiro lateral (compensado com margem negativa), para o fundo
   não encostar na imagem/texto; levantado, o item ganha a borda laranja dos cartões. */
@media (min-width: 768px) {
  .blog-page .post-card {
    margin: 0 -20px;
    padding: 26px 20px;
  }
}

.blog-page .post-card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
  border-bottom-color: #e2deef;
}

.blog-page .post-card:first-child:hover {
  border-top-color: #e2deef;
}

@media (hover: hover) and (min-width: 768px) {
  .blog-page .post-card:hover {
    transform: translateY(-4px);
    background: #ffffff;
    border-color: var(--color-accent);
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(41, 35, 92, 0.14);
  }

  /* o 1º item tem a linha de cima cinza (regra :first-child:hover, mais específica): no hover também fica laranja */
  .blog-page .post-card:first-child:hover {
    border-top-color: var(--color-accent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-page .post-card:hover {
    transform: none;
  }
}

.blog-page .post-card__image {
  /* mesmo formato de banner dos cards (imagem inteira, sem faixas) */
  flex: 0 0 320px;
  border-radius: 10px;
}

.blog-page .post-card__body {
  min-width: 0;
  padding: 0;
}

.blog-page .post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.blog-page .post-card__date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.blog-page .post-card__title {
  font-size: 1.25rem;
  line-height: 1.6rem;
  margin-top: 8px;
}

.blog-page .post-card__excerpt {
  max-width: none;
  font-size: 0.9375rem;
  line-height: 1.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-page .post-card__author {
  font-size: 0.75rem;
  margin-top: 10px;
}

.blog-page .post-card__link {
  margin-top: 12px;
  padding-top: 0;
  font-size: 0.8125rem;
}

@media (max-width: 767.98px) {
  .blog-page .post-card {
    gap: 14px;
    padding: 18px 0;
  }

  /* celular: miniatura quadrada preenchida (corta as laterais do banner) */
  .blog-page .post-card__image {
    flex-basis: 112px;
    aspect-ratio: 1 / 1;
  }

  .blog-page .post-card__image img,
  .blog-page .post-card__image.media-fit--contain img {
    object-fit: cover;
  }

  .blog-page .post-card__title {
    font-size: 1rem;
    line-height: 1.3rem;
  }

  .blog-page .post-card__excerpt {
    -webkit-line-clamp: 2;
    font-size: 0.8125rem;
    line-height: 1.2rem;
  }
}