/* Blog Container */
.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Blog Card */
.blog-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    font-family: "Poppins", sans-serif;
}

.blog-card:hover {
    transform: translateY(-5px);
}

/* Image */
.blog-card img {
    width: 100%;
    object-fit: cover;
}

/* Content */
.blog-content {
    padding: 1rem;
}

.blog-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-link {
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.blog-link:hover {
    text-decoration: underline;
}


/* Loader Styles */
.loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #2563eb;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 4rem auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Blog card fade-in */
.blog-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.blog-card:nth-child(2) {
    animation-delay: 0.1s;
}

.blog-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Add more delays if you load more than 3 */

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Tweaks */
@media (max-width: 500px) {
    .blog-title {
        font-size: 1rem;
    }

    .blog-excerpt {
        font-size: 0.9rem;
    }
}