/* General Layout */
.container-custom {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

.page-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: 600;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.blog-item {
    display: flex;
    flex-direction: column;
}

/* Blog Card */
.card-custom {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s;
}

.card-custom:hover {
    transform: translateY(-5px);
}

.blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-body-custom {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.blog-title {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.blog-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.blog-link:hover {
    color: #007bff;
}

.blog-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
    flex-grow: 1;
    /* Allows the description to take up available space */
}

/* Button Styling */
.btn-read-more {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-read-more:hover {
    background-color: #0056b3;
}

/* No Blogs Message */
.no-blogs {
    text-align: center;
    width: 100%;
    margin-top: 50px;
    font-size: 1.2rem;
    color: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Custom CSS to show four items per row on desktop */
@media (min-width: 992px) {

    .product-grid,
    .blog-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
        /* Use the same gap for consistency */
    }
}
