/* ====================================================
   NXS PRE-FOOTER
   - Mobil: imagine sus + panel gri jos
   - Desktop: banner dreptunghiular (înălțime fixă),
              ca zona highlight din screenshot
   ==================================================== */

.nxs-prefooter{
  width: 100%;
  margin: 0;
  padding: 0;
}

.nxs-prefooter__inner{
  width: 100%;
  display: block;
}

/* =========================
   IMAGE
   ========================= */

.nxs-prefooter__media{
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.nxs-prefooter__media img{
  display: block;
  width: 100%;
  height: auto;
}

/* =========================
   PANEL (mobile default)
   ========================= */

.nxs-prefooter__panel{
  background: #256c3c;
  color: #ffffff;
  padding: 24px 20px;
}

.nxs-prefooter__title{
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.nxs-prefooter__text{
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
}

/* =========================
   DESKTOP (highlighted height)
   ========================= */

@media (min-width: 901px){

  /* aici controlăm exact înălțimea highlight-ului */
  .nxs-prefooter{
    padding: 0;
  }

  .nxs-prefooter__inner{
    display: grid;
    grid-template-columns: 1fr 520px;
    align-items: stretch;

    /* IMPORTANT: fixăm înălțimea ca în highlight */
    height: 420px;          /* <- ajustezi 380-480 după cât vrei */
    max-height: 420px;
    overflow: hidden;       /* taie orice depășește */
  }

  .nxs-prefooter__media{
    height: 100%;
  }

  .nxs-prefooter__media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .nxs-prefooter__panel{
    padding: 44px 46px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .nxs-prefooter__title{
    font-size: 44px;
    margin: 0 0 18px;
  }

  .nxs-prefooter__text{
    font-size: 16px;
    line-height: 1.75;
  }
}
