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

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

/* Export button on archive */
.members-export-link {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  margin-bottom: 10px;
}

/* Generic export-style button (used on archive + export page) */
.member-export-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,.1);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
background: #3c8ce0;
  color: #fff;
  transition: background .2s ease, box-shadow .2s ease, transform .1s ease;
}

.member-export-btn:hover {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 3px 6px rgba(0,0,0,.12);
  transform: translateY(-1px);
}

.member-export-btn-small {
  padding: 6px 12px;
  font-size: 13px;
}

.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 {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  min-width: 250px;
  background: white;
}

#member-search:focus {
  outline: none;
  border-color: #333;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

#seniority-filter,
#associate-filter,
#member-sort {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  min-width: 200px;
  background: white;
}

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

#alphabetical-sort-btn:hover,
#clear-filters-btn:hover {
  background: #333;
  color: white;
}

#alphabetical-sort-btn.active {
  background: #333;
  color: white;
}

#clear-filters-btn {
  border-color: #999;
  color: #666;
}

#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 {
  background: #333;
  color: white;
  border-color: #333;
}

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

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

.letter-link.letter-clear:hover {
  background: #333;
  color: white;
}

/* Loading state */
.member-archive.loading {
  position: relative;
  pointer-events: none;
}

.grid {
  display: grid;
}

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

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

.col-span-full {
  grid-column: span 4;
}

.gap-4 {
  gap: 1rem;
}

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

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

.member-archive {
  display: grid;
  gap: 2rem;
  padding: 2rem 0;
}

.controls {
  padding: 2rem 0;
}

.controls select {
  border-color: #eaeaec;
}

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

.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;
}

.member-archive-item-content a {
  color: inherit;
}

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

@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;
  }

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

  #alphabetical-sort-btn {
    width: 100%;
  }

  .alphabet-filter {
    gap: 6px;
  }

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

  .members-export-link {
    justify-content: stretch;
  }

  .members-export-link .member-export-btn {
    width: 100%;
    text-align: center;
  }
}

/* === Export page layout === */

.members-export-wrap {
  margin-top: 20px;
}

.members-export-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.members-export-search label {
  font-weight: 600;
  font-size: 14px;
}

.members-export-search input[type="text"] {
  min-width: 220px;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

.members-export-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
}

.members-export-table th,
.members-export-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.members-export-table th {
  font-weight: 600;
  background: #f8fafc;
}

/* Hero-style export button on members archive */
.members-export-link .member-export-btn {
  padding: 10px 22px;
  border-radius: 9999px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #3c8ce0;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}

.members-export-link .member-export-btn:hover {
  background: #2563eb;
  box-shadow: 0 6px 14px rgba(0,0,0,.16);
  transform: translateY(-1px);
}

/* =========================================================
   COMMITTEE GRID (Bar Council etc.)
   Only affects [committee_members] shortcode output
   ========================================================= */

.member-archive-grid.committee-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 0;
}

/* Each card in committee grid */
.member-archive-grid.committee-grid .member-archive-item {
  max-width: 260px;
  margin: 0 auto;
}

/* Circle wrapper – we control size + crop here */
.member-archive-grid.committee-grid .member-archive-item-thumb {
  width: 260px;
  height: 260px;
  border-radius: 9999px;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
}

/* Image inside circle – zoomed out a bit and moved down */
.member-archive-grid.committee-grid .member-archive-item-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* adjust these two values if you want slightly more / less headroom */
  transform: translateY(10px) scale(0.9);
  transform-origin: center top;
}

/* Name */
.member-archive-grid.committee-grid .member-archive-item-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 16px 0 4px;
}

/* "Member" label */
.member-archive-grid.committee-grid .member-archive-item-content small {
  display: block;
  font-size: 0.9rem;
}

/* === Member Export: 3-column layout === */
.member-export-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    align-items: start;
}

.member-export-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Mobile responsive layout */
@media (max-width: 900px) {
    .member-export-grid {
        grid-template-columns: 1fr;
    }
}


.members-section {
  background: transparent !important;
}

.members-filters {
  background: transparent !important;
}

.filter-row {
  background: transparent !important;
}

.alphabet-filter {
  background: transparent !important;
}

.members-section .ct-container {
  background: transparent !important;
  box-shadow: none !important;
}

.members-section .members-filters,
.members-section .filter-row,
.members-section .alphabet-filter {
  background: transparent !important;
}

/* Force Sort Members dropdown to match Seniority dropdown */
#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;
}
