/*
 * Sizes, radius and colors come from the parent InterestCards section as
 * --ic-* custom properties (they inherit down the DOM).
 */
.cc_il0xsd7y_ztf4IEo8Cb .interest-card {
  position: relative;
  display: block;
  flex: 0 0 var(--ic-card-width, 23%);
  width: var(--ic-card-width, 23%);
  box-sizing: border-box;
  aspect-ratio: var(--ic-aspect-ratio, 3 / 4);
  overflow: hidden;
  border-radius: var(--ic-card-radius, 8px);
  background: var(--ic-image-bg, var(--gr-color-bg-soft));
  color: var(--ic-card-text, var(--gr-color-text-inverse));
  text-decoration: none;
  isolation: isolate;
  cursor: pointer;
}

.cc_il0xsd7y_ztf4IEo8Cb .interest-card:focus-visible {
  outline: 2px solid var(--gr-color-accent);
  outline-offset: 4px;
}

.cc_il0xsd7y_ztf4IEo8Cb div.interest-card {
  cursor: default;
}

.cc_il0xsd7y_ztf4IEo8Cb .interest-card-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  user-select: none;
}

/* Bottom gradient keeps the label readable on any photo. */
.cc_il0xsd7y_ztf4IEo8Cb .interest-card-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, calc(var(--ic-shade, 0.7) * 1)) 0%,
    rgba(0, 0, 0, calc(var(--ic-shade, 0.7) * 0.45)) 28%,
    rgba(0, 0, 0, 0) 55%
  );
  opacity: 0.9;
  transition: opacity var(--gr-transition-base);
}

.cc_il0xsd7y_ztf4IEo8Cb .interest-card-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gr-space-md);
  padding: var(--gr-space-lg);
}

.cc_il0xsd7y_ztf4IEo8Cb .interest-card-title {
  min-width: 0;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.cc_il0xsd7y_ztf4IEo8Cb .interest-card-arrow {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  transition: transform var(--gr-transition-base);
}

.cc_il0xsd7y_ztf4IEo8Cb .interest-card:hover .interest-card-image, .cc_il0xsd7y_ztf4IEo8Cb .interest-card:focus-visible .interest-card-image {
  transform: scale(var(--ic-hover-scale, 1.06));
}

.cc_il0xsd7y_ztf4IEo8Cb .interest-card:hover .interest-card-shade, .cc_il0xsd7y_ztf4IEo8Cb .interest-card:focus-visible .interest-card-shade {
  opacity: 1;
}

.cc_il0xsd7y_ztf4IEo8Cb .interest-card:hover .interest-card-arrow, .cc_il0xsd7y_ztf4IEo8Cb .interest-card:focus-visible .interest-card-arrow {
  transform: translateX(8px);
}

@media (max-width: 768px) {
  .cc_il0xsd7y_ztf4IEo8Cb .interest-card-footer {
    padding: var(--gr-space-md);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc_il0xsd7y_ztf4IEo8Cb .interest-card-image, .cc_il0xsd7y_ztf4IEo8Cb .interest-card-shade, .cc_il0xsd7y_ztf4IEo8Cb .interest-card-arrow {
    transition: none;
  }
}
