
/** Blog POST GRID **/
/* ===== Blog Grid Layout ===== */
.custom-blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns on large screens */
    gap: 20px;
    padding: 20px;
}

/* ===== Blog Card Styling ===== */
.blog-card {
    background: #fff;
    border: 8px solid #ffffff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative;
}

.blog-card:hover {
/*    transform: scale(1.01);*/
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}

/* ===== Ensure Uniform Image Aspect Ratio ===== */
.blog-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Image Wrapper for Aspect Ratio */
.blog-card .image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9; /* Ensures all images have the same aspect ratio */
    overflow: hidden;
    display: flex;
    align-items: center;
   /* justify-content: center;*/
}

/* Image Styling */
.blog-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the box without stretching */
    transition: opacity 0.3s ease-in-out;
}

.blog-card:hover img {
    opacity: 0.9;
}

/* ===== Title Styling ===== */
.blog-title {
    font-size: 18px;
    margin: 15px 10px;
    font-weight: bold;
    color: #224258;
    line-height: 1.4em;
}

/* Adjustments for Smaller Screens */
@media (max-width: 1200px) {
    .custom-blog-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on tablets */
    }
}

@media (max-width: 900px) {
    .custom-blog-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller tablets */
    }
}

@media (max-width: 600px) {
    .custom-blog-grid {
        grid-template-columns: repeat(1, 1fr); /* 1 column on mobile */
    }

    .blog-card {
        max-width: 90%;
        margin: 0 auto;
    }
}
