/********** Template CSS - Arabic RTL **********/
:root {
  --primary: #b77f65;
  --light: #f8f8f8;
  --dark: #252525;
}

body {
  direction: rtl;
  text-align: right;
  font-family: "Cairo", "Tahoma", "Segoe UI", sans-serif;
}

h1, h2, .h1, .h2, .fw-bold { font-weight: 600 !important; }
h3, h4, .h3, .h4, .fw-medium { font-weight: 500 !important; }
h5, h6, .h5, .h6, .fw-normal { font-weight: 400 !important; }

.back-to-top {
  position: fixed;
  display: none;
  left: 30px;
  bottom: 30px;
  z-index: 99;
}


/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}
#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Buttons ***/
.btn { font-weight: 500; transition: 0.5s; }
.btn.btn-primary, .btn.btn-secondary { color: #ffffff; }

.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }
.btn-square, .btn-sm-square, .btn-lg-square {
  padding: 0; display: flex; align-items: center; justify-content: center;
}

.btn-outline-body {
  color: var(--primary);
  border-color: #777777;
}
.btn-outline-body:hover {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

/*** Navbar ***/
.navbar-brand{
  padding-left: 17%;
}
.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-right: 8px;
  margin-left: 0;
}

.navbar .navbar-nav .nav-link {
  margin-left: 30px;
  padding: 30px 0;
  color: var(--dark);
  font-weight: 500;
  text-transform: uppercase;
}

/* underline animation */
.navbar .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 15px;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--primary);
}
/*** Dropdown Menu Animation ***/
@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    visibility: hidden;
    top: 100%;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .navbar .nav-item:hover .dropdown-menu {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }
}
/* Part 1 */
/*** Header ***/
.owl-carousel-inner {
  position: absolute; width: 100%; height: 100%;
  top: 0; left: 0; display: flex; align-items: center;
  background: rgba(0, 0, 0, 0.5);
}
.responsive-img {
  width: 100%; height: 500px; object-fit: cover;
  border-radius: 8px; display: block;
}
@media (max-width: 768px) { .responsive-img { height: 200px; } }
@media (min-width: 1200px) { .responsive-img { height: 600px; } }

.header-carousel .owl-dots {
  position: absolute;
  width: 60px;
  height: 100%;
  top: 0;
  left: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.header-carousel .owl-dots .owl-dot {
  position: relative; width: 45px; height: 45px;
  margin: 5px 0; background: var(--dark); transition: 0.5s;
}
.header-carousel .owl-dots .owl-dot.active { width: 60px; height: 60px; }
.header-carousel .owl-dots .owl-dot img {
  position: absolute; width: 100%; height: 100%;
  object-fit: cover; padding: 2px; transition: 0.5s; opacity: 0.3;
}
.header-carousel .owl-dots .owl-dot.active img { opacity: 1; }

.page-header {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url(../../img/carousel-3.jpg) center center no-repeat;
  background-size: cover;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: var(--light);
  content: "\f104";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

/*** About & Feature ***/
.about-img, .feature-img { position: relative; height: 100%; min-height: 400px; }
.about-img img, .feature-img img {
  position: absolute; width: 60%; height: 80%; object-fit: cover;
}
.about-img img:last-child, .feature-img img:last-child { margin: 20% 40% 0 0; }
.about-img::before, .feature-img::before {
  position: absolute; content: ""; width: 60%; height: 80%;
  top: 10%; right: 20%; border: 5px solid var(--primary); z-index: -1;
}

/*** Services ***/
/*** Service ***/
.service-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-item .bg-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transition: var(--transition);
  transform: scale(1);
}

.service-item:hover .bg-img {
  transform: scale(1.1);
  filter: brightness(0.7);
}

.service-item .service-text {
  background: rgba(255, 255, 255, 0.95);
  transition: var(--transition);
  padding: 20px;
  border-radius: var(--radius);
}

.service-item:hover .service-text {
  background: rgba(0, 0, 0, 0.7);
  color: #fff !important;
}

.service-item * {
  transition: var(--transition);
}

.service-item:hover * {
  color: #ffffff !important;
}

.service-item .btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  background: #ffffff;
  border-radius: 20px;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  transition: var(--transition);
}

.service-item:hover .btn {
  width: 150px;
  color: #fff;
  background: var(--primary);
}

/*** Project ***/
.project .nav .nav-link { background: var(--light); transition: 0.5s; }
.project .nav .nav-link.active { background: var(--primary); }
.project .nav .nav-link.active h3 { color: #ffffff !important; }

/*** Team ***/
.team-items { margin: -0.75rem; }
.team-item { padding: 0.75rem; position: relative; }
.team-item::after {
  position: absolute; content: ""; width: 100%; height: 0;
  top: 0; right: 0; background: #ffffff; transition: 0.5s; z-index: -1;
}
.team-item::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0;
  top: 0;
  left: 0;
  background: #b77f6560;
  transition: var(--transition);
  z-index: 1;
  opacity: 0.8;
}
.team-item:hover::after { height: 100%;  }
.team-item .team-social {
  position: absolute; width: 100%; bottom: -20px; right: 0; text-align: left;
}
.team-item .team-social .btn {
  display: inline-flex; margin: 0 2px;
  color: var(--primary); background: var(--light);
}
.team-item .team-social .btn:hover {
  color: #ffffff; background: var(--primary);
}

/*** Appointment ***/
.bootstrap-datetimepicker-widget.bottom { top: auto !important; }
.bootstrap-datetimepicker-widget .table * { border-bottom-width: 0px; }
.bootstrap-datetimepicker-widget .table th { font-weight: 500; }
.bootstrap-datetimepicker-widget.dropdown-menu {
  padding: 10px; border-radius: 2px;
}
.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover { background: var(--primary); }
.bootstrap-datetimepicker-widget table td.today::before { border-bottom-color: var(--primary); }

/*** Testimonial ***/
.testimonial-carousel {
  display: flex !important; flex-direction: column-reverse;
  max-width: 700px; margin: 0 auto;
}
.testimonial-carousel .owl-dots {
  height: 100px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 30px;
}
.testimonial-carousel .owl-dots .owl-dot {
  position: relative; width: 60px; height: 60px; margin: 0 5px; transition: 0.5s;
}
.testimonial-carousel .owl-dots .owl-dot.active { width: 100px; height: 100px; }
.testimonial-carousel .owl-dots .owl-dot::after {
  position: absolute; width: 40px; height: 40px; bottom: -20px;
  right: 50%; transform: translateX(50%);
  display: flex; align-items: center; justify-content: center;
  content: "\f10d"; font-family: "Font Awesome 5 Free";
  font-weight: 900; color: var(--primary);
  background: #ffffff; border-radius: 40px; transition: 0.5s; opacity: 0;
}
.testimonial-carousel .owl-dots .owl-dot.active::after { opacity: 1; }
.testimonial-carousel .owl-dots .owl-dot img { opacity: 0.4; transition: 0.5s; }
.testimonial-carousel .owl-dots .owl-dot.active img { opacity: 1; }

/*** Footer ***/
.footer .btn.btn-link {
  display: block; margin-bottom: 5px; padding: 0;
  text-align: right; color: #777777; font-weight: normal;
  text-transform: capitalize; transition: 0.3s;
}
.footer .btn.btn-link::before {
  position: relative; content: "\f104"; font-family: "Font Awesome 5 Free";
  font-weight: 900; color: var(--primary); margin-left: 10px;
}
.footer .btn.btn-link:hover { color: var(--primary); letter-spacing: 1px; box-shadow: none; }
.footer .form-control { border-color: #777777; }
.footer .copyright {
  padding: 25px 0; font-size: 15px;
  border-top: 1px solid rgba(256, 256, 256, 0.1);
}
.footer .copyright a { color: var(--light); }
.footer .copyright a:hover { color: var(--primary); }
