/** News Begin */

.swiper-news {
  overflow: visible;
}

.swiper-news .swiper-slide {
  width: auto;
}

.swiper-news img {
  width: 100%;
  max-width: none;
}

.swiper-news .ratio {
  border-radius: 0.65em;
  overflow: hidden;
  display: block;
  margin-bottom: 1em;
}

/** News End */

.projects {
  background: #fff linear-gradient(180deg,
      rgba(169, 209, 224, 0.63) 0%,
      rgba(245, 254, 255, 0.63) 36%,
      rgba(221, 246, 252, 0.63) 68%,
      rgba(62, 142, 184, 49%) 100%) 0% 0%;
  padding-bottom: 4em;
  border-radius: 2em;
}

.projects-title {
  color: var(--darkgray);
}

/** Project tag Begin */

.swiper-tag {
  margin-bottom: 2.5em;
}

.btn-tag {
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
  border-radius: 10px;
  font-size: 1em;
  min-width: 7.3em;
  width: auto;
  height: 2.1em;
  line-height: 2.1em;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.45);
  transition: 0.3s;
  padding: 0 0.8em;
}

.btn-tag:hover {
  background: linear-gradient(180deg,
      rgba(245, 245, 245, 1) 0%,
      rgba(215, 215, 215, 1) 100%);
}

.btn-tag.active {
  background: var(--softblue);
  color: #fff;
}

/** Project tag End */

/** Project brand Begin */

.project-brands {
  padding: 1em 0;
  position: relative;
  margin-bottom: 2em;
}

.project-brands::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  box-shadow: 5px 3px 20px #c8cfd0;
  background-color: rgba(255, 255, 255, 0.59);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.sp-brand {
  background: url(https://webbackend.mqdc.com/assets/aa834dbf-c86f-4946-a114-4e43467072ec) no-repeat 0 0/ 310% auto;
  display: block;
  text-indent: -9999999999em;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.brand-whizdom {
  background-position: 1.107% 0.576%;
}

.brand-aspentree {
  background-position: 50.185% 0.576%;
}

.brand-mulberry-grove {
  background-position: 99.262% 0.576%;
}

.brand-magnolias {
  background-position: 1.107% 50.144%;
}

.brand-signature-series {
  background-position: 50.185% 50.144%;
}

.brand-sixsenses {
  background-position: 99.262% 50.144%;
}

@media screen and (min-width: 768px) {
  .projects {
    border-radius: 3.4em;
  }

  .project-brands {
    padding-left: 1em;
    padding-right: 1em;
  }

  .project-brands::before {
    border-radius: 1.25em;
    left: 0.75em;
    right: 0.75em;
  }
}

@media screen and (min-width: 992px) {
  .project-brands {
    padding-left: 10%;
    padding-right: 10%;
  }

  .project-brands .sp-brand {
    max-width: 8em;
    margin: 0 auto;
  }
}

@media screen and (min-width: 1200px) {
  .swiper-brand {
    width: 80%;
    overflow: hidden;
  }
}

/** Project brand End */

/** Service Begin */

.service-title {
  margin-bottom: 0.5em;
}

.service-subtitle {
  font-size: 1.46em;
  font-weight: 500;
  color: #898888;
  text-align: center;
  margin-bottom: 2em;
}

.swiper-service {
  overflow: visible;
}

.service {
  border-radius: 1.75em;
  overflow: hidden;
  transition: 0.3s;
  container-type: inline-size;
  cursor: pointer;
}

.service p {
  height: auto;
  bottom: 0;
  top: auto;
  font-weight: 500;
  color: #fff;
  text-align: center;
  font-size: 7cqw;
}

.service i {
  width: max(1.45em, 9cqw);
  height: max(1.45em, 9cqw);
  line-height: max(1.45em, 9cqw);
  text-align: center;
  top: 1rem;
  right: 1rem;
  left: auto;
  border-radius: 100%;
  color: #fff;
  background-color: rgba(137, 136, 136, 0.58);
}

.popup-service .modal-content {
  border: 0;
  overflow: hidden;
}

.popup-service .modal-body {
  padding: 0;
}

.popup-service-content {
  display: none;
}

.popup-content {
  margin-top: -2em;
  background: linear-gradient(180deg, #ddddde 0%, #ffffff 8%, #ddddde 100%);
  position: relative;
  text-align: center;
  padding: 0 1em 7em;
  border-radius: 2em 2em 0 0;
}

.popup-title {
  font-weight: 900;
  font-size: 1.6em;
  margin-bottom: 0.4em;
  padding-top: 1.5em;
}

.popup-subtitle {
  color: #686d71;
  font-weight: 500;
  font-size: 1.1em;
  line-height: 1.5;
  margin-bottom: 1em;
}

.popup-inner {
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.popup-block {
  --bs-gutter-x: 0.8rem;
}

.popup-block .ratio {
  container-type: inline-size;
}

.popup-block p {
  font-size: 8cqw;
  color: #fff;
  height: auto;
  top: 62%;
}

.popup-action {
  text-align: center;
  position: absolute;
  bottom: 2em;
  width: 100%;
}

.popup-action .btn-default {
  padding-top: 0.9em;
  padding-bottom: 0.9em;
  box-shadow: 0px 6px 6px rgba(0, 0, 0, 0.3);
}

@media screen and (min-width: 768px) {
  .popup-title {
    font-size: 1.9em;
  }

  .popup-subtitle {
    font-size: 1.3em;
  }

  .service:hover {
    transform: translate(0, -1.3rem);
  }
}

@media screen and (min-width: 1200px) {
  .popup-block {
    max-width: 80%;
    margin: 0 auto;
  }
}

/** Service End */

/** Community Begin */

.sp-community {
  background: url(https://webbackend.mqdc.com/assets/42a558b2-c316-43e4-9d93-eae4d84d6251) no-repeat 0 0/ 320% auto;
  display: block;
  text-indent: -9999999999em;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.community-cloud11 {
  background-position: 1.107% 0.576%;
}

.community-forestias {
  background-position: 50.185% 0.576%;
}

.community-happitat {
  background-position: 99.262% 0.576%;
}

.sp-white {
  filter: brightness(0) invert(1);
}

.swiper-comm-thump {
  margin-bottom: 1.5em;
}

.swiper-comm-thump .swiper-slide {
  width: 9.4em;
  border-bottom: 4px solid transparent;
  transition: 0.3s;
  cursor: pointer;
}

.swiper-comm-thump .swiper-slide-thumb-active {
  border-bottom-color: var(--softblue);
}

.community {
  position: relative;
  display: block;
}

.community-title {
  position: absolute;
  font-weight: 500;
  color: #fafafa;
  text-align: center;
  bottom: 0.5rem;
  left: 3rem;
  right: 3rem;
  font-size: 0.75em;
  margin-bottom: 1em;
}

.community-caption {
  background-color: var(--softblue);
  color: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.community-caption span {
  padding: 1.5rem 1rem;
}

@media screen and (min-width: 768px) {
  .community {
    container-type: inline-size;
  }

  .community-title {
    font-size: 2cqw;
  }

  .swiper-comm-thump .swiper-slide:hover {
    border-bottom-color: #9499a3;
  }
}

/** Community End */

/** Search Filter */
.filter {
  background: #fff linear-gradient(180deg,
      rgba(169, 209, 224, 0.63) 0%,
      rgba(245, 254, 255, 0.63) 36%,
      rgb(255, 255, 255) 100%) 0% 0%;
  padding-bottom: 4em;
}

.filter h2 {
  font-size: 1.1em;
  color: #fff;
  padding-top: 1em;
}

.filter .filter-wrapper {
  background: linear-gradient(82deg, #3ea8b8 0%, #3ea8b8 47%, #004a97 100%) 0% 0%;
  border-radius: 2em;
  padding: 1em;
}

.filter .search-form.active .search-suggest {
  opacity: 1;
  max-height: 22em;
}

.filter .search-suggest {
  background: rgba(245, 245, 245, 0.95);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  border-radius: 0 0 1.25em 1.25em;
  position: absolute;
  z-index: 1;
  opacity: 0;
  left: 0;
  right: 0;
  top: 2em;
  transition: 0.5s;
  max-height: 0;
  overflow: hidden;
}

.filter .search-suggest .scroll-y {
  padding: 3.5em 1.5em 1em;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 22em;
}

.filter .search-suggest li {
  margin-bottom: 0.5em;
}

.filter .search-input {
  width: 100%;
  border-radius: 3em;
  padding: 1em 2.8em 1em 1em;
  border: 0;
  font-size: 1em;
  outline: none;
  position: relative;
  z-index: 2;
  transition: 0.3s;
}

.filter .search-form.active .search-input {
  box-shadow: 0px 3px 15px #989a9b;
}

.filter .search-input::placeholder {
  color: rgba(137, 136, 136, 0.63);
}

.filter .icon-search {
  position: absolute;
  top: 0;
  right: 1em;
  bottom: 0;
  background: transparent;
  z-index: 2;
  line-height: 4em;
}

.filter .fa-magnifying-glass {
  font-size: 1.7em;
  color: rgba(137, 136, 136, 0.63);
}

.filter .btn-search {
  min-width: 15em;
  color: #fafafa;
  border-radius: 1.5em;
  display: inline-block;
  text-align: center;
  margin: 0 auto;
  padding: 0.78em 0.2em;
  font-weight: 400;
  transition: 0.3s;
  background: linear-gradient(180deg, #3ea8b8 0%, #1d72a5 100%);
}

.filter .btn-search:active,
.filter .btn-search:hover {
  color: #fafafa;
}

.filter .dropdown-toggle {
  background-color: transparent;
  border-bottom: 1px solid #fff;
  display: block;
  color: #fff;
  width: 100%;
  text-align: left;
  padding: 0 3em 0.5em 0;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.filter .dropdown-toggle::after {
  font-family: "Font Awesome 6 Free";
  content: "\f078";
  line-height: 1;
  font-weight: 900;
  border: 0;
  position: absolute;
  right: 0;
  border-left: 1px solid #fff;
  padding: 0.5em 0.8em;
  top: 0.5em;
  bottom: 0;
  font-size: 1.1em;
}

.filter .dropdown-toggle::before,
.filter .dropdown-menu h3::before {
  content: "";
  width: 3em;
  height: 3em;
  margin-right: 0.5em;
  display: inline-block;
}

.filter .group-type::before {
  background: url(https://webbackend.mqdc.com/assets/190ea5d3-1be7-4a1b-8733-bda589df1024) no-repeat center / contain;
}

.filter .group-location::before {
  background: url(https://webbackend.mqdc.com/assets/3fc7b872-0a55-4510-b267-187a7ff6adc0) no-repeat center / contain;
}

.filter .group-price::before {
  background: url(https://webbackend.mqdc.com/assets/c9f99073-009f-4825-b8f8-84d356d5b7f6) no-repeat center / contain;
}

.filter .group-status::before {
  background: url(https://webbackend.mqdc.com/assets/1d6fe655-87bc-43f4-bfeb-c98712c389e5) no-repeat center / contain;
}

.filter .dropdown-menu {
  border-radius: 0;
  padding: 0;
  background: linear-gradient(24deg, #3ea8b8 0%, #3ea8b8 47%, #004a97 100%);
}

.filter .dropdown-menu h3 {
  font-size: 1em;
  color: #fff;
  font-weight: 400;
  display: flex;
  align-items: center;
}

.filter .modal-dialog {
  margin: 0;
  padding: 1em;
  max-width: none;
}

.filter .modal-content {
  background-color: transparent;
  border-radius: 0;
  border: 0;
}

.filter .modal-header {
  color: #fff;
  padding-left: 0;
  padding-right: 3.5em;
  font-size: 1.1em;
  font-weight: 500;
  border: 0;
}

.filter .modal-body {
  padding: 0;
}

.filter .dropdown-menu ul {
  background-color: #f5f5f5;
  border-radius: 1.1em;
  padding: 1.2em;
}

.filter .dropdown-menu li {
  display: flex;
  align-items: baseline;
}

.filter .btn-confirm {
  color: #fff;
  border-radius: 3em;
  padding: 1em;
  background: linear-gradient(180deg, #18acc3 0%, #004a97 100%);
}

.filter .selected-filter {
  border-radius: 0 0 2em 2em;
  background-color: #ddddde;
  position: relative;
  margin-bottom: 2em;
  overflow: hidden;
  max-height: 0;
}

.filter .selected-filter .tag-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1em;
}

.filter .selected-filter.active {
  padding: 1.5em 1em;
  max-height: none;
  overflow: visible;
}

.filter .selected-filter.active::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  height: 2em;
  top: -2em;
  background-color: #ddddde;
}

.filter .filter-tag {
  background-color: #fafafa;
  padding: 0.8em;
  border-radius: 2em;
  display: inline-flex;
  justify-content: space-between;
}

.filter .filter-tag .fa-xmark {
  color: var(--softblue);
  cursor: pointer;
  width: 1.5em;
  height: 1.5em;
  line-height: 1.5em;
  display: block;
  text-align: center;
  background: transparent;
}

@media screen and (min-width: 768px) {
  .filter .selected-filter.active {
    padding-top: 2em;
    padding-bottom: 2em;
  }

  .filter .selected-filter .tag-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (min-width: 992px) {
  .filter h2 {
    font-size: 1.7em;
  }

  .filter .dropdown-toggle {
    padding-right: 2.2em;
  }

  .filter .dropdown-toggle::before {
    margin-right: 0;
  }

  .filter .dropdown-toggle::after {
    padding-left: 0.5em;
    padding-right: 0.5em;
  }

  .filter .dropdown-menu.show {
    display: block !important;
  }

  .filter .dropdown-menu {
    right: 0 !important;
    background: #f5f5f5;
    border-radius: 0 0 1em 1em;
    box-shadow: 0px 6px 6px rgba(0, 0, 0, 0.16);
    margin-top: -2px !important;
    border: 0;
    z-index: 2;
    height: auto;
  }

  .filter .dropdown-menu .modal-header,
  .filter .btn-confirm {
    display: none;
  }

  .filter .dropdown-menu h3::before {
    content: none;
  }

  .filter .dropdown-menu h3 {
    font-size: 0.9em;
    color: var(--softblue);
  }

  .filter .dropdown-menu ul {
    font-size: 0.9em;
    color: var(--darkgray);
    padding: 0;
  }
}

@media screen and (min-width: 1200px) {
  .filter .filter-wrapper {
    padding-left: 5%;
    padding-right: 5%;
    border-radius: 3em;
  }

  .filter .dropdown-toggle {
    padding-right: 3em;
  }

  .filter .dropdown-toggle::before {
    margin-right: 0.5em;
  }

  .filter .dropdown-toggle::after {
    padding-left: 0.8em;
    padding-right: 0.8em;
  }

  .filter .selected-filter {
    border-radius: 0 0 3em 3em;
  }

  .filter .selected-filter .tag-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .filter .selected-filter.active::before {
    height: 3em;
    top: -3em;
  }
}

@media screen and (min-width: 1400px) {
  .filter .filter-wrapper {
    padding-left: 10%;
    padding-right: 10%;
  }

  .filter .selected-filter.active {
    padding-left: 8%;
    padding-right: 8%;
  }
}

/** Filter End */
