.c-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(14, 25, 48, 0.88), rgba(8, 15, 30, 0.92));
  box-shadow: var(--shadow-soft);
  transform: translateY(0) scale(1);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 360ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 360ms cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 320ms ease;
}

.c-card__link {
  position: relative;
  display: grid;
  min-height: 330px;
  color: inherit;
  isolation: isolate;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  transition: transform 220ms ease-out;
}

.c-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.c-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.001);
  transition: transform 760ms cubic-bezier(0.22, 0.61, 0.36, 1), filter 760ms ease;
  filter: saturate(0.95) contrast(1.02);
}

.c-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.001);
  transition: transform 760ms cubic-bezier(0.22, 0.61, 0.36, 1), filter 760ms ease;
  filter: saturate(0.9) contrast(1.08) brightness(0.78);
}

.c-card__image.is-placeholder {
  background: radial-gradient(circle at 78% 20%, rgba(103, 216, 255, 0.24), rgba(103, 216, 255, 0) 40%),
    radial-gradient(circle at 14% 90%, rgba(138, 139, 255, 0.2), rgba(138, 139, 255, 0) 44%),
    linear-gradient(155deg, rgba(11, 20, 38, 0.9), rgba(18, 33, 62, 0.92));
}

.c-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 12, 23, 0.1) 2%, rgba(6, 12, 23, 0.56) 54%, rgba(6, 12, 23, 0.94) 100%);
}

.c-card__content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 1.35rem 1.3rem 1.25rem;
  display: grid;
  gap: 0.56rem;
  transform: translateZ(16px);
}

.c-card__eyebrow,
.c-card__meta {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #bed0ef;
}

.c-card__title {
  margin: 0;
  font-size: clamp(1.15rem, 1.6vw, 1.44rem);
  line-height: 1.15;
  color: #f3f7ff;
  text-wrap: balance;
}

.c-card__excerpt {
  margin: 0;
  color: #cad8f2;
  font-size: 0.96rem;
  line-height: 1.58;
}

.c-card__meta {
  letter-spacing: 0.06em;
  color: rgba(180, 198, 228, 0.9);
}

.c-card__cta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0.16rem;
  color: #dcf6ff;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.c-card__cta::after {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  margin-left: 0.4rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg) translateY(1px);
}

.c-card__glow {
  pointer-events: none;
  position: absolute;
  inset: -15%;
  z-index: 1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(103, 216, 255, 0.2), rgba(138, 139, 255, 0.12) 32%, rgba(138, 139, 255, 0) 62%);
  opacity: 0;
  transition: opacity 320ms ease;
}

.c-card:hover,
.c-card:focus-within {
  transform: translateY(-6px) scale(1.012);
  box-shadow: 0 24px 44px rgba(2, 10, 26, 0.48);
  border-color: rgba(165, 226, 255, 0.42);
}

.c-card:hover .c-card__image,
.c-card:focus-within .c-card__image {
  transform: scale(1.05);
  filter: saturate(1.02) contrast(1.05);
}

.c-card:hover .c-card__video,
.c-card:focus-within .c-card__video {
  transform: scale(1.05);
  filter: saturate(0.98) contrast(1.1) brightness(0.84);
}

.c-card:hover .c-card__glow,
.c-card:focus-within .c-card__glow,
.c-card.is-focused .c-card__glow {
  opacity: 0.88;
}

.c-card__link:focus-visible {
  outline: 2px solid #91e8ff;
  outline-offset: -2px;
}

.c-card--reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.995);
}

.c-card--reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 680ms ease, transform 680ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.c-card.is-case .c-card__eyebrow {
  color: #9fe3ff;
}

.c-card.is-edital .c-card__eyebrow {
  color: #c7ceff;
}

.c-card.is-post .c-card__eyebrow {
  color: #a9f4d3;
}

@media (max-width: 900px) {
  .c-card__link {
    min-height: 300px;
  }

  .c-card:hover,
  .c-card:focus-within {
    transform: translateY(-3px) scale(1.005);
  }
}

@media (hover: none), (pointer: coarse) {
  .c-card,
  .c-card:hover,
  .c-card:focus-within {
    transform: none;
  }

  .c-card .c-card__image,
  .c-card:hover .c-card__image,
  .c-card:focus-within .c-card__image {
    transform: none;
  }

  .c-card .c-card__video,
  .c-card:hover .c-card__video,
  .c-card:focus-within .c-card__video {
    transform: none;
  }

  .c-card__glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .c-card,
  .c-card *,
  .c-card--reveal,
  .c-card--reveal.is-visible {
    transition-duration: 0.01ms !important;
    animation: none !important;
    transform: none !important;
  }

  .c-card--reveal {
    opacity: 1;
  }
}
