/* Wrapper */
.wrapper {
  display: grid;
  grid-template-columns:
    [full-width-start breakout-left-start] minmax(var(--_gap), 1fr)
    [content-start breakout-right-start] min(
      100% - var(--_gap) * 2,
      var(--_max-width, 1180px)
    )
    [content-end breakout-left-end] minmax(var(--_gap), 1fr)
    [full-width-end breakout-right-end];

  @media (width <=768px) {
    --_gap: 1rem;
  }

  @media (768px < width <=1024px) {
    --_gap: 2rem;
    --_max-width: 720px;
  }

  @media (width > 1024px) {
    --_gap: 3rem;
  }
}

.nav-link:focus,
.nav-link:hover {
  color: white !important;
}

.wrapper > .full-width {
  grid-column: full-width;
}

.wrapper > .content {
  grid-column: content;
}

.wrapper > .breakout-left {
  grid-column: breakout-left;
}

.wrapper > .breakout-right {
  grid-column: breakout-right;
}

/* End of Wrapper */

/* Input */
.input-wrapper {
  font-family: Inter, Lato, "sans-serif";
  --_input-wrapper-padding: 0.75rem;

  label {
    display: block;
    font-size: var(--fs-300);
    line-height: 19px;
    letter-spacing: -2%;
    text-transform: capitalize;
    color: var(--black-clr);
    padding-bottom: 0.5rem;

    &.required::after {
      content: "*";
      display: inline-block;
      color: var(--secondary-clr);
    }
  }

  &.recaptcha-wrapper {
    grid-column: 1/-1;
  }

  &.required {
    label::after {
      content: "*";
      display: inline-block;
      color: var(--secondary-clr);
    }
  }

  input,
  select,
  textarea {
    width: 100%;
    padding: var(--_input-wrapper-padding);
    line-height: 22px;
    letter-spacing: -2%;
    background-color: var(--white-clr);
    border-radius: 0.5rem;
    border: 1px solid #9ba5b7;
    outline-offset: -2px;

    &:focus-visible {
      outline: 2px solid var(--secondary-clr);
    }
  }

  input[type="file"] {
    --_input-wrapper-padding: 0;

    cursor: pointer;

    &::file-selector-button {
      cursor: pointer;
      padding: 0.75rem;
      height: 100%;
      color: #999999;
      background-color: #edeeef;
      border: none;
      border-top-left-radius: 0.5rem;
      border-bottom-left-radius: 0.5rem;
      margin-right: 2rem;
      transition: all 180ms ease;
    }

    &::file-selector-button:hover,
    &::file-selector-button:active {
      background-color: var(--secondary-clr);
      color: var(--white-clr);
    }
  }

  select {
    appearance: none;
    background-image: url("../images/arrow-down.svg");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
    background-size: 0.625rem;
  }

  textarea {
    resize: vertical;
  }

  option {
    color: var(--text-clr);
  }

  &.password-wrapper {
    --_toggle-password-offset: 1.5rem;
    position: relative;

    &:focus-within {
      .toggle-password {
        color: var(--secondary-clr);
      }
    }

    input {
      padding-right: calc(
        2 * var(--_input-wrapper-padding) + var(--_toggle-password-offset)
      );
    }

    .toggle-password {
      position: absolute;
      width: 1.5rem;
      aspect-ratio: 1;
      top: calc(3.25 * var(--_input-wrapper-padding));
      right: var(--_input-wrapper-padding);
    }
  }
}

.checkbox-wrapper {
  display: grid;
  grid-template-columns: 0.875rem 1fr;
  align-items: start;
  column-gap: 0.5rem;
  margin-top: 1rem;

  input {
    margin-top: 3px;
  }

  label {
    font-size: var(--fs-300);
    line-height: 19px;
    letter-spacing: -2%;
    /* text-transform: capitalize; */
    color: var(--black-clr);
  }

  a {
    color: var(--secondary-clr);
    transition: all 180ms ease;

    &:hover {
      text-decoration: none;
    }
  }

  .text-danger {
    grid-row: 2;
    grid-column: 2;
  }
}

/* End of Input */

/* Fix bootstrap select dropdown */
.input-wrapper {
  .dropdown-toggle {
    width: 100%;
    padding: var(--_input-wrapper-padding);
    display: block;
    line-height: 22px;
    letter-spacing: -2%;
    background-color: var(--white-clr);
    border-radius: 0.5rem;
    border: 1px solid #9ba5b7;
    background-clip: padding-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;

    padding-right: 2rem;
    position: relative;

    &::after {
      content: "";
      position: absolute;
      inset-block: 0;
      margin-block: auto !important;
      width: 0.625rem;
      height: 0.625rem;
      right: 0.625rem;
      background-image: url("/images/arrow-down.svg");
      background-repeat: no-repeat;
      background-position: center;
      background-size: 0.625rem;
      transition: rotate 180ms ease;
    }

    &.show::after {
      rotate: 180deg;
    }

    &.dropdown-toggle:focus-visible {
      outline: 2px solid var(--secondary-clr) !important;
      outline-offset: 0;
    }
  }

  .bootstrap-select {
    position: relative;
    min-width: 100%;
  }

  .bootstrap-select > select {
    position: absolute !important;
    bottom: 0;
    left: 50%;
    display: block !important;
    min-width: 0 !important;
    width: 0.5px !important;
    height: 100% !important;
    padding: 0 !important;
    opacity: 0 !important;
    border: none;
    z-index: 0 !important;
  }

  .bootstrap-select .no-results {
    padding: 3px;
    background: #f5f5f5;
    margin: 0 5px;
    white-space: nowrap;
  }

  .bs-searchbox {
    padding: 4px 8px;
  }

  .dropdown-menu {
    display: none;
  }

  .dropdown-menu.show {
    min-width: 100%;
    display: block !important;
    position: absolute;
    z-index: 1000;
    display: none;
    min-width: 10rem;
    margin: 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
  }

  .dropdown-menu.inner {
    position: static;
    float: none;
    margin-top: 0px;
    margin-bottom: 0px;
    border-radius: 0;
    box-shadow: none;
  }

  .bs-searchbox .form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-top-color: rgb(206, 212, 218);
    border-right-color: rgb(206, 212, 218);
    border-bottom-color: rgb(206, 212, 218);
    border-left-color: rgb(206, 212, 218);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  }

  .dropdown-item {
    font-family: var(--ff-lato) !important;
    display: block;
    line-height: 1.5em;
    width: 100%;
    padding: 0.25rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;

    &:hover {
      background-color: var(--menu-hover-color, var(--secondary-clr-5));
      color: var(--default-light-color, var(--secondary-clr));
    }
  }

  .filter-option-inner-inner {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* End of Fix bootstrap select dropdown */

/* Button */
.btn {
  cursor: pointer;
  display: block;
  min-width: 6.25rem;
  background-color: var(--_btn-clr);
  color: var(--_btn-txt-clr);
  padding: 0.625rem;
  border: none;
  border-radius: 0.25rem;
  font-size: var(--_btn-fs, var(--fs-400));
  font-weight: var(--_btn-fw, var(--fw-600));
  text-align: center;
  text-wrap: nowrap;
  transition: all 180ms ease;

  a {
    all: unset;
  }

  &:hover {
    color: var(--_btn-clr);
    background-color: var(--_btn-txt-clr);
    outline: 1px solid var(--_btn-clr);

    transition: all 180ms ease;

    .btn-icon {
      svg {
        path {
          fill: currentColor;
        }
      }
    }
  }

  &:has(.btn-icon),
  &:has(.bx) {
    --_btn-clr: var(--_btn-icon-clr);
    --_btn-txt-clr: var(--_btn-icon-txt-clr);

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.625rem;

    .btn-icon {
      width: 1.25rem;
      height: 1.25rem;
      aspect-ratio: 1;

      svg {
        width: 100%;
        height: 100%;
      }
    }
  }

  &.btn-primary {
    --_btn-clr: var(--primary-clr);
    --_btn-txt-clr: var(--white-clr);
  }

  &.btn-secondary {
    --_btn-clr: var(--secondary-clr);
    --_btn-txt-clr: var(--white-clr);
  }

  &.btn-tertiary {
    --_btn-clr: var(--tertiary-clr);
    --_btn-txt-clr: var(--white-clr);
  }

  &.btn-outline,
  &.btn-outline-tertiary {
    --_btn-clr: var(--white-clr);
    --_btn-txt-clr: var(--tertiary-clr);
    border: 1px solid var(--_btn-txt-clr);
  }

  &.btn-outline-primary {
    --_btn-clr: var(--white-clr);
    --_btn-txt-clr: var(--primary-clr);
    border: 1px solid var(--_btn-txt-clr);
  }

  &.btn-outline-secondary {
    --_btn-clr: var(--white-clr);
    --_btn-txt-clr: var(--secondary-clr);
    border: 1px solid var(--_btn-txt-clr);
  }

  &.btn-fw-500 {
    --_btn-fw: var(--fw-500);
  }

  &.btn-sm {
    padding: 0.5rem 0.75rem;
  }

  &.btn-md {
    padding-inline: 1.625rem;
  }

  &.btn-xl {
    padding: 1rem 2.5rem;
  }

  &.btn-2xl {
    width: 13.5rem;
  }

  &.btn-3xl {
    padding: 0.875rem;
    width: 20.5rem;
  }

  &.btn-full {
    width: 100%;
  }

  &.btn-partner {
    border: none;
    border-bottom: 2px solid var(--secondary-clr);

    &:hover {
      outline: none;
      border-bottom-color: var(--white-clr);
    }
  }
}

/* End of Button */

/* Heading */
h1 {
  max-width: 20ch;
  font-size: var(--fs-900);
  font-weight: var(--fw-900);
  line-height: 1.25;
  color: var(--white-clr);
}

h2 {
  margin-bottom: 0.75rem;
  font-size: var(--fs-800);
  font-weight: var(--fw-900);
  line-height: 1.25;
  color: var(--tertiary-clr);
}

/* End of Heading */

/* Focus Image */
.focus-img {
  width: 426px;
  height: 478px;
  position: relative;
  isolation: isolate;
  border-radius: 1.25rem;

  @media (width <=1024px) {
    overflow-x: clip;
  }

  img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
  }

  &::after {
    content: "";
    position: absolute;
    width: 56px;
    height: 100%;
    right: -40px;
    bottom: 0;
    background-color: var(--secondary-clr);
    border-top-right-radius: inherit;
    border-bottom-right-radius: inherit;

    @media (width > 1024px) {
      height: 94.82%;
      z-index: -1;
      right: -12px;
      bottom: -12.09px;
      border-top-right-radius: 0.25rem;
      border-bottom-right-radius: 1rem;
      border-bottom-left-radius: 0.25rem;
    }
  }
}

.focus-img-2 {
  width: 444px;
  height: 384px;
  position: relative;
  border-radius: 50%;
  isolation: isolate;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  &::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -0.5rem;
    right: 1rem;
    background-color: var(--white-clr);
    border: 1.5px dashed var(--secondary-clr);
    width: 100%;
    height: 114%;
    border-radius: 50%;
  }
}

.focus-img-3 {
  width: 554px;
  height: 369px;
  position: relative;
  isolation: isolate;
  border-radius: 0.875rem;

  @media (width <=1024px) {
    overflow-x: clip;
  }

  img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
  }

  &::after {
    content: "";
    position: absolute;
    width: 56px;
    height: 100%;
    right: -40px;
    bottom: 0;
    background-color: var(--secondary-clr);
    border-top-right-radius: inherit;
    border-bottom-right-radius: inherit;

    @media (width > 1024px) {
      height: 94.82%;
      width: 94.82%;
      z-index: -1;
      right: -22px;
      bottom: -22px;
      border-radius: 0.5rem;
    }
  }
}

.details-main-img img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  border-radius: 0.25rem;
  min-height: 220px;
}

/* End of Focus Image */

/* Curve Underline */
.curve-underline {
  position: relative;

  &::after {
    content: "";
    position: absolute;
    bottom: -15px;
    inset-inline: 0;
    margin-inline: auto;
    background-image: url("../images/signup-underline.svg");
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
  }
}

@media (width <=1024px) {
  .desktop-only {
    display: none !important;
  }
}

@media (width > 1024px) {
  .mobile-only {
    display: none !important;
  }
}

/* End of Curve Underline */

/* Breadcrumb */
.breadcrumb {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
}

.breadcrumb li:has(a) {
  display: flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: #999;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #000;
  text-decoration: underline;
}

.breadcrumb .current {
  --_line-clamp: 1;
  color: #333;
  font-weight: 500;

  display: -webkit-box;
  -webkit-line-clamp: var(--_line-clamp, 2);
  line-clamp: var(--_line-clamp, 2);
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* End of Breadcrumb */

/* font family */
.ff-inter {
  font-family: var(--ff-inter);
}

.ff-lato {
  font-family: var(--ff-lato);
}

/* End of font family */

/* Display */

[data-key][data-active="false"],
.d-none,
.none {
  display: none !important;
}

.notfound-message {
  padding: 1rem;
  background-color: #67216224;
  background-color: var(--secondary-clr-5);
  margin: 1rem;
  color: #672162;
  color: var(--secondary-clr);
}

/* End ofDisplay */

/* Box icons */
.bx {
  text-align: center;
  vertical-align: middle;

  &.bx-16 {
    font-size: 1rem !important;
  }

  &.bx-24 {
    font-size: 1.5rem !important;
  }

  &.bx-32 {
    font-size: 2rem !important;
  }

  &.bx-36 {
    font-size: 2.25rem !important;
  }

  &.bx-48 {
    font-size: 3rem !important;
  }
}

/* End of Box icons */

/* WhatsApp */
.chat {
  cursor: pointer;
  width: 4rem;
  height: 4rem;
  aspect-ratio: 1;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: rgba(0, 0, 0, 0.09) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px,
    rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px,
    rgba(0, 0, 0, 0.09) 0px 32px 16px;
  transition: all 600ms cubic-bezier(0.9, 0, 0.1, 1);

  .bx {
    font-size: 3.25rem;
    color: hsl(142, 70%, 49%);
  }

  &:hover {
    scale: 1.2;
    box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px,
      rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px,
      rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px;
  }

  @media (width <=768px) {
    width: 3rem;
    height: 3rem;

    .bx {
      font-size: 2.25rem;
    }
  }
}

/* End of WhatsApp */

/* Accordin */
.faq {
  .accordions {
    --_accordions-counter-name: accordions;

    display: grid;
    gap: 1rem;
    counter-reset: var(--_accordions-counter-name);
  }

  .accordion {
    counter-increment: var(--_accordions-counter-name);
    border: 1px solid #d5d5d5;
    border-radius: 0.5rem;
    background-color: var(--white-clr);
    overflow-y: clip;

    &::details-content {
      height: 0;
      transition: height 1000ms, content-visibility 800ms, opacity 600ms 100ms;
      transition-behavior: allow-discrete;
      transition-timing-function: linear(
        0,
        0.012 0.9%,
        0.05 2%,
        0.411 9.2%,
        0.517 11.8%,
        0.611 14.6%,
        0.694 17.7%,
        0.765 21.1%,
        0.824 24.8%,
        0.872 28.9%,
        0.91 33.4%,
        0.939 38.4%,
        0.977 50.9%,
        0.994 68.4%,
        1
      );
    }
  }

  .accordion[open] {
    border: 1px solid var(--secondary-clr);

    &::details-content {
      height: auto;
    }

    .accordion-summary {
      color: var(--secondary-clr);
      background-color: var(--secondary-clr-5);
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
    }

    .accordion-summary::after {
      content: "\ee4a";
    }

    .accordion-content {
      opacity: 1;
      padding-block: 0.875rem;
    }
  }

  .accordion-summary {
    position: relative;
    padding: 0.875rem 3.25rem 0.875rem 2rem;
    font-size: var(--fs-500);
    font-weight: var(--fw-700);
    background-color: var(--white-clr);
    border-radius: 0.5rem;

    &::marker {
      content: "";
    }

    &::before {
      content: counter(var(--_accordions-counter-name)) ".  ";
      position: absolute;
      left: 0.875rem;
      top: 0.875rem;
    }

    &::after {
      content: "\ee79";
      font-family: boxicons;
      position: absolute;
      color: var(--secondary-clr);
      font-size: 2rem;
      right: 1.125rem;
      transition: all 180ms ease;
    }
  }

  .accordion-content {
    opacity: 0;
    padding-inline: 0.875rem;
    line-height: 26px;
    color: black;
  }
}
/* End of Accordin */

.text-ellipsis {
  display: -webkit-box;
  -webkit-line-clamp: var(--_line-clamp, 2);
  line-clamp: var(--_line-clamp, 2);
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Readmore */
.js-readmore[data-readmore] {
  overflow: hidden;
  transition: height 300ms ease;
}

.readmore-btn,
.readless-btn {
  margin-top: 0.5rem;
  background: none;
  border: none;
  line-height: 1.5;
  color: var(--secondary-clr);
}

.readmore-btn {
  padding-right: 1.5rem;
  background-image: url("/assets/images/arrow_right_1.svg");
  background-size: 0.875rem;
  background-position: right 60%;
  background-repeat: no-repeat;
}

/* End of Readmore */

/* Animations */
@keyframes institutionSlider {
  from {
    left: 100%;
  }

  to {
    left: calc(var(--_institution-width) * -1);
  }
}

@keyframes clusterAppear {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    scale: 1;
    opacity: 1;
  }

  70% {
    scale: 2;
    opacity: 0;
  }

  100% {
    scale: 1;
    opacity: 0;
  }
}

@-webkit-keyframes container-rotate {
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes container-rotate {
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@-webkit-keyframes fill-unfill-rotate {
  12.5% {
    -webkit-transform: rotate(135deg);
    transform: rotate(135deg);
  }

  25% {
    -webkit-transform: rotate(270deg);
    transform: rotate(270deg);
  }

  37.5% {
    -webkit-transform: rotate(405deg);
    transform: rotate(405deg);
  }

  50% {
    -webkit-transform: rotate(540deg);
    transform: rotate(540deg);
  }

  62.5% {
    -webkit-transform: rotate(675deg);
    transform: rotate(675deg);
  }

  75% {
    -webkit-transform: rotate(810deg);
    transform: rotate(810deg);
  }

  87.5% {
    -webkit-transform: rotate(945deg);
    transform: rotate(945deg);
  }

  to {
    -webkit-transform: rotate(1080deg);
    transform: rotate(1080deg);
  }
}

@keyframes fill-unfill-rotate {
  12.5% {
    -webkit-transform: rotate(135deg);
    transform: rotate(135deg);
  }

  25% {
    -webkit-transform: rotate(270deg);
    transform: rotate(270deg);
  }

  37.5% {
    -webkit-transform: rotate(405deg);
    transform: rotate(405deg);
  }

  50% {
    -webkit-transform: rotate(540deg);
    transform: rotate(540deg);
  }

  62.5% {
    -webkit-transform: rotate(675deg);
    transform: rotate(675deg);
  }

  75% {
    -webkit-transform: rotate(810deg);
    transform: rotate(810deg);
  }

  87.5% {
    -webkit-transform: rotate(945deg);
    transform: rotate(945deg);
  }

  to {
    -webkit-transform: rotate(1080deg);
    transform: rotate(1080deg);
  }
}

@-webkit-keyframes blue-fade-in-out {
  from {
    opacity: 1;
  }

  25% {
    opacity: 1;
  }

  26% {
    opacity: 0;
  }

  89% {
    opacity: 0;
  }

  90% {
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}

@keyframes blue-fade-in-out {
  from {
    opacity: 1;
  }

  25% {
    opacity: 1;
  }

  26% {
    opacity: 0;
  }

  89% {
    opacity: 0;
  }

  90% {
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}

@-webkit-keyframes red-fade-in-out {
  from {
    opacity: 0;
  }

  15% {
    opacity: 0;
  }

  25% {
    opacity: 1;
  }

  50% {
    opacity: 1;
  }

  51% {
    opacity: 0;
  }
}

@keyframes red-fade-in-out {
  from {
    opacity: 0;
  }

  15% {
    opacity: 0;
  }

  25% {
    opacity: 1;
  }

  50% {
    opacity: 1;
  }

  51% {
    opacity: 0;
  }
}

@-webkit-keyframes yellow-fade-in-out {
  from {
    opacity: 0;
  }

  40% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  75% {
    opacity: 1;
  }

  76% {
    opacity: 0;
  }
}

@keyframes yellow-fade-in-out {
  from {
    opacity: 0;
  }

  40% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  75% {
    opacity: 1;
  }

  76% {
    opacity: 0;
  }
}

@-webkit-keyframes green-fade-in-out {
  from {
    opacity: 0;
  }

  65% {
    opacity: 0;
  }

  75% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes green-fade-in-out {
  from {
    opacity: 0;
  }

  65% {
    opacity: 0;
  }

  75% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@-webkit-keyframes left-spin {
  from {
    -webkit-transform: rotate(130deg);
    transform: rotate(130deg);
  }

  50% {
    -webkit-transform: rotate(-5deg);
    transform: rotate(-5deg);
  }

  to {
    -webkit-transform: rotate(130deg);
    transform: rotate(130deg);
  }
}

@keyframes left-spin {
  from {
    -webkit-transform: rotate(130deg);
    transform: rotate(130deg);
  }

  50% {
    -webkit-transform: rotate(-5deg);
    transform: rotate(-5deg);
  }

  to {
    -webkit-transform: rotate(130deg);
    transform: rotate(130deg);
  }
}

@-webkit-keyframes right-spin {
  from {
    -webkit-transform: rotate(-130deg);
    transform: rotate(-130deg);
  }

  50% {
    -webkit-transform: rotate(5deg);
    transform: rotate(5deg);
  }

  to {
    -webkit-transform: rotate(-130deg);
    transform: rotate(-130deg);
  }
}

@keyframes right-spin {
  from {
    -webkit-transform: rotate(-130deg);
    transform: rotate(-130deg);
  }

  50% {
    -webkit-transform: rotate(5deg);
    transform: rotate(5deg);
  }

  to {
    -webkit-transform: rotate(-130deg);
    transform: rotate(-130deg);
  }
}

/* End of Animations */

/* Spinner */
.spinner {
  position: fixed;
  z-index: 999;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preloader-wrapper {
  position: relative;
  display: inline-block;
  width: 3rem;
  height: 3rem;
  font-size: 0;
}

.preloader-wrapper.small {
  width: 2.25rem;
  height: 2.25rem;
}

.preloader-wrapper.big {
  width: 4rem;
  height: 4rem;
}

.preloader-wrapper.active {
  -webkit-animation: container-rotate 1568ms linear infinite;
  animation: container-rotate 1568ms linear infinite;
}

.preloader-wrapper.crazy {
  -webkit-animation-duration: 333ms;
  animation-duration: 333ms;
}

.preloader-wrapper .spinner-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.preloader-wrapper .spinner-layer .gap-patch {
  position: absolute;
  top: 0;
  left: 45%;
  width: 10%;
  height: 100%;
  overflow: hidden;
  border-color: inherit;
}

.preloader-wrapper .spinner-layer .gap-patch .circle {
  left: -450%;
  width: 1000%;
}

.preloader-wrapper .spinner-layer .circle-clipper {
  position: relative;
  display: inline-block;
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-color: inherit;
}

.preloader-wrapper .spinner-layer .circle-clipper .circle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 200%;
  height: 100%;
  border-color: inherit;
  border-style: solid;
  border-width: 0.1875rem;
  border-bottom-color: transparent !important;
  border-radius: 50%;
  -webkit-animation: none;
  animation: none;
}

.preloader-wrapper .spinner-layer .circle-clipper.left .circle {
  left: 0;
  border-right-color: transparent !important;
  -webkit-transform: rotate(129deg);
  transform: rotate(129deg);
}

.preloader-wrapper .spinner-layer .circle-clipper.right .circle {
  left: -100%;
  border-left-color: transparent !important;
  -webkit-transform: rotate(-129deg);
  transform: rotate(-129deg);
}

.preloader-wrapper .spinner-blue,
.preloader-wrapper .spinner-blue-only {
  border-color: var(--default-color);
}

.active .spinner-layer.spinner-blue {
  -webkit-animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1)
      infinite both,
    blue-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
  animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite
      both,
    blue-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
}

.active .spinner-layer.spinner-red {
  -webkit-animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1)
      infinite both,
    red-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
  animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite
      both,
    red-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
}

.active .spinner-layer.spinner-yellow {
  -webkit-animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1)
      infinite both,
    yellow-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
  animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite
      both,
    yellow-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
}

.active .spinner-layer.spinner-green {
  -webkit-animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1)
      infinite both,
    green-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
  animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite
      both,
    green-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
}

.active .spinner-layer.spinner-blue-only,
.active .spinner-layer.spinner-primary-color-only {
  opacity: 1;
  -webkit-animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1)
    infinite both;
  animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite
    both;
}

.active .circle-clipper.left .circle {
  -webkit-animation: left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
  animation: left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
}

.active .circle-clipper.right .circle {
  -webkit-animation: right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite
    both;
  animation: right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
}

#spinnerContainer.cooldown {
  -webkit-animation: container-rotate 1568ms linear infinite,
    fade-out 400ms cubic-bezier(0.4, 0, 0.2, 1);
  animation: container-rotate 1568ms linear infinite,
    fade-out 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* End of Spinner */

/* Counsellor card */
.counsellor-list {
  --_counsellor-card-size: 252px;
  display: grid;
  gap: 1.15rem;

  @media (width > 580px) {
    grid-template-columns: repeat(
      auto-fill,
      minmax(var(--_counsellor-card-size), 1fr)
        minmax(var(--_counsellor-card-size), 1fr)
    );
  }
}

.counsellor-card {
  padding: 1rem;
  position: relative;
  isolation: isolate;
  contain: paint;
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 0.75rem;
  border: 1px solid #d5d5d5;
  transition: all 180ms ease;

  &:hover {
    border: 1px solid var(--secondary-clr);
  }

  .btn {
    margin-top: 0.5rem;
    padding: 0.375rem;
    font-size: var(--fs-300);
  }

  .counsellor-profile-btn {
    margin-top: 0.625rem;
  }

  /* Ramdom background image if cards are in multiple of 2 */
  &:nth-child(16n + 1) .counsellor-card-bg-img,
  &:nth-child(16n + 8) .counsellor-card-bg-img,
  &:nth-child(16n + 11) .counsellor-card-bg-img,
  &:nth-child(16n + 14) .counsellor-card-bg-img {
    color: hsl(223, 79%, 87%);
    opacity: 0.4;
  }

  &:nth-child(16n + 2) .counsellor-card-bg-img,
  &:nth-child(16n + 5) .counsellor-card-bg-img,
  &:nth-child(16n + 12) .counsellor-card-bg-img,
  &:nth-child(16n + 15) .counsellor-card-bg-img {
    color: hsl(45, 88%, 90%);
    opacity: 0.7;
  }

  &:nth-child(16n + 3) .counsellor-card-bg-img,
  &:nth-child(16n + 6) .counsellor-card-bg-img,
  &:nth-child(16n + 9) .counsellor-card-bg-img,
  &:nth-child(16n + 16) .counsellor-card-bg-img {
    color: hsl(254, 81%, 96%);
    opacity: 0.5;
  }

  &:nth-child(16n + 4) .counsellor-card-bg-img,
  &:nth-child(16n + 7) .counsellor-card-bg-img,
  &:nth-child(16n + 10) .counsellor-card-bg-img,
  &:nth-child(16n + 13) .counsellor-card-bg-img {
    color: hsl(154, 93%, 88%);
    opacity: 0.6;
  }
}

.counsellor-card-bg-img {
  position: absolute;
  z-index: -1;
  bottom: 0;
  right: -53px;
  width: 175px;
  height: 331px;

  svg {
    width: 100%;
    height: 100%;
  }
}

.counsellor-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.counsellor-img {
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--white-clr);
  box-shadow: 0px 4px 4px hsla(0, 0%, 0%, 0.15);

  img {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: inherit;
  }
}

.counsellor-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.counsellor-name {
  --_line-clamp: 1;
  color: hsl(0, 0%, 8%);
}

.counsellor-country {
  display: flex;
  justify-content: start;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.25rem;
}

.counsellor-country-name {
  font-size: var(--fs-300);
  line-height: 16.8px;
  color: var(--tertiary-clr);
}

.counsellor-languages {
  font-size: var(--fs-200);
  line-height: 14.4px;
  color: var(--text-clr);
}

.counsellor-details {
  display: grid;
  gap: 0.25rem;
  padding-block: 1rem 0.5rem;
  border-top: 1px solid #e0e0e0;
}

.counsellor-university {
  font-size: var(--fs-300);
  font-weight: var(--fw-500);
  color: var(--black-clr);
  line-height: 16.8px;
}

.counsellor-expertise {
  font-size: var(--fs-200);
  line-height: 14.4px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 0.25rem;
  position: relative;
}

.tags-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: auto;
  min-height: 82px;
  max-height: 433px;
  will-change: max-height;
}

.tags-wrapper[data-tags-processed="true"] {
  visibility: visible;
}

.tag-more {
  background-color: transparent;
  border: none;
  color: var(--text-clr);
  color: var(--secondary-clr);
  font-weight: bold;
}

.tag-more:hover {
  text-decoration: underline;
}

.tag {
  padding: 0.25rem;
  font-size: var(--fs-200);
  line-height: 14.4px;
  border-radius: 0.25rem;
  border: 1px solid var(--border-clr);
  white-space: nowrap;
  color: var(--secondary-clr);
  background-color: var(--white-clr);
  transition: all 180ms ease;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* End ofCounsellor card */

/* Status */
.status {
  --approved-clr: #56a74d;
  --completed-clr: #56a74d;
  --unapplied-clr: #ff3b30;
  --pending-clr: #ff9500;
  --pending-clr-7: #ff950012;
  --unassigned-clr: #ff9500;
  --level-clr: var(--text-clr);

  display: inline-block;
  border-radius: 100px;
  padding-inline: 0.5rem;
  font-size: 0.625rem;
  font-weight: var(--fw-800);
  line-height: 20px;
  color: var(--white-clr);

  &.approved {
    background-color: var(--approved-clr);
  }

  &.completed {
    background-color: var(--completed-clr);
  }

  &.pending {
    background-color: var(--pending-clr);
  }

  &.pending-7 {
    color: var(--pending-clr);
    background-color: var(--pending-clr-7);
  }

  &.unapplied {
    background-color: var(--unapplied-clr);
  }

  &.unassigned {
    background-color: var(--unassigned-clr);
  }

  &.level {
    background-color: var(--level-clr);
  }
}

/* End of Status */

/* Autocomplete */

/* Search input styling */
/* #searchInput {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

#searchInput:focus {
  outline: none;
  border-color: var(--secondary-clr);
  box-shadow: 0 0 0 3px rgba(169, 4, 102, 0.1);
} */

/* Results list styling */
.autoComplete_wrapper {
  width: 100%;
}

form:has(.autoComplete_wrapper) {
  position: relative;
}

.enhanced-results-list {
  position: absolute;
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
  inset-inline: 0;
  width: 100%;
  top: 4rem;
  /* margin-top: 8px; */
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid #e2e8f0;
  padding: 8px 0;
}

/* Group header styling */
.group-header {
  padding: 8px 16px;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  margin-top: 4px;
  cursor: default;
}

.group-header:first-child {
  margin-top: 0;
}

.type-header {
  display: flex;
  align-items: center;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.type-icon {
  margin-right: 8px;
  display: flex;
  align-items: center;
  color: #64748b;
}

/* Result item styling */

.group-header {
  pointer-events: none;
}

.autocomplete-result {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  gap: 0.75rem;
}

.enhanced-result-item {
  padding: 0;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.enhanced-result-item:last-child {
  border-bottom: none;
}

.enhanced-result-item:hover,
.enhanced-result-item.selected {
  background-color: #f8fafc;

  .title {
    color: var(--secondary-clr);
  }

  .category {
    color: var(--tertiary-clr);
  }
}

.enhanced-result-item:hover .result-action,
.enhanced-result-item.selected .result-action {
  color: var(--secondary-clr);
}

.result-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-clr);
}

.result-content {
  flex: 1;
  min-width: 0;
}

.result-content .title {
  text-align: left;
  font-weight: 500;
  color: #1e293b;
  color: var(--tertiary-clr);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-content .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
}

.result-content .category {
  background-color: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.result-content .level {
  background-color: transparent;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.result-content .description {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

.result-action {
  color: #94a3b8;
  transition: color 0.2s ease;
}

/* Highlight styling */
.highlight {
  background-color: rgba(169, 4, 102, 0.1);
  color: var(--secondary-clr);
  font-weight: 500;
  border-radius: 2px;
  padding: 0 2px;
}

/* No results styling */
.no_result {
  padding: 24px 16px;
  text-align: center;
  color: #64748b;
}

.no-results-icon {
  margin-bottom: 12px;
  color: #94a3b8;
  margin-inline: auto;
  width: fit-content;
}

.no_result span {
  font-weight: 500;
  color: #1e293b;
  display: block;
  margin-bottom: 4px;
}

.no_result .suggestion {
  font-size: 13px;
  margin-top: 8px;
}

/* Loading results styling */
.loading_results {
  padding: 24px 16px;
  text-align: center;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(169, 4, 102, 0.1);
  border-top-color: var(--secondary-clr);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

/* Keyboard help styling */
.keyboard_help {
  padding: 8px 16px;
  border-top: 1px solid #e2e8f0;
  margin-top: 8px;
}

.keyboard-shortcuts {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
}

.keyboard-shortcuts span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Search container */
.search-container {
  position: relative;
}

/* Search button */
.search-button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.search-button:hover {
  color: var(--secondary-clr);
}

/* Adjust input padding when search button is present */
.search-container #searchInput {
  padding-right: 40px;
}

/* End of Autocomplete */

.text-danger {
  color: red;
}

/* Maps */
.info-window-content {
  padding: 0;
  max-width: 400px;
  font-family: var(--ff-inter);
}

.info-window-header {
  padding: 0 0.75rem 0.75rem;

  &:not(:has(.provider-name)) {
    border-bottom: 1px solid var(--border-clr);
  }
}

.info-window-header h2 {
  font-size: var(--fs-400);
  color: var(--tertiary-clr);
  font-weight: var(--fw-600);
  margin-bottom: 0.5rem;
}

.provider-location {
  display: flex;
  gap: 0.375rem;
  color: var(--text-clr);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;

  .bx {
    font-size: 1.025rem;
  }
}

.provider-name {
  display: block;
  font-size: 0.8rem;
  color: var(--secondary-clr);
  font-weight: var(--fw-500);
  margin-bottom: 0.375rem;
}

.provider-courses {
  font-size: 0.8rem;
  color: var(--secondary-clr);
  font-weight: var(--fw-500);
}

.courses-container {
  padding: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.custom-marker {
  position: relative;
  cursor: pointer;

  &:hover .marker-dot {
    scale: 1.2;
  }
}

.marker-content {
  display: grid;
  position: relative;
  grid-template-areas: "stack";
  place-content: center;
  place-items: center;

  > * {
    grid-area: stack;
  }
}

.marker-dot {
  width: 1.375rem;
  height: 1.375rem;
  background-color: var(--secondary-clr);
  border-radius: 50%;
  border: 0.25rem solid var(--white-clr);
  z-index: 2;
  transition: transform 180ms ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.marker-pulse {
  width: 2rem;
  height: 2rem;
  background-color: hsl(from var(--secondary-clr) h s l / 0.5);
  border-radius: 50%;
  z-index: 1;
  animation: pulse 2s infinite;
}

.marker-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  background-color: var(--tertiary-clr);
  color: var(--white-clr);
  font-size: 0.7rem;
  font-weight: 600;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  border: 2px solid var(--white-clr);
}

/* End of Maps */

.trusted-pills {
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;

  li {
    display: flex;
    align-items: center;
    flex: 1 0 0;
    height: 2.5rem;
    text-decoration: none;
    aspect-ratio: 1;
    background: radial-gradient(var(--secondary-clr), var(--primary-clr));
    color: var(--white-clr);
    border-radius: 0.5rem;

    padding: 0.5rem 1rem;

    &::before {
      content: "✅";
      display: inline-block;
      margin-right: 0.5ch;
    }
  }
}
