.screen-hero {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 140px);
    /*background-image: url('/images/pages/main-bg.png');*/
    background-size: cover;
    background-position: center;
    padding: 120px 16px 80px;
    box-sizing: border-box;
    overflow: hidden;
    color: #fff;
    background: #f1eeea;
}

.screen-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    /*background: rgba(0,0,0,0.45);*/
    z-index: 1;
}

.hero-container {
    position: relative;
    direction: rtl;
    z-index: 2;
    max-width: 1414px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.first-sec {
    flex: 1 1 500px;
}

.first-sec h1 {
    margin-bottom: 36px;
    font-family: 'Almarai';
    font-weight: 700;
    padding: 60px 0;
    font-style: Bold;
    @if(app()->getLocale() == 'ar')
    font-size: 47px;
    @else
    font-size: 38px;
    @endif
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: right;
    color: #c09766;
}

.first-sec p {
    font-family: Almarai;
    font-weight: 300;
    font-style: Regular;
    font-size: 27px;
    leading-trim: NONE;
    line-height: 54px;
    letter-spacing: 0%;
    text-align: right;
    color: #c09766;
}

.buttons {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.buttons a {
    width: fit-content;
    font-family: 'Almarai';
    font-size: 24px;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 40px;
    transition: 0.3s;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.gradient-border {
    position: relative;
    z-index: 1;
}

.gradient-border::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: 40px;
    background: linear-gradient(90deg, #CF9233, #FFFFFF, #CF9233);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.btn-primary {
    background: #c69b6d;
    color: #fff;
}

.btn-outline-light {
    background: #fff;
    color: #c69b6d;
}

.second-sec {
    flex: 1 1 400px;
    min-width: 450px;
    margin: auto;
    position: relative;
}

.slider .slide-link {
    width: 100%;
    height: 88%;
    display: none;
}

.slider .slide-link.active {
    display: block;
    animation: fade 1s;
}

.slider .slide-link img {
    width: 100%;
    height: 100%;
    border-radius: 220px;
    object-fit: cover;
    display: block;
}

.slider {
    position: relative; 
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pagination {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.pagination span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D7D7D7;
    cursor: pointer;
    transition: 0.3s;
}

.pagination span.active {
    background: #FFFFFF;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .screen-hero {
        padding: 0px 16px 80px;
    }

    .hero-container {
        display: flex;
        flex-direction: column; 
        align-items: center;  
        text-align: center;
        width: 100%;
        margin: 0 auto;
    }

    .slider .slide-link img {
        border-radius: 40px;
    }

    .first-sec {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 20px;
        flex: 0;
    }
    .first-sec h1 {
        padding: 0;
    }
    .second-sec {
        min-width: 100%;
    }

    .slider {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .slider img.active {
        width: 80%;
        max-width: 320px;
        height: auto;
        margin: 0 auto;
        border-radius: 140px;
    }

    .buttons {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-top: 16px;
    }

    .buttons a {
        width: 45%;
        font-size: 14px;
        justify-content: center;
        margin-bottom: 8px;
    }
    
    .fl-2{
        display: none;
    }
    
    .fl-1{
        display: none;
    }
}

.fl-2{
    position: absolute;
    left: 0;
    top: 0;
    height: 217px;
    rotate: 350deg;
}

.fl-1{
    position: absolute;
    right: 0;
    height: 280px;
    rotate: 178deg;
}