﻿/* =========================================================
   AROOJ MART – Promotions cards
   Changes:
   - Enforces text-only cards with a stable two-column grid (desktop) and single column on mobile.
   - Clamps titles/excerpts so cards stay compact while preserving button visibility.
   - Adds chips for publish date, category, ends-on, and expired states with consistent button styling.
   ========================================================= */

.archive-premium .archive-hero {
    margin-bottom: 22px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 14px;
    max-width: 1240px;
    margin: 0 auto;
}

.post-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    min-height: 260px;
    max-height: 400px;
    display: flex;
    flex-direction: column;
}

.post-card .post-body {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    row-gap: 10px;
    padding: 16px;
    height: 100%;
}

.post-card .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-card .chip {
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: #e7f6f4;
    color: #0c5c55;
    white-space: nowrap;
}

.post-card .chip.muted {
    background: #eef2f7;
    color: #0f172a;
}

.post-card .chip.ends {
    background: #ecfeff;
    color: #0f766e;
    border: 1px solid rgba(15, 118, 110, 0.18);
}

.post-card .chip.expired {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid rgba(153, 27, 27, 0.18);
}

.post-card .post-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .post-title a {
    color: inherit;
    text-decoration: none;
}

.post-card .post-excerpt {
    margin: 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .post-actions {
    margin-top: auto;
}

.post-card .post-actions .button {
    padding: 11px 16px;
    border-radius: 999px;
    background: #0f766e;
    color: #ffffff;
    border: 1px solid rgba(12, 92, 85, 0.4);
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.18);
}

.post-card .post-actions .button:hover,
.post-card .post-actions .button:focus {
    background: #0c5c55;
}

.archive-pagination {
    margin-top: 18px;
    text-align: center;
}

@media (max-width: 1023px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-card {
        max-height: none;
    }
}
