/* CSS for displaying image on the left and text on the right */
.banner_section {
    padding-top: 30px;

}

#home .banner_section .container .carousel-inner .carousel-item .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}


#home .banner_section .container .carousel-inner .carousel-item .row .col-md-1 {
    flex: 0 0 50%;
    /* Adjust the width of each column to 50% of the container */
    max-width: 50%;
}

#home .banner_section .container .carousel-inner .carousel-item .row .col-md-1:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 1;
    /* النص الآن على اليسار */
    text-align: center;
}

#home .banner_section .container .carousel-inner .carousel-item .row .col-md-1:last-child {
    order: 2;
    /* الصورة الآن على اليمين */
}


.banner_img img {
    width: 700px;
    height: auto;
    padding-left: 10px;
    padding-right: 10px;
}

.banner_taital_1 {

    font-size: 30px;
    font-weight: 700;
    color: #17a2b8;
    margin-bottom: 5px;

}

.banner_taital {
    font-size: 30px;
    font-weight: 500;
    color: #17a2b8;
    margin-bottom: 10px;

}

.banner_text {
    padding: 0 20px;
    font-size: 30px;
    line-height: 1.5;
}

.contact_bt {
    background: #17a2b8;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
    transition: 0.3s;
}

.more_bt {
    background: #17a2b8;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
    transition: 0.3s;
}

.contact_bt a,
.more_bt a {
    text-decoration: none;
    /* Remove underline from links */
    color: #fff;
    /* Ensure text color is white for visibility */
}

.contact_bt:hover,
.more_bt:hover {
    background-color: #0b4b94;
    /* Darken the background on hover */
    color: #ffffff;
    /* Keep text color white for contrast */
}

.contact_bt a:hover,
.more_bt a:hover {
    text-decoration: none;
    /* Ensure underline does not reappear on hover */
    color: #ffffff;
    /* Keep text color consistent on hover */
}

@media (min-width:950px) and (max-width:1150px) {
    .banner_img img {
        width: 500px;
    }
}

@media (max-width:950px) {
    #home .banner_section .container .carousel-inner .carousel-item .row {
        flex-direction: column;
        /* النص فوق الصورة */
    }

    #home .banner_section .container .carousel-inner .carousel-item .row .col-md-1:first-child {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 40px;
        /* مسافة بين النص والصورة */
    }

    #home .banner_section .container .carousel-inner .carousel-item .row .col-md-1:last-child {
        flex: 0 0 100%;
        max-width: 100%;
    }
}