.banner-2 {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    height: 800px;
}

.banner-2 img {
    width: calc(50% - 2.5px);
    object-fit: cover;
    height: 100%;
}

.divider {
    width: 10px;
    background-color: #ccc;
    height: 100%;
}

.overlay-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.overlay-2 .container {
    display: flex;
    width: 100%;
}

.overlay-2 .container > div {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.overlay-2 h1 {
    margin-bottom: 10px;
}

.overlay-2 p {
    font-size: 2.2em;
}

.overlay-2 .container > div:first-child {
    text-align: left;
}

.overlay-2 .container > div:last-child {
    text-align: right;
}

.overlay-2 h1, .overlay-2 p {
    color: white;
}

.overlay-2 .visible-xs-block {
    position: absolute;
    top: 55%; 
    left: 17%;
    transform: translate(-50%, -50%);
    width: 100%; 
    text-align: center;
    z-index: 10; 
    display: none;
}

.overlay-2 .visible-xs-block h1 {
    position: absolute;
    top: 65%;
    left: 35%; 
    width: 100%; 
    text-align: center;
    z-index: 10;
}

.overlay-2 .visible-xs-block p {
    position: absolute;
    top: 34%; 
    left: 34%; 
    width: 100%;
    text-align: center;
    z-index: 10;
}

@media (max-width: 767px) {
    .banner-2 {
        flex-direction: column;
    }

    .banner-2 img {
        width: 100%;
    }

    .divider {
        width: 100%;
        height: 10px;
    }

    .overlay-2 .container > div {
        width: 100%;
        text-align: center;
    }

    .overlay-2 .visible-xs-block {
        display: block;
    }

    .overlay-2 h1 a {
        padding-bottom: 20px;
    }
}

@media (min-width: 768px) {
    .overlay-2 .visible-xs-block {
        display: none;
    }
}

@media (max-width: 1230px) and (min-width: 1150px) {
    .overlay-2 h1 a {
        font-size: .8em; 
        padding-left: 20px;
    }
}

@media (max-width: 1149px) and (min-width: 767px) {
    .overlay-2 h1 a {
        font-size: .65em; 
        padding-left: 20px;
    }
}

@media (max-width: 767px) {
    .overlay-2 h1 a {
        font-size: 1.4em; 
        padding-left: 20px;
    }
}


@media (max-width: 1375px) and (min-width: 770px) {
    .overlay-2 p {
        padding-left: 20px; 
    }
}
