.page-template-events,
.single-event {
    position: relative;
    background: url("/wp-content/themes/islamichelp/assets/images/event-bg.png") no-repeat top center / contain;
}

._btn-play {
   transition: all 0.5s ease 0s;
}

._btn-play:hover svg circle {
    fill: #012527;
}

._btn-play:hover svg path {
    fill: #deca3c;
}

.events-archive__body {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: stretch;
}

.events-archive__item {
    width: calc((100% - 32px) / 3);
    display: flex;
}

.events-archive__item-inner {
    border: 1px solid #012527;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.events-archive__header {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #012527;
}

.events-archive__price-label {
    position: absolute;
    top: 47px;
    left: -1px;
    border: 1px solid #012527;
    border-radius: 0 24px 24px 0;
    background: #00818a;
    padding: 12px 12px 12px 24px;
    font-family: "Work Sans", sans-serif;
    font-weight: 800;
    font-size: 14px;
    line-height: 1.14286;
    color: #fff;
}

.events-archive__status-label {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: #f6dcc2;
    border-radius: 4px;
    padding: 8px 12px;
    font-family: "Antonio", sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 0.85714;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #012527;
}

.events-archive__status-label.events-archive__status-label--available {
    background: #052fff;
    color: #fff;
}

img.events-archive__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.events-archive__content {
    padding: 32px 24px 50px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.events-archive__date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: "Antonio", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 0.875;
    text-transform: uppercase;
    color: #012527;
    margin-bottom: 31px;
}

.events-archive__title {
    margin-bottom: 24px;
}

.events-archive__title a {
    font-family: "Antonio", sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.16667;
    text-transform: uppercase;
    color: #012527;
    margin-bottom: 24px;
}

.events-archive__excerpt {
    font-family: "Karla", sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.77778;
    color: #012527;
    flex: 1;
    margin-bottom: 24px;
}

.events-archive__footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.events-archive__location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: "Antonio", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 0.875;
    text-transform: uppercase;
    color: #012527;
}

.events-archive__link {
    display: flex;
    gap: 11px;
    align-items: center;
    font-family: "Work Sans", sans-serif;
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
    color: #012527;
    transition: all 0.3s ease 0s;
}

.events-archive__link:hover {
    color: #052fff;
}

main.page.archive-event {
    padding: 80px 0;
}

.event-content {
    margin: 56px 0 40px;
}

.event-content__container {
    display: flex;
    gap: 40px;
}

.event-content__title {
    max-width: 560px;
    font-family: "Work Sans", sans-serif;
    font-weight: 800;
    font-size: 28px;
    line-height: 1.42857;
    color: #012527;
}

.event-content__text {
    max-width: 560px;
    font-family: "Karla", sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.77778;
    color: #012527;
}

.event-page-list {
    margin: 56px 0;
}

.event-page-list__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.event-page-list__item {
    width: calc((100% - 32px) / 3);
    border: 1px solid #012527;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.event-page-list__media {
    position: relative;
    border-bottom: 1px solid #012527;
}

.event-page-list__media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-page-list__label {
    position: absolute;
    top: 24px;
    right: 24px;
    font-family: "Antonio", sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.04em;
    color: #fff;
    text-transform: uppercase;
    border-radius: 4px;
    background: #004c51;
    padding: 8px 12px;
}

.event-page-list__label._golden_label {
    color: #012527;
    background: #deca3c;
    border: 1px solid #012527;
}

.event-page-list__label._white_label {
    border: 1px solid #012527;
    background: #fff;
    color: #012527;
}

.event-page-list__content {
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.event-page-list__title {
    font-family: "Work Sans", sans-serif;
    font-weight: 800;
    font-size: 32px;
    line-height: 1.25;
    color: #012527;
    margin-bottom: 40px;
}

.event-page-list__excerpt {
    font-family: "Karla", sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.77778;
    color: #012527;
    flex: 1;
    margin-bottom: 24px;
}

.event-page-list__link {
    margin-top: auto;
    font-family: "Work Sans", sans-serif;
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
    text-align: right;
    color: #004c51;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    transition: all 0.3s ease 0s;
}

.event-page-list__link:hover {
    color: #052fff;
}

.event-page-list__link svg path {
    transition: all 0.3s ease 0s;
}

.event-page-list__link:hover svg path {
    fill: #052fff;
}

.event-contact-us {
    margin: 56px 0 0;
}

.event-contact-us__body {
    border: 1px solid #012527;
    border-radius: 24px;
    padding: 56px;
    background: url("/wp-content/themes/islamichelp/assets/images/event-contact-us-bg.png") no-repeat right center / contain, linear-gradient(124deg, #ffeda9 0%, #f4ecd7 50%, #fff 100%);
}

.event-contact-us__title {
    max-width: 720px;
    font-family: "Work Sans", sans-serif;
    font-weight: 800;
    font-size: 28px;
    line-height: 1.28571;
    color: #012527;
    margin-bottom: 32px;
}

.event-contact-us__text {
    font-family: "Test Söhne", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.33333;
    color: #012527;
}

.event-contact-us__cf7 form.wpcf7-form {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.event-contact-us__cf7 .wpcf7-text {
    border: 1px solid #002527;
    border-radius: 8px;
    background: #fff;
    padding: 18px 16px;
    font-family: "Work Sans", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 0.88889;
    color: #5f6d6e;
    max-width: 310px;
    width: 100%;
}

.event-contact-us__cf7 .wpcf7-submit {
    border: 1px solid #deca3c;
    border-radius: 100px;
    background: #ffeda9;
    padding: 17px 24px;
    font-family: "Work Sans", sans-serif;
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
    color: #012527;
    transition: all 0.3s ease 0s;
}

.event-contact-us__cf7 .wpcf7-submit:hover {
    background-color: #012527;
    color: #deca3c;
}

.event-contact-us__cf7 .wpcf7-not-valid-tip {
    position: absolute;
    margin-top: -90px;
}

@media screen and (max-width: 991px) {
    .event-page-list__item,
    .events-archive__item {
        width: calc((100% - 16px) / 2);
    }
}

@media screen and (max-width: 767px) {
    .single-event .mission-faq {
        border-top: 1px solid #004c51;
    }

    .event-content,
    .event-page-list {
        margin: 48px 0;
    }

    .event-page-list__item,
    .events-archive__item {
        width: 100%;
    }

    .event-content__container {
        flex-direction: column;
        gap: 24px;
    }

    .event-content__title {
        max-width: 100%;
        font-size: 20px;
        line-height: 1.4;
        color: #012527;
    }

    .event-content__text {
        max-width: 100%;
        font-size: 14px;
    }

    .event-page-list__label {
        font-size: 12px;
        line-height: 1;
    }

    .event-page-list__content {
        padding: 30px 24px;
    }

    .event-page-list__title {
        font-size: 24px;
        line-height: 1.08333;
        margin-bottom: 24px;
    }

    .event-page-list__excerpt {
        font-size: 16px;
        line-height: 2;
    }

    .event-page-list__link {
        font-size: 16px;
        line-height: 1;
    }

    .event-page-list__link svg {
        width: 15px;
        height: 12px;
    }

    .event-contact-us__body {
        padding: 48px 24px 32px;
        background: url("/wp-content/themes/islamichelp/assets/images/north-pattern-white-294-160.png") no-repeat top center / contain, linear-gradient(180deg, #ffeda9 0%, #f4ecd7 50%, #fff 100%);
    }

    .event-contact-us__title {
        font-size: 20px;
        line-height: 1.4;
        margin-bottom: 24px;
    }

    .event-contact-us__text {
        font-family: "Karla", sans-serif;
        font-weight: 500;
        font-size: 16px;
        line-height: 2;
        color: #012527;
    }

    .event-contact-us__cf7 p {
        width: 100%;
    }

    .event-contact-us__cf7 .wpcf7-text {
        max-width: 100%;
        width: 100%;
    }

    .event-contact-us__cf7 .wpcf7-submit {
        font-size: 16px;
        line-height: 1;
        width: 100%;
    }
}

/* Eventbrite Event Block */
.eventbrite-event-block {
    padding: 40px 0;
}
.eventbrite-event-block__container {
    max-width: 1200px;
    margin: 0 auto;
}
.eventbrite-event-block__body {
    display: flex;
    gap: 60px;
}
@media (max-width: 768px) {
    .eventbrite-event-block {
        padding: 0;
    }
    .eventbrite-event-block__body {
        flex-direction: column-reverse;
        gap: 48px;
    }
}
.eventbrite-event-block__info-box-container {
    max-width: 540px;
    width: 100%;
}
@media (max-width: 768px) {
    .eventbrite-event-block__info-box-container {
        max-width: 100%;
    }
}
.eventbrite-event-block__info-box {
    padding: 40px;
    border: 1px solid #a6c0c2;
    border-radius: 12px;
    background: #faf7f5;
}
.eventbrite-event-block__location {
    font-family: "Work Sans", sans-serif;
    font-weight: 900;
    font-size: 18px;
    line-height: 1.33333;
    color: #052fff;
}
.eventbrite-event-block__date {
    margin-bottom: 20px;
    font-family: "Work Sans", sans-serif;
    font-weight: 900;
    font-size: 18px;
    line-height: 1.33333;
    color: #052fff;
    margin-bottom: 24px;
}
.eventbrite-event-block__venue-name {
    font-weight: 600;
    margin-bottom: 5px;
}
.eventbrite-event-block__venue-address {
    font-family: "Work Sans", sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.77778;
    color: #012527;
    max-width: 310px;
    margin-bottom: 24px;
}
.eventbrite-event-block__door-time {
    font-family: "Work Sans", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    color: #052fff;
}
.eventbrite-event-block__location-price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.eventbrite-event-block__price-display {
    font-family: "Work Sans", sans-serif;
    font-weight: 800;
    font-size: 18px;
    line-height: 0.88889;
    color: #052fff;
}
.eventbrite-event-block__purchase-widget {
    margin-top: 32px;
}
.eventbrite-event-block__ticket-type {
    margin-bottom: 32px;
}
.eventbrite-event-block__ticket-type select {
    width: 100%;
    padding: 18px 40px 18px 16px;
    font-size: 14px;
    border: 1px solid #a6c0c2;
    border-radius: 8px;
    max-width: 326px;
    font-family: "Work Sans", sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 0.88889;
    color: #5f6d6e;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.832601 0.0125419C0.669896 0.0170378 0.511805 0.0694489 0.376892 0.163727C0.241978 0.258004 0.135841 0.390199 0.0709422 0.544753C0.00604324 0.699308 -0.0149238 0.869846 0.0105026 1.03631C0.035929 1.20277 0.106693 1.35828 0.214488 1.48455L5.34149 7.68925C5.42179 7.78669 5.52156 7.86493 5.63389 7.91858C5.74623 7.97224 5.86847 8 5.99218 8C6.11589 8 6.23813 7.97224 6.35046 7.91858C6.4628 7.86493 6.56256 7.78669 6.64287 7.68925L11.7749 1.48455C11.8525 1.39691 11.9124 1.29397 11.9508 1.18187C11.9892 1.06978 12.0054 0.950827 11.9984 0.832106C11.9915 0.713386 11.9615 0.597283 11.9103 0.490817C11.8591 0.384351 11.7877 0.289732 11.7004 0.212453C11.6131 0.135174 11.5116 0.0768428 11.4021 0.0410422C11.2925 0.00524167 11.1771 -0.00730816 11.0628 0.00406327C10.9485 0.0154347 10.8375 0.0505018 10.7365 0.107237C10.6356 0.163971 10.5467 0.241143 10.4752 0.334218L5.99134 5.75358L1.50918 0.334218C1.42711 0.231275 1.32362 0.148945 1.20646 0.0932418C1.0893 0.0375386 0.961498 0.00990348 0.832601 0.0125419Z' fill='%23012527'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
}
.eventbrite-event-block__quantity {
    display: inline-flex;
    margin-bottom: 32px;
    border: 1px solid #a6c0c2;
    border-radius: 8px;
    overflow: hidden;
}
.eventbrite-event-block__qty-input {
    border-left: 1px solid #a6c0c2;
    border-right: 1px solid #a6c0c2;
    background: #fff;
    width: 36px;
    height: 36px;
    font-family: "Work Sans", sans-serif;
    font-weight: 800;
    font-size: 16px;
    line-height: 1;
    text-align: center;
    color: #004c51;
    /* Hide number input spinners */
    -moz-appearance: textfield;
    appearance: textfield;
}

.eventbrite-event-block__qty-input::-webkit-inner-spin-button,
.eventbrite-event-block__qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.eventbrite-event-block__qty-btn {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.eventbrite-event-block__qty-btn:hover {
    background: #f5f5f5;
}
.eventbrite-event-block__add-to-cart {
    width: 100%;
    padding: 18px 0px;
    background: #052fff;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.3s;
    font-family: "Work Sans", sans-serif;
    font-weight: 800;
    font-size: 18px;
    line-height: 0.88889;
    text-align: center;
    color: #fff;
}
.eventbrite-event-block__add-to-cart:hover {
    background: #041dd4;
}
.eventbrite-event-block__sold-out {
    padding: 20px;
    text-align: center;
    color: #dc3232;
    font-weight: 600;
}
.eventbrite-event-block__ticket-info-title {
    margin: 40px 0;
    font-family: "Antonio", sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1;
    text-transform: uppercase;
    color: #052fff;
}
.eventbrite-event-block__ticket-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}
.eventbrite-event-block__ticket-item {
    font-family: "Karla", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 2.22222;
    color: #012527;
}
.eventbrite-event-block__ticket-item.sold-out {
    opacity: 0.6;
}
.eventbrite-event-block__ticket-sold-out {
    color: #dc3232;
    font-size: 12px;
    margin-left: 5px;
}
.eventbrite-event-block__ticket-note {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}
.eventbrite-event-block__share-btn {
    margin-top: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 23px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #012527;
    border-radius: 100px;
    font-family: "Work Sans", sans-serif;
    font-weight: 800;
    font-size: 18px;
    line-height: 0.88889;
    text-transform: capitalize;
    color: #012527;
}
.eventbrite-event-block__share-btn:hover {
    background: #052fff;
    color: #fff;
}
.eventbrite-event-block__share-btn:hover svg path {
    fill: #fff;
}

.eventbrite-event-block__share-wrapper {
    position: relative;
    display: inline-block;
    width: fit-content;
}

.eventbrite-event-block__share-notice {
    position: absolute;
    top: 0;
    right: -50%;
    z-index: 1;
    width: max-content;
    display: none;
    font-family: "Work Sans", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    color: #fff;
    background: #012527;
    padding: 12px 24px;
    border-radius: 100px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.eventbrite-add-to-cart-form a.added_to_cart.wc-forward {
    display: none;
}

@media (max-width: 768px) {
    .eventbrite-event-block__ticket-info {
        padding: 0 16px;
    }

    .eventbrite-event-block__ticket-info-title {
        margin: 0 0 48px;
        font-size: 20px;
    }

    .eventbrite-event-block__ticket-item {
        font-size: 16px;
        line-height: 2;
    }

    button.eventbrite-event-block__share-btn {
        font-size: 16px;
        line-height: 1;
        padding: 18px 19px;
        gap: 8px;
    }

    .eventbrite-event-block__date,
    .eventbrite-event-block__location {
        font-size: 16px;
        line-height: 1.5;
    }

    .eventbrite-event-block__price-display {
        font-size: 16px;
        line-height: 1;
    }

    .eventbrite-event-block__venue-name, .eventbrite-event-block__venue-address {
        font-size: 16px;
        line-height: 2;
    }

    .eventbrite-event-block__door-time {
        font-size: 14px;
        line-height: 1.14286;
    }

    .eventbrite-event-block__purchase-widget {
        margin-top: 40px;
    }

    .eventbrite-event-block__ticket-type select {
        font-size: 16px;
        line-height: 1;
    }

    .eventbrite-event-block__add-to-cart {
        font-size: 16px;
        line-height: 1;
    }
}