/* Experts directory + detail (used with main app shell) */
.ex-page {
  padding: 5.5rem 0 3rem;
  min-height: 60vh;
  background: linear-gradient(180deg, #f0f7ff 0%, var(--bg-page) 18%, var(--bg-page) 100%);
}

.ex-page__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.ex-hero {
  text-align: center;
  margin-bottom: 2.25rem;
}

.ex-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  color: var(--primary-blue);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.ex-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.ex-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.ex-count {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.ex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.35rem;
}

.ex-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.2s ease;
}

.ex-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(40, 55, 155, 0.12);
  border-color: rgba(0, 159, 227, 0.35);
}

.ex-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e8f4fc 0%, #dceafe 100%);
}

.ex-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ex-card__online {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.ex-card__online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
}

.ex-card__online.is-offline .ex-card__online-dot {
  background: #94a3b8;
  box-shadow: none;
}

.ex-card__body {
  padding: 1.15rem 1.2rem 1.25rem;
}

.ex-card__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.ex-card__name {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin: 0;
  line-height: 1.25;
}

.ex-card__cat {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(40, 55, 155, 0.12), rgba(0, 159, 227, 0.12));
  color: var(--primary-blue);
}

.ex-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0.65rem;
}

.ex-card__meta strong {
  color: var(--text-primary);
  font-weight: 700;
}

.ex-card__bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ex-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.ex-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: var(--bg-page);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

/* Detail */
.ex-detail {
  padding: 5.25rem 0 3.5rem;
  background: linear-gradient(180deg, #f0f7ff 0%, var(--bg-page) 22%);
  min-height: 70vh;
}

.ex-detail__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.ex-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent-blue);
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.ex-back:hover {
  text-decoration: underline;
}

.ex-detail-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.ex-detail-top {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 0;
}

@media (max-width: 720px) {
  .ex-detail-top {
    grid-template-columns: 1fr;
  }
}

.ex-detail-photo {
  aspect-ratio: 1;
  background: linear-gradient(145deg, #e2effa, #dbeafe);
}

.ex-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ex-detail-info {
  padding: 1.5rem 1.65rem 1.65rem;
}

@media (min-width: 721px) {
  .ex-detail-info {
    padding: 2rem 2rem 2rem 1.75rem;
  }
}

.ex-detail-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--primary-blue);
  margin: 0 0 0.35rem;
  line-height: 1.15;
}

.ex-detail-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.ex-detail-sub span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.ex-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.ex-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 10px;
  background: var(--bg-page);
  color: var(--primary-blue);
  border: 1px solid var(--border-color);
}

.ex-badge--price {
  background: var(--gradient-brand);
  color: #fff !important;
  border: none;
}

.ex-detail-bio {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.ex-detail-section h3 {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-blue);
  margin: 0 0 0.55rem;
}

.ex-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ex-detail-bottom {
  padding: 0 1.65rem 1.65rem;
  border-top: 1px solid var(--border-color);
}

@media (min-width: 721px) {
  .ex-detail-bottom {
    padding: 0 2rem 2rem;
  }
}

.ex-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.ex-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.ex-video-wrap {
  margin-top: 1.25rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #0f172a;
}

.ex-video-wrap video {
  width: 100%;
  max-height: 360px;
  display: block;
}

.ex-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.ex-state--error {
  color: #b91c1c;
}

.ex-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: ex-spin 0.75s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes ex-spin {
  to {
    transform: rotate(360deg);
  }
}


/* Static experts pages should not show SPA bottom nav */
.mobile-bottom-nav {
  display: none !important;
}
