.projects{ padding: 90px 0 120px; }
.projectsHead{ text-align:center; }

.projectsSub{
  margin: 16px auto 28px;
  max-width: 720px;
  color: var(--muted);
  font-weight:300;
  font-size: 20px;
  line-height: 1.8;
}

/* Filter pills */
.filters{
  display:flex;
  justify-content:center;
  gap:18px;
  flex-wrap:wrap;
  margin-bottom: 46px;
}

.pill{
  height:54px;
  padding: 0 26px;
  border-radius:999px;
  background: transparent;
  border: 2px solid var(--pink-2);
  color: var(--text);
  font-size: 20px;
  font-weight:600;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.pill:hover{ transform: translateY(-2px); }
.pill.isActive{ background: var(--pink-2); color:#fff; }

/* Grid (tight + responsive) */
.projectsGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 44px);
  align-items: start;
}

/* Cards */
.projectCard{
  border-radius: 22px;
  overflow: visible;
}

.cardTop{
  display:flex;
  justify-content:center;
  align-items:flex-end;
  min-height: 220px;
  padding: 10px 8px 0;
}

.projectImg{
  width: min(240px, 90%);
  height: auto;
  display:block;
  transform: rotate(-8deg);
  filter: drop-shadow(0 18px 18px rgba(0,0,0,.12));
}

.cardBar{
  margin-top: 18px;
  height: 74px;
  border-radius: 999px;
  background: var(--pink-1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.cardInfo{ text-align: center; color: var(--text); }

.cardTitle{
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
}

.cardDesc{
  margin: 0;
  color: var(--muted);
  font-weight:300;
  font-size: 14px;
  line-height: 1.6;
}
.projectCardLink{
  display: block;
  text-decoration: none;
  color: inherit;
}

.projectGalleryBtn.prev{
  left: 12px;
  right: auto;
}

.projectGalleryBtn.next{
  right: 12px;
  left: auto;
}
html[dir="rtl"] .projectGalleryBtn.prev{
  left: 12px;
  right: auto;
}

html[dir="rtl"] .projectGalleryBtn.next{
  right: 12px;
  left: auto;
}