.areas-of-study-icons-container.logos{
    padding: 0 0 30px;
}

.areas-of-study-icons-container:not(.logos) .areas-of-study-icons {
    max-width: 1000px;
    display: flex;
    margin: 0 auto;
    justify-items: center;
    margin-top: 45px;
    padding: 10px;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.areas-of-study-icons-container.logos .areas-of-study-icons {
    max-width: 1000px;
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 columns, each taking one fraction of the available space */
    margin: 45px 50px 0 0;
    padding: 10px;
    gap: 10px;
}


.areas-of-study-icons-container:not(.logos) .areas-of-study-icon  {
    flex: 1 200px; 
    max-width: 230px;
}

.areas-of-study-icons-container:not(.logos) .areas-of-study-icons > *:nth-child(3) p,
.areas-of-study-icons-container:not(.logos) .areas-of-study-icons > *:nth-child(6) p{
    max-width: 190px;
    margin: 0 auto;
}

.areas-of-study-icons-container.logos .areas-of-study-icons > *:nth-child(1),
.areas-of-study-icons-container.logos .areas-of-study-icons > *:nth-child(2),
.areas-of-study-icons-container.logos .areas-of-study-icons > *:nth-child(3) {
    grid-column: span 2; /* Each of these takes up 2 of the 6 columns */
}

.areas-of-study-icons-container.logos .areas-of-study-icons > *:nth-child(4),
.areas-of-study-icons-container.logos .areas-of-study-icons > *:nth-child(5) {
    grid-column: span 3; /* Each of these takes up 3 of the 6 columns */
}




.areas-of-study-icons .icon {
    text-align: center;
}
.areas-of-study-icons .icon img {
    height: 100px;
    width: 100%;
    object-fit: scale-down;
}

.areas-of-study-icons .text p {
    font-size: 24px;
    text-align: center;
    font-weight: 600;
}

@media screen and (max-width: 767px) {

    .areas-of-study-icons {
        grid-template-columns: repeat(2, 50%)!important;
        margin: 10px!important;
    }
    .areas-of-study-icons-container:not(.logos) .areas-of-study-icon  {
        flex: 1 500px; 
    }
    .areas-of-study-icons-container:not(.logos) .areas-of-study-icons > *:nth-child(7) p{
        max-width: 165px;
        margin: 0 auto;
    }
    
    
}