/* ===============================
   GRID LAYOUT
================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 320px);
    gap: 30px;
    justify-content: center;
    padding: 30px 0;
}

/* ===============================
   PRODUCT CARD
   SAME SIZE & FLEX
================================ */
.product-card {
    background: #f6f6f6;
    border-radius: 20px;
    padding: 18px;
    width: 320px;
    height: auto;

    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* ===============================
   IMAGE
================================ */
.product-image {
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    text-align: center;
    margin-bottom: 12px;
}

.product-image img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* ===============================
   CONTENT
================================ */
.product-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Push "Read More" button to the bottom */
.product-content .read-more {
    margin-top: auto;
}

/* ===============================
   DESCRIPTION LIMIT TO 2 LINES  (NEW ADDED SECTION)
================================ */
.product-description {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Show only 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em;
    max-height: 3em; /* 2 lines height control */
    margin-bottom: 14px;
}

/* ===============================
   PRODUCT TITLE LINK
================================ */
.product-title-link {
    text-decoration: none;
    color: #1e73be;
    transition: color 0.3s ease;
}

.product-title-link:hover {
    color: #155799;
}

/* ===============================
   READ MORE BUTTON
================================ */
.read-more {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    background: linear-gradient(135deg, #be123c, #9f1239);
    transform: translateX(4px);
}

/* ===============================
   RIPPLE EFFECT (optional)
================================ */
.product-card .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(30, 115, 190, 0.25);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===============================
   RESPONSIVE GRID
================================ */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 320px);
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 320px;
    }
}

/* ===============================
   PAGINATION
================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    gap: 8px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #1e3a8a;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.pagination a:hover {
    background: #1e3a8a;
    color: #fff;
}

.pagination .active {
    background: #1e3a8a;
    color: #fff;
}

.page-arrow {
    font-size: 14px;
}