/* ===============================
   Project Cases Slider – FINAL
   =============================== */

.projectcases-section {
  padding: 70px 6%;
  background: #f6f8fb;
}

/* ===== Title ===== */
.projectcases-section h2 {
  font-size: 32px;
  margin-bottom: 28px;
  text-align:center;
  font-weight: 500;
}

/* ===== Tabs + Arrows ===== */
.projectcases-tabs {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.pc-tab {
  padding: 10px 22px;
  border-radius: 30px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.pc-tab:hover {
  border-color: #1e6cff;
  color: #1e6cff;
}

.pc-tab.active {
  background: #1e6cff;
  color: #fff;
  border-color: #1e6cff;
}

/* ===== Arrows ===== */
.pc-arrows {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.pc-arrows button {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid #1e6cff;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pc-arrows button:hover {
  background: #1e6cff;
  color: #fff;
}

/* ===== Slider Viewport ===== */
.pc-viewport {
  overflow: hidden;
  position: relative;
  width: 100%;
  min-height: 420px;
}

/* ===== Track ===== */
.pc-track {
  display: none;
  gap: 24px;
  will-change: transform;
}

/* ===== Cards ===== */
.pc-card {
  flex: 0 0 calc(50% - 12px);
  height: 420px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  background: #000;
}

/* Image */
.pc-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.pc-card:hover img {
  transform: scale(1.06);
}

/* Overlay */
.pc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.15),
    transparent
  );
}

/* Info */
.pc-info {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  color: #fff;
}

.pc-info h3 {
  font-size: 22px;
  margin-bottom: 6px;
  font-weight: 600;
}

.pc-info p {
  font-size: 14px;
  opacity: 0.9;
}

/* ===============================
   RESPONSIVE
   =============================== */

/* Tablets */
@media (max-width: 1024px) {
  .projectcases-section {
    padding: 60px 5%;
  }

  .pc-card {
    height: 380px;
  }

  .pc-info h3 {
    font-size: 20px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .projectcases-tabs {
    gap: 10px;
  }

  .pc-arrows {
    width: 100%;
    justify-content: flex-end;
    margin-top: 10px;
  }

  .pc-card {
    flex: 0 0 100%;
    height: 320px;
  }

  .pc-viewport {
    min-height: 320px;
  }

  .pc-info {
    bottom: 18px;
    left: 18px;
  }

  .pc-info h3 {
    font-size: 18px;
  }

  .pc-info p {
    font-size: 13px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .projectcases-section h2 {
    font-size: 28px;
  }

  .pc-tab {
    padding: 8px 16px;
    font-size: 14px;
  }

  .pc-arrows button {
    width: 40px;
    height: 40px;
  }
}