/********** Template CSS **********/
:root {
  --primary: #ab7442;
  --light: #f5f5f5;
  --dark: #353535;
}

.fw-medium {
  font-weight: 500 !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.fw-black {
  font-weight: 900 !important;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  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;
}

/*** Button ***/
.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;
  font-weight: normal;
}

/*** Navbar ***/
.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
  margin-right: 30px;
  padding: 25px 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--primary);
}

@media (max-width: 991.98px) {
  .navbar-light .navbar-nav .nav-link {
    margin-right: 0;
    padding: 10px 0;
  }

  .navbar-light .navbar-nav {
    border-top: 1px solid #eeeeee;
  }
}

.navbar-light a.btn {
  height: 75px;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--dark);
  font-weight: 500;
}

.navbar-light.sticky-top {
  top: -100px;
  transition: 0.5s;
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    border: none;
    margin-top: 0; /* Remove unnecessary margin */
    top: 100%; /* Adjust this value to bring it closer to the parent `ul` */
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 60%; /* Adjust this value to control the dropdown's position */
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/* Fix for the "Get A Quote" button arrow */
.navbar-light .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  transition: 0.3s;
}

.navbar-light .btn i {
  margin-left: 10px; /* Add spacing between text and arrow */
  font-size: 16px; /* Adjust arrow size */
  transition: transform 0.3s ease;
}

.navbar-light .btn:hover i {
  transform: translateX(5px); /* Add a smooth sliding effect on hover */
}

/* Adjust the navbar height */
.navbar {
  height: 120px; /* Increase the height of the navbar */
  display: flex;
  align-items: center; /* Vertically align the contents */
  justify-content: space-between; /* Space out the logo and links */
  padding: 0 20px; /* Add some horizontal padding */
}

/* Adjust the logo size and alignment */
.navbar-brand > img {
  height: 120px; /* Keep the logo height */
  margin-right: 0; /* Reduce spacing between the logo and the name */
  width: auto;
  object-fit: contain;
}

/* Adjust the text alignment for the name */
.navbar-brand {
  margin-left: 0; /* Ensure no extra spacing on the left */
  padding-left: 0; /* Remove any padding that might push it away */
}

/* Align the navigation links */
.navbar-nav .nav-link {
  line-height: 120px; /* Match the navbar height for vertical alignment */
  padding: 0 15px; /* Add horizontal padding for spacing */
  font-size: 16px; /* Adjust font size if needed */
}

/*** Header ***/
@media (max-width: 768px) {
  .header-carousel .owl-carousel-item {
    position: relative;
    min-height: 500px;
  }

  .header-carousel .owl-carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .header-carousel .owl-carousel-item h5,
  .header-carousel .owl-carousel-item p {
    font-size: 14px !important;
    font-weight: 400 !important;
  }

  .header-carousel .owl-carousel-item h1 {
    font-size: 30px;
    font-weight: 600;
  }
}

.header-carousel .owl-nav {
  position: absolute;
  width: 400px;
  height: 45px;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: transparent;
  border: 1px solid #ffffff;
  font-size: 22px;
  transition: 0.5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.header-carousel .owl-dots {
  position: absolute;
  height: 45px;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-carousel .owl-dot {
  position: relative;
  display: inline-block;
  margin: 0 5px;
  width: 15px;
  height: 15px;
  background: transparent;
  border: 1px solid #ffffff;
  transition: 0.5s;
}

.header-carousel .owl-dot::after {
  position: absolute;
  content: "";
  width: 5px;
  height: 5px;
  top: 4px;
  left: 4px;
  background: transparent;
  border: 1px solid #ffffff;
}

.header-carousel .owl-dot.active {
  background: var(--primary);
  border-color: var(--primary);
}

.page-header {
  background: linear-gradient(rgba(53, 53, 53, 0.7), rgba(53, 53, 53, 0.7)),
    url(../img/assets/Background.jpg) center center no-repeat;
  background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--light);
}

/*** Section Title ***/
.section-title h1 {
  position: relative;
  display: inline-block;
  padding: 0 60px;
}

.section-title.text-start h1 {
  padding-left: 0;
}

.section-title h1::before,
.section-title h1::after {
  position: absolute;
  content: "";
  width: 45px;
  height: 5px;
  bottom: 0;
  background: var(--dark);
}

.section-title.text-start h1::before {
  display: none;
}

/*** About ***/
@media (min-width: 992px) {
  .container.about {
    max-width: 100% !important;
  }

  .about-text {
    padding-right: calc(((100% - 960px) / 2) + 0.75rem);
  }
}

@media (min-width: 1200px) {
  .about-text {
    padding-right: calc(((100% - 1140px) / 2) + 0.75rem);
  }
}

@media (min-width: 1400px) {
  .about-text {
    padding-right: calc(((100% - 1320px) / 2) + 0.75rem);
  }
}

/*** Service ***/
.service-item img {
  transition: 0.5s;
  width: 100%; /* Ensures the image fits the container */
  height: 300px; /* Set a fixed height */
  object-fit: cover; /* Ensures the image scales properly without distortion */
}

.service-item:hover img {
  transform: scale(1.1);
}

/*** Feature ***/
@media (min-width: 992px) {
  .container.feature {
    max-width: 100% !important;
  }

  .feature-text {
    padding-left: calc(((100% - 960px) / 2) + 0.75rem);
  }
}

@media (min-width: 1200px) {
  .feature-text {
    padding-left: calc(((100% - 1140px) / 2) + 0.75rem);
  }
}

@media (min-width: 1400px) {
  .feature-text {
    padding-left: calc(((100% - 1320px) / 2) + 0.75rem);
  }
}

/*** Project Portfolio ***/
#portfolio-flters li {
  display: inline-block;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  transition: 0.5s;
  border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
  color: var(--primary);
  border-color: var(--primary);
}

/* Add similar styles for team filters */
#team-filters li {
  display: inline-block;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  transition: 0.5s;
  border-bottom: 2px solid transparent;
}

#team-filters li:hover,
#team-filters li.active {
  color: var(--primary);
  border-color: var(--primary);
}

.portfolio-item img {
  transition: 0.5s;
  width: 100%;
  height: 250px; /* Set a fixed height */
  object-fit: cover; /* Ensures the image scales properly */
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

/*** Quote ***/
@media (min-width: 992px) {
  .container.quote {
    max-width: 100% !important;
  }

  .quote-text {
    padding-right: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .contact.quote {
    padding-left: calc(((100% - 1140px) / 2) + 0.75rem);
  }
}

@media (min-width: 1400px) {
  .contact.quote {
    padding-left: calc(((100% - 1320px) / 2) + 0.75rem);
  }
}

/*** Team ***/
.team-item {
  height: 400px;
  position: relative;
}

.team-item img {
  height: 300px;
  width: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.team-item:hover img {
  transform: scale(1.1);
}

/* Adjust the team-social buttons to be on the side of the image */
.team-social {
  position: absolute;
  top: 50%;
  left: 10px; /* Adjusted to ensure visibility */
  transform: translateY(-50%);
  display: flex;
  flex-direction: column; /* Stack buttons vertically */
  gap: 10px; /* Add spacing between buttons */
  z-index: 10; /* Ensure it appears above other elements */
  visibility: visible; /* Ensure it's not hidden */
  opacity: 1; /* Ensure it's fully visible */
}

.team-social .btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #fff;
  color: #007bff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.team-social .btn:hover {
  background-color: #007bff;
  color: #fff;
}

/*** Testimonial ***/
.testimonial-carousel::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

.testimonial-carousel::after {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

@media (min-width: 768px) {
  .testimonial-carousel::before,
  .testimonial-carousel::after {
    width: 200px;
  }
}

@media (min-width: 992px) {
  .testimonial-carousel::before,
  .testimonial-carousel::after {
    width: 300px;
  }
}

.testimonial-carousel .owl-item .testimonial-text {
  border: 5px solid var(--light);
  transform: scale(0.8);
  transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
  transform: scale(1);
}

/*** Contact ***/
@media (min-width: 992px) {
  .container.contact {
    max-width: 100% !important;
  }

  .contact-text {
    padding-left: calc(((100% - 960px) / 2) + 0.75rem);
  }
}

@media (min-width: 1200px) {
  .contact-text {
    padding-left: calc(((100% - 1140px) / 2) + 0.75rem);
  }
}

@media (min-width: 1400px) {
  .contact-text {
    padding-left: calc(((100% - 1320px) / 2) + 0.75rem);
  }
}

/*** Footer ***/
.footer {
  background: linear-gradient(rgba(53, 53, 53, 0.7), rgba(53, 53, 53, 0.7)),
    url(../img/footer.jpg) center center no-repeat;
  background-size: cover;
}

.footer .btn.btn-social {
  margin-right: 5px;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  border: 1px solid #ffffff;
  transition: 0.3s;
}

.footer .btn.btn-social:hover {
  color: var(--primary);
}

.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  color: #ffffff;
  font-size: 15px;
  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;
  margin-right: 10px;
}

.footer .btn.btn-link:hover {
  color: var(--primary);
  letter-spacing: 1px;
  box-shadow: none;
}

/* Ensure consistent height for carousel images */
.owl-carousel .owl-carousel-item img {
  height: 650px; /* Adjust the height as needed */
  object-fit: cover; /* Ensures the image scales properly */
}

/* Gallery section styling */
.portfolio-container {
  margin-bottom: 60px !important; /* Additional spacing before footer */
}

#blog-posts .post {
  margin-bottom: 30px; /* Add bottom margin to each gallery item */
  overflow: hidden; /* Prevents image overflow */
  border-radius: 8px; /* Optional: rounds corners of gallery items */
}

#blog-posts .post img {
  width: 100%;
  height: 250px; /* Set a consistent height */
  object-fit: cover; /* Ensures image properly fills the container */
  transition: transform 0.3s ease; /* Smooth hover effect */
}

#blog-posts .post img:hover {
  transform: scale(1.05); /* Slight zoom on hover */
}

/* Add spacing between gallery and footer */
.footer.mt-5 {
  margin-top: 5rem !important;
}

.career-item {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#home-gallery .position-relative {
  border: 5px solid #f8f9fa; /* Matches the border style of gallery posts */
  overflow: hidden;
  border-radius: 8px; /* Optional: Add rounded corners */
}

#home-gallery img {
  width: 100%;
  height: 250px; /* Set a consistent height */
  object-fit: cover; /* Ensures image properly fills the container */
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#home-gallery img:hover {
  transform: scale(1.1); /* Zoom effect on hover */
  opacity: 0.9; /* Slight opacity change on hover */
}

#home-gallery .mt-2 {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

/* Ensure consistent size for team-item */
.team-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 400px; /* existing fixed height */
}

.team-item > .text-center {
  min-height: 80px; /* fixed height for text container */
}

.team-item .overflow-hidden.position-relative {
  height: auto;
  width: 100%;
  overflow: visible;
}
