/* ============================= */
/* Home Projects Section */
/* ============================= */

.home-projects-section{
    padding: 4rem 0 2.5rem;
    background: #fff;
    overflow: hidden;
    position: relative;
}

.home-projects-section .container{
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.home-projects-section .projects-slider{
    width: 100%;
    position: relative;
}

.home-projects-section .project-link{
    display: block;
    text-decoration: none;
}

.home-projects-section .project-slide{
    padding: 0 .55rem;
    box-sizing: border-box;
}

.home-projects-section .home-project-item{
    display: flex !important;
    align-items: stretch;
    gap: .85rem;
    height: 30rem;
}

/* الكارت الأزرق */
.home-projects-section .caption{
    width: 42%;
    min-width: 42%;
    height: 100%;
    background: #2D3578;
    border-radius: 1.1rem;
    padding: 1.35rem 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.home-projects-section .caption:before{
    content: '';
    position: absolute;
    inset: 0;
    background: url(../../includes/images/Linepattern.png) no-repeat center;
    background-size: cover;
    opacity: 1;
    z-index: 0;
}

.home-projects-section .caption *{
    position: relative;
    z-index: 2;
}

/* الصورة */
.home-projects-section .project-image{
    width: 58%;
    min-width: 58%;
    height: 100%;
    overflow: hidden;
    border-radius: 1.1rem;
}

.home-projects-section .project-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 1.1rem;
}

/* النصوص */
.home-projects-section .caption h2{
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 .45rem;
}

.home-projects-section .caption h4{
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 .45rem;
}

.home-projects-section .caption p{
    font-size: .78rem;
    line-height: 1.55;
    margin: 0;
}

.home-projects-section .bottom{
    margin-top: auto;
    padding-top: .65rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: .5rem;
}

.home-projects-section .caption h5{
    font-size: .72rem;
    margin: 0;
}

.home-projects-section .saudi-left{
    display: flex;
    align-items: center;
    padding-right: 1.2rem;
    background: url(../../includes/images/Isolation_Mode.png) no-repeat right center;
    background-size: 12px;
}

.home-projects-section .saudi-left .text{
    font-size: .58rem;
    max-width: 3rem;
    line-height: 1.1;
}

/* سلوك السلايدر */
.home-projects-section .slick-list{
    overflow: hidden;
}

.home-projects-section .slick-track{
    display: flex !important;
}

.home-projects-section .slick-slide{
    opacity:1;
    transition:none;
}

.home-projects-section .slick-slide > div{
    height: 100%;
}

/* dots */
.home-projects-section .slick-dots{
    position: static;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 1.2rem;
    padding: 0;
    list-style: none;
}

.home-projects-section .slick-dots li{
    width: auto;
    height: auto;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-projects-section .slick-dots li button{
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ff7a00;
    font-size: 0;
    line-height: 0;
    box-shadow: none;
}

.home-projects-section .slick-dots li button:before{
    display: none;
}

.home-projects-section .slick-dots li.slick-active button{
    width: 38px;
    height: 11px;
    border-radius: 999px;
    background: #2D3578;
}

/* RTL */
html[dir="rtl"] .home-projects-section .home-project-item,
body.rtl .home-projects-section .home-project-item{
    flex-direction: row;
}

/* LTR */
html[dir="ltr"] .home-projects-section .home-project-item,
body:not(.rtl) .home-projects-section .home-project-item{
    flex-direction: row-reverse;
}

html[dir="ltr"] .home-projects-section .caption{
    text-align: left;
}

html[dir="ltr"] .home-projects-section .saudi-left,
body:not(.rtl) .home-projects-section .saudi-left{
    padding-left: 1.2rem;
    padding-right: 0;
    background-position: left center;
}

html[dir="ltr"] .home-projects-section .saudi-left .text,
body:not(.rtl) .home-projects-section .saudi-left .text{
    text-align: left;
}

/* Tablet */
@media (max-width: 992px){
    .home-projects-section .home-project-item{
        height: 15rem;
    }

    .home-projects-section .caption{
        width: 44%;
        min-width: 44%;
        padding: 1rem;
    }

    .home-projects-section .project-image{
        width: 56%;
        min-width: 56%;
    }

    .home-projects-section .caption h2{
        font-size: 1rem;
    }

    .home-projects-section .caption h4{
        font-size: .9rem;
    }

    .home-projects-section .caption p{
        font-size: .72rem;
    }
}

/* Mobile */
@media (max-width: 768px){
    .home-projects-section .home-project-item{
        flex-direction: column !important;
        height: auto;
    }

    .home-projects-section .caption,
    .home-projects-section .project-image{
        width: 100%;
        min-width: 100%;
    }

    .home-projects-section .project-image{
        height: 220px;
    }

    .home-projects-section .project-image img{
        height: 100%;
    }

    .home-projects-section .caption{
        padding: 1rem;
    }

    .home-projects-section .bottom{
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
    }
}