/* Card New Block - Dynamically loaded */
.card-new {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Hover effects */
.card-new--hoverable {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card-new--hoverable:hover {
  box-shadow: var(--card-hover-shadow, none);
  transform: scale(var(--card-hover-scale, 1));
}

/* Clickable card */
.card-new--clickable { cursor: pointer; }
.card-new--clickable:focus-within {
  outline: 2px solid hsl(var(--primary, 222 47% 51%));
  outline-offset: 2px;
}

/* Horizontal layout */
.card-new--horizontal {
  flex-direction: row;
}
.card-new--horizontal .card-new__graphic {
  flex: 0 0 40%;
  min-width: 0;
}
.card-new--horizontal .card-new__graphic--fixed {
  flex-basis: auto;
  align-self: flex-start;
}
.card-new--horizontal .card-new__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Graphic / Image */
.card-new__graphic {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Icon */
.card-new__icon-wrapper {
  display: flex;
}
.card-new__icon {
  flex-shrink: 0;
  line-height: 0;
}
.card-new__icon svg {
  width: 100%;
  height: 100%;
}

/* Body */
.card-new__body {
  flex: 1;
  min-width: 0;
}

/* Subtitle */
.card-new__subtitle {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

/* Title */
.card-new__title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

/* Stretched link - accessible card link pattern */
.card-new__stretched-link {
  color: inherit;
  text-decoration: none;
}
.card-new__stretched-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.card-new--clickable:hover .card-new__title {
  text-decoration: underline;
}

/* Description */
.card-new__description {
  margin: 0;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}

/* Buttons - above stretched-link overlay */
.card-new__buttons {
  position: relative;
  z-index: 2;
}

/* Badge */
.card-new__badge {
  position: absolute;
  z-index: 2;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: hsl(var(--primary, 222 47% 51%));
  color: #fff;
  border-radius: 4px;
  top: 12px;
}
.card-new__badge--left { left: 12px; }
.card-new__badge--right { right: 12px; }

/* Responsive: horizontal stacks on mobile */
@media (max-width: 767px) {
  .card-new--horizontal {
    flex-direction: column !important;
  }
  .card-new--horizontal .card-new__graphic {
    flex: none;
    width: 100%;
  }
}
