.card-horizontal {
  display: flex;
  flex-direction: row; /* Horizontal layout */
  justify-content: stretch;
  align-items: center;
  width: 1200px;
  max-width: calc(100% - 40px);
  margin: 20px;
  background: var(--background);
  border-radius: var(--rounded);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card[data-style=small] {
  width: 500px;
  flex-direction: column; /* Keep small cards vertical */
}

/* Image section */
.card-image {
  flex: 1 1 40%;
  max-width: 400px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: block;
}

/* Text content section */
.card-text {
  flex: 1 1 60%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  box-sizing: border-box;
}

.card-text > * {
  margin: 0 !important;
}

/* Optional wrapper for main text and tags */
.card-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-title {
  font-family: var(--heading);
  font-weight: var(--semi-bold);
  font-size: 1.4rem;
}

.card-subtitle {
  font-style: italic;
  margin-top: -5px !important;
  font-size: 1rem;
}

.card-tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
}

/* Optional tag styles */
.card-tags .tag {
  background-color: var(--accent-light);
  color: var(--accent-dark);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Responsive stacking on small screens */
@media (max-width: 768px) {
  .card {
    flex-direction: column;
  }
  .card-image,
  .card-text {
    max-width: 100%;
    flex: 1 1 auto;
  }
}

/*# sourceMappingURL=card-horizontal.css.map */