/* Public tutor profile. The card overlaps the breadcrumb banner. */

.tp-page {
  position: relative;
  z-index: 2;
  margin-top: -60px !important;
  background: transparent;
  color: #2a2a2a;
  font-family: inherit;
      text-align: right;
}

.tp-page .container {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 24px;
  padding: 64px 48px 72px;
}

.tp-page button,
.tp-page input,
.tp-page textarea,
.tp-page select {
  font-family: inherit;
}

.tp-hero {
  display: grid;
  grid-template-columns: minmax(220px, 28%) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid #ececec;
}

.tp-hero__photo {
  width: 100%;
  height: 463px;
  object-fit: cover;
  border-radius: 16px;
  background: #f4f4f4;
}

.tp-hero__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 463px;
}

.tp-hero__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}

.tp-hero__name {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  color: #2a2a2a;
}

.tp-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
  flex: none;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  color: #2a2a2a;
}

.tp-rating svg {
  display: block;
  flex: none;
}

.tp-hero .tp-chips {
  justify-content: flex-start;
  gap: 24px;
  margin-top: 28px;
}

.tp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.tp-chips span {
display: inline-flex;
    align-items: center;
    height: 35px;
    padding: 0 20px;
    border-radius: 999px;
    background: #e6ecef;
    color: #043E5F;
    font-size: 16px;
    font-weight: 500;
}

.tp-hero__about {
  margin: 28px 0 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 42px;
  color: #474747;
}

.tp-hero__book {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: auto;
  padding-top: 64px;
}

.tp-price {
  display: flex;
  flex-direction: column;
  gap: 8px;
  direction: ltr;
  text-align: left;
}

.tp-price strong {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: #2a2a2a;
}

.tp-price s {
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  color: #838383;
  text-decoration: line-through;
}

.tp-book {
  width: 40%;
  min-width: 220px;
  max-width: 440px;
  height: 80px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: #043e5f;
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
}

.tp-book:hover {
  background: #021a28;
}

/* Tabs */

.tp-tabs {
  margin-top: 32px;
}

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

.tp-tabs__bar button {
  height: 80px;
  border: 0;
  border-radius: 999px;
  background: #eef6f8;
  color: #043e5f;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

.tp-tabs__bar button.is-active {
  background: #043e5f;
  color: #fff;
}

.tp-pane {
  margin-top: 32px;
}

/* Available slots, kept above the calendar */

.tp-slots h2 {
  margin: 0 0 32px;
  color: #1c1c1c;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  text-align: start;
}

.tp-slots__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
  margin-bottom: 40px;
}

.tp-page a.tp-slot,
.tp-page button.tp-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-height: 76px;
  padding: 12px 20px;
  border: 1.5px solid #d7d7d7;
  border-radius: 999px;
  background: #fff;
  color: #2a2a2a;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.tp-slot__date {
  color: #8a8a8a;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.tp-page a.tp-slot:hover,
.tp-page button.tp-slot:hover {
  border-color: #3ec4de;
  background: #fff;
  color: #2a2a2a;
}

/* Calendar */

.tp-cal__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  direction: ltr;
}

.tp-cal__views {
  display: inline-flex;
  align-items: stretch;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e4e4e4;
  border-radius: 999px;
  background: #fff;
}

.tp-cal__views button {
  height: 100%;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9a9a9a;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.tp-cal__views button.is-active {
  background: #eef0f2;
  color: #163044;
  font-weight: 700;
}

.tp-cal__nav {
  display: flex;
  align-items: center;
  gap: 12px;
  direction: ltr;
}

.tp-cal__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  color: #1c1c1c;
  font-size: 20px;
  font-weight: 500;
}

.tp-cal__label svg {
  color: #8a8a8a;
}

.tp-cal__nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid #e4e4e4;
  border-radius: 50%;
  background: #fff;
  color: #8a8a8a;
  cursor: pointer;
}

.tp-cal__nav button:hover {
  border-color: #3ec4de;
  color: #163044;
}

.tp-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #ececec;
  border-radius: 16px;
  background: #fff;
}

.tp-cal__dow {
  padding: 22px 6px;
  border-bottom: 1px solid #ececec;
  color: #2a2a2a;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
}

.tp-cal__day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  min-height: 148px;
  padding: 22px 6px 16px;
  border: 0;
  border-bottom: 1px solid #f1f1f1;
  border-inline-start: 1px solid #f1f1f1;
  background: #fff;
  color: #2a2a2a;
  font-family: inherit;
  cursor: pointer;
}

.tp-cal__day:nth-child(7n + 1) {
  border-inline-start: 0;
}

.tp-cal__day.is-outside {
  color: #c8c8c8;
}

.tp-cal__day.is-today {
  background: #e7f7fb;
  box-shadow: inset 0 0 0 2px #3ec4de;
}

.tp-cal__day.is-selected {
  background: #e7f7fb;
  box-shadow: inset 0 0 0 2px #043e5f;
}

.tp-day-pick {
  margin-top: 32px;
}

.tp-day-pick h3 {
  margin: 0 0 24px;
  color: #1c1c1c;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  text-align: start;
}

.tp-cal__num {
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.tp-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #e7f6f9;
  color: #2eabc4;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.tp-pill--today {
  background: #1a7f96;
  color: #fff;
}

.tp-pill--full {
  background: #fdecee;
  color: #ef6b76;
}

.tp-cal__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
}

.tp-empty {
  margin: 24px 0;
  color: #8a8a8a;
  font-size: 18px;
  text-align: center;
}

/* About accordions */

.tp-acc {
  margin-bottom: 20px;
  padding: 8px 28px 24px;
  border: 1px solid #ececec;
  border-radius: 16px;
  background: #fff;
}

.tp-acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  color: #043e5f;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.tp-acc summary::-webkit-details-marker {
  display: none;
}

.tp-acc summary::after {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-top: 2px solid #8aa0aa;
  border-right: 2px solid #8aa0aa;
  transform: rotate(135deg);
  transition: transform 0.2s;
}

.tp-acc[open] summary::after {
  margin-top: 0;
  transform: rotate(-45deg);
}

.tp-acc p {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: #555;
}

.tp-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
}

.tp-fact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 16px;
  border-radius: 12px;
  background: #eef6f8;
  color: #5d7c89;
  font-size: 16px;
  font-weight: 500;
}

.tp-fact svg {
  flex: none;
}

.tp-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tp-list li {
  position: relative;
  padding: 8px 18px;
  font-size: 17px;
  color: #444;
}

.tp-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #66c3d8;
}

.tp-certs {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tp-certs li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #f3f3f3;
  color: #555;
  font-size: 17px;
}

.tp-certs img {
  width: 92px;
  height: 68px;
  object-fit: contain;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  background: #fff;
}

/* Reviews */

.tp-reviews__title {
  margin: 0;
  color: #163044;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  text-align: start;
}

.tp-reviews__scoreline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 18px;
}

.tp-reviews__scoreline strong {
  color: #1c1c1c;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.tp-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tp-stars svg {
  display: block;
  flex: none;
}

.tp-reviews__based {
  margin: 8px 0 0;
  color: #8a8a8a;
  font-size: 16px;
  text-align: start;
}

.tp-dist {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.tp-dist li {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.tp-dist__pct {
  min-width: 48px;
  color: #2a2a2a;
  font-size: 16px;
  font-weight: 700;
}

.tp-dist__bar {
  flex: 1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e8e8;
}

.tp-dist__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #3db8d0;
}

.tp-reviews__tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

.tp-reviews__count {
  color: #1c1c1c;
  font-size: 20px;
  font-weight: 700;
}

.tp-reviews__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tp-drop {
  position: relative;
}

.tp-drop > button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 18px;
  border: 1px solid #e4e4e4;
  border-radius: 999px;
  background: #fff;
  color: #2a2a2a;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.tp-drop ul {
  position: absolute;
  z-index: 5;
  inset-inline-start: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.tp-drop li button {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #2a2a2a;
  font-family: inherit;
  font-size: 15px;
  text-align: start;
  cursor: pointer;
}

.tp-drop li button:hover,
.tp-drop li button.is-active {
  background: #eef6f8;
}

.tp-review {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: 28px;
  border: 1px solid #ececec;
  border-radius: 18px;
  background: #fff;
}

.tp-review__quote {
  color: #e3e3e3;
  font-size: 92px;
  font-weight: 700;
  line-height: 0.7;
}

.tp-review__main {
  flex: 1;
  min-width: 0;
}

.tp-review .tp-review__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tp-review .tp-review__header strong {
  display: block;
  color: #1c1c1c;
  font-size: 18px;
  font-weight: 700;
}

.tp-review__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

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

.tp-review time {
  color: #9a9a9a;
  font-size: 14px;
}

.tp-review p {
  margin: 16px 0 0;
  color: #5c5c5c;
  font-size: 16px;
  line-height: 1.9;
}

.tp-review .tp-review__footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 18px;
  color: #8a8a8a;
  font-size: 15px;
}

.tp-review__votes {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
}

.tp-review__votes button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 34px;
  border: 0;
  background: #fff;
  color: #8a8a8a;
  cursor: pointer;
}

.tp-review__votes button + button {
  border-inline-start: 1px solid #e6e6e6;
}

.tp-review__votes button.is-on {
  color: #043e5f;
  background: #eef6f8;
}

.tp-page .write_review {
  margin-top: 36px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.tp-review-form__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.tp-review-form__head h2 {
  margin: 0;
  color: #163044;
  font-size: 32px;
  font-weight: 700;
}

.tp-review-form__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f2f2f2;
  color: #6a6a6a;
  cursor: pointer;
}

.tp-review-form__rate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.tp-review-form__rate > span:first-child {
  color: #1c1c1c;
  font-size: 18px;
  font-weight: 500;
}

.tp-rate {
  display: inline-flex;
  gap: 6px;
  direction: ltr;
}

.tp-rate button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #e7e7e7;
  line-height: 0;
  cursor: pointer;
}

.tp-rate button svg {
  display: block;
  fill: currentColor;
}

.tp-rate button.is-on {
  color: #eeba09;
}

.tp-review-form label {
  display: block;
  margin: 22px 0 8px;
  color: #1c1c1c;
  font-size: 16px;
  font-weight: 700;
  text-align: start;
}

.tp-review-form .form-control {
  display: block;
  width: 100%;
  height: 56px;
  padding: 12px 16px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #fff;
  color: #1c1c1c;
  font-family: inherit;
  font-size: 16px;
  box-shadow: none;
}

.tp-review-form textarea.form-control {
  height: 180px;
  resize: vertical;
}

.tp-review-form .form-control::placeholder {
  color: #b5b5b5;
}

.tp-review-form__submit {
  width: 100%;
  height: 56px;
  margin-top: 28px;
  border: 0;
  border-radius: 10px;
  background: #043e5f;
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.tp-review-form__submit:hover {
  background: #021a28;
}

.tp-review-form .result_msg {
  margin-top: 12px;
  color: #043e5f;
  font-size: 16px;
}

@media (max-width: 991px) {
  .tp-page {
    margin-top: -48px !important;
  }

  .tp-page .container {
    padding: 28px 20px 40px;
    border-radius: 16px;
  }

  .tp-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .tp-hero__photo {
    width: 100%;
    height: 320px;
  }

  .tp-hero__body {
    min-height: 0;
  }

  .tp-book {
    max-width: none;
  }

  .tp-slots__list,
  .tp-cal__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .tp-hero__book {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .tp-book {
    width: 100%;
  }

  .tp-tabs__bar button {
    height: 56px;
    font-size: 16px;
  }

  .tp-cal__day {
    min-height: 84px;
    padding: 10px 2px;
  }

  .tp-reviews__tools,
  .tp-review,
  .tp-dist li {
    flex-wrap: wrap;
  }

  .tp-review__quote {
    font-size: 64px;
  }
}

@media (max-width: 640px) {
  .tp-hero__name {
    font-size: 26px;
  }

  .tp-tabs__bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .tp-cal__dow {
    font-size: 12px;
  }

  .tp-pill {
    padding-inline: 8px;
    font-size: 11px;
  }
}
