@font-face {
  font-family: 'DM Elene Akhvlediani';
  src: url('../fonts/dm-elene-akhvlediani/dm-elene-akhvlediani-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SF Georgian';
  src: url('../fonts/sf-georgian/SF-Georgian.woff2') format('woff2'),
    url('../fonts/sf-georgian/SF-Georgian.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --pedagoge-brand: #624be8;
  --pedagoge-brand-hover: #5240d0;
  --pedagoge-brand-rgb: 98, 75, 232;
  --pedagoge-brand-light: #ece8fc;
  --pedagoge-hero-subject-underline: #eaf4d4;
  --pedagoge-highlight: var(--pedagoge-brand);
  --site-container-max: 1240px;
  --site-container-max-wide: 1280px;
}

/* Slightly narrower layout on large viewports (default theme ~1320px+) */
@media (min-width: 1200px) {
  .wrapper.ovh .container {
    max-width: var(--site-container-max);
  }
}

@media (min-width: 1400px) {
  .wrapper.ovh .container {
    max-width: var(--site-container-max-wide);
  }
}

/* Primary actions — purple to match logo */
body.page-site header.header-nav a.ud-btn.btn-dark.text-white,
body.page-site .hero-home14 .advance-search-tab .ud-btn.btn-dark.hero-search-btn {
  background-color: var(--pedagoge-brand);
  border-color: var(--pedagoge-brand);
  color: #ffffff;
}

body.page-site header.header-nav a.ud-btn.btn-dark.text-white:hover,
body.page-site .hero-home14 .advance-search-tab .ud-btn.btn-dark.hero-search-btn:hover {
  background-color: var(--pedagoge-brand-hover);
  border-color: var(--pedagoge-brand-hover);
  color: #ffffff;
}

body.page-site .btn-dark:hover,
body.page-site .btn-thm:hover,
body.page-site .btn-thm-border:hover {
  background-color: var(--pedagoge-brand-hover);
  border-color: var(--pedagoge-brand-hover);
}

body.page-site .btn-thm-border {
  color: var(--pedagoge-brand);
  border-color: var(--pedagoge-brand);
}

body.page-site .btn-thm-border:hover {
  color: #ffffff;
}

header.header-nav .header-logo img {
  display: block;
  max-height: 40px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.footer-logo img {
  display: block;
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

header.header-nav .site-header-nav-divider {
  flex-shrink: 0;
  margin: 0 18px 0 16px;
  color: #ced4da;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  user-select: none;
}

/* Mobile header bar — override menu.css generic `.header` (80px / center) */
@media (max-width: 992px) {
  .mobilie_header_nav.stylehome1 .mobile-menu {
    position: sticky;
    top: 0;
    z-index: 1020;
    background-color: #ffffff;
  }

  .mobilie_header_nav.stylehome1 .mobile-menu > .header.bdrb1 {
    display: flex;
    align-items: center;
    height: auto !important;
    min-height: 64px;
    line-height: normal !important;
    text-align: left !important;
    padding: 10px 16px !important;
    margin: 0;
  }

  .mobilie_header_nav.stylehome1 .mobile-menu .menu_and_widgets {
    flex: 1;
    min-width: 0;
  }

  .mobilie_header_nav.stylehome1 .mobile_menu_bar {
    gap: 12px;
  }

  .mobilie_header_nav.stylehome1 .mobile_logo img {
    display: block;
    max-height: 34px;
    width: auto;
  }

  .mobilie_header_nav.stylehome1 .site-mobile-login-link,
  .mobilie_header_nav.stylehome1 .site-mobile-register-link {
    color: var(--headings-color);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
  }

  .mobilie_header_nav.stylehome1 .menubar img {
    display: block;
    width: 22px;
    height: auto;
  }

  .mobilie_header_nav.stylehome1 .site-mobile-close-wrap {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 0;
    height: 0;
    overflow: visible;
    pointer-events: none;
  }
}

/* Subject category strip: one row, horizontal scroll only */
body.page-site .categories_list_section {
  overflow-x: hidden;
  overflow-y: hidden;
}

body.page-site .listings_category_nav_list_menu {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}

body.page-site .listings_category_nav_list_menu::-webkit-scrollbar {
  height: 4px;
}

body.page-site .listings_category_nav_list_menu::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 4px;
}

body.page-site .listings_category_nav_list_menu ul {
  width: max-content;
  max-width: none;
  flex-wrap: nowrap !important;
  overflow: visible;
  margin: 0;
  padding-bottom: 2px;
}

body.page-site .listings_category_nav_list_menu li {
  flex-shrink: 0;
}

body.page-site .site-subject-nav-label {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 0;
  padding-right: 0;
}

body.page-site .site-subject-nav-label::after {
  content: '|';
  flex-shrink: 0;
  margin-left: 16px;
  margin-right: 20px;
  color: #ced4da;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}

body.page-site .site-subject-nav-popular {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--headings-color);
  font-family: var(--title-font-family);
  font-size: 14px;
  font-weight: 600;
  line-height: 40px;
  white-space: nowrap;
}

body.page-site .site-subject-nav-popular__mark {
  font-size: 15px;
  line-height: 1;
}

body.page-site .listings_category_nav_list_menu a:hover {
  color: var(--headings-color);
}

body.page-site .listings_category_nav_list_menu a::before {
  background-color: var(--headings-color);
}

body.page-site .listings_category_nav_list_menu a:hover::before {
  left: 0;
  right: 0;
  width: 100%;
}

body.page-site-home {
  --title-font-family: 'SF Georgian', system-ui, sans-serif;
  --body-font-family: 'SF Georgian', system-ui, sans-serif;
  font-family: var(--body-font-family);
}

/* Hero search dropdown: above imagery and the next page section */
.hero-home14 {
  position: relative;
  z-index: 10;
  overflow: visible !important;
}

.hero-home14 > .container,
.hero-home14 > .container > .row,
.hero-home14 .col-xl-7,
.hero-home14 .home14-hero-content,
.hero-home14 .advance-search-tab,
.hero-home14 .advance-search-field,
.hero-home14 .advance-search-field form.form-search {
  overflow: visible !important;
}

.hero-home14 .home14-hero-content {
  position: relative;
  z-index: 4;
}

.hero-home14 .home13-hero-img {
  position: relative;
  z-index: 1;
}

.hero-home14 .advance-search-tab {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 460px;
  padding: 6px !important;
  border-radius: 48px;
}

.hero-home14 .advance-search-tab .row {
  align-items: center;
  flex-wrap: nowrap;
  margin-inline: 0;
}

.hero-home14 .advance-search-tab .row > [class*='col-']:first-child {
  flex: 1 1 0 !important;
  width: 1% !important;
  max-width: 100%;
  min-width: 0;
  padding-right: 6px;
}

.hero-home14 .advance-search-tab .row > [class*='col-']:last-child {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none;
  padding-left: 0;
}

.hero-home14 .advance-search-tab .ud-btn {
  width: auto;
  white-space: nowrap;
}

.hero-home14 .advance-search-field .box-search .icon {
  top: 50%;
  bottom: auto;
  left: 14px;
  font-size: 14px;
  transform: translateY(-50%);
}

.hero-home14 .advance-search-field .box-search input.form-control {
  height: 42px;
  min-height: 42px;
  padding: 6px 14px 6px 40px;
  font-size: 14px;
  line-height: 1.25;
}

.hero-home14 .advance-search-tab .ud-btn {
  padding: 9px 18px;
  font-size: 14px;
  line-height: 1.25;
  min-height: 42px;
}

@media (max-width: 991.98px) {
  .hero-home14 .advance-search-tab {
    max-width: min(100%, 420px);
  }
}

@media (max-width: 767.98px) {
  .hero-home14 .home14-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-home14 .advance-search-tab {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    border-radius: 48px !important;
    padding: 4px !important;
  }

  .hero-home14 .advance-search-tab.bdrs4-sm {
    border-radius: 48px !important;
  }

  .hero-home14 .advance-search-tab.mt30 {
    margin-top: 20px !important;
  }

  .hero-home14 .hero-search-row {
    flex-wrap: nowrap !important;
    margin-inline: 0;
  }

  .hero-home14 .hero-search-row > [class*='col-']:first-child {
    flex: 1 1 0 !important;
    width: 1% !important;
    min-width: 0;
    max-width: 100%;
    padding-right: 4px;
  }

  .hero-home14 .hero-search-row > [class*='col-']:last-child {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none;
    padding-left: 0;
  }

  .hero-home14 .advance-search-field {
    margin-bottom: 0 !important;
    border: none !important;
  }

  .hero-home14 .advance-search-field .box-search .icon {
    left: 10px;
    font-size: 13px;
  }

  .hero-home14 .advance-search-field .box-search input.form-control {
    text-align: left;
    padding: 4px 8px 4px 32px !important;
    height: 38px;
    min-height: 38px;
    font-size: 13px;
    line-height: 1.2;
  }

  .hero-home14 .advance-search-field .box-search input.form-control::placeholder {
    text-align: left;
    font-size: 12px;
  }

  .hero-home14 .advance-search-tab .hero-search-btn,
  .hero-home14 .advance-search-tab .ud-btn.hero-search-btn {
    width: auto;
    min-height: 38px;
    padding: 6px 12px !important;
    font-size: 13px;
    line-height: 1.2;
    border-radius: 48px !important;
  }

  .hero-home14 .advance-search-field .search-suggestions {
    top: 46px;
  }
}

.hero-home14 .advance-search-field .search-suggestions {
  top: 52px;
}

.hero-home14 .advance-search-field .box-search {
  position: relative;
  z-index: 0;
}

.hero-home14 .advance-search-field .box-search:focus-within {
  z-index: 2000;
}

.hero-home14 .advance-search-field .search-suggestions {
  z-index: 2000;
}

.hero-home14:has(.advance-search-field .box-search:focus-within) {
  z-index: 2000;
}

/* Keep the gray block below the hero under the open suggestions panel */
.hero-home14 + section {
  position: relative;
  z-index: 1;
}

.home14-hero-content .title.hero-title-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12em;
  font-family: 'DM Elene Akhvlediani', var(--title-font-family);
  line-height: 1.12;
  text-align: center;
}

.home14-hero-content .title.hero-title-stack .hero-subject-rotate__slot {
  margin-inline: auto;
}

.home14-hero-content .title .hero-subject-rotate__word {
  display: flex;
  justify-content: center;
  width: 100%;
  left: 0;
  right: 0;
}

.hero-home14 .advance-search-tab {
  margin-inline: auto;
}

.hero-home14 .advance-search-tab .hero-search-submit {
  text-align: center !important;
}

.hero-home14 .advance-search-field .form-search,
.hero-home14 .advance-search-field .box-search,
.hero-home14 .advance-search-field .search-suggestions,
.hero-home14 .advance-search-field .search-suggestions h6,
.hero-home14 .advance-search-field .search-suggestions .info-product,
.hero-home14 .advance-search-field .search-suggestions .item_title {
  text-align: left;
}

@media (max-width: 1199.98px) {
  .hero-home14 .advance-search-tab {
    max-width: min(100%, 400px);
  }
}

.home14-hero-content .title.hero-title-stack .hero-title-line {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1.12;
}

.home14-hero-content .title.hero-title-stack .hero-subject-rotate.hero-title-line {
  margin-top: 0.12em;
  margin-bottom: 0.12em;
}

.home14-hero-content .title.hero-title-stack > .hero-title-line::before {
  display: none;
}

/* Freeio theme paints span::before at 100% — disable for rotate slot (sizer is widest word) */
.home14-hero-content .title .hero-subject-rotate span::before {
  display: none !important;
  content: none !important;
}

/* In-flow sizer holds a stable box; the visible word is layered on top */
.hero-subject-rotate__slot {
  display: inline-block;
  position: relative;
  max-width: 100%;
  line-height: 1.12;
}

/* The widest word comes from data-word via ::before, so it is not part of the H1 text crawlers read */
.home14-hero-content .title .hero-subject-rotate .hero-subject-rotate__sizer::before {
  content: attr(data-word) !important;
  display: inline !important;
  position: static !important;
  background: none !important;
}

.hero-subject-rotate__sizer {
  display: block;
  visibility: hidden;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  line-height: 1.12;
}

.home14-hero-content .title .hero-subject-rotate__word {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-block;
  width: auto;
  max-width: 100%;
  line-height: 1.12;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.36s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}

.home14-hero-content .title .hero-subject-rotate__text {
  display: inline-block;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
  line-height: 1.12;
  background-image: linear-gradient(
    var(--pedagoge-hero-subject-underline),
    var(--pedagoge-hero-subject-underline)
  );
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 5px);
  background-size: 100% 19px;
}

.home14-hero-content .title .hero-subject-rotate__word.is-leaving {
  opacity: 0;
  transform: translate3d(0, 0.18em, 0);
}

.home14-hero-content .title .hero-subject-rotate__word.is-entering {
  opacity: 0;
  transform: translate3d(0, -0.18em, 0);
}

.home14-hero-content .home13-hero-img .hero-teacher-photo-wrap {
  display: block;
  overflow: hidden;
  line-height: 0;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(34, 34, 34, 0.1);
  isolation: isolate;
}

.home14-hero-content .home13-hero-img .hero-teacher-photo {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  vertical-align: top;
}

.home14-hero-content .home13-hero-img .hero-students-photo-wrap {
  display: block;
  overflow: hidden;
  line-height: 0;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(34, 34, 34, 0.1);
  isolation: isolate;
}

.home14-hero-content .home13-hero-img .hero-students-photo {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  vertical-align: top;
}

@media (prefers-reduced-motion: reduce) {
  .home14-hero-content .title .hero-subject-rotate__word {
    transition: none;
    transform: none;
  }

  .home14-hero-content .title .hero-subject-rotate__word.is-leaving,
  .home14-hero-content .title .hero-subject-rotate__word.is-entering {
    opacity: 1;
    transform: none;
  }
}

/* Teachers mobile filter drawer — must sit beside overlay at .wrapper level (see site-fixed-panels stack) */
body.menu-hidden-sidebar-content {
  overflow: hidden;
}

body.menu-hidden-sidebar-content .lefttside-hidden-bar {
  z-index: 100001;
  pointer-events: auto;
}


/* ---------- Site footer (all marketing pages) ---------- */
.pd-footer {
  background: #1f1d2b;
}
.pd-footer__tagline {
  max-width: 320px;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.65;
}
.pd-footer__mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 15px;
}
.pd-footer__mail:hover {
  color: #c9c0ff;
}
.pd-footer__heading {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}
.pd-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pd-footer__links li {
  margin-bottom: 10px;
}
.pd-footer__links a,
.pd-footer__legal a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  transition: color 0.2s;
}
.pd-footer__links a:hover,
.pd-footer__legal a:hover {
  color: #ffffff;
}
.pd-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}
.pd-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.pd-footer__legal a {
  font-size: 14px;
}
@media (max-width: 575.98px) {
  .pd-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
.pd-footer .footer-logo {
  display: inline-block;
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.pd-footer .footer-logo:hover {
  color: #ffffff;
  opacity: 0.85;
}
