.genealogist-page {
  min-height: calc(100vh - var(--header-height));
  padding: 30px 0;
  background: var(--bg-page);
}

.genealogist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.genealogist-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid #eee;
}

.genealogist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.genealogist-avatar {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.genealogist-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.genealogist-avatar-placeholder {
  color: #fff;
  font-size: 48px;
  font-weight: 700;
}

.genealogist-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.genealogist-info {
  padding: 16px;
}

.genealogist-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.genealogist-surname {
  display: inline-block;
  padding: 2px 8px;
  background: #fff0e6;
  color: var(--primary-orange);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.genealogist-title {
  font-size: 13px;
  color: #999;
  margin-bottom: 12px;
}

.genealogist-stats {
  display: flex;
  justify-content: space-around;
  padding-top: 12px;
  border-top: 1px solid #f5f5f5;
}

.genealogist-stat {
  text-align: center;
}

.genealogist-stat-number {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-orange);
}

.genealogist-stat-label {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.genealogist-detail-page {
  min-height: calc(100vh - var(--header-height));
  padding: 30px 0;
  background: var(--bg-page);
}

.genealogist-detail-header {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  display: flex;
  gap: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.genealogist-detail-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
  display: flex;
  align-items: center;
  justify-content: center;
}

.genealogist-detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.genealogist-detail-avatar-placeholder {
  color: #fff;
  font-size: 64px;
  font-weight: 700;
}

.genealogist-detail-info {
  flex: 1;
  min-width: 0;
}

.genealogist-detail-name {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.genealogist-detail-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.genealogist-detail-badge {
  padding: 4px 12px;
  background: #fff0e6;
  color: var(--primary-orange);
  border-radius: 16px;
  font-size: 13px;
}

.genealogist-detail-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}

.genealogist-detail-stats {
  display: flex;
  gap: 30px;
}

.genealogist-detail-stat {
  text-align: center;
}

.genealogist-detail-stat-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-orange);
}

.genealogist-detail-stat-label {
  font-size: 13px;
  color: #999;
  margin-top: 4px;
}

.genealogist-detail-section {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.genealogist-detail-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
  padding-left: 10px;
  border-left: 4px solid var(--primary-gold);
}

.genealogist-detail-content {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
}

.genealogist-detail-content p {
  margin-bottom: 16px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.4);
}

.contact-btn img {
  width: 18px;
  height: 18px;
}

@media (max-width: 1200px) {
  .genealogist-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .genealogist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
