#custom-events-container {
    padding: 32px 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Mobile layout (1 column) */
@media (min-width: 767px) and (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 60px 40px;
    }
}

.filter-container {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    margin-bottom: 50px;
}

.filter-title h2{
    font-weight: 600;
    line-height: 1.25em;
    font-size: 40px;
    color: #000000;
}

select#event-sort option{
    text-wrap-mode: wrap;
    white-space: normal;
    font-size: 16px;
}

select#event-sort {
    font-size: 20px;
    font-weight: 600;
    line-height: 25px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #a4227d;
    border: unset !important;
    outline: none;
    box-shadow: unset;
    padding: 9px 17px;
    background-color: transparent;
}

@media (min-width: 768px){
    .filter-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-bottom: 50px;
        width: 100%;
        justify-content: space-between;

    }

    select#event-sort {
    font-size: 20px;
    font-weight: 600;
    line-height: 25px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #a4227d;
    border: unset !important;
    outline: none;
    box-shadow: unset;
    padding: 9px 17px;
    }
}

.custom-post-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.post-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 25px;
}

.post-title-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

}

.post-bottom-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 768px){
    .swiper-slide .post-bottom-content {
        justify-content: flex-start;
    }
}

.post-image {
    display: block;
    width: 100%;
    height: 236px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #0000001a;
}

.swiper-slide .post-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
    margin-top: 10px;
    font-weight: 600;
}

.swiper-slide .post-title {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
    margin-top: 10px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    padding: 0 5px;
    text-align: left;
}

.event-date {
    color: #ffffff;
    text-align: left;
    padding: 0 5px;
    font-weight: 300;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.post-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
    margin-top: 10px;
    font-weight: 600;
}

.post-title {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
    margin-top: 10px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    padding: 0 5px;
    text-align: left;
}

@media (min-width: 769px){
    .post-title {
    font-size: 24px;
}
    .swiper-slide .post-title {
    min-height: 5px;
}
}
.swiper-slide .post-title a:hover {
    color: #ffffff;
}

.post-title a:hover {
    color: var(--color-primary);
}

p.post-download{
    display: flex;
    padding: 0 5px;
    margin-top: 18px;
}

p.post-download .download-btn{
    font-size: 18px;
    font-weight: 700;
    border: 0;
    color: #8f0b6a;
    line-height: 16px;
    padding: 0;
    position: relative;
    border-radius: 0;
    white-space: nowrap;
    transition: all .3s;
    display: flex;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    background-color: transparent;

}
p.post-download .download-btn .icon {
    color: inherit;
    margin: 0;
}

p.post-publish-date {
    margin-bottom: 5px;
    margin-top: 15px;
    font-size: 14px;
    padding: 0 5px;
}


.custom-blog-post #content .lqd-contents {
    width: 100%;
}

.post-top-content {
    position: relative;
}

.category-wrapper {
    display: flex;
    margin-top: 0;
    position: absolute;
    top: 10px;
    left: 10px;
}

.post-category {
    flex: 0 auto;
    padding: .25em 1em;
    margin-inline-end: .5em;
    border-radius: 3px;
    background-color: #f3f3f3;
    margin-bottom: 0;
    font-size:12px;
}

div#custom-events-pagination {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}
a.page-numbers {
    background-color: #ededed;
    color: #000000;
    border: 0;
    border-radius: 6px;
    padding: 0 20px;
    line-height: 36px;
}

span.page-numbers.current {
    background-color: #a4227d;
    color: #ffffff;
    border-radius: 6px;
    padding: 0 20px;
    line-height: 36px;
}

.view-more-wrapper {
    border-width: 1px;
    border-radius: 7em;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    padding: 1.15em 2.1em;
    align-items: center;
    background-color: rgb(164, 34, 125);
    border-color: rgb(164, 34, 125);
    color: rgb(255, 255, 255);
    border: 1px solid var(--color-primary);
    text-transform: uppercase;
    min-width: 280px;
    text-align: center;
    letter-spacing: 1px;
}

.view-more-wrapper:hover {
    border-color: rgba(0,0,0,0);
    background-color: var(--color-primary);
    color: #fff;
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 12px 28px rgba(0,0,0,.12);

}

.swiper-slide .event-location a {
    text-decoration: none;
    color: #ffffff;;
    font-size: 16px;
    font-weight: 400;
    line-height: 23.58px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.event-location a {
    text-decoration: none;
    color: #000000;
    font-size: 16px;
    font-weight: 400;
    line-height: 23.58px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.event-location a span path{
    color: #000000;
    fill: #000000;
}
.swiper-slide .event-location a span path{
    color: #ffffff;
    fill: #ffffff;
}
.swiper-slide .event-location a:hover{
    color: #ffffff;
    fill: #ffffff;
}

.swiper-slide .event-location{
    text-align: left;
}

.event-location a:hover {
    color: #000000;
    fill: #000000;
}
.carousel-header h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 69.6px;
    letter-spacing: -0.01em;
    text-align: left;
    color: #fff;
    margin-bottom: -5px !important;
}

.carousel-header h2 {
    font-size: 31px;
    font-weight: 400;
    line-height: 44px;
    letter-spacing: -0.01em;
    text-align: left;
    color: #fff;
    margin-bottom: 30px;
}

@media (min-width: 768px){
.carousel-header h1 {
    font-size: 38px;
}

.carousel-header h2 {
    font-size: 36px;
}
}

.button-wrapper {
    display: none;
}

@media (min-width: 767px){
.event-carousel-container .swiper-button-next, .event-carousel-container .swiper-button-prev {
    position: relative;
    z-index: 10;
    cursor: pointer;
    display: flex;
    height: 40px;
    border-radius: 50em;
    width: 40px;
    background: #000000;
    color: #ffffff;
    align-items: center;
    justify-content: center;
    margin:0;
    right: 0;
    left: 0;
}

.button-wrapper {
    position: absolute;
    z-index: 10;
    top: -60px;
    right: 10px;
    display: flex;
    gap: 10px;
    color: #ffffff;
    align-items: center;
    justify-content: center;
}
}

@media (min-width: 768px){
    .event-carousel-container .swiper-pagination {
        display: none;
    }
}

.event-carousel-container .swiper-pagination-bullet.swiper-pagination-bullet-active {
    opacity: 1;
    background: #ffffff;
    width:16px; 
}

.event-carousel-container .swiper-pagination-bullet {
    width: 8px;
    height: 5px;
    display: inline-block;
    border-radius: 12px;
    background: #ffffff;
    opacity: .2;
}

.event-carousel-container .swiper-pagination {
    position: relative;
}