/* Blog-specific styles */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Blog content prose styles for RTL */
.prose-rtl {
  direction: rtl;
  text-align: right;
}

.prose-rtl h1,
.prose-rtl h2,
.prose-rtl h3,
.prose-rtl h4,
.prose-rtl h5,
.prose-rtl h6 {
  text-align: right;
}

.prose-rtl ul,
.prose-rtl ol {
  padding-right: 1.5rem;
  padding-left: 0;
}

.prose-rtl blockquote {
  border-right: 4px solid #8b5cf6;
  border-left: none;
  padding-right: 1rem;
  padding-left: 0;
}

/* Blog card hover effects */
.blog-card {
  transition: transform 0.2s ease-in-out;
}

.blog-card:hover {
  transform: translateY(-4px);
}

/* Loading animation */
.loading-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

/* Blog search input focus styles */
.blog-search-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #8b5cf6;
}

/* Blog filter dropdown styles */
.blog-filter-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: left 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-left: 2.5rem;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
