/*
    Warning: This component is mobile first. We're starting with base mobile
    styles and going upwards.
*/

#other-services {
  padding: 92px 24px 64px;

  --local-font-family: "Montserrat", sans-serif;
}

.os-carousel-wrapper h2 {
  color: #303030;
  text-align: center;
  font-size: 36px;
  font-weight: 500;
  line-height: normal;

  padding: 0 0 0 24px;

  font-family: var(--local-font-family);
}

.carousel-track {
  display: flex;
  overflow-x: scroll; /*Works, but must be swipe, not scroll > js needed*/
  gap: 64px;
  padding: 24px 4px;
}

.carousel-card {
  min-width: 100%;

  display: flex;
  padding: 24px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  align-self: stretch;

  border-radius: 16px;
  background: #fff;

  box-shadow: -1px 4px 11.5px 3px rgba(28, 47, 104, 0.15);
}

.os-img-wrapper {
  overflow: hidden;
  position: relative;
}

.os-img-cover {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  border-radius: 16px;
  background: linear-gradient(
    0deg,
    rgba(24, 42, 122, 0.4) 0%,
    rgba(24, 42, 122, 0.4) 100%
  );
}

.os-img-wrapper img {
  object-fit: cover;
  height: auto;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 16px;
}

.os-content-decorator-wrapper {
  display: flex;
  margin: 24px 0;
}

.os-content-decorator {
  margin: 0;
  color: #2290e9;
  font-family: var(--local-font-family);
  font-size: 18px;
  font-weight: 600;
  line-height: normal;
}

.os-content-decorator {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 10px 16px;
  border-radius: 25px;
  background: #eef4fd;
}

.os-content-wrapper h4 {
  color: #303030;
  font-family: var(--local-font-family);
  font-size: 28px;
  font-weight: 500;
  line-height: normal;

  margin: 0 0 12px;
}

.os-title-and-text-wrapper p {
  margin: 0 0 16px;
  max-width: 35ch;

  color: #6a6f76;
  font-family: var(--local-font-family);
  font-weight: 400;
  line-height: 140%;
}

.oscw-description-wrapper {
  display: flex;
  flex-direction: column;
}

.oscw-description-wrapper {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.oswc-description-wrapper li {
  text-decoration: none;
  list-style-type: none;
}

.oscw-price-container {
  display: flex;
  align-items: center;
  gap: 4px;

  color: #303030;
  font-family: var(--local-font-family);
  font-size: 36px;
  font-weight: 500;
}

.oscw-price-container .aed-wrapper .aed {
  max-width: 34px;
}

.oscw-brn-container {
  display: flex;
  justify-content: start;
}

.book-plan-button-alternative {
  appearance: none;
  border: none;

  padding: 19px 59px;
  border-radius: 32px;
  background-color: #2290e9;

  color: white;
  font-family: var(--local-font-family);
  font-weight: 600;

  transition: background 200ms ease-in;
}

.book-plan-button-alternative:hover {
  background: #1a7ad4;
}

.os-controls {
  display: flex;
  justify-content: center;
  padding-top: 24px;
  gap: 16px;
}

.os-controls button {
  appearance: none;
  background-color: transparent;
  border: none;
  opacity: 100%;

  transition: all ease-in 200ms;
}

.os-controls button {
  cursor: not-allowed;
}

.os-controls button.can-navigate {
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.15));
  cursor: pointer;
  transition: all 150ms ease-in;
}

.os-controls button.can-navigate:hover {
  opacity: 80%;
  transform: scale(0.95);
}

.os-controls button.can-navigate:active {
  transform: scale(0.7);
}

/*Auxillary*/
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none; /* IE/Edge */
  scrollbar-width: none; /* Firefox */
}

@media screen and (min-width: 767px) {
  #other-services {
    padding: 0px 64px 64px;
  }

  .os-carousel-wrapper h2 {
    font-size: 48px;
    font-weight: 600;

    margin-bottom: 24px;
  }

  .carousel-card {
    padding: 32px;
  }

  .os-img-wrapper {
    min-width: 100%;
  }

  .os-img-wrapper img {
    max-height: 420px;
    min-width: 100%;
    aspect-ratio: auto;
  }

  .os-content-decorator-wrapper {
    margin: 40px 0 12px;
  }

  .os-content-wrapper h4 {
    font-size: 36px;
  }

  .os-title-and-text-wrapper p {
    max-width: none;
    margin: 0 0 12px;
  }
}

@media screen and (min-width: 1024px) {
  #other-serivces {
    padding: 64px 80px;
    position: relative;
  }

  .os-carousel-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .carousel-track {
    padding: 24px 32px 4px;
    max-width: 1200px;
  }

  .carousel-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .os-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 100%;
  }

  .os-img-wrapper img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    aspect-ratio: unset;
  }

  .os-content-decorator-wrapper {
    margin: 0 0 12px;
  }

  .os-controls {
    display: block;
    position: absolute;
    top: 50%;
    max-width: 1200px;
    left: 0;
    right: 0;
    margin: 0 auto;
  }

  #os-go-left,
  #os-go-right {
    position: absolute;
  }

  #os-go-left {
    left: 32px;
  }

  #os-go-right {
    right: 32px;
  }
}

@media screen and (min-width: 1300px) {
  #os-go-left {
    left: -32px;
  }

  #os-go-right {
    right: -32px;
  }
}
