/* ===== 08-professor.css ===== */
.ex-home .ex-instructor-section {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: clamp(68px, 7vw, 96px);
  background:
    radial-gradient(
      circle at 17% 40%,
      rgba(23, 104, 231, 0.24),
      transparent 31%
    ),
    linear-gradient(115deg, #061225 0%, #0a1c36 65%, #07152b 100%);
}

.ex-home .ex-instructor-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(86, 126, 185, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 126, 185, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 76%);
}

.ex-home .ex-instructor-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(390px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(62px, 8vw, 116px);
}

.ex-home .ex-instructor-photo-wrap {
  position: relative;
  min-height: 620px;
}

.ex-home .ex-photo-outline {
  position: absolute;
  z-index: 0;
  top: 11%;
  right: 3%;
  bottom: 0;
  left: 3.5%;
  overflow: visible;
  border: 1px solid rgba(82, 151, 255, 0.22);
  border-radius: 64px;
  background:
    radial-gradient(
      circle at 76% 22%,
      rgba(45, 123, 244, 0.16),
      transparent 38%
    ),
    linear-gradient(145deg, rgba(10, 38, 79, 0.58), rgba(6, 25, 53, 0.38));
  box-shadow:
    inset 0 0 70px rgba(29, 102, 213, 0.08),
    0 34px 80px rgba(0, 0, 0, 0.2);
}

.ex-home .ex-photo-outline::after {
  content: "";
  position: absolute;
  top: 42%;
  right: -16px;
  width: 38px;
  height: 2px;
  background: var(--ex-red);
  box-shadow: 0 0 16px rgba(230, 56, 61, 0.38);
}

.ex-home .ex-instructor-photo {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 3%;
  bottom: 0;
  left: 3.5%;
  width: calc(100% - 6.5%);
  height: 100%;
  object-fit: cover;
  object-position: center top;
  clip-path: inset(0 round 0 0 64px 64px);
  filter: saturate(0.78) contrast(1.03) brightness(0.96)
    drop-shadow(0 22px 34px rgba(0, 0, 0, 0.26));
}

.ex-home .ex-instructor-photo-wrap::after {
  display: none;
}

.ex-home .ex-teacher-since {
  position: absolute;
  z-index: 3;
  right: -10px;
  bottom: 48px;
  padding: 16px 20px;
  border: 1px solid rgba(230, 56, 61, 0.42);
  border-radius: 15px;
  background: var(--ex-red);
  backdrop-filter: blur(16px);
}

.ex-home .ex-teacher-since small,
.ex-home .ex-teacher-since strong {
  display: block;
}

.ex-home .ex-teacher-since small {
  color: #eaeaea;
  font-size: 0.61rem;
}

.ex-home .ex-teacher-since strong {
  color: var(--ex-white);
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
}

.ex-home .ex-instructor-copy .ex-eyebrow {
  margin-bottom: 20px;
}

.ex-home .ex-instructor-copy .ex-instructor-lede {
  margin-top: 25px;
  color: #bbc7d8;
  font-size: 1.06rem;
  line-height: 1.72;
}

.ex-home .ex-instructor-copy > p:not(.ex-eyebrow):not(.ex-instructor-lede) {
  color: #899db8;
  font-size: 0.9rem;
  line-height: 1.7;
}

.ex-home .ex-teacher-credentials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
  border-block: 1px solid var(--ex-line-bright);
}

.ex-home .ex-teacher-credentials > div {
  padding: 18px 18px 18px 0;
  border-right: 1px solid var(--ex-line);
  border-bottom: 1px solid var(--ex-line);
}

.ex-home .ex-teacher-credentials > div:nth-child(3n + 2),
.ex-home .ex-teacher-credentials > div:nth-child(3n + 3) {
  padding-left: 18px;
}

.ex-home .ex-teacher-credentials > div:nth-child(3n) {
  border-right: 0;
}

.ex-home .ex-teacher-credentials > div:nth-child(n + 4) {
  border-bottom: 0;
}

.ex-home .ex-teacher-credentials strong,
.ex-home .ex-teacher-credentials span {
  display: block;
}

.ex-home .ex-teacher-credentials strong {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  font-weight: 790;
  line-height: 1.25;
}

.ex-home .ex-teacher-credential-wide strong {
  font-size: clamp(0.78rem, 1.15vw, 1.05rem);
  white-space: nowrap;
}

.ex-home .ex-teacher-credentials span {
  color: #778ba7;
  font-size: 0.66rem;
}

@media (max-width: 1024px) {
  .ex-home .ex-instructor-photo-wrap {
    width: min(100%, 590px);
    margin-inline: auto;
  }

  .ex-home .ex-instructor-copy {
    width: min(100%, 720px);
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  .ex-home .ex-instructor-section {
    padding-block: 82px;
  }

  .ex-home .ex-instructor-layout {
    gap: 40px;
  }

  .ex-home .ex-instructor-photo-wrap {
    min-height: 470px;
  }

  .ex-home .ex-teacher-since {
    right: 0;
    bottom: 34px;
  }

  .ex-home .ex-teacher-credentials {
    grid-template-columns: 1fr;
  }

  .ex-home .ex-teacher-credentials > div,
  .ex-home .ex-teacher-credentials > div:nth-child(3n + 2),
  .ex-home .ex-teacher-credentials > div:nth-child(3n + 3) {
    padding: 15px 0;
    border-right: 0;
    border-bottom: 1px solid var(--ex-line);
  }

  .ex-home .ex-teacher-credentials > div:last-child {
    border-bottom: 0;
  }

  .ex-home .ex-teacher-credential-wide strong {
    font-size: 1rem;
    white-space: normal;
  }
}
.ex-home .ex-instructor-photo-wrap {
  min-height: 0;
  aspect-ratio: 900 / 1019;
}
@media (max-width: 1024px) {
  .ex-home .ex-instructor-layout {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .ex-home .ex-instructor-copy {
    order: 1;
  }
  .ex-home .ex-instructor-photo-wrap {
    order: 2;
    width: min(100%, 560px);
  }
}
@media (max-width: 768px) {
  .ex-home .ex-instructor-section {
    min-height: 0;
    padding-block: 64px;
  }
  .ex-home .ex-instructor-photo-wrap {
    min-height: 0;
  }
}
