/* === Timeline Container === */
.calendar-events-timeline {
    position: relative;
    max-width: 900px;
    margin: 20px auto;
    padding: 0px!important;
}

/* === Vertical Timeline Line === */
.calendar-events-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ccc;
    transform: translateX(-50%);
}

/* === Timeline Section Box === */
.calendar-events-section {
    display: flex;
    align-items: center;
    background: #fafafa;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0;
    width: 100%;
    position: relative;
}

.calendar-events-section:hover {
    box-shadow: 0;
}

.calendar-events-section.left {
    justify-content: flex-start;
    border: 1px solid #DBDBDB;
}

.calendar-events-section.right {
    justify-content: flex-end;
    border: 1px solid #DBDBDB;
}

/* === Left and Right Containers === */
.calendar-events-section-content {
    display: flex;
    width: 100%;
}

.calendar-events-section-left {
    flex: 0 0 20%;
    text-align: right;
    padding-right: 20px;
    display: flex;
    border-right: 1px solid #DBDBDB;
    align-items: center;
    justify-content: center;
}

.calendar-events-section-right {
    flex: 0 0 80%;
    text-align: left;
    padding-left: 20px;
}

/* === Image Styling === */
.calendar-events-section-image {
    margin: 0;
    width: 100%;
}

.calendar-events-section-image .calendar-events-image {
    width: 190px;
    height: 110px;
    object-fit: contain;
    border-radius: 5px;
}

/* === Content Styling === */
.calendar-events-section-title {
    margin: 0 0 10px!important;
    font-size: 26px!important;
    font-weight: 700!important;
    font-family: Calibri, sans-serif!important;
    color: #000000;
}

.calendar-events-section-title a {
    margin: 0 0 10px!important;
    font-size: 26px!important;
    font-weight: 700!important;
    text-decoration: none!important;
    font-family: Calibri, sans-serif!important;
    color: #000000;
}

.calendar-events-section-title a:hover {
    margin: 0 0 10px!important;
    font-size: 26px!important;
    font-weight: 700!important;
    text-decoration: none!important;
    font-family: Calibri, sans-serif!important;
    color: #BE0F34;
}

.calendar-events-section-location,
.calendar-events-section-date,
.calendar-events-section-boro-title {
    margin: 5px 0;
    margin-bottom: 1.0em!important;
    font-size: 18px;
    font-family: Calibri, sans-serif!important;
    color: #444444;
    display: flex;
    align-items: center;
}

.calendar-events-section-location::before {
    content: url('https://www.mclaneglobal.com/wp-content/uploads/2025/08/-1.svg');
    width: 30px;
    height: 30px;
    margin-right: 5px;
    display: inline-block;
    background-color: #E1E1E1;
    border-radius: 50%;
    padding: 5px;
    box-sizing: content-box;
}

.calendar-events-section-date::before {
    content: url('https://www.mclaneglobal.com/wp-content/uploads/2025/08/-1.svg');
    width: 30px;
    height: 30px;
    margin-right: 5px;
    display: inline-block;
    background-color: #E1E1E1;
    border-radius: 50%;
    padding: 4px 6px 6px 7px;
    box-sizing: content-box;
}

.calendar-events-section-boro-title::before {
    content: '';
    background-image: url('https://www.mclaneglobal.com/wp-content/uploads/2025/08/Untitled-2-01-1.svg');
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
    width: 30px;
    height: 30px;
    margin-right: 5px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #E1E1E1;
    border-radius: 50%;
    padding: 0;
    box-sizing: border-box;
}


.calendar-events-timeline::before {
    display: none;
}
.hidden-event {
    display: none;
}

.visible-event {
    display: flex;
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .calendar-events-timeline::before {
        left: 40px;
        transform: none;
    }

    .calendar-events-section {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    .calendar-events-section-content {
        flex-direction: column;
    }

    .calendar-events-section-left,
    .calendar-events-section-right {
        flex: 0 0 100%;
        text-align: center;
        padding: 0;
    }

    .calendar-events-section-image {
        margin-bottom: 10px;
    }

    .calendar-events-section-title {
        font-size: 16px;
    }

    .calendar-events-section-location,
    .calendar-events-section-date,
    .calendar-events-section-boro-title {
        display: flex;
        align-items: center;
        text-align: left;
        margin: 5px 0;
        margin-bottom: 1.0em!important;
        font-size: 14px;
        font-family: Calibri, sans-serif!important;
        color: #444444;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .calendar-events-section-location::before,
    .calendar-events-section-date::before,
    .calendar-events-section-boro-title::before {
        content: '';
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #E1E1E1;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        margin-right: 10px;
        flex-shrink: 0;
        background-size: 20px 20px;
        background-repeat: no-repeat;
        background-position: center;
       
    }

    .calendar-events-section-location::before {
        background-image: url('https://www.mclaneglobal.com/wp-content/uploads/2025/08/-1.svg');
    }

    .calendar-events-section-date::before {
        background-image: url('https://www.mclaneglobal.com/wp-content/uploads/2025/08/-1.svg');
    }

    .calendar-events-section-boro-title::before {
        background-image: url('https://www.mclaneglobal.com/wp-content/uploads/2025/08/Untitled-2-01-1.svg');
    }
}

/* === View All Button Styling === */
.calendar-events-view-all-wrapper {
    text-align: left;
    margin-top: 20px;
}

.calendar-events-button {
    background-color: #be0f3500!important;
    color: #BE0F34!important;
    padding: 10px 0px!important;
    border: none!important;
    border-radius: 5px;
    font-size: 20px!important;
    cursor: pointer;
    box-shadow: none!important;
    font-family: Calibri, sans-serif!important;
    transition: background-color 0.3s ease;
}

.calendar-events-button .chevron-img {
    width: 14px;
    height: 14px;
    margin-left: 8px;
    fill: #BE0F34!important;
    vertical-align: middle;
}