/* ========================================
   People Directory & Organization Pages
   Modern design aligned with Data Stories
   ======================================== */

/* --- Breadcrumb --- */
.people-breadcrumb .breadcrumb {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0.5rem 0 !important;
  margin: 0 0 1rem 0 !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.people-breadcrumb .breadcrumb > li a {
  color: var(--text-secondary, #6c757d);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.people-breadcrumb .breadcrumb > li a:hover {
  color: var(--unesco-blue, #0072BC);
}

.people-breadcrumb .breadcrumb > li.active a {
  color: var(--unesco-blue, #0072BC);
  font-weight: 600;
}

/* --- Header Banner (reuses section-title from data-stories) --- */
.people-section-title {
  height: 240px;
  margin-bottom: 2rem !important;
}

.people-section-title .section-title-bg {
  background-image: linear-gradient(135deg, #0072BC 0%, #009EE0 100%);
}

.people-section-title .section-title-content h1 {
  color: #fff;
  border: none;
}

.people-section-title .section-title-content h1 i {
  margin-right: 0.5rem;
  opacity: 0.9;
}

/* --- Search & Filter Module --- */
.people-filters-module {
  background: #fff !important;
  border: none !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 8px rgba(0, 114, 188, 0.08) !important;
  margin-bottom: 2rem !important;
  overflow: hidden;
}

.people-filters-module:hover {
  transform: none !important;
}

.people-filters-inner {
  padding: 1.5rem 2rem;
}

.people-filter-group {
  margin-bottom: 0;
}

.people-filter-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary, #6c757d);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

.people-filter-group label i {
  color: var(--unesco-blue, #0072BC);
  margin-right: 4px;
}

.people-filter-group .form-control {
  border-radius: 12px;
  border: 2px solid #e9ecef;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.people-filter-group .form-control:focus {
  border-color: var(--unesco-blue, #0072BC);
  box-shadow: 0 0 0 3px rgba(0, 114, 188, 0.1);
  outline: none;
}

.btn-people-search {
  width: 100%;
  border-radius: 12px !important;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background: var(--unesco-blue, #0072BC) !important;
  border-color: var(--unesco-blue, #0072BC) !important;
  color: #fff !important;
}

.btn-people-search:hover {
  background: var(--unesco-blue-dark, #005A9C) !important;
  border-color: var(--unesco-blue-dark, #005A9C) !important;
}

/* --- Results Summary --- */
.people-results-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding: 0 0.25rem;
}

.people-results-count {
  font-size: 0.9rem;
  color: var(--text-secondary, #6c757d);
  font-weight: 500;
}

.people-results-count i {
  color: var(--unesco-blue, #0072BC);
  margin-right: 0.35rem;
}

.people-clear-filters {
  font-size: 0.85rem;
  color: #dc3545;
  text-decoration: none;
}

.people-clear-filters:hover {
  text-decoration: underline;
  color: #c82333;
}

/* --- People Grid --- */
.people-grid {
  margin-bottom: 2rem;
}

.people-grid-item {
  display: flex;
  margin-bottom: 1.5rem;
}

/* --- Person Card (Modern) --- */
.person-card-modern {
  height: 100%;
  width: 100%;
}

.person-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 114, 188, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.person-card-inner:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 114, 188, 0.12);
}

/* Circular avatar section */
.person-avatar-section {
  display: flex;
  justify-content: center;
  padding: 1.75rem 1.25rem 0;
}

.person-avatar-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--unesco-blue-pale, #E3F2FD);
  box-shadow: 0 2px 8px rgba(0, 114, 188, 0.12);
}

.person-avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--unesco-blue-pale, #E3F2FD) 0%, #f0f7ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--unesco-blue, #0072BC);
  opacity: 0.5;
  border: 3px solid var(--unesco-blue-pale, #E3F2FD);
}

/* Card content */
.person-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 1.25rem;
  text-align: center;
}

/* Country chip */
.person-chips {
  margin-bottom: 0.5rem;
}

.person-country-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  background: var(--unesco-blue-pale, #E3F2FD);
  color: var(--unesco-blue, #0072BC);
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Name */
.person-name {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  line-height: 1.3;
  border: none;
}

.person-name a {
  color: var(--text-primary, #2c3e50);
  text-decoration: none;
  font-weight: 700;
}

.person-name a:hover {
  color: var(--unesco-blue, #0072BC);
  text-decoration: none;
}

/* Job title */
.person-job-title {
  color: var(--unesco-blue, #0072BC);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

/* Institution */
.person-institution {
  color: var(--text-secondary, #6c757d);
  font-size: 0.8rem;
  margin: 0 0 0.5rem;
}

.person-institution i {
  color: var(--unesco-blue, #0072BC);
  width: 14px;
  text-align: center;
  margin-right: 4px;
}

/* Expertise tags */
.person-expertise-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 0.65rem;
}

.person-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  background: #f0f4f8;
  color: var(--text-secondary, #6c757d);
  border-radius: 10px;
  white-space: nowrap;
  font-weight: 500;
}

.person-tag-more {
  background: #e0e0e0;
  font-weight: 700;
  color: var(--text-primary, #2c3e50);
}

/* Organization chips */
.person-orgs-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.person-org-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  background: #f8f9fa;
  color: var(--text-secondary, #6c757d);
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.person-org-chip:hover {
  background: var(--unesco-blue, #0072BC);
  color: #fff;
  text-decoration: none;
  border-color: var(--unesco-blue, #0072BC);
}

.person-org-more {
  background: #e9ecef;
  font-weight: 700;
}

/* Action button */
.person-card-actions {
  margin-top: auto;
}

.btn-person-profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  border-radius: 25px;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  color: var(--text-primary, #2c3e50);
  border: 2px solid #dee2e6;
  transition: all 0.2s ease;
}

.btn-person-profile:hover,
.btn-person-profile:focus {
  background: var(--unesco-blue, #0072BC);
  color: #fff !important;
  border-color: var(--unesco-blue, #0072BC);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 114, 188, 0.3);
  text-decoration: none;
}

/* --- Tags (shared) --- */
.tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  background: #f0f4f8;
  color: var(--text-secondary, #6c757d);
  border-radius: 10px;
  white-space: nowrap;
  font-weight: 500;
}
.tag-more {
  background: #e0e0e0;
  font-weight: 700;
  color: var(--text-primary, #2c3e50);
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

/* --- Empty State --- */
.people-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 114, 188, 0.08);
}

.people-empty-state i {
  font-size: 3rem;
  color: #dee2e6;
  margin-bottom: 1rem;
}

.people-empty-state h3 {
  font-size: 1.3rem;
  color: var(--text-primary, #2c3e50);
  margin-bottom: 0.5rem;
}

.people-empty-state p {
  color: var(--text-secondary, #6c757d);
  margin-bottom: 1.5rem;
}

/* --- Pagination --- */
.people-pagination {
  display: flex;
  justify-content: center;
  margin: 2rem 0 3rem;
}

/* --- User Profile Card (sidebar) --- */
.user-profile-card {
  background: #fff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 114, 188, 0.08);
  overflow: hidden;
  padding: 0;
}

.user-profile-card:hover {
  transform: none;
}

/* Avatar */
.user-profile-avatar-section {
  display: flex;
  justify-content: center;
  padding: 2rem 1.5rem 0;
  background: linear-gradient(135deg, var(--unesco-blue-pale, #E3F2FD) 0%, #f0f7ff 100%);
  padding-bottom: 1.5rem;
}

.user-profile-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 114, 188, 0.15);
}

/* Header: name, job, institution */
.user-profile-header {
  text-align: center;
  padding: 1rem 1.5rem 0;
}

.user-profile-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary, #2c3e50);
  margin: 0 0 0.25rem;
  border: none;
}

.user-profile-job {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--unesco-blue, #0072BC);
  margin: 0 0 0.2rem;
}

.user-profile-institution {
  font-size: 0.85rem;
  color: var(--text-secondary, #6c757d);
  margin: 0 0 0.5rem;
}

.user-profile-institution i {
  color: var(--unesco-blue, #0072BC);
  margin-right: 4px;
}

.user-profile-country-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  background: var(--unesco-blue-pale, #E3F2FD);
  color: var(--unesco-blue, #0072BC);
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Stats */
.user-profile-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1.25rem 1.5rem;
  margin: 1rem 1.5rem 0;
  border-top: 1px solid #f0f4f8;
  border-bottom: 1px solid #f0f4f8;
}

.user-profile-stat {
  text-align: center;
}

.user-profile-stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--unesco-blue, #0072BC);
  line-height: 1.2;
}

.user-profile-stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-secondary, #6c757d);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Follow button */
.user-profile-follow {
  padding: 0.75rem 1.5rem 0;
  text-align: center;
}

.user-profile-follow .btn {
  border-radius: 25px;
  padding: 0.4rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Sections */
.user-profile-section {
  padding: 0.75rem 1.5rem;
}

.user-profile-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary, #6c757d);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 0.5rem;
  border: none;
  padding: 0;
  background: none;
}

.user-profile-section-title i {
  color: var(--unesco-blue, #0072BC);
  margin-right: 5px;
  width: 16px;
  text-align: center;
}

/* About */
.user-profile-about {
  font-size: 0.9rem;
  color: var(--text-secondary, #6c757d);
  line-height: 1.6;
}

.user-profile-about p {
  margin: 0;
}

/* Tags */
.user-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

/* Social buttons */
.user-profile-social {
  display: flex;
  gap: 0.5rem;
}

.user-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--unesco-blue-pale, #E3F2FD);
  color: var(--unesco-blue, #0072BC);
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.user-social-btn:hover {
  background: var(--unesco-blue, #0072BC);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 114, 188, 0.25);
}

/* ORCID */
.user-profile-orcid a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #a6ce39;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  background: #f6fbe9;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.user-profile-orcid a:hover {
  background: #edf7d0;
  text-decoration: none;
}

/* Details */
.user-profile-details {
  padding-bottom: 1.5rem;
}

.user-profile-dl {
  margin: 0;
}

.user-profile-dl dt {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary, #6c757d);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 0.65rem;
  padding: 0;
  background: none !important;
  border: none !important;
  width: auto !important;
}

.user-profile-dl dt:first-child {
  margin-top: 0;
}

.user-profile-dl dd {
  font-size: 0.9rem;
  color: var(--text-primary, #2c3e50);
  margin: 0.1rem 0 0;
  padding: 0 !important;
  border: none !important;
}

.user-profile-dl dd a {
  color: var(--unesco-blue, #0072BC);
  text-decoration: none;
}

.user-profile-dl dd a:hover {
  text-decoration: underline;
}

.user-profile-badge-private {
  display: inline-block;
  font-size: 0.6rem;
  padding: 0.1rem 0.4rem;
  background: #e9ecef;
  color: var(--text-secondary, #6c757d);
  border-radius: 6px;
  vertical-align: middle;
  font-weight: 600;
  text-transform: uppercase;
}

/* --- Organization Stats --- */
.org-stats .nums {
  display: flex;
  justify-content: space-around;
  text-align: center;
  padding: 0.5rem 0;
}
.org-stats .nums dl {
  margin: 0;
}
.org-stats .nums dt {
  font-size: 0.75rem;
  color: var(--text-secondary, #6c757d);
  text-transform: uppercase;
}
.org-stats .nums dd {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--unesco-blue, #0069B4);
}

/* --- Publications List --- */
.publications-list {
  margin: 1rem 0;
}
.publication-item {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}
.publication-item:last-child {
  border-bottom: none;
}
.publication-item h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}
.publication-item h3 a {
  color: var(--text-primary, #212529);
}
.publication-item h3 a:hover {
  color: var(--unesco-blue, #0069B4);
}
.publication-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary, #6c757d);
}
.publication-meta i {
  margin-right: 4px;
}
.publication-notes {
  font-size: 0.9rem;
  color: var(--text-secondary, #6c757d);
  margin: 0.5rem 0;
}
.publication-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

/* --- News & Events Lists --- */
.news-list,
.events-list {
  margin: 1rem 0;
}
.news-item,
.event-item {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}
.news-item:last-child,
.event-item:last-child {
  border-bottom: none;
}
.news-item h3,
.event-item h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}
.news-date,
.event-date {
  font-size: 0.85rem;
  color: var(--text-secondary, #6c757d);
  margin-bottom: 0.5rem;
}
.news-excerpt,
.event-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary, #6c757d);
}
.empty-hint {
  font-size: 0.85rem;
  color: var(--text-muted, #8a8a8a);
  font-style: italic;
}

/* --- Membership Request --- */
.membership-request-info {
  background: var(--unesco-blue-pale, #E8F4F8);
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius, 0.5rem);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.membership-request-info-icon {
  font-size: 1.5rem;
  color: var(--unesco-blue, #0072BC);
  flex-shrink: 0;
  margin-top: 2px;
}
.membership-request-info-text p {
  margin: 0 0 0.25rem;
  color: var(--text-primary, #212529);
}
.membership-request-info-text p:last-child {
  margin-bottom: 0;
}

/* --- Membership Requests Dashboard --- */
.membership-requests-dashboard {
  padding: 0;
}

/* Dashboard header */
.membership-dashboard-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  margin: -0.5rem -0.5rem 1.5rem -0.5rem;
  background: linear-gradient(135deg, #0072BC 0%, #005A9C 100%);
  border-radius: 0.75rem;
  color: #fff;
}
.membership-dashboard-header-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.membership-dashboard-header-text h2 {
  margin: 0 0 0.15rem 0;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
}
.membership-dashboard-header-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}
.membership-dashboard-header-text strong {
  color: #fff;
}

/* Tabs — custom buttons instead of nav-tabs */
.membership-tabs-wrapper {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0;
}
.membership-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6c757d;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.membership-tab-btn:hover {
  color: #0072BC;
  text-decoration: none;
  border-bottom-color: #E3F2FD;
}
.membership-tab-btn.active {
  color: #0072BC;
  border-bottom-color: #0072BC;
  font-weight: 600;
}
.membership-badge {
  background: #dc3545;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  vertical-align: middle;
}
.membership-tab-content {
  display: block !important;
  padding-top: 1.25rem;
}

/* Request cards — new layout */
.membership-request-card {
  display: flex;
  gap: 1rem;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.membership-request-card:hover {
  box-shadow: 0 4px 16px rgba(0, 114, 188, 0.08);
  border-color: #d0e8f7;
}
.request-card-left {
  flex-shrink: 0;
}
.request-card-body {
  flex: 1;
  min-width: 0;
}
.request-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.request-user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.request-avatar-placeholder {
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
  color: #0072BC;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 2px solid #E3F2FD;
}
.request-user-details {
  display: flex;
  flex-direction: column;
}
.request-user-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: #2c3e50;
}
.request-user-name:hover {
  color: #0072BC;
  text-decoration: none;
}
.request-username {
  font-size: 0.82rem;
  color: #6c757d;
}
.request-date {
  font-size: 0.82rem;
  color: #98a6b3;
  white-space: nowrap;
}
.request-date i {
  margin-right: 0.2rem;
}

/* Message block */
.request-message {
  position: relative;
  background: #f8f9fa;
  border-left: 3px solid #0072BC;
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 0.75rem 1rem 0.75rem 2rem;
  margin-bottom: 0.75rem;
}
.request-quote-icon {
  position: absolute;
  left: 0.65rem;
  top: 0.75rem;
  color: #0072BC;
  opacity: 0.3;
  font-size: 0.85rem;
}
.request-message p {
  margin: 0;
  color: #2c3e50;
  white-space: pre-wrap;
  font-size: 0.92rem;
}

/* Action buttons — pill style */
.request-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.btn-request {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-request-approve {
  background: #28a745;
  color: #fff;
  border-color: #28a745;
}
.btn-request-approve:hover {
  background: #218838;
  border-color: #218838;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.25);
}
.btn-request-reject {
  background: transparent;
  color: #dc3545;
  border-color: #dc3545;
}
.btn-request-reject:hover {
  background: #dc3545;
  color: #fff;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.25);
}
.btn-request-cancel {
  background: transparent;
  color: #6c757d;
  border-color: #dee2e6;
}
.btn-request-cancel:hover {
  background: #f8f9fa;
  color: #2c3e50;
  border-color: #ced4da;
}

/* Reject form */
.reject-form {
  width: 100%;
  margin-top: 0.75rem;
  padding: 1rem;
  background: #fff8f8;
  border-radius: 0.5rem;
  border: 1px solid #f5c6cb;
}
.reject-form .form-group {
  margin-bottom: 0.75rem;
}
.reject-form .form-control {
  border-radius: 0.5rem;
  border-color: #f5c6cb;
  font-size: 0.9rem;
}
.reject-form .form-control:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.15);
}
.reject-form-actions {
  display: flex;
  gap: 0.5rem;
}

/* History cards */
.membership-history-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}
.membership-history-card:last-child {
  border-bottom: none;
}
.membership-history-card:hover {
  background: #f8f9fa;
}
.history-avatar {
  width: 38px;
  height: 38px;
  font-size: 1rem;
}
.history-card-body {
  flex: 1;
  min-width: 0;
}
.history-card-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.15rem;
}
.history-card-top .request-user-name {
  font-size: 0.95rem;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.status-approved {
  background: #d4edda;
  color: #155724;
}
.status-rejected {
  background: #f8d7da;
  color: #721c24;
}
.status-role {
  background: #e8f4f8;
  color: #0072BC;
}

/* Approve form with role selector */
.approve-form {
  display: inline;
}
.approve-role-group {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.role-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #6c757d;
  margin: 0;
  white-space: nowrap;
}
.role-select {
  padding: 0.3rem 0.5rem;
  font-size: 0.82rem;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  background: #fff;
  color: #2c3e50;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.role-select:focus {
  border-color: #0072BC;
  box-shadow: 0 0 0 0.15rem rgba(0, 114, 188, 0.15);
}
.history-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #98a6b3;
}
.history-card-meta i {
  margin-right: 0.2rem;
}
.history-card-note {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: #6c757d;
  font-style: italic;
}
.history-card-note i {
  margin-right: 0.3rem;
  opacity: 0.5;
}

/* Empty state */
.membership-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}
.membership-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.75rem auto;
  border-radius: 50%;
  background: #f0f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.membership-empty-icon i {
  font-size: 1.6rem;
  opacity: 0.4;
}
.membership-empty-state h4 {
  margin: 0 0 0.25rem 0;
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 600;
}
.membership-empty-state p {
  font-size: 0.95rem;
  margin: 0;
}

/* Header notification badge */
.membership-requests-notify {
  position: relative;
}
.membership-requests-notify a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.membership-notify-badge {
  background: #dc3545;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  padding: 0 4px;
  position: relative;
  top: -6px;
  margin-left: -2px;
}

/* Overview page: org cards grid */
.membership-orgs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.membership-org-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.membership-org-card:hover {
  text-decoration: none;
}
.membership-org-card-inner {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: var(--border-radius, 0.5rem);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.membership-org-card-inner:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--unesco-blue, #0072BC);
}
.membership-org-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.membership-org-img-placeholder {
  background: var(--unesco-blue-pale, #E3F2FD);
  color: var(--unesco-blue, #0072BC);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.membership-org-info h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--text-primary, #2c3e50);
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .people-section-title {
    height: 200px;
  }
  .people-section-title .section-title-content h1 {
    font-size: 1.8rem;
  }
  .people-filters-inner {
    padding: 1.25rem 1.5rem;
  }
  .person-avatar-img,
  .person-avatar-placeholder {
    width: 85px;
    height: 85px;
  }
}

@media (max-width: 768px) {
  .people-section-title {
    height: 180px;
    border-radius: 12px;
  }
  .people-section-title .section-title-content h1 {
    font-size: 1.4rem;
  }
  .people-filters-module {
    border-radius: 12px !important;
  }
  .people-filters-inner {
    padding: 1rem;
  }
  .people-filter-group {
    margin-bottom: 0.75rem;
  }
  .people-grid-item {
    margin-bottom: 1rem;
  }
  .person-card-inner {
    border-radius: 12px;
  }
  .publication-meta {
    flex-direction: column;
    gap: 0.25rem;
  }
}
