@charset "UTF-8";
/*
 * App-wide pieces that live in the layout rather than on one page: the
 * header's Share & Earn dialog and its search dropdown. Linked from
 * app/Views/partials/head.php, so every page with the app header has it.
 */
/* ---------------------------------------------------------------- Search */
.ace-search .search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.ace-search-kbd {
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-gray-300);
  border-radius: 0.35rem;
  box-shadow: none;
  color: var(--bs-gray-500);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.25rem 0.45rem;
  pointer-events: none;
}

/* Anchored under the input on desktop: never narrower than the input. */
.ace-search-dropdown {
  max-width: calc(100vw - 2rem);
  width: 460px;
}

.ace-search-filter .btn {
  white-space: nowrap;
}

.search-group + .search-group {
  border-top: 1px dashed var(--bs-gray-300);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

.search-group-title {
  color: var(--bs-gray-500);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.search-result {
  align-items: center;
  border-radius: 0.75rem;
  color: var(--bs-gray-900);
  display: flex;
  gap: 0.9rem;
  padding: 0.5rem 0.6rem;
}

.search-result:hover,
.search-result.active {
  background-color: var(--bs-gray-100);
  color: var(--bs-primary);
}

/* The text column takes the remaining width and may shrink below its content,
   which is what lets a long title truncate instead of widening the panel. */
.search-result > .d-flex {
  flex: 1 1 auto;
  min-width: 0;
}

.search-result-title {
  font-size: 1rem;
  font-weight: 600;
}

.search-result-title,
.search-result-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-meta {
  color: var(--bs-gray-500);
  font-size: 0.8rem;
  font-weight: 600;
}

.search-result-go {
  color: var(--bs-gray-400);
  font-size: 1.1rem;
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.search-result:hover .search-result-go,
.search-result.active .search-result-go {
  color: var(--bs-primary);
  opacity: 1;
}

[data-search-item].btn.active {
  box-shadow: 0 0 0 2px var(--bs-primary);
}

/*
 * Below lg KTSearch anchors the dropdown to the 20px search icon, and Popper
 * then pinned a 460px panel against the right edge of the screen, over the
 * Share button. There it is a panel spanning the viewport under the header
 * instead. Popper writes inline position/transform, hence !important.
 */
@media (max-width: 991.98px) {
  .ace-search-dropdown.show {
    inset: calc(var(--bs-app-header-height, 70px) + 0.5rem) 1rem auto 1rem !important;
    max-height: calc(100vh - var(--bs-app-header-height, 70px) - 1.5rem);
    overflow-y: auto;
    transform: none !important;
    width: auto !important;
  }
  .ace-search-filter {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .ace-search-filter .btn {
    font-size: 0.85rem;
    padding-left: 0.4rem !important;
    padding-right: 0.4rem !important;
  }
}
/* ---------------------------------------------------------- Share & Earn */
.share-earn-badge {
  align-items: center;
  background: linear-gradient(135deg, #FF2F72 0%, #FF5B3D 50%, #FFB51F 100%);
  border-radius: 1.25rem;
  box-shadow: 0 12px 24px -12px rgba(255, 47, 114, 0.55);
  color: #ffffff;
  display: inline-flex;
  height: 64px;
  justify-content: center;
  width: 64px;
}

.share-earn-badge .ki-outline {
  color: inherit;
  font-size: 2.25rem;
}

.share-earn-badge-muted {
  background: var(--bs-gray-200);
  box-shadow: none;
  color: var(--bs-gray-600);
}

.share-earn-reward {
  align-items: center;
  background-color: var(--bs-gray-100);
  border: 1px dashed var(--bs-gray-300);
  border-radius: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 0.75rem;
  text-align: center;
}

.share-earn-reward-value {
  color: var(--bs-gray-900);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.share-earn-reward-label {
  color: var(--bs-gray-600);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
}

[data-bs-theme=dark] .share-earn-invert {
  filter: invert(1);
}

.referral-step-number {
  align-items: center;
  background-color: var(--bs-primary-light);
  border-radius: 50%;
  color: var(--bs-primary);
  display: inline-flex;
  flex-shrink: 0;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.referral-milestone {
  border: 1px dashed var(--bs-gray-300);
  border-radius: 0.85rem;
  padding: 1rem 1.25rem;
}

.referral-milestone.is-reached {
  background-color: var(--bs-success-light);
  border-color: var(--bs-success);
}

/* ------------------------------------------------------- Listing title */
/* The task's name in the page language, beside the exam's English name:
   lighter, smaller and set off by a rule, so it reads as a gloss rather than
   as part of the title. */
.listing-task-translation {
  border-left: 2px solid var(--bs-gray-300);
  color: var(--bs-gray-500);
  font-size: 0.85em;
  font-weight: 600;
  padding-left: 0.75rem;
}

/* --------------------------------------------- Sidebar on a laptop screen */
/*
 * The sidebar is 380px wide, which is right on the 1920px screens the layout
 * was drawn for and a third of the window on a 1366px laptop. Between lg and
 * that width it is narrower and denser — same 32 entries, smaller type,
 * tighter rows — and the page it frames gets the difference back.
 *
 * The width comes from Metronic's own variable, so the header, the content
 * wrapper and the footer follow it without being told: template.php asks for
 * data-kt-app-sidebar-push-header/toolbar/footer, all of which are laid out
 * from --bs-app-sidebar-width.
 *
 * Every size below was measured against the longest label the sidebar can
 * hold rather than chosen: the task names are the exam's English ones
 * ("Multiple Choice Multiple Answers", the widest at 223px) and the group and
 * section labels are translated, so the band has to fit whichever language is
 * longest. See "Layout has to survive the longest label" in README.md.
 */
/* The sizes the fs-5 / fs-6 / fs-base utilities used to set in
   app/Views/partials/side.php. They are here so the media query below can
   change them: those utilities are !important, which nothing can override. */
#kt_app_sidebar .menu {
  font-size: 1.15rem;
}

#kt_app_sidebar .menu-sub .menu-title {
  font-size: 1.075rem;
}

#kt_app_sidebar .menu-heading {
  font-size: 1rem;
}

@media (min-width: 992px) and (max-width: 1366.98px) {
  :root {
    --bs-app-sidebar-width: 296px;
  }
  /* The brand block: the same lockup with less air around it. */
  #kt_app_sidebar .app-sidebar-header {
    padding: 1.25rem 1.1rem 1rem;
  }
  #kt_app_sidebar .app-sidebar-header .app-navbar p {
    font-size: 1.35rem;
    margin-top: 1rem !important;
  }
  #kt_app_sidebar .app-sidebar-content {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }
  #kt_app_sidebar_content {
    margin-bottom: 0.75rem;
    margin-top: 0.75rem;
  }
  #kt_app_sidebar .menu .menu-link {
    padding: 0.45rem 0.6rem;
  }
  #kt_app_sidebar .menu .menu-content {
    padding: 0.35rem 0.6rem;
  }
  /* Skill groups (Speaking, Writing…) and the entries under Advanced and
     Settings — translated, so sized for the longest translation: 182px in
     a 220px slot. */
  #kt_app_sidebar .menu {
    font-size: 1.1rem;
  }
  /* The task names. They are the exam's English ones in every language and
     the widest thing in the sidebar: "Multiple Choice Multiple Answers" is
     197px here, in the 208px left when the menu is long enough to scroll
     and its scrollbar takes its 10px. */
  #kt_app_sidebar .menu-sub .menu-title {
    font-size: 0.95rem;
  }
  #kt_app_sidebar .menu-heading {
    font-size: 0.92rem;
  }
  #kt_app_sidebar .menu-icon {
    width: 1.9rem;
  }
  #kt_app_sidebar .menu-icon i {
    font-size: 1.25rem !important;
  }
  /* The task rows give the label every pixel the row does not need: they
     are the only ones that come close to filling it. */
  #kt_app_sidebar .menu-sub .menu-link {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }
  #kt_app_sidebar .menu-sub .menu-bullet {
    width: 0.9rem;
  }
}