/********** Template CSS **********/
:root {
    --primary: #F4DFA4;
    --secondary: #01334D;
    --light: #A8D9C7;
    --dark: #01334D;
}

.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(--dark);
    outline: none;
    transition: .5s;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        bottom: 0;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }
}

.hero-header {
    background: url(../img/hero.jpg) top right no-repeat;
    background-size: cover;
}

.service-item {
    position: relative;
    height: 350px;
    padding: 0 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;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}

.price-carousel::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    bottom: 0;
    left: 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);
    left: 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;
}

.my-5.form-section {
    margin-bottom: -3rem !important;
}

pre {
    margin: 0;
    font-family: var(--bs-font-sans-serif);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #848E9F;
    background-color: #fff;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    white-space: pre-wrap;
    white-space: -moz-pre-wrap;
    white-space: -pre-wrap;
    white-space: -o-pre-wrap;
    word-wrap: break-word;
}

.surgery-header,
.mainSlider {
    position: relative;
    background: linear-gradient(135deg, #1b3d59 0%, rgba(27, 61, 89, 0.01) 100%);
    opacity: 0.8;
}

.surgery-header:before,
.mainSlider:before {
    content: "";
    position: absolute;
    display: block;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    opacity: 1;
    z-index: 1;
    background: linear-gradient(90deg, rgba(25, 25, 25, 1) 20%, rgba(25, 25, 25, 0)90%);
}

.surgery-header .text-lg-start {
    z-index: 9;
}

/*   footer social   */
.rounded-circle i {
    line-height: 1.5em;
}


/*   Colors   */
.bg-primary {
    background-color: #01334D !important;
}

.text-primary {
    color: #01334d !important;
}

.border-bottom {
    border-color: #F4DFA4 !important;
}

.testimonial-carousel .owl-dot {
    background: #01334d !important;
}

.form-section .btn-outline-dark {
    color: #fff;
    border-color: #fff;
}

.form-section {
    background: #f4f4f4 !important;
}

body,
.text-body {
    color: #333333 !important;
}

.bg-light {
    background-color: #f4f4f4 !important;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: #01334D !important;
}

.footer .text-primary,
.copyright-footer .text-primary,
.surgery-header .text-primary,
.mainSlider .text-primary {
    color: #f4d4a4 !important;
}

.footer .btn-primary {
    color: #01334D !important;
    background-color: #fff;
    border-color: #fff;
}

.footer .btn-primary:hover {
    background-color: #F4DFA4;
    border-color: #F4DFA4;
}

.btn {
    color: #01334d;
    border-color: #01334D;
}

.btn:hover {
    color: #fff;
    background-color: #01334D;
}

.btn-check:checked+.btn-dark,
.btn-check:active+.btn-dark,
.btn-dark:active,
.btn-dark.active,
.show>.btn-dark.dropdown-toggle,
.btn-dark:hover {
    color: #01334D;
    background-color: #F4DFA4;
    border-color: #F4DFA4;
}

.btn-dark {
    color: #01334d;
    background-color: #fff;
    border-color: #fff;
}

.btn-outline-dark {
    color: #fff !important;
    border-color: #fff !important;
}

.btn-primary {
    color: #fff !important;
    background-color: #01334d !important;
    border-color: #01334d !important;
}

.btn-primary:hover {
    color: #01334D !important;
    background-color: #F4DFA4 !important;
    border-color: #F4DFA4 !important;
}

.link-card {
    color: #01334D !important;
}

.link-card:hover {
    color: #EF4130 !important;
}

.post-card .post-img,
.surgery-card .surgery-img {
    height: 250px !important;
    background-size: cover !important;
}

.form-select,
.form-control {
    color: #333 !important;
}

/*   Main Slider   */
/* Slideshow container */
.mainSlider .slideshow-container {
    position: relative;
    margin: auto;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* Number text (1/3 etc) */
.mainSlider .numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

/* The dots/bullets/indicators */
.dot {
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active {
    background-color: #717171 !important;
}

/* Fading animation */
.slide-fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

.mainSlider {
    display: none;
    width: 100%;
    height: 800px;
    background: url(./uploads/hero.jpg);
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: right !important;
}

.mainSlider .slide-content {
    width: 100%;
    padding-right: var(--bs-gutter-x, .75rem);
    padding-left: var(--bs-gutter-x, .75rem);
    margin-right: auto;
    margin-left: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
}

.mainSlider .slide-content p {
    max-width: 50%;
}
/*   End Main Slider   */
/*    Mobile Style      */
@media (max-width:768px) {
    /*   Homepage Slider   */
    .mainSlider {
        height: 550px !important;
    }
    .mainSlider .slide-content {
        text-align: center;
    }

    .mainSlider .slide-content p {
        max-width: 100%;
    }

    .mainSlider .slide-content h1 {
        font-size: 30px;
    }
    #slider-dental {
        background: url('../uploads/Dental Mobile.jpg') !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-position: right !important;
    }

    #slider-obesity {
        background: url('../uploads/Obesity Surgeries Mobile.jpg') !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-position: right !important;
    }

    #slider-plastic {
        background: url('../uploads/plastic slide mobile.jpg') !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-position: right !important;
    }

    .prev,
    .next {
        display: none !important;
    }
    /*   Banner   */
    .surgery-header:before,
    .mainSlider:before {
        background: #1b3d59 !important;
        opacity: 0.8;
    }
}

/*   Arabic Style   */
html[lang="ar"] body,
html[lang="ar"] h1,
html[lang="ar"] .h1,
html[lang="ar"] h2,
html[lang="ar"] .h2,
html[lang="ar"] h3,
html[lang="ar"] .h3,
html[lang="ar"] h4,
html[lang="ar"] .h4,
html[lang="ar"] h5,
html[lang="ar"] .h5,
html[lang="ar"] h6,
html[lang="ar"] .h6 {
    direction: rtl;
    font-family: "Cairo" !important;
}
@media (min-width: 992px) {
    html[lang="ar"] .text-lg-start {
        text-align: right !important;
    }
    html[lang="ar"] .text-lg-end {
        text-align: left !important;
    }
}
html[lang="ar"] .me-3{
    margin-left: 1rem !important;
    margin-right: unset !important;
}
html[lang="ar"] .me-2{
    margin-left: 0.5rem !important;
    margin-right: unset !important;
}
html[lang="ar"] .me-1 {
    margin-left: 0.25rem !important;
    margin-right: unset !important;
}
/*  Banner    */
html[lang="ar"] .surgery-header,
html[lang="ar"] .mainSlider {
    background-position: top right!important;
    opacity: 0.8;
}
html[lang="ar"] .surgery-header:before,
html[lang="ar"] .mainSlider:before {
    background: linear-gradient(270deg, rgba(25, 25, 25, 1) 20%, rgba(25, 25, 25, 0)90%);
}
/*   Main Menu   */
html[lang="ar"] .dropdown-item{
    text-align:right!important;
}
.topbar {
    direction: ltr !important;
}
html[lang="ar"] .ar_navbar .navbar-nav {
    margin-left: unset !important;
    margin-right: auto !important;
}
html[lang="ar"] .dropdown-toggle::after {
    margin-right: 0.255em !important;
    margin-left: unset !important;
}
/*    Footer      */
.ltr-ar-icon{
    direction:ltr;
    float:right;
}
.ltr-ar-icon i{
    float:right;
}
/*   post card   */
.post-date{
    direction:ltr!important;
}
/*   Testimonials   */
html[lang=ar] .testimonial-carousel{
    direction:ltr!important;
}
/*   Main Slider   */
html[lang="ar"] .next {
    right: auto!important;
    left:0;
}