/* ===== Others Section ===== */
#othersSection {
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  background: #f9f9fb;
  padding: 0 16px 40px;
  color: #333;
  text-align: center;
}

/* Blue Header */
#othersSection h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  padding: 18px 0;
  background: #2575fc;
  color: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* Skills Filter */
#skillsFilterOptions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 12px;
}

#skillsFilterOptions label {
  background: #fff;
  border: 1px solid #ddd;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#skillsFilterOptions label:hover {
  background: #2575fc;
  color: #fff;
  border-color: #2575fc;
}

#applyFilterBtn {
  background: #2575fc;
  color: #fff;
  padding: 7px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: 6px;
}

#applyFilterBtn:hover {
  background: #1a5cd8;
  transform: translateY(-2px);
}

/* Portfolio Cards Grid */
#othersList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); /* flexible columns */
  gap: 16px;
  margin-top: 20px;
  justify-items: center;
  max-width: 1200px; /* keeps grid centered */
  margin-left: auto;
  margin-right: auto;
}

/* Portfolio Card */
.portfolio-card {
  background: #fff;
  width: 100%;
  aspect-ratio: 3 / 4; /* enforce 3:4 ratio */
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* Profile Photo */
.portfolio-card img.passport {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #eee;
  margin: 0 auto 10px;
  background: #f9f9fb;
  flex-shrink: 0;
}

/* Text Inside */
.portfolio-card p {
  margin: 3px 0;
  font-size: 13.5px;
  color: #444;
  text-align: left;
}

.portfolio-card p b {
  color: #222;
}

.portfolio-card em {
  color: #666;
  font-size: 12.5px;
}

.small-help {
  font-size: 12px;
  color: #888;
  margin-top: auto; /* stick to bottom */
  font-style: italic;
  text-align: center;
}

/* Back Button */
#backFromOthersBtn {
  margin-top: 24px;
  background: #f44336;
  color: #fff;
  padding: 9px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

#backFromOthersBtn:hover {
  background: #d32f2f;
  transform: translateY(-2px);
}
/* Skills Filter Container */
#skillsFilterOptions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
}

/* Checkbox label styling */
#skillsFilterOptions label {
  background: #fff;
  border: 1px solid #ddd;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Checkbox input hidden but functional */
#skillsFilterOptions input[type="checkbox"] {
  accent-color: #2575fc; /* modern browsers */
  cursor: pointer;
}

/* Hover effect */
#skillsFilterOptions label:hover {
  background: #2575fc;
  color: #fff;
  border-color: #2575fc;
}

/* Apply same font as dashboard inside modal */
.portfolio-modal {
  font-family: 'Poppins', sans-serif;
  color: #333;
  font-size: 15px;
  line-height: 1.6;
}

/* Title / Name */
.portfolio-modal h2 {
  font-size: 22px;
  font-weight: 700;
  color: #2575fc;
  margin-bottom: 8px;
  text-align: center;
}

/* Section headers */
.portfolio-modal h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 14px;
  margin-bottom: 8px;
  color: #444;
  border-bottom: 2px solid #eee;
  padding-bottom: 4px;
}

/* Labels like Phone, Email, Skills */
.portfolio-modal p {
  margin: 4px 0;
  font-size: 14px;
}
.portfolio-modal b {
  font-weight: 600;
  color: #000;
}

/* Achievements */
.portfolio-modal ul {
  margin: 6px 0 0 18px;
}
.portfolio-modal ul li {
  font-size: 14px;
  margin-bottom: 4px;
}

/* Project collapsible details */
.portfolio-modal details {
  margin: 8px 0;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 8px;
  font-size: 14px;
}
.portfolio-modal summary {
  cursor: pointer;
  font-weight: 600;
  color: #2575fc;
}
