/* ===========================
   Vitalisite Blog Listing
   =========================== */

.vitalisite-blog-listing {
  padding-top: var(--wp--preset--spacing--60);
  padding-bottom: var(--wp--preset--spacing--70);
}

.vitalisite-blog-header {
  margin-bottom: var(--wp--preset--spacing--60);
}

.vitalisite-blog-header h1 {
  margin-bottom: var(--wp--preset--spacing--20);
}

/* Categories Filter */
ul.vitalisite-blog-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin-top: var(--wp--preset--spacing--40);
}

ul.vitalisite-blog-categories li {
  margin: 0;
}

ul.vitalisite-blog-categories a {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--wp--preset--color--surface, #f7f9fa);
  color: var(--wp--preset--color--main-text);
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

ul.vitalisite-blog-categories a:hover,
ul.vitalisite-blog-categories li.current-cat a {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--on-primary, #fff);
}

/* Blog Card */
.vitalisite-blog-grid .wp-block-post {
  display: flex;
  flex-direction: column;
  background-color: var(--wp--preset--color--bg, #fff);
  border-radius: var(--wp--custom--image-radius, 12px);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  height: 100%;
}

.vitalisite-blog-grid .wp-block-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.vitalisite-blog-grid .wp-block-post .wp-block-post-featured-image {
  margin: 0;
  width: 100%;
}

.vitalisite-blog-grid .wp-block-post .wp-block-post-featured-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.vitalisite-blog-grid .wp-block-post:hover .wp-block-post-featured-image img {
  transform: scale(1.05); /* subtle zoom effect */
}

.vitalisite-blog-card__content {
  padding: var(--wp--preset--spacing--40);
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Meta Data (Date / Category) */
.vitalisite-blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--wp--preset--color--main-text);
  opacity: 0.7;
}

.vitalisite-blog-card__meta a {
  color: var(--wp--preset--color--primary);
  text-decoration: none;
  font-weight: 600;
}

.vitalisite-blog-card__meta a:hover {
  text-decoration: underline;
}

/* Title */
.vitalisite-blog-card__title {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.25rem;
  line-height: 1.4;
}

.vitalisite-blog-card__title a {
  text-decoration: none;
  color: inherit;
}

.vitalisite-blog-card__title a:hover {
  color: var(--wp--preset--color--primary);
}

/* Excerpt and Read More */
.vitalisite-blog-card__excerpt {
  font-size: 0.95rem;
  margin-bottom: 0 !important;
  margin-top: 0;
  line-height: 1.6;
  opacity: 0.8;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.vitalisite-blog-card__excerpt p {
  margin-bottom: 0;
}

.vitalisite-blog-card__excerpt .wp-block-post-excerpt__more-text {
  margin-top: auto;
  padding-top: 20px;
}

.vitalisite-blog-card__excerpt .wp-block-post-excerpt__more-link {
  display: inline-block;
  color: var(--wp--preset--color--primary);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.vitalisite-blog-card__excerpt .wp-block-post-excerpt__more-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}
