:
/* Principal do box categoria 1 (altura controlada via CSS, sem JS) */
.box-cat-main-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* mobile base */
  background: #111 center/cover no-repeat;
  border-radius: 0.5rem;
  overflow: hidden;
  isolation: isolate;
  min-height: 200px;
}

@media (min-width: 768px) {
  .box-cat-main-thumb {
    aspect-ratio: 3 / 2;
  }
}

/* Desktop: altura fixa 324px (sem aspect-ratio) */
@media (min-width: 992px) {
  .box-cat-main-thumb {
    aspect-ratio: auto;
    height: 324px;
    min-height: 324px;
  }
}

/* Overlay com maior contraste para legibilidade */
.box-cat-main-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 1rem 0.9rem;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.45) 100%
  );
  pointer-events: none;
}

.box-cat-main-overlay h3,
.box-cat-main-overlay h3 a {
  margin: 0;
  color: #fff;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.55);
}

.box-cat-main-thumb > a.stretched-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Thumbs adicionais (estrutura semelhante às thumbs da TV) */
.cat-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 13 / 9;
  border-radius: 0.5rem;
  overflow: hidden;
}
@supports not (aspect-ratio: 1) {
  .cat-thumb {
    height: 0;
    padding-bottom: 69.23%;
  }
}
.cat-thumb-bg {
  position: absolute;
  inset: 0;
  background: #222 center/cover no-repeat;
}

/* Ajustes de layout dos posts adicionais */
.box-categoria .cat-post-title a {
  text-decoration: none;
  color: #111;
}

/* Remover estilos antigos que possam interferir */
.box-categoria .thumb-additional,
.box-cat-thumb-sm,
.box-cat-thumb-wrapper {
  display: none !important;
}

/* Acessibilidade foco */
.cat-thumb:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* =========================================================
   Box categoria v2 (2 colunas verticais como no print)
   ========================================================= */
.box-categoria--cols .box-category-header {
  display: block;
  margin-bottom: 1rem;
}

.box-categoria--cols .box-cat-title-link {
  display: inline-block;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--brand-green, #579C2E);
  text-decoration: none;
}

.box-categoria--cols .box-cat-title-underline {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 10px;
  background: #e9ecef; /* cinza leve (mesmo tom das divisórias) */
  border-radius: 999px;
  position: relative;
}
.box-categoria--cols .box-cat-title-underline::before{
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 56px;
  height: 3px;
  background: var(--brand-green, #579C2E);
  border-radius: 999px;
}

/* Destaque (thumb grande + título dentro em verde sólido) */
.box-categoria--cols .box-cat-feature {
  margin: 0;
}

.box-categoria--cols .box-cat-feature-link {
  position: relative;
  display: block;
  border-radius: 0.75rem;
  overflow: hidden;
  isolation: isolate;
  min-height: 220px;
  text-decoration: none;
}

@media (min-width: 992px) {
  .box-categoria--cols .box-cat-feature-link {
    min-height: 300px;
  }
}

.box-categoria--cols .box-cat-feature-bg {
  position: absolute;
  inset: 0;
  background: #111 center/cover no-repeat;
  transform: scale(1.001);
  background-position: center top;
}

.box-categoria--cols .box-cat-feature-title {
  position: absolute;
  height: 78px;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  background: var(--brand-green, #579C2E); /* sólido como no print */
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  text-shadow: none;
}

/* Clamp do texto do destaque (2 linhas) */
.box-categoria--cols .box-cat-feature-title{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.box-categoria--cols .box-cat-feature-link:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

/* Lista de menores */
.box-categoria--cols .box-cat-mini-list {
  margin-top: 14px;
  display: grid;
  gap: 0;
  border-top: 1px solid #e9ecef;
}

.box-categoria--cols .box-cat-mini {
  padding: 12px 0;
  border-bottom: 1px solid #e9ecef;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
}

.box-categoria--cols .box-cat-mini-thumb {
  display: block;
  width: 100%;
  height: 100px;
  aspect-ratio: auto; /* garante que a altura prevaleça */
  border-radius: 0.6rem;
  overflow: hidden;
  position: relative;
  background: #222;
}

@supports not (aspect-ratio: 1) {
  .box-categoria--cols .box-cat-mini-thumb {
    height: 0;
    padding-bottom: 62.5%;
  }
}

.box-categoria--cols .box-cat-mini-thumb-bg {
  position: absolute;
  inset: 0;
  background: #222 center/cover no-repeat;
}

.box-categoria--cols .box-cat-mini-title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 600;
}

.box-categoria--cols .box-cat-mini-title a {
  color: var(--text-link-green, #111);
}

.box-categoria--cols .box-cat-mini-thumb:focus-visible {
  outline: 2px solid var(--text-link-green, #111);
  outline-offset: 3px;
}