.twoimg {
    display: flex;
    flex-direction: column;
}

.twoimg img:first-child {
    margin-bottom: 15px;
}

.twoimg img {
    height: 400px;
    object-fit: cover;
    object-position: center;
}

.flexig2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 60px;
}

.contentlearn2 h3 {
    font-family: var(--font2);
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 800;
    margin-top: 0;
    color: var(--secondary);
    letter-spacing: 3px;
}

.contentlinks2 a {
    display: block;
    margin-top: 15px;
    color: var(--primary);
    font-size: 22px;
    text-decoration: none;
    transition: all .2s ease-in-out;
    font-weight: 700;
}

.contentlinks2 a i {
    margin-left: 1rem;
    font-weight: 300;
    transition: all .2s ease-in-out;
}

.contentlinks2 a:hover i {
    margin-left: 1.5rem;
}

.contentlearn2 {
    position: relative;
}

.contentlearn2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Favicon background styling */
.contentlearn2.has-favicon-bg {
    position: relative;
    z-index: 1;
}

.contentlearn2.has-favicon-bg::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: -150px;
    width: 80%;
    height: 80%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.07;
    z-index: -1;
}

.contentlearn2 h2 {
    margin-top: 0;
    font-weight: 600;
    position: relative;
    width: fit-content;
    padding-bottom: 20px;
    margin-bottom: 20px;
    color: var(--primary);
}

.contentlearn2 h2:after {
    content: "";
    width: 300px;
    max-width: 100%;
    border-bottom: 2px solid var(--primary);
    position: absolute;
    bottom: 0;
    left: 0;
}

.lrcontain {
    order: 2;
    flex-direction: initial;
}

.lrcontain img {
    height: 300px;
    object-fit: contain;
    width: calc(50% - 7.5%);
}

.lrcontain {
    order: 2;
    flex-direction: initial;
    justify-content: space-between;
}

@media (max-width:1199px) {
    .flexig2 {
        grid-template-columns: 1fr;
        grid-gap: 30px;
    }

    .twoimg,
    .contentlearn2 {
        width: 100%;
    }

    .twoimg img:last-child {
        display: none;
    }

    .twoimg {
        order: 2 !important;
        margin-top: 30px;
    }

    .twoimg img {
        object-fit: cover;
        object-position: center;
        aspect-ratio: 1/1;
        height: initial;
    }

    .contentlearn2 {
        order: 1 !important;
        margin-top: 15px;
    }

    .lrcontain img {
        display: inherit !important;
    }

    .lrcontain img {
        height: 300px;
        object-fit: contain;
        width: calc(50% - 10px);
    }

    .contentlearn2 h2 {
        font-size: 2rem;
    }
}