.enege-pdg-dynamic,
.enege-pdg-dynamic * {
  box-sizing: border-box;
}

.enege-pdg-dynamic {
  width: 100%;
  min-width: 0;
  color: #f5f6f6;
  font-family: Montserrat, Arial, sans-serif;
}

/* Imagem única dos novos heros (Inversores, CLP e Banco de Capacitores). */
.enege-pdg-category-hero-image {
  width: 100%;
}

.enege-pdg-category-hero-image img {
  display: block;
  width: auto !important;
  max-width: 100%;
  max-height: 490px;
  margin: 0 auto;
  object-fit: contain;
}

.enege-pdg-category-hero-image--banco-de-capacitores img {
  max-height: 500px;
}

/* O JSON V3 marca o contêiner que recebe a biblioteca. Se nenhum Equipamento
   tiver material, o espaço inteiro desaparece em vez de deixar uma faixa vazia. */
.enege-pdg-dynamic-host:not(:has(.enege-pdg-dynamic)) {
  display: none !important;
}

.enege-pdg-dynamic__section {
  width: 100%;
  margin: 0 0 72px;
}

.enege-pdg-dynamic__section:last-child {
  margin-bottom: 0;
}

.enege-pdg-dynamic__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin: 0 0 24px;
  padding: 0 0 16px;
  border-bottom: 1px solid #31383a;
}

.enege-pdg-dynamic__header > div {
  min-width: 0;
}

.enege-pdg-dynamic__eyebrow {
  display: block;
  margin: 0 0 7px;
  color: #f15a24;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.35;
}

.enege-pdg-dynamic__header h2 {
  margin: 0;
  color: #f5f6f6;
  font-size: clamp(24px, 2.55vw, 34px);
  font-weight: 800;
  line-height: 1.12;
}

.enege-pdg-dynamic__header p {
  max-width: 720px;
  margin: 8px 0 0;
  color: #aeb5b7;
  font-size: 14px;
  line-height: 1.6;
}

.enege-pdg-dynamic__count {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid #343b3e;
  border-radius: 3px;
  color: #bbc0c2;
  background: #111516;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.enege-pdg-dynamic__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.enege-pdg-dynamic__grid > * {
  min-width: 0;
}

.enege-pdg-dynamic__card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #252b2d;
  border-radius: 5px;
  background: linear-gradient(145deg, #121719, #0c0f10);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.enege-pdg-dynamic__card:hover {
  border-color: #f15a24;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  transform: translateY(-3px);
}

.enege-pdg-dynamic__cover {
  position: relative;
  display: flex;
  min-height: 210px;
  padding: 25px 23px 23px;
  flex-direction: column;
  overflow: hidden;
  border-bottom: 1px solid #343b3e;
  color: #f5f6f6 !important;
  background:
    radial-gradient(circle at 105% 105%, rgba(241, 90, 36, 0.25), transparent 40%),
    linear-gradient(155deg, #222a2d, #101416);
  text-decoration: none !important;
}

.enege-pdg-dynamic__cover::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: #f15a24;
  content: "";
}

.enege-pdg-dynamic__cover::after {
  position: absolute;
  right: -46px;
  bottom: -46px;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(241, 90, 36, 0.28);
  border-radius: 50%;
  content: "";
}

.enege-pdg-dynamic__cover-brand {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: auto;
  color: #f15a24;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.enege-pdg-dynamic__cover strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 36px 0 18px;
  overflow-wrap: anywhere;
  word-break: normal;
  color: #f5f6f6;
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 800;
  line-height: 1.18;
}

.enege-pdg-dynamic__cover-type {
  position: relative;
  z-index: 1;
  display: block;
  max-width: calc(100% - 45px);
  overflow-wrap: anywhere;
  word-break: normal;
  color: #aeb5b7;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.35;
}

.enege-pdg-dynamic__cover-extension {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 18px;
  color: #f15a24;
  font-size: 10px;
  font-weight: 800;
}

.enege-pdg-dynamic__video {
  position: relative;
  display: block;
  min-height: 190px;
  overflow: hidden;
  border-bottom: 1px solid #343b3e;
  background:
    radial-gradient(circle at 80% 30%, rgba(241, 90, 36, 0.18), transparent 32%),
    #111618;
}

.enege-pdg-dynamic__video::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 8, 0.05), rgba(5, 7, 8, 0.62));
  content: "";
}

.enege-pdg-dynamic__video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.enege-pdg-dynamic__card:hover .enege-pdg-dynamic__video img {
  transform: scale(1.035);
}

.enege-pdg-dynamic__play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  padding-left: 4px;
  place-items: center;
  border: 1px solid #f15a24;
  border-radius: 50%;
  color: #090b0c;
  background: #f15a24;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
  font-size: 17px;
  transform: translate(-50%, -50%);
}

.enege-pdg-dynamic__body {
  display: flex;
  padding: 21px;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.enege-pdg-dynamic__meta {
  display: flex;
  margin: 0 0 10px;
  align-items: center;
  gap: 7px;
  color: #f15a24;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.enege-pdg-dynamic__meta i {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #596164;
}

.enege-pdg-dynamic__body h3 {
  width: 100%;
  margin: 0;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: normal;
  color: #f5f6f6;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.34;
}

.enege-pdg-dynamic__body p {
  width: 100%;
  margin: 10px 0 20px;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: normal;
  color: #aeb5b7;
  font-size: 12px;
  line-height: 1.55;
}

.enege-pdg-dynamic__button {
  display: inline-flex;
  margin-top: auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f15a24;
  color: #f15a24 !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-decoration: none !important;
}

.enege-pdg-dynamic__button span {
  font-size: 15px;
  line-height: 1;
}

@media (max-width: 1024px) {
  .enege-pdg-category-hero-image img {
    max-height: 410px;
  }

  .enege-pdg-dynamic__section {
    margin-bottom: 60px;
  }

  .enege-pdg-dynamic__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .enege-pdg-dynamic__cover {
    min-height: 225px;
  }
}

@media (max-width: 767px) {
  .enege-pdg-category-hero-image img,
  .enege-pdg-category-hero-image--banco-de-capacitores img {
    max-height: 330px;
  }

  .enege-pdg-dynamic__section {
    margin-bottom: 48px;
  }

  .enege-pdg-dynamic__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .enege-pdg-dynamic__count {
    padding: 7px 10px;
  }

  .enege-pdg-dynamic__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .enege-pdg-dynamic__cover {
    min-height: 210px;
  }

  .enege-pdg-dynamic__cover strong {
    font-size: 20px;
  }

  .enege-pdg-dynamic__video {
    min-height: 205px;
  }

  .enege-pdg-dynamic__body {
    padding: 20px;
  }
}
