#explore-library {
    display: flex;
    margin-top: 20px;
}

#sidebar {
    width: 25%;
    margin-right: 20px;
}

.right-side {
    width: 75%;
}

.custom-post-item {
    display: flex;
    margin-bottom: 20px;
}

.custom-post-thumbnail img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-right: 20px;
}

.custom-post-content {
    flex: 1;
}

.custom-post-type {
    font-size: 14px;
    color: #888;
}

.custom-post-title {
    font-size: 18px;
    margin: 5px 0;
}

.custom-post-excerpt {
    font-size: 16px;
}

#post-type-filters, #industry-filters {
    margin-bottom: 20px;
}

.filter-post-type, .filter-industry {
    display: block;
    margin-bottom: 5px;
    cursor: pointer;
    padding: 5px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.filter-post-type.active, .filter-industry.active {
    background: #0073aa;
    color: #fff;
}

#load-more-posts {
    display: block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

#search-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

#search-input {
    width: 100%;
    padding: 8px 36px 8px 12px;
    box-sizing: border-box;
}

#search-icon {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    pointer-events: none;
}

.right-side {
    position: relative;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    z-index: 9998;
    display: none;
}

#loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: none;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid #C2273D;
    width: 50px;
    height: 50px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*Additional CSS*/
.elementor-message-danger {
    color: #d9534f !important;
}

.elementor-message-success {
    color: #32a852;
    text-align: center;
    margin-top: 25px;
}

.partner-tile__logo {
    height: 100% !important;
    width: auto !important;
}

/*Pagination*/

#pagination-controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px;
}
#page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}
#prev-arrow,
#next-arrow {
    border: none;
    border-radius: 50%;
    color: #051C2C;
    padding:0;
    transition:  .2s ease-in-out;
    height: 40px;
    width: 40px;

}
#prev-arrow svg,
#next-arrow svg {
    transition:  .2s ease-in-out;
    height: 40px;
    width: 40px;
}
.custom-post-container .swiper-button-prev:hover,
.custom-post-container .swiper-button-next:hover,
#prev-arrow:hover,
#next-arrow:hover {
    background: #051C2C;
}
.custom-post-container .swiper-button-prev:hover svg path,
.custom-post-container .swiper-button-next:hover svg path,
#prev-arrow:hover svg path,
#next-arrow:hover svg path{
    stroke: #fff;
}
#pagination-controls .page-number {
    color: #B0B4B8;
    display: inline-block;
    font-family: Stratos;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    padding: 10px 8px;
    transition:  .2s ease-in-out;


}
#pagination-controls .page-number:not(.current-page) {
    cursor: pointer;
}
#pagination-controls .page-number:hover {
    color: #051C2C;
}
#pagination-controls .page-number.current-page {
    color: #051C2C;
}
/*post slide*/
body .custom-post-container {
    margin-top: -160px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.custom-post-list .custom-post-item {
    align-items: center;
    border-radius: 24px;
    background: #051C2C;
    color: #fff;
    display: flex;
    height: auto;
    flex-wrap: wrap;
    overflow: hidden;
    margin-bottom: 0;
}

.custom-post-container .swiper-button-prev:after,
.custom-post-container .swiper-button-next:after {
    display: none;
}
.custom-post-container .swiper-button-prev svg,
.custom-post-container .swiper-button-next svg {

}
.custom-post-container .swiper-button-prev,
.custom-post-container .swiper-button-next,
.custom-post-container .swiper-pagination {
    position: relative;
}
.custom-post-container .swiper-pagination {
    width: auto !important;
}
.custom-post-container .swiper-button-prev,
.custom-post-container .swiper-button-next {
    border-radius: 50%;
    height: 40px;
    margin-top: 24px;
    width: 40px;
}

.custom-post-container .swiper-pagination {
    margin: 37px 16px 0 !important;
}
.custom-post-container .swiper-pagination-bullet {
    background: #051C2C;
    border-radius: 8px;
    opacity: 1;
    height: 4px;
    width: 5px;
}
.custom-post-container .swiper-pagination-bullet.swiper-pagination-bullet-active {

    background: #051C2C;
    height: 4px;
    width: 20px;
}

.custom-post-list .custom-post-title {
    font-family: 'Stratos';
    font-size: 28px;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
    margin-bottom: 16px;
    margin-top: 8px;

}

.custom-post-list .custom-post-type {
    color: #F5A830;
    font-family: 'Stratos';
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.custom-post-list .custom-post-excerpt {
    color: #FFF;
    font-family: 'Stratos';
    font-size: 16px;
    font-weight: 400;
    line-height: 23px;
    margin-bottom: 16px;
}

.custom-post-list .custom-post-title a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
.custom-post-list .custom-post-title a:hover {
    text-decoration:underline;
}
.custom-post-list .custom-post-thumbnail {
    position: relative;
    min-height: 320px;
    width: 50%;
}
.custom-post-list .custom-post-thumbnail  img {
    position:absolute;
    height: 100%;
    object-fit: cover;
    padding: 0;
    width: 100%;
}
.custom-post-list .custom-post-content {
    padding: 10px 40px;
    width: 50%
}
.custom-post-content .read-more {
    color: #FFF;
    font-family: 'Stratos';
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: 0.08px;
    transition: all 0.2s ease-in-out;
}
.custom-post-content .read-more:hover {
    color: #C2273D;
}

/*Post content*/
.filter-content {
    text-align: center;
    margin: 64px 0;
}
body .filter-content h4,
body .filter-content h2 {
    font-family: 'Stratos';
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
}
.filter-content h4 {
    color: #C2273D;
    font-size: 14px !important;
    letter-spacing: 0.7px;
    margin-bottom: 7px;

}
.filter-content h2{
    color: #051C2C;
    font-size: 48px !important;
    font-style: italic;
    margin-top: 0;

}
/*Post list*/
#sidebar {
    margin-right: 40px;
}
/*Post item*/
.right-side #total-results {
    color: #051C2C;
    font-family: 'Stratos';
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
    margin-bottom: 40px;
}
#posts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
}

#posts-container .custom-post-item {
    display: flex;
    flex-direction: column;
    font-family: 'Stratos';
    gap: 20px;
    margin-bottom: 40px;
    width: calc(33.33% - 16px);
}
#posts-container .custom-post-thumbnail {
    border-radius: 24px;
    max-height: 175px;
    height: 175px;
    overflow: hidden;
    width: 100%;
}
#posts-container .custom-post-thumbnail img{
    height: 100%;
    object-fit: cover;
    margin-right: 20px;
    width: 100%;
}

#posts-container .custom-post-item .custom-post-type {
    color: #C2273D;
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}
#posts-container .custom-post-item .custom-post-title a,
#posts-container .custom-post-item .custom-post-title {
    color: #051C2C;
    font-size: 20px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin: 8px 0;

}
#posts-container .custom-post-item .custom-post-title a {
    text-decoration: none;
}
#posts-container .custom-post-item .custom-post-title a:hover{
    color: #C2273D;
}
#posts-container .custom-post-item .custom-post-excerpt {
    color: #051C2C;
    font-size: 16px;
    font-weight: 400;
    line-height: 23px;
    word-break: break-word;
}

/*Filtre*/
#search-container {
    margin-bottom: 20px;
}
#search-container input {
    border-radius: 40px;
    color: #AAACAE;
    font-family: Stratos;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    padding: 8px 40px 8px 16px;

}
#search-icon {
    right: 16px;
}

#filter-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 20px;
}

.filter-pill {
    border-radius: 30px;
    background: #051C2C;
    display: flex;
    padding: 12px 24px;
    align-items: center;
    gap: 12px;
    color: #FFF;
    font-family: 'Stratos';
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.remove-filter {
    cursor: pointer;
    width: 10px;
}

#clear-all-filters {
    background: transparent;
    border-radius: 0;
    border-width: 0 0 2px 0;
    border-color: #051C2C;
    color: #051C2C;
    font-family: Stratos;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: 0.08px;
    padding: 0 0 4px 0;
    margin-bottom: 15px;

}
#clear-all-filters:hover {
    color: #C2273D;
    border-color: #C2273D;
}
#industry-filters h3,
#post-type-filters h3 {
    color: #212529;
    font-family: Stratos;
    font-size: 17px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.85px;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 16px;
}
#sidebar {
    margin-bottom: 24px;
}
#sidebar label {
    color: #051C2C;
    font-family: Stratos;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    margin-bottom: 12px;
}

#sidebar label input {
    appearance: none;
    border: 1px solid #051C2C;
    border-radius: 50%;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #fff;
    margin: 0 8px 0 0;
    position: relative;
    cursor: pointer;
    float: left;
}


#sidebar label input:checked {
    background: #051C2C;
}

.filter-btn {
    border: none;
    color:  #212529;
    font-family: 'Stratos';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.2px;
    text-decoration-line: underline;
    text-transform: uppercase;
    padding: 0;
    margin-bottom: 20px;
}
.filter-btn:focus,
.filter-btn:hover {
    background: transparent;
    color: #C2273D;
}
.post-filters-container .post-filters-buttons .button-white {
    color: #212529;
    font-family: 'Stratos';
    border: 1px solid #212529;
}
.post-filters-container .post-filters-buttons	.button-red {
    background: #C2273D;
    color:  #FFF;
    font-size: 14px;
    font-weight: 700;
}

.post-filters-container .post-filters-buttons .button-white:hover {
    border: 1px solid #C2273D;
    background: #C2273D;
    color:  #FFF;
}

.post-filters-container .post-filters-buttons	.button-red:hover {
    color: #212529;
    background: #fff;
}
@media only screen and (min-width: 769px) {
    .filter-btn {
        display: none;
    }
    .visible-xs {
        display: none;
    }
    .custom-post-list .custom-post-thumbnail {
        height: 100%;
    }
}



@media only screen and (max-width: 768px) {

    #post-type-filters {
        margin-top: 40px;
    }
    #explore-library {
        flex-wrap: wrap;
    }
    #sidebar {
        margin-right: 0;
        width: 100%;

    }
    #posts-container .custom-post-item {
        width: 100%;
    }

    .right-side {
        width: 100%;
    }
    #search-container {
        max-width: 100%;
    }

    #posts-container .custom-post-item .custom-post-title a,
    #posts-container .custom-post-item .custom-post-title {
        font-size: 18px;
    }

    .custom-post-list .custom-post-item {
        flex-direction: column;
    }
    .custom-post-list .custom-post-thumbnail,
    .custom-post-list .custom-post-content {
        width: 100%;
    }

    .custom-post-list .custom-post-thumbnail, .custom-post-list .custom-post-content {
        min-height: 320px;
    }

    .custom-post-list .custom-post-content {
        display: flex;
        justify-content: center;
        flex-direction: column;
    }

    .custom-post-list .custom-post-title {
        font-size: 24px;
        margin-bottom: 16px;
    }
    .filter-content h2 {
        font-size: 40px !important;
    }
    #pagination-controls {
        justify-content: center;
    }
    /*filter modal*/
    html:has(.filters-modal.open) ,
    body:has(.filters-modal.open) {
        overflow: hidden;
    }
    .filters-modal:not(.open) {
        /* 		display: none; */
        transform: translateX(-100vw) scale(0);
        visibility: hidden;
        opacity: 0;

    }
    .filters-modal {
        background: rgba(0, 0, 0, 0.50);
        bottom: 0;
        left: 0;
        right: 0;
        position: fixed;
        top:0;
        z-index: 99999;
        max-height: 100vh;
        width: 100%;
        overflow: auto;
    }
    .post-filters-container {
        background: #fff;
        display: flex;
        flex-direction: column;
        max-width: calc(100% - 60px);
        min-height: 100vh;
        padding: 60px 28px 0 20px;
        position: relative;
        width: 100%;

    }
    .post-filters-container .title {
        color:  #212529;
        font-family: 'Stratos';
        font-size: 20px;
        font-weight: 400;
        line-height: 28px;
        margin-bottom: 0;
    }
    .close-filter {
        border: none;
        top: 20px;
        right: 20px;
        position: absolute;

    }
    .close-filter:hover,
    .close-filter:focus {
        background: transparent;
    }
    .close-filter:hover svg path,
    .close-filter:focus svg path{
        stroke: #C2273D;
    }
    .post-filters-container .post-filters-buttons {
        background: #FFF;
        box-shadow: 0px -1px 25px 0px rgba(0, 0, 0, 0.25);
        display: flex;
        gap: 20px;
        padding: 20px 16px;
        margin: auto -28px 0 -20px;


    }
    .post-filters-container .post-filters-buttons button {
        font-size: 14px;
        line-height: normal;
        padding: 12px 7px;
        border-radius: 40px;
        text-align: center;
        min-width: calc(50% - 10px);
    }

    .filter-search {
        display: flex;
        flex-direction: row;
        gap: 30px;
        margin-right: 20px;

    }
    .post-filters-container {
        transform: translateX(-100vw);
        transition: transform .5s ease-in-out;
        opacity: 0;
    }
    .filters-modal.open .post-filters-container  {
        transform: translateX(0);
        opacity: 1;
    }

}


