/* =========================
   Base font fix (IMPORTANT)
========================= */

.mrhost-post-archives-wrapper,
.mrhost-post-archives-wrapper * {
    font-family: "DM Sans", sans-serif;
}

/* =========================
   Header
========================= */

.mrhost-post-archives-header {
    margin-bottom: 30px;
}

.mrhost-post-archives-title {
    font-size: 34px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1D1E20;
    text-align: left;
}

.mrhost-post-archives-description {
    font-size: 16px;
    color: #555;
    text-align: left;
    max-width: 700px;
    line-height: 1.5;
}

/* =========================
   Grid
========================= */

.mrhost-post-archives-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* =========================
   Card
========================= */

.mrhost-post-archive-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border: 1px solid #d5dfff;
    border-radius: 8px;
    padding: 16px;
    transition: 0.3s;
    background: #fff;
}

.mrhost-post-archive-item:hover {
    border-color: #7253ED;
}

/* Image */
.mrhost-post-archive-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

/* =========================
   Meta (NEW requirement #4)
========================= */

.mrhost-post-archive-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

/* Title */
.mrhost-post-archive-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1D1E20;
    margin-bottom: 10px;
}

/* Excerpt */
.mrhost-post-archive-item p {
    font-size: 14px;
    color: #333;
    flex-grow: 1;
    line-height: 1.4;
}

/* Button */
.mrhost-post-archive-button {
    align-self: flex-start;
    margin-top: 15px;
    background-color: #673DE6;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    transition: 350ms;
}

/* Hover state */
.mrhost-post-archive-item:hover .mrhost-post-archive-button {
    background-color: #5025D1;
}

/* Empty */
.mrhost-post-archive-empty {
    grid-column: 1 / -1;
}

/* =========================
   Mobile
========================= */

@media (max-width: 768px) {

    .mrhost-post-archives-grid {
        grid-template-columns: 1fr;
    }

    .mrhost-post-archives-title {
        font-size: 26px;
    }
}