﻿.blog-breadcrumb-container {
    /* padding-left: 0 !important; */
}

.banner-blog {
    margin-bottom: 32px;
    padding-top: 32px !important;
}

    .banner-blog img {
        width: 100%;
        /*        height: 148px;*/
    }

.blog-page {
}

.blogpost-page {
    padding-top: 0 !important;
    background: #fff;
}

.blog-custom-tag {
    padding-top: 6px;
}

.blog-latest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: minmax(200px, 1fr) minmax(200px, 1fr);
    grid-gap: 20px;
    padding-bottom: 38px;
}

.blog-relate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
}

.blog-footer-custom {
    padding-top: 8px !important;
}

.blog-relate-grid :first-child {
    grid-column: 1 / span 2;
    grid-row: 0;
}

.blog-relate-grid h6 {
    color: #161D25;
}

.blog-page-sidebar.blog-right-bar {
    border-radius: 0.75rem;
    border: 1px solid #e3e3e3;
    box-shadow: 0 12px 24px 0 rgba(0, 0, 0, 0.1);
}

.blog-right-bar .product-name {
    display: block;
    font-size: 15px;
    letter-spacing: 0.2px;
    color: #161D25;
}

.blog-right-bar .product-price {
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.2px;
    line-height: 24px;
    color: var(--red);
}

.blog-right-bar .product-name:hover {
    color: var(--ansinhmed);
}

.medgo-img-wrapp {
    border: 0px solid;
}

    .medgo-img-wrapp img {
        position: absolute;
        inset: 0 0 0 0;
        max-width: 100%;
        max-height: 100%;
        margin: auto;
        background-color: #fff;
        transition: transform .3s ease;
        border-radius: 0.75rem;
    }

        .medgo-img-wrapp img:hover {
            opacity: 0.65;
        }

.blog-relate-grid .blog-item:first-child h6 {
    font-size: 15px;
}

.blog-relate-grid .blog-item h6 {
    font-size: 12px;
}

.blog-relate-grid .blog-item:first-child img {
    width: 381px;
    height: 214px;
}

.blog-relate-grid .blog-item img {
    width: 184px;
    height: 103px;
}

.blog-right-bar .title-right-bar {
    font-weight: 500;
    font-size: 20px;
    letter-spacing: 0.17px;
    color: #333;
    vertical-align: top;
    text-transform: uppercase;
    padding-bottom: 6px;
}

.blog-latest-grid .blog-item .fly {
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.86) 100%);
}

    .blog-latest-grid .blog-item .fly .date {
        display: none;
    }

.blog-latest-grid .blog-item:first-child {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
}

    .blog-latest-grid .blog-item:first-child img {
        width: 514px;
        height: 295px;
        border-radius: 0.75rem;
    }

.blog-latest-grid .blog-item img {
    width: 249px;
    height: 140px;
    border-radius: 0.75rem;
}

.blog-latest-grid .blog-item:first-child .blog-content {
    display: -webkit-box;
    padding-top: 12px;
    margin-bottom: 0 !important;
    font-size: 14px;
    line-height: 22px;
    color: #161D25;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.blog-latest-grid .blog-item .blog-content {
    display: none;
}

.blog-latest-grid .blog-item:first-child .title-header-blog {
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
    padding-top: 8px;
    color: #161D25;
    letter-spacing: 0.2px;
}

.blog-latest-grid .blog-item .title-header-blog {
    color: #161D25;
    display: -webkit-box;
    word-wrap: break-word;
    overflow: hidden;
    line-height: 26px;
    padding-top: 8px;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.blog-latest-grid .blog-item:first-child .title-header-blog {
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
    color: #161D25;
}

.blog-latest-grid .blog-item:first-child .fly {
    padding: 15px 35px;
}

    .blog-latest-grid .blog-item:first-child .fly .title {
        font-size: 1.75rem;
        line-height: 1.571;
        letter-spacing: 0.2px;
    }

    .blog-latest-grid .blog-item:first-child .fly .date {
        display: block;
        font-size: 0.75rem;
        line-height: 1.5;
        color: var(--white);
    }

.blog-page .hedding-line {
    border-bottom: 1px solid var(--red);
    margin-bottom: 32px;
}

.blog-page .blog-category-label {
    font-size: 0.875rem;
    line-height: 1.429;
    padding: 4px 9px 3px;
}

.blog-page #small-search-box-form-blog {
    max-width: 348px;
    margin: 0 auto;
    /*border-radius: 4px;*/
    border: 1px solid #212B36;
    padding-left: 34px;
    position: relative;
    overflow: hidden;
}

    .blog-page #small-search-box-form-blog svg {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    .blog-page #small-search-box-form-blog .form-control {
        padding: 7px 16px 6px 2px;
        border: none;
    }

.post-news-img-wrapp {
    display: block;
    position: relative;
    overflow: hidden;
}

    .post-news-img-wrapp::before {
        content: "";
        display: block;
        padding-top: 60%;
    }

    .post-news-img-wrapp > img {
        position: absolute;
        inset: 0 0 0 0;
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        height: 100%;
        object-fit: cover;
        margin: auto;
        background-color: #fff;
        transition: transform 0.3s ease;
        /* border-radius: 0.75rem; */
    }

.post-news,
.post-news .card-header,
.post-news .card-footer {
    border: 0;
    border-radius: 0;
    background-color: transparent;
}

    .post-news .card-header {
        padding: 0;
    }

    .post-news .card-body,
    .post-news .card-footer {
        padding: 10px 0;
    }

    .post-news .img-container {
        position: relative;
        display: flex;
        align-items: center;
    }

    .post-news img {
        max-width: 100%;
    }

    .post-news .category {
        position: absolute;
        bottom: 5px;
        left: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 16px;
        font-size: 14px;
        font-weight: 500;
        line-height: 1;
        color: #fff;
        background-color: #ad783f;
        text-align: center;
    }

    .post-news .title {
        margin-top: 12px;
    }

        .post-news .title a {
            font-size: 1rem;
            font-weight: 500;
            line-height: 1.25;
            color: var(--black);
        }

    .post-news .date {
        font-size: 1rem;
        line-height: 1.375;
    }

        .post-news .date .part:not(:last-child) {
            margin: 0 3px 0 0;
        }

        .post-news .date .month {
            text-transform: capitalize;
        }

            .post-news .date .month::after {
                content: ",";
                position: relative;
            }

    .post-news .short {
        color: #000;
        font-size: 14px;
        font-weight: 400;
        font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
        line-height: 22px;
    }

.post-col {
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

.blog-page .product-tags-list {
}

.blog-tag-list {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

.blog-tag {
    display: inline-block;
    color: var(--black);
    padding: 6px 15px 3px;
    text-transform: uppercase;
    border-radius: 50px;
    font-size: 0.875rem;
    border: 1px solid #E3E3E3;
    background: var(--white)
}

    .blog-tag.active, .blog-tag:hover {
        border: 1px solid var(--ansinhmed);
        color: var(--ansinhmed);
        /*font-weight: 500;*/
    }

    .blog-tag.homepage-blogpost {
        padding: 2px 12px;
        border-radius: 50px;
        max-width: 150px;
    }

.post-news-meta {
    /* padding-top: 24px; */
    padding-bottom: 10px;
}

.blogpost-page .text-left {
    font-size: 32px;
    line-height: 1.25;
    letter-spacing: 0.2px;
    margin-bottom: 0 !important;
}

.post-news-meta .date {
    font-size: 14px;
}

.post-badge {
    display: inline-block;
    background-color: var(--red);
    color: var(--white);
    padding: 0 8px;
    font-size: 10px;
    line-height: 20px;
    letter-spacing: 0;
    text-transform: uppercase;
        display: flex;
    align-items: center;
}

.post-badge-blog {
    display: inline-block;
    background-color: #F0F0F0;
    color: #161D25;
    padding: 0 8px;
    font-size: 12px;
    line-height: 20px;
    text-transform: uppercase;
}

.right-sidebar-title {
    border-bottom: 1px solid var(--red);
}

    .right-sidebar-title > span {
        display: inline-block;
        padding: 4px 8px 3px;
        font-size: 0.875rem;
        line-height: 1.429;
        color: var(--white);
        background-color: var(--red);
        text-transform: uppercase;
    }

.blog-item {
    position: relative;
}

.medgo-addthis .at-share-btn-elements {
    white-space: nowrap;
}

@media (min-width: 1200px) {
    .generalLeftSide.show + .generalSideRight .post-col {
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575px) {
    .post-news, .post-news .card-header, .post-news .card-footer {
        text-align: left;
    }
}

@media (max-width: 767px) {
    .blog-tag-list {
        display: none !important;
    }
}
/* blog-post */

.blog-post {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
}

    .blog-post::after,
    .post-news-page .card-header::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 0;
        background: linear-gradient(0deg,rgba(0,0,0,.8),transparent);
    }

.title-blog-post {
    font-weight: 500;
    font-size: 22px;
    letter-spacing: 0.18px;
    line-height: 28px;
    color: #161D25;
}

.time-blog-post {
    font-size: 12px;
    letter-spacing: 0.18px;
    line-height: 18px;
    color: #828282;
    display: inline-block;
    width: max-content;
}


.blog-post::before {
    content: "";
    display: block;
    padding-top: 100%;
}

.blog-post img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    max-width: 100%;
    margin: auto;
}

.blog-post .category {
    position: absolute;
    top: 16px;
    left: 15px;
    display: flex;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    background: #fff;
    z-index: 1;
}

.blog-post .content,
.post-news-page .card-header .content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    z-index: 1;
}

    .blog-post .content .title,
    .post-news-page .card-header .content .title {
        font-size: 22px;
        font-weight: 700;
        color: #fff;
    }

    .blog-post .content .date,
    .post-news-page .card-header .content .date {
        display: inline-flex;
        align-items: center;
        color: #eee;
        font-size: 14px;
        font-weight: 400;
    }

        .blog-post .content .date .month {
            margin: 0 3px;
        }

/* post-news-page */

.post-news-page.card {
    display: block;
    background-color: transparent;
    border: 0;
}

.post-news-page .card-header {
    position: relative;
    background-color: transparent;
    border: 0;
    float: left;
    padding: 0;
    margin: 0 15px 15px 0;
}

.post-news-page .card-body {
    padding: 0;
}

.old-price {
    text-decoration: line-through;
    font-size: 12px;
}

.product-name {
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-line-clamp: 2; /* number of lines to show */
    line-clamp: 2;
    -webkit-box-orient: vertical;
}


.truncate-text-2 {
    display: -webkit-box; /* Required for -webkit-line-clamp to work */
    -webkit-box-orient: vertical; /* Specifies vertical arrangement of content */
    -webkit-line-clamp: 2; /* Limits the text to 3 lines */
    overflow: hidden; /* Hides any text exceeding the line limit */
    text-overflow: ellipsis; /* Adds an ellipsis for truncated text */
}

.truncate-text-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}


#blog-page span .tag-news {
    color: #4a4f63;
    border: 1px solid #edf0f3;
    height: 24px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    margin: 0;
}

#blog-page span.tag-news {
    background: #edf0f3;
    color: #4a4f63;
    border: 1px solid #edf0f3;
    height: 24px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    margin: 0;
}
    #blog-page span.tag-news p {
        font-size: 12px;
        line-height: 16px;
        font-weight: 500;
        margin: 0;
    }
.blog-as .read-more {
    box-shadow: none;
    text-decoration: none;
}
@media (max-width: 767px) {
    .right-panel {
        /* margin-top: 30px !important; */
        width: 100% !important;
    }

    .ansinh__list-post-new {
        margin-top: 30px !important;
    }
}