/* Styles for APAR Custom Posts (3-column) element - matches products layout */
.apar-custom-posts-grid { display: grid; gap: 24px; }
.apar-col-1 { grid-template-columns: 1fr; }
.apar-col-2 { grid-template-columns: repeat(2, 1fr); }
.apar-col-3 { grid-template-columns: repeat(3, 1fr); }

.apar-custom-post-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.apar-custom-post-image {
  overflow: hidden;
  height: 220px;
}

.apar-custom-post-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.apar-custom-post-image img:hover { transform: scale(1.08); }

.apar-custom-post-body {
  padding: 16px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.apar-custom-post-title {
  margin: 0 0 12px;
  font-size: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.apar-custom-post-date { font-size: 13px; color: #8a8a8a; margin: 0 0 10px; display: block; font-weight: 500; letter-spacing: 0.2px; }
.apar-custom-post-excerpt {
  color: #555;
}
.apar-custom-post-excerpt-wrapper {
  position: relative;
  max-height: 120px;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.apar-custom-post-card.apar-hover-excerpt-enabled .apar-custom-post-excerpt-short {
  display: block;
  margin: 0 0 12px;
}
.apar-custom-post-card.apar-hover-excerpt-enabled .apar-custom-post-excerpt-full {
  display: none;
  margin: 0;
  color: #444;
  line-height: 1.6;
}
.apar-custom-post-card.apar-hover-excerpt-enabled:hover .apar-custom-post-excerpt-short {
  display: none;
}
.apar-custom-post-card.apar-hover-excerpt-enabled:hover .apar-custom-post-excerpt-full {
  display: block;
  margin-top: 12px;
}
.apar-custom-post-card.apar-hover-excerpt-enabled:hover .apar-custom-post-excerpt-wrapper {
  max-height: 400px;
}
.apar-custom-post-readmore { margin-top: auto; }
.apar-custom-post-readmore a { color: #f7941d; text-decoration: none; font-weight: 600; }

.apar-custom-posts.no-posts { padding: 24px; text-align: center; color: #666; }

@media (max-width: 800px) {
  .apar-col-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .apar-col-3, .apar-col-2 { grid-template-columns: 1fr; }
}
