@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

.dvn-posts-grid {
    margin: 20px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
}

.dvn-posts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.dvn-posts-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.dvn-post-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
}

.dvn-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #d1d5db;
}

.dvn-post-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(45deg, #f8fafc 0%, #e2e8f0 100%);
}

.dvn-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dvn-post-card:hover .dvn-post-image img {
    transform: scale(1.05);
}

.dvn-post-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #f1f5f9 0%, #e2e8f0 100%);
}

.dvn-post-placeholder svg {
    width: 40px;
    height: 40px;
    color: #9ca3af;
}

.dvn-post-content {
    padding: 20px;
    background: #ffffff;
}

.dvn-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    flex-wrap: wrap;
}

.dvn-post-author,
.dvn-post-date {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    padding: 3px 8px;
    border-radius: 8px;
}

.dvn-post-author svg,
.dvn-post-date svg {
    width: 14px;
    height: 14px;
}

.dvn-post-category {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
}

.dvn-post-title {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1f2937;
}

.dvn-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dvn-post-title a:hover {
    color: #3b82f6;
}

.dvn-post-excerpt {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dvn-post-footer {
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.dvn-post-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #3b82f6;
    color: white !important;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.dvn-post-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    color: white;
    text-decoration: none;
}

.dvn-post-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.dvn-post-btn:hover svg {
    transform: translateX(2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dvn-posts-grid {
        padding: 16px 0;
        margin: 16px 0;
        border-radius: 8px;
    }

    .dvn-posts-container {
        padding: 0 16px;
    }

    .dvn-posts-wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 12px;
    }

    .dvn-post-content {
        padding: 16px;
    }

    .dvn-post-image {
        height: 160px;
    }

    .dvn-post-title {
        font-size: 1rem;
    }

    .dvn-post-card:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 480px) {
    .dvn-posts-grid {
        padding: 12px 0;
        margin: 12px 0;
    }

    .dvn-posts-container {
        padding: 0 12px;
    }

    .dvn-posts-wrapper {
        gap: 12px;
    }

    .dvn-post-content {
        padding: 14px;
    }

    .dvn-post-image {
        height: 140px;
    }

    .dvn-post-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 14px;
    }

    .dvn-post-meta {
        font-size: 11px;
        gap: 8px;
    }

    .dvn-post-excerpt {
        font-size: 13px;
    }
}

/* Clean animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.dvn-post-card {
    animation: fadeInUp 0.5s ease-out forwards;
}

.dvn-post-card:nth-child(1) {
    animation-delay: 0.1s;
}

.dvn-post-card:nth-child(2) {
    animation-delay: 0.2s;
}

.dvn-post-card:nth-child(3) {
    animation-delay: 0.3s;
}

.dvn-post-card:nth-child(4) {
    animation-delay: 0.4s;
}

.dvn-post-card:nth-child(5) {
    animation-delay: 0.5s;
}

.dvn-post-card:nth-child(6) {
    animation-delay: 0.6s;
}