.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination Styles */
.pagination {
    @apply flex justify-center mt-16;
}

.pagination li {
    @apply mx-1;
}

.pagination li a,
.pagination li span {
    @apply px-4 py-2 rounded-lg bg-white dark:bg-dark-200 border border-gray-300 dark:border-gray-600 text-gray-700 dark:text-gray-200 transition-colors duration-200;
}

.pagination li.active span {
    @apply bg-primary-500 text-white border-primary-500;
}

.pagination li a:hover {
    @apply bg-primary-50 dark:bg-dark-300 border-primary-200 dark:border-gray-500;
}

/* Smooth transitions for scale effects */
.transform {
    transform: translateZ(0);
}

/* Improve scaling performance */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Card hover effects */
.blog-card {
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #0369a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animation delays */
.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Enhanced prose styles */
.prose {
    line-height: 1.75;
}

.prose p {
    margin-bottom: 1.5em;
}

.prose img {
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.prose h2, .prose h3, .prose h4 {
    margin-top: 2em;
    margin-bottom: 1em;
}

.prose h2 {
    font-size: 1.75em;
    font-weight: 700;
    border-bottom: 2px solid #0ea5e9;
    padding-bottom: 0.5em;
}

.prose ul, .prose ol {
    margin-bottom: 1.5em;
}

.prose li {
    margin-bottom: 0.5em;
}

/* Scroll animations */
.post-content-child {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.post-content-child.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for children - reduced for smoother scrolling */
.post-content-child:nth-child(1) { transition-delay: 0.05s; }
.post-content-child:nth-child(2) { transition-delay: 0.1s; }
.post-content-child:nth-child(3) { transition-delay: 0.15s; }
.post-content-child:nth-child(4) { transition-delay: 0.2s; }
.post-content-child:nth-child(5) { transition-delay: 0.25s; }
.post-content-child:nth-child(6) { transition-delay: 0.3s; }
.post-content-child:nth-child(7) { transition-delay: 0.35s; }
.post-content-child:nth-child(8) { transition-delay: 0.4s; }
.post-content-child:nth-child(9) { transition-delay: 0.45s; }
.post-content-child:nth-child(10) { transition-delay: 0.5s; }
.post-content-child:nth-child(11) { transition-delay: 0.55s; }
.post-content-child:nth-child(12) { transition-delay: 0.6s; }
.post-content-child:nth-child(13) { transition-delay: 0.65s; }
.post-content-child:nth-child(14) { transition-delay: 0.7s; }
.post-content-child:nth-child(15) { transition-delay: 0.75s; }
.post-content-child:nth-child(16) { transition-delay: 0.8s; }
.post-content-child:nth-child(17) { transition-delay: 0.85s; }
.post-content-child:nth-child(18) { transition-delay: 0.9s; }
.post-content-child:nth-child(19) { transition-delay: 0.95s; }
.post-content-child:nth-child(20) { transition-delay: 1.0s; }

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.dark ::-webkit-scrollbar-track {
    background: #374151;
}

.dark ::-webkit-scrollbar-thumb {
    background: #6b7280;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
