/********** Template CSS **********/
:root {
  --primary: #eb1616;
  --secondary: #191c24;
  --light: #6c7293;
  --gray: #191c24;
  --dark: #000000;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 99;
}

.banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url(../img/banner-img.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 9;
}

.banner .container {
  position: relative;
  z-index: 99;
}

.banner::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 500px;
  top: -200px;
  left: 0;
  background: var(--bs-primary);
  transform: rotate(45deg);
  z-index: 1;
}

.banner::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 500px;
  bottom: -200px;
  right: 0;
  background: var(--bs-primary);
  transform: rotate(45deg);
  z-index: 1;
}
.bg-custom-dark {
  background-color: #191c24; /* Dark background color */
}
.banner .banner-design-1 {
  position: absolute;
  width: 30px;
  height: 500px;
  top: -165px;
  left: 0;
  background: var(--bs-dark);
  transform: rotate(45deg);
  z-index: 2;
}

.banner .banner-design-2 {
  position: absolute;
  width: 30px;
  height: 500px;
  bottom: -165px;
  right: 0;
  background: var(--bs-dark);
  transform: rotate(45deg);
  z-index: 2;
}

/* Custom CSS for top bar */
.topbar {
  background-color: #f8f9fa; /* Light background */
  color: #343a40; /* Dark text color */
}

.topbar a {
  color: #343a40; /* Dark text color for links */
}

.topbar a:hover {
  color: #eb1616; /* Primary color for hover */
}
/* Partaner */
.partners-slider {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
}

.partners-track {
  display: flex;
  gap: 30px;
  animation: scroll 15s linear infinite;
  width: calc(150px * 12); /* Adjust based on image count */
}

.partners-track img {
  width: 150px; /* Adjust size */
  height: auto;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/*** 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;
}

/*** Button ***/
.btn {
  font-weight: 500;
  transition: 0.5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
  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;
  font-weight: normal;
}

/*** Navbar ***/
.navbar {
  background-color: var(--secondary); /* Dark gray color */
}

.navbar .navbar-nav .nav-link {
  margin-right: 30px;
  padding: 40px 0;
  color: var(--light); /* Light gray text color */
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--primary); /* Red color for hover and active states */
}

.navbar.sticky-top {
  top: -100px;
  transition: 0.5s;
}

@media (max-width: 991.98px) {
  .navbar .navbar-nav .nav-link,
  .navbar.shadow-sm .navbar-nav .nav-link {
    margin-right: 0;
    padding: 10px 0;
  }

  .navbar .navbar-nav {
    margin-top: 8px;
    border-top: 1px solid var(--light);
  }
}

@media (min-width: 992px) {
  .navbar.shadow-sm .navbar-nav .nav-link {
    padding: 20px 0;
  }

  .navbar .nav-item .dropdown-menu {
    display: block;
    border: none;
    margin-top: 0;
    top: 150%;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/*** Header ***/
/*** Header ***/
.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1;
}

/* Desktop: Center content vertically */
@media (min-width: 769px) {
  .carousel-caption {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.carousel-caption h5,
.carousel-caption h1,
.carousel-caption .breadcrumb-item,
.carousel-caption .breadcrumb-item a {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-control-prev,
.carousel-control-next {
  width: 15%;
  z-index: 2;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
}

/* Mobile Full Screen Carousel */
@media (max-width: 768px) {
  /* Remove container padding for full width */
  .container-fluid.p-0 {
    padding: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Make carousel take full viewport height */
  #header-carousel {
    height: 100vh;
    height: 100svh; /* Use small viewport height for better mobile support */
  }

  #header-carousel .carousel-inner,
  #header-carousel .carousel-item {
    height: 100%;
  }

  /* Make images cover full screen */
  #header-carousel .carousel-item img {
    height: 100vh;
    height: 100svh;
    object-fit: cover;
    object-position: center;
  }

  /* Adjust carousel controls for mobile */
  .carousel-control-prev {
    left: 5px;
  }

  .carousel-control-next {
    right: 5px;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
    background-size: 60% 60%;
  }

  /* Adjust caption positioning and sizing for mobile */
  .carousel-caption {
    padding: 20px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .carousel-caption .container {
    max-width: 100%;
  }

  .carousel-caption h1 {
    font-size: 1.5rem !important;
    margin-bottom: 15px !important;
    line-height: 1.3;
  }

  .carousel-caption h5 {
    font-size: 0.9rem !important;
    margin-bottom: 10px !important;
  }

  .breadcrumb {
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.85rem;
    margin-bottom: 15px !important;
    padding-bottom: 10px !important;
  }

  .breadcrumb-item {
    margin-bottom: 5px;
    font-size: 0.85rem !important;
  }

  /* Adjust button size */
  .carousel-caption .btn {
    padding: 10px 25px !important;
    font-size: 0.9rem;
  }
}

/* For very small phones */
@media (max-width: 576px) {
  .carousel-caption h1 {
    font-size: 1.2rem !important;
  }

  .carousel-caption h5 {
    font-size: 0.8rem !important;
  }

  .breadcrumb-item {
    font-size: 0.75rem !important;
  }

  .carousel-caption .btn {
    padding: 8px 20px !important;
    font-size: 0.85rem;
  }
}

.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
    url(../img/carousel-1.jpg) center center no-repeat;
  background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--light);
}

/*** Facts ***/
.facts-overlay {
  position: absolute;
  padding: 30px;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
}

.facts-overlay h1 {
  font-size: 120px;
  color: transparent;
  -webkit-text-stroke: 2px var(--primary);
}

.facts-overlay a:hover {
  color: var(--primary) !important;
}

/*** Service ***/
.service-text::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 0;
  top: 0;
  left: 0;
  background: var(--primary); /* Primary color for hover effect */
  opacity: 0;
  transition: 0.5s;
  z-index: -1; /* Move the overlay behind the text */
}

.service-item:hover .service-text::before {
  height: 100%;
  opacity: 1;
}

.service-text {
  color: #ffffff; /* Default text color */
}

.service-text * {
  position: relative;
  transition: 0.5s;
  z-index: 1; /* Ensure text stays above the overlay */
}

.service-item:hover .service-text * {
  color: #ffffff !important; /* White text on hover */
}
/*** Appointment ***/
.appointment {
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url(../img/carousel-2.jpg) center center no-repeat;
  background-size: cover;
}

/*** Team ***/
.team-text {
  position: absolute;
  width: 75%;
  bottom: 30px;
  left: 0;
  transition: 0.5s;
}

.team-item:hover .team-text {
  width: 100%;
}

.team-text * {
  transition: 0.5s;
}

.team-item:hover .team-text * {
  letter-spacing: 2px;
}

/*** Testimonial ***/
.testimonial-carousel .owl-item img {
  width: 100px;
  height: 100px;
}

.testimonial-carousel .owl-nav {
  margin-top: 30px;
  display: flex;
  justify-content: start;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  margin-right: 15px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 2px solid var(--primary);
  border-radius: 50px;
  font-size: 18px;
  transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
  color: #ffffff;
  background: var(--primary);
}

/*** Footer ***/
.footer {
  color: #999999;
}

.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  color: #999999;
  font-weight: normal;
  text-transform: capitalize;
  transition: 0.3s;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #999999;
  margin-right: 10px;
}

.footer .btn.btn-link:hover {
  color: var(--light);
  letter-spacing: 1px;
  box-shadow: none;
}

.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);
}
