@media (max-width: 768px) {
    .academics-text-overlay h1 {
        font-size: 1.5rem;
        max-width: 100%;
        margin-left: 0;
        
    }

    .academics-text-overlay p {
        font-size: 0.9rem; 
        max-width: 100%;
        margin-left: 0;
    }

    .btn-academics {
        width: auto;
    }
    .content-title-right{
        text-align: left;

    }
    .content-desc-right{
        text-align: left;
    }
    .content-column {
        display: flex;
        flex-direction: column; /* Stack items vertically */
    }

    .image-fluid {
        order: 1 !important; /* Ensure images come first */
    }

    .content-desc {
        order: 2 !important; /* Ensure text comes after images */
    }
}

@media (max-width: 576px) {

    .overlay-fade {
        padding: 0;
    }

    .academics-image-section {
       
        height: 40vh;
    }

    .academics-image-section h1 {
        font-size: 1.2rem;
    }

    .academics-text-overlay p {
        font-size: 0.7rem;
    }
    .btn-academics {
        width: auto;
        margin-top: 30px;
    
    }

    .button-wrapper {
        flex-direction: row;
    }

    .content-title, .content-title-right {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .content-title-right{
        text-align: left;
        
    }

    .content-desc, .content-desc-right,
.content-desc p, .content-desc-right p, 
 .content-desc span, .content-desc-right span{
        line-height: 1.5;
    }

    .content-desc{
        text-align: justify;
    }


    .content-desc-right{
        text-align: justify;
        
    }
    .content-column {
        display: flex;
        flex-direction: column; /* Stack items vertically */
        margin-top: 10px;
        margin-bottom: 60px;
    }

    .image-fluid {
        order: 1 !important; /* Ensure images come first */
    }

    .content-desc {
        order: 2 !important; /* Ensure text comes after images */
    }
    
    .content-wrapper{
        max-height: 55vh !important; 
    }

}