@keyframes fadeInAndMoveToCenter {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.blog_card {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #f8f8f8;
    box-shadow: 3px 5px 20px #00000029;
    border-radius: 18px;
    position: relative;
    cursor: pointer;
    transition: linear .3s all;
}
.blog_card:hover {
    transform: translateY(-5px);
}
.blog_card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    border-radius: 15px;
    transition: background-color 0.3s ease;
    z-index: -1;
}
.blog_card:hover::before {
    z-index: 0;
    background-color: rgba(0, 0, 0, 0.5);
}
.blog_card img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    border-radius: 14px 14px 0 0;
}
.blog_card h2 {
    font-size: 1.1em;
    color: var(--second-color);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.blog_card div.fullname {
    font-size: 0.8rem;
    color: var(--main-color);
    margin-top: auto;
    display: flex;
    align-items: center;
}
.blog_card .read_more_popup {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    color: var(--main-color);
    animation: fadeInAndMoveToCenter 0.5s ease forwards;
}
.blog_card:hover .read_more_popup {
    display: block;
}
.two-lines {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    min-height: 62px;
}

.post-page .main-img{
    max-height: 500px;
    object-fit: fill;
    box-shadow: 6px 6px 20px #00000014;
}
.author-name{
    color: var(--main-color);
}
.author-img {
    width: 32px !important;
    height: 32px !important;
    object-fit: cover;
    margin-right: 10px;
    box-shadow: 1px 2px 11px #00000042;
}
.post-page .author-img {
    width: 60px !important;
    height: 60px !important;
}
@media only screen and (max-width: 768px) {
    
    .blog_card div.fullname {
        margin-bottom: 10px;
    }
    .blog_card .read_more_popup {
        font-size: 0.9rem;
        padding: 8px;
    }
}