.post-card,
.category-card,
.affiliate-box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.post-card {
  overflow: hidden;
}

.post-card__media-link {
  display: block;
}

.post-card__image,
.post-card__placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-card__placeholder,
.post-card__placeholder--featured,
.affiliate-box__placeholder {
  background: linear-gradient(135deg, #e5e7eb, #cbd5e1);
}

.post-card__content {
  padding: 22px;
}

.post-card__title {
  margin: 14px 0 10px;
  font-size: 22px;
}

.post-card__title a {
  color: var(--color-text);
}

.post-card__title a:hover,
.post-card__title a:focus {
  color: var(--color-primary);
}

.post-card__meta {
  color: var(--color-text-muted);
  font-size: 14px;
}

.post-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 0;
  color: var(--color-text-muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-card__link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--color-accent);
  font-weight: 700;
}

.post-card--featured-large .post-card__content {
  padding: 26px;
}

.post-card--featured-large .post-card__title {
  font-size: 28px;
}

.post-card--featured-compact {
  display: grid;
  grid-template-columns: 160px 1fr;
}

.post-card--featured-compact .post-card__image,
.post-card--featured-compact .post-card__placeholder {
  height: 100%;
  min-height: 100%;
  aspect-ratio: auto;
}

.category-card {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.category-card:hover,
.category-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.1);
}

.category-card__link {
  display: block;
  height: 100%;
  padding: 24px;
  color: inherit;
}

.category-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: rgba(249, 115, 22, 0.12);
  font-size: 26px;
}

.category-card__title {
  margin-bottom: 10px;
}

.category-card__description {
  margin-bottom: 16px;
  color: var(--color-text-muted);
}

.category-card__cta {
  color: var(--color-accent);
  font-weight: 700;
}

.affiliate-box {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 20px;
  margin: 32px 0;
}

.affiliate-box__image,
.affiliate-box__placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.affiliate-box__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.affiliate-box__badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.affiliate-box__meta {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 600;
}

.affiliate-box__title {
  margin-bottom: 8px;
}

.affiliate-box__price {
  margin-bottom: 10px;
  color: var(--color-primary);
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-heading);
}

.affiliate-box__description {
  color: var(--color-text-muted);
}

.affiliate-box__button {
  width: auto;
  margin-top: 12px;
}

@media (max-width: 767px) {
  .post-card--featured-compact {
    grid-template-columns: 1fr;
  }

  .affiliate-box {
    grid-template-columns: 1fr;
  }

  .affiliate-box__top {
    flex-direction: column;
    align-items: flex-start;
  }
}
