/* ===============================
   FRONTEND BLOG GRID
================================ */
.frontend-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 320px); /* same width as product cards */
    gap: 30px;
    justify-content: center;
    padding: 40px 200px; /* spacing from left & right */
}

/* ===============================
   FRONTEND BLOG CARD
================================ */
.frontend-blog-card {
    background: #f6f6f6;
    border-radius: 20px;
    padding: 18px;
    width: 320px;      /* same as product card */
    height: auto;

    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    overflow: hidden;
    position: relative;
}

.frontend-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* ===============================
   IMAGE
================================ */
.frontend-blog-card .blog-image {
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    text-align: center;
    margin-bottom: 12px;
}

.frontend-blog-card .blog-image img {
    width: 100%;
    height: 150px;   /* same as product cards */
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

.frontend-blog-card:hover .blog-image img {
    transform: scale(1.05);
}

/* ===============================
   DATE
================================ */
.frontend-blog-card .blog-date {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.frontend-blog-card .blog-date::before {
    
    margin-right: 6px;
}

/* ===============================
   CONTENT
================================ */
.frontend-blog-card .blog-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* ensures Read More stays at bottom */
}

/* Title same as product card */
.frontend-blog-card .blog-title {
    font-size: 18px; /* same as product card h3 */
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Content snippet now limited to ONLY 2 LINES */
.frontend-blog-card .blog-snippet {
    font-size: 14px; /* same as product card p */
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 16px;

    display: -webkit-box;
    -webkit-line-clamp: 2; /* UPDATED FROM 3 TO 2 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===============================
   READ MORE BUTTON
================================ */
.frontend-blog-card .read-more {
    margin-top: auto;
    display: inline-block;
    font-size: 12px;      /* same as product card */
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: #fff;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.frontend-blog-card .read-more:hover {
    background: linear-gradient(135deg, #be123c, #9f1239);
    transform: translateX(4px);
}

/* ===============================
   RESPONSIVE GRID
================================ */
@media (max-width: 1440px) {
    .frontend-blog-grid {
        padding: 40px 150px;
    }
}

@media (max-width: 1024px) {
    .frontend-blog-grid {
        grid-template-columns: repeat(2, 320px);
        padding: 30px 80px;
    }
    .frontend-blog-card .blog-image img {
        height: 150px;
    }
}

@media (max-width: 768px) {
    .frontend-blog-grid {
        grid-template-columns: 1fr;
        padding: 20px 20px;
    }
    .frontend-blog-card .blog-image img {
        height: 140px;
    }
    .frontend-blog-card .read-more {
        width: 100%;
        text-align: center;
    }
}