/* Academic highlights — clip-path maroon cards (used on index #academic-highlights) */
.edc-academic-cards {
  --edc-maroon: #430707;
  --edc-maroon-mid: #5a1616;
  --edc-maroon-light: #6e2828;
  --edc-maroon-deep: #2a0505;
  --edc-maroon-highlight: #8a3a3a;
}

.edc-academic-cards .sn-edu-cards-wrap__title {
  color: var(--edc-maroon);
}

.edc-academic-cards .sn-edu-cards-wrap__lead {
  color: var(--edc-maroon-mid);
}

.edc-academic-cards .edc-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.08);
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out,
    box-shadow 0.45s ease;
}

.edc-academic-cards .edc-card.is-in-view {
  opacity: 1;
  transform: translateY(0);
}

.edc-academic-cards .edc-card.is-in-view:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
}

.edc-academic-cards .edc-card[data-edc-card] {
  cursor: pointer;
}

.edc-academic-cards .edc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.92;
  will-change: clip-path;
  transition:
    clip-path 0.45s ease,
    opacity 0.45s ease,
    background 0.45s ease;
}

.edc-academic-cards .edc-card.edc-card--accent-bl::after {
  clip-path: polygon(0 100%, 0 67%, 67% 100%);
  background: linear-gradient(
    28deg,
    var(--edc-maroon-light) 0%,
    var(--edc-maroon) 45%,
    var(--edc-maroon-deep) 100%
  );
}

.edc-academic-cards .edc-card.is-in-view:hover::after,
.edc-academic-cards .edc-card.is-shape-tr::after {
  clip-path: polygon(100% 0, 100% 46%, 36% 0);
  opacity: 1;
  background: linear-gradient(
    138deg,
    var(--edc-maroon-highlight) 0%,
    var(--edc-maroon-mid) 38%,
    var(--edc-maroon) 64%,
    var(--edc-maroon-deep) 100%
  );
}

.edc-academic-cards .edc-card__inner {
  position: relative;
  z-index: 2;
  padding: clamp(1.35rem, 3vw, 1.75rem);
  height: 100%;
}

/* main.css has global `header { background: #fff }` for nav — reset for card headers */
.edc-academic-cards .edc-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  background: transparent;
  z-index: auto;
}

.edc-academic-cards .edc-card__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -0.45rem;
  color: var(--edc-maroon);
}

.edc-academic-cards .edc-card__icon .fas {
  font-size: 1.35rem;
  line-height: 1;
}

.edc-academic-cards .edc-card__icon svg {
  width: 1.6rem;
  height: 1.6rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.edc-academic-cards .edc-card__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  background: transparent;
}

.edc-academic-cards .edc-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.edc-academic-cards .edc-card__list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  color: #475569;
}

.edc-academic-cards .edc-card__list li:last-child {
  margin-bottom: 0;
}

.edc-academic-cards .edc-card__list li::before {
  content: "\203A";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--edc-maroon);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.05rem;
  text-align: center;
  display: block;
}

.edc-academic-cards .edc-card.is-in-view:focus-visible {
  outline: 2px solid rgba(67, 7, 7, 0.4);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .edc-academic-cards .edc-card {
    transition-duration: 0.01ms;
    transition-delay: 0ms !important;
  }

  .edc-academic-cards .edc-card::after {
    transition: opacity 0.2s ease;
  }

  .edc-academic-cards .edc-card.is-in-view:hover::after,
  .edc-academic-cards .edc-card.is-shape-tr::after {
    transition: opacity 0.2s ease;
  }

  .edc-academic-cards .edc-card.is-in-view:hover {
    transform: translateY(0);
  }
}
