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

.teacher-profile-page .tutor-highlights-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.teacher-profile-page .tutor-highlights-list article {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px;
  border: 1px solid rgba(23, 33, 43, .1);
  border-radius: 14px;
  background: #f8fbfc;
  color: #17212b;
  font-weight: 800;
}

.teacher-profile-page .tutor-highlights-list img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .teacher-profile-page .tutor-highlights-list {
    grid-template-columns: 1fr;
  }
}

.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 */
.teacher-profile-page .profile-main {
  background:
    linear-gradient(180deg, #eef9ff 0, rgba(238, 249, 255, 0) 360px),
    #fff;
}

.teacher-profile-page .profile-shell {
  padding: 98px 0 66px;
}

.teacher-breadcrumb {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #60758e;
  font-size: 13px;
  font-weight: 750;
}

.teacher-breadcrumb a {
  color: #1683ee;
}

.teacher-breadcrumb strong {
  color: #102744;
}

.teacher-profile-page .profile-card {
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(26, 71, 112, .08);
}

.teacher-profile-page .profile-hero-card {
  padding: 22px;
  grid-template-columns: 300px minmax(0, 1fr) 344px;
  gap: 24px;
}

.teacher-profile-page .teacher-media {
  min-height: 348px;
  border-radius: 18px;
}

.teacher-profile-page .media-heart {
  width: 50px;
  height: 50px;
  font-size: 30px;
}

.teacher-profile-page .media-play::before {
  width: 78px;
  height: 78px;
  border-width: 5px;
}

.teacher-profile-page .media-play::after {
  border-top-width: 17px;
  border-bottom-width: 17px;
  border-left-width: 25px;
}

.teacher-profile-page .profile-name {
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.08;
}

.teacher-profile-page .verified-dot {
  width: 30px;
  height: 30px;
}

.teacher-profile-page .verified-dot::after {
  left: 8px;
  top: 8px;
  width: 12px;
  height: 7px;
  border-left-width: 3px;
  border-bottom-width: 3px;
}

.teacher-profile-page .profile-role {
  margin-top: 8px;
  font-size: 20px;
}

.teacher-public-headline {
  max-width: 680px;
  margin: 10px 0 0;
  color: #314a67;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
}

.teacher-profile-page .profile-badges {
  margin-top: 16px;
}

.teacher-profile-page .profile-badge {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 14px;
}

.teacher-profile-page .profile-badge img {
  width: 20px;
  height: 20px;
}

.profile-badge--verified {
  border: 1px solid #cfe2f4;
  background: #f4faff;
  color: #1683ee;
}

.teacher-public-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.teacher-public-tags span {
  padding: 9px 12px;
  border: 1px solid #dceaf6;
  border-radius: 999px;
  background: #fff;
  color: #405976;
  font-size: 13px;
  font-weight: 800;
}

.teacher-profile-page .profile-copy {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.58;
}

.teacher-profile-page .highlight-strip {
  margin-top: 18px;
  padding: 15px 16px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  border-radius: 14px;
  font-size: 14px;
}

.teacher-profile-page .highlight-strip .icon {
  width: 38px;
  height: 38px;
}

.teacher-profile-page .highlight-strip .icon img {
  width: 23px;
  height: 23px;
}

.teacher-profile-page .schedule-card {
  padding: 20px;
}

.teacher-profile-page .schedule-card h2,
.teacher-profile-page .section-heading h2,
.teacher-profile-page .ai-plan-card h2,
.teacher-profile-page .certificate-card h2,
.teacher-profile-page .availability-list h2 {
  font-size: 22px;
}

.teacher-profile-page .time-grid {
  margin-top: 18px;
  grid-template-columns: 82px repeat(3, 1fr);
  gap: 11px 9px;
}

.teacher-profile-page .time-grid strong,
.teacher-profile-page .time-grid span {
  font-size: 15px;
}

.teacher-profile-page .time-grid span {
  min-height: 46px;
  border-radius: 12px;
}

.teacher-profile-page .side-actions {
  grid-template-columns: 118px 1fr;
  gap: 16px;
}

.teacher-profile-page .match-ring-large {
  width: 112px;
  height: 112px;
}

.teacher-profile-page .match-ring-large::before {
  inset: 12px;
}

.teacher-profile-page .match-ring-large strong {
  font-size: 31px;
}

.teacher-profile-page .match-ring-large span {
  font-size: 14px;
}

.teacher-profile-page .profile-actions {
  gap: 12px;
}

.teacher-profile-page .profile-actions .btn,
.teacher-profile-page .profile-outline-btn {
  min-height: 58px;
  border-radius: 14px;
  font-size: 16px;
}

.teacher-profile-page .profile-outline-btn {
  border-width: 2px;
}

.teacher-profile-page .teacher-metrics {
  margin-top: 20px;
}

.teacher-profile-page .teacher-metrics article {
  padding: 16px 12px 0;
  font-size: 13px;
}

.teacher-profile-page .teacher-metrics strong {
  font-size: 22px;
}

.teacher-public-layout {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.public-profile-section {
  padding: 24px;
}

.teacher-about-grid,
.teaches-grid,
.format-list-grid,
.lesson-package-grid {
  display: grid;
  gap: 16px;
}

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

.teacher-about-grid article,
.teaches-grid article,
.format-list-grid article,
.lesson-package,
.teacher-course-list article {
  border: 1px solid #deebf6;
  border-radius: 16px;
  background: #fff;
}

.teacher-about-grid article {
  padding: 20px;
}

.teacher-about-grid h3,
.teaches-grid h3,
.format-list-grid h3,
.teacher-course-list h3,
.lesson-package h3,
.experience-timeline h3 {
  margin: 0;
  color: #102744;
  font-size: 18px;
  line-height: 1.28;
}

.teacher-about-grid p,
.teaches-grid p,
.format-list-grid p,
.teacher-course-list p,
.lesson-package p,
.experience-timeline p {
  margin: 9px 0 0;
  color: #60758e;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}

.experience-timeline {
  display: grid;
  gap: 12px;
}

.experience-timeline article {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid #deebf6;
  border-radius: 16px;
  background: #fff;
}

.experience-timeline span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #eef7ff;
  color: #1683ee;
  font-size: 14px;
  font-weight: 950;
}

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

.teaches-grid article {
  padding: 18px;
}

.teaches-grid img {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
}

.format-list-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.format-list-grid article {
  min-height: 188px;
  padding: 18px;
  display: grid;
  align-content: start;
}

.format-list-grid span {
  width: max-content;
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #eaf7ff;
  color: #1683ee;
  font-size: 13px;
  font-weight: 950;
}

.format-list-grid a,
.section-link {
  color: #1683ee;
  font-weight: 900;
}

.format-list-grid a {
  margin-top: 14px;
}

.section-link {
  white-space: nowrap;
}

.teacher-course-list {
  display: grid;
  gap: 14px;
}

.teacher-course-list article {
  min-height: 132px;
  padding: 14px;
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.teacher-course-list img {
  width: 154px;
  height: 104px;
  border-radius: 14px;
  object-fit: cover;
}

.teacher-course-list span {
  display: inline-flex;
  margin-bottom: 6px;
  color: #1683ee;
  font-size: 12px;
  font-weight: 950;
}

.teacher-course-list a {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bcd8f5;
  border-radius: 12px;
  color: #1683ee;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

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

.lesson-package {
  min-height: 332px;
  padding: 22px;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  align-content: start;
  position: relative;
}

.lesson-package.is-featured {
  border-color: rgba(21, 158, 239, .42);
  background: linear-gradient(180deg, #f4fbff, #fff);
  box-shadow: 0 18px 40px rgba(21, 158, 239, .12);
}

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

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

.package-label {
  width: max-content;
  margin-top: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff3e8;
  color: #db6b1e;
  font-size: 12px;
  font-weight: 950;
}

.lesson-package h3 {
  margin-top: 13px;
}

.lesson-package ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.lesson-package li {
  position: relative;
  padding-left: 22px;
  color: #49617d;
  font-size: 13px;
  font-weight: 750;
}

.lesson-package li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #48cbb9;
}

.lesson-package a {
  min-height: 46px;
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #159eef;
  color: #1683ee;
  font-weight: 950;
}

.lesson-package.is-featured a {
  border-color: transparent;
  background: linear-gradient(135deg, #ff742f, #ff541c);
  color: #fff;
}

.review-controls {
  display: inline-flex;
  gap: 8px;
}

.review-controls button {
  width: 38px;
  height: 38px;
  border: 1px solid #d7e6f5;
  border-radius: 50%;
  background: #fff;
  color: #1683ee;
  font-weight: 950;
}

.review-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 34%);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  padding-bottom: 6px;
}

.review-carousel .review-card {
  scroll-snap-align: start;
}

.teacher-public-side .profile-card {
  box-shadow: 0 14px 34px rgba(26, 71, 112, .08);
}

.teacher-detail-list {
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px 12px;
}

.teacher-detail-list dt {
  color: #60758e;
  font-size: 13px;
  font-weight: 850;
}

.teacher-detail-list dd {
  margin: 0;
  color: #102744;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

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

@media (max-width: 1240px) {
  .teacher-profile-page .profile-hero-card,
  .teacher-public-layout {
    grid-template-columns: 1fr;
  }

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

  .teacher-public-side {
    position: static;
  }

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

@media (max-width: 820px) {
  .teacher-profile-page .profile-shell {
    padding-top: 82px;
  }

  .teacher-profile-page .profile-hero-card,
  .teacher-profile-page .teacher-side,
  .teacher-about-grid,
  .teaches-grid,
  .format-list-grid,
  .lesson-package-grid {
    grid-template-columns: 1fr;
  }

  .teacher-profile-page .teacher-media {
    min-height: 320px;
  }

  .teacher-course-list article {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .teacher-course-list img {
    width: 108px;
    height: 84px;
  }

  .teacher-course-list a {
    grid-column: 1 / -1;
    width: 100%;
  }

  .review-carousel {
    grid-auto-columns: minmax(270px, 88%);
  }
}

/* Compact public teacher profile pass */
.teacher-profile-page,
.teacher-profile-page body {
  font-weight: 500;
}

.teacher-profile-page .profile-main {
  background: linear-gradient(180deg, #f4fbff 0, rgba(244, 251, 255, 0) 240px), #fff;
}

.teacher-profile-page .profile-shell {
  padding: 88px 0 44px;
}

.teacher-profile-page .profile-card {
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(8, 35, 66, .055);
}

.teacher-profile-page .profile-stack {
  gap: 16px;
}

.teacher-profile-page .profile-hero-card {
  min-height: 242px;
  padding: 16px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 410px;
  gap: 18px;
  align-items: stretch;
}

.teacher-profile-page .teacher-media {
  min-height: 210px;
  height: 100%;
  border-radius: 18px;
}

.teacher-profile-page .media-heart {
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  font-size: 22px;
}

.teacher-profile-page .media-status {
  right: 13px;
  bottom: 13px;
  width: 26px;
  height: 26px;
  border-width: 4px;
}

.teacher-profile-page .media-play::before {
  width: 54px;
  height: 54px;
  border-width: 3px;
}

.teacher-profile-page .media-play::after {
  margin-left: 4px;
  border-top-width: 11px;
  border-bottom-width: 11px;
  border-left-width: 17px;
}

.teacher-profile-page .teacher-identity {
  padding: 1px 0 0;
}

.teacher-profile-page .profile-name {
  gap: 8px;
  font-size: 25px;
  line-height: 1.08;
  font-weight: 800;
}

.teacher-profile-page .verified-dot {
  width: 19px;
  height: 19px;
}

.teacher-profile-page .verified-dot::after {
  left: 5px;
  top: 5px;
  width: 8px;
  height: 5px;
  border-left-width: 2px;
  border-bottom-width: 2px;
}

.teacher-profile-page .profile-role {
  margin-top: 5px;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
}

.teacher-profile-page .profile-role img {
  width: 20px;
  height: 14px;
  border-radius: 2px;
}

.teacher-public-headline {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.teacher-profile-page .profile-badges {
  margin-top: 9px;
  gap: 8px;
}

.teacher-profile-page .profile-badge {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
}

.teacher-profile-page .profile-badge img {
  width: 15px;
  height: 15px;
}

.teacher-public-tags {
  margin-top: 9px;
  gap: 6px;
}

.teacher-public-tags span {
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 600;
}

.teacher-profile-page .profile-copy {
  margin-top: 9px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.teacher-profile-page .highlight-strip {
  margin-top: 10px;
  padding: 10px 12px;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.teacher-profile-page .highlight-strip .icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.teacher-profile-page .highlight-strip .icon img {
  width: 18px;
  height: 18px;
}

.teacher-profile-page .highlight-strip p {
  gap: 5px 9px;
}

.teacher-profile-page .highlight-strip span:not(.icon)::after {
  width: 4px;
  height: 4px;
  margin-left: 9px;
}

.teacher-profile-page .teacher-side {
  display: grid;
  grid-template-columns: 260px 132px;
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "schedule actions"
    "metrics actions";
  gap: 12px;
  min-width: 0;
}

.teacher-profile-page .schedule-card {
  grid-area: schedule;
  padding: 14px;
}

.teacher-profile-page .schedule-card h2,
.teacher-profile-page .section-heading h2,
.teacher-profile-page .ai-plan-card h2,
.teacher-profile-page .certificate-card h2,
.teacher-profile-page .availability-list h2 {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 750;
}

.teacher-profile-page .time-grid {
  margin-top: 12px;
  grid-template-columns: 68px repeat(3, 1fr);
  gap: 8px 7px;
}

.teacher-profile-page .time-grid strong {
  font-size: 13px;
  font-weight: 650;
}

.teacher-profile-page .time-grid span {
  min-height: 35px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
}

.teacher-profile-page .side-actions {
  grid-area: actions;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 10px;
}

.teacher-profile-page .match-ring-large {
  width: 82px;
  height: 82px;
}

.teacher-profile-page .match-ring-large::before {
  inset: 9px;
}

.teacher-profile-page .match-ring-large strong {
  font-size: 22px;
  font-weight: 800;
}

.teacher-profile-page .match-ring-large span {
  font-size: 12px;
  font-weight: 650;
}

.teacher-profile-page .profile-actions {
  gap: 8px;
}

.teacher-profile-page .profile-actions .btn,
.teacher-profile-page .profile-outline-btn {
  min-height: 43px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 750;
}

.teacher-profile-page .profile-outline-btn {
  border-width: 1px;
}

.teacher-profile-page .teacher-metrics {
  grid-area: metrics;
  margin-top: 0;
  min-width: 0;
}

.teacher-profile-page .teacher-metrics article {
  padding: 10px 8px 0;
  font-size: 11px;
  font-weight: 500;
}

.teacher-profile-page .teacher-metrics strong {
  font-size: 16px;
  font-weight: 750;
}

.teacher-public-layout {
  margin-top: 18px;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 16px;
  min-width: 0;
}

.public-profile-section {
  padding: 18px;
}

.teacher-profile-page .section-heading {
  margin-bottom: 12px;
}

.teacher-profile-page .section-heading p {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.teacher-about-grid,
.teaches-grid,
.format-list-grid,
.lesson-package-grid,
.teacher-course-list,
.experience-timeline {
  gap: 10px;
}

.teacher-about-grid article,
.teaches-grid article,
.format-list-grid article,
.lesson-package,
.teacher-course-list article {
  border-radius: 13px;
}

.teacher-about-grid article,
.teaches-grid article,
.format-list-grid article,
.lesson-package {
  padding: 14px;
}

.teacher-about-grid h3,
.teaches-grid h3,
.format-list-grid h3,
.teacher-course-list h3,
.lesson-package h3,
.experience-timeline h3,
.lesson-note h3,
.review-card h3 {
  font-size: 15px;
  font-weight: 700;
}

.teacher-about-grid p,
.teaches-grid p,
.format-list-grid p,
.teacher-course-list p,
.lesson-package p,
.experience-timeline p,
.review-card p {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.experience-timeline article {
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 13px;
}

.experience-timeline span {
  min-height: 34px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 750;
}

.teaches-grid,
.format-list-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.teaches-grid img {
  width: 26px;
  height: 26px;
  margin-bottom: 9px;
}

.format-list-grid article {
  min-height: 146px;
}

.format-list-grid span {
  min-height: 26px;
  margin-bottom: 9px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 750;
}

.format-list-grid a,
.section-link {
  font-size: 12px;
  font-weight: 700;
}

.teacher-course-list article {
  min-height: 96px;
  padding: 10px;
  grid-template-columns: 118px minmax(0, 1fr) 100px;
  gap: 10px;
}

.teacher-course-list img {
  width: 118px;
  height: 76px;
  border-radius: 10px;
}

.teacher-course-list span {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 750;
}

.teacher-course-list a {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
}

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

.lesson-package {
  min-height: 242px;
  grid-template-rows: auto auto auto 1fr auto;
}

.package-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.package-icon img {
  width: 21px;
  height: 21px;
}

.package-label {
  margin-top: 10px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 750;
}

.lesson-package h3 {
  margin-top: 9px;
}

.lesson-package ul {
  margin-top: 10px;
  gap: 6px;
}

.lesson-package li {
  padding-left: 16px;
  font-size: 11px;
  font-weight: 500;
}

.lesson-package li::before {
  top: 4px;
  width: 8px;
  height: 8px;
}

.lesson-package a {
  min-height: 36px;
  margin-top: 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
}

.review-controls button {
  width: 32px;
  height: 32px;
  font-weight: 700;
}

.review-carousel {
  grid-auto-columns: minmax(250px, 31%);
  gap: 10px;
}

.review-card {
  padding: 14px;
}

.review-card img {
  width: 36px;
  height: 36px;
}

.teacher-public-side {
  position: static;
  align-self: start;
  gap: 12px;
}

.teacher-public-side .profile-card,
.teacher-profile-page .ai-plan-card,
.teacher-profile-page .certificate-card,
.teacher-profile-page .availability-list {
  padding: 16px;
}

.teacher-detail-list {
  margin-top: 12px;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px 10px;
}

.teacher-detail-list dt,
.teacher-detail-list dd,
.lesson-note li,
.profile-list li {
  font-size: 12px;
  font-weight: 500;
}

.lesson-note {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
}

.lesson-note ul,
.profile-list {
  gap: 7px;
}

.availability-list {
  gap: 8px;
}

.availability-list a {
  min-height: 38px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 650;
}

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

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

  .teacher-public-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .teacher-profile-page .profile-shell {
    padding-top: 76px;
  }

  .teacher-profile-page .profile-hero-card,
  .teacher-profile-page .teacher-side,
  .teacher-about-grid,
  .teaches-grid,
  .format-list-grid,
  .lesson-package-grid {
    grid-template-columns: 1fr;
  }

  .teacher-profile-page .teacher-media {
    min-height: 260px;
  }

  .teacher-course-list article {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .teacher-course-list img {
    width: 96px;
    height: 72px;
  }

  .teacher-course-list a {
    grid-column: 1 / -1;
    width: 100%;
  }

  .review-carousel {
    grid-auto-columns: minmax(238px, 86%);
  }
}

/* Public teacher profile overflow fixes */
.teacher-profile-page .profile-shell,
.teacher-profile-page .profile-hero-card,
.teacher-profile-page .teacher-public-layout,
.teacher-profile-page .profile-stack,
.teacher-profile-page .public-profile-section,
.teacher-profile-page .teacher-identity,
.teacher-profile-page .teacher-side,
.teacher-profile-page .teacher-public-side,
.teacher-profile-page .teacher-about-grid,
.teacher-profile-page .teaches-grid,
.teacher-profile-page .format-list-grid,
.teacher-profile-page .lesson-package-grid,
.teacher-profile-page .teacher-course-list,
.teacher-profile-page .experience-timeline,
.teacher-profile-page .review-carousel {
  min-width: 0;
}

.teacher-profile-page .profile-card,
.teacher-profile-page .public-profile-section {
  max-width: 100%;
}

.teacher-profile-page .public-profile-section {
  overflow: hidden;
}

.teacher-profile-page .teacher-about-grid > *,
.teacher-profile-page .teaches-grid > *,
.teacher-profile-page .format-list-grid > *,
.teacher-profile-page .lesson-package-grid > *,
.teacher-profile-page .teacher-course-list > *,
.teacher-profile-page .experience-timeline > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.teacher-profile-page .teacher-side {
  grid-template-columns: minmax(0, 248px) 150px;
}

.teacher-profile-page .profile-actions .btn,
.teacher-profile-page .profile-outline-btn {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

.teacher-profile-page .teacher-public-layout {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 292px);
  align-items: start;
}

.teacher-profile-page .teacher-public-side {
  position: static;
  z-index: 0;
}

.teacher-profile-page .teacher-course-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.teacher-profile-page .teacher-course-list article {
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
}

.teacher-profile-page .teacher-course-list img {
  width: 100%;
  height: 116px;
  border-radius: 12px 12px 0 0;
}

.teacher-profile-page .teacher-course-list article > div {
  padding: 12px 12px 0;
}

.teacher-profile-page .teacher-course-list h3 {
  font-size: 14px;
}

.teacher-profile-page .teacher-course-list p {
  font-size: 11px;
}

.teacher-profile-page .teacher-course-list a {
  width: auto;
  min-height: 34px;
  margin: 12px;
  align-self: stretch;
}

@media (max-width: 1180px) {
  .teacher-profile-page .teacher-side {
    grid-template-columns: minmax(0, 1fr) 150px;
  }

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

@media (max-width: 920px) {
  .teacher-profile-page .teacher-course-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .teacher-profile-page .teacher-side,
  .teacher-profile-page .teacher-public-layout,
  .teacher-profile-page .teacher-course-list {
    grid-template-columns: 1fr;
  }
}

/* Public teacher profile type scale refinement */
.teacher-profile-page .section-heading h2 {
  font-size: 16px;
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: 0;
}

.teacher-profile-page .schedule-card h2 {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}

.teacher-profile-page .ai-plan-card h2,
.teacher-profile-page .certificate-card h2,
.teacher-profile-page .availability-list h2 {
  font-size: 15px;
  line-height: 1.28;
  font-weight: 700;
}

.teacher-profile-page .section-heading p {
  max-width: 720px;
  font-size: 12px;
  line-height: 1.45;
}

.teacher-profile-page .public-profile-section {
  padding-top: 16px;
}

@media (max-width: 760px) {
  .teacher-profile-page .section-heading h2,
  .teacher-profile-page .schedule-card h2,
  .teacher-profile-page .ai-plan-card h2,
  .teacher-profile-page .certificate-card h2,
  .teacher-profile-page .availability-list h2 {
    font-size: 15px;
  }
}

/* Public teacher profile final UI alignment */
.teacher-profile-page .profile-shell {
  padding: 82px 0 38px;
}

.teacher-profile-page .teacher-breadcrumb {
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
}

.teacher-profile-page .profile-card {
  border-color: #d9e8f6;
  box-shadow: 0 8px 22px rgba(8, 35, 66, .05);
}

.teacher-profile-page .profile-hero-card {
  padding: 14px;
  grid-template-columns: 220px minmax(0, 1fr) minmax(320px, 376px);
  gap: 16px;
  align-items: stretch;
}

.teacher-profile-page .teacher-side {
  grid-template-columns: minmax(0, 226px) 134px;
  gap: 10px;
}

.teacher-profile-page .schedule-card {
  padding: 12px;
}

.teacher-profile-page .time-grid {
  margin-top: 10px;
  grid-template-columns: 62px repeat(3, minmax(0, 1fr));
  gap: 7px 6px;
}

.teacher-profile-page .time-grid strong,
.teacher-profile-page .time-grid span {
  font-size: 12px;
}

.teacher-profile-page .time-grid span {
  min-height: 32px;
  border-radius: 8px;
}

.teacher-profile-page .match-ring-large {
  width: 70px;
  height: 70px;
}

.teacher-profile-page .match-ring-large::before {
  inset: 8px;
}

.teacher-profile-page .match-ring-large strong {
  font-size: 19px;
}

.teacher-profile-page .match-ring-large span {
  font-size: 11px;
}

.teacher-profile-page .profile-actions {
  gap: 7px;
}

.teacher-profile-page .profile-actions .btn,
.teacher-profile-page .profile-outline-btn {
  min-height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.teacher-profile-page .profile-actions .btn {
  box-shadow: none;
}

.teacher-profile-page .teacher-metrics article {
  padding-top: 8px;
}

.teacher-profile-page .teacher-public-layout {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.teacher-profile-page .teacher-public-side {
  order: -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.teacher-profile-page .profile-stack {
  gap: 14px;
}

.teacher-profile-page .public-profile-section {
  padding: 16px 18px;
}

.teacher-profile-page .section-heading {
  margin: 0 0 10px;
  align-items: flex-start;
}

.teacher-profile-page .section-heading h2 {
  font-size: 15px;
  font-weight: 700;
}

.teacher-profile-page .section-heading p {
  margin-top: 4px;
  font-size: 12px;
}

.teacher-profile-page .teacher-about-grid,
.teacher-profile-page .teaches-grid,
.teacher-profile-page .format-list-grid,
.teacher-profile-page .lesson-package-grid,
.teacher-profile-page .experience-timeline {
  gap: 10px;
}

.teacher-profile-page .teacher-about-grid article,
.teacher-profile-page .teaches-grid article,
.teacher-profile-page .format-list-grid article,
.teacher-profile-page .lesson-package,
.teacher-profile-page .experience-timeline article,
.teacher-profile-page .review-card {
  border-radius: 11px;
}

.teacher-profile-page .teacher-about-grid article,
.teacher-profile-page .teaches-grid article,
.teacher-profile-page .format-list-grid article,
.teacher-profile-page .lesson-package {
  padding: 12px;
}

.teacher-profile-page .teacher-about-grid h3,
.teacher-profile-page .teaches-grid h3,
.teacher-profile-page .format-list-grid h3,
.teacher-profile-page .lesson-package h3,
.teacher-profile-page .experience-timeline h3,
.teacher-profile-page .review-card h3,
.teacher-profile-page .lesson-note h3 {
  font-size: 14px;
  font-weight: 650;
}

.teacher-profile-page .teacher-about-grid p,
.teacher-profile-page .teaches-grid p,
.teacher-profile-page .format-list-grid p,
.teacher-profile-page .lesson-package p,
.teacher-profile-page .experience-timeline p,
.teacher-profile-page .review-card p {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.42;
}

.teacher-profile-page .teaches-grid img {
  width: 24px;
  height: 24px;
}

.teacher-profile-page .format-list-grid article {
  min-height: 132px;
}

.teacher-profile-page .teacher-course-list {
  display: flex;
  gap: 12px;
  align-items: stretch;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
}

.teacher-profile-page .teacher-course-list article {
  flex: 0 0 246px;
  max-width: 246px;
  min-height: 228px;
  border-radius: 12px;
}

.teacher-profile-page .teacher-course-list img {
  height: 104px;
}

.teacher-profile-page .teacher-course-list article > div {
  padding: 10px 11px 0;
}

.teacher-profile-page .teacher-course-list h3 {
  font-size: 13px;
  line-height: 1.28;
}

.teacher-profile-page .teacher-course-list p {
  font-size: 11px;
  line-height: 1.4;
}

.teacher-profile-page .teacher-course-list a {
  min-height: 32px;
  margin: 10px 11px 11px;
  font-size: 11px;
}

.teacher-profile-page .lesson-package {
  min-height: 224px;
}

.teacher-profile-page .lesson-package a {
  box-shadow: none;
}

.teacher-profile-page .teacher-public-side .profile-card,
.teacher-profile-page .ai-plan-card,
.teacher-profile-page .certificate-card,
.teacher-profile-page .availability-list {
  padding: 14px;
}

.teacher-profile-page .teacher-public-side h2,
.teacher-profile-page .ai-plan-card h2,
.teacher-profile-page .certificate-card h2,
.teacher-profile-page .availability-list h2 {
  font-size: 14px;
  font-weight: 700;
}

.teacher-profile-page .lesson-note {
  padding: 10px;
  margin-top: 10px;
  border-radius: 10px;
}

.teacher-profile-page .teacher-detail-list {
  grid-template-columns: 72px minmax(0, 1fr);
}

.teacher-profile-page .availability-list a {
  min-height: 34px;
  border-radius: 8px;
  font-size: 11px;
}

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

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

@media (max-width: 860px) {
  .teacher-profile-page .teacher-public-side,
  .teacher-profile-page .teacher-side,
  .teacher-profile-page .teacher-about-grid,
  .teacher-profile-page .teaches-grid,
  .teacher-profile-page .format-list-grid,
  .teacher-profile-page .lesson-package-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .teacher-profile-page .profile-hero-card {
    grid-template-columns: 1fr;
  }

  .teacher-profile-page .teacher-course-list article {
    flex-basis: 236px;
    max-width: 236px;
  }
}
