.colored-bg {
  height: 550px;
  position: absolute;
  width: 40%;
  background: #ebedec;
}

.projects-carousel-caption {
  text-align: left;
  margin-top: 15px;
  padding: 0 10px;
  display: block !important;
  position: relative;
  background: transparent;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.1s ease, visibility 0.1s ease; /* Γρήγορο transition για εξαφάνιση */
}

.projects-carousel-caption h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #0b0b0b;
}

.projects-carousel-caption p {
  font-size: 14px;
  color: #666;
}

.recent-carousel-wrapper {
  position: relative;
}

.recent-carousel-title-wrapper {
  padding-left: 90px;
  position: absolute;
  top: -35px;
  color: #000000;
}
.recent-carousel-title {
  font-size: 50px;
  font-weight: bold;
  padding-bottom: 7px;
  border-bottom: 6px solid #000000;
}
.recent-left-arrow {
  position: absolute;
  bottom: 35px;
  left: 90px;
  cursor: pointer;
}
.recent-carousel-wrapper .cycle-nav {
	position: absolute;
	top: 39%;
	transform: translate(-50%);
	z-index: 10;
	background: #e6161c;
	color: #fff !important;
	border: none;
	padding: 10px 15px;
	cursor: pointer;
	font-size: 18px;
}

.recent-carousel-wrapper .cycle-nav::before {
  content: "\e900";
  font-family: "icomoon";
  font-size: 40px;
  opacity: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%)
  
}
.recent-carousel-wrapper .cycle-nav {
  background: #e6161c;
  padding: 0;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  right: 145px;
  left: auto;
}

/* Carousel styles */
.recent-projects-carousel {
  max-width: 1140px;
  margin: 0 0 0 auto;
  overflow: hidden;
  padding-top: 50px;
  padding-bottom: 20px;
}

/* Προσαρμοσμένα styles για το carousel */
.recent-projects-carousel .slick-track {
  display: flex !important; /* Σημαντικό: Παίρνουμε τον έλεγχο των slides */
  align-items: center;
}

/* Πρότυπο Στυλ του Carousel */
.recent-projects-carousel .slick-slide {
  flex: 0 0 auto;
  margin-right: 20px;
  box-sizing: border-box;
}

.recent-projects-carousel .slick-slide:last-child {
  margin-right: 0;
}

/* Προσαρμόστε τα ίδια τα slides */
.recent-projects-carousel img {
  width: 100%; /* Οι εικόνες να προσαρμόζονται στο πλάτος του slide */
  height: auto; /* Διατήρηση αναλογιών εικόνας */
}

.recent-projects-carousel .slick-list {
  padding: 0 90px;
}

.recent-projects-carousel.loading {
  opacity: 0.5;
  pointer-events: none;
}

.recent-projects-carousel.loading .projects-carousel-item {
  opacity: 0.5;
}

.recent-projects-carousel.loading .projects-carousel-caption {
  display: none;
}

.recent-projects-carousel.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Layout */
@media (max-width: 767px) {
  .colored-bg{
    width: 50%;
    height: 300px;
    top: 20px;
  }
  .recent-carousel-wrapper .cycle-nav {
    width: 60px;
    height: 60px;
    right: 45px;
    left: auto;
  }
  .recent-carousel-wrapper .cycle-nav::before {
    font-size: 22px;
  }
  .recent-left-arrow {
    position: absolute;
    bottom: 30px;
    left: 15px;
    cursor: pointer;
  }
  .recent-left-arrow::before {
    font-size: 30px;
  }
  .projects-carousel-caption {
    margin-top: 15px;
    padding: 0 0 0 60px;
    width: 280px;
  }
  .recent-projects-carousel .slick-list {
    padding: 0 40px;
  }
  .recent-carousel-title-wrapper {
    padding-left: 20px;
    width: 300px;
    top:-20px;
  }
  .header-right{
    display: none;
  }
  .search-container{
    display: none;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .header-right{
    display: none;
  }
  .colored-bg{
    width: 50%;
    height: 470px;
  }
  .recent-projects-carousel .slick-list {
    padding: 0 70px;
  }
  .recent-carousel-wrapper .cycle-nav {
    width: 100px;
    height: 100px;
    right: 100px;
    left: auto;
  }
  .recent-left-arrow {
    bottom: 20px;
    left: 10px;
  }
  .projects-carousel-caption {
    padding: 0 0 0 100px;
  }
  .search-container{
    display: none;
  }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .search-container{
    display: none;
  }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  #elementor-popup-modal-14567 .elementor-hidden-laptop{
    display: none;
  }
  .header-mobile{
    display: none;
  }
  .recent-projects-carousel {
    max-width: 1050px;
  }
  .colored-bg {
    height: 600px;
  }   
}

.recent-carousel-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 32px;
  font-weight: 700;
  color: #333;
}

/* Fix for ajax-loader.gif 404 */
.slick-loading .slick-list {
  background: none;
}

/* Προσαρμοσμένα styles για το spinner */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.recent-projects-carousel.loading {
  opacity: 0.5;
  pointer-events: none;
}

.recent-projects-carousel.loading .projects-carousel-item {
  opacity: 0.5;
}

.recent-projects-carousel.loading .projects-carousel-caption {
  display: none;
}

.recent-projects-carousel.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Διασφάλιση ότι τα captions στο ενεργό slide είναι πάντα κρυμμένα */
.slick-current .projects-carousel-caption {
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.1s ease, visibility 0.1s ease !important; /* Γρήγορο transition για εξαφάνιση */
}

/* Προσθήκη κλάσης για τα ορατά captions με πιο αργό transition για εμφάνιση */
.caption-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transition: opacity 0.1s ease, visibility 0.1s ease !important; /* Πιο αργό transition για εμφάνιση */
}