/* =========================
CARDS GRID
========================= */

.portal-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}


/* =========================
CARD BASE
========================= */

.portal-card {
  display: block;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}


/* =========================
IMAGE
========================= */

.portal-card__image {
  height: 165px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #e5e7eb;
  position: relative;
  overflow: hidden;
}

.portal-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 40%,
    rgba(0,0,0,0.35)
  );
}


/* =========================
BADGE
========================= */

.portal-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #1f4e79;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 20px;
  z-index: 2;
}


/* =========================
BODY
========================= */

.portal-card__body {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 20px;
  padding:45px;
}


/* =========================
INFO
========================= */

.portal-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.portal-card__title {
    color: #0D4679;
    font-family: Spectral;
    font-size: 36px;
    font-style: normal;
    font-weight: 500;
    line-height: 81.5%;
    letter-spacing: -1.8px;
    margin:0;
}

.portal-card__meta {
    color: #A9A8A8;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 117%;
    margin:0;
}

.portal-card__location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #A9A8A8;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 117%;
    margin:0;
    white-space: nowrap;
}


/* =========================
ICONS
========================= */

.portal-icon--location {
  width: 14px;
  height: 14px;

  -webkit-mask-image: url('/wp-content/uploads/2026/03/portal-maisinvest-icon-morada.svg');
  mask-image: url('/wp-content/uploads/2026/03/portal-maisinvest-icon-morada.svg');
}

.portal-card__arrow {
  width: 42px;
  height: 42px;
  display: block;
}

/* =========================
ACTIONS
========================= */

.portal-card__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.portal-card__link {
    color: #000D19;
    text-align: right;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 117%;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
    white-space: nowrap;
    text-transform:uppercase;
}

.portal-card__cta {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1f4e79;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}


/* =========================
HOVER STATES
========================= */

.portal-card:hover .portal-card__cta {
  background: #163d61;
}

.portal-card:hover .portal-card__link {
  text-decoration: underline;
}


/* =========================
RESPONSIVO
========================= */


@media (max-width: 768px){

  .portal-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .portal-card__actions {
    width: 100%;
    justify-content: space-between;
  }


    .portal-card__body {
      padding:20px;
    }

}