/* Card Tilt Effect CSS
 * Adds 3D tilt effect to institution cards
 */

.institution-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backface-visibility: hidden;
}

.institution-card:hover {
  z-index: 2;
}

.institution-card .tilt-effect-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(30px);
  pointer-events: none;
}

.institution-logo img {
  transform: translateZ(20px);
  will-change: transform;
}

.institution-info {
  transform: translateZ(10px);
  will-change: transform;
}

/* Add subtle shine effect */
.institution-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.institution-card:hover::after {
  opacity: 1;
}

/* Special highlight for active card */
.institution-card:focus {
  outline: none;
  box-shadow: 0 5px 25px rgba(0, 33, 71, 0.2), 0 0 0 2px rgba(0, 33, 71, 0.1);
}
