/* Additional fixes for carousels in Next.js */

/* Fix for Owl Carousel in Next.js */
.owl-carousel {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.owl-carousel .owl-stage-outer {
  overflow: hidden;
}

.owl-carousel.owl-loaded {
  display: block;
}

.owl-carousel .owl-item {
  float: left;
}

.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
  background-color: #f5f5f5;
  color: #222222;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: all 500ms ease;
  
}

.owl-carousel .owl-nav button.owl-prev {
  left: -20px;
}

.owl-carousel .owl-nav button.owl-next {
  right: -20px;
}

.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
  background-color: #f7a723;
  color: #ffffff;
}

/* Project Carousel Specific Fixes */
.project-carousel-v2 .single-project-style2 {
  position: relative;
  display: block;
  transition: all 500ms ease;
  margin-bottom: 30px;
}

.project-carousel-v2 .single-project-style2 .img-holder {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: #000000;
}

.project-carousel-v2 .single-project-style2 .img-holder img {
  width: 100%;
  transition: all 700ms ease;
  transform: scale(1.0);
}

.project-carousel-v2 .single-project-style2:hover .img-holder img {
  transform: scale(1.2);
  opacity: 0.5;
}

.project-carousel-v2 .single-project-style2 .overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 500ms ease;
}

.project-carousel-v2 .single-project-style2:hover .overlay-content {
  opacity: 1;
  visibility: visible;
}

.project-carousel-v2 .single-project-style2 .overlay-content .inner-content {
  position: relative;
  display: block;
  text-align: center;
  transform: translateY(100px);
  transition: all 800ms ease 100ms;
}

.project-carousel-v2 .single-project-style2:hover .overlay-content .inner-content {
  transform: translateY(0px);
}

.project-carousel-v2 .single-project-style2 .overlay-content .inner-content .links-box {
  position: relative;
  display: block;
}

.project-carousel-v2 .single-project-style2 .overlay-content .inner-content .links-box ul {
  position: relative;
  display: block;
}

.project-carousel-v2 .single-project-style2 .overlay-content .inner-content .links-box ul li {
  position: relative;
  display: inline-block;
  margin: 0 5px;
}

.project-carousel-v2 .single-project-style2 .overlay-content .inner-content .links-box ul li a {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 50px;
  background: #ffffff;
  border-radius: 50%;
  color: #222222;
  font-size: 16px;
  line-height: 50px;
  transition: all 500ms ease;
}

.project-carousel-v2 .single-project-style2 .overlay-content .inner-content .links-box ul li a:hover {
  background: #f7a723;
  color: #ffffff;
}

.project-carousel-v2 .single-project-style2 .title-holder {
  position: relative;
  display: block;
  padding-top: 24px;
}

.project-carousel-v2 .single-project-style2 .title-holder span {
  position: relative;
  display: block;
  color: #f7a723;
  font-size: 14px;
  line-height: 14px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.project-carousel-v2 .single-project-style2 .title-holder h3 {
  position: relative;
  display: block;
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  margin: 0;
}

.project-carousel-v2 .single-project-style2 .title-holder h3 a {
  color: #222222;
  transition: all 500ms ease;
}

.project-carousel-v2 .single-project-style2 .title-holder h3 a:hover {
  color: #f7a723;
}

/* Fix for icons */
.icon-link:before {
  content: "\e908";
  font-family: 'icomoon';
}

.icon-arrow:before {
  content: "\e910";
  font-family: 'icomoon';
}

/* Custom CSS fixes for carousels in Next.js */

/* Owl Carousel - Common fixes */
.owl-carousel {
  position: relative;
  display: block;
  width: 100%;
  touch-action: manipulation;
}

.owl-carousel .owl-stage-outer {
  position: relative;
  overflow: hidden;
  -webkit-transform: translate3d(0, 0, 0);
}

.owl-carousel .owl-item {
  position: relative;
  min-height: 1px;
  float: left;
  -webkit-backface-visibility: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.owl-carousel .owl-item img {
  display: block;
  width: 100%;
  -webkit-transform-style: preserve-3d;
}

.owl-carousel .owl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  z-index: 10;
}

.owl-carousel .owl-nav button {
  position: absolute;
  top: 0;
  background: rgba(255, 255, 255, 0.5) !important;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 45px;
  color: #333 !important;
  font-size: 20px !important;
  transition: all 0.3s ease;
}

.owl-carousel .owl-nav button:hover {
  background: rgba(255, 255, 255, 0.8) !important;
}

.owl-carousel .owl-nav button.owl-prev {
  left: 15px;
}

.owl-carousel .owl-nav button.owl-next {
  right: 15px;
}

.owl-carousel .owl-dots {
  text-align: center;
  margin-top: 20px;
}

.owl-carousel .owl-dots .owl-dot {
  display: inline-block;
  margin: 0 5px;
}

.owl-carousel .owl-dots .owl-dot span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  display: inline-block;
  transition: all 0.3s ease;
}

.owl-carousel .owl-dots .owl-dot.active span,
.owl-carousel .owl-dots .owl-dot:hover span {
  background: #e9212e;
}

/* Project Carousel fixes */
.project-carousel .single-project-style1 {
  margin: 0 15px;
}

.project-carousel .owl-item {
  padding: 0;
}

/* Testimonial Carousel fixes */
.testimonial-carousel .single-testimonial-style1 {
  padding: 0 15px;
}

/* Brand Items Carousel fixes */
.brand-items-carousel .single-brand-item {
  text-align: center;
  padding: 0 15px;
}

/* Working process carousel fixes */
.working-process-carousel .single-working-process-item {
  padding: 20px;
}

/* About carousel box fixes */
.about-carousel-box {
  overflow: hidden;
}

.about-carousel-box .owl-stage-outer {
  overflow: hidden;
}

/* Fix for owl carousel transitions */
.owl-carousel .animated {
  -webkit-animation-duration: 1000ms;
  animation-duration: 1000ms;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

/* Brochures carousel box fixes */
.brochures-carousel-box .single-item {
  margin: 0 15px;
}

/* Additional specific fixes for the Recently Project Area */
.recently-project-area {
  position: relative;
  display: block;
  padding-top: 100px;
  padding-bottom: 70px;
  z-index: 1;
}

.recently-project-area .sec-title {
  margin-bottom: 32px;
  margin-top: 0;
}

.recently-project-area .more-project-button {
  margin-top: 12px;
}

.recently-project-area .more-project-button a {
  color: #222222;
  font-size: 16px;
  font-weight: 600;
  text-transform: capitalize;
  font-family: 'Poppins', sans-serif;
  transition: all 200ms linear;
  transition-delay: 0.1s;
}

.recently-project-area .more-project-button a:hover {
  color: #e9212e;
}

.recently-project-area .more-project-button a span:before {
  position: relative;
  top: 0px;
  display: inline-block;
  padding-right: 1px;
  color: #e9212e;
  font-size: 14px;
  line-height: 14px;
  transition: all 0.2s linear;
  transition-delay: 0.1s;
}

.recently-project-area .more-project-button a:hover span:before {
  padding-right: 6px;
}

.recently-project-area .view-all-project-button {
  position: relative;
  display: block;
  margin-top: 32px;
}

.recently-project-area .view-all-project-button p {
  margin: 0;
  color: #222222;
  font-size: 16px;
  line-height: 24px;
}

.recently-project-area .view-all-project-button p a {
  display: inline-block;
  padding-left: 7px;
  color: #e9212e;
  font-weight: 500;
  transition: all 200ms linear;
  transition-delay: 0.1s;
}

.recently-project-area .view-all-project-button p a span:before {
  position: relative;
  top: 2px;
  display: inline-block;
  padding-left: 2px;
  font-size: 16px;
  line-height: 10px;
}

/* Single Project Style1 */
.single-project-style1 {
  position: relative;
  display: block;
  overflow: hidden;
  margin-bottom: 30px;
}

.single-project-style1 .img-holder {
  position: relative;
  display: block;
  overflow: hidden;
}

.single-project-style1 .img-holder img {
  width: 100%;
  transform: scale(1.0);
  transition: all 700ms ease;
}

.single-project-style1:hover .img-holder img {
  transform: scale(1.2);
}

.single-project-style1 .overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  background: rgba(0, 0, 0, 0.70);
  transform: scaleX(0);
  transition: all 700ms ease;
  z-index: 3;
}

.single-project-style1:hover .overlay-content {
  transform: scaleY(1);
}

.single-project-style1 .overlay-content .inner-content {
  display: table;
  width: 100%;
  height: 100%;
}

.single-project-style1 .overlay-content .inner-content .link-box {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  transform: scale(0);
  transition: all 500ms ease 500ms;
  opacity: 0;
}

.single-project-style1:hover .overlay-content .inner-content .link-box {
  transform: scale(1);
  transition-delay: 0.7s;
  opacity: 1;
}

.single-project-style1 .overlay-content .inner-content .link-box a {
  background: #ffffff;
  display: inline-block;
  width: 180px;
  height: 55px;
  line-height: 55px;
  text-align: center;
  border-radius: 0;
  color: #222222;
  font-size: 16px;
  font-weight: 500;
  text-transform: capitalize;
  transition: all 200ms linear;
  transition-delay: 0.1s;
  border: none;
}

.single-project-style1 .overlay-content .inner-content .link-box a:hover {
  background: #e9212e;
  color: #ffffff;
}

.single-project-style1 .overlay-content .inner-content .link-box a span:before {
  display: inline-block;
  padding-right: 1px;
  position: relative;
  top: 0px;
  font-size: 14px;
  line-height: 14px;
  transition: all 0.2s linear;
  transition-delay: 0.1s;
}

.single-project-style1 .overlay-content .inner-content .link-box a:hover span:before {
  padding-right: 6px;
}

.single-project-style1 .title-box {
  position: absolute;
  left: 20px;
  bottom: 14px;
  right: 20px;
  text-align: center;
  opacity: 1;
  transform: translateY(100%);
  transition: all 800ms ease 500ms;
  z-index: 3;
}

.single-project-style1:hover .title-box {
  opacity: 0;
  transform: translateY(0%);
  transition: all 500ms ease 500ms;
}

.single-project-style1 .title-box span {
  display: inline-block;
  color: #e9212e;
  font-size: 14px;
  line-height: 16px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
}

.single-project-style1 .title-box h3 {
  color: #ffffff;
  font-size: 18px;
  line-height: 22px;
  font-weight: 500;
  margin: 8px 0 0;
} 