.tender-card,
.news-card {
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 8px;
    display: flex;
    gap: 18px;
    padding: 18px;
}

.tender-card:hover,
.news-card:hover {
    border-color: #c9d7e8;
    box-shadow: 0 12px 28px rgba(22, 34, 51, .08);
}

.tender-card-content,
.news-body {
    flex: 1;
    min-width: 0;
}

.tender-card-head,
.news-meta {
    align-items: center;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 8px;
    margin-bottom: 10px;
}

.tender-title,
.news-title {
    color: #111827;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 10px;
}

.tender-title a,
.news-title a {
    color: inherit;
}

.tender-title a:hover,
.news-title a:hover {
    color: #1d4ed8;
    text-decoration: none;
}

.tender-meta {
    color: #475569;
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 8px 16px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.tender-meta i,
.news-meta i {
    color: #94a3b8;
    margin-right: 5px;
}

.tender-meta a {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.tender-meta a:hover,
.tender-meta a:focus {
    color: #1d4ed8;
    text-decoration: underline;
}

.tender-summary,
.news-summary {
    color: #64748b;
    line-height: 1.75;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tender-status,
.news-tag,
.listing-link-pill {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    min-height: 24px;
    padding: 3px 9px;
}

.tender-status-published {
    background: #e7f7ee;
    color: #15803d;
}

.tender-status-closed {
    background: #eef2f7;
    color: #64748b;
}

.quote-status-pending,
.quote-status-pending_result,
.quote-status-submitted {
    background: #eff6ff;
    color: #1d4ed8;
}

.quote-status-accepted,
.quote-status-all_won {
    background: #dcfce7;
    color: #15803d;
    font-weight: 800;
}

.quote-status-partial_won {
    background: #ffedd5;
    color: #c2410c;
    font-weight: 800;
}

.quote-status-rejected,
.quote-status-lost {
    background: #fee2e2;
    color: #b91c1c;
}

.quote-status-invalid,
.quote-status-withdrawn {
    background: #e2e8f0;
    color: #475569;
}

.my-quote-actions {
    align-items: center;
    align-self: center;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 8px;
}

.tender-card-action-ghost {
    background: #fff;
    border-color: #e2e8f0;
    color: #475569;
}

.tender-card-action-ghost:hover,
.tender-card-action-ghost:focus {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
    text-decoration: none;
}

.news-tag {
    background: #eaf2ff;
    color: #1d4ed8;
}

.listing-link-pill {
    background: #ecfdf5;
    color: #047857;
}

.listing-link-pill:hover,
.listing-link-pill:focus {
    background: #d1fae5;
    color: #065f46;
    text-decoration: none;
}

.tender-card-action {
    align-items: center;
    align-self: center;
    border: 1px solid #dbe4ef;
    border-radius: 999px;
    color: #1d4ed8;
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 700;
    gap: 6px;
    min-height: 36px;
    padding: 0 13px;
}

.tender-card-action:hover,
.tender-card-action:focus {
    background: #eaf2ff;
    border-color: #b9d2ff;
    color: #1d4ed8;
    text-decoration: none;
}

.news-thumb-link {
    display: block;
    flex: 0 0 154px;
    height: 104px;
}

.news-thumb {
    background: #f1f5f9;
    border-radius: 8px;
    height: 100%;
    overflow: hidden;
    width: 100%;
}

.news-thumb img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.news-thumb-fallback {
    align-items: center;
    border: 1px solid #dbe4ef;
    display: flex;
    justify-content: center;
}

.news-thumb-fallback i {
    font-size: 30px;
}

.news-thumb-blue {
    background: #eaf2ff;
    color: #1d4ed8;
}

.news-thumb-green {
    background: #e7f7ee;
    color: #15803d;
}

.news-thumb-orange {
    background: #fff3e8;
    color: #c2410c;
}

.news-thumb-slate {
    background: #eef2f7;
    color: #475569;
}

.listing-more {
    color: #1d4ed8;
    font-weight: 700;
    margin-left: auto;
}

.listing-more:hover,
.listing-more:focus {
    color: #1e40af;
    text-decoration: none;
}

@media (max-width: 767px) {
    .tender-card,
    .news-card {
        display: block;
    }

    .tender-card-action {
        margin-top: 14px;
    }

    .my-quote-actions {
        align-items: stretch;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 14px;
    }

    .my-quote-actions .tender-card-action {
        flex: 1 1 auto;
        justify-content: center;
        margin-top: 0;
    }

    .news-thumb-link {
        height: 164px;
        margin-bottom: 14px;
        width: 100%;
    }
}
