/* Blog/Insights Section Styles */
.blog {
  background-color: var(--color-background);
  position: relative;
}

.blog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 30%, rgba(197, 75, 116, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.blog .container {
  position: relative;
  z-index: 1;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-4xl);
}

.blog-posts-footer {
  margin-top: var(--spacing-4xl);
}

.blog-card {
  background-color: var(--color-white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid var(--color-border);
  position: relative;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--color-primary);
}

.blog-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  margin-bottom: var(--spacing-xl);
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-content {
  padding: var(--spacing-xl);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.blog-date {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  font-weight: var(--font-weight-medium);
}

.blog-category {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
  line-height: var(--line-height-snug);
  transition: color var(--transition-fast);
}

.blog-card:hover h3 {
  color: var(--color-primary);
}

.blog-card p {
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-sm);
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

.blog-link::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.blog-link:hover {
  color: var(--color-primary-dark);
}

.blog-link:hover::after {
  transform: translateX(4px);
}

/* Category Color Variations */
.blog-card:nth-child(1) .blog-category {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

.blog-card:nth-child(2) .blog-category {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #3d6fa7 100%);
}

.blog-card:nth-child(3) .blog-category {
  background: linear-gradient(135deg, var(--color-accent) 0%, #8b5cf6 100%);
}

/* Staggered Animation */
.blog-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.blog-card:nth-child(1) {
  animation-delay: 0.1s;
}

.blog-card:nth-child(2) {
  animation-delay: 0.2s;
}

.blog-card:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover Effects */
.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(197, 75, 116, 0.02) 0%, rgba(107, 70, 193, 0.02) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.blog-card:hover::before {
  opacity: 1;
}

/* Reading Time Indicator */
.blog-meta::after {
  
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-left: auto;
  font-weight: var(--font-weight-medium);
}

.blog-card:nth-child(2) .blog-meta::after {
  
}

.blog-card:nth-child(3) .blog-meta::after {
 
}

/* Responsive Design */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    max-width: 500px;
    margin: var(--spacing-4xl) auto 0;
  }
  
  .blog-content {
    padding: var(--spacing-lg);
  }
  
  .blog-card h3 {
    font-size: var(--font-size-base);
  }
  
  .blog-meta {
    flex-wrap: wrap;
    gap: var(--spacing-sm);
  }

  /* Archive list (news-*) — allow wrapping and show up to 2 categories */
  .news-meta {
    flex-wrap: wrap;
  }
  .news-list .news-meta a.news-category:nth-of-type(n+3) {
    display: none;
  }
  
  .blog-meta::after {
    margin-left: 0;
    order: 3;
    flex-basis: 100%;
  }

  .single .site-main article.post {
    padding: var(--spacing-xs) !important;
  }

}

@media (max-width: 480px) {
  .blog-content {
    padding: var(--spacing-md);
  }
  
  .blog-card h3 {
    font-size: var(--font-size-sm);
  }
  
  .blog-card p {
    font-size: var(--font-size-xs);
  }
  
  .blog-date {
    font-size: var(--font-size-xs);
  }
  
  .blog-category {
    font-size: 10px;
    padding: 2px var(--spacing-xs);
  }

  /* Archive list (news-*) — make chips wrap nicely and show only 1 on very small screens */
  .news-meta {
    flex-wrap: wrap;
  }
  .news-meta .news-category {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .news-list .news-meta a.news-category:nth-of-type(n+2) {
    display: none;
  }
}

/* Ensure consistent gap after breadcrumb on single posts (to match .blog-grid margin-top on lists) */
.single-post .breadcrumb-section + .blog {
  margin-top: var(--spacing-4xl);
}


/* ============================= */
/* News list (archive layout)    */
/* ============================= */
.news-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.news-item {
  display: flex;
  gap: var(--spacing-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-lg);
  align-items: stretch;
  transition: box-shadow var(--transition-normal), transform var(--transition-normal), border-color var(--transition-normal);
}

.news-item:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.news-thumb {
  width: 180px;
  min-width: 180px;
  height: 120px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: block;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-item:hover .news-thumb img {
  transform: scale(1.06);
}

.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.news-date {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

.news-category {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding: var(--spacing-2xs, 4px) var(--spacing-sm);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.news-title {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-snug);
  margin: 0 0 var(--spacing-xs) 0;
}

.news-title a { color: var(--color-text); text-decoration: none; transition: color var(--transition-fast); }
.news-item:hover .news-title a { color: var(--color-primary); }

.news-excerpt {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
}

@media (max-width: 1024px) {
  .news-thumb { width: 160px; min-width: 160px; height: 110px; }
}

@media (max-width: 768px) {
  .news-item { flex-direction: column; }
  .news-thumb { width: 100%; min-width: 0; height: 200px; }
}

