:root {
  --psc-primary: #006837;
  --psc-text: #1d1d1d;
  --psc-text-muted: #666;
  --psc-bg-card: transparent;
  --psc-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.psc-project-slider {
  padding: 0 0 60px 0;
  position: relative;
  overflow: hidden; /* Quan trọng để không bị tràn slide */
}

/* Đảm bảo các slide có độ cao bằng nhau */
.psc-project-slider .swiper-slide {
  height: auto;
  display: flex;
}

.psc-project-card {
  background: var(--psc-bg-card);
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--psc-transition);
}

.psc-project-content {
  padding: 0 0 25px 0;
  flex-grow: 1; /* Đẩy phần hình ảnh xuống dưới cùng nếu nội dung ngắn */
  display: flex;
  flex-direction: column;
}

.psc-project-title {
  margin: 0 0 10px 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--psc-primary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  /* Giới hạn 2 dòng để tiêu đề không làm lệch hàng */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.psc-project-title a {
  color: inherit;
  text-decoration: none;
}

.psc-project-desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--psc-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.psc-project-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
}

.psc-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--psc-transition);
}

.psc-project-card:hover .psc-project-image img {
  transform: scale(1.05);
}

/* Nút điều hướng giống các plugin khác */
.psc-project-nav {
  color: var(--psc-text) !important;
  background: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  top: 50%;
  margin-top: 50px; /* Đẩy xuống giữa phần hình ảnh */
  transition: var(--psc-transition);
  opacity: 0;
  visibility: hidden;
}

.psc-project-slider:hover .psc-project-nav {
  opacity: 1;
  visibility: visible;
}

.psc-project-nav:hover {
  background: var(--psc-primary);
  color: #fff !important;
}

.psc-project-nav:after {
  font-size: 18px;
  font-weight: bold;
}

.psc-project-nav.swiper-button-prev {
  left: 10px;
}
.psc-project-nav.swiper-button-next {
  right: 10px;
}

/* Pagination */
.psc-project-pagination {
  bottom: 0px !important;
}

.psc-project-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #ccc;
  opacity: 0.6;
}

.psc-project-pagination .swiper-pagination-bullet-active {
  background: var(--psc-primary);
  opacity: 1;
  width: 25px;
  border-radius: 5px;
}

@media (max-width: 1100px) {
  .psc-project-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .psc-project-title {
    font-size: 1rem;
  }
}
