.media-flex {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 50px;
    gap: 30px;
}

.media-group {
    width: 50%;
}

.media-group img {
    width: 90%;
    margin: 0 auto;
}

.media-box {
    width: 50%;
}

.media-group {
    position: relative;
}

.media-group:first-child::before {
    content: "";
    position: absolute;
    top: 5%;
    right: -3%; 
    transform: translateX(-50%); 
    width: 2px;
    height: 90%;
    background-color: #D9D9D9;
    z-index: 1;
}

.media-box ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    padding: 0;
}

.media-box ul li {
    margin-bottom: 10px;
}

.media-box ul li:nth-child(3) {
    grid-column: 1 / -1; 
    justify-self: center;
    width: 50%;
}

.media-box ul li:nth-child(3) img {
    margin: 0 auto;
}

.media-box ul li img {
    width: 70%;
    height: auto;
    display: block;
}

.media-item-flex {
    display: flex;
    flex-direction: column; 
    justify-content: space-between;
    align-items: center; 
    text-align: center;
    gap: 8px;   
}

.media-logo {
    object-fit: contain;
    margin: auto 0;
}

.media-text p {
    margin: 0;
    font-weight: 700;
}

.media-text .about-more {
    padding: 0;
    margin-top: 5px;
}

.media-text .nav-arrow2 {
    width: 20px;
    height: auto;
}

.media-morgan {
    margin-top: 50px;
}

.media-text-morgan {
    margin-bottom: 40px;
}


@media (max-width: 768px) {
    .media-flex {
        flex-direction: column;
    }

    .media-box {
        width: 80%;
    }

    .media-group {
        width: 80%;
        padding-bottom: 50px;
    }

    .media-box ul li:nth-child(3) {
        width: 100%;
        padding-top: 30px;
    }

    .media-item-first {
        padding: 50px 0;
    }

    .media-logo {
        display: inline-block;
        width: 60% !important;
        height: 0;
        margin: 0 auto;
    }

    .media-group:first-child::before {
        top: auto; 
        left: 50%;
        bottom: -10px;
        transform: translateX(-50%);
        width: 500px;
        height: 2px;
    }

    .media-box ul {
        grid-template-columns: 1fr;
    }
}
