.last-news {
    max-width: 100% !important;
    margin-bottom: 64px;
    overflow: hidden;
}

.last-news.layout-v2,
.last-news.layout-v3 {
    margin: 0;
}

.last-news .last-news-header {
    margin: 64px 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
}

.layout-v2 .last-news-header,
.layout-v3 .last-news-header {
    flex-direction: var(--header-direction, row);
}

.last-news-header .header--content {
    max-width: 800px;
    width: 100%;
}

.layout-v2 .last-news-header,
.layout-v3 .last-news-header {
    gap: 16px;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    margin-top: 0;
    margin-bottom: 16px;
}

.layout-v2 .last-news-header .header--content,
.layout-v3 .last-news-header .header--content {
    max-width: inherit;
    width: auto;
}

.layout-v2 .last-news-header .header--line,
.layout-v3 .last-news-header .header--line {
    flex-grow: 1;
    height: 1px;
    background-color: #E5E5E5;
}

.last-news-header .subtitle {
    margin: 0;
    margin-bottom: 16px;
}

.last-news-header .title {
    margin: 0;
}

.last-news-header.position-right .title {
    text-align: right;
}

.layout-v2 .last-news-header .header--content .title,
.layout-v3 .last-news-header .header--content .title {
    font-weight: 600;
    font-size: 32px;
    line-height: 136%;
    letter-spacing: -0.002em;
    color: #101827;
}

.last-news-header .btn-all-blogs {
    -ms-flex-negative: 0;
        flex-shrink: 0;
    color: var(--color-white);
}

.layout-v2 .last-news-header .btn-all-blogs,
.layout-v3 .last-news-header .btn-all-blogs {
    color: #286CFF;
    display: flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    letter-spacing: -0.002em;
}

.last-news-header.position-left .btn-all-blogs {
    margin-left: 16px;
}

.last-news-header.position-right .btn-all-blogs {
    margin-right: 16px;
}

.last-news-header .btn-all-blogs:hover,
.last-news-header .btn-all-blogs:focus {
    background: var(--button-hover);
    border-color: var(--button-hover);
}

.layout-v2 .last-news-header .btn-all-blogs:focus,
.layout-v3 .last-news-header .btn-all-blogs:focus,
.layout-v2 .last-news-header .btn-all-blogs:hover,
.layout-v3 .last-news-header .btn-all-blogs:hover {
    color: currentColor;
    background: transparent;
    border-color: transparent;
}

.last-news-swiper .swiper-slide {
    max-width: 384px;
    width: 100% !important;
}

.last-news-swiper .news-item-wrapper {
    background: #F4F4F4;
}

.last-news-swiper .news-item-wrapper .news-image {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.last-news-swiper .news-item-wrapper .news-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center;
       object-position: center;
}

.last-news-swiper .news-item-wrapper .news-image .news-category {
    position: absolute;
    top: 11px;
    left: 11px;
    font-weight: 400;
    font-size: 12px;
    line-height: 20px;
    color: var(--color-neutral-1);
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .8);
}

.last-news-swiper .news-item-wrapper .news-content {
    padding: 24px;
    min-height: 234px;
}

.news-item-wrapper .news-content .news-title,
.news-item-wrapper .news-content .news-date {
    margin-bottom: 8px;
}

.news-item-wrapper .news-content .news-date {
    color: var(--color-text);
}

.news-item-wrapper .news-content .news-title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -o-text-overflow: ellipsis;
       text-overflow: ellipsis;
}

.news-item-wrapper .news-content .news-excerpt {
    margin-bottom: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -o-text-overflow: ellipsis;
       text-overflow: ellipsis;
}

.news-item-wrapper .news-content .read-more {
    color: var(--color-primary);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 4px;
    margin-top: 15px;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
}

.last-news-swiper .news-item-wrapper .news-content a:focus,
.last-news-swiper .news-item-wrapper .news-content a:hover {
    color: var(--button-hover);
}

.last-news-swiper .news-item-wrapper .news-content a:hover svg path {
    fill: var(--button-hover);
}

.last-news .swiper-navigator {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

/* Layout V2/V3 specific CSS */
.layout-v2 .container,
.layout-v3 .container {
    max-width: var(--container-page);
}
.layout-v2 .swiper-wrapper,
.layout-v3 .swiper-wrapper {
    display: flex;
    gap: 24px;
}

.news-item-v2 {
    position: relative;
    overflow: hidden;
    height: 100%;
    background-color: var(--color-primary, #206aad);
}

.news-item-v2 .news-image {
    position: relative;
    height: 384px;
}

.news-item-v2 .news-image img {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: width 0.5s ease-in-out;
    float: right;
}

.news-item-v2:before {
    background: linear-gradient(131.96deg, rgba(32,106,173,1), rgba(32,106,173,0.2));
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
}

.news-item-v2 .news-v2-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(0deg, rgba(16, 28, 90, 0.5), rgba(16, 28, 90, 0.5));
    padding: 24px;
}

.news-v2-title a {
    font-weight: 600;
    font-size: 24px;
    line-height: 140%;
    color: #FFFFFF;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-v2-title a:hover{
    background-size: 0;
    color: #FFFFFF;
}

.news-v2-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    transition: transform 0.5s ease-in-out;
}

.news-bottom-bg-wrap {
    transition: background 0.3s ease-in-out;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
}

.news-item-v2 .news-date {
    margin: 0;
    font-weight: 400;
    font-size: 12px;
    line-height: 140%;
    color: #FFFFFF;
    white-space: nowrap;
    position: relative;
    padding-left: 12px;
}

.news-item-v2 .news-date::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: currentColor;
}

.news-learn-more-wrap {
    max-width: 202px;
    width: 100%;
    display: flex;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease-in-out;
    flex-shrink: 0;
}

.news-item-v2 .news-v2-learn-more {
    font-weight: 600;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: -0.002em;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    white-space: nowrap;
    text-decoration: none;
    gap: 8px;
}

.news-item-v2 .news-v2-learn-more:hover {
    color: #FFFFFF;
    background-size: 0;
}

.news-item-v2 .news-v2-learn-more svg {
    width: 24px;
    height: 24px;
    flex: none;
    order: 1;
    flex-grow: 0;
    transition: transform 0.3s ease;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 992px) {
    .last-news-mobile-only {
            display: none !important;
        }
        .layout-v2 .swiper-slide,
        .layout-v3 .swiper-slide {
            flex: 1;
            transition: flex 0.5s ease-in-out;
            max-width: none;
            overflow: hidden;
        }
    
        .layout-v2 .swiper-wrapper:hover .swiper-slide,
        .layout-v3 .swiper-wrapper:hover .swiper-slide {
            flex: 1;
        }
    
        .layout-v2 .swiper-wrapper .swiper-slide:hover,
        .layout-v3 .swiper-wrapper .swiper-slide:hover {
            flex: 1.8;
        }

    .news-item-v2:hover .news-bottom-bg-wrap {
            background: rgba(33, 85, 254, 0.8);
        }

    .news-item-v2:hover .news-learn-more-wrap {
            transform: translateX(0);
            opacity: 1;
        }
}

@media only screen and (max-width: 1200px) {
    .last-news .last-news-swiper {
            overflow: visible;
        }
}

@media only screen and (max-width: 991px) {
    .layout-v2 .last-news-header .header--line,
        .layout-v3 .last-news-header .header--line {
            display: none;
        }
    
        .layout-v2 .swiper-wrapper,
        .layout-v3 .swiper-wrapper {
            gap: 0;
        }
    
        .last-news-header .subtitle {
            font-weight: 400;
            font-size: 14px;
            line-height: 160%;
            letter-spacing: -0.01em;
        }
    
        .last-news-header .header--content {
            max-width: 70%;
        }
    
        .last-news-swiper .swiper-slide {
            max-width: calc(100% - 24px);
        }
        
        .layout-v2 .last-news-header,
        .layout-v3 .last-news-header {
            flex-direction: row;
        }

    .swiper-navigator.last-news-mobile-only {
            margin-top: 0;
        }
        .last-news .swiper-progress-bar {
            width: 100%;
            height: 2px;
            background: #E5E5E5;
            position: relative;
            overflow: hidden;
            margin-top: 16px;
        }
    
        .last-news .swiper-progress-bar__fill {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            background: var(--color-primary, #286CFF);
            transition: width 0.3s ease;
            width: 0%;
        }
    
        .layout-v2 .last-news-header .header--content .title, .layout-v3 .last-news-header .header--content .title {
            font-size: 16px;
        }
    
        .layout-v2 .last-news-header .btn-all-blogs, .layout-v3 .last-news-header .btn-all-blogs {
            font-size: 14px;
            letter-spacing: 0;
        }

    .news-bottom-bg-wrap {
            background: rgba(33, 85, 254, 0.8);
            padding: 10px 12px;
        }
    
        .layout-v2 .last-news-swiper .swiper-slide,
       .layout-v3 .last-news-swiper .swiper-slide {
            max-width: 100%;
        }

    .news-learn-more-wrap {
            opacity: 1;
            transform: none;
        }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .layout-v2 .swiper-slide,
        .layout-v3 .swiper-slide {
            flex: 0 0 80% !important;
            max-width: 80% !important;
            width: 80% !important;
        }
    
        .layout-v2 .swiper-wrapper, .layout-v3 .swiper-wrapper {
            gap: 0;
        }
}

@media only screen and (max-width: 767.98px) {
    .last-news-header .btn-all-blogs {
            padding: 9px 11px;
            min-height: 45px;
        }
    
        .last-news .last-news-header {
            margin: 12px 0;
            margin-bottom: 40px;
        }
    
        .last-news-header .header--content {
            text-align: left;
        }
    
        .last-news-header .subtitle {
            text-align: left;
        }
    
        .news-item-wrapper .news-content .read-more {
            gap: 6px;
        }
    
        .last-news-header .title {
            font-size: 24px;
            line-height: 32px;
            text-align: left;
        }
    
        .last-news-swiper .news-item-wrapper .news-image {
            padding-bottom: 58.75%;
        }
    
        .last-news-swiper .news-item-wrapper .news-content {
            padding: 16px;
            min-height: 218px;
        }
    
        .last-news-swiper .swiper-navigator {
            margin-top: 9px;
        }
    
        .news-v2-title a {
            font-size: 16px;
            line-height: 140%;
        }
    
        .news-item-v2 .news-v2-learn-more {
            font-size: 14px;
            line-height: 140%;
        }
    
        .news-item-v2 .news-v2-learn-more svg {
            display: none;
        }
    
        .news-learn-more-wrap {
            max-width: 115px;
        }

    .news-item-v2 .news-image {
            height: 309px;
        }
}


@media only screen and (max-width: 370.98px) {
    .news-v2-bottom {
        flex-wrap: wrap;
    }

    .news-learn-more-wrap {
        max-width: 100%;
    }

    .last-news .last-news-header {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: flex-start;
    }

   .last-news-header.position-left .btn-all-blogs {
        margin-left: 0;
   }

   .last-news-header.position-right .btn-all-blogs {
        margin-right: 0;
   }

   .layout-v2 .last-news-header .btn-all-blogs, .layout-v3 .last-news-header .btn-all-blogs {
        padding: 0;
        min-height: initial;
   }
}