/* =================================================
   ER BLOG ARCHIVE GRID
   Author: Erick R.
   Prefix: er-blog
================================================= */

.er-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Tablet */
@media (max-width: 980px) {
    .er-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .er-blog-grid {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------
   Blog Card
------------------------------------------------- */
.er-blog-item {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    height: 100%;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Subtle lift on hover */
.er-blog-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* -------------------------------------------------
   Image
------------------------------------------------- */
.er-blog-image {
    overflow: hidden;
}

.er-blog-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Slight image zoom */
.er-blog-item:hover .er-blog-image img {
    transform: scale(1.06);
}

/* -------------------------------------------------
   Content
------------------------------------------------- */
.er-blog-content {
    display: flex;
    flex-direction: column;
    padding: 24px;
    flex-grow: 1;
    transition: background-color 0.35s ease;
}

/* Very subtle background shift */
.er-blog-item:hover .er-blog-content {
    background-color: #fafafa;
}

/* Date */
.er-blog-date {
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #2e3931;
}

/* Title */
.er-blog-title {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.3;
}

.er-blog-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Title color shift */
.er-blog-item:hover .er-blog-title a {
    color: #2e3931;
}

/* Excerpt */
.er-blog-excerpt {
    color: #000000;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* -------------------------------------------------
   Button
------------------------------------------------- */
.er-blog-button-wrap {
    margin-top: auto;
}

.er-blog-button {
    display: inline-block;
    padding: 14px 26px;
    border: 1px solid #000000;
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* Button hover */
.er-blog-button:hover {
    background-color: #b9a899;
    color: #ffffff;
    border-color: #b9a899;
}

/* -------------------------------------------------
   Pagination
------------------------------------------------- */
.er-blog-pagination {
    margin-top: 60px;
    text-align: center;
}

.er-blog-pagination .page-numbers {
    display: inline-block;
    margin: 0 6px;
    padding: 10px 16px;
    border: 1px solid #2e3931;
    color: #2e3931;
    text-decoration: none;
    transition: all 0.3s ease;
}

.er-blog-pagination .page-numbers.current,
.er-blog-pagination .page-numbers:hover {
    background-color: #2e3931;
    color: #ffffff;
}
