﻿/* 1. Main Grid Container (Desktop: 4 Columns) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Creates exactly 4 equal columns */
    column-gap: 0.5rem;
    padding: 0.5rem;
}

/* 2. The Card (Width is now handled automatically by the grid) */
.blog-card {
    text-decoration: none !important;
    color: inherit !important;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.banner-container{
	overflow:hidden;
}
.img-responsive{
	width: 100%;
	min-width:100%;
	max-width:100%;
	height:auto;
}
/* 3. Featured Image */
.blog-card img {
    width: 100%;
    object-fit: cover;
    display: block;
	transition: transform 0.4s ease-in-out;
}
.blog-card:hover img {
    transform: scale(1.1);
}

/* 4. Content Area */
.blog-card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #f45c09;
    line-height: 1.3;
}

.blog-excerpt {
    font-size: 14px;
    color: #000;
    margin: 0;
    line-height: 1.5;
}

/* 5. Mobile Responsiveness (Mobile: 1 Column) */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr; /* Forces the grid into a single column */
    }
}

/* Optional: If you want an intermediate step for Tablets (2 columns) */
@media (max-width: 992px) and (min-width: 769px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for medium screens */
    }
}