/* استایل‌های کارت‌های مقالات و دسته‌بندی‌ها */
.omknw-article-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
}

.omknw-article-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.omknw-card-thumb {
    height: 180px;
    overflow: hidden;
}

.omknw-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.omknw-article-card:hover .omknw-card-thumb img {
    transform: scale(1.05);
}

.omknw-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.omknw-card-title {
    font-size: 1.3em;
    margin: 0 0 10px 0;
}

.omknw-card-title a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.2s;
}

.omknw-card-title a:hover {
    color: #3498db;
}

.omknw-card-meta {
    font-size: 0.85em;
    color: #95a5a6;
    margin-bottom: 10px;
}

.omknw-card-excerpt {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.omknw-read-more {
    display: inline-block;
    padding: 8px 15px;
    background: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    align-self: flex-start;
    transition: background 0.2s;
}

.omknw-read-more:hover {
    background: #2980b9;
}

/* کارت‌های دسته‌بندی */
.omknw-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.omknw-cat-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s;
}

.omknw-cat-card:hover {
    border-color: #3498db;
    background: #fdfdfd;
}

.omknw-cat-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.omknw-cat-card h3 a {
    text-decoration: none;
    color: #2c3e50;
}

.omknw-cat-card p {
    font-size: 0.9em;
    color: #777;
    margin: 0;
}