.profile-page {
  background: #fff;
  color: #102744;
}

.profile-main {
  background:
    linear-gradient(180deg, #eef9ff 0, rgba(238, 249, 255, 0) 430px),
    #fff;
}

.profile-shell {
  padding: 116px 0 78px;
}

.profile-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.profile-eyebrow {
  margin: 0 0 8px;
  color: #0d8ee8;
  font-size: 14px;
  font-weight: 900;
}

.profile-title {
  margin: 0;
  color: #071d3c;
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: .98;
  letter-spacing: 0;
}

.profile-subtitle {
  max-width: 760px;
  margin: 16px 0 0;
  color: #445d7a;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.62;
}

.profile-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid #d8e7f5;
  border-radius: 16px;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 18px 45px rgba(31, 83, 123, .08);
}

.profile-switch a {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #31506e;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.profile-switch a.is-active {
  background: #0f8ff0;
  color: #fff;
  box-shadow: 0 10px 22px rgba(21, 158, 239, .22);
}

.profile-card {
  border: 1px solid #dceaf6;
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 60px rgba(26, 71, 112, .1);
}

.profile-hero-card {
  padding: 26px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr) 370px;
  gap: 30px;
  align-items: stretch;
}

.teacher-media {
  min-height: 390px;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #dfe7ee;
}

.teacher-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-heart {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #ff3b4f;
  font-size: 34px;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(5, 28, 58, .12);
}

.media-heart::before {
  content: "\2661";
  transform: translateY(-1px);
}

.media-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.media-play::before {
  content: "";
  width: 92px;
  height: 92px;
  border: 6px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
  background: rgba(7, 29, 60, .28);
  box-shadow: 0 18px 36px rgba(7, 29, 60, .22);
}

.media-play::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  margin-left: 8px;
  border-top: 21px solid transparent;
  border-bottom: 21px solid transparent;
  border-left: 31px solid #fff;
}

.media-status {
  position: absolute;
  right: 20px;
  bottom: 22px;
  width: 38px;
  height: 38px;
  border: 6px solid #fff;
  border-radius: 50%;
  background: #36c58e;
  box-shadow: 0 10px 22px rgba(6, 37, 76, .15);
}

.teacher-identity {
  min-width: 0;
  padding: 10px 0 6px;
  display: grid;
  align-content: start;
}

.profile-name {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #071d3c;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.03;
  font-weight: 900;
}

.verified-dot {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #1f8bf2;
  position: relative;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .22);
}

.verified-dot::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 10px;
  width: 15px;
  height: 8px;
  border-left: 4px solid #fff;
  border-bottom: 4px solid #fff;
  transform: rotate(-45deg);
}

.profile-role {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3b5370;
  font-size: 24px;
  font-weight: 750;
}

.profile-role img {
  width: 36px;
  height: 26px;
  border-radius: 4px;
  object-fit: cover;
}

.profile-badges {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-badge {
  min-height: 54px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 13px;
  font-size: 19px;
  font-weight: 900;
}

.profile-badge--top {
  border: 1px solid #ffd58a;
  background: #fff8e9;
  color: #ed9200;
}

.profile-badge--native {
  border: 1px solid #aee8d3;
  background: #effcf7;
  color: #28aa78;
}

.profile-country {
  width: max-content;
  margin-top: 0;
  padding: 12px 18px;
  border-radius: 8px;
  background: #161a20;
  color: #fff;
  font-size: 18px;
  font-weight: 850;
  box-shadow: 0 12px 28px rgba(5, 17, 34, .18);
}

.profile-copy {
  max-width: 780px;
  margin: 16px 0 0;
  color: #425b78;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.46;
}

.profile-copy a {
  color: #1f8bf2;
  font-weight: 900;
}

.highlight-strip {
  margin-top: 26px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border-radius: 16px;
  background: #eef7ff;
  color: #38536f;
  font-size: 17px;
  font-weight: 750;
}

.highlight-strip .icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #dff0ff;
}

.highlight-strip .icon img {
  width: 28px;
  height: 28px;
}

.highlight-strip p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.highlight-strip span:not(.icon)::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-left: 16px;
  display: inline-block;
  border-radius: 50%;
  vertical-align: middle;
  background: #5f7590;
}

.highlight-strip span:last-child::after {
  display: none;
}

.teacher-side {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

.schedule-card {
  padding: 24px;
}

.schedule-card h2,
.side-actions h2,
.section-heading h2,
.student-panel h2,
.student-side-card h2 {
  margin: 0;
  color: #071d3c;
  font-size: 25px;
  line-height: 1.18;
}

.time-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 94px repeat(3, 1fr);
  gap: 14px 12px;
  align-items: center;
}

.time-grid strong {
  color: #49617d;
  font-size: 18px;
  font-weight: 850;
}

.time-grid span {
  min-height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid #d9e8f6;
  border-radius: 13px;
  background: #fff;
  color: #233f5e;
  font-size: 18px;
  font-weight: 850;
}

.side-actions {
  padding: 0;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 22px;
  align-items: center;
}

.match-ring-large {
  width: 136px;
  height: 136px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background: conic-gradient(#35c99a 0 82%, #e7f0f8 82% 100%);
}

.match-ring-large::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #fff;
}

.match-ring-large div {
  position: relative;
  z-index: 1;
  text-align: center;
}

.match-ring-large strong {
  display: block;
  color: #071d3c;
  font-size: 38px;
  line-height: 1;
  font-weight: 950;
}

.match-ring-large span {
  color: #405976;
  font-size: 17px;
  font-weight: 900;
}

.profile-actions {
  display: grid;
  gap: 16px;
}

.profile-actions .btn {
  min-height: 76px;
  border-radius: 16px;
  font-size: 22px;
  line-height: 1.15;
  text-align: center;
}

.profile-outline-btn {
  min-height: 70px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #1f8bf2;
  border-radius: 15px;
  background: #fff;
  color: #1683ee;
  font-size: 21px;
  font-weight: 950;
  text-align: center;
}

.teacher-metrics {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #dbe8f5;
}

.teacher-metrics article {
  padding: 22px 22px 0;
  text-align: center;
  color: #49617d;
  font-size: 16px;
  font-weight: 750;
}

.teacher-metrics article + article {
  border-left: 1px solid #dbe8f5;
}

.teacher-metrics strong {
  display: block;
  color: #071d3c;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 950;
}

.star {
  color: #ffb51f;
}

.profile-content-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: 28px;
}

.profile-stack {
  display: grid;
  gap: 28px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading p {
  max-width: 610px;
  margin: 8px 0 0;
  color: #60758e;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
}

.teaching-method {
  padding: 28px;
}

.method-grid,
.student-plan-grid,
.team-grid,
.package-grid,
.review-grid {
  display: grid;
  gap: 16px;
}

.method-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.method-card,
.plan-step,
.team-member,
.package-card,
.review-card,
.student-task,
.student-insight,
.resource-card {
  border: 1px solid #deebf6;
  border-radius: 18px;
  background: #fff;
}

.method-card {
  min-height: 164px;
  padding: 20px;
}

.method-card img,
.resource-card img {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
}

.method-card h3,
.plan-step h3,
.team-member h3,
.package-card h3,
.review-card h3,
.student-task h3,
.student-insight h3,
.resource-card h3 {
  margin: 0;
  color: #102744;
  font-size: 18px;
  line-height: 1.28;
}

.method-card p,
.plan-step p,
.team-member p,
.package-card p,
.review-card p,
.student-task p,
.student-insight p,
.resource-card p {
  margin: 9px 0 0;
  color: #60758e;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.teacher-results-panel {
  padding: 28px;
}

.results-dashboard {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 18px;
  align-items: stretch;
}

.chart-card {
  padding: 22px;
  border: 1px solid #deebf6;
  border-radius: 18px;
  background: #f8fcff;
}

.chart-lines {
  height: 220px;
  margin-top: 18px;
  position: relative;
  display: grid;
  align-items: end;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  border-bottom: 1px solid #d7e6f5;
  background: repeating-linear-gradient(to top, transparent 0, transparent 43px, #e8f2fb 44px);
}

.chart-lines span {
  display: block;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #159eef, #48cbb9);
}

.skill-card {
  padding: 22px;
  display: grid;
  gap: 14px;
  border: 1px solid #deebf6;
  border-radius: 18px;
  background: #fff;
}

.skill-row {
  display: grid;
  grid-template-columns: 86px 1fr 34px;
  gap: 10px;
  align-items: center;
  color: #49617d;
  font-size: 13px;
  font-weight: 800;
}

.skill-row i {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7f1fb;
}

.skill-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #159eef;
}

.package-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.package-card {
  min-height: 230px;
  padding: 22px;
  display: grid;
  align-content: start;
}

.package-card strong {
  margin-top: 18px;
  color: #071d3c;
  font-size: 30px;
  font-weight: 950;
}

.package-card a {
  min-height: 44px;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #159eef;
  border-radius: 12px;
  color: #117be4;
  font-weight: 900;
}

.review-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.review-card {
  padding: 22px;
}

.review-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.sticky-side {
  position: sticky;
  top: 116px;
  align-self: start;
  display: grid;
  gap: 22px;
}

.ai-plan-card,
.certificate-card,
.availability-list {
  padding: 26px;
}

.lesson-note {
  margin-top: 16px;
  padding: 18px;
  border-radius: 16px;
  background: #f4faff;
}

.lesson-note h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.lesson-note ul,
.profile-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.lesson-note li,
.profile-list li {
  position: relative;
  padding-left: 26px;
  color: #49617d;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.lesson-note li::before,
.profile-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #48cbb9;
}

.availability-list {
  display: grid;
  gap: 12px;
}

.availability-list a {
  min-height: 50px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #dceaf6;
  border-radius: 14px;
  color: #284765;
  font-weight: 850;
}

.certificate-card img {
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
}

.student-hero {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 388px;
  gap: 28px;
}

.student-dashboard {
  display: grid;
  gap: 22px;
}

.student-head {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.student-avatar {
  width: 92px;
  height: 92px;
  overflow: hidden;
  border-radius: 24px;
  background: #d8ecfb;
}

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

.student-head h1 {
  margin: 0;
  color: #071d3c;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
}

.student-head p {
  margin: 8px 0 0;
  color: #435b78;
  font-size: 18px;
  font-weight: 750;
}

.student-status {
  padding: 12px 16px;
  border: 1px solid #bceadb;
  border-radius: 999px;
  background: #edfbf5;
  color: #219b72;
  font-weight: 900;
  white-space: nowrap;
}

.student-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.student-kpis article {
  padding: 18px;
  border: 1px solid #deebf6;
  border-radius: 18px;
  background: #fff;
}

.student-kpis span {
  display: block;
  color: #60758e;
  font-size: 13px;
  font-weight: 800;
}

.student-kpis strong {
  display: block;
  margin-top: 8px;
  color: #071d3c;
  font-size: 26px;
  font-weight: 950;
}

.student-progress-wrap {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 20px;
}

.progress-ring-card {
  padding: 24px;
  text-align: center;
  border: 1px solid #deebf6;
  border-radius: 20px;
  background: #f7fcff;
}

.progress-ring {
  width: 158px;
  height: 158px;
  margin: 0 auto 15px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background: conic-gradient(#159eef 0 68%, #dfeefb 68% 100%);
}

.progress-ring::before {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: #fff;
}

.progress-ring strong {
  position: relative;
  z-index: 1;
  color: #071d3c;
  font-size: 38px;
  font-weight: 950;
}

.skill-dashboard {
  padding: 22px;
  border: 1px solid #deebf6;
  border-radius: 20px;
  background: #fff;
}

.skill-dashboard h2 {
  margin: 0 0 18px;
  font-size: 23px;
}

.student-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.student-actions a {
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 950;
}

.student-actions a:first-child {
  background: linear-gradient(135deg, #ff742f, #ff541c);
  color: #fff;
  box-shadow: 0 14px 26px rgba(255, 116, 47, .22);
}

.student-actions a:not(:first-child) {
  border: 1px solid #bcd8f5;
  background: #fff;
  color: #147fe9;
}

.student-ai-card {
  padding: 26px;
  display: grid;
  align-content: start;
  background: linear-gradient(145deg, #f7fcff, #eaf7ff);
}

.ai-orb {
  width: 94px;
  height: 94px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: #159eef;
  box-shadow: 0 20px 40px rgba(21, 158, 239, .22);
}

.ai-orb img {
  width: 52px;
  height: 52px;
  filter: brightness(0) invert(1);
}

.student-ai-card h2 {
  margin: 0;
  color: #071d3c;
  font-size: 30px;
}

.student-ai-card p {
  margin: 12px 0 0;
  color: #405976;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.6;
}

.coach-message {
  margin-top: 20px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  color: #31506e;
  font-weight: 700;
  line-height: 1.55;
  box-shadow: 0 14px 32px rgba(21, 88, 140, .08);
}

.learning-path {
  padding: 28px;
}

.student-plan-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.plan-step {
  min-height: 188px;
  padding: 18px;
  position: relative;
}

.plan-step::before {
  content: attr(data-step);
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf5ff;
  color: #159eef;
  font-weight: 950;
}

.plan-step.is-current {
  border-color: #159eef;
  background: #f2faff;
  box-shadow: 0 16px 32px rgba(21, 158, 239, .12);
}

.student-content-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 28px;
}

.student-panel {
  padding: 28px;
}

.student-task-grid {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.student-task {
  padding: 18px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.task-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #eaf5ff;
}

.task-icon img {
  width: 28px;
  height: 28px;
}

.student-task a {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #0f8ff0;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-member {
  padding: 20px;
}

.team-member img {
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  border-radius: 50%;
  object-fit: cover;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.student-insight {
  padding: 20px;
}

.mini-chart {
  height: 110px;
  margin-top: 14px;
  display: flex;
  align-items: end;
  gap: 9px;
  border-bottom: 1px solid #dbe8f5;
}

.mini-chart span {
  flex: 1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #48cbb9, #159eef);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.resource-card {
  padding: 20px;
}

.profile-cta {
  margin-top: 34px;
  padding: 30px 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #28b9ff, #1298ed);
  color: #fff;
  position: relative;
}

.profile-cta::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: -34px;
  width: 160px;
  height: 160px;
  border: 2px dashed rgba(255, 255, 255, .5);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.profile-cta h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
}

.profile-cta p {
  max-width: 620px;
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.55;
}

.profile-cta a {
  min-height: 58px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff742f, #ff541c);
  color: #fff;
  font-size: 16px;
  font-weight: 950;
  position: relative;
  z-index: 1;
  box-shadow: 0 16px 28px rgba(255, 84, 28, .22);
}

@media (max-width: 1240px) {
  .profile-hero-card {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .teacher-side {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .student-hero,
  .profile-content-grid,
  .student-content-grid {
    grid-template-columns: 1fr;
  }

  .sticky-side {
    position: static;
  }
}

@media (max-width: 980px) {
  .profile-shell {
    padding-top: 96px;
  }

  .profile-topline,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-hero-card,
  .teacher-side,
  .student-progress-wrap {
    grid-template-columns: 1fr;
  }

  .teacher-media {
    min-height: 430px;
  }

  .method-grid,
  .package-grid,
  .review-grid,
  .student-plan-grid,
  .team-grid,
  .insight-grid,
  .resource-grid,
  .student-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .profile-shell {
    padding: 78px 0 46px;
  }

  .profile-hero-card,
  .student-hero,
  .teaching-method,
  .teacher-results-panel,
  .learning-path,
  .student-panel,
  .ai-plan-card,
  .certificate-card,
  .availability-list {
    padding: 18px;
    border-radius: 18px;
  }

  .profile-switch {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .profile-switch a {
    padding: 0 10px;
  }

  .teacher-media {
    min-height: 330px;
  }

  .profile-name,
  .student-head h1 {
    font-size: 36px;
  }

  .profile-role {
    font-size: 19px;
  }

  .profile-copy {
    font-size: 18px;
  }

  .time-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .time-grid strong {
    grid-column: 1 / -1;
  }

  .side-actions,
  .results-dashboard,
  .student-head,
  .student-task,
  .profile-cta {
    grid-template-columns: 1fr;
  }

  .profile-actions .btn,
  .profile-outline-btn {
    min-height: 60px;
    font-size: 18px;
  }

  .teacher-metrics,
  .student-actions,
  .method-grid,
  .package-grid,
  .review-grid,
  .student-plan-grid,
  .team-grid,
  .insight-grid,
  .resource-grid,
  .student-kpis {
    grid-template-columns: 1fr;
  }

  .teacher-metrics article + article {
    border-left: 0;
    border-top: 1px solid #dbe8f5;
  }

  .highlight-strip {
    grid-template-columns: 1fr;
  }

  .student-actions a,
  .profile-cta a {
    width: 100%;
  }
}

/* Public teacher profile clean final */
.teacher-profile-page {
  --pp-ink: #092449;
  --pp-muted: #49627f;
  --pp-blue: #1479ef;
  --pp-orange: linear-gradient(135deg, #ff6a2d 0%, #ff3d13 100%);
  --pp-line: #dcecff;
  --pp-soft: #eef7ff;
  background: #fff;
  color: var(--pp-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.teacher-profile-page *,
.teacher-profile-page *::before,
.teacher-profile-page *::after {
  box-sizing: border-box;
}

.teacher-profile-page:not(.is-profile-ready) .pp-hero,
.teacher-profile-page:not(.is-profile-ready) .pp-profile-tabs,
.teacher-profile-page:not(.is-profile-ready) .pp-profile-panels,
.teacher-profile-page:not(.is-profile-ready) .pp-sticky-booking {
  visibility: hidden;
}

.teacher-profile-page:not(.is-profile-ready) .pp-profile-shell::after {
  content: "Loading tutor profile...";
  display: grid;
  min-height: 320px;
  place-items: center;
  color: #61758c;
  font-size: 15px;
  font-weight: 700;
}

.teacher-profile-page .pp-profile-main {
  background: linear-gradient(180deg, #effaff 0, rgba(239, 250, 255, 0) 420px), #fff;
  overflow-x: clip;
}

.teacher-profile-page .pp-profile-shell {
  width: min(1440px, calc(100% - 80px));
  max-width: none;
  margin: 0 auto;
  padding: 34px 0 76px;
}

.teacher-profile-page .teacher-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  color: #61758c;
  font-size: 13px;
  font-weight: 750;
}

.teacher-profile-page .teacher-breadcrumb a {
  color: #0c7df0;
  text-decoration: none;
}

.teacher-profile-page .teacher-breadcrumb strong {
  color: var(--pp-ink);
}

.teacher-profile-page .pp-card,
.teacher-profile-page .pp-section,
.teacher-profile-page .pp-booking {
  border: 1px solid var(--pp-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(13, 67, 120, .06);
}

.teacher-profile-page .pp-hero {
  display: grid;
  grid-template-columns: minmax(300px, 29fr) minmax(0, 46fr) minmax(300px, 25fr);
  gap: 36px;
  align-items: stretch;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.teacher-profile-page .pp-video-card {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

.teacher-profile-page .pp-video-card.is-online::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  width: 18px;
  height: 18px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #42c985;
  box-shadow: 0 8px 18px rgba(14, 151, 94, .28);
}

.teacher-profile-page .pp-video {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 22px;
  background: #e6eef6;
  text-decoration: none;
}

.teacher-profile-page .pp-video img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.teacher-profile-page .pp-video iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  border-radius: inherit;
  background: #000;
}

.teacher-profile-page .pp-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 20, 38, 0) 50%, rgba(5, 20, 38, .2) 100%);
}

.teacher-profile-page .pp-video.has-intro-video {
  background: #e6eef6;
}

.teacher-profile-page .pp-video.is-playing {
  background: #000;
}

.teacher-profile-page .pp-video.is-playing::after {
  content: none;
}

.teacher-profile-page .pp-video[data-intro-video-id] {
  cursor: pointer;
}

.teacher-profile-page .pp-video.is-playing[data-intro-video-id] {
  cursor: default;
}

.teacher-profile-page .pp-video.is-playing img,
.teacher-profile-page .pp-video.is-playing .pp-play {
  display: none;
}

.teacher-profile-page .pp-play {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  width: 76px;
  height: 76px;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  border: 5px solid rgba(255, 255, 255, .94);
  border-radius: 50%;
  background: rgba(7, 26, 48, .22);
  box-shadow: 0 16px 34px rgba(6, 30, 58, .22);
  padding: 0;
  appearance: none;
  cursor: pointer;
}

.teacher-profile-page .pp-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-34%, -50%);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid #fff;
}

.teacher-profile-page .pp-video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.teacher-profile-page .pp-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 35, .72);
  backdrop-filter: blur(5px);
}

.teacher-profile-page .pp-video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 94vw);
  aspect-ratio: 16 / 9;
  max-height: min(78vh, 720px);
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 28px 90px rgba(2, 18, 34, .42);
}

.teacher-profile-page .pp-video-modal__dialog iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.teacher-profile-page .pp-video-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
  cursor: pointer;
}

.teacher-profile-page .pp-video-modal__close::before,
.teacher-profile-page .pp-video-modal__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #102033;
}

.teacher-profile-page .pp-video-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.teacher-profile-page .pp-video-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 720px) {
  .teacher-profile-page .pp-video-modal {
    padding: 14px;
  }

  .teacher-profile-page .pp-video-modal__dialog {
    width: 94vw;
    max-height: 82vh;
    border-radius: 14px;
  }
}

.teacher-profile-page .pp-heart {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 24px rgba(8, 35, 66, .12);
  cursor: pointer;
}

.teacher-profile-page .pp-heart::before,
.teacher-profile-page .pp-favorite::before {
  content: "";
  display: block;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff4266' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6c-1.6-1.6-4.2-1.5-5.7.2L12 8l-3.1-3.2C7.4 3.1 4.8 3 3.2 4.6 1.5 6.3 1.6 9 3.4 10.8L12 19.3l8.6-8.5c1.8-1.8 1.9-4.5.2-6.2Z'/%3E%3C/svg%3E");
}

.teacher-profile-page .pp-heart.is-active::before,
.teacher-profile-page .pp-favorite.is-active::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23ff4266' stroke='%23ff4266' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6c-1.6-1.6-4.2-1.5-5.7.2L12 8l-3.1-3.2C7.4 3.1 4.8 3 3.2 4.6 1.5 6.3 1.6 9 3.4 10.8L12 19.3l8.6-8.5c1.8-1.8 1.9-4.5.2-6.2Z'/%3E%3C/svg%3E");
}

.teacher-profile-page .pp-teacher-copy {
  min-width: 0;
  padding-top: 0;
}

.teacher-profile-page .pp-top-badge {
  width: max-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  background: #fff0da;
  color: #eb8a00;
  font-size: 11px;
  font-weight: 800;
}

.teacher-profile-page .pp-top-badge::before {
  content: "★";
  margin-right: 6px;
}

.teacher-profile-page .pp-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--pp-ink);
  font-size: 30px !important;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

.teacher-profile-page .verified-dot {
  position: relative;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  display: inline-block;
  border-radius: 50%;
  background: linear-gradient(135deg, #36a7ff, #1179ed);
  box-shadow: 0 4px 12px rgba(17, 121, 237, .22);
}

.teacher-profile-page .verified-dot::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 11px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.teacher-profile-page .pp-native,
.teacher-profile-page .pp-role,
.teacher-profile-page .pp-experience,
.teacher-profile-page .pp-intro {
  margin: 0;
  color: #223e5e;
  letter-spacing: 0;
}

.teacher-profile-page .pp-native {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 400;
}

.teacher-profile-page .pp-native .country-flag-wrap,
.teacher-profile-page .pp-sticky-booking .country-flag-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  cursor: help;
}

.teacher-profile-page .pp-native .country-flag-wrap::after,
.teacher-profile-page .pp-sticky-booking .country-flag-wrap::after {
  content: attr(data-country);
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  z-index: 80;
  min-width: max-content;
  padding: 8px 12px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity .16s ease, transform .16s ease;
}

.teacher-profile-page .pp-native .country-flag-wrap::before,
.teacher-profile-page .pp-sticky-booking .country-flag-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 4px);
  z-index: 81;
  width: 10px;
  height: 10px;
  background: #111;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) rotate(45deg);
  transition: opacity .16s ease;
}

.teacher-profile-page .pp-native .country-flag-wrap:hover::after,
.teacher-profile-page .pp-native .country-flag-wrap:hover::before,
.teacher-profile-page .pp-native .country-flag-wrap:focus-visible::after,
.teacher-profile-page .pp-native .country-flag-wrap:focus-visible::before,
.teacher-profile-page .pp-sticky-booking .country-flag-wrap:hover::after,
.teacher-profile-page .pp-sticky-booking .country-flag-wrap:hover::before,
.teacher-profile-page .pp-sticky-booking .country-flag-wrap:focus-visible::after,
.teacher-profile-page .pp-sticky-booking .country-flag-wrap:focus-visible::before {
  opacity: 1;
}

.teacher-profile-page .pp-native img {
  width: 25px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
}

.teacher-profile-page .pp-native .flag {
  width: 25px;
  height: 18px;
  margin: 0;
  border: 0;
  border-radius: 3px;
  box-shadow: none;
}

.teacher-profile-page .pp-role {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 650;
}

.teacher-profile-page .pp-experience {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 400;
}

.teacher-profile-page .pp-tags,
.teacher-profile-page .pp-help-tags div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.teacher-profile-page .pp-tags {
  margin-top: 15px;
}

.teacher-profile-page .pp-tags span,
.teacher-profile-page .pp-help-tags span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: #eef2f7;
  color: #213a5a;
  font-size: 12px;
  font-weight: 750;
}

.teacher-profile-page .pp-intro {
  width: 100%;
  max-width: none !important;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.teacher-profile-page .pp-read-more {
  display: inline-flex;
  gap: 22px;
  margin-top: 14px;
  color: var(--pp-blue);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.teacher-profile-page .pp-booking {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 18px 20px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
}

.teacher-profile-page .pp-booking-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  gap: 10px;
}

.teacher-profile-page .pp-booking h2 {
  margin: 0;
  color: var(--pp-ink);
  font-size: 15px !important;
  line-height: 1.2;
  font-weight: 800;
}

.teacher-profile-page .pp-match {
  width: 112px;
  height: 50px;
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 0;
}

.teacher-profile-page .pp-match::before {
  content: "";
  grid-column: 1;
  grid-row: 1;
  width: 50px;
  height: 50px;
  border: 5px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(#22bd86 0 94%, #e4edf2 94% 100%) border-box;
}

.teacher-profile-page .pp-match strong {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  color: #0d2b55;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
}

.teacher-profile-page .pp-match span {
  grid-column: 2;
  color: #18a874;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
}

.teacher-profile-page .pp-booking-head[hidden] {
  display: none;
}

.teacher-profile-page .pp-match.pp-match--locked {
  position: relative;
}

.teacher-profile-page .pp-match.pp-match--locked .pp-match-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 7px;
  color: inherit;
  text-decoration: none;
}

.teacher-profile-page .pp-match.pp-match--locked .pp-match-link span {
  color: #1687e8;
  font-size: 9px;
  line-height: 1.05;
}

.teacher-profile-page .pp-match.pp-match--cta {
  width: auto;
  min-width: 138px;
  height: auto;
  grid-template-columns: 1fr;
  gap: 0;
}

.teacher-profile-page .pp-match.pp-match--cta::before {
  display: none;
}

.teacher-profile-page .pp-match-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 2px solid #1687e8;
  border-radius: 12px;
  background: #eef8ff;
  color: #1687e8;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.teacher-profile-page .pp-price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--pp-line);
}

.teacher-profile-page .pp-price-grid article + article {
  border-left: 1px solid var(--pp-line);
  padding-left: 16px;
}

.teacher-profile-page .pp-price-grid span,
.teacher-profile-page .pp-price-grid small,
.teacher-profile-page .pp-slots span,
.teacher-profile-page .pp-response {
  color: var(--pp-muted);
  font-size: 11px;
  font-weight: 650;
}

.teacher-profile-page .pp-price-grid strong {
  display: block;
  margin-top: 4px;
  color: #0d2b55;
  font-size: 24px;
  line-height: 1;
  font-weight: 850;
}

.teacher-profile-page .pp-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 0;
  align-items: center;
  margin-top: 9px;
  padding-bottom: 9px;
}

.teacher-profile-page .pp-slots h3 {
  grid-column: 1 / -1;
  margin: 0 0 7px;
  color: var(--pp-ink);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
}

.teacher-profile-page .pp-slots div,
.teacher-profile-page .pp-slots a {
  padding-inline: 7px;
  border-left: 1px solid var(--pp-line);
}

.teacher-profile-page .pp-slots div:first-of-type {
  border-left: 0;
  padding-left: 0;
}

.teacher-profile-page .pp-slots strong {
  display: block;
  margin-top: 3px;
  color: var(--pp-ink);
  font-size: 12px;
  font-weight: 850;
}

.teacher-profile-page .pp-slots a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--pp-blue);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.teacher-profile-page .pp-slots a::before {
  content: "";
  width: 15px;
  height: 15px;
  display: inline-block;
  margin-right: 6px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230b7cff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4M16 2v4M3 10h18M5 5h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E");
}

.teacher-profile-page .pp-primary,
.teacher-profile-page .pp-secondary {
  min-height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.teacher-profile-page .pp-primary {
  margin-top: auto;
  background: var(--pp-orange);
  color: #fff;
}

.teacher-profile-page .pp-secondary {
  margin-top: 8px;
  border: 2px solid #0b7cff;
  background: #fff;
  color: #0b74ef;
}

.teacher-profile-page .pp-favorite {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
  border: 0;
  background: transparent;
  color: #1a3557;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.teacher-profile-page .pp-favorite::before {
  width: 19px;
  height: 19px;
  flex-basis: 19px;
}

.teacher-profile-page .pp-response {
  margin: 4px 0 0;
}

.teacher-profile-page .pp-response::before {
  content: "";
  width: 8px;
  height: 8px;
  display: none;
  margin-right: 8px;
  border-radius: 50%;
  background: #17bf73;
}

.teacher-profile-page .pp-response.is-online::before {
  display: inline-block;
}

.teacher-profile-page .pp-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 0;
  width: 100%;
  margin-top: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.teacher-profile-page .pp-stats article {
  min-height: 38px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-content: center;
  gap: 2px 9px;
  padding: 0 14px;
  border-left: 1px solid var(--pp-line);
}

.teacher-profile-page .pp-stats article:nth-child(3n + 1) {
  border-left: 0;
  padding-left: 0;
}

.teacher-profile-page .pp-stats span {
  grid-row: span 2;
  color: #ffb31a;
  font-size: 18px;
  line-height: 1;
}

.teacher-profile-page .pp-stats strong {
  color: var(--pp-ink);
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
}

.teacher-profile-page .pp-stats small {
  color: var(--pp-muted);
  font-size: 10px;
  line-height: 1.1;
  font-weight: 600;
}

.teacher-profile-page .pp-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
  margin-top: 18px;
}

.teacher-profile-page .pp-grid > .pp-card {
  height: 100%;
}

.teacher-profile-page .pp-section {
  padding: 22px;
}

.teacher-profile-page .pp-section h2,
.teacher-profile-page .pp-section-head h2 {
  margin: 0;
  color: var(--pp-ink);
  font-size: 22px !important;
  line-height: 1.2;
  font-weight: 800;
  text-align: left !important;
}

.teacher-profile-page .pp-section h3 {
  margin: 0;
  color: var(--pp-ink);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
}

.teacher-profile-page .pp-section p {
  margin: 0;
  color: #324d6d;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
}

.teacher-profile-page .pp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.teacher-profile-page .pp-section-head a,
.teacher-profile-page .pp-section-head span {
  color: var(--pp-blue);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.teacher-profile-page .pp-choose { grid-column: span 8; }
.teacher-profile-page .pp-ai-recommend { grid-column: span 4; }
.teacher-profile-page .pp-results-grid > .pp-section:first-child { grid-column: span 7; }
.teacher-profile-page .pp-before-after { grid-column: span 5; }
.teacher-profile-page .pp-style-card { grid-column: span 5; }
.teacher-profile-page .pp-speak-card { grid-column: span 7; }
.teacher-profile-page .pp-availability { grid-column: span 6; }
.teacher-profile-page .pp-help-tags { grid-column: span 6; }
.teacher-profile-page .pp-courses { grid-column: span 7; }
.teacher-profile-page .pp-questions { grid-column: span 5; }
.teacher-profile-page .pp-ai-chat { grid-column: span 3; }

.teacher-profile-page .pp-learning-grid {
  align-items: stretch;
}

.teacher-profile-page .pp-style-card,
.teacher-profile-page .pp-speak-card {
  min-height: 0;
}

.teacher-profile-page .pp-speak-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-auto-rows: max-content;
  align-content: start;
  gap: 10px 28px;
}

.teacher-profile-page .pp-speak-card h2:first-of-type,
.teacher-profile-page .pp-speak-card dl {
  grid-column: 1;
}

.teacher-profile-page .pp-speak-card h2:nth-of-type(2),
.teacher-profile-page .pp-speak-card ul {
  grid-column: 2;
}

.teacher-profile-page .pp-speak-card h2:nth-of-type(2) {
  grid-row: 1;
}

.teacher-profile-page .pp-speak-card ul {
  grid-row: 2;
}

.teacher-profile-page .pp-choice-cards,
.teacher-profile-page .pp-result-cards,
.teacher-profile-page .pp-before-list,
.teacher-profile-page .pp-course-cards {
  display: grid;
  gap: 18px;
}

.teacher-profile-page .pp-choice-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.teacher-profile-page .pp-result-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.teacher-profile-page .pp-before-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.teacher-profile-page .pp-course-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.teacher-profile-page .pp-course-question-grid {
  align-items: stretch;
}

.teacher-profile-page .pp-results-grid:has(.pp-before-after[hidden]) > .pp-section:first-child,
.teacher-profile-page .pp-course-question-grid:has(.pp-courses[hidden]) .pp-questions,
.teacher-profile-page .pp-course-question-grid:has(.pp-questions[hidden]) .pp-courses {
  grid-column: 1 / -1;
}

.teacher-profile-page .pp-choice-cards article,
.teacher-profile-page .pp-result-cards article,
.teacher-profile-page .pp-before-list article,
.teacher-profile-page .pp-course-cards article,
.teacher-profile-page .pp-questions details,
.teacher-profile-page .pp-review-cards article {
  border: 1px solid var(--pp-line);
  border-radius: 14px;
  background: #fff;
}

.teacher-profile-page .pp-choice-cards article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
  min-height: 132px;
  padding: 18px;
  background: linear-gradient(135deg, #f3f9ff, #fff);
}

.teacher-profile-page .pp-choice-cards article:nth-child(2) { background: linear-gradient(135deg, #f3fff8, #fff); }
.teacher-profile-page .pp-choice-cards article:nth-child(3) { background: linear-gradient(135deg, #fff7ef, #fff); }

.teacher-profile-page .pp-choice-cards span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 50%;
  background: rgba(20, 121, 239, .1);
  color: var(--pp-blue);
  font-size: 17px;
}

.teacher-profile-page .pp-choice-cards h3 {
  align-self: center;
  margin-bottom: 8px;
}

.teacher-profile-page .pp-choice-cards p {
  grid-column: 2;
}

.teacher-profile-page .pp-ai-recommend {
  background: linear-gradient(135deg, #f4faff, #fff);
}

.teacher-profile-page .pp-ai-recommend h2 span,
.teacher-profile-page .pp-ai-chat h2 span {
  display: inline-grid;
  place-items: center;
  margin-right: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #e8f4ff;
  color: var(--pp-blue);
  font-size: 12px;
}

.teacher-profile-page .pp-ai-recommend ul,
.teacher-profile-page .pp-speak-card ul {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.teacher-profile-page .pp-ai-recommend li,
.teacher-profile-page .pp-speak-card li {
  position: relative;
  padding-left: 16px;
  color: #223e5e;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.teacher-profile-page .pp-ai-recommend li::before,
.teacher-profile-page .pp-speak-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #17b979;
}

.teacher-profile-page .pp-result-cards article {
  min-height: 104px;
  padding: 18px;
}

.teacher-profile-page .pp-result-cards strong {
  display: block;
  color: #08284f;
  font-size: 30px;
  line-height: 1;
  font-weight: 850;
}

.teacher-profile-page .pp-result-cards span {
  display: block;
  margin-top: 10px;
  color: #2d4969;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 750;
}

.teacher-profile-page .pp-before-list article {
  min-height: 132px;
  padding: 20px;
}

.teacher-profile-page .pp-before-list b {
  color: var(--pp-ink);
  font-size: 13px;
}

.teacher-profile-page .pp-before-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  color: var(--pp-muted);
  font-size: 12px;
  font-weight: 650;
}

.teacher-profile-page .pp-before-list strong {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 24px;
  margin-top: 6px;
  border-radius: 999px;
  background: #e8f4ff;
  color: var(--pp-blue);
}

.teacher-profile-page .pp-before-list i {
  font-style: normal;
  text-align: center;
}

.teacher-profile-page .pp-before-list em {
  display: inline-flex;
  margin-top: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e8faef;
  color: #10a868;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.teacher-profile-page .pp-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.teacher-profile-page .pp-steps article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 7px 10px;
  align-items: start;
  text-align: left;
}

.teacher-profile-page .pp-steps span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 50%;
  background: #eaf4ff;
  color: var(--pp-blue);
  font-weight: 850;
}

.teacher-profile-page .pp-steps h3 { margin-bottom: 8px; }
.teacher-profile-page .pp-steps p {
  grid-column: 2;
  font-size: 12px;
}

.teacher-profile-page .pp-bars {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}

.teacher-profile-page .pp-bars label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  color: #203d5d;
  font-size: 12px;
  font-weight: 750;
}

.teacher-profile-page .pp-bars i {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5edf4;
}

.teacher-profile-page .pp-bars b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2f86ff;
}

.teacher-profile-page .pp-speak-card dl {
  display: grid;
  grid-template-columns: minmax(110px, max-content) max-content;
  justify-content: start;
  align-items: start;
  gap: 9px 28px;
  margin: 0;
}

.teacher-profile-page .pp-speak-card ul {
  margin: 0;
}

.teacher-profile-page .pp-speak-card dt,
.teacher-profile-page .pp-speak-card dd {
  margin: 0;
  color: #1e3d60;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.teacher-profile-page .pp-speak-card dt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.teacher-profile-page .pp-speak-card dd {
  display: flex;
  align-items: flex-start;
  justify-self: start;
}

.teacher-profile-page .pp-speak-card img {
  width: 18px;
  height: 13px;
  object-fit: cover;
}

.teacher-profile-page .pp-calendar-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: start;
  gap: 18px;
  margin-top: 16px;
}

.teacher-profile-page .pp-calendar header,
.teacher-profile-page .pp-week,
.teacher-profile-page .pp-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  text-align: center;
}

.teacher-profile-page .pp-calendar header {
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  margin-bottom: 16px;
}

.teacher-profile-page .pp-calendar header strong {
  color: var(--pp-ink);
}

.teacher-profile-page .pp-calendar button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #eef7ff;
  color: var(--pp-blue);
  font-size: 22px;
}

.teacher-profile-page .pp-week {
  margin-bottom: 10px;
  color: var(--pp-muted);
  font-size: 11px;
  font-weight: 750;
}

.teacher-profile-page .pp-days span,
.teacher-profile-page .pp-days b {
  min-height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #254461;
  font-size: 12px;
  font-weight: 750;
}

.teacher-profile-page .pp-days .has {
  background: #d9f8ea;
  color: #0f9d63;
}

.teacher-profile-page .pp-days .active {
  background: var(--pp-blue);
  color: #fff;
}

.teacher-profile-page .pp-day-slots {
  border-left: 1px solid var(--pp-line);
  padding-left: 18px;
}

.teacher-profile-page .pp-day-slots h3 {
  margin-bottom: 12px;
}

.teacher-profile-page .pp-day-slots p {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 13px;
}

.teacher-profile-page .pp-day-slots b {
  color: #12a56d;
}

.teacher-profile-page .pp-day-slots a {
  min-height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #b8d8ff;
  border-radius: 8px;
  color: var(--pp-blue);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.teacher-profile-page .pp-day-slots .pp-full-schedule {
  margin-top: 16px;
  border: 0;
}

.teacher-profile-page .pp-help-tags {
  align-self: stretch;
}

.teacher-profile-page .pp-help-tags div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 10px 12px;
  margin-top: 16px;
}

.teacher-profile-page .pp-help-tags span {
  justify-content: flex-start;
  min-width: 0;
  min-height: 34px;
  padding: 0 12px;
  text-align: left;
  white-space: normal;
}

.teacher-profile-page .pp-course-cards article {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto;
  overflow: hidden;
}

.teacher-profile-page .pp-course-cards img {
  width: 100%;
  height: 92px;
  display: block;
  object-fit: cover;
}

.teacher-profile-page .pp-course-cards article > span {
  position: absolute;
  top: 74px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef7ff;
  color: var(--pp-blue);
  font-size: 10px;
  font-weight: 800;
}

.teacher-profile-page .pp-course-cards h3 {
  margin: 20px 12px 0;
  font-size: 13px;
}

.teacher-profile-page .pp-course-cards p {
  margin: 8px 12px 0;
  font-size: 11px;
}

.teacher-profile-page .pp-course-cards footer {
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 12px 12px;
  color: #244764;
  font-size: 10px;
}

.teacher-profile-page .pp-course-cards footer strong {
  margin-left: auto;
  color: var(--pp-ink);
}

.teacher-profile-page .pp-courses[data-course-count="1"] .pp-course-cards {
  grid-template-columns: minmax(0, 1fr);
  max-width: 320px;
}

.teacher-profile-page .pp-courses[data-course-count="2"] .pp-course-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 560px;
}

.teacher-profile-page .pp-questions details {
  padding: 0 14px;
}

.teacher-profile-page .pp-questions details + details {
  margin-top: 10px;
}

.teacher-profile-page .pp-questions summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--pp-ink);
  font-size: 13px;
  font-weight: 800;
}

.teacher-profile-page .pp-questions summary::marker {
  content: "";
}

.teacher-profile-page .pp-questions summary::after {
  content: "⌄";
  color: var(--pp-blue);
}

.teacher-profile-page .pp-questions p {
  padding-bottom: 14px;
  font-size: 12px;
}

.teacher-profile-page .pp-ai-chat button,
.teacher-profile-page .pp-ai-chat label {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  background: #eef4fa;
  color: #243f5e;
  padding: 0 14px;
  font: inherit;
  font-size: 12px;
}

.teacher-profile-page .pp-ai-chat label {
  min-height: 46px;
  background: #fff;
  border: 1px solid var(--pp-line);
}

.teacher-profile-page .pp-ai-chat input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: inherit;
  font: inherit;
}

.teacher-profile-page .pp-ai-chat label span {
  color: var(--pp-blue);
}

.teacher-profile-page .pp-reviews {
  margin-top: 24px;
}

.teacher-profile-page .pp-review-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  margin-top: 18px;
}

.teacher-profile-page .pp-rating-summary strong {
  color: var(--pp-ink);
  font-size: 34px;
}

.teacher-profile-page .pp-rating-summary p {
  margin: 6px 0 8px;
  color: #ffb31a;
}

.teacher-profile-page .pp-rating-summary small {
  color: var(--pp-muted);
}

.teacher-profile-page .pp-rating-summary div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 7px;
  align-items: center;
  margin-top: 8px;
  font-size: 11px;
}

.teacher-profile-page .pp-rating-summary i {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf4;
}

.teacher-profile-page .pp-rating-summary b {
  display: block;
  height: 100%;
  background: var(--pp-blue);
}

.teacher-profile-page .pp-review-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.teacher-profile-page .pp-review-cards article {
  min-height: 190px;
  padding: 15px;
}

.teacher-profile-page .pp-review-cards header {
  display: flex;
  align-items: center;
  gap: 9px;
}

.teacher-profile-page .pp-review-cards header img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.teacher-profile-page .pp-review-cards header span {
  margin-left: auto;
  font-size: 11px;
}

.teacher-profile-page .pp-review-cards footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: var(--pp-muted);
  font-size: 11px;
}

.teacher-profile-page .pp-video-review {
  position: relative;
  overflow: hidden;
  color: #fff;
}

.teacher-profile-page .pp-video-review > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.68);
}

.teacher-profile-page .pp-video-review span,
.teacher-profile-page .pp-video-review b,
.teacher-profile-page .pp-video-review small {
  position: relative;
  z-index: 1;
}

.teacher-profile-page .pp-sticky-booking {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 20;
  width: min(1320px, calc(100% - 96px));
  min-height: 82px;
  display: grid;
  grid-template-columns: 58px minmax(180px, 1fr) repeat(4, auto) 190px 180px 48px;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--pp-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 46px rgba(8, 35, 66, .16);
  transform: translate(-50%, calc(100% + 40px));
  opacity: 0;
  pointer-events: none;
  transition: transform .2s ease, opacity .2s ease;
}

.teacher-profile-page .pp-sticky-booking.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.teacher-profile-page .pp-sticky-booking > img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.teacher-profile-page .pp-sticky-booking strong {
  display: block;
  color: var(--pp-ink);
}

.teacher-profile-page .pp-sticky-booking div span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pp-muted);
  font-size: 12px;
}

.teacher-profile-page .pp-sticky-booking div img {
  width: 18px;
}

.teacher-profile-page .pp-sticky-booking dl {
  margin: 0;
  text-align: center;
}

.teacher-profile-page .pp-sticky-booking dt {
  color: var(--pp-ink);
  font-weight: 850;
}

.teacher-profile-page .pp-sticky-booking dd {
  margin: 3px 0 0;
  color: var(--pp-muted);
  font-size: 11px;
}

.teacher-profile-page .pp-sticky-booking .pp-primary,
.teacher-profile-page .pp-sticky-booking .pp-secondary {
  min-height: 50px;
  margin: 0;
}

.teacher-profile-page .pp-sticky-booking .pp-heart {
  position: static;
}

@media (min-width: 1200px) {
  .teacher-profile-page .pp-profile-shell {
    width: min(1440px, calc(100% - 80px));
  }

  .teacher-profile-page .pp-hero {
    grid-template-columns: minmax(300px, 29fr) minmax(0, 46fr) minmax(300px, 25fr);
  }

  .teacher-profile-page .pp-video-card,
  .teacher-profile-page .pp-video {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .teacher-profile-page .pp-booking {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .teacher-profile-page .pp-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
}

@media (max-width: 1199px) {
  .teacher-profile-page .pp-profile-shell {
    width: min(100% - 48px, 980px);
    padding-top: 30px;
  }

  .teacher-profile-page .pp-hero {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
  }

  .teacher-profile-page .pp-video-card,
  .teacher-profile-page .pp-video {
    width: 320px;
    height: 320px;
  }

  .teacher-profile-page .pp-booking {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 0;
  }

  .teacher-profile-page .pp-name {
    font-size: 30px !important;
  }

  .teacher-profile-page .pp-stats,
  .teacher-profile-page .pp-result-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .teacher-profile-page .pp-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .teacher-profile-page .pp-choose,
  .teacher-profile-page .pp-ai-recommend,
  .teacher-profile-page .pp-results-grid > .pp-section:first-child,
  .teacher-profile-page .pp-before-after,
  .teacher-profile-page .pp-style-card,
  .teacher-profile-page .pp-speak-card,
  .teacher-profile-page .pp-availability,
  .teacher-profile-page .pp-help-tags,
  .teacher-profile-page .pp-courses,
  .teacher-profile-page .pp-questions,
  .teacher-profile-page .pp-ai-chat {
    grid-column: span 6;
  }

  .teacher-profile-page .pp-review-layout {
    grid-template-columns: 1fr;
  }

  .teacher-profile-page .pp-review-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-profile-page .pp-sticky-booking {
    display: none;
  }
}

@media (max-width: 760px) {
  .teacher-profile-page .pp-profile-main,
  .teacher-profile-page .pp-profile-shell {
    overflow-x: visible;
  }

  .teacher-profile-page .pp-profile-shell {
    width: 100%;
    padding: 26px 14px 74px;
  }

  .teacher-profile-page .teacher-breadcrumb {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .teacher-profile-page .pp-hero,
  .teacher-profile-page .pp-grid,
  .teacher-profile-page .pp-choice-cards,
  .teacher-profile-page .pp-result-cards,
  .teacher-profile-page .pp-before-list,
  .teacher-profile-page .pp-course-cards,
  .teacher-profile-page .pp-steps,
  .teacher-profile-page .pp-calendar-wrap,
  .teacher-profile-page .pp-review-cards {
    grid-template-columns: 1fr;
  }

  .teacher-profile-page .pp-video-card,
  .teacher-profile-page .pp-video {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .teacher-profile-page .pp-name {
    flex-wrap: wrap;
    font-size: 30px !important;
    white-space: normal;
  }

  .teacher-profile-page .pp-native,
  .teacher-profile-page .pp-tags {
    flex-wrap: wrap;
  }

  .teacher-profile-page .pp-tags span:last-child {
    display: none;
  }

  .teacher-profile-page .pp-booking {
    width: 100%;
    min-height: 0;
    padding: 20px;
  }

  .teacher-profile-page .pp-booking-head {
    grid-template-columns: minmax(0, 1fr) 106px;
  }

  .teacher-profile-page .pp-match {
    width: 106px;
    height: 54px;
    grid-template-columns: 54px 1fr;
    gap: 8px;
  }

  .teacher-profile-page .pp-match::before {
    width: 54px;
    height: 54px;
    border-width: 6px;
  }

  .teacher-profile-page .pp-match strong {
    font-size: 13px;
  }

  .teacher-profile-page .pp-match span {
    font-size: 10px;
  }

  .teacher-profile-page .pp-price-grid {
    margin-top: 20px;
  }

  .teacher-profile-page .pp-slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .teacher-profile-page .pp-slots a {
    grid-column: 1 / -1;
    margin-top: 10px;
    padding-left: 0;
    border-left: 0;
  }

  .teacher-profile-page .pp-primary,
  .teacher-profile-page .pp-secondary {
    min-height: 50px;
  }

  .teacher-profile-page .pp-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
  }

  .teacher-profile-page .pp-stats article {
    border-left: 0;
    padding: 0;
  }

  .teacher-profile-page .pp-section {
    padding: 20px;
  }

  .teacher-profile-page .pp-speak-card {
    grid-template-columns: 1fr;
  }

  .teacher-profile-page .pp-speak-card h2:first-of-type,
  .teacher-profile-page .pp-speak-card dl,
  .teacher-profile-page .pp-speak-card h2:nth-of-type(2),
  .teacher-profile-page .pp-speak-card ul {
    grid-column: 1;
    grid-row: auto;
  }

.teacher-profile-page .pp-course-cards p {
    width: auto;
  }
}

.teacher-profile-page .pp-teacher-news {
  margin-top: 18px;
  padding: 22px;
}

.teacher-profile-page .pp-teacher-news .pp-section-head {
  margin-bottom: 14px;
}

.teacher-profile-page .pp-news-feed {
  display: grid;
  gap: 14px;
  max-width: 820px;
}

.teacher-profile-page .pp-public-news-post {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--pp-line);
  border-radius: 0;
  background: #fff;
  box-shadow: 0 12px 30px rgba(37, 75, 118, .055);
}

.teacher-profile-page .pp-public-news-post.is-pinned {
  background: linear-gradient(135deg, #f3f9ff 0%, #fff 58%, #f8fcff 100%);
}

.teacher-profile-page .pp-public-news-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.teacher-profile-page .pp-public-news-head img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #e9f4ff;
}

.teacher-profile-page .pp-public-news-head strong {
  display: block;
  color: var(--pp-ink);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
}

.teacher-profile-page .pp-public-news-head p,
.teacher-profile-page .pp-public-news-head span {
  margin: 3px 0 0;
  color: #637893;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 600;
}

.teacher-profile-page .pp-public-news-head b {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fff4df;
  color: #e77d00;
  padding: 0 10px;
  font-size: 11px;
  line-height: 1;
}

.teacher-profile-page .pp-public-news-label {
  justify-self: start;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #edf6ff;
  color: var(--pp-blue);
  font-size: 11px;
  font-weight: 800;
}

.teacher-profile-page .pp-public-news-post h3 {
  max-width: 680px;
  margin: 0;
  color: var(--pp-ink);
  font-size: 18px;
  line-height: 1.28;
  font-weight: 800;
}

.teacher-profile-page .pp-public-news-body {
  max-width: 720px;
  color: #304a68;
  font-size: 14px;
  line-height: 1.58;
  font-weight: 500;
}

.teacher-profile-page .pp-public-news-media {
  display: block;
  justify-self: stretch;
  width: 100%;
  height: auto;
  border-radius: 0;
  object-fit: initial;
  background: transparent;
}

.teacher-profile-page .pp-public-news-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid #e8f0f9;
  color: #637893;
  font-size: 12px;
  font-weight: 700;
}

.teacher-profile-page .pp-public-news-footer span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.teacher-profile-page .pp-public-news-metrics {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: #536a86;
  font-size: 12px;
  font-weight: 800;
}

.teacher-profile-page .pp-teacher-videos {
  width: min(100%, 980px);
  margin-top: 18px;
  padding-bottom: 18px;
}

.teacher-profile-page .pp-teacher-videos[data-video-count="1"] {
  width: min(100%, 390px);
}

.teacher-profile-page .pp-teacher-videos[data-video-count="2"] {
  width: min(100%, 720px);
}

.teacher-profile-page .pp-teacher-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  overflow: visible;
  padding: 0;
  margin: 0;
}

.teacher-profile-page .pp-teacher-video-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  color: #17212b;
  text-decoration: none;
}

.teacher-profile-page .pp-teacher-video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: #17212b;
  aspect-ratio: 16 / 9;
}

.teacher-profile-page .pp-teacher-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .92;
  transition: transform .2s ease;
}

.teacher-profile-page .pp-teacher-video-card:hover .pp-teacher-video-thumb img {
  transform: scale(1.04);
}

.teacher-profile-page .pp-teacher-video-thumb i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 14px 30px rgba(23, 33, 43, .18);
}

.teacher-profile-page .pp-teacher-video-thumb i::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 17px;
  border-left: 15px solid #159eef;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.teacher-profile-page .pp-teacher-video-card strong {
  overflow: hidden;
  color: #17212b;
  font-size: 16px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-profile-page .pp-teacher-video-card small {
  color: #159eef;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 1020px) {
  .teacher-profile-page .pp-teacher-video-card {
    flex-basis: min(44%, 288px);
  }
}

@media (max-width: 680px) {
  .teacher-profile-page .pp-teacher-news {
    padding: 18px;
  }

  .teacher-profile-page .pp-public-news-post {
    padding: 16px;
  }

  .teacher-profile-page .pp-public-news-head {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .teacher-profile-page .pp-public-news-head img {
    width: 42px;
    height: 42px;
  }

  .teacher-profile-page .pp-public-news-head b {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .teacher-profile-page .pp-public-news-post h3 {
    font-size: 16px;
  }

  .teacher-profile-page .pp-teacher-video-card {
    flex-basis: 82vw;
    min-width: 230px;
  }
}

/* Test profile feed layout */
.teacher-profile-page .pp-profile-tabs {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 30px 0 14px;
  border-bottom: 1px solid #dfeaf7;
}

.teacher-profile-page .pp-profile-tabs button {
  position: relative;
  min-height: 52px;
  border: 0;
  background: transparent;
  color: #314b69;
  padding: 0 2px;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}

.teacher-profile-page .pp-profile-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px;
  background: transparent;
}

.teacher-profile-page .pp-profile-tabs button.is-active {
  color: var(--pp-blue);
}

.teacher-profile-page .pp-profile-tabs button.is-active::after {
  background: var(--pp-blue);
}

.teacher-profile-page .pp-profile-panel[hidden] {
  display: none !important;
}

.teacher-profile-page .pp-view-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(330px, 3fr);
  gap: 22px;
  align-items: start;
}

.teacher-profile-page .pp-view-layout > .pp-teacher-news {
  margin-top: 0;
  padding: 24px;
}

.teacher-profile-page .pp-view-layout .pp-news-feed {
  max-width: none;
}

.teacher-profile-page .pp-view-rail {
  display: grid;
  gap: 16px;
  align-items: start;
}

.teacher-profile-page .pp-view-rail .pp-section,
.teacher-profile-page .pp-view-rail .pp-card {
  width: 100%;
  grid-column: auto;
  margin-top: 0;
  padding: 20px;
  border-radius: 18px;
}

.teacher-profile-page .pp-view-rail .pp-section h2 {
  font-size: 18px !important;
  line-height: 1.22;
}

.teacher-profile-page .pp-view-rail .pp-section h3 {
  font-size: 13px;
  line-height: 1.25;
}

.teacher-profile-page .pp-view-rail .pp-section p,
.teacher-profile-page .pp-view-rail .pp-section li,
.teacher-profile-page .pp-view-rail .pp-section summary,
.teacher-profile-page .pp-view-rail .pp-section dt,
.teacher-profile-page .pp-view-rail .pp-section dd {
  font-size: 12px;
}

.teacher-profile-page .pp-view-rail .pp-section-head {
  margin-bottom: 12px;
}

.teacher-profile-page .pp-view-rail .pp-choice-cards,
.teacher-profile-page .pp-view-rail .pp-course-cards,
.teacher-profile-page .pp-view-rail .pp-before-list {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.teacher-profile-page .pp-view-rail .pp-choice-cards article {
  min-height: 0;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 6px 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.teacher-profile-page .pp-view-rail .pp-choice-cards span {
  width: 20px;
  height: 20px;
  background: transparent;
  color: #17a66b;
  font-size: 15px;
}

.teacher-profile-page .pp-view-rail .pp-choice-cards h3 {
  margin: 0;
}

.teacher-profile-page .pp-view-rail .pp-choice-cards p {
  grid-column: 2;
}

.teacher-profile-page .pp-view-rail .pp-speak-card {
  display: block;
}

.teacher-profile-page .pp-view-rail .pp-speak-card h2 {
  margin-bottom: 14px;
}

.teacher-profile-page .pp-view-rail .pp-speak-card h3 {
  margin: 16px 0 8px;
  color: #58708e;
  font-weight: 650;
}

.teacher-profile-page .pp-view-rail .pp-speak-card h3:first-of-type {
  margin-top: 0;
}

.teacher-profile-page .pp-view-rail .pp-speak-card dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5eef8;
}

.teacher-profile-page .pp-view-rail .pp-speak-card ul {
  margin-top: 0;
}

.teacher-profile-page .pp-view-rail .pp-courses--rail .pp-course-cards article {
  min-height: 68px;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.teacher-profile-page .pp-view-rail .pp-courses--rail .pp-course-cards img {
  grid-row: 1 / 3;
  width: 66px;
  height: 50px;
  border-radius: 9px;
}

.teacher-profile-page .pp-view-rail .pp-courses--rail .pp-course-cards article > span,
.teacher-profile-page .pp-view-rail .pp-courses--rail .pp-course-cards p {
  display: none;
}

.teacher-profile-page .pp-view-rail .pp-courses--rail .pp-course-cards h3 {
  margin: 0;
}

.teacher-profile-page .pp-view-rail .pp-courses--rail .pp-course-cards footer {
  grid-column: 2 / 4;
  margin: 0;
  gap: 6px;
  font-size: 10px;
}

.teacher-profile-page .pp-view-rail .pp-courses--rail .pp-course-cards footer strong {
  grid-row: 1 / 3;
  grid-column: 3;
  align-self: center;
  margin: 0;
  font-size: 12px;
}

.teacher-profile-page .pp-view-rail .pp-help-tags div {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.teacher-profile-page .pp-view-rail .pp-help-tags span {
  min-height: 30px;
  border-radius: 10px;
}

.teacher-profile-page .pp-reviews--rail .pp-rating-summary strong {
  font-size: 34px;
}

.teacher-profile-page .pp-reviews--rail .pp-rating-summary p {
  display: inline-block;
  margin-left: 10px;
}

.teacher-profile-page .pp-view-rail .pp-result-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.teacher-profile-page .pp-view-rail .pp-result-cards article {
  min-height: 82px;
  padding: 14px;
}

.teacher-profile-page .pp-view-rail .pp-result-cards strong {
  font-size: 22px;
}

.teacher-profile-page .pp-view-rail .pp-calendar-wrap {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.teacher-profile-page .pp-view-rail .pp-day-slots {
  border-left: 0;
  border-top: 1px solid var(--pp-line);
  padding: 14px 0 0;
}

.teacher-profile-page .pp-view-rail .pp-before-list article {
  min-height: 0;
  padding: 15px;
}

.teacher-profile-page .pp-courses--full .pp-course-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.teacher-profile-page .pp-reviews--full {
  margin-top: 0;
}

.teacher-profile-page .pp-profile-empty {
  min-height: 180px;
}

@media (max-width: 1120px) {
  .teacher-profile-page .pp-view-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .teacher-profile-page .pp-view-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .teacher-profile-page .pp-profile-tabs {
    overflow-x: auto;
    gap: 22px;
    margin-top: 22px;
    padding-bottom: 1px;
  }

  .teacher-profile-page .pp-profile-tabs button {
    flex: 0 0 auto;
  }

  .teacher-profile-page .pp-view-rail,
  .teacher-profile-page .pp-courses--full .pp-course-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Mobile tutor profile edge-to-edge and sticky tabs */
@media (max-width: 760px) {
  .teacher-profile-page .pp-profile-main,
  .teacher-profile-page .pp-profile-shell {
    overflow-x: hidden;
  }

  .teacher-profile-page .pp-profile-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 72px;
  }

  .teacher-profile-page .teacher-breadcrumb {
    margin: 0;
    padding: 14px 0;
  }

  .teacher-profile-page .pp-hero {
    gap: 0;
    margin: 0;
    padding-inline: 10px;
  }

  .teacher-profile-page .pp-video-card,
  .teacher-profile-page .pp-video,
  .teacher-profile-page .pp-video img {
    width: 100%;
    border-radius: 0;
  }

  .teacher-profile-page .pp-teacher-copy,
  .teacher-profile-page .pp-booking {
    padding-left: 0;
    padding-right: 0;
  }

  .teacher-profile-page .pp-profile-tabs {
    position: sticky;
    top: 0;
    z-index: 120;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
    border-bottom: 1px solid #dfeaf7;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 8px 18px rgba(8, 35, 66, .06);
    backdrop-filter: blur(10px);
  }

  .teacher-profile-page .pp-profile-tabs button {
    min-width: 0;
    min-height: 44px;
    padding: 0 1px;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
  }

  .teacher-profile-page .pp-profile-tabs button::after {
    left: 0;
    right: 0;
    height: 2px;
  }

  .teacher-profile-page .pp-profile-panels,
  .teacher-profile-page .pp-profile-panel,
  .teacher-profile-page .pp-view-layout {
    width: 100%;
  }

  .teacher-profile-page .pp-profile-panels {
    padding-inline: 10px;
  }

  .teacher-profile-page .pp-view-layout {
    gap: 0;
  }

  .teacher-profile-page .pp-view-layout > .pp-teacher-news {
    padding: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .teacher-profile-page .pp-news-feed {
    gap: 12px;
  }

  .teacher-profile-page .pp-public-news-post {
    padding: 16px 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .teacher-profile-page .pp-public-news-media {
    width: calc(100% + 20px);
    max-width: none;
    margin-inline: -10px;
    max-height: none;
    border-radius: 0;
  }
}

.teacher-profile-page .pp-video-card {
  overflow: hidden;
  isolation: isolate;
}

.teacher-profile-page .pp-video-card.is-online::after {
  content: none;
}

.teacher-profile-page .pp-video-card.is-online .pp-video::before {
  content: none;
}

.teacher-profile-page .pp-online-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 12;
  display: none;
  width: 14px;
  height: 14px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #42c985;
  box-shadow: 0 6px 14px rgba(14, 151, 94, .2);
  pointer-events: none;
}

.teacher-profile-page .pp-video-card.is-online .pp-online-dot {
  display: block;
}

@media (max-width: 720px) {
  .teacher-profile-page .pp-online-dot {
    right: 12px;
    bottom: 12px;
    width: 12px;
    height: 12px;
    border-width: 3px;
  }
}

.pp-waitlist-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
}

.pp-waitlist-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 33, 43, .48);
  backdrop-filter: blur(10px);
}

.pp-waitlist-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(23, 33, 43, .22);
}

.pp-waitlist-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #ff8a3d;
  color: #fff;
}

.pp-waitlist-modal__close::before,
.pp-waitlist-modal__close::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 12px;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.pp-waitlist-modal__close::before {
  transform: rotate(45deg);
}

.pp-waitlist-modal__close::after {
  transform: rotate(-45deg);
}

.pp-waitlist-modal__eyebrow {
  margin: 0 0 6px;
  color: #159eef;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pp-waitlist-modal h2 {
  margin: 0 48px 8px 0;
  color: #17212b;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.pp-waitlist-modal__note {
  max-width: 560px;
  margin: 0 0 20px;
  color: #667085;
  line-height: 1.5;
}

.pp-waitlist-modal form {
  display: grid;
  gap: 14px;
}

.pp-waitlist-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pp-waitlist-modal label {
  display: grid;
  gap: 6px;
  color: #526173;
  font-size: 13px;
  font-weight: 700;
}

.pp-waitlist-modal input,
.pp-waitlist-modal select,
.pp-waitlist-modal textarea {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid #d9e4ee;
  border-radius: 12px;
  background: #fff;
  color: #17212b;
  font: inherit;
}

.pp-waitlist-modal textarea {
  resize: vertical;
}

.pp-waitlist-modal__trap {
  position: absolute;
  left: -9999px;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  opacity: 0;
}

.pp-waitlist-modal button[type="submit"] {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: #ff8a3d;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.pp-waitlist-modal button[type="submit"]:disabled {
  opacity: .58;
}

.pp-waitlist-modal__status {
  min-height: 20px;
  color: #159eef;
  font-weight: 800;
}

.pp-waitlist-modal form.is-sent button[type="submit"] {
  display: none;
}

@media (max-width: 680px) {
  .pp-waitlist-modal {
    align-items: end;
    padding: 0;
  }

  .pp-waitlist-modal__dialog {
    max-height: calc(100vh - 24px);
    padding: 24px 18px;
    border-radius: 24px 24px 0 0;
  }

  .pp-waitlist-modal__grid {
    grid-template-columns: 1fr;
  }
}
