/* Basic reset for plugin elements */
.rooydano-projects-wrap * { box-sizing: border-box; }

/* Filter buttons */
.projects-filter {
   text-align: right;
   direction: rtl; 
   margin-bottom: 24px;
}
.filter-btn {
  display: inline-block;
  direction: rtl;
  background: #f5f5f6;
  border: 0;
  padding: 8px 14px;
  margin: 6px 6px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease;
  font-weight: 600;
}
.filter-btn.active, .filter-btn:focus, .filter-btn:hover {
  background: #2d6cdf;
  color: #fff;
  outline: none;
  transform: translateY(-2px);
}

/* Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
  
}

/* Responsive */
@media (max-width: 1000px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .projects-grid { grid-template-columns: 1fr; } }

/* Card */
.project-card {
  background: #ffffff;
  border-radius: 35px 0 35px 0 ;
  box-shadow: 0 6px 18px rgba(18, 23, 40, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .24s ease, box-shadow .24s ease, opacity .3s ease;
  min-height: 100%;
}

/* Card link */
.project-card .project-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.thumb { width: 100%; flex: 0 0 auto; }
.thumb img { width: 100%; height: 250px; object-fit: cover; display: block;object-position: center; }

/* Info area */
.project-info { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; justify-content: space-between; }

/* Title row with client logo */
.title-row { display: flex; align-items: center;justify-content: space-between; gap: 12px; direction: rtl;}
.client-logo { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.client-logo img { width: 100%; height: 100%; order: 2;flex-shrink: 0; object-fit: cover; display: block; }

/* Title text */
.project-title { font-size: 1rem; flex: 1; text-align: right; line-height: 1.3; margin: 0; font-weight: 700; color: #111; }

/* Categories badges */
.categories { margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-start; }
.categories .proj-cat { font-size: 0.85rem; padding: 5px 8px; background: #f2f4f8; border-radius: 40px; color: #444;   direction: rtl;
  text-align: right;}

/* Hover effect */
.project-card:hover { transform: translateY(-6px); box-shadow: 0 10px 30px rgba(18, 23, 40, 0.09); }

/* Hide/Show via JS */
.project-card.is-hidden { opacity: 0; transform: translateY(6px); pointer-events: none; height: 0; margin: 0; padding: 0; overflow: hidden; transition: opacity .25s ease, transform .25s ease, height .3s ease, margin .3s ease, padding .3s ease; }

/* Accessible focus */
.project-link:focus { outline: 3px solid rgba(45,108,223,0.18); outline-offset: 3px; border-radius: 10px; }

/* Small text fallback */
.no-projects { color: #666; padding: 16px; text-align: center; }