.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* filters */
.members-filters {
  margin-bottom: 30px;
  padding: 20px 0;
  background: transparent;
  border-radius: 8px;
}

.filter-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group.search {
  margin-left: 0;
}

.filter-group label {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

#member-search,
#member-sort {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  min-width: 200px;
  background: white;
  color: #333;
  height: 50px;
  box-sizing: border-box;
}

#member-search {
  min-width: 250px;
}

#clear-filters-btn {
  padding: 8px 20px;
  border: 2px solid #999;
  background: white;
  color: #666;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

#clear-filters-btn:hover {
  background: #666;
  color: white;
  border-color: #666;
}

.alphabet-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}

.alphabet-label {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin-right: 10px;
}

.letter-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  background: white;
}

.letter-link:hover,
.letter-link.active {
  background: #333;
  color: white;
  border-color: #333;
}

.letter-link.letter-clear {
  width: auto;
  padding: 0 12px;
  background: #e9ecef;
  border-color: #ced4da;
}

/* archive grid */
.member-archive {
  display: grid;
  gap: 2rem;
  padding: 2rem 0 60px;
}

.member-archive-item {
  line-height: 1.2;
  color: #3f4245;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.member-archive-item small {
  font-weight: 600;
}

.member-archive-item:hover {
  color: inherit;
}

.member-archive-item:hover .member-archive-item-thumb-overlay {
  opacity: 1;
}

.member-archive-item-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  border-radius: 9999px;
}

.member-archive-item-thumb-overlay {
  opacity: 0;
  z-index: 2;
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.member-archive-item-thumb img {
  position: absolute;
  object-fit: cover;
  object-position: top;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.member-archive-item-content {
  text-align: center;
}

.member-archive-item-content h3 {
  font-size: 1.1rem;
}

/* single profile */
.members-section {
  background: transparent !important;
  padding-bottom: 60px;
}

.members-section .ct-container {
  margin-top: 80px;
}

.member-details {
  margin: 2rem 0;
  padding: 2rem;
  background-color: #eaeaec;
}

.member-details h1 {
  line-height: 1 !important;
}

.grid {
  display: grid;
}

.col-span-1 {
  grid-column: span 1;
}

.member-thumb {
  padding-bottom: 2rem;
}

/* back button */
.parc-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #7f0d0d;
  color: #ffffff !important;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(127, 13, 13, 0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.parc-back-btn:hover {
  background: #951313;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(127, 13, 13, 0.28);
}

/* responsive */
@media (min-width: 768px) {
  .grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }

  .member-archive {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .filter-group.search {
    margin-left: auto;
  }

  .member-thumb {
    padding-bottom: 0;
  }
}

@media (max-width: 768px) {
  .filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  #member-sort,
  #member-search {
    width: 100%;
  }

  .alphabet-filter {
    gap: 6px;
  }

  .letter-link {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}