body.post-type-archive-tribe_events #primary,
body.single-tribe_events #primary {
    margin: 0;
    .content-container.site-container {
        max-width: unset;
        padding: 0;
    } 
}

/* Setting Icon Colors (global-palette1 changes when dark mode enabled) */
.event-data > div svg,
.event-sidebar-general-info > div svg  {
  fill: var(--global-palette1);
}

.events-header-block {
    background-image: url('../jpg/events-page-title-bgrd.jpg');
    background-size: cover;
    background-position: 50% 15%;
    background-attachment: scroll;
    background-repeat: no-repeat;
    position: relative;
    border: 0 solid rgba(0, 0, 0, 0);
    display: flex;
    .overlay-gradient {
        opacity: 1;
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
        top: 0;
        left: 0;
        position: absolute;
        height: 100%;
        width: 100%;
        z-index: 0;
        filter: opacity(100%);
    }
    h1 {
        margin: 53px auto;
        text-align: center;
        font-family: Raleway;
        font-weight: 700;
        font-size: 48px;
        line-height: 56px;
        letter-spacing: 0;
        color: white;
        z-index: 1;
        position: relative;
    }
}

.events-breadcrumbs-block {
    max-width: 1420px;
    margin: auto;
    padding: 20px 0;
}

.events-page-content {
    max-width: 1420px;
    margin: auto;
    padding: 70px 0 100px;
    display: flex;
    gap: 135px;
    .events-filter-block {
        flex-grow: 1;
        form {
            background: var(--20-mint, #B6CFD033);
            padding: 20px;
            font-family: sans-serif;
            font-size: 14px;
            h2 {
              font-family: Raleway;
              font-weight: 700;
              font-size: 22px;
              line-height: 28px;
              letter-spacing: 0;
              vertical-align: middle;
              margin-bottom: 30px;
              color: #007a87;
            }
            input.search-input {
                border-radius: 0;
                border: 1px solid #000000;
                background: #FFFFFF;
                padding: 0.4em 0.5em;
                font-family: Montserrat;
                font-weight: 500;
                font-size: 1rem;
                line-height: 1.5;
                letter-spacing: 0;
                vertical-align: middle;
                color: #000000;
                margin-bottom: 5px;
                width: 100%;
                height: 50px;
            }
            hr {
                margin: 24px 0;
                border: none;
                border-top: 1px solid #ccc;
            }
            .filter-group {
                .filter-header {
                    display: flex;
                    justify-content: space-between;
                    cursor: pointer;
                    font-size: 1.125rem;
                    font-style: normal;
                    font-weight: 700;
                    line-height: 22px;
                    letter-spacing: 0;
                    vertical-align: middle;
                    color: #111629;
                    font-family: 'Raleway';

                    .toggle-icon {
                        position: relative;
                        width: 16px;
                        height: 16px;
                        display: inline-block;
                    }

                    .toggle-icon::before,
                    .toggle-icon::after {
                        content: '';
                        position: absolute;
                        background-color: #0f1120;
                        transition: all 0.3s ease;
                    }

                    .toggle-icon::before {
                        top: 7px;
                        left: 0;
                        width: 100%;
                        height: 2px;
                    }

                    .toggle-icon::after {
                        left: 7px;
                        top: 0;
                        width: 2px;
                        height: 100%;
                    }
                }
                &.open {
                    .toggle-icon::after {
                        height: 0;
                    }
                }
                &.sort-by {
                    margin-top: 55px;
                    .filter-header {
                        margin-bottom: 25px;
                    }
                    select {
                        font-family: Montserrat;
                        letter-spacing: 0;
                        vertical-align: middle;
                        width: 100%;
                        height: 50px;
                        border-radius: 22px;
                        font-style: normal;
                        font-weight: 500;
                        font-size: 1rem;
                        line-height: 1.5;
                        color: #111629;
                        border: 1px solid #000000;
                        background-size: 16px 100%;
                        padding: 0.2em 35px 0.2em 0.5em;
                        outline: 0;
                        box-shadow: 0px 0px 0px -7px rgba(0, 0, 0, 0);
                    }
                }
            }
            .filter-actions {
                display: flex;
                gap: 30px;
                margin-top: 30px;
                .submit-btn {
                    padding: 20px 40px;
                    border-radius: 0;
                    background: #0f1120;
                    color: white;
                    font-size: 14px;
                    text-transform: none;
                    border-color: unset;
                    border: 0;
                    &:hover {
                        text-decoration: underline;
                    }
                }
                .reset-btn {
                    padding: 0;
                    text-transform: none;
                    background-color: unset;
                    border-color: unset;
                    border: 0;
                    color: #111629;
                    font-style: normal;
                    font-weight: 500;
                    font-size: 1rem;
                    line-height: 1.5;
                    text-decoration: underline;
                    font-family: 'Montserrat';
                    &:hover {
                        background: unset;
                        color: #046a78;
                    }
                }
            }
        }
    }
    .events-result-block {
        max-width: 950px;
        width: 100%;
        .grid-header-results {
            padding-bottom: 40px;
        }
        .events-grid-post {
            gap: 64px;
            .event-card {
                display: flex;
                gap: 20px;
                .event-thumbnail {
                    width: 240px;
                    height: 240px;
                    flex-shrink: 0;
                    .default-img {
                        background-image: url('../jpg/events-page-title-bgrd.jpg');
                        background-position: 45% 20%;
                        width: 100%;
                        height: 100%;
                        display: block;
                        background-attachment: scroll;
                        background-repeat: no-repeat;
                        position: relative;
                    }
                }
                .event-data {
                    .event-categories {
                        display: flex;
                        gap: 40px;
                        padding-bottom: 10px;
                        .event-category {
                            display: flex;
                            gap: 8px;
                            align-items: stretch;
                            background-color: var(--global-palette1);
                            color: var(--global-palette9);
                            padding: 6px 10px 6px 10px;
                            border-radius: 30px;
                            font-size: 14px;
                            font-weight: bold;
                            text-transform: uppercase;
                            font-family: 'Montserrat';
                            line-height: 18px;
                            .category-icon {
                                width: 16px;
                                height: 16px;
                                margin-top: 2px;
                            }
                        }
                    }
                    .event-title {
                        margin: 0;
                        padding-bottom: 24px;
                        font-size: 24px;
                        font-weight: bold;
                        color:  var(--global-palette1);
                        font-family: 'Raleway';
                    }
                    .event-dates {
                        display: flex;
                        gap: 8px;
                        align-items: center;
                        font-family: 'Montserrat';
                        font-size: 14px;
                        font-weight: 500;
                        padding-bottom: 16px;
                        .calendar-icon {
                            display: block;
                            width: 16px;
                            min-width: 16px;
                            height: 16px;
                        }
                    }
                    .event-venue {
                        display: flex;
                        gap: 8px;
                        align-items: center;
                        font-family: 'Montserrat';
                        font-size: 14px;
                        font-weight: 500;
                        padding-bottom: 24px;
                        .geo-icon {
                            display: block;
                            width: 16px;
                            min-width: 16px;
                            height: 16px;
                        }
                        strong {
                            display: contents;
                        }
                    }
                    .event-excerpt {
                        font-size: 16px;
                        font-family: 'Montserrat';
                        font-weight: 500;
                        line-height: 22px;
                        color: #000000;
                        padding-bottom: 24px;
                    }
                    .event-link {
                        a {
                            font-family: 'Montserrat';
                            font-size: 16px;
                            font-weight: 600;
                            color: #0E1419;
                        }
                    }
                }
            }
        }
    }
}

.single-event-header-block {
    background-image: url('../jpg/events-page-title-bgrd.jpg');
    background-size: cover;
    background-position: 50% 15%;
    background-attachment: scroll;
    background-repeat: no-repeat;
    position: relative;
    border: 0 solid rgba(0, 0, 0, 0);
    display: flex;
    .overlay-gradient {
        opacity: 1;
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
        top: 0;
        left: 0;
        position: absolute;
        height: 100%;
        width: 100%;
        z-index: 0;
        filter: opacity(100%);
    }
    .event-hero-section {
        max-width: 1050px;
        margin: 72px auto;
        z-index: 1;
        .event-categories-and-tags {
            display: flex;
            gap: 40px;
            justify-content: center;
            padding-bottom: 40px;
            .event-category,
            .event-tags {
                background-color: #fff;
                padding: 6px 10px;
                border-radius: 30px;
                display: flex;
                gap: 8px;
                color: #046A78;
                font-family: 'Montserrat';
                font-size: 14px;
                font-weight: bold;
                line-height: 18px;
                text-transform: uppercase;
                .category-icon,
                .tag-icon {
                    width: 16px;
                    height: 16px;
                    filter: brightness(0) saturate(100%) invert(27%) sepia(58%) saturate(1709%) hue-rotate(156deg) brightness(91%) contrast(97%);
                }
            }
        }
        .event-title {
            margin: 0;
            margin: 0;
            font-family: 'Raleway';
            font-weight: bold;
            font-size: 40px;
            line-height: 48px;
            color: #fff;
            padding-bottom: 40px;
        }
        .event-dates,
        .event-venue {
            display: flex;
            gap: 8px;
            align-items: center;
            font-family: 'Montserrat';
            font-size: 18px;
            font-weight: 500;
            padding-bottom: 40px;
            justify-content: center;
            color: #fff;
            line-height: 28px;
            .calendar-icon {
                display: block;
                width: 16px;
                height: 16px;
                filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(309deg) brightness(107%) contrast(107%);
            }
            .geo-icon {
                display: block;
                width: 16px;
                height: 16px;
                filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(309deg) brightness(107%) contrast(107%);
            }
        }
        .event-register {
            display: flex;
            justify-content: center;
            .event-register-button {
                display: block;
                width: fit-content;
                background-color: #A65523;
                padding: 24px 36px;
                color: #FFF;
                font-family: 'Montserrat';
                font-size: 14px;
                text-decoration: unset;
                text-transform: uppercase;
                line-height: 18px;
                font-weight: 500;
            }
        }
    }
}

.event-main-content {
    max-width: 1440px;
    margin: 64px auto;
    display: flex;
    gap: 75px;
    .event-right-content {
        max-width: 950px;
        .event-header {
            font-family: 'Raleway';
            font-size: 32px;
            font-weight: bold;
            line-height: 38px;
            color: #046A78;
            margin-bottom: 45px;
        }
        .event-text-content {
            font-family: 'Montserrat';
            font-size: 18px;
            line-height: 28px;
        }
        .event-speakers-block {
            padding: 64px 0;
            .speakers-block-header {
                margin: 0;
                font-family: 'Raleway';
                font-size: 24px;
                line-height: 36px;
                font-weight: bold;
                padding-bottom: 32px;
            }
            .event-speakers {
                display: flex;
                gap: 64px;
                flex-direction: column;
                .speaker-card {
                    display: flex;
                    gap: 56px;
                    > img {
                        max-width: 168px;
                        width: 100%;
                        max-height: 168px;
                        border-radius: 400px;
                        flex-shrink: 0;
                    }
                    .speaker-info {
                        h4 {
                            font-family: 'Raleway';
                            font-size: 24px;
                            color: #046A78;
                            line-height: 36px;
                            padding-bottom: 16px;
                            font-weight: bold;
                        }
                        .speaker-position {
                            font-family: 'Raleway';
                            font-size: 18px;
                            color: #000000;
                            line-height: 24px;
                            padding-bottom: 32px;
                            font-weight: bold;
                        }
                        .speaker-description {
                            font-family: 'Montserrat';
                            font-size: 18px;
                            font-weight: 500;
                            line-height: 28px;
                            color: #000;
                        }
                        .profile-link {
                            display: block;
                            padding-top: 16px;
                            font-family: 'Montserrat';
                            font-size: 16px;
                            line-height: 28px;
                            font-weight: 550;
                            color: #000;
                        }
                    }
                }
            }
        }
        .event-register {
            margin: 80px 0 0 220px;
            a {
                padding: 24px 36px;
                border: 2px solid #000;
                color: #000;
                font-family: 'Montserrat';
                line-height: 18px;
                font-size: 14px;
                font-weight: 500;
                text-decoration: none;
            }
        }
    }
    .event-left-content {
        width: 100%;
        .event-city-info {
            background-color: #046A78;
            color: #fff;
            border-radius: 8px 8px 0 0;
            .geo-header {
                padding: 14px 20px;
                margin: 0;
                font-family: 'Raleway';
                font-size: 18px;
                line-height: 24px;
                font-weight: bold;
            }
            .virtual-header {
                padding: 14px 20px;
                margin: 0;
                font-family: 'Raleway';
                font-size: 18px;
                line-height: 24px;
                font-weight: bold;
                text-align: center;
            }
        }
        .event-sidebar-map {
            background-color: #F9F9F9;
            padding: 24px 12px;
            .get-directions {
                text-align: center;
                margin-top: 24px;
                font-family: 'Montserrat';
                font-size: 16px;
                line-height: 18px;
                text-decoration: unset;
                a {
                    text-decoration: none;
                }
            }
            .virtual-block {
                .virtual-event-icon {
                    display: block;
                    background-image: url('../svg/virtual-event-icon.svg');
                    width: 205px;
                    height: 205px;
                    margin: 0 auto;
                }
            }
        }
        .event-sidebar-general-info {
            padding: 40px 0 0 26px;
            .event-dates {
                display: flex;
                gap: 8px;
                align-items: center;
                font-family: 'Montserrat';
                font-size: 16px;
                font-weight: 500;
                padding-bottom: 26px;
                .calendar-icon {
                    display: block;
                    width: 16px;
                    height: 16px;
                }
            }
            .event-venue {
                display: flex;
                gap: 8px;
                align-items: baseline;
                font-family: 'Montserrat';
                font-size: 16px;
                font-weight: 500;
                padding-bottom: 24px;
                .geo-icon {
                    display: block;
                    width: 16px;
                    height: 16px;
                }
            }
            .event-contact-phone {
                display: flex;
                gap: 8px;
                align-items: center;
                font-family: 'Montserrat';
                font-size: 16px;
                font-weight: 500;
                padding-bottom: 24px;
                line-height: 16px;
                .phone-icon {
                    display: block;
                    width: 16px;
                    height: 16px;
                }
                a {
                    text-decoration: unset;
                }
            }
            .event-contact-email {
                display: flex;
                gap: 8px;
                align-items: center;
                font-family: 'Montserrat';
                font-size: 16px;
                font-weight: 500;
                padding-bottom: 24px;
                line-height: 16px;
                .email-icon {
                    display: block;
                    width: 16px;
                    height: 16px;
                }
                a {
                    text-decoration: unset;
                }
            }
            .event-contact-website {
                display: flex;
                gap: 8px;
                align-items: center;
                font-family: 'Montserrat';
                font-size: 16px;
                font-weight: 500;
                padding-bottom: 24px;
                line-height: 16px;
                .website-icon {
                    display: block;
                    width: 16px;
                    height: 16px;
                    background-size: contain;
                }
                a {
                    text-decoration: unset;
                }
            }
            .event-price {
                display: flex;
                gap: 8px;
                align-items: center;
                font-family: 'Montserrat';
                font-size: 16px;
                font-weight: 500;
                padding-bottom: 24px;
                line-height: 16px;
                .price-icon {
                    display: block;
                    width: 16px;
                    height: 16px;
                }
            }
        }
    }
}

.events-related-block {
    background-color: #F2F2F2;
    padding: 120px 242px;
    .related-header {
        margin: 0 auto;
        width: fit-content;
        font-family: 'Raleway';
        font-size: 48px;
        font-weight: bold;
        line-height: 56px;
        padding-bottom: 96px;
    }
    .related-events {
        max-width: 1435px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 1fr;
        grid-column-gap: 20px;
        grid-row-gap: 0px;
        .related-event-card {
            .event-thumbnail {
                padding-bottom: 20px;
                img {
                    width: 100%;
                    max-height: 290px;
                    object-fit: cover;
                    object-position: 0% 0%;
                }
            }
            .event-categories {
                display: flex;
                gap: 40px;
                padding-bottom: 10px;
                .event-category {
                    display: flex;
                    gap: 8px;
                    align-items: stretch;
                    background-color: #046A78;
                    color: #fff;
                    padding: 6px 10px 6px 10px;
                    border-radius: 30px;
                    font-size: 14px;
                    font-weight: bold;
                    text-transform: uppercase;
                    font-family: 'Montserrat';
                    line-height: 18px;
                    .category-icon {
                        width: 16px;
                        height: 16px;
                        margin-top: 2px;
                    }
                }
            }
            .event-title {
                margin: 0;
                padding-bottom: 16px;
                font-size: 24px;
                font-weight: bold;
                color: #046A78;
                font-family: 'Raleway';
            }
            .event-dates {
                display: flex;
                gap: 8px;
                align-items: center;
                font-family: 'Montserrat';
                font-size: 14px;
                font-weight: 500;
                padding-bottom: 16px;
                .calendar-icon {
                    display: block;
                    width: 16px;
                    height: 16px;
                }
            }
            .event-venue {
                display: flex;
                gap: 8px;
                align-items: center;
                font-family: 'Montserrat';
                font-size: 14px;
                font-weight: 500;
                padding-bottom: 24px;
                .geo-icon {
                    display: block;
                    width: 16px;
                    height: 16px;
                }
                strong {
                    display: contents;
                }
            }
        }
    }
}

.mobile-filter-toggle {
    display: none;
    font-size: 22px;
    font-weight: 600;
    padding: 23px 20px;
    background: rgba(182, 207, 208, 0.2);
    border: none;
    border-radius: 8px;
    margin-bottom: 0px;
    cursor: pointer;
    color: #046A78;
    text-transform: unset;
    .icon-filter {
        background-image: url('../svg/filter-icon.svg');
        width: 40px;
        height: 22px;
    }
}
  
.filter-close-btn {
    display: none;
    font-size: 20px;
    font-weight: bold;
    background: none;
    border: none;
    margin-bottom: 20px;
    cursor: pointer; 
    padding: 0;
    margin: 0;
    color: #046A78;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    margin-bottom: 8px;
    user-select: none;
    font-size: 16px;
    margin-top: 20px;
    font-style: normal;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
    font-family: var(--global-body-font-family);
    color: var(--global-palette4);
}
  
.custom-checkbox input[type="checkbox"] {
    margin-right: 10px;
}


@media screen and (max-width:1420px) {
    .events-breadcrumbs-block {
        padding: 20px 10px;
    }
    .events-page-content {
        gap: 50px;
        padding: 70px 10px 100px;
    }
}

@media screen and (max-width:1420px) {
    .events-page-content {
        flex-direction: column;
    }
}
  
@media (max-width: 767px) {
    .events-page-content {
        padding: 30px 10px 50px;
        .mobile-filter-toggle {
            display: flex;
            justify-content: space-between;
            &.hide {
                display: none;
            }
        }

        .events-filter-block {
            height: 100%;
            transform: translateX(100%);
            transition: transform 0.3s ease;
            padding: 20px;
            display: none;
            &.active {
                transform: translateX(0);
                display: block;
                padding: 0;
            }
            form {
                h2 {
                    display: flex;
                    align-items: baseline;
                    justify-content: space-between;
                }
            }
        }
        & .events-result-block {
            .events-grid-post {
                gap: 40px;
                .event-card {
                    flex-direction: column;
                    .event-thumbnail {
                        width: unset;
                        height: 260px;
                        img {
                            height: 260px;
                            width: 100%;
                            object-fit: cover;
                            object-position: 0% 10%;
                        }
                    }
                } 
            }
        }
    }
    .filter-close-btn {
        display: block;
    }

    .single-event-header-block {
        .event-hero-section {
            margin: 20px 32px;
                .event-title {
                    font-size: 22px;
                    line-height: 28px;
                    text-align: center;
                }
        }
    }
    .event-main-content {
        margin: 24px 20px;
        flex-direction: column;
    }
    .events-related-block {
        padding: 40px 10px;
        .related-header {
            font-size: 22px;
            line-height: 28px;
            padding-bottom: 40px;
        }
        .related-events {
            grid-template-columns: 1fr;
            grid-row-gap: 40px;
        }
    }
}
  
@media screen and (max-width:450px) {
    .single-event-header-block {
        & .event-hero-section {
            .event-categories-and-tags {
                gap: 16px;
                flex-wrap: wrap;
            
            }
            .event-dates, 
            .event-venue {
                flex-direction: column;
                align-items: center;
                text-align: center;
                font-size: 14px;
                line-height: 18px;
                margin: 0 30px;
                .calendar-icon,
                .geo-icon {
                    width: 24px;
                    height: 24px;
                    background-repeat: no-repeat;
                    background-size: contain;
                }
            }
        }
    }
    .event-main-content {
        .event-right-content {
            .event-header {
                font-size: 22px;
                line-height: 28px;
            }
            .event-text-content {
                font-size: 16px;
                line-height: 22px;
            }
            .event-speakers-block {
                .event-speakers {
                    .speaker-card {
                        flex-direction: column;
                        gap: 40px;
                        .speaker-info {
                            h4 {
                                font-size: 18px;
                                line-height: 24px;
                            }
                            .speaker-position {
                                font-size: 16px;
                                line-height: 20px;
                                margin: 0;
                            }
                            .speaker-description {
                                font-size: 16px;
                                line-height: 22px;
                            }
                        }
                    }
                }
            }
            .event-register {
                margin: 0;
                a {
                    width: 100%;
                    display: block;
                    text-align: center;
                }
            }
        }
        .event-left-content {
            .event-sidebar-general-info {
                padding: 40px 0;
            }
        }
    }
}

@media screen and (max-width:375px) {
    .events-header-block {
        h1 {
            margin: 20px auto;
            font-size: 32px;
            line-height: 38px;
        }
    }
    .events-breadcrumbs-block {
        margin: auto 10px;
    }
}
