/* === Blog Carousel === */
.blog-carousel { padding: 60px 0; }
.carousel-wrapper {
  position: relative; display: flex; align-items: center; gap: 16px;
}
.carousel-container {
  flex: 1; overflow: hidden; position: relative;
}
.carousel-track {
  display: flex; gap: 24px; transition: transform 0.5s ease; will-change: transform;
}
.blog-card {
  flex: 0 0 320px; min-width: 0; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border-card);
  border-radius: var(--radius-lg); padding: 24px;
  transition: all 0.3s ease; cursor: pointer;
}
.blog-card:hover {
  border-color: rgba(255,255,255,0.12); transform: translateY(-2px);
}
.blog-card h3 {
  font-size: 16px; font-weight: 600; margin-bottom: 10px;
  color: var(--text-primary); letter-spacing: -0.2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card .post-image img {
  width: 100%; height: 160px; object-fit: cover;
  border-radius: 8px; margin-bottom: 12px;
}
.blog-card .blog-excerpt {
  color: var(--text-secondary); font-size: 13px; font-weight: 300;
  line-height: 1.6; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card .blog-meta {
  display: flex; gap: 12px; align-items: center;
  font-size: 13px; color: var(--text-tertiary);
}
.blog-card .blog-date { display: flex; align-items: center; gap: 4px; }
.carousel-btn {
  background: var(--bg-card); border: 1px solid var(--border-card);
  border-radius: 50%; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s ease; flex-shrink: 0; color: var(--text-secondary);
}
.carousel-btn:hover { border-color: rgba(255,255,255,0.15); color: var(--text-primary); }
.carousel-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.carousel-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 20px;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-card); cursor: pointer; transition: all 0.3s ease; border: none;
}
.carousel-dot.active {
  background: var(--accent); width: 24px; border-radius: 4px;
}

/* === Skeleton === */
.skeleton { pointer-events: none; cursor: default; }
.skeleton-title, .skeleton-text {
  background: linear-gradient(90deg, var(--border-card) 25%, rgba(255,255,255,0.06) 50%, var(--border-card) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 4px;
}
.skeleton-title { height: 24px; width: 80%; margin-bottom: 16px; }
.skeleton-text { height: 16px; margin-bottom: 8px; }
.skeleton-text:last-child { width: 60%; }
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === Mobile Carousel === */
@media (max-width: 768px) {
  .carousel-btn { display: none; }
  .carousel-wrapper { gap: 0; }
  .carousel-track { gap: 16px; padding: 0; }
  .blog-card { flex: none; width: calc(100vw - 72px); padding: 24px; }
  .blog-card h3 { -webkit-line-clamp: 3; font-size: 15px; }
  .blog-card .blog-excerpt { -webkit-line-clamp: 4; }
  .blog-card .post-image img { height: 180px; }
  .carousel-container { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
  .blog-card { scroll-snap-align: center; }
}
