.mary-seacole-events-archive {
    width: 100%;
    box-sizing: border-box;

    .heading-and-filters {
        margin-bottom: 5rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);

        .filters {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        h1 {
            font-size: 2rem;
            margin-bottom: 1rem;
            font-weight: 900;
            text-align: center;
        }

        .category-icons {
            margin: 1rem 0 1rem;
            display: flex;
            gap: 1.5rem;

            .icons {
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                text-decoration: none;

                .icon-wrapper {
                    width: 60px;
                    height: 60px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    color: white;
                    font-size: 1.5rem;
                    font-weight: bold;
                    transition: all 0.2s ease-in-out;

                    .cat_image {
                        width: 90%;
                    }

                    svg.cat_image {
                        color: black;
                        width: 75%;
                    }

                }

                .category-text {
                    font-weight: 400;
                    display: block;
                    margin-top: 0.5rem;
                    color: #000000;
                    font-size: 0.85rem;
                    text-align: center;
                }
            }

            .icons.active {
                .icon-wrapper {
                    background: #000000;
                    border-radius: 100%;

                    .cat_image {
                        filter: invert(1);
                    }

                }

                .category-text {
                    font-weight: bold;
                }
            }

            .icons.reset {
                display: none;
            }

        }
    }

    .grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 1rem;
    }

    .event-items {
        display: flex;
        flex-direction: column;

        .event-item {
            display: flex;
            font-size: 1.2rem;
            font-weight: bold;
            padding: 1rem 0.5rem;
            text-decoration: none;
            transition: all 0.2s ease-in-out;
            color: black;
            border-radius: 10px 10px 0 0;

            .event-item-image {
                flex-basis: 30%;
                margin-right: 1.5rem;

                img {
                    height: 100%;
                    object-fit: cover;
                }
            }

            .event-item-content {
                flex-basis: 70%;
            }

            &:not(:last-child) {
                border-bottom: 1px solid rgba(0, 0, 0, 0.1);
                margin-bottom: 1rem;
            }

            .event-title {
                color: black;
                font-weight: bold;
                margin: 0 0 15px;
                font-size: 1.5rem;
                position: relative;


                &:after {
                    position: absolute;
                    content: "";
                    width: 60px;
                    height: 2px;
                    background: black;
                    left: 0;
                    bottom: -5px;
                }
            }

            .organiser-name {
                font-size: 1rem;
            }

            .event-days {
                margin-top: 0.5rem;
                display: flex;
                padding: 0.1rem 0;

                span {
                    width: 3rem;
                    border-top: 1px solid #ccc;
                    border-bottom: 1px solid #ccc;
                    background: #eaeaea;
                    font-size: 1rem;
                    font-weight: normal;
                    text-align: center;

                    &.highlight {
                        background: lightblue;
                    }

                    &:first-child {
                        border-left: 1px solid #ccc;
                        border-bottom-left-radius: 999px;
                        border-top-left-radius: 999px;
                        padding-left: 0.5rem;
                    }

                    &:last-child {
                        border-right: 1px solid #ccc;
                        border-bottom-right-radius: 999px;
                        border-top-right-radius: 999px;
                        padding-right: 0.5rem;
                    }
                }
            }

            &:hover {
                background-color: #f5f5f5;
                transform: scale(1.01);
            }
        }
    }

    .osm-map {
        position: relative;
        height: 100%;
        min-height: 550px;

        .leaflet-marker-icon {
            max-width: 45px !important;
        }

        #map_seacole_events {
            position: absolute;
            left: 0;
            bottom: 0;
            height: 100% !important;
        }
    }

    @media screen and (width < 768px) {
        .grid {
            display: flex;
            flex-direction: column;
        }

        .osm-map {
            #map_seacole_events {
                position: relative;
                height: 500px !important;
            }
        }

        .event-items {
            .event-item {
                flex-direction: column;
                padding: 0;

                .event-item-image {
                    margin-right: 0;

                }
            }

        }
        .cat_image, .event-item-image img {
            max-width: 100%;
            height: auto;
            display: block;
            width: 100%;
            margin-bottom: 1rem;
        }

        .event-title, .category-text {
            overflow-wrap: break-word;
            word-wrap: break-word;
        }

        .filters, .category-icons, .event-items {
            flex-wrap: wrap;
        }
    }
}

.seacole-event-single-page {
    width: 100%;

    .header-area {
        position: relative;

        img {
            position: relative;
            width: 100%;
            max-height: 550px;
            min-width: 100%;
            z-index: 0;
            object-fit: cover;
        }
    }

    .content-area {
        background: white;
        padding: 2rem;
        z-index: 5;
        position: relative;
        max-width: 95%;
        margin: -100px auto 100px;
        border-radius: 15px 15px 0 0;

        .grid {
            display: flex;
        }

        .main-content {
            flex-basis: 70%;

            .title-area {
                border-bottom: 1px solid rgba(0, 0, 0, 0.1);
                margin-bottom: 2rem;

                h1 {
                    margin: 0;
                }

                h2 {
                    font-size: 1.3rem;
                }
            }
        }

        .sidebar {
            flex: 1 1 auto;
            margin-left: 2rem;
            padding: 1rem;
            background: #f5f5f5;
            border-radius: 5px;
            border: 1px solid #ccc;

            .contact-details {
                margin-bottom: 2rem;

                .contact-list {
                    list-style: none;
                    padding: 0;
                    margin: 0;

                    li {
                        margin-bottom: 1rem;
                        padding-bottom: 0.5rem;
                        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
                        display: flex;
                        gap: 1rem;
                    }
                }
            }

            .opening-times {
                margin-bottom: 2rem;

                .opening-times-list {
                    list-style: none;
                    padding: 0;
                    margin: 0;

                    li {
                        display: flex;
                        justify-content: space-between;
                        padding: 0.5rem 0;
                        font-size: 0.9rem;
                        font-weight: bold;

                        &:not(:last-child) {
                            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
                        }
                    }
                }
            }

            .event-times {
                h3 {
                    font-size: 1.2rem;
                    font-weight: 500;
                    margin-bottom: 0;
                }
            }
        }
    }

    .event-days {
        margin-top: 0.5rem;
        display: flex;
        padding: 0.1rem 0;

        span {
            width: 3rem;
            border-top: 1px solid #ccc;
            border-bottom: 1px solid #ccc;
            background: #eaeaea;
            font-size: 1rem;
            font-weight: normal;
            text-align: center;

            &.highlight {
                background: lightblue;
            }

            &:first-child {
                border-left: 1px solid #ccc;
                border-bottom-left-radius: 999px;
                border-top-left-radius: 999px;
                padding-left: 0.5rem;
            }

            &:last-child {
                border-right: 1px solid #ccc;
                border-bottom-right-radius: 999px;
                border-top-right-radius: 999px;
                padding-right: 0.5rem;
            }
        }
    }

    .footer-area {
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        margin: 2rem 0;
        padding: 2rem 0;

        .button {
            display: inline-flex;
            gap: 0.5rem;
            align-items: center;
            font-weight: 500;

            .icon {
                display: flex;
            }
        }
    }

    @media screen and (width < 768px) {
        .content-area {
            max-width: 100%;
            margin: 0;
            border-radius: 0;
            padding: 1rem;
        }

        .grid {
            grid-template-columns: 1fr;
            flex-direction: column;
        }

        .sidebar {
            margin-left: 0 !important;
        }

    }
}

.mary-seacole-no-events {
    text-align: center;
    width: 100%;
}