.project-carousel-item {
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 66.67%;
  position: relative;
  text-align: left;
  background: #fff;
  margin: 0 15px;
  border-radius: 8px;
  overflow: visible; /* Changed from hidden to visible */
  transition: transform 0.3s ease;
}

.project-carousel-item:hover {
  transform: translateY(-5px);
}

.project-carousel-photo {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden; /* Moved overflow to photo container */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.project-carousel-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Changed back to cover for better image display */
  background: #fff;
}

.project-carousel-detail {
  position: absolute;
  bottom: 20px;
  right: 20px;
  text-align: right;
  z-index: 100;
  padding: 12px 16px;
  background: #ffffff;
  width: auto;
  min-width: 180px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.project-carousel-date {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #000;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 100;
  padding: 6px 12px;
  background: #ffffff;
  border-radius: 4px;
 
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.project-carousel-title {
  display: block !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  margin-bottom: 6px !important;
  color: #000 !important;
  line-height: 1.2 !important;
}

.project-carousel-category {
  display: block !important;
  font-size: 0.8rem !important;
  color: #555 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  font-weight: 500 !important;
}

/* Navigation Arrows - Modified to show navigation */
.owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 20px;
}

/* Show default Owl Carousel arrows */
.owl-prev,
.owl-next {
  display: block !important; /* Changed from none to block */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  background: rgba(161, 129, 103, 0.8) !important;
  color: white !important;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  transition: all 0.3s ease;
  pointer-events: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

.owl-prev:hover,
.owl-next:hover {
  background: rgba(161, 129, 103, 1) !important;
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.owl-prev {
  left: 10px;
}

.owl-next {
  right: 10px;
}

/* Style the navigation arrows using Font Awesome icons */
.owl-prev i,
.owl-next i {
  font-size: 1.2rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .project-carousel-item {
    padding-bottom: 100%; /* Even taller on mobile */
  }

  .project-carousel-title {
    font-size: 1.2rem;
  }

  .owl-nav {
    padding: 0 10px;
  }
  
  .owl-prev,
  .owl-next {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    font-size: 1.2rem;
  }
  
  .owl-prev,
  .owl-next i {
    font-size: 1rem;
  }
  
  .owl-prev {
    left: 5px;
  }
  
  .owl-next {
    right: 5px;
  }
}