.posts .row > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

.blog-post {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0 20px;
    margin-bottom: 50px;
}

.blog-post-img {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    transition: transform 0.4s ease;
    object-fit: cover;
    margin-bottom: 10px;
}
.blog-post-img:hover {
    transform: scale(1.1);
}

.blog-post-content {
    flex-grow: 1;
}

.blog-post-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color:  #181818;
    text-decoration: none;
    transition: color 0.4s ease;
}
.blog-post-title:hover {
    color:  #3D9FBA;
}

.blog-tags {
    display: flex;
    overflow-x: auto;
    margin-bottom: 20px;
    white-space: nowrap;
    align-items: center; /* This keeps all child elements aligned in the center vertically */
}

.tag {
    display: inline-flex; /* Changed from inline-block to inline-flex */
    align-items: center; /* Center the content vertically */
    justify-content: center; /* Center the content horizontally */
    padding: 14px 24px; /* Adjusted padding for better visual balance */
    margin-right: 10px;
    line-height: 1.4; /* Adjust line-height for better text appearance */
    color: #181818;
    background-color: #EDF7FA;
    font-size: 1.3rem;
    border-radius: 48px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}


.tag.active, .tag:hover {
    background-color: #3D9FBA;
    color: white;
}

.blog-post-desc {
    color: #475467;
    font-size: 1.3rem;
}

.blog-post-date {
    margin-bottom: 10px;
    margin-top: 20px;
    color: #656565;
    font-size: 1.2rem;
}

.blog-post-tags {
    margin-top: 5px;
}

.blog-post-tag {
    display: inline-flex; /* Changed from inline-block to inline-flex */
    align-items: center; /* Center the content vertically */
    justify-content: center; /* Center the content horizontally */
    padding: 8px 16px; /* Adjusted padding to be uniform for better centering */
    margin-right: 5px;
    color: #475467;
    font-weight: 500;
    background-color: #F2F4F7;
    border-radius: 32px;
    font-size: 0.9rem;
    line-height: normal; /* Default line-height for better control with flexbox */
}

