/* ===== Post Grid Wrapper ===== */
.stea-product-grid-wrap {
    display: grid;
    grid-template-columns: repeat(var(--stea-product-grid-wrap-number-of-columns-to-show, 3), 1fr);
    gap: 20px;
    text-align: var(--stea-product-grid-wrap-card-alignment, left);
}

/* Card base */
.stea-post-grid-item {
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ===== Feature image ===== */
.stea-feature-image {
    position: relative;
    overflow: hidden;
    line-height: 0;
}
.stea-feature-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.stea-post-grid-item:hover .stea-feature-image img {
    transform: scale(1.05);
}

/* ===== Date badge ===== */
.stea-post-grid-date-badge {
    position: absolute;
    top: 14px;
    background-color: #F4811F;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 8px 14px;
    border-radius: 2px;
    line-height: 1;
    z-index: 2;
    text-transform: uppercase;
}
.stea-post-grid-date-badge.stea-badge-left { left: 14px; right: auto; }
.stea-post-grid-date-badge.stea-badge-right { right: 14px; left: auto; }

/* ===== Content area ===== */
.stea-post-grid-content {
    display: flex;
    flex-direction: column;
}

/* ===== Meta (author/comments) ===== */
.stea-post-grid-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
    color: #5BA850;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.stea-post-grid-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.stea-post-grid-meta svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}

/* ===== Title ===== */
.stea-post-grid-title {
    margin: 5px 0;
    line-height: 1.3;
}
.stea-post-grid-title a {
    text-decoration: none !important;
    color: inherit;
}
.stea-post-grid-title span {
    font-weight: 700;
    color: #1F2937;
    transition: color 0.2s ease;
}

/* ===== Description ===== */
.stea-post-grid-description {
    color: #6B7280;
    margin: 5px 0 12px;
    line-height: 1.6;
}

/* ===== Read more button ===== */
.stea-product-grid-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    text-decoration: none !important;
    color: #F4811F;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: transparent;
    border: 0;
    padding: 0;
}
.stea-product-grid-btn svg,
.stea-product-grid-btn i {
    transition: transform 0.25s ease;
}
.stea-product-grid-btn:hover svg,
.stea-product-grid-btn:hover i {
    transform: translateX(4px);
}

/* ===== Card 1 — Basic ===== */
.stea-post-grid-item.stea-post-card-1 {
    border: 1px solid #E5E7EB;
}

/* ===== Card 3 — Overlay ===== */
.stea-post-grid-item.stea-post-card-3 {
    position: relative;
    min-height: 360px;
    color: #ffffff;
}
.stea-post-grid-item.stea-post-card-3 .stea-feature-image {
    position: absolute;
    inset: 0;
    height: 100%;
}
.stea-post-grid-item.stea-post-card-3 .stea-feature-image img {
    width: 100%;
    height: 100%;
}
.stea-post-grid-item.stea-post-card-3 .stea-post-grid-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.75) 100%);
    z-index: 1;
}
.stea-post-grid-item.stea-post-card-3 .stea-post-grid-content {
    position: relative;
    z-index: 2;
    margin-top: auto;
    color: #ffffff;
}
.stea-post-grid-item.stea-post-card-3 .stea-post-grid-title span,
.stea-post-grid-item.stea-post-card-3 .stea-post-grid-description {
    color: #ffffff;
}
.stea-post-grid-item.stea-post-card-3 .stea-post-grid-meta {
    color: #ffffff;
}

/* ===== Pagination ===== */
.stea-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 20px;
}
.stea-pagination a,
.stea-pagination span {
    text-decoration: none;
    line-height: 1;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .stea-product-grid-wrap {
        grid-template-columns: repeat(var(--stea-product-grid-wrap-number-of-columns-to-show, 2), 1fr);
    }
}
@media (max-width: 767px) {
    .stea-product-grid-wrap {
        grid-template-columns: 1fr;
    }
    .stea-post-grid-meta {
        gap: 12px;
        font-size: 11px;
    }
    .stea-post-grid-date-badge {
        font-size: 11px;
        padding: 6px 10px;
        top: 10px;
        left: 10px;
    }
    .stea-post-card-3 {
        min-height: 300px;
    }
}
