/* Profile page: Collapsible details/summary for academic service */

.profile-service-details {
  margin: 1rem 0;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.profile-service-details:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.profile-service-details summary {
  padding: 0.75rem 1rem;
  cursor: pointer;
  background-color: #f8f9fa;
  font-weight: 600;
  color: #333;
  outline: none;
  list-style-position: inside;
  transition: background-color 0.2s ease;
}

.profile-service-details summary:hover {
  background-color: #f1f3f5;
  color: #007acc;
}

.profile-service-details[open] summary {
  border-bottom: 1px solid #e1e4e8;
  margin-bottom: 0.5rem;
}

/* Ensure list inside details has proper padding */
.profile-service-details ul {
  padding: 0 1rem 1rem 2.5rem;
  margin: 0;
}

.profile-service-details li {
  margin-bottom: 0.5rem;
  font-size: 0.95em;
}

.service-role {
  font-size: 0.7em;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background-color: #e8f5fe;
  color: #007acc;
  margin-left: 0.4rem;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid #cce5ff;
  white-space: nowrap;
}

.award-badge {
  font-size: 0.7em;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background-color: #fff9db;
  color: #856404;
  margin-left: 0.4rem;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid #ffeeba;
  white-space: nowrap;
}

/* Responsive adjustments */

@media (prefers-reduced-motion: reduce) {
  .profile-service-details {
    transition: none;
  }
}
