#content {
    position: relative;
    margin-top: 198px;
}

#content .wrapper .blog-posts {
    display: grid;
    position: relative;
    top: -146px;
    grid-template-columns: repeat(3, 366px);
    margin: 0 100px;
    gap: 34px;  
    justify-content: center; 
}
 
/* Content blog card -------------------------------- */

#content .blog-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background-color: var(--neutral-color); 
    max-width: 366px;
    min-height: 488px;
    max-height: 488px;
}

#content .blog-card:hover {
    cursor: pointer;
}

#content .blog-card:hover .blog-image .img {
    transform: scale(1.02);
}

.blog-card .blog-image {
    width: 318px;
    height: 308px;
    overflow: hidden;
    background-color: white;
    
}

.blog-card .blog-image .img {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    transition: all .2s ease-in-out;
}

.blog-card .blog-title {
    font-family: 'Sohne Mono';
    font-size: 14px;
    line-height: 20px; 
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: left;
    margin-bottom: 22px;
    max-height: 40px;
    min-height: 40px;
    display: -webkit-box; 
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .blog-bottom-section {
    display: flex;
    align-items: center;
    padding-top: 26px;
    border-top: 1.5px dashed var(--black);
    gap: 35px;
}

.blog-bottom-section .read-article-btn span {
    font-family: 'Sohne Mono';
    font-size: 14px;
    line-height: 24px; 
    letter-spacing: 0.06em; 
    color: var(--white);
    text-transform: uppercase;
} 

.badge-blog-type ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-bottom-section .badge-blog-type {
    font-family: 'Sohne Mono';
    font-size: 14px;
    text-align: center;
    line-height: 24px; 
    letter-spacing: 0.06em; 
    text-transform: uppercase;
    background-color: var(--white);
    padding: 4px 18px;
    max-width: 100px;
    min-width: 100px;
}
 
/*  Medium devices (tablets, less than 992px) */
@media (max-width: 1200px) {  

    #content .wrapper .blog-posts  {
        grid-template-columns: 358px 358px;
        margin: 0 16px;
        column-gap: 20px; 
        justify-content: center;
    } 

    .blog-bottom-section .read-article-btn span {
        font-size: 12px;
        line-height: 16px;
    }
}

/*  Medium devices (tablets, less than 992px) */
@media (max-width: 992px) {  

    #content .wrapper .blog-posts  {
        grid-template-columns: 358px 358px;
        margin: 0 16px;
        column-gap: 20px; 
        justify-content: center;
    } 

    .blog-bottom-section .read-article-btn span {
        font-size: 12px;
        line-height: 16px;
    }
}

/*  X-Small devices (portrait phones, less than 576px) */
@media (max-width: 576px) {  
    #content .wrapper .blog-posts  {
        grid-template-columns: 358px;
        margin: 0 16px;
        column-gap: 0; 
        row-gap: 20px;
        justify-content: center;
    } 

    .blog-bottom-section .read-article-btn span {
        font-size: 12px;
        line-height: 16px;
    }
}
