/* =========================================================
   Projects Page ,  Premium Dark Portfolio
   Served at /projects/latest
   ========================================================= */

/* ---------- Page base ---------- */
.pk-page {
  /* background: #0097b2; */
  color: #fff;
  min-height: 100vh;
  padding: 5rem 3rem 7rem;
}



/* ---------- "WORK" heading ---------- */
.pk-header {
  margin-bottom: 3rem;
}

.pk-title {
  font-size: 45px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  text-transform: capitalize;
  margin: 0;
  line-height: 1;
}

/* ---------- Mobile pills (hidden on desktop) ---------- */
.pk-pills-wrap {
  display: none;
  margin-bottom: 2rem;
}

.pk-pills {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pk-pills::-webkit-scrollbar {
  display: none;
}

.pk-pill {
  white-space: nowrap;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  background: none;
  transition: color 0.2s, border-color 0.2s;
}

.pk-pill.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

/* ---------- Two-column layout ---------- */
.pk-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0 4rem;
  align-items: start;
}

/* ---------- Sticky sidebar ---------- */
.pk-sidebar {
  position: sticky;
  top: 2rem;
}

.pk-filter-group {
  padding-top: 0.25rem;
}

.pk-filter-label {
  display: block;
  font-size: 18px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding: 0 14px;
}

.pk-filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pk-filter-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  user-select: none;
}

.pk-filter-item:first-child {
  border-top: 0.5px solid rgba(255, 255, 255, 0.07);
}

.pk-filter-item:hover {
  color: rgba(255, 255, 255, 0.65);
}

.pk-filter-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.pk-check {
  display: none;
  font-size: 12px;
  color: #fff;
}

.pk-filter-item.active .pk-check {
  display: inline;
}

/* ---------- Project list ---------- */
.pk-list {
  min-width: 0;
}

/* ---------- Project card ---------- */
.pk-card {
  padding: 2.5rem 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  transition: opacity 0.25s ease;
}

.pk-card:first-child {
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}

.pk-card.pk-hidden {
  display: none;
}

/* Image block */
.pk-card__visual {
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  /* background: #111; */
  margin-bottom: 1.25rem;
}

.pk-card__visual a {
  display: block;
}

.pk-card__visual img {
  width: 100%;
  aspect-ratio: 12 / 6.5;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 15px;
  transition: transform 0.5s ease;
}

.pk-card:hover .pk-card__visual img {
  transform: scale(1.02);
}

/* Meta row */
.pk-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

.pk-card__info {
  min-width: 0;
}

.pk-card__name {
  font-size: 25px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.pk-card__desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
  margin: 0 0 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pk-card__tags {
  font-size: 15px;
  color: #fff;
  text-transform: capitalize;
  letter-spacing: 0.05em;
  margin: 0;
}

/* CTA circle */
.pk-card__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  flex-shrink: 0;
}

.pk-card__circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0.5px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: border-color 0.2s, background 0.2s;
}

.pk-card__view {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.pk-card__cta:hover .pk-card__circle {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.04);
}

.pk-card__cta:hover .pk-card__view {
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Responsive ,  mobile ---------- */
@media (max-width: 767px) {
  .pk-page {
    padding: 3rem 1.25rem 5rem;
  }

  .pk-pills-wrap {
    display: block;
  }

  .pk-layout {
    grid-template-columns: 1fr;
  }

  .pk-sidebar {
    display: none;
  }

  .pk-card__name {
    font-size: 16px;
  }
  .pk-card__desc{
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .pk-card__tags {
    display: none;
  }
}
