/********** Template CSS **********/
:root {
    --primary: #13C5DD;
    --secondary: #354F8E;
    --light: #EFF5F9;
    --dark: #1D2A4D;
}

.btn {
    font-weight: 700;
    transition: .5s;
}

.btn:hover {
    -webkit-box-shadow: 0 8px 6px -6px #555555;
    -moz-box-shadow: 0 8px 6px -6px #555555;
    box-shadow: 0 8px 6px -6px #555555;
}

.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 0;
    border-radius: 50% 50% 0 0;
    z-index: 99;
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    position: relative;
    margin-left: 30px;
    padding: 30px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--light);
    outline: none;
    transition: .5s;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        bottom: 0;
        right: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        right: 0;
    }
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }
}

.hero-header {
    background: url(../img/hero.jpg) top right no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;

}

.service-item {
    position: relative;
    height: auto; /* أصبح تلقائي لتجنب قص النص */
    min-height: 450px; /* زيادة الحجم الافتراضي للكارد */
    padding: 30px;
    transition: .5s;
}

.service-item .service-icon {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    transform: rotate(-14deg);
}

.service-item .service-icon i {
    transform: rotate(15deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    right: 50%;
    margin-right: -30px;
    opacity: 0;
    transition: .5s;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}

 .service-item ul li {
    margin-bottom: 10px; /* المسافة بين العناصر */
  }
.card-phrase {
    background-color: var(--dark); /* نفس لون الكارد */
    padding: 15px 20px;
    border-radius: 0 0 15px 15px; /* مستدير من الأسفل فقط */
    position: absolute;
    bottom: -50px; /* يظهر تحت الكارد مباشرة */
    left: 0;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* ظل خفيف */
    font-style: italic;
    color: var(--primary);
}


.price-carousel::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    bottom: 0;
    right: 0;
    background: var(--primary);
    border-radius: 8px 8px 50% 50%;
    z-index: -1;
}

.price-carousel .owl-nav {
    margin-top: 35px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next{
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    font-size: 22px;
    border-radius: 45px;
    transition: .5s;
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

@media (min-width: 576px) {
    .team-item .row {
        height: 350px;
    }
}

.team-carousel .owl-nav {
    position: absolute;
    padding: 0 45px;
    width: 100%;
    height: 45px;
    top: calc(50% - 22.5px);
    right: 0;
    display: flex;
    justify-content: space-between;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}
/* =============================
   تحسين الريسبونسف للموبايل
   ============================= */
@media (max-width: 768px) {

    /* تحسين القائمة في الشاشات الصغيرة */
    .navbar-light .navbar-nav .nav-link {
        padding: 12px 0 !important;
        font-size: 16px;
        margin-right: 0;
    }

    /* تصغير الشعار */
    .navbar-brand img {
        width: 60px !important;
    }

    /* إخفاء النص بجانب اللوجو */
    .navbar-brand h4 {
        display: none;
    }

    /* تحسين الهيدر */
   .hero-header {
        background-position: right !important;
        background-size: cover !important;
        min-height: 300px;
       
    }
     .hero-header::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        background: rgba(52, 45, 45, 0.15);
        z-index: 1;
    }

    .hero-header > * {
        position: relative;
        z-index: 2;  /* حتى تبقى النصوص فوق البلور */
    }

    /* تصغير الكارد */
    .service-item {
        min-height: 350px;
        padding: 20px;
    }

    /* إصلاح العبارة الموجودة أسفل الكارد */
    .card-phrase {
        position: relative;
        bottom: 0;
        margin-top: 20px;
        border-radius: 15px;
    }

    /* تصغير أيقونة الخدمة */
    .service-item .service-icon {
        width: 100px;
        height: 70px;
    }

    /* تصغير السلايدر */
    .team-carousel .owl-nav {
        padding: 0 15px;
    }
}
