/* -----------------------------
   Services Bar (Only)
----------------------------- */

/* bootstrap col padding เฉพาะโซน serviceWeb */
.packageFront .col-md-3,
.packageFront .col-xs-12,
.packageFront .col-lg-3,
.packageFront.col-sm-6 {
  position: relative;
  min-height: 1px;
}

.serviceWeb .col-md-3,
.serviceWeb .col-xs-12,
.serviceWeb .col-lg-3,
.serviceWeb.col-sm-6 {
  position: relative;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
}

#services-bar {
  background-image: url(/asset/images/package/services-bar-bg.jpg);
  background-position: center;
}

@media only screen and (max-width: 414px) {
  #services-bar {
    background-image: url(/asset/images/package/services-bar-bg.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }
}

@media screen and (max-width: 1199px) {
  #services-bar {
    background-image: url(/asset/images/package/services-bar-bg.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }
}

.bp-20 {
  margin-bottom: 20px;
}

.tpp-10 {
  margin-top: 10px;
}

.tpp-20 {
  margin-top: 20px;
}

.tpp-30 {
  margin-top: 30px;
}

.tpp-40 {
  margin-top: 40px;
}

.tpp-50 {
  margin-top: 50px;
}

.tbp-50 {
  margin-bottom: 50px;
}

/* container ของ services bar */
#services-bar .container {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 1300px;
}

#services-bar a {
  text-decoration: none;
}

/* box */
.services-bar-box {
  border-radius: 6px;
  padding: 6px;
  box-shadow: 0 6px 20px rgb(0 0 0 / 20%);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.services-bar-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* heading */
.services-bar-heading {
  text-align: center;
  display: inline;
  border-radius: 10px;
  align-items: center;
  gap: 15px;
}

.services-bar-title {
  color: #fff;
  font-weight: 500;
  font-size: 2.6em;
  text-align: center;
  text-transform: uppercase;
}

.services-bar-heading img {
  width: auto;
  height: auto;
}

.services-bar-heading .img1 {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

.services-bar-heading .img2 {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 40%;
}

.services-bar-heading h2 {
  font-size: 1.1em;
  font-weight: 500;
  color: #fff;
  margin-top: 20px;
  margin-bottom: 10px;
}

#services-bar .container {
  max-width: unset !important;
}

@media screen and (max-width: 375px) {
  .tpp-10,
  .tpp-20,
  .tpp-30,
  .tpp-40,
  .tpp-50 {
    margin-top: 10px;
  }

  .tbp-50 {
    margin-top: 10px;
  }

  /* ตามของเดิม (แม้ชื่อจะเป็น bottom) */
  .bpp-20 {
    margin-bottom: 1px;
  }
}

@media only screen and (max-width: 414px) {
  .tpp-10,
  .tpp-20,
  .tpp-30,
  .tpp-40 {
    margin-top: 10px;
  }

  .tpp-50 {
    margin-top: 20px !important;
  }

  .tbp-50 {
    margin-top: 10px;
  }

  .bpp-20 {
    margin-bottom: 1px;
  }
}

@media (min-width: 376px) and (max-width: 450px) {
  .services-bar-box {
    max-width: 300px;
  }
}

@media screen and (max-width: 1198px) {
  .services-bar-box img {
    display: inline-block !important;
    width: 40% !important;
  }

  .services-bar-box h2 {
    display: block !important;
  }
}

@media screen and (max-width: 768px) {
  .tpp-40 {
    margin-top: 10px;
  }

  .tpp-50 {
    margin-top: 95px !important;
  }

  .services-bar-title {
    font-size: 4em;
  }

  .services-bar-heading h2 {
    font-size: 2em;
  }

  .services-bar-box {
    max-width: 500px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .services-bar-box img {
    display: block !important;
    width: 50% !important;
  }

  .services-bar-box h2 {
    display: block !important;
  }
}

@media (min-width: 820px) and (max-width: 912px) {
  .tpp-40 {
    margin-top: 10px;
  }

  .tpp-50 {
    margin-top: 229px;
  }
}

@media (min-width: 992px) {
  #services-bar .col-md-12 {
    width: 97%;
  }
}

@media (max-width: 1200px) {
  #services-bar .container {
    width: auto !important;
  }

  .tpp-50 {
    margin-top: 90px;
  }
}

@media screen and (max-width: 1024px) {
  #services-bar .container {
    width: 100% !important;
  }

  .tpp-50 {
    margin-top: 30px;
  }

  .services-bar-heading {
    text-align: center;
    border-radius: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .services-bar-heading h2 {
    font-size: 1.6em;
    font-weight: 500;
    color: #fff /* color: #50595a; */;
  }

  #services-bar .container {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100% !important;
  }

  .services-bar-box img {
    display: inline-block !important;
  }
}

@media (min-width: 1024px) {
  .tpp-50 {
    margin-top: 90px;
  }

  .services-bar-heading {
    /* display: flex; */
    text-align: center;
    display: inline;
    /* background-color: #eff4f8; */
    border-radius: 10px;
    align-items: center;
    gap: 15px;
    /* margin-bottom: 20px; */
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
}

@media (min-width: 1000px) and (max-width: 1112px) {
  #services-bar .col-md-6 {
    width: 20% !important;
  }
}

@media only screen and (max-width: 1440px) {
  #services-bar .container {
    width: 1200px;
  }
}
