/* ============================================
   SapnaHub — Job/Internship Card Enhancements
   Load AFTER main.css.
============================================ */

.jcard {
  position: relative;
  isolation: isolate; /* keeps the watermark contained to this card's stacking context */
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--blue), var(--indigo), var(--pink)) border-box;
  border: 2px solid transparent; /* thickness of the gradient border */
  overflow: hidden; /* keep the watermark from poking past rounded corners */
}

/* Slightly stronger lift on hover, still simple */
.jcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--s3);
}

/* Keep the watermark from looking like it "pops" blue when the card lifts on hover */
.jcard:hover::before {
  opacity: 0.03;
}

/* Centered logo watermark, sitting behind all card content */
.jcard::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 120px; height: 120px;
  transform: translate(-50%, -50%);
  background-image: url("/assets/logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

/* Make sure actual card content stays above the watermark */
.jcard > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .jcard { border-width: 1.5px; }
  .jcard::before { width: 140px; height: 140px; opacity: 0.08; }
}

@media (max-width: 480px) {
  .jcard::before { width: 120px; height: 120px; }
}