/* Tutor list design (search bar, filters, Reset / Apply, records bar, tutor cards, pagination) shared by
   private-class/course-listing.php and dashboard/course-listing.php; card markup from tutor-card-lib.php. */
   <style type="text/css">
section.one-on-one-grid {
  background-color: #F6F7FB;
}

/* Search bar */
section.one-on-one-grid .filter-search {
  position: relative;
}

section.one-on-one-grid .filter-search>div:first-child {
  background-color: #FFF !important;
  border: 1px solid #E8EAF2;
  border-radius: 12px !important;
  box-shadow: 0 4px 14px rgba(31, 35, 64, 0.04);
}

section.one-on-one-grid .filter-search>div:first-child .field-focus {
  border-radius: 12px !important;
}

section.one-on-one-grid .filter-search .search-field-xl {
  height: 54px;
  padding-left: 54px;
  font-size: 15px;
  color: #1F2340;
}

section.one-on-one-grid .filter-search .search-field-xl::placeholder {
  color: #8A8FA6;
}

section.one-on-one-grid .filter-search .search-icon {
  position: absolute;
  top: 0;
  left: 6px;
  height: 54px;
  margin-top: 0;
  padding: 0 12px;
  background: transparent;
  box-shadow: none;
  color: #F47B3B;
}

section.one-on-one-grid .filter-search .search-icon .flaticon-magnifying-glass {
  border-right: none;
  padding-right: 0;
  font-size: 18px;
}

section.one-on-one-grid .filter-search>div:first-child {
  margin-right: 190px;
}

section.one-on-one-grid .filter-search .search-submit-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 172px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  background: #F47B3B;
  color: #FFF;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(244, 123, 59, 0.28);
  transition: background-color .2s ease;
}

section.one-on-one-grid .filter-search .search-submit-btn:hover,
section.one-on-one-grid .filter-search .search-submit-btn:focus {
  background: #E8692A;
  color: #FFF;
  outline: none;
}

section.one-on-one-grid .filter-search .search-submit-btn .flaticon-magnifying-glass:before {
  font-size: 16px;
  margin-left: 0;
}

/* Filter row */
section.one-on-one-grid .filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: 22px;
}

section.one-on-one-grid .filter-row .left {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

section.one-on-one-grid .filter-row .left>.clearfix,
section.one-on-one-grid .filter-row>.clearfix {
  display: none;
}

section.one-on-one-grid .selected_filter_widget.style2 {
  position: relative;
  display: flex;
  align-items: center;
  width: calc((100% - 28px) / 3);
  height: 64px;
  margin: 0 !important;
  padding: 0 16px 0 56px !important;
  background-color: #FFF;
  border: 1px solid #ECEEF5;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(31, 35, 64, 0.04);
  transition: border-color .2s ease, box-shadow .2s ease;
}

section.one-on-one-grid .selected_filter_widget.style2:hover {
  border-color: #D9D5F7;
  box-shadow: 0 6px 18px rgba(75, 63, 179, 0.08);
}

section.one-on-one-grid .selected_filter_widget.style2>* {
  flex: 1 1 auto;
  width: 100%;
}

section.one-on-one-grid .selected_filter_widget.style2::before {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'FontAwesome';
  font-size: 20px;
  line-height: 1;
  width: 24px;
  text-align: center;
  color: #5B4BC4;
}

section.one-on-one-grid .selected_filter_widget.style2:has(.triggerevent_scholarship)::before {
  content: "\f19d";
  color: #5B4BC4;
}

section.one-on-one-grid .selected_filter_widget.style2:has(.triggerevent_scholarship_region)::before {
  content: "\f02d";
  color: #F47B3B;
}

section.one-on-one-grid .selected_filter_widget.style2:has(.triggerevent_education_board)::before {
  content: "\f0f6";
  color: #5B4BC4;
}

section.one-on-one-grid .selected_filter_widget.style2:has(.triggerevent_scholarship_award)::before {
  content: "\f017";
  color: #5B4BC4;
}

section.one-on-one-grid .selected_filter_widget.style2:has(.experience-input)::before {
  content: "\f091";
  color: #F5A524;
}

section.one-on-one-grid .selected_filter_widget.style2:has(.sort_button_outer_wrap)::before {
  content: "\f1de";
  color: #F47B3B;
}

section.one-on-one-grid .selected_filter_widget.style2 #accordion,
section.one-on-one-grid .selected_filter_widget.style2 #accordion .panel {
  margin: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

section.one-on-one-grid .selected_filter_widget.style2 .accordion-toggle,
section.one-on-one-grid .selected_filter_widget.style2 .experience-input,
section.one-on-one-grid .selected_filter_widget.style2 .sort_button_outer_wrap {
  display: block;
  padding: 0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #1F2340 !important;
  line-height: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

section.one-on-one-grid .selected_filter_widget.style2 .experience-input {
  height: 40px;
  background: transparent;
}

section.one-on-one-grid .selected_filter_widget.style2 .experience-input::placeholder {
  color: #1F2340;
}

section.one-on-one-grid .selected_filter_widget.style2 .accordion-toggle {
  position: relative;
  padding-right: 30px !important;
}

section.one-on-one-grid #accordion .panel-heading .accordion-toggle::before {
  position: absolute;
  right: 0;
  top: calc(50% - 9px);
  float: none;
  margin: 0;
  width: 18px;
  height: 18px;
  background-position: center !important;
  opacity: .8;
}

section.one-on-one-grid #accordion .panel-collapse {
  left: 0;
  top: calc(100% + 8px);
  width: 100%;
  margin-left: 0;
  z-index: 5;
}

section.one-on-one-grid #accordion .panel-collapse .panel-body {
  width: 100%;
  margin-top: 0;
  border-radius: 12px;
  border: 1px solid #ECEEF5;
  box-shadow: 0 12px 30px rgba(31, 35, 64, 0.12);
}

section.one-on-one-grid .experience-tooltip {
  top: calc(100% + 8px);
  border-radius: 8px;
  padding: 4px 12px;
}

section.one-on-one-grid .sort_button_outer_wrap {
  padding-right: 30px !important;
}

section.one-on-one-grid .sort_button_outer_wrap:after {
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  opacity: .8;
}

section.one-on-one-grid .feed_back_sort_content_wrap {
  top: calc(100% + 8px);
  border-radius: 12px;
  border: 1px solid #ECEEF5;
  box-shadow: 0 12px 30px rgba(31, 35, 64, 0.12);
}

/* Reset / Apply */
section.one-on-one-grid .filter-row .right {
  flex: 0 0 240px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  margin-left: 24px !important;
  padding-left: 24px;
  border-left: 2px solid #DCD8F5;
}

section.one-on-one-grid .filter-search .clearall-btn,
section.one-on-one-grid .filter-dropdown .apply-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 48px;
  margin: 0 !important;
  float: none !important;
  border-radius: 10px;
  font-size: 15px !important;
  font-weight: 600;
  text-decoration: none !important;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

section.one-on-one-grid .filter-search .clearall-btn {
  background: #FFF;
  color: #3B2F9E;
  border: 1.5px solid #3B2F9E;
}

section.one-on-one-grid .filter-search .clearall-btn:hover {
  background: #3B2F9E;
  color: #FFF;
}

section.one-on-one-grid .filter-dropdown .apply-btn {
  background: #F47B3B;
  background-image: none;
  color: #FFF;
  border: none;
  box-shadow: 0 6px 16px rgba(244, 123, 59, 0.28);
}

section.one-on-one-grid .filter-dropdown .apply-btn:hover {
  background: #E8692A;
  color: #FFF;
}

section.one-on-one-grid .filter-search .clearall-btn::before,
section.one-on-one-grid .filter-dropdown .apply-btn::before {
  font-family: 'FontAwesome';
  font-weight: normal;
  margin-right: 8px;
  font-size: 15px;
}

section.one-on-one-grid .filter-search .clearall-btn::before {
  content: "\f021";
}

section.one-on-one-grid .filter-dropdown .apply-btn::before {
  content: "\f0b0";
}

section.one-on-one-grid .filter-search .clearall-btn .close-img,
section.one-on-one-grid .filter-dropdown .apply-btn .tick-img {
  display: none;
}

section.one-on-one-grid .filter-row .searchError {
  flex: 0 0 100%;
  margin-top: 10px;
}

/* Records bar */
section.one-on-one-grid .page-records {
  align-items: center;
  margin: 26px 0 16px;
  font-size: 14px;
  color: #6B7088;
}

section.one-on-one-grid .page-records .per-page {
  display: flex;
  align-items: center;
}

section.one-on-one-grid .page-records .per-page label,
section.one-on-one-grid .page-records .per-page p {
  margin: 0;
  font-size: 14px;
  color: #6B7088;
  font-weight: 400;
}

section.one-on-one-grid .page-records .per-page select {
  height: 38px !important;
  min-width: 64px;
  padding: 4px 10px;
  margin: 0 12px;
  border: 1px solid #E8EAF2;
  border-radius: 8px;
  color: #1F2340 !important;
  font-weight: 500;
}

/* Teacher cards */
section.one-on-one-grid .teacher-grid {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0;
}

section.one-on-one-grid .teacher-grid::before,
section.one-on-one-grid .teacher-grid::after,
section.one-on-one-grid .teacher-grid>.clearfix {
  display: none;
}

section.one-on-one-grid .teacher-grid>[class*="col-"] {
  display: flex;
  float: none;
}

section.one-on-one-grid .teacher-grid-outer {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 24px;
  padding: 18px 16px 16px;
  background-color: #FFF;
  border: 1px solid #ECEEF5;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(31, 35, 64, 0.05);
  transition: box-shadow .2s ease, transform .2s ease;
}

section.one-on-one-grid .teacher-grid-outer:hover {
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(31, 35, 64, 0.10);
  transform: translateY(-2px);
}

/* Photo */
section.one-on-one-grid .teacher-grid-outer .img-grid {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 104px !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 0 12px;
  padding: 0;
  overflow: visible;
}

section.one-on-one-grid .teacher-grid-outer .img-grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% + 14px);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #EEEBFC;
}

section.one-on-one-grid .teacher-grid>[class*="col-"]:nth-child(4n+2) .img-grid::before {
  background-color: #FFF1E7;
}

section.one-on-one-grid .teacher-grid>[class*="col-"]:nth-child(4n+3) .img-grid::before {
  background-color: #E8F7EE;
}

section.one-on-one-grid .teacher-grid>[class*="col-"]:nth-child(4n+4) .img-grid::before {
  background-color: #FDECF1;
}

section.one-on-one-grid .teacher-grid-outer .img-grid a {
  position: relative;
  display: block;
  line-height: 0;
}

section.one-on-one-grid .teacher-img {
  position: relative;
  display: block;
  margin: 0 auto;
  width: 92px !important;
  height: 92px !important;
  min-width: 92px;
  min-height: 0 !important;
  max-width: none;
  object-fit: cover !important;
  object-position: center 35% !important; /* tall photos: crop more from the bottom than the top, keeps room above the head */
  border-radius: 50% !important;
  border: 3px solid #FFF;
  box-shadow: 0 0 0 6px #F3F1FD;
  background: #F3F1FD url(../theme/orchard/images/userimg.webp) center / cover no-repeat;
  color: transparent;
  font-size: 0;
}

/* Details: fixed grid so every card has the same structure */
section.one-on-one-grid .teacher-grid .teacher-details {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-rows: auto auto auto auto 1fr auto;
  column-gap: 10px;
  row-gap: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

section.one-on-one-grid .teacher-grid .teacher-details>* {
  grid-column: 1 / -1;
  min-width: 0;
  margin-left: 0;
  margin-right: 0;
}

section.one-on-one-grid .teacher-grid .teacher-details>.clearfix {
  display: none;
}

/* Name */
section.one-on-one-grid .teacher-grid .teach-name,
section.one-on-one-grid .teacher-grid .teacher-details>h5 {
  height: 22px;
  margin: 0 0 4px;
  line-height: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

section.one-on-one-grid .teacher-grid .teach-name a,
section.one-on-one-grid .teacher-grid .teacher-details>h5 a {
  display: inline;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  color: #1F2340;
}

section.one-on-one-grid .teacher-grid .teach-name a:hover,
section.one-on-one-grid .teacher-grid .teacher-details>h5 a:hover {
  color: #3B2F9E;
}

section.one-on-one-grid .teacher-grid .teach-name img,
section.one-on-one-grid .teacher-grid .teacher-details>h5 img {
  display: inline-block !important;
  width: 14px !important;
  height: 16px !important;
  margin: 0 0 0 2px;
  vertical-align: -2px;
}

/* Qualification / university */
section.one-on-one-grid .teacher-grid .teacher-details .ellipsis {
  height: 19px;
  font-size: 12.5px;
  line-height: 19px;
  color: #6B7088;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Subject tags: one row */
section.one-on-one-grid .teacher-grid .teacher-tags {
  --tag-bg: #EEEBFC;
  --tag-color: #4B3FB3;
  grid-row: 4;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 10px;
  overflow: hidden;
}

section.one-on-one-grid .teacher-grid .teacher-tag {
  flex: 0 1 auto;
  min-width: 0;
  padding: 0 10px;
  border-radius: 6px;
  background-color: var(--tag-bg);
  color: var(--tag-color);
  font-size: 12px;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

section.one-on-one-grid .teacher-grid>[class*="col-"]:nth-child(4n+2) .teacher-tags {
  --tag-bg: #FFF1E7;
  --tag-color: #E8692A;
}

section.one-on-one-grid .teacher-grid>[class*="col-"]:nth-child(4n+3) .teacher-tags {
  --tag-bg: #E8F7EE;
  --tag-color: #1E8E4E;
}

section.one-on-one-grid .teacher-grid>[class*="col-"]:nth-child(4n+4) .teacher-tags {
  --tag-bg: #FDECF1;
  --tag-color: #D63864;
}

/* Spacer pushes buttons to the bottom */
section.one-on-one-grid .teacher-grid .teacher-details hr {
  grid-row: 5;
  height: auto;
  min-height: 14px;
  margin: 0;
  border: none;
  background: transparent;
}

/* Buttons: always side by side */
section.one-on-one-grid .teacher-grid .teacher-details>.view-profile,
section.one-on-one-grid .teacher-grid .teacher-details>.book-trail {
  grid-row: 6;
  width: auto !important;
  float: none;
  margin: 0;
}

section.one-on-one-grid .teacher-grid .teacher-details>.view-profile {
  grid-column: 1;
}

section.one-on-one-grid .teacher-grid .teacher-details>.book-trail {
  grid-column: 2;
}

section.one-on-one-grid .teacher-grid .view-profile a,
section.one-on-one-grid .teacher-grid .book-trail a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none !important;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

section.one-on-one-grid .teacher-grid .view-profile a {
  background-color: #FFF4EC;
  border: 1px solid #FFDCC4;
  color: #F26B21;
}

section.one-on-one-grid .teacher-grid .view-profile a::before {
  content: "\f073";
  font-family: 'FontAwesome';
  font-weight: normal;
  margin-right: 6px;
}

section.one-on-one-grid .teacher-grid .view-profile a:hover {
  background-color: #F47B3B;
  border-color: #F47B3B;
  color: #FFF;
}

section.one-on-one-grid .teacher-grid .book-trail a {
  background-color: #FFF;
  border: 1px solid #4B3FB3;
  color: #4B3FB3;
}

section.one-on-one-grid .teacher-grid .book-trail a:hover {
  background-color: #4B3FB3;
  color: #FFF;
}

section.one-on-one-grid .teacher-grid .book-trail a.chat-us-link i {
  margin-right: 6px;
}

/* Pagination */
section.one-on-one-grid .pagination .page-link {
  padding: 10px 14px;
  min-width: 42px;
  border: 1px solid #E8EAF2;
  border-radius: 8px;
  color: #1F2340;
  font-weight: 500;
}

section.one-on-one-grid .pagination .page-link:hover {
  background-color: #FFF4EC;
  border-color: #FFDCC4;
  color: #F26B21;
}

section.one-on-one-grid .pagination .current {
  background-color: #F47B3B;
  border-color: #F47B3B;
  color: #FFF;
}

/* Responsive */
@media only screen and (max-width: 1199px) {
  section.one-on-one-grid .selected_filter_widget.style2 {
    width: calc((100% - 14px) / 2);
  }
}

@media only screen and (max-width: 991px) {
  section.one-on-one-grid .filter-row .left {
    flex: 0 0 100% !important;
  }

  section.one-on-one-grid .filter-row .right {
    flex: 0 0 100% !important;
    flex-direction: row;
    min-height: 0;
    margin: 18px 0 0 !important;
    padding: 18px 0 0;
    border-left: none;
    border-top: 2px solid #DCD8F5;
  }
}

@media only screen and (max-width: 575px) {
  section.one-on-one-grid .selected_filter_widget.style2 {
    width: 100% !important;
  }

  section.one-on-one-grid .filter-search>div:first-child {
    margin-right: 0;
  }

  section.one-on-one-grid .filter-search .search-submit-btn {
    position: static;
    width: 100%;
    height: 48px;
    margin-top: 12px;
  }

  section.one-on-one-grid .page-records .per-page {
    padding-top: 10px;
  }
}
