/*Event styles*/
.event {
    max-width: 1920px;
    margin: 0 auto;
    position: relative;
}

.event__header-section {
    background-color: #ffffff;
    background: url('/wp-content/uploads/2024/12/dot-bg-mono.jpg') no-repeat 50%;
    background-position: top left;
    background-size: cover;
    height: 100%;
    margin-bottom: 50px;
    max-height: 400px;
    opacity: 0.91;
    padding: 40px;
    position: relative;
    width: 100%;
}

.event__header-overlay {
    background-color: #ffffff;
    height: 100%;
    left: 0;
    position: absolute;
    opacity: 0.91;
    top: 0;
    transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
    width: 100%;
}

.event__header-content {
    align-items: center;
    display: flex;
    margin: 0 auto;
    max-width: 1040px;
    min-height: 40vh;
    position: relative;
}

.event__title {
    color: #024E56;
    font-family: "Poppins", Sans-serif;
    font-size: 40px;
    font-weight: 700;
    margin-top: 20px;
    position: relative;
    text-transform: uppercase;
}

.event__title::before {
    background: #024E56;
    content: '';
    height: 5px;
    left: 0;
    position: absolute;
    top: -20px;
    width: 60px;
}

.event__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    max-width: 1040px;
    padding: 0 20px;
}

.event__thumbnail img {
    border-radius: 10px;
    height: auto;
    object-fit: cover;
    max-height: 250px;
    width: 100%;
}

.event__subtitle {
    color: #024E56;
    font-family: "Poppins", Sans-serif;
    font-size: 33px;
    margin-top: 0;
    text-decoration: underline;
}

.event__description {
    color: #024E56;
    font-family: "Poppins", Sans-serif;
    font-size: 33px;
}

.event__back {
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.event__back .button {
    background-color: var(--e-global-color-primary);
    color: #fff;
    font-family: "Poppins", Sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 15px;
    text-decoration: none;
    text-transform: uppercase;
}

.event__back .button:hover {
    opacity: .9;
    transform: scale(1.1);
    transition-duration: .3s;
}


@media screen and (min-width: 992px) {
    .event__content {
        flex-direction: row;
        justify-content: space-between;
    }

    .event__title {
        font-size: 60px;
    }

    .event__thumbnail img {
        max-height: 420px;
    }

    .event__thumbnail {
        width: 60%;
    }

    .event__wrapper {
        width: 35%;
    }
    
    .event__wrapper--full {
        width: 100%;
    }
}

@media screen and (min-width: 1040px) {
    padding: 0;
}

/* Events list */
.posts-list {
    font-family: "Poppins", Sans-serif;
    margin: 20px 0;
}

.posts-list__items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
    
    @media screen and (min-width: 1040px) {
        margin-bottom: 40px;
    }
}

.posts-list__title {
    color: #03869E;
    font-family: "Poppins", Sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.125em;
    position: relative;
}

.posts-list__title span {
    display: inline-block;
    padding-left: 16px;
}

.posts-list__title::before {
    background: #03869E;
    bottom: 0;
    height: 100%;
    content: '';
    left: 0;
    position: absolute;
    width: 8px;
}

.posts-list__filters {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.posts-list__filters .facetwp-type-search,
.posts-list__filters .facetwp-type-date_range {
    margin: 0;
}

.posts-list__filters .facetwp-input-wrap {
    width: 100%;
}

.posts-list__filters input {
    border: 2px solid #03869E;
    color: #03869E;
    width: 100%;
}

.posts-list__filters input:focus,
.posts-list__filters input:focus-visible {
    border: 2px solid #03869E;
}

@media (min-width: 768px) {
    .posts-list__filters {
        flex-direction: row;
        gap: 30px;
    }
}

.posts-list__item {
    border: 0 solid #69727d;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, .15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    text-align: center;
    transition: all .25s;
}

.posts-list__item-thumbnail,
.posts-list__item-thumbnail--empty {
    width: 100%;
}

.posts-list__item-thumbnail img {
    height: 225px;
    object-fit: cover;
    width: 100%;
}

.posts-list__item-thumbnail--empty {
    background: gray;
    height: 225px;
}

.posts-list__item-title {
    color: #024E56;
    font-family: "Poppins", Sans-serif;
    font-size: 33px;
    margin: 0;
    padding: 15px 0;
}

.posts-list__item-wrapper {
    border-top: 1px solid rgba(61,68,89,0.1);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 16px;
}

@media (min-width: 768px) {
    .posts-list__item-wrapper {
        padding: 25px;
    }
}

.posts-list__item-date {
    margin: auto 0 0;
    text-transform: capitalize;
}

.posts-list__item-link {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.posts-list__item-link span {
    opacity: 0;
}

@media (min-width: 768px) {
    .posts-list__items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .posts-list__items {
        grid-template-columns: repeat(3, 1fr);
    }
}

.posts-list__pagination button {
    background: #024E56;
    border: 1px solid;
    color: #FFF;
    font-weight: bold;
    text-transform: uppercase;
    margin: 30px auto 0;
}