
/* Header Styles */
.blog-header {
    text-align: center;
    margin-top: 150px;
}

.blog-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.blog-header p {
    font-size: 20px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

/* Blog Card */
.blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

.card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .card-image img {
    transform: scale(1.05);
}

.category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    padding: 6px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.card-content {
    padding: 32px;
}

.meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #999;
}

.meta span {
    display: flex;
    align-items: center;
}

.read-time::before {
    content: "•";
    margin-right: 16px;
}

.card-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.card-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author span {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.read-more {
    color: #0066ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.read-more:hover {
    color: #0052cc;
    gap: 8px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    background: #f8f8f8;
    border-color: #d0d0d0;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-number:hover {
    background: #f8f8f8;
    color: #1a1a1a;
    border-color: #d0d0d0;
}

.page-number.active {
    background: #0066ff;
    color: #ffffff;
    border-color: #0066ff;
}

.dots {
    padding: 0 8px;
    color: #999;
}

/* Responsive Design */
/* Responsive Design - Continued */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 36px;
    }
    
    .blog-header p {
        font-size: 18px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .card-content {
        padding: 24px;
    }
    
    .card-content h2 {
        font-size: 20px;
    }
    
    .pagination {
        gap: 4px;
    }
    
    .page-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .page-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .page-btn.prev span,
    .page-btn.next span {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 16px;
    }
    
    .blog-header {
        margin-bottom: 40px;
    }
    
    .blog-header h1 {
        font-size: 28px;
    }
    
    .blog-header p {
        font-size: 16px;
    }
    
    .card-image {
        height: 200px;
    }
    
    .category {
        font-size: 12px;
        padding: 4px 12px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-content h2 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .card-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .meta {
        font-size: 13px;
    }
    
    .author span {
        font-size: 13px;
    }
    
    .author img {
        width: 32px;
        height: 32px;
    }
    
    .read-more {
        font-size: 14px;
    }
    
    .page-numbers {
        display: flex;
        gap: 2px;
    }
    
    .page-number:nth-child(n+4):not(:last-child) {
        display: none;
    }
    
    .dots {
        display: none;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
.page-btn:focus,
.page-number:focus,
.read-more:focus {
    outline: 2px solid #0066ff;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .pagination {
        display: none;
    }
    
    .blog-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Additional Hover Effects */
.blog-card {
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 102, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 16px;
}

.blog-card:hover::before {
    opacity: 1;
}

/* Category Color Variations */
.category {
    transition: all 0.3s ease;
}

.blog-card:hover .category {
    background: #0066ff;
    color: #ffffff;
}

/* Subtle Animations */
.blog-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.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; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* You can add dark mode styles here if needed */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}
    
