.latest_post_section.has_bottom_bg {
    background-size: contain;
    background-repeat: no-repeat;
    margin: 0 -40px;
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 162px;
    padding-top: 40px;
    background-position: bottom center;
}



.seaction-header {
        display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
}
.latest_title_img {
    margin-left: -40px;
}
.section_title_wrap {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Card styling */
.latest-posts-slider .swiper-slide {
    height: auto !important;
}

.latest-post-card {
    border-radius: 16px;
    overflow: hidden;
    padding: 22px;
    background: #EEE;
    /* font-family: "Roboto", Sans-serif!important; */
    height: 100%;
    display: flex;
    flex-direction: column;
}
.latest-post-card .thumb {
    margin-bottom: 12px;
}
.latest-post-card .thumb.logo_img a {
    display: flex;
    aspect-ratio: 3/2;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.latest-post-card .thumb img {
    object-fit: cover;
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 3/2;
}
.latest-post-card .thumb.logo_img img {
        object-fit: contain;
    width: auto;
    aspect-ratio: auto;
    border-radius: 0 !important;
    height: 50%; 
}

.latest-post-card .post-tax {
    margin-bottom: 22px;
}

.latest-post-card.type_post_card .post-tax {
    display: none;
}

.post-tax .tax-item {
    background: #DAE0EA;
    padding: 6px 16px;
    border-radius: 32px;
    color: #202029BF;
    font-size: 1.4rem;
    font-weight: 500;
    margin-right: 4px;
}
.latest_card_title {
    color: #202029;
    font-size: 2.4rem !important;
    font-weight: 600;
    line-height: 110%;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.latest_card_title a {
    color: #202029;
         display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card_excerpt {
    color: #202029;
    font-size: 16px;
    font-weight: 400;
    line-height: 140%;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
    display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* Number of lines to show */
  overflow: hidden;
  text-overflow: ellipsis; /* Optional, adds ellipsis for single-line truncation too */
}

.read-more {
    color: #202029;
    font-size: 14px;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: -0.02em;
    display: flex;
    align-items: end;
    gap: 4px;
}
.read-more:hover {
    color: #202029;
}
.read-more span {
    padding-bottom: 4px;
    border-bottom: 1px solid #20202980;
    line-height: 1;
}

.type_post_card {
    background: linear-gradient(135.75deg, #C7CCEB 13.94%, #E1E0E8 50.14%, #A3B0BE 80.29%);
    background: linear-gradient(132.95deg, #B5C6D9 14.8%, #C7D3E2 50.64%, #849CB5 80%);
}

.type_event_card {
    background: linear-gradient(135.6deg, #1D9AAA 18.33%, #60AEBF 49.56%, #34839F 83.28%);
}


.type_event_card .post-tax {
    display: flex;
    justify-content: space-between;
}
.type_event_card .tax-item {
line-height: 1.143;
}
.upcoming_date {
    background: #FFFFFF1A;
    padding: 6px 16px;
    border-radius: 32px;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.143;
}

.type_event_card .latest_card_title,
.type_event_card .latest_card_title a,
.type_event_card .card_excerpt,
.type_event_card .read-more {
    color: #ffffff;
}
.type_event_card .read-more span {
    border-bottom: 1px solid #FFFFFF1A;
}
.type_event_card .read-more img {
    filter: invert(1);
}
.event_register_btn {
    background: #FFFFFF;
    height: 56px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color:#000000;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: -0.02em;
}
.event_register_btn:hover {
    color:#000000;
}

/******/
.type_blog_card {
    background: conic-gradient(from 216.12deg at 91.08% 0%, #192B57 -21.11deg, #224079 5.19deg, #1B1F4B 25.47deg, #192B57 338.89deg, #224079 365.19deg);
}
.type_blog_card .latest_card_title,
.type_blog_card .latest_card_title a,
.type_blog_card .card_excerpt,
.type_blog_card .read-more {
    color: #ffffff;
}
.type_blog_card .read-more span {
    border-bottom: 1px solid #FFFFFF1A;
}
.type_blog_card .read-more img {
    filter: invert(1);
}

/*********/
.type_reports_card {
    background: conic-gradient(from 216.12deg at 91.08% 0%, #121534 -21.11deg, #19366D 5.19deg, #04061D 25.47deg, #121534 338.89deg, #19366D 365.19deg);
}
.type_reports_card .latest_card_title,
.type_reports_card .latest_card_title a,
.type_reports_card .card_excerpt {
    color: #ffffff;
}


.download_cta {
    max-width: 200px;
    border-radius: 100px;
    background: #FA4E19;
    color: #ffffff;
    display: flex;
    height: 46px;
    align-items: center;
    justify-content: center;
    padding: 5px 20px;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}
.download_cta:hover {
    color: #ffffff;
}


/*********/
.type_media_card {
    background: conic-gradient(from 216.12deg at 91.08% 0%, #1F245C -21.11deg, #151B3B 5.19deg, #131F5C 25.47deg, #1F245C 338.89deg, #151B3B 365.19deg);
}
.type_media_card .latest_card_title,
.type_media_card .latest_card_title a,
.type_media_card .card_excerpt,
.type_media_card .read-more {
    color: #ffffff;
}
.type_media_card .read-more span {
    border-bottom: 1px solid #FFFFFF1A;
}
.type_media_card .read-more img {
    filter: invert(1);
}

.type_media_card .thumb a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.type_media_card .thumb .play_btn_icon {
    max-width: 123px;
    height: auto;
    position: absolute;
    aspect-ratio: auto;
}

/************ Single post *****************/
.single_post_card_wrap {}
.single_post_card_wrap .latest-post-card {
    flex-direction: row-reverse;
    padding: 4.2rem;
}
.single_post_card_wrap .type_post_card {
    background: linear-gradient(135.75deg, #C7CCEB 13.94%, #E1E0E8 50.14%, #A3B0BE 80.29%);
}

.single_post_card_wrap .latest-post-card .content {
    width: 50%;
    padding-right: 39px;
}
.single_post_card_wrap .latest-post-card .thumb {
    width: 50%;
    margin: 0px;
}
.single_post_card_wrap .latest_card_title {
    font-size: 4.2rem !important;   
    margin-bottom: 8px;
    margin-top: 30px;
}
.single_post_card_wrap .card_excerpt {
    font-size: 2.0rem;
    margin-bottom: 30px;
    -webkit-line-clamp: 4;
    letter-spacing: -0.015em;
}
.single_post_card_wrap .btn-white {
    max-width: 364px;
    width: 100%;
}
.single_post_card_wrap .event_register_btn {
    max-width: 364px;
}

.post-event-date{
    padding: 3px 20px;
    color: #FFFFFF;
    background-color: #FFFFFF1A;
    border-radius: 100px;
    display: table;
}
.single_post_card_wrap .thumb img{
    height: 389px;
}


.latest_post_pagination {
        display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap:4px;
}


.latest_post_pagination .swiper-button-prev,
.latest_post_pagination .swiper-button-next {
    position: static;
    margin: 44px 0 0 0;
    opacity: 1 !important;
    min-width: 44px;
    background-color: #FFFFFF1A !important;
    border: 1px solid #FFFFFF0D;
    border-radius: 8px;
    backdrop-filter: blur(15px);
    transition: all 0.4s ease;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 6px;
}
.latest_post_pagination .swiper-button-lock {
    display: none !important;
}
.latest_post_pagination > div:not(.swiper-button-lock) {
  display: flex;
}
.latest_post_pagination .swiper-button-prev svg,
.latest_post_pagination .swiper-button-next svg {    
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 16px;
    height: 16px;
    transform: none!important;
    color: transparent;
}

.latest_post_pagination .swiper-button-prev svg {
    background-image: url('../images/slider-arrow-left.svg');
}
.latest_post_pagination .swiper-button-next svg {
    background-image: url('../images/slider-arrow-right.svg');
}
.latest_post_pagination .swiper-button-prev:hover, 
.latest_post_pagination .swiper-button-next:hover {
    background: conic-gradient(from 210.94deg at 91.08% 0%, #121534 -21.11deg, #393C63 5.19deg, #04061D 36.61deg, #121534 338.89deg, #393C63 365.19deg);
}

.template-team .team-pagination {
    margin: 0px !important;
    opacity: 0;
    visibility: hidden;
}

/* Hide arrows on desktop */
@media (max-width: 1440px) {
.latest_post_section.has_bottom_bg {
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 162px;
}
}

@media (max-width: 1368px) {
    .latest_title_img {
        margin-left: -16px;
    }
}
@media (max-width: 1199px) {
    .latest_post_section.has_bottom_bg {
        margin: 0 auto;
        padding-left: 0px;
        padding-right: 0px;
        padding-bottom: 0px;
        background: none !important;
    }

    .type_media_card .thumb .play_btn_icon{
        max-width: 70px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
  /* Tablet portrait only */
  .latest-post-card .thumb.logo_img a {
    aspect-ratio: 7/2;
}
}


@media (max-width: 1024px) {    
    .template-events .lpf-pagination{
        margin: 12px 0 0 auto;
        justify-content: flex-end;
    }
    .latest-post-card .post-tax{
        margin-bottom: 12px;
        margin-top: 15px;
    }
    body .latest_card_title{
        font-size: 24px !important;
        line-height: 115%;
    }
    .latest-post-card  .card_excerpt{
        /* font-size: 14px; */
        line-height: 140%;
        margin-bottom: 16px;
    }
    .latest-post-card .thumb img{
        /* height: 180px; */
    }    
    .latest_post_pagination {
        justify-content: flex-end;
    }
}
@media (max-width: 991px) {
    .latest_title_img img {
        max-width: 77.5% !important;
    }


    .single_post_card_wrap .latest-post-card{
        flex-wrap: wrap;
        flex-direction: column;
        padding: 42px 16px;
    }
    .single_post_card_wrap .latest-post-card .thumb{
        width: 100%;
    }
    .single_post_card_wrap .latest-post-card .content{
        padding: 0;
        width: 100%;
    }
    .single_post_card_wrap .thumb img{
        height: 324px;
    }
    .single_post_card_wrap .latest_card_title{
        font-size: 28px!important;
        line-height: 120%;
    }
    .single_post_card_wrap .card_excerpt{
        font-size: 18px;
    }
}

@media (min-width: 768px) {
    .latest-posts-slider .swiper-slide {
        width: calc((100% - 44px) / 3); /* 3 slides, 22px gap */
        margin-right: 22px;
    }

    .latest-reports-slider .swiper-slide {
        width: calc((100% - 22px) / 2); /* 2 slides, 22px gap */
        margin-right: 22px;
    }
    
}
@media (max-width: 767px) {
    .latest_post_section.hide {
    display: none;
}
    .single_post_card_wrap .latest_card_title{
        margin-top: 12px;
        font-size: 24px !important;
        line-height: 115%;
    }
    .latest-post-card{
        padding: 16px!important;
    }
    .latest-post-card .post-tax{
        margin-bottom: 12px!important;
    }

    body .latest_card_title,
    .lpf-new-post-content h3.lpf-new-post-title{
        font-size: 24px !important;
        line-height: 115%;
    }
    .latest-post-card  .card_excerpt{
        /* font-size: 14px; */
        line-height: 140%;
        margin-bottom: 16px;
    }

    .latest-post-card .thumb img,
    .single_post_card_wrap .thumb img{
        /* height: 180px; */
    }

    .lpf-layout-grid.news-posts-wrapper, .lpf-layout-grid.events-posts-wrapper{
        grid-template-columns: repeat(1, 1fr);
    }
    .lpf-new-post-header .post-categories{
        margin-bottom: 12px;
    }
    .template-news .news-pagination.lpf-pagination{
        margin: 0 0;
        padding: 12px 0 0 0;
    }
     .single_post_card_wrap .card_excerpt{
        font-size: 16px;
    }
       .download_cta {
        max-width: 170px;
        height: 40px;
        padding: 5px 15px;
        font-size: 1.6rem;
    }


}


@media (min-width:576px) and (max-width:767px) {
    
    .single_post_card_wrap .thumb img{
        height: 280px;
    }
    .lpf-layout-grid.news-posts-wrapper, .lpf-layout-grid.events-posts-wrapper{
        grid-template-columns: repeat(2, 1fr);
    }
}


/************ Team Slider widget css *******************/
.teamSwiper2 {
    width: 100%;
    padding: 44px 0;
    opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

/* When ready */
.teamSwiper2.swiper-initialized {
  opacity: 1;
}


.teamSwiper2 .swiper-slide {
    overflow: hidden;
    transition: .7s;
    transform: scale(0.85);
    position: relative;
    border-radius: 16px;
    max-width: 400px;
    transition: transform 0.7s ease;
}

.teamSwiper2 .swiper-slide img {
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 5/6;
    object-fit: cover;
    max-width: 400px;
}
.swiper-initialized.teamSwiper2 .swiper-slide,
.swiper-initialized.teamSwiper2 .swiper-slide img {
  max-width: 570px;
}

.teamSwiper2 .swiper-slide-active {
    opacity: 1;
    z-index: 1;
    transform: scale(1.15);
}
.teamSwiper2 .swiper-slide::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0px;
  top: 0px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.6) 100%);
}



/********************/
.team-overlay {
  position: absolute;
  bottom: 16px;
  width: calc(100% - 32px);
  left: 16px;
  padding: 16px;
  background: #7130A000;
  color: #fff;
  border-radius: 8px;
  transition: all 0.5s ease-in-out 0s;
  z-index: 99;
}

.team-overlay h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
  font-family: var( --e-global-typography-337dfff-font-family ), Sans-serif;
  position: relative;
  z-index: 1;
}
.team-overlay h4 a {color: #ffffff;}
.team-overlay .role {
  font-size: 16px;
  opacity: 0.5;
  font-weight: 400;
  margin-bottom: 0;
  font-family: var( --e-global-typography-337dfff-font-family ), Sans-serif;
  position: relative;
  z-index: 1;
}
.teamSwiper2 .team-overlay .desc {
      font-size: 14px;
    opacity: 0;
    font-weight: 400;
    font-family: var( --e-global-typography-337dfff-font-family ), Sans-serif;
    height: 0px;
    margin: 0;
transition: all 0.5s ease-in-out 0.1s;
}

/* Active slide overlay — purple card with text */
.teamSwiper2 .swiper-slide-active .team-overlay {
  background: #7130A0;
  color: #fff;
  padding: 25px;
}

.teamSwiper2 .swiper-slide-active .team-overlay .desc {
      font-size: 14px;
    margin-top: 15px;
    opacity: 1;
    height: auto;
}

.team_slider_section .team-button {
    padding: 22px 40px 0 0;
        gap: 4px;
}
.team-button .slider-button-next, 
.team-button .slider-button-prev {
    background: #2020290D;
    background: #E7EBF2;
}
.team-button .slider-button-next:hover,
.team-button .slider-button-prev:hover {
    background: #ffffff;
    background: linear-gradient(138.6deg, #8092AC 15.31%, #AEB4BE 49.51%, #6C7787 83.38%);
}
.team-button .slider-button-next:hover img,
.team-button .slider-button-prev:hover img {
  filter: invert(1);
}

.team-pagination { text-align: center; }
.team-pagination .swiper-pagination-bullet { width: 50px; height: 1px; background: #2020291A; opacity: 1; margin: 0 4px !important; border-radius: 0px; }
.team-pagination .swiper-pagination-bullet-active { background: #7130A0; width: 100px; }


@media screen and (max-width: 767px) {
.seaction-header {
    margin-bottom: 30px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;    
}
.seaction-header .view_btn_wrap .btn_view_all {
    background-color:rgba(255, 255, 255, 0.2);
    color: #ffffff;
    min-width: 130px;
    padding: 1.336rem 2.655rem;
    font-size: 16px;
}
}