/* P2P homepage job tiles. Loaded only on the front page. */

/* Avoid a flash of the old tiles; reveal anyway after 2s in case the script fails. */
.careerfy-featured-jobs-list:not(.p2pht-on) > .row > li {
  opacity: 0;
  animation: p2pht-reveal 0s linear 2s forwards;
}
@keyframes p2pht-reveal { to { opacity: 1; } }

.p2pht-on > .row > li > .careerfy-featuredjobs-listwrap,
#p2p-option-one .careerfy-featured-jobs-list.p2pht-on > .row > li > .careerfy-featuredjobs-listwrap { display: none !important; }
.p2pht-on > .row > li { height: 100%; }

.p2pht-card {
  --ink: #123d6d; --muted: #64748b; --line: #e6edf5; --teal: #2cb6cd; --teal-d: #1595ab;
  position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 14px;
  font-family: Inter, Arial, sans-serif;
  box-shadow: 0 1px 2px rgba(18, 61, 109, .04), 0 4px 14px rgba(18, 61, 109, .05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.p2pht-card:hover { transform: translateY(-3px); border-color: #cfe7ee; box-shadow: 0 2px 4px rgba(18, 61, 109, .05), 0 14px 30px rgba(18, 61, 109, .10); }

/* Theme's own featured corner and urgent ribbon, kept as they are */
.p2pht-card > .careerfy-jobli-medium2, .p2pht-card > .urgntpkg-jobv1 { pointer-events: none; }
.p2pht-card.p2pht-has-corner .p2pht-save { margin-right: 40px; }
.p2pht-card.p2pht-has-ribbon .p2pht-top { padding-left: 44px; }

/* Top: logo, organisation + published, save */
.p2pht-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.p2pht-logo { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.p2pht-logo img { max-width: 36px !important; max-height: 36px !important; width: auto !important; height: auto !important; object-fit: contain; }
.p2pht-org { min-width: 0; flex: 1; line-height: 1.25; }
.p2pht-org a { display: block; color: #334155 !important; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.p2pht-org a:hover { color: var(--teal-d) !important; }
.p2pht-org small { display: block; color: #94a3b8; font-size: 10.5px !important; line-height: 1.3; margin-top: 1px; }

.p2pht-save { flex: 0 0 auto; margin-left: auto; }
#p2p-option-one .p2pht-card .p2pht-save .like-btn,
.p2pht-card .p2pht-save .like-btn { position: static !important; inset: auto !important; transform: none !important; margin: 0 !important; padding: 0 !important; float: none !important; width: auto !important; height: auto !important; background: none !important; border: 0 !important; }
.p2pht-save a { display: inline-flex !important; align-items: center; justify-content: center; width: 32px !important; height: 32px !important; border-radius: 50% !important; border: 1px solid var(--line) !important; background: #fff !important; color: #94a3b8 !important; font-size: 14px !important; line-height: 1 !important; margin: 0 !important; transition: all .15s; }
.p2pht-save a:hover { border-color: #fecdd3 !important; color: #e11d48 !important; background: #fff1f2 !important; }
.p2pht-save a i.fa-heart { color: #e11d48 !important; }

/* Title */
.p2pht-title { margin: 0 0 10px !important; padding: 0 !important; font-size: 16px !important; line-height: 1.35 !important; font-weight: 700 !important; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p2pht-title a { color: var(--teal-d) !important; text-decoration: none; }
.p2pht-title a:hover { color: var(--ink) !important; }

/* Job type tag */
.p2pht-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.p2pht-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.p2pht-chip.c-type { background: #e8f5ef; color: #21634e; }

/* Footer: province + deadline */
.p2pht-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; }
.p2pht-loc { display: inline-flex; align-items: center; gap: 5px; min-width: 0; color: var(--muted); font-size: 11px; }
.p2pht-loc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p2pht-loc svg { flex: 0 0 12px; width: 12px; height: 12px; stroke: #94a3b8; }
.p2pht-due { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; font-weight: 600; white-space: nowrap; color: #0e7c8f; }
.p2pht-due svg { width: 13px; height: 13px; stroke: currentColor; }
.p2pht-due.is-soon { color: #c2410c; }
.p2pht-due.is-closed { padding: 2px 9px; border-radius: 999px; background: #f1f5f9; color: #64748b; }
