.tamd-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(clamp(180px, 30vw, 240px), 1fr));
    gap: 16px;
   width: 100%;
    /*max-width: var(--content-max-width);*/
}
.tamd-card-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: var(--tamd-border);
}

.tamd-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.tamd-card-link-wrap {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.tamd-card-img-box {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background-color: #f3f3f3;
}

.tamd-card-thumb {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tamd-card-item:hover .tamd-card-thumb {
    transform: scale(1.05);
}

.tamd-card-content {
    padding: 14px 16px;
}

.tamd-card-meta-top {
    font-size: 12px;
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    white-space: nowrap;

}
.tamd-post-category {

}
.tamd-post-tag {

}
.tamd-card-meta-top::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.tamd-post-category,
.tamd-post-tag {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    transition: background 0.15s;
    white-space: nowrap;
    letter-spacing: 0.01em;
    line-height: 1.4;
    flex: 0 0 auto;
}
.tamd-post-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 5px;
    background: linear-gradient(120deg,#f43f5e,#fb923c);
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.9);
}
.tamd-post-category-two {
    background: linear-gradient(140deg,#9333ea,#f472b6);
    color: rgba(255, 255, 255, 0.9);
}
.tamd-post-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 5px;
    background: linear-gradient(125deg, #6b7280, #9ca3af);
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.9);
}

.tamd-card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #222;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tamd-card-meta-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    opacity: 1;
    /*border-top: 1px solid rgba(0, 0, 0, 0.05);*/
    padding-top: 4px;
}

.tamd-card-stats {
    display: flex;
    align-items: center;
    gap: 10px;
}

.index-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}