/* Expert / instructor single profile */

.apm-expert-single .apm-header {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.apm-ex {
  background: #f8fafc;
  padding-bottom: 0;
}

.apm-ex-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 0.875rem;
  color: #64748b;
}

.apm-ex-breadcrumb a {
  color: #64748b;
  text-decoration: none;
}

.apm-ex-breadcrumb a:hover {
  color: #0d5bdb;
}

.apm-ex-breadcrumb__current {
  color: #0f172a;
  font-weight: 500;
}

.apm-ex-hero {
  padding: 32px 0 48px;
  background:
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
}

.apm-ex-hero__grid {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.apm-ex-hero__media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #e2e8f0;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.apm-ex-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.apm-ex-hero__role {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0d5bdb;
}

.apm-ex-hero__name {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: #0f172a;
}

.apm-ex-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.apm-ex-tags li {
  padding: 6px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.8125rem;
  font-weight: 600;
}

.apm-ex-hero__lead {
  margin: 0 0 20px;
  max-width: 42rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #475569;
}

.apm-ex-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 24px;
}

.apm-ex-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: #334155;
}

.apm-ex-meta__item svg {
  flex-shrink: 0;
  color: #0d5bdb;
}

.apm-ex-meta__item--kpi {
  font-weight: 600;
}

.apm-ex-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.apm-ex-social {
  display: flex;
  gap: 8px;
}

.apm-ex-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.apm-ex-social__link:hover {
  background: #0d5bdb;
  border-color: #0d5bdb;
  color: #fff;
}

.apm-ex-body {
  padding: 48px 0 72px;
}

.apm-ex-body__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.apm-ex-section {
  margin-bottom: 40px;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.apm-ex-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.apm-ex-section__title {
  margin: 0 0 16px;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  color: #0f172a;
}

.apm-ex-section__head .apm-ex-section__title {
  margin-bottom: 0;
}

.apm-ex-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0d5bdb;
  text-decoration: none;
}

.apm-ex-link:hover {
  text-decoration: underline;
}

.apm-ex-prose {
  color: #334155;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.apm-ex-prose p {
  margin: 0 0 1em;
}

.apm-ex-prose p:last-child {
  margin-bottom: 0;
}

.apm-ex-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.apm-ex-highlights li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-size: 0.9875rem;
  line-height: 1.5;
  color: #0f172a;
}

.apm-ex-highlights svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #16a34a;
}

.apm-ex-courses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.apm-ex-aside__card {
  position: sticky;
  top: 100px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.apm-ex-aside__card h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}

.apm-ex-aside__card p {
  margin: 0 0 18px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #64748b;
}

.apm-ex-aside__all {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0d5bdb;
  text-decoration: none;
}

.apm-ex-aside__all:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .apm-ex-hero__grid {
    grid-template-columns: 1fr;
  }

  .apm-ex-hero__media {
    max-width: 360px;
  }

  .apm-ex-body__grid {
    grid-template-columns: 1fr;
  }

  .apm-ex-aside__card {
    position: static;
  }

  .apm-ex-courses {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .apm-ex-section {
    padding: 22px 18px;
  }

  .apm-ex-hero {
    padding-top: 20px;
  }
}
