body {
    box-sizing: border-box;
}

/* Blog Card Styles */
.blog-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

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

.blog-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.blog-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    z-index: 1;
}

.blog-card img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* Blog Content Styling */
.blog-content {
    color: #374151;
    line-height: 1.9;
    font-size: 1.125rem;
}

.blog-content p {
    margin-bottom: 1.75rem;
    line-height: 1.9;
    font-size: 1.125rem;
    color: #4b5563;
}

.blog-content strong {
    font-weight: 700;
    color: #1f2937;
    background: linear-gradient(120deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    padding: 0 4px;
    border-radius: 3px;
}

.blog-content h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin: 3rem 0 1.5rem 0;
    color: #1f2937;
    line-height: 1.2;
    position: relative;
    padding-bottom: 1rem;
}

.blog-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #9333ea);
    border-radius: 2px;
}

.blog-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2.5rem 0 1.25rem 0;
    color: #374151;
    line-height: 1.3;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 2.5rem 0;
    box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 70px -12px rgba(0, 0, 0, 0.2);
}

.blog-content ul, 
.blog-content ol {
    margin: 2rem 0;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 1rem;
    line-height: 1.9;
    position: relative;
    padding-left: 0.5rem;
}

.blog-content ul li::marker {
    color: #3b82f6;
    font-weight: bold;
}

.blog-content ol li::marker {
    color: #9333ea;
    font-weight: bold;
}

.blog-content a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 2px solid rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
}

.blog-content a:hover {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    padding: 0 2px;
    border-radius: 3px;
}

.blog-content blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6b7280;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
    padding: 1.5rem;
    border-radius: 8px;
}

/* Line clamp utilities */
.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;
}

/* Prose styling */
.prose {
    max-width: 65ch;
}

.prose-lg {
    font-size: 1.125rem;
}

.prose-lg p {
    margin-bottom: 1.75rem;
}

.prose-blue a {
    color: #2563eb;
}

.prose-blue strong {
    color: #1e40af;
}

/* Tag Styling */
.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #dbeafe 0%, #e9d5ff 100%);
    color: #1e40af;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tag:hover {
    background: linear-gradient(135deg, #bfdbfe 0%, #ddd6fe 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-content h2 {
        font-size: 1.75rem;
        margin: 2rem 0 1rem 0;
    }
    
    .blog-content h3 {
        font-size: 1.5rem;
        margin: 1.5rem 0 1rem 0;
    }
    
    .blog-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .blog-card:hover {
        transform: translateY(-8px) scale(1.01);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #9333ea);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2563eb, #7e22ce);
}