/* /experts — modern directory layout */
.experts-page {
  --experts-hero-bg: linear-gradient(145deg, #0c1222 0%, #151b2e 42%, #0f172a 100%);
  --experts-glow: rgba(248, 180, 0, 0.14);
}

.experts-hero {
  position: relative;
  background: var(--experts-hero-bg);
  color: #fff;
  padding-top: 6.5rem;
  padding-bottom: 3.25rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .experts-hero {
    padding-top: 7.5rem;
    padding-bottom: 4rem;
  }
}

.experts-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -20%, var(--experts-glow), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(99, 102, 241, 0.12), transparent),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
}

.experts-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.experts-hero .container {
  position: relative;
  z-index: 1;
}

.experts-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(248, 180, 0, 0.12);
  border: 1px solid rgba(248, 180, 0, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.experts-hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.experts-hero-title .text-gradient-gold {
  background: linear-gradient(105deg, #fcd34d 0%, var(--brand) 45%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.experts-hero-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.62);
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.experts-hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.experts-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}

.experts-stat-pill strong {
  color: var(--brand);
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
}

/* Sticky search */
.experts-toolbar {
  position: sticky;
  top: 64px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.experts-search-form .input-group {
  border-radius: 100px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
  background: #fff;
}

.experts-search-form .input-group-text {
  background: #fff !important;
  border: none !important;
  padding-left: 1.25rem;
}

.experts-search-form .form-control {
  border: none !important;
  box-shadow: none !important;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.experts-search-form .btn-search {
  border-radius: 0 100px 100px 0 !important;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
  font-weight: 700;
}

/* Grid & cards */
.experts-grid-section {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.experts-mosaic {
  --bs-gutter-x: 1.35rem;
  --bs-gutter-y: 1.35rem;
}

.experts-mosaic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.experts-mosaic-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
  border-color: rgba(248, 180, 0, 0.35);
}

.experts-mosaic-card.is-featured {
  border-color: rgba(248, 180, 0, 0.45);
  box-shadow: 0 8px 32px rgba(248, 180, 0, 0.12);
}

.experts-card-top {
  height: 88px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 55%, #1a1f35 100%);
  position: relative;
}

.experts-card-top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

.experts-card-featured-ribbon {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.55rem;
  border-radius: 0.35rem;
  background: var(--brand);
  color: #111827;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.experts-card-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-top: -44px;
  position: relative;
  z-index: 1;
  padding: 0 1rem;
}

.experts-card-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
}

.experts-card-avatar-fallback {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
  font-size: 1.75rem;
  font-weight: 900;
  font-family: "Space Grotesk", sans-serif;
}

.experts-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 1.25rem;
  text-align: center;
}

.experts-card-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.experts-card-role {
  font-size: 1rem;
  color: #cc9a02;
  font-weight: 700;
  margin-bottom: 0.55rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1.45em;
}

.experts-card-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.experts-card-badges .badge {
  font-weight: 600;
  font-size: 0.68rem;
  padding: 0.35em 0.65em;
}

.experts-card-exp {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.experts-card-exp i {
  color: var(--brand-dark);
}

.experts-card-secondary {
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  margin-bottom: 0.8rem;
  text-align: center;
}

.experts-card-cta {
  margin-top: auto;
  border-radius: 100px !important;
  font-weight: 800 !important;
  font-size: 1.02rem !important;
  padding: 0.62rem 1rem !important;
  border: none;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%) !important;
  color: #111827 !important;
  box-shadow: 0 4px 14px rgba(248, 180, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

@media (min-width: 992px) {
  .experts-mosaic {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
  }
  .experts-mosaic-card {
    border-radius: 1.35rem;
  }
  .experts-card-top {
    height: 92px;
  }
}

.experts-card-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(248, 180, 0, 0.45);
  color: #0f172a !important;
}

/* Empty state */
.experts-empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: #fff;
  border-radius: 1.25rem;
  border: 1px dashed var(--border);
  max-width: 480px;
  margin: 0 auto;
}

.experts-empty-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  color: #94a3b8;
}

/* Pagination */
.experts-pagination {
  margin-top: 2.5rem;
}

.experts-pagination .pagination {
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.experts-pagination .page-link {
  border-radius: 0.5rem !important;
  min-width: 2.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--dark);
  border-color: var(--border);
}

.experts-pagination .page-item.active .page-link {
  background: var(--brand);
  border-color: var(--brand);
  color: #111827;
}

.experts-pagination .page-link:hover {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--dark);
}

/* CTA band */
.experts-cta-band {
  background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
  color: #fff;
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.experts-cta-band::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 50%;
  height: 200%;
  background: radial-gradient(circle, rgba(248, 180, 0, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.experts-cta-band .container {
  position: relative;
  z-index: 1;
}

.experts-cta-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 900;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.experts-cta-title .text-warning {
  color: var(--brand) !important;
}

.experts-cta-lead {
  color: rgba(255, 255, 255, 0.65);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

.experts-cta-btn {
  border-radius: 100px !important;
  font-weight: 800 !important;
  padding: 0.75rem 2.25rem !important;
}

@media (max-width: 575.98px) {
  .experts-toolbar {
    top: 56px;
  }

  .experts-search-form .btn-search span {
    display: none;
  }
}
