/*
 * Post Titles 
 */

.wp-block-post-title a,
.sidebar-cats li a {
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.wp-block-post-title a:hover,
.sidebar-cats li a:hover {
  color: var(--wp--preset--color--black);
  background-color: var(--wp--preset--color--primary);
  transform: translateY(-2px);
} 


/*
 * Query Loop: si haces hover en cualquier parte de la tarjeta (imagen, categorías,
 * contenedor, etc.), aplicamos el mismo hover al título.
 *
 * Nota: :hover en el contenedor se activa también cuando haces hover en sus hijos.
 */
.slc-card:hover .wp-block-post-title a,
.slc-card:hover .slc-posts-query__title a,
.slc-card:hover .slc-post-card__title a,
.wp-block-post:hover .wp-block-post-title a,
.wp-block-post:hover .slc-posts-query__title a,
.wp-block-post:hover .slc-post-card__title a,
.slc-card:focus-within .wp-block-post-title a,
.slc-card:focus-within .slc-posts-query__title a,
.slc-card:focus-within .slc-post-card__title a,
.wp-block-post:focus-within .wp-block-post-title a,
.wp-block-post:focus-within .slc-posts-query__title a,
.wp-block-post:focus-within .slc-post-card__title a {
  color: var(--wp--preset--color--black);
  background-color: var(--wp--preset--color--primary);
  transform: translateY(-2px);
}




.slc-posts-query__title,
.slc-post-card__title {
	margin-bottom: 8px;
	font-weight: 800;
  line-height: 1.3;
}

.slc-posts-query__title a,
.slc-post-card__title a {
	color: var(--wp--preset--color--black);
	text-decoration: none;
}

/*
 * Post Image 
 */

 .entry-content img,
.wp-block-post-content img,
.slc-related-post__content img {
	max-width: 100%;
	height: auto;
	display: block;
}
/*
 * Post categories
 */

.hentry__category,
.slc-post-card__terms a {
  display: inline-block; /* 🔥 cambio importante */
  max-width: 90%;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--black);
  font-size: 0.8rem !important;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.04em;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.hentry__category:hover,
.hentry__category:focus-visible,
.slc-post-card__terms a:hover,
.slc-post-card__terms a:focus-visible {
  transform: translateY(-2px);
  filter: brightness(0.96);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.hentry__category:focus-visible,
.slc-post-card__terms a:focus-visible {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 3px;
}