/* main content */
.nearest-event-section {
    color: var(--white1);
    position: relative;
    padding: 100px 50px;
    /* padding-top: 100px;
    padding-bottom: 100px; */
    /* overflow: hidden; */
    transition: all 0.4s ease;
}
.nearest-event-section::before {
    content: "";
    position: absolute;
    background: var(--blue1);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 100vw;
    z-index: -1;
}
.nearest-top-upper {
    padding-bottom: 18px;
    transition: all 0.4s ease;
}
.nearest-top-lower {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-bottom: 40px;
}
.nearest-middle {
    position: relative;
    
    .background-img {
        width: 100%;
        height: 500px;
        aspect-ratio: 16 / 9;
        /* transition: all 0.4s ease; */

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }
    }
}
.nearest-middle-up {
    position: absolute;
    top: 0;
    right: 0;
    left: 50%;
    border: 1px solid transparent;
    background: var(--white1);
    color: var(--black1);
    padding: 32px 50px;
    border-radius: 0 0 0 8px;
    transition: all 0.4s ease;

    .h3 {
        padding-bottom: 16px;
    }
    .body8 {
        /* padding-bottom: 32px; */
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 7;
        line-clamp: 7;
    }
}
.nearest-middle-up-bottom {
    display: flex;
    gap: 30px;
    padding-top: 32px;
    justify-content: space-between;
    transition: all 0.4s ease;

    .caption2 {
        color: var(--greyText1);
        padding-bottom: 8px;
    }
}
.nearest-middle-down {
    position: absolute;
    left: 0;
    bottom: 0;

    .btn-primary-yellow {
        .btn-component {
            border-radius:  0 8px 0 0;
            height: 70px;
            padding: 0 40px;
        }
    }
}
/* responsive */ 
@media (max-width: 1000px) {
    .nearest-middle-up {
        left: 25%;
    }
}
@media (max-width: 767px) {
    /* main content */
    .nearest-event-section {
        padding: 50px 20px;
        overflow: hidden;
    }
    .nearest-event-section::before {
        /* height: 40% */
        display: none;
    }
    .nearest-top {
        position: relative;
        /* background: var(--blue1); */
    }
    .nearest-top::before {
        content: "";
        position: absolute;
        background: var(--blue1);
        top: -50px;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        z-index: -1;
    }
    .nearest-top-upper {
        padding-bottom: 16px;
    }
    .nearest-top-lower {
        flex-direction: column;
        align-items: start;
    }
    .nearest-middle {
        position: relative;
        
        .background-img {
            width: 100vw;
            height: 300px;
            margin-left: -20px;
            margin-right: -20px;

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

    .nearest-middle-down {
        position: relative;

        .btn-primary-yellow {
            .btn-component {
                width: 100%;
                justify-content: center;
                border-radius:  4px;
                height: 45px;
                padding: 0 24px;
            }
        }
    }
    .nearest-middle-up {
        position: relative;
        left: 0;
        padding: 32px 20px 24px;
        margin-left: -20px;
        margin-right: -20px;
        border-radius: 0;
    }
    .nearest-middle-up-bottom {
        padding-top: 24px;
        flex-direction: column;
        gap: 16px;
    }
}

