.evt-post-feed {
  position: relative;
  width: 100%;
  padding: 0;
  color: var(--white);
  font-family: var(--evt-font-family-base);
}

.evt-post-feed * {
  box-sizing: border-box;
}

.evt-post-feed__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}

.evt-post-feed[aria-busy="true"] .evt-post-feed__grid {
  opacity: 0.68;
  pointer-events: none;
}

.evt-post-feed__empty {
  grid-column: 1 / -1;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  background: var(--secondary-darker);
  color: var(--white);
  box-shadow: var(--evt-shadow-card);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.evt-post-card {
  min-width: 0;
  height: 100%;
}

.evt-post-card__link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 32px;
  background: var(--secondary-darker);
  box-shadow: 0 2px 0 0 rgba(75, 90, 104, 0.30) inset, 0 30px 42px 0 rgba(0, 0, 0, 0.30) !important;
  text-decoration: none;
  color: var(--white) !important;
  gap: 24px;
}

.evt-post-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.78 / 1;
  background: var(--secondary-main);
}

.evt-post-card__image {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transform: scale(1);
  transition: transform var(--evt-transition-medium);
}

.evt-post-card__image--placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary-main) 0%, var(--secondary-dark) 100%);
}

.evt-post-card__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 0px 24px 24px 24px;
  min-height: 0;
  flex: 1 1 auto;
}

.evt-post-card__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.evt-post-card__category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: var(--evt-radius-pill);
  background: var(--tertiary-lighter);
  border-top: 1px solid var(--tertiary-main);
  border-bottom: 1px solid var(--tertiary-main);
  color: var(--tertiary-main);
  font-size: 10px;
  font-weight: 700;
  line-height: 12px;
  text-transform: uppercase;
  transition:
    background-color var(--evt-transition-fast),
    border-color var(--evt-transition-fast),
    color var(--evt-transition-fast);
}

.evt-post-card__title {
  margin: 0;
  color: var(--white) !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2em;
  transition: color var(--evt-transition-fast);
  overflow: visible;
  display: block;
}

.evt-post-card__footer {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.evt-post-card__author-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.evt-post-card__author-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50% !important;
  object-fit: cover;
  flex: 0 0 auto;
}

.evt-post-card__author-name,
.evt-post-card__date {
  font-size: 10px;
  line-height: 1.2em;
  text-transform: uppercase;
  font-weight: 700 !important;
  color: var(--secondary-light);
}

.evt-post-card__author-name {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evt-post-card__date {
  flex: 0 0 auto;
  text-align: right;
}

.evt-post-card__link:hover .evt-post-card__image,
.evt-post-card__link:focus-visible .evt-post-card__image {
  transform: scale(1.08);
}

.evt-post-card__link:hover .evt-post-card__category-pill,
.evt-post-card__link:focus-visible .evt-post-card__category-pill {
  background: var(--primary-lighter);
  color: var(--primary-main);
  border-top-color: var(--primary-main);
  border-bottom-color: var(--primary-main);
}

.evt-post-card__link:hover .evt-post-card__title,
.evt-post-card__link:focus-visible .evt-post-card__title {
  color: var(--primary-main);
}

.evt-post-card__link:focus-visible {
  outline: 2px solid var(--tertiary-main);
  outline-offset: 4px;
}

@media (max-width: 1024px) {


  .evt-post-feed__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .evt-post-card__link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    min-height: 0;
    height: auto;
    gap:0;
  }

  .evt-post-card__media {
    aspect-ratio: auto;
    min-height: 100%;
    height: auto;
  }

  .evt-post-card__image,
  .evt-post-card__image--placeholder {
    height: 100%;
  }

  .evt-post-card__content {
    padding: 20px 16px;
    justify-content: center;
    gap: 8px;
  }

  .evt-post-card__main {
    gap: 12px;
  }

  .evt-post-card__title {
    font-size: 16px;
    line-height: 1.2em;
  }

  .evt-post-card__footer {
    display: none;
  }
}

@media (min-width: 1025px) {

  /* PAI */
  .elementor-element.elementor-element-9d5c1c8.home-columns-feeds {
    display: grid !important;
    --display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important;
    gap: 32px !important;
    align-items: stretch !important;

    /* mata comportamento de flex do Elementor */
    flex-direction: initial !important;
    flex-wrap: nowrap !important;
  }

  /* FILHAS */
  .elementor-element.elementor-element-9d5c1c8.home-columns-feeds > .elementor-element.elementor-element-9616509.left-column,
  .elementor-element.elementor-element-9d5c1c8.home-columns-feeds > .elementor-element.elementor-element-ab89c35.right-column {
    display: flex !important;
    --display: flex !important;
    flex-direction: column !important;

    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 100% !important;

    /* reseta largura/flex que o Elementor pode ter aplicado */
    flex: initial !important;
    flex-basis: auto !important;
    grid-column: auto !important;

    --width: auto !important;
    --flex-basis: auto !important;
    --container-widget-width: 100% !important;
  }

  /* evita que algum child do Elementor force largura cheia e quebre o grid */
  .elementor-element.elementor-element-9d5c1c8.home-columns-feeds > .left-column,
  .elementor-element.elementor-element-9d5c1c8.home-columns-feeds > .right-column {
    justify-self: stretch !important;
    align-self: stretch !important;
  }

  .home-columns-feeds > .left-column > *,
  .home-columns-feeds > .right-column > * {
    min-height: 0;
  }

  .right-column .skeo-morph_orange {
    flex: 0 0 auto !important;
  }

  #may-you-like-section {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
  }

  #may-you-like-section > .elementor-widget-shortcode,
  #may-you-like-section > .elementor-widget-shortcode > .elementor-widget-container,
  #may-you-like-section > .elementor-widget-shortcode > .elementor-widget-container > .elementor-shortcode,
  #may-you-like {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    height: 100% !important;
  }

  .evt-may-you-like__grid {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
  }

  .left-column > .elementor-widget-shortcode,
  .left-column > .elementor-widget-shortcode > .elementor-widget-container,
  .left-column > .elementor-widget-shortcode > .elementor-widget-container > .elementor-shortcode,
  #news-home {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    height: 100% !important;
  }

  .evt-post-feed__grid {
    flex: 1 1 auto !important;
    min-height: 0 !important;
  }
}