/* ===============================
   CLEAN PROJECTS ADMIN LAYOUT
   =============================== */

.projects-admin-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 25px;
}

.project-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #111735;
  border: 1px solid #1b2145;
  border-radius: 10px;
  padding: 14px 20px;
  transition: background 0.2s ease, transform 0.1s ease;
}

.project-item:hover {
  background: #151b3a;
  transform: translateY(-1px);
}

.project-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #1f264f;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: visible;
  text-align: left;
}

.project-info h3 {
  margin: 0;
  font-size: 1rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-info .project-industry {
  font-size: 0.8rem;
  color: #8fa3ff;
}

/* ✅ Read More text expansion fix */
.project-description {
  color: #aaa;
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-height: 3.8em;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.project-description.expanded {
  max-height: 1000px;
  overflow: visible;
}

.read-more-btn {
  background: #1b2145;
  border: 1px solid #4b6ef5;
  color: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.8rem;
  align-self: flex-start;
  transition: all 0.2s ease;
}

.read-more-btn:hover {
  background: #4b6ef5;
  color: #0b0f19;
}

.project-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

/* ===============================
   BUTTON FIXES FOR PROJECT TABLE
   =============================== */
.projects-admin-table .project-actions .btn {
  all: unset;
  background: #4b6ef5;
  color: #fff;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  height: 28px;
  text-decoration: none;
  transition: background 0.2s ease;
  font-weight: 500;
}

.projects-admin-table .project-actions .btn:hover {
  background: #5a7dfd;
}

.projects-admin-table .project-actions .btn--danger {
  background: #ff4d4d;
}

.projects-admin-table .project-actions .btn--danger:hover {
  background: #e13c3c;
}
