/* --- General & Layouts --- */

.lpf-container {
    padding-bottom: 13rem;
}
/* .lpf-container { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; position: relative; } */
.lpf-posts-wrapper { transition: opacity 0.3s ease; }
.lpf-loading .lpf-posts-wrapper { opacity: 0.5; }

/* Grid Layout (Default) */
.lpf-layout-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }

/* List Layout */
.lpf-layout-list .lpf-post { display: flex; align-items: flex-start; margin-bottom: 30px; border-bottom: 1px solid #e0e0e0; padding-bottom: 20px; }
.lpf-layout-list .lpf-post:last-child { margin-bottom: 0; border-bottom: none; }
.lpf-layout-list .lpf-post-thumbnail { flex-shrink: 0; margin-right: 20px; max-width: 200px; }
.lpf-layout-list .lpf-post-content { flex-grow: 1; }

/* --- Post Item --- */
.lpf-post { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; }
.lpf-layout-grid .lpf-post:hover { transform: translateY(-5px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.lpf-post-thumbnail img { width: 100%; height: 200px; object-fit: cover; display: block; }
.lpf-layout-list .lpf-post-thumbnail img { height: auto; max-height: 150px; }
.lpf-post-header { padding: 20px 20px 10px 20px; }
.lpf-post-title { font-size: 1.25em; font-weight: 600; margin: 0 0 10px 0; line-height: 1.3; }
.lpf-post-title a { text-decoration: none; color: #333; }
.lpf-post-title a:hover { color: #0073aa; }
.lpf-post-meta { font-size: 0.8em; color: #777; }
.lpf-post-meta span { margin-right: 15px; }
.lpf-post-excerpt { padding: 0 20px 20px 20px; font-size: 0.95em; color: #555; }

/* --- Filters Panel --- */
.lpf-filters-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(220px, 1fr);
    gap: 12px;
    align-items: center;
    margin: 0;
    padding: 8rem 0 0px;
    background: transparent;
    border: none;
}
.lpf-posts-wrapper {
    padding-top: 8rem;
}

.lpf-filter-group { margin-bottom: 20px; }
.lpf-filter-group:last-child { margin-bottom: 0; }
.lpf-filter-group h4 { margin: 0 0 10px 0; font-size: 1.1em; color: #333; border-bottom: 1px solid #dee2e6; padding-bottom: 5px; }
.lpf-filter-search { display: flex; gap: 10px; }
.lpf-search,
.lpf-filter-taxonomy,
.lpf-filter-author,
.lpf-filter-date,
.lpf-filter-sort {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 58px;
    border: 1px solid #48525B80;
    border-radius: 16px;
    background: #FFFFFF;
    box-sizing: border-box;
    overflow: hidden;    
}
.lpf-filter-taxonomy,
.lpf-filter-date,
.lpf-filter-sort {
    padding: 0 0px 0 24px;
}
.lpf-filter-taxonomy ul {
    list-style-type: none;
    display: none;
}
.lpf-filter-taxonomy h4,
.lpf-filter-sort h4,
.lpf-filter-author h4,
.lpf-filter-date h4 {
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 26px !important;
    color: #323D48;
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
}
.lpf-search-input,
.lpf-filter-taxonomy select,
.lpf-filter-author select,
.lpf-filter-date select,
.lpf-filter-sort select,
.lpf-author-select,
.lpf-year-select,
.lpf-month-select,
.lpf-sort-select,
.lpf-taxonomy-select {
    width: 100%;
    min-height: 58px;
    padding: 0 60px 0 5px;
    border: 0;
    font-family: "Manrope", sans-serif;
    background: transparent;
    color: #323D48;
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
    border-radius: 16px;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    outline: none;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
}

.lpf-search-input {
    padding-left: 24px;
}

.lpf-search-input::placeholder,
.lpf-filter-taxonomy select::placeholder,
.lpf-filter-author select::placeholder,
.lpf-filter-date select::placeholder {
    color: rgb(50, 61, 72, 0.80);
}
.lpf-filter-taxonomy select,
.lpf-filter-author select,
.lpf-filter-date select,
.lpf-filter-sort select,
.lpf-author-select,
.lpf-year-select,
.lpf-month-select,
.lpf-sort-select,
.lpf-taxonomy-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='36' height='36' viewBox='0 0 36 36' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M27 13.5C27 13.5 20.3715 22.5 18 22.5C15.6285 22.5 9 13.5 9 13.5' stroke='%23323D48' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 36px 36px;
    background-repeat: no-repeat;
    background-position:right 24px center;
}

.lpf-filter-sort select,
.lpf-sort-select {
    background-image: url("data:image/svg+xml,%3Csvg width='36' height='36' viewBox='0 0 36 36' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 6V30M10.5 6C11.685 6 15 10.5 15 10.5M10.5 6C9.315 6 6 10.5 6 10.5M25.5 28.5V6M30 25.5C30 25.5 26.685 30 25.5 30C24.315 30 21 25.5 21 25.5' stroke='%23323D48' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.lpf-search {
    padding-right: 16px;
}
.lpf-search::after {
    content: "";
    position: absolute;
    right: 18px;
    width: 36px;
    height: 36px;
    box-sizing: border-box;
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg width='36' height='36' viewBox='0 0 36 36' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.5 24.75C21.0563 24.75 24.75 21.0563 24.75 16.5C24.75 11.9437 21.0563 8.25 16.5 8.25C11.9437 8.25 8.25 11.9437 8.25 16.5C8.25 21.0563 11.9437 24.75 16.5 24.75Z' stroke='%23323D48' stroke-width='1.5'/%3E%3Cpath d='M22.5 22.5L28.5 28.5' stroke='%23323D48' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 36px 36px;
    background-repeat: no-repeat;
    background-position: center;
}
/* .lpf-search::before {
    content: "";
    position: absolute;
    right: 9px;
    bottom: 12px;
    width: 8px;
    height: 2px;
    background: #2f2f2f;
    border-radius: 2px;
    transform: rotate(45deg);
    transform-origin: left center;
} */
.lpf-search-input {
    flex-grow: 1;
    padding-right: 44px;
}
.lpf-search-button, .lpf-load-more-button { padding: 10px 20px; background: #0073aa; color: #fff; border: none; border-radius: 5px; cursor: pointer; font-size: 1em; transition: background-color 0.2s ease-in-out; }
.lpf-search-button:hover, .lpf-load-more-button:hover { background: #005a87; }
.lpf-filter-options label { display: block; margin-bottom: 5px; cursor: pointer; }
.lpf-filter-options input[type="checkbox"], .lpf-filter-options input[type="radio"] { margin-right: 8px; }
.lpf-filter-date select { display: inline-block; width: 48%; }
.lpf-filter-date select:first-child { margin-right: 4%; }
.lpf-clear-filters-button { display: block; width: 100%; padding: 10px; background: #6c757d; color: #fff; border: none; border-radius: 5px; cursor: pointer; font-size: 1em; text-align: center; margin-top: 20px; transition: background-color 0.2s ease-in-out; }
.lpf-clear-filters-button:hover { background: #5a6268; }

@media (max-width: 767px) {
    .lpf-filters-panel {
        grid-template-columns: 1fr;
    }
    .lpf-search,
    .lpf-filter-taxonomy,
    .lpf-filter-author,
    .lpf-filter-date {
        min-height: 56px;
        border-radius: 16px;
    }
    .lpf-search-input,
    .lpf-filter-taxonomy select,
    .lpf-filter-author select,
    .lpf-filter-date select,
    .lpf-author-select,
    .lpf-year-select,
    .lpf-month-select {
        min-height: 56px;
        font-size: 16px;
        padding-right: 46px;
    }
}

/* --- UI Elements --- */
.lpf-layout-switcher { margin-bottom: 20px; text-align: right; }
.lpf-layout-btn { background: #f0f0f0; border: 1px solid #ddd; padding: 8px; cursor: pointer; margin-left: 5px; border-radius: 4px; }
.lpf-layout-btn:hover { background: #e0e0e0; }
.lpf-layout-btn.is-active { background: #0073aa; color: white; border-color: #0073aa; }
.lpf-pagination {
        text-align: center;
    padding-top: 8rem;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.lpf-pagination .nav-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.lpf-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #F9FBFE;
    border: 1px solid #E2E2E2;
    color: #323D48;
    font-size: 18px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.lpf-pagination .page-numbers:hover {
    transform: translateY(-1px);
    border-color: #b9b9b9;
}
.lpf-pagination .page-numbers.current,
.lpf-pagination .page-numbers.is-current {
    background: #00AEEF;
    border-color: #00AEEF;
    color: #fff;
    box-shadow: 0 8px 18px rgba(23, 169, 240, 0.15);
}
.lpf-pagination .page-numbers.prev,
.lpf-pagination .page-numbers.next {
    background: #323D48;
    border-color: #323D48;
    color: #fff;
}
.lpf-pagination .page-numbers.prev img,
.lpf-pagination .page-numbers.next img {
    display: block;
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
}
.lpf-pagination .page-numbers.is-disabled,
.lpf-pagination .page-numbers[aria-disabled="true"] {
    opacity: 0.9;
    cursor: default;
    pointer-events: none;
}
.lpf-pagination .screen-reader-text {
    display: none;
}

/* --- Loader --- */
.lpf-loader { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border: 5px solid #f3f3f3; border-top: 5px solid #0073aa; border-radius: 50%; animation: spin 1s linear infinite; z-index: 10; }
@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }


/* Mosaic ratios */
.mosaic-50 { grid-column: span 2; }
.mosaic-25 { grid-column: span 1; }
.mosaic-30 { grid-column: span 1; }
.mosaic-70 { grid-column: span 3; }
 
/* Example responsive adjustments */
@media (max-width: 768px) {
  .lpf-layout-grid { grid-template-columns: 1fr; }
}


/* -------------------------------------------------------
   MOBILE SWIPER MODE — ACTIVATE ONLY WHEN CONTAINER HAS:
   .lpf-swiper-initialized
----------------------------------------------------------*/

@media (max-width: 1024px) {

    /* 1. Disable grid layout when Swiper is active */
    .lpf-swiper-initialized .lpf-posts-wrapper {
        display: block !important;
    }

    .lpf-swiper-initialized .lpf-grid-item {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin: 0 !important;
    }

    /* 2. Disable mosaic patterns (these break Swiper widths) */
    .lpf-swiper-initialized [class*="mosaic-"] {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 3. Ensure Swiper container renders correctly */
    .lpf-mobile-swiper {
        width: 100%;
        overflow: hidden;
        position: relative;
        padding-bottom: 30px; /* space for pagination */
    }

    /* 7. Hide OLD pagination */
    .lpf-swiper-initialized .lpf-pagination {
        display: none !important;
    }
  
}

/* --- News template matching the reference --- */
.template-news .lpf-posts-wrapper,
.template-events .lpf-posts-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.template-news .lpf-posts-wrapper .lpf-grid-item,
.template-events .lpf-posts-wrapper .lpf-grid-item {
    width: 100%;
    max-width: 100%;
    margin: 0;
    height: stretch;
}

.template-news .lpf-posts-wrapper .lpf-grid-item:first-child:has(.aw-news-card--featured),
.template-events .lpf-posts-wrapper .lpf-grid-item:first-child:has(.aw-event-card--featured) {
    grid-column: 1 / -1;
    margin-bottom: 12px;
}

.aw-news-card,
.aw-event-card {    
    /* overflow: hidden; */
    min-height: 100%;
    display: flex;
}

.aw-news-card__link,
.aw-event-card__link {
    display: flex;
    flex-direction: column;
    color: #fff;
    text-decoration: none;
    background: #F9FBFE;
    box-shadow: 0px 12px 30px 0px #0000001A!important;
    border: 10px solid #E2E2E2;
    border-radius: 30px;
    padding: 2.4rem;
    padding-bottom: 4rem;
    width: 100%;
}

.aw-news-card--featured {
    padding: 0;
    background: none;    
    overflow: visible;
}

.aw-news-card--featured .aw-news-card__link,
.aw-event-card--featured .aw-event-card__link {
    display: grid;
    grid-template-columns: 1.41065fr 0.95fr;
    min-height: 330px;
    gap: 20px;
    padding: 0;
    background: transparent;
    border: none;
}

.aw-news-card__media,
.aw-event-card__media {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 340px;
    width: 100%;
}

.aw-news-card--featured .aw-news-card__media,
.aw-event-card--featured .aw-event-card__media {
    height: 580px;
    border-radius:30px;
    overflow: hidden;
    width: 100%;
}

.aw-news-card__image,
.aw-event-card__image {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.aw-news-card__fallback,
.aw-event-card__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;    
    font-size: 48px;
    color: rgba(255,255,255,0.8);
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
}

.aw-news-card__content,
.aw-event-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 20px 0 20px;
}

.aw-news-card--featured .aw-news-card__content,
.aw-event-card--featured .aw-event-card__content {
    padding: 4rem 6rem 4rem 8rem;
    box-shadow: -5px 100px 82.67px 0px #0000000D, 153.33px 200px 98.67px 0px #00000003, 238.67px 300px 108px 0px #00000000;
    background: #ffffff;
    border-radius: 30px;
}

.aw-news-card__category,
.aw-event-card__category {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.18em;
    font-weight: 700;
    color: #323D48;
}
.aw-news-card__category .aw-eyebrow__text ,
.aw-event-card__category .aw-eyebrow__text {
    font-size: 16px;
    font-weight: 400;
    color: #323D48;
}

.aw-news-card--featured .aw-news-card__category .aw-eyebrow__text,
.aw-news-card--featured .aw-event-card__category .aw-eyebrow__text {font-size: 24px;}

.aw-news-card__title,
.aw-event-card__title {
    margin: 0;
    color: #323D48;
    font-family: var( --e-global-typography-be1dc61-font-family ), Sans-serif !important;
    font-size: var( --e-global-typography-be1dc61-font-size ) !important;
    font-weight: 700!important;
    line-height: var( --e-global-typography-be1dc61-line-height ) !important;
    letter-spacing: var( --e-global-typography-be1dc61-letter-spacing ) !important;
    padding-bottom: 12px;
    margin-bottom: 0;
    border-bottom: 1px solid #E2E2E2;
    min-height: 102px;
}

.aw-news-card--featured .aw-news-card__title,
.aw-event-card--featured .aw-event-card__title {
    font-family: var( --e-global-typography-e4a53ab-font-family ), Sans-serif !important;
    font-size: var( --e-global-typography-e4a53ab-font-size ) !important;
    font-weight: var( --e-global-typography-e4a53ab-font-weight ) !important;
    line-height: var( --e-global-typography-e4a53ab-line-height ) !important;
    letter-spacing: var( --e-global-typography-e4a53ab-letter-spacing ) !important;

        margin: 0;
    color: #323D48;
    padding-bottom: 12px;
    border-bottom: 0px solid #E2E2E2;
    min-height:auto;
}

.aw-news-card__date,
.aw-event-card__date {
    margin-top: 12px;
    font-size: 18px;
    color: #323D48;
    font-weight: 400;
    line-height: 26px;
}

.aw-news-card--featured .aw-news-card__date,
.aw-event-card--featured .aw-event-card__date {
    margin-top: 12px;
    font-size: 20px;
    color: #323D48;
    font-weight: 400;
    line-height: 28px;
}




.aw-event-card__content .aw-eyebrow{
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 24px;
}
.aw-event-card__content .aw-eyebrow__dot{
    width: 12px;
    height: 12px;
}
.aw-event-card--featured .aw-event-card__content .aw-eyebrow{
    font-size: 2.4rem;
    line-height: 3.2rem;
    margin-bottom: 15px;
}
.aw-event-card--featured .aw-event-card__content .aw-eyebrow__dot{
    width: 16px;
    height: 16px;
}

.aw-news-card--featured .aw-news-card__link, 
.aw-event-card--featured .aw-event-card__link{
    box-shadow: none!important;
}



@media (max-width: 1024px) {
    .lpf-posts-wrapper.template-news {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lpf-posts-wrapper.template-news .lpf-grid-item:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .lpf-posts-wrapper.template-news {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .aw-news-card--featured .aw-news-card__link {
        grid-template-columns: 1fr;
    }

    .aw-news-card__content {
        padding: 16px 18px 20px;
    }

    .aw-news-card--featured .aw-news-card__content {
        padding: 22px 18px 20px;
    }
}





@media (max-width: 1750px) {
    
    .aw-news-card--featured .aw-news-card__media, .aw-event-card--featured .aw-event-card__media{
        height: 500px;
    }
    .aw-news-card__media, .aw-event-card__media{
        height: 290px;
    }
    .aw-news-card__title, .aw-event-card__title{
        min-height: 85px;   
    }
}
@media (max-width: 1299px) {
    
    .aw-news-card--featured .aw-news-card__media, .aw-event-card--featured .aw-event-card__media{
        height: 450px;
    }
    .aw-news-card__media, .aw-event-card__media{
        height: 250px;
    }

    .aw-news-card--featured .aw-news-card__content, .aw-event-card--featured .aw-event-card__content{
        padding: 4rem;
    }
    
}
@media (max-width: 1199px){

    .aw-news-card__media, .aw-event-card__media{
        height: 200px;
    }
    .aw-news-card__content, .aw-event-card__content{
        padding-top: 20px;
    }
    .aw-news-card__date, .aw-event-card__date{
        font-size: 15px;
        line-height: 23px;
    }

    .lpf-pagination .page-numbers{
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 1024px){
    .aw-news-card--featured .aw-news-card__media, .aw-event-card--featured .aw-event-card__media{
        height: 350px;
    }
    .aw-news-card--featured .aw-news-card__title, .aw-event-card--featured .aw-event-card__title{
        font-size: 3rem !important;
        line-height: 3.8rem !important;
    }
    .aw-news-card--featured .aw-news-card__date, .aw-event-card--featured .aw-event-card__date{
        font-size: 16px;
        line-height: 24px;
    }

    .template-news .lpf-posts-wrapper, .template-events .lpf-posts-wrapper{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .lpf-filters-panel{
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}
@media (max-width: 767px){
    .lpf-filter-taxonomy select, .lpf-filter-author select, .lpf-filter-date select, .lpf-filter-sort select, .lpf-author-select, .lpf-year-select, .lpf-month-select, .lpf-sort-select, .lpf-taxonomy-select{
        background-size: 25px;
        background-position: right 13px center;
    }
  

    .lpf-search::after{
        right: 13px;
        width: 25px;
        height: 25px;
    }


    .aw-news-card--featured .aw-news-card__link, .aw-event-card--featured .aw-event-card__link{
        grid-template-columns: 1fr;
    }
    .aw-news-card--featured .aw-news-card__media, .aw-event-card--featured .aw-event-card__media{
        border-radius: 16px;
    }
    .aw-news-card--featured .aw-news-card__content, .aw-event-card--featured .aw-event-card__content{
        padding: 24px;
        border-radius: 16px;
    }
    .aw-event-card--featured .aw-event-card__content .aw-eyebrow__dot{
        width: 12px;
        height: 12px;
    }
    .template-news .lpf-posts-wrapper, .template-events .lpf-posts-wrapper{
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    
    .aw-news-card__media, .aw-event-card__media{
        border-radius: 16px;
    }
    .aw-event-card__content .aw-eyebrow{
        font-size: 14px;
        line-height: 22px;
    }
    .aw-event-card__content .aw-eyebrow{
        margin-bottom: 12px;
    }
    .aw-news-card__title, .aw-event-card__title{
        min-height: 61px;
    }
    .lpf-filter-taxonomy h4, .lpf-filter-sort h4, .lpf-filter-author h4, .lpf-filter-date h4,
    .lpf-search-input, .lpf-filter-taxonomy select, .lpf-filter-author select, .lpf-filter-date select, .lpf-filter-sort select, .lpf-author-select, .lpf-year-select, .lpf-month-select, .lpf-sort-select, .lpf-taxonomy-select{
        font-size: 16px ;
        line-height: 24px ;
    }
    .lpf-pagination{
        gap: 5px;
    }
    .lpf-pagination .page-numbers{
        font-size: 14px;
        width: 30px;
        height: 30px;
        letter-spacing: 0;
    }

    .lpf-container{
        padding-bottom: 40px;
    }
}