
.hpus-lock {
  overflow: hidden !important;
}

.hpus-modal,
.hpus-modal * {
  box-sizing: border-box;
}

.hpus-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
}

.hpus-modal.is-open {
  display: block;
}

.hpus-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 40, .68);
  backdrop-filter: blur(5px);
}

.hpus-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, calc(100% - 24px));
  max-height: min(88vh, 900px);
  overflow: auto;
  background: #f5f7ff;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 24px;
  box-shadow: 0 28px 90px rgba(3,12,35,.36);
  padding: 22px;
  color: #17213b;
  overscroll-behavior: contain;
}

.hpus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.hpus-head small {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  color: #5367c9;
}

.hpus-head h2 {
  margin: 3px 0 0;
  font-size: 24px;
  line-height: 1.2;
  color: #111b3a;
}

.hpus-close {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #e8ecf8;
  color: #243050;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.hpus-form {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: #fff;
  border: 1px solid #dce3f5;
  border-radius: 15px;
  box-shadow: 0 7px 22px rgba(35,57,111,.06);
}

.hpus-input {
  min-width: 0;
  flex: 1;
  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #15203c !important;
  padding: 12px 10px !important;
  font-size: 14px !important;
}

.hpus-submit {
  flex: 0 0 auto;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg,#315eea,#7148dd);
  color: #fff;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

.hpus-filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 15px 0 8px;
  scrollbar-width: thin;
}

.hpus-filters button {
  white-space: nowrap;
  border: 1px solid #dce3f5;
  border-radius: 999px;
  background: #fff;
  color: #42506e;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.hpus-filters button.is-active {
  background: #1d2d66;
  color: #fff;
  border-color: #1d2d66;
}

.hpus-status {
  font-size: 12px;
  color: #697590;
  padding: 8px 1px 12px;
}

.hpus-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hpus-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e1e7f4;
  border-radius: 17px;
  box-shadow: 0 7px 18px rgba(26,44,88,.055);
  transition: transform .2s ease, box-shadow .2s ease;
}

.hpus-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(26,44,88,.10);
}

.hpus-image-link {
  display: block;
  overflow: hidden;
  background: #e9edfa;
  aspect-ratio: 16 / 9;
}

.hpus-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}

.hpus-card-body {
  padding: 14px;
}

.hpus-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hpus-type,
.hpus-category {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  border-radius: 999px;
  background: #edf1ff;
  color: #3649a2;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 900;
}

.hpus-type.is-job {
  background: #fff0dc;
  color: #9a5800;
}

.hpus-category {
  background: #eef7f4;
  color: #18745b;
}

.hpus-card h3 {
  margin: 10px 0 8px !important;
  color: #17213b !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  overflow-wrap: anywhere;
}

.hpus-title-link {
  color: inherit !important;
  text-decoration: none !important;
}

.hpus-title-link:hover {
  color: #315eea !important;
}

.hpus-card p {
  margin: 5px 0 !important;
  color: #59657e !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
  overflow-wrap: anywhere;
}

.hpus-card p b {
  color: #34415f;
}

.hpus-card .hpus-excerpt {
  margin-top: 9px !important;
}

.hpus-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.hpus-view,
.hpus-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 38px;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none !important;
  transition: background .2s ease;
}

.hpus-view {
  background: #edf1ff;
  color: #2d48ba !important;
}

.hpus-view:hover {
  background: #dfe6ff;
}

.hpus-whatsapp {
  background: #e8f8ed;
  color: #16743c !important;
  border: 1px solid #ccebd5;
}

.hpus-whatsapp:hover {
  background: #d5f2df;
}

@media (max-width: 560px) {
  .hpus-panel {
    top: auto;
    bottom: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-height: 90vh;
    border-radius: 23px 23px 0 0;
    padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
  }

  .hpus-head h2 {
    font-size: 21px;
  }

  .hpus-results {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
  }

  .hpus-card {
    display: flex;
    align-items: stretch;
  }

  .hpus-image-link {
    flex: 0 0 105px;
    width: 105px;
    aspect-ratio: auto;
    min-height: 130px;
  }

  .hpus-card-body {
    flex: 1;
    min-width: 0;
    padding: 12px;
  }

  .hpus-card h3 {
    font-size: 15px !important;
  }

  .hpus-card-actions {
    gap: 6px;
  }

  .hpus-view,
  .hpus-whatsapp {
    padding: 9px 10px;
    font-size: 11px;
  }

  .hpus-form {
    gap: 4px;
  }

  .hpus-submit {
    padding: 0 13px;
  }

  .hpus-input {
    font-size: 13px !important;
  }
}

@media (max-width: 360px) {
  .hpus-card {
    display: block;
  }

  .hpus-image-link {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hpus-card,
  .hpus-view,
  .hpus-whatsapp {
    transition: none;
  }
}
