/* Mobile & Table */
@media (max-width: 1023px) {}

/* Table */
@media (min-width: 740px) and (max-width: 1023px) {}

/* Table Lanscape */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) {}

/* Mobile */
@media (min-width: 740px) {

  .arrow:hover+.service_inhome_wrap,
  .service_inhome_wrap:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .service-popup-wrap:hover .arrow {
    background: #164e79;
  }

  .service-popup-wrap:hover .arrow i {
    transform: rotate(90deg);
  }

}

@media (max-width: 739px) {

  .service_inhome_item {
    width: 100%;
  }

  .service_inhome_wrap {
    right: -20px;
    left: -20px;
    top: 20px;
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: .25s ease;
  }

  /* mở popup */
  .service-popup-wrap.active .service_inhome_wrap {
    opacity: 1 !important;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .service-popup-wrap.active .arrow {
    background: #164e79;
  }

  .service-popup-wrap.active .arrow i {
    transform: rotate(90deg);
  }

  .service-popup-wrap.active .service_inhome_wrap {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }


  #searchForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  #searchForm .checkbox-item {
    width: 100%;
  }

  #searchForm label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
  }

  #searchForm select {
    width: 100%;
    height: 44px;
    padding: 0 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px;
    font-size: 15px !important;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Icon mũi tên */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px !important;
  }

  #searchForm select:focus {
    outline: none;
    border-color: #268ecd !important;
    box-shadow: 0 0 0 3px rgba(38, 142, 205, .15);
  }

  .homecat-title {
    font-size: 24px;
  }

  .pagecat-title {
    font-size: 22px
  }

  .service-content {
    padding: 20px;
  }

  iframe {
    width: 100% !important;
    height: 300px;
  }

  .stat-box {
    border: none;
  }


  .homeinfo-item {
    display: block;
  }

  .homeinfo-item-img {
    width: 100%;
    border-bottom: 1px solid #FFF;

  }



  .homeinfo-intro {
    text-align: justify;
  }

  .homeinfo-item-name {
    float: left;
    line-height: 60px;
  }

  .homeinfo-item-img::before {
    opacity: 0;
  }

  .homeinfo-item-img img {
    max-width: 60px;
    float: left;
    height: 60px;
  }

  .item-top,
  .item-service {
    padding: 10px;
  }

  .homeservice-item-top {

    background-size: 80% 90%;
    background-position: right center;
    background-repeat: no-repeat;
  }

  .homeservice-name {
    font-size: 20px;
  }

  .home-service-item img {
    min-height: 200px;
    object-fit: cover;
  }


  .homenews-item img {
    min-height: 150px;
    object-fit: cover;
  }

  .footer-end .footer-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #bdbcbc;
  }

  .f-title {
    border: none;
  }

  .slidehome-content h2 {
    font-size: 36px;
    max-width: 350px;
    letter-spacing: 1px;
  }

  .slidehome-content {
    transform: translate(-50%, 30%);
  }

  .btn-muangay {
    padding: 10px 30px;
  }

  .cart {
    float: right;
  }

  .search-mb {
    float: right;
    margin-right: 5px;
    font-size: 20px;

  }

  .cartnumber {
    top: -5px;
  }

  .frm-search-mb {
    position: absolute;
    top: 40px;
    display: none;
    right: 0px;

  }

  #searchformtab input {
    background-color: #FFF;
  }

  .closeX {
    position: absolute;
    top: -10px;
    right: 0px;
  }

  .select_wrap {
    max-width: 100%;
  }

  .default_option i {
    color: #0039BA;
  }



  .highlight-item {
    min-height: auto;
    padding: 25px;
  }

  .highlight-name {
    font-size: 20px;
  }

  .highlightsSwiper .swiper-slide-active .highlight-item {
    transform: none;
  }

  .highlightsSwiper .swiper-slide-prev .highlight-item,
  .highlightsSwiper .swiper-slide-next .highlight-item {
    transform: none;
  }
}

/* Ipad pro */


@media only screen and (min-device-width: 1024px) and (max-device-height: 1366px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait) {}


/* PC LARGE */

@media (min-width: 1919px) {
  .grid {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
  }

  .service_inhome_item {
    width: calc(1400px / 2);
  }
}

@media (max-width: 1200px) {
  .galleries {
    -moz-column-count: 4;
    -webkit-column-count: 4;
    column-count: 4;
  }
}

@media (max-width: 1000px) {
  .galleries {
    -moz-column-count: 3;
    -webkit-column-count: 3;
    column-count: 3;
  }
}

@media (max-width: 800px) {
  .galleries {
    -moz-column-count: 2;
    -webkit-column-count: 2;
    column-count: 2;
  }
}

@media (max-width: 400px) {
  .galleries {
    -moz-column-count: 1;
    -webkit-column-count: 1;
    column-count: 1;
  }
}
