/* ================= SECTION ================= */
.np-project-showcase {
  padding: 60px 0;
  background: #fff;
}

/* ================= HEADING ================= */
.np-title {
  font-size: 32px;
  font-weight: 600;
  color: #f90505;
}

.np-subtitle {
  color: #777;
  font-size: 14px;
  margin-top: 6px;
}

/* ================= SCROLL ================= */
.np-scroll-wrapper {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.np-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

/* ================= CARD ================= */
.np-card {
  min-width: 280px;
  max-width: 300px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition: 0.3s ease;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.np-card:hover {
  transform: translateY(-6px);
}

/* ================= IMAGE ================= */
.np-img {
  height: 180px;
  overflow: hidden;
}

.np-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}

.np-card:hover img {
  transform: scale(1.08);
}

/* ================= CONTENT ================= */
.np-content {
  padding: 14px;
}

.np-content h4 {
  font-size: 17px;
  margin-bottom: 4px;
}

.np-content p {
  font-size: 13px;
  color: #666;
}

/* ================= ACTIONS ================= */
.np-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 10px;
}

/* View Details */
.np-link {
  font-size: 13px;
  color: #d32f2f;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.np-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1px;
  background: #d32f2f;
  transition: 0.3s;
}

.np-link:hover::after {
  width: 100%;
}

/* Button */
.np-btn {
  padding: 7px 14px;
  background: #d32f2f;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 12px;
  cursor: pointer;
  transition: 0.3s;
  white-space: nowrap;
}

.np-btn:hover {
  background: #b71c1c;
}

/* ================= MODAL ================= */
.np-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99999;

  align-items: center;
  justify-content: center;
}

/* Modal Box */
.np-modal-content {
  background: #fff;
  padding: 20px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  position: relative;
}

/* Close */
.np-close {
  position: absolute;
  right: 12px;
  top: 8px;
  cursor: pointer;
  font-size: 20px;
}

/* ================= FORM ================= */
.np-modal input,
.np-modal textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 9px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
}

.np-modal button {
  width: 100%;
  padding: 10px;
  background: #d32f2f;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
}

/* ================= DETAILS MODAL ================= */
.np-details-modal img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.np-details-modal ul {
  padding-left: 18px;
  font-size: 13px;
  color: #555;
}

.np-details-modal button {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  background: #d32f2f;
  color: #fff;
  border: none;
  border-radius: 8px;
}

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

/* Tablets */
@media (min-width: 576px) {
  .np-title {
    font-size: 34px;
  }

  .np-card {
    min-width: 300px;
  }

  .np-img {
    height: 190px;
  }
}

/* Small Laptops */
@media (min-width: 768px) {
  .np-title {
    font-size: 36px;
  }

  .np-content h4 {
    font-size: 18px;
  }

  .np-img {
    height: 200px;
  }
}

/* Desktop */
@media (min-width: 992px) {
  .np-project-showcase {
    padding: 80px 0;
  }

  .np-title {
    font-size: 40px;
  }

  .np-card {
    min-width: 320px;
  }

  .np-img {
    height: 220px;
  }
}

/* Large Screens */
@media (min-width: 1200px) {
  .np-card {
    min-width: 340px;
  }

  .np-img {
    height: 240px;
  }
}
