/* Events Archive */

@media (min-width: 922px) {
   body.post-type-archive-event .site .site-content > .ast-container {
        max-width: 1350px;
    }
}

.custom-events-archive {
    width: 100%;
}

.events-header {
    margin-bottom: 40px;
    margin-top: 80px;
}

.events-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px 30px;
    margin-bottom: 60px;
    align-items: stretch;
}

.event-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.event-image {
    width: 100%;
}

.event-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.event-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-content {
    background: #54296e;
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.event-title {
    margin: 0 0 10px;
    line-height: 31px !important;
    max-width: 200px;
}

.event-title a {
    text-decoration: none;
    color: white!important;
}

.event-date {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: bold;
    color: #ffffff;
}



.event-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: white;
    padding: 8px 24px;
    margin-top: 10px;
    border-radius: 6px;
    width: fit-content;
    margin-top: auto;
}

.event-link-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-bottom: -2px;
}

.event-link:hover a, .event-link:hover{
    color: #54296e !important;
}


.events-list-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.event-description {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 21px;
}

h2.event-title {
    line-height: 1em !important;
    font-size: 32px !important;
}

@media (max-width: 1024px) {
    .events-list-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .events-list-4 {
        grid-template-columns: 1fr;
    }
}

/* Mobile */

@media (max-width: 767px) {

    .events-list {
        grid-template-columns: 1fr;
    }


}


/* Event filters */

.events-filter {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    display: none;
}

.events-filter a {
    display: inline-block;
    padding: 10px 18px;
    text-decoration: none;
}

.events-filter a.active {
    font-weight: 600;
}

main.custom-event-single {
    margin-bottom: 40px;
    margin-top: 80px;
}

body.event-template-default div#content,
body.post-type-archive-event div#content  {
    background: url(https://akaabaimprov.com/wp-content/uploads/2024/12/ANT_9969-1-scaled.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    z-index: 0;
}

body.event-template-default div#content:after,
body.post-type-archive-event div#content:after {
    width: 100%;
    height: 100%;
    position: absolute;
    content: "";
    background: black;
    top: 0;
    left: 0;
    opacity: 0.6;
    z-index: -1;
}

.back-to-events {
    margin-top: 40px;
}

.back-to-events a {
    color: white;
    text-decoration: none;
}

.back-to-events a:hover {
    text-decoration: underline;
}

.custom-event-single .event-date {
    margin-top: 40px;
    background: #54296e;
    width: fit-content;
    padding: 10px 20px;
    margin-bottom: 20px;
}