/* NTS Custom Title */
/* .sec-version is for layout2, in desktop align right and hide en, and in mobile align center and show en */
.nts-custom-title-container {
  margin-bottom: 20px;
}

.sec-version.nts-custom-title-container {
  margin-bottom: 20px;
}

@media (max-width: 760px) {
  .sec-version.nts-custom-title-container {
    margin-bottom: 0px;
  }
}

.nts-item-title-wrap {
  text-align: center;
  position: relative;
}

.sec-version .nts-item-title-wrap {
  text-align: right;
  position: relative;
}

.he-title {
  position: absolute;
  top: 55%;
  left: 0;
  right: 0;
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
}

.layout2 .he-title {
  font-size: 1.2rem !important;
  color: #000 !important;
}

.sec-version .he-title {
  position: relative;
}

@media (max-width: 760px) {
  .sec-version .he-title {
    position: absolute;
    text-align: center;
    font-size: 1.2rem;
  }
}

.en-title {
  font-family: enFont;
  font-weight: 550;
  font-size: 5rem;
  color: var(--primary-color);
  font-display: swap;
}

.sec-version .en-title {
  display: none;
}

@media (max-width: 760px) {
  .en-title {
    font-size: 3.5rem;
  }
  .sec-version .en-title {
    display: block;
    text-align: center;
  }
}

.nts-sub-title {
  text-align: center;
  font-size: 0.9rem;
  padding: 0 30px;
  width: 450px;
  margin: auto;
}

@media (max-width: 450px) {
  .nts-sub-title {
    text-align: center;
    font-size: 0.9rem;
    padding: 0 40px;
    width: 100%;
    margin: auto;
  }
}

/* NTS gallery */

.nts-gallery-container .slick-track {
  height: 350px;
}

@media (min-width: 1800px) {
  .nts-gallery-container .slick-track {
    height: 450px;
  }
}

.nts-gallery-container img {
  height: 100%;
  object-fit: cover;
}

.slick-dots {
  padding: 0;
  display: flex;
  justify-content: center;
  text-align: center;
  list-style: none;
  margin: 70px 0 0 0;
  overflow: hidden;
}

.slick-dots li {
  padding: unset;
}

.slick-dots button {
  padding: 0;
  box-sizing: border-box;
  border-radius: 100%;
  border: 1px solid var(--primary-color);
  width: 10px;
  height: 10px;
  margin: 0 4px;
  text-indent: -9999px; /* sends the text off-screen */
}

.slick-active button {
  background: var(--primary-color);
}

[type="button"]:focus,
[type="button"]:hover,
[type="submit"]:focus,
[type="submit"]:hover,
button:focus,
button:hover {
  color: #fff;
  background-color: var(--primary-color);
  text-decoration: none;
  outline: transparent;
}

/* NTS testimonials */
#nts-testimonial-list {
  height: auto;
}

/* Only in inner page */
.page-id-87 .nts-testimonial {
  height: 100%;
  margin-bottom: 300px;
}

.page-id-87 .nts-testimonial-container {
  height: auto;
}

.page-id-87 .nts-testimonial-container .primary-btn {
  display: none;
}

.page-id-87 .tetimonial-info .quote-right {
  top: -30px;
  right: -30px;
}

@media (max-width: 760px) {
  .page-id-87 .tetimonial-info {
    bottom: -250px;
  }
}
/*END  Only in inner page */

#nts-testimonial-list .slick-list {
  height: 600px;
}

@media (min-width: 1800px) {
  #nts-testimonial-list .slick-list {
    height: 600px;
  }
}

@media (max-width: 760px) {
  #nts-testimonial-list .slick-list {
    height: 500px;
  }
}

.nts-testimonial-container {
  position: relative;
  height: 800px;
}

@media (max-width: 760px) {
  .nts-testimonial-container {
    height: 650px;
  }
}

.nts-testimonial-container .content {
  position: relative;
}

.tetimonial-image {
  display: flex;
}

.tetimonial-image img {
  width: 70%;
  height: 350px;
  object-fit: cover;
  border-style: solid;
  border-color: #fff;
}

@media (min-width: 1800px) {
  .tetimonial-image img {
    height: 450px;
  }
}

@media (max-width: 760px) {
  .tetimonial-image img {
    width: 95%;
    height: 260px;
  }
}

.tetimonial-info {
  padding: 30px 50px 30px 40px;
  position: absolute;
  bottom: -230px;
  background-color: #f3f3f3;
  border-style: solid;
  border-color: #fff;
  border-top: 10px solid #fff;
  border-bottom: 10px solid #fff;
  width: 63%;
  height: 350px;
}

@media (min-width: 1800px) {
  .tetimonial-info {
    height: 450px;
  }
}

@media (max-width: 760px) {
  .tetimonial-info {
    height: 350px;
    bottom: -300px;
  }
}

@media (max-width: 760px) {
  .tetimonial-info {
    width: 90%;
  }
}

.tetimonial-info .testimonial-content {
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .tetimonial-info .testimonial-content {
    font-size: 0.7rem;
  }
}

.tetimonial-info .testimonial-name {
  margin-top: 30px;
  font-family: enFont;
  color: var(--primary-color);
  font-size: 1.6rem;
  font-weight: 600;
}

@media (max-width: 760px) {
  .tetimonial-info .testimonial-name {
    font-size: 1.4rem;
  }
}

.tetimonial-info .content-wrap {
  position: relative;
  height: auto;
}

.tetimonial-info .quote {
  position: absolute;
  font-size: 2rem;
}

.tetimonial-info .quote img {
  width: 30px;
  height: 20px;
}

.tetimonial-info .quote-right {
  top: -20px;
  right: -20px;
}

.tetimonial-info .quote-left {
  bottom: 0;
  left: 5%;
  bottom: 10%;
}

@media (min-width: 1800px) {
  .tetimonial-info .quote-left {
    bottom: 20%;
  }
}

@media (max-width: 760px) {
  .tetimonial-info .quote-left {
    bottom: 15%;
  }
}

.nts-testimonial-container .primary-btn {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 30px auto;
}

.nts-testimonial-container .slick-dots {
  margin: 40px 0 0 0;
}

/* Nts  Blog */

.nts-blog-list {
  padding: 0 60px;
  height: 800px;
}

@media (max-width: 760px) {
  .nts-blog-list {
    height: 550px;
  }
}

.nts-blog-list .primary-btn {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 30px auto;
}

@media (max-width: 760px) {
  .nts-blog-list {
    padding: 0 20px;
  }
}

.nts-blog-list .post-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  height: 180px;
  border-radius: 10px;
  box-shadow: 1px 1px 5px #b1b1b1;
  transition: 0.2s all;
}

@media (min-width: 1400px) {
  .nts-blog-list .post-info {
    height: 220px;
  }
}

@media (max-width: 760px) {
  .nts-blog-list .post-info {
    height: 130px;
  }
}

.nts-blog-list .post-info:hover {
  box-shadow: 1px 4px 5px #b1b1b1;
}

.nts-blog-list .post-info .image {
  width: 40%;
}

.nts-blog-list .post-info .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 10px 10px 0;
}

.nts-blog-list .post-info .content {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  width: 60%;
  padding: 10px 25px;
  border-radius: 10px 0 0 10px;
}

@media (max-width: 760px) {
  .nts-blog-list .post-info .content {
    padding: 10px 15px;
  }
}

.nts-blog-list .post-info h2 {
  margin: 0;
}

@media (max-width: 760px) {
  .nts-blog-list .post-info h2 {
    line-height: 0.5;
    margin-bottom: 10px;
  }
}

.nts-blog-list .post-info h2 a {
  font-size: 1rem;
  color: var(--green-color-light);
}

@media (max-width: 760px) {
  .nts-blog-list .post-info h2 a {
    font-size: 0.7rem;
  }
}

.nts-blog-list .post-info .excerpt {
  font-size: 0.8rem;
}

@media (max-width: 760px) {
  .nts-blog-list .post-info .excerpt {
    font-size: 0.7rem;
  }
}

@media (min-width: 1400px) {
  .nts-blog-list .post-info .excerpt {
    font-size: 0.9rem;
  }
}

.post-info .content .read-more {
  color: var(--green-color-light);
  margin-right: 5px;
  font-size: 0.8rem;
}

@media (min-width: 1400px) {
  .post-info .content .read-more {
    font-size: 0.9rem;
  }
}

@media (max-width: 760px) {
  .post-info .content .read-more {
    display: block;
    font-size: 0.7rem;
    margin-right: 0;
  }
}

/* Grid cat */

.grid-cat-list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .grid-cat-list {
    flex-direction: column;
  }
}

.grid-cat-list .grid-cat-item {
  flex-grow: 1;
  flex: 0 0 32%;
  position: relative;
  margin: 10px 5px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .grid-cat-list .grid-cat-item {
    height: 250px;
  }
}

.grid-cat-list .grid-cat-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.7;
  transition: 0.2s all;

  z-index: 9;
}

.grid-cat-list .grid-cat-item .grid-cat-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0px;
  overflow: hidden;
}

@media (max-width: 760px) {
  .grid-cat-list .grid-cat-item .grid-cat-item-img {
    height: 250px;
  }
}

.grid-cat-list .grid-cat-item .grid-cat-item-img img {
  height: 100%;
  object-fit: cover;
  height: 100%;
  transform: scale(1);
  transition: transform 0.3s ease-out;
  border-radius: 0;
}

@media (max-width: 760px) {
  .grid-cat-list .grid-cat-item .grid-cat-item-img img {
    height: 100%;
  }
}

.grid-cat-list .grid-cat-item:hover img {
  transform: scale(1.1) rotate(5deg);
}

.grid-cat-list .en-title {
  font-size: 3rem;
  font-weight: 600;
}

.grid-cat-list .nts-custom-title-container {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  z-index: 9999;
}

@media (max-width: 760px) {
  .grid-cat-list .nts-custom-title-container {
    padding: 0 20px;
  }
}

.grid-cat-list .nts-custom-title-container .he-title {
  color: #fff;
}

/* Gallery grid list >>> flexbin.css make the grid magic!!! */
.flexbin {
  justify-content: space-between;
}
.nts-gallery-grid-wrap img {
  transform: scale(1);
  transition: transform 0.3s ease-out;
  border-radius: 0;
  cursor: pointer;
  object-fit: cover;
  width: 300px;
  flex: 0 0 32.5%;
}

@media (max-width: 760px) {
  .nts-gallery-grid-wrap img {
    flex: 1;
  }
}

.lightbox-nts-content img {
  display: block;
  max-width: 900px;
  margin: auto;
  position: absolute;
  right: 0;
  left: 0;
  top: 65%;
  transform: translateY(-65%);
}

@media (max-width: 760px) {
  .lightbox-nts-content img {
    max-width: 400px;
  }
}
