/*
 Responsive for max-width 420px
 --------------------
*/
@media (max-width: 420px) {
  .card-project {
    min-height: 300px;
  }
}

/*
 Responsive for max-widht 480px
 --------------------
*/
@media (max-width: 480px) {
  .social-footer {
    text-align: start;
  }

  .login-flat-design {
    display: none;
  }

  .header-search.hsproject {
    flex-flow: row wrap;
  }

  .header-search .search-project {
    width: 100% !important;
  }

  .header-search .header-search-button {
    width: 100% !important;
    padding-left: 0;
    margin-top: 20px;
  }
}

/*
 Responsive for max-width 640px
 --------------------
*/
@media screen and (max-width: 640px) {
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter {
    float: none;
    text-align: center;
  }

  .dataTables_wrapper .dataTables_filter {
    margin-top: 0.5em;
  }

  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter {
    text-align: left !important;
  }
}

/*
 Responsive for max-width 768px
 --------------------
*/
@media (max-width: 768px) {
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    float: none;
    text-align: center;
  }

  .dataTables_wrapper .dataTables_paginate {
    margin-top: 0.5em;
  }

  .img-search-agent {
    display: none;
  }
  .login-flat-design {
    display: none;
  }

  .card-project {
    min-height: 350px;
  }

  #sign-btn {
    padding: 10px;
  }

  #help-form > #a {
    order: 2;
  }

  #help-form > #b {
    order: 1;
  }

  .urut-1 {
    order: 1;
  }

  .urut-2 {
    order: 2;
  }

  #visi-text {
    order: 2;
  }

  #visi-image {
    order: 1;
  }

  #facilities-property-mobile {
    display: block;
  }

  .facilities-property {
    display: none;
  }
  .header-subtitle {
    max-width: 100%;
  }
  .social-footer {
    text-align: start;
  }

  #pills-tab .nav-item {
    width: 50px;
  }

  #nav-user {
    padding: 1rem;
  }
  .col-agent {
    width: 17%;
  }

  .title-primary {
    text-align: right;
  }
  .logo-galaxy img {
    width: 100%;
  }

  .header-search .search-project {
    width: 100%;
  }

  .header-search.hsproject .header-search-button .dropdown {
    width: 100%;
  }

  .header-search.hsproject .search-project {
    width: 60%;
  }

  .header-search.hsproject .header-search-button {
    width: 40%;
  }

  .img-search-agent {
    display: none;
  }

  #project-carousel .owl-next,
  #property-carousel .owl-next,
  #propertynew-carousel .owl-next {
    right: 0px;
  }

  #project-carousel .owl-prev,
  #property-carousel .owl-prev,
  #propertynew-carousel .owl-prev {
    left: 0px;
  }
}

/*
 Responsive for min-width 769px
 --------------------
*/
@media screen and (min-width: 769px) {
  .green::before {
    background-image: linear-gradient(
      -80deg,
      rgba(121, 221, 9, 0.1),
      transparent 50%
    );
  }

  .green:nth-child(2n)::before {
    background-image: linear-gradient(
      80deg,
      rgba(121, 221, 9, 0.1),
      transparent 50%
    );
  }

  .blue::before {
    background-image: linear-gradient(
      -80deg,
      rgba(0, 118, 189, 0.1),
      transparent 50%
    );
  }

  .blue:nth-child(2n)::before {
    background-image: linear-gradient(
      80deg,
      rgba(0, 118, 189, 0.1),
      transparent 50%
    );
  }

  .red::before {
    background-image: linear-gradient(
      -80deg,
      rgba(189, 21, 11, 0.1),
      transparent 50%
    );
  }

  .red:nth-child(2n)::before {
    background-image: linear-gradient(
      80deg,
      rgba(189, 21, 11, 0.1),
      transparent 50%
    );
  }

  .yellow::before {
    background-image: linear-gradient(
      -80deg,
      rgba(189, 187, 73, 0.1),
      transparent 50%
    );
  }

  .yellow:nth-child(2n)::before {
    background-image: linear-gradient(
      80deg,
      rgba(189, 187, 73, 0.1),
      transparent 50%
    );
  }
  .postcard {
    flex-wrap: inherit;
  }

  /* .banner-news{
      height: 50vh;
      border-radius: 0 0 5vh 5vh;
    } */
  .postcard-project {
    height: 200px;
  }

  .postcard .postcard__title {
    font-size: 1.5rem;
  }

  .postcard .postcard__preview-txt {
    font-size: 1rem;
  }

  .postcard .postcard__tagbox {
    justify-content: start;
  }

  .postcard .postcard__img {
    max-width: 400px;
    max-height: 100%;
    transition: transform 0.3s ease;
  }

  .postcard-project .postcard__img {
    max-width: 100% !important;
    transition: max-width 1s;
  }

  .postcard-project:hover .postcard__img {
    max-width: 45% !important;
    max-height: 100%;
  }

  /* edit postcard project */
  .postcard-project .postcard__preview-txt {
    display: none;
  }

  .postcard-project:hover .postcard__preview-txt {
    display: block;
  }

  .postcard .postcard__text {
    padding: 2rem;
    width: 100%;
  }

  /* edit background postcard */
  .postcard .media.postcard__text:before {
    content: "";
    position: absolute;
    display: block;
    background: #bd2529;
    /* background: #18151f; */
    top: -20%;
    height: 130%;
    width: 55px;
  }

  .postcard:hover .postcard__img {
    transform: scale(1.1);
  }

  .postcard:nth-child(2n + 1) {
    flex-direction: row;
  }

  .postcard:nth-child(2n + 0) {
    flex-direction: row-reverse;
  }

  .postcard:nth-child(2n + 1) .postcard__text::before {
    left: -12px !important;
    transform: rotate(4deg);
  }

  .postcard:nth-child(2n + 0) .postcard__text::before {
    right: -12px !important;
    transform: rotate(-4deg);
  }
}

/*
 Responsive for min-width 992px
 --------------------
*/
@media screen and (min-width: 992px) {
  .filter-project::after {
    margin-left: 4rem !important;
  }
}

/*
 Responsive for max-width 992px
 --------------------
*/
@media (max-width: 992px) {
  .header-search.hsproject .header-search-button .dropdown {
    width: 100%;
  }

  .header-search.hsproperties {
    flex-flow: row wrap;
  }

  .header-search.hsproperties .search-project {
    width: 100%;
  }

  .header-search.hsproperties .header-search-button {
    width: 100%;
    padding-left: 0;
    margin-top: 20px;
  }

  .img-search-agent {
    display: none;
  }
}

/*
 Responsive for min-width 1024px
 --------------------
*/
@media screen and (min-width: 1024px) {
  .postcard .postcard__text {
    padding: 2rem 3.5rem;
  }

  .postcard .postcard__text:before {
    content: "";
    position: absolute;
    display: block;
    background: transparent;
    /* background: #BD2529; */
    /* background: #18151f; */
    top: -20%;
    height: 130%;
    width: 55px;
  }
}
