/**
 * Projects Carousel Styles
 * 
 * @package Plus_Modiresabz
 * @since 1.0.0
 */

.cproj-wrap { 
  position: relative;
  width: 100%;
  max-width: 100%;
}

.cproj-swiper { 
  overflow: hidden;
  width: 100%;
}

.cproj-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cproj-thumb {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 !important;
  background: #0d1117;
}

.cproj-thumb::before {
  content: "";
  display: block;
  padding-top: 68%; /* نسبت تصویر */
}

.cproj-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%!important;
  object-fit: cover;
  transition: filter 0.35s ease, transform 0.35s ease;
}

.cproj-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cproj-arrow {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 193, 7, 0.95);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transform: translateY(6px);
  transition: transform 0.25s ease;
}

.cproj-title {
    font-size: 17px;
    color: #ffffff;
    text-align: center;
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background: #000000bd;
    backdrop-filter: blur(2px);
}

.cproj-card:hover .cproj-thumb img {
  filter: blur(3px) brightness(0.9);
  transform: scale(1.04);
}

.cproj-card:hover .cproj-overlay {
  opacity: 1;
}

.cproj-card:hover .cproj-arrow {
  transform: translateY(0);
}

.cproj-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}

.cproj-nav:hover { 
  background: rgba(255, 193, 7, 0.95); 
  transform: translateY(-1px); 
}

.cproj-nav:active { 
  transform: translateY(0); 
}

.cproj-nav svg { 
  width: 20px; 
  height: 20px; 
}

.cproj-nav-prev { 
  left: 8px; 
}

.cproj-nav-next { 
  right: 8px; 
}

/* فاصله بین اسلایدها */
.cproj-swiper .swiper-slide { 
  height: auto; 
}

@media (max-width: 767px) {
  .cproj-nav { 
    width: 38px; 
    height: 38px; 
    margin-top: -19px; 
  }
  
  .cproj-nav svg { 
    width: 18px; 
    height: 18px; 
  }
}
