:root {
  --primary-color: #c2a472;
  --base-color: #4a4a4a;
  --green-1-color: #ccf3e4;
  --green-3-color: #005f3b;
  --green-4-color: #00c57a;
  --green-5-color: #005031;
  --grey-1-color: #f5f5f5;
}
* {
  font-family: "LINESeedSansTH", sans-serif;
  font-weight: 400;
}
/* section,
nav,
footer {
  max-width: 1920px;
  margin: auto;
  background: white;
  padding-left: 5rem !important;
  padding-right: 5rem !important;
  border-left: 1px;
  border-right: 1px;
  border-top: 0px;
  border-bottom: 0px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.3);
  @media (max-width: 1199px) {
    & {
      padding-left: 2rem !important;
      padding-right: 2rem !important;
    }
  }
} */
body {
  background-color: var(--grey-1-color);
}
/* Section Hero */
.hero__welcome {
  height: 100dvh;
  min-height: 580px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  video {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
  }
  /*custom*/
  .video {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    top: unset;
    filter: brightness(0.8);
  }
  /*end custom*/
  img {
    position: absolute;
    top: 2rem;
  }
  /* Hero Default */
  .hero__content {
    text-align: center;
    text-transform: uppercase;
    color: white;
    p {
      /* font-size: clamp(18px, 5vw, 30px); */
      
      font-size: 18px;
      font-weight: 700;
      letter-spacing: 0em;
      color:rgb(255, 255, 255);    
    }
    span {
      font-size: 18px;
    }
    h1 {
      font-size: clamp(30px, 5vw, 80px);
      font-weight: 800;
    }
    span {
      font-size: clamp(24px, 5vw, 45px);
    }
@media (max-width: 991px) {
  .hero__content p {
    font-size: 20px !important;
    color: white !important;
    letter-spacing: normal !important;
  }
}

  }
  .enter__website {
    width: 128px;
    height: 128px;
    position: absolute;
    border-radius: 50%;
    color: #758d8f;
    background-color: white;
    text-align: center;
    padding: 1rem;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    right: 10%;
    bottom: 10%;
    cursor: pointer;
  }
  .enter__website:hover {
    scale: 0.95;
    transition-duration: 100ms;
  }
  /* Hero Primary */
  &.primary .hero__content {
    p {
      color: var(--primary-color);
    }
    h1 {
      background: linear-gradient(90deg, #004c49 0%, #72ab98 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
  }
  &.primary .enter__website {
    color: white;
    background-color: var(--primary-color);
  }
  @media (max-width: 991px) {
    & {
      /* video {
        width: auto;
        height: 100%;
      } */
      .enter__website {
        width: 96px;
        height: 96px;
        font-size: 18px;
      }
    }
  }
}

main {
  /* Navbar */
  .nav__second {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    color: white;
    background-color: var(--primary-color);
    .nav__left {
      display: flex;
      align-items: center;
      gap: 1rem;
      .social__lists {
        display: flex;
        gap: 0.5rem;
      }
      .search {
        input {
          color: white;
          background: transparent;
          border-bottom: 1px;
          border-color: white;
          border-top: 0;
          border-left: 0;
          border-right: 0;
          border-style: solid;
          outline: none;
        }
        img {
          cursor: pointer;
        }
        img:hover {
          scale: 0.95;
          transition-duration: 100ms;
        }
      }
    }
    .nav__right {
      .lang__select {
        background: transparent;
        color: white;
        border: none;
        outline: none;
      }
    }
  }
  /* Section Banner */
  .banner {
    padding: 3rem 3rem 0 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    /* Section First */
    background-color: #fafafa;
    /* Section Second */
    .banner__second {
      padding: 2rem;
      border-top-left-radius: 40px;
      border-top-right-radius: 40px;
      background: linear-gradient(180deg, #71aa99 0%, #004c49 100%);
      color: white;
      .content {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding-left: 2.5rem;
        span {
          font-size: clamp(18px, 5vw, 30px);
        }
        h6 {
          font-size: clamp(28px, 5vw, 40px);
          font-weight: 700;
        }
        .lists {
          display: flex;
          flex-direction: column;
          gap: 1rem;
          margin-bottom: 1rem;
          .item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            background: rgba(0, 197, 122, 0.2);
            img {
              height: 19px;
              width: 19px;
            }
          }
        }
        p {
          font-size: clamp(16px, 5vw, 20px);
        }
      }
      .image {
        img {
          margin-top: 15px;
          right: -0rem;
        }
      }
    }
    @media (max-width: 1199px) {
      & {
        padding: 1.5rem 1.5rem 0 1.5rem;
        .banner__first {
          padding: 1.5rem;
          .content {
            padding-right: 0;
          }
        }
        .banner__second {
          padding: 1.5rem;
          border-top-left-radius: 20px;
          border-top-right-radius: 20px;
          .content {
            padding-left: 0;
          }
        }
      }
    }
  }

  /* Section Our Services */
  .our__services {
    padding: 5rem 2rem;
    background-image: url(/assets/images/our-services-bg.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    h1 {
      font-size: clamp(20px, 5vw, 50px);
      font-weight: 700;
      color: var(--green-3-color);
      text-transform: uppercase;
      text-align: center;
    }
    .services__lists {
      width: 100%;
      justify-content: center;
      max-width: 1440px;
      margin: auto;
      .card {
        height: 100%;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 2rem;
        /* max-width: 470px; */
        background-color: var(--grey-1-color);
        border-radius: 30px;
        color: var(--green-3-color);
        .content {
          flex: 1;
          display: flex;
          flex-direction: column;
          gap: 1rem;
          .icon {
            width: 64px;
            height: 64px;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 50%;
            background-color: transparent;
            border: 1px solid;
            border-color: var(--primary-color);
          }
          h6 {
            font-size: clamp(18px, 5vw, 30px);
            min-height: clamp(104px, 5vw, 140px);
            overflow: hidden;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 3;
          }
          hr {
            width: 50%;
            color: #858585;
            opacity: 1;
            margin: 0;
          }
          ul {
            color: var(--base-color);
            list-style-type: square;
            display: flex;
            flex-direction: column;
            gap: 0.8rem;
          }
          p {
            color: var(--base-color);
          }
        }
        .btn {
          width: 75%;
          margin: auto;
        }
      }
        /*custom*/
      .card:hover {
        background: rgba(204, 243, 228, 0.7);
        .icon {
          background-color: var(--green-4-color);
          border-color: var(--green-1-color);
          img {
            filter: brightness(0) invert(1);
          }
        }
        /*h6 {
          font-weight: 700;
        }*/
        hr {
          color: var(--green-3-color);
        }
        ul {
          color: var(--green-3-color);
        }
        .chevron-right{
          display: block;
        }
        .btn{
          border: unset !important;
          color: white !important;
          background: linear-gradient(90deg, #5ecfd7 0%, #00c57a 100%) !important;
        }
      }
        /*end custom*/
      .card.active {
        background: rgba(204, 243, 228, 0.7);
        .icon {
          background-color: var(--green-4-color);
          border-color: var(--green-1-color);
          img {
            filter: brightness(0) invert(1);
          }
        }
        h6 {
          font-weight: 700;
        }
        hr {
          color: var(--green-3-color);
        }
        ul {
          color: var(--green-3-color);
        }
      }
    }
    @media (max-width: 1199px) {
      & {
        padding: 2rem 1.5rem;
        gap: 1rem;
        .services__lists {
          .card {
            padding: 1.5rem;
            .content {
              h6 {
                min-height: auto;
              }
            }
            .btn {
              width: 100%;
            }
          }
        }
      }
    }
  }
  /* Section Our Facilities */
  .facilities {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: white;
    .header {
      h1 {
        display: flex;
        align-items: center; 
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        font-size: clamp(20px, 5vw, 50px);
        line-height: 1.2;
        height: auto;
        color: var(--green-3-color);
        text-transform: uppercase;
      }
      .nav-tabs.custom__tabs {
        white-space: normal;
        text-align: start;
        overflow-x: auto;
        .nav-item {
          max-height: 80px;
          min-width: 50px;
          display: -webkit-box;
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
          text-overflow: ellipsis;
          overflow: hidden;
          white-space: normal;
          .nav-link {
            width: 100%;
            max-width: 244px;
            min-width: 244px;
            /*custom*/
            min-width: unset;
            /*end custom*/
            height: 100%;
            padding: 1rem;
            font-size: 15px;
            text-align: start;
            text-transform: uppercase;
            span {
              font-size: 13px;
            }
          }
        }
      }
      @media (max-width: 500px) {
        & {
          
        }
      }
    }
    .tab-content {
      padding: 0.5rem;
      border: 1px solid rgba(0, 95, 59, 0.25);
      .description {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        .content {
          padding: 2rem;
          flex: 1;
          display: flex;
          flex-direction: column;
          justify-content: space-between;
          /*custom*/
          justify-content: center;
          /*end custom*/
          span {
            color: var(--primary-color);
            font-size: clamp(15px, 5vw, 25px);
          }
          h1 {
            color: var(--green-3-color);
            font-size: clamp(18px, 5vw, 30px);
            font-weight: 700;
            text-transform: uppercase;
            /*custom*/
            padding-bottom: 1rem;
            /*end custom*/
          }
          p {
            color: var(--base-color);
            font-size: clamp(12px, 5vw, 20px);
          }
        }

        .image__lists {
          img {
            width: 100%;
          }
        }
      }

      .image__preview {
        display: flex;
        align-items: center;
        img {
          width: 100%;
        }
      }
    }
  }

  /* Section Why Choose  */
  .why__choose {
    max-width: 1920px;
    margin: auto;
    padding: 2rem;
    .lists {
      gap: 2rem;
      justify-content: center;
      .header {
        max-width: 350px;
        h6 {
          font-size: clamp(28px, 5vw, 40px);
          font-weight: 700;
          color: var(--green-3-color);
        }
        p {
          color: var(--base-color);
          font-size: clamp(18px, 5vw, 30px);
          margin-bottom: 0;
        }
      }
      .card__lists {
        width: 100%;
        justify-content: center;
        .header{
          p { 
            display: -webkit-box;       /* ใช้ flexbox พิเศษสำหรับตัดคำ */
            -webkit-line-clamp: 2;      /* จำกัดให้แสดง 2 บรรทัด */
            -webkit-box-orient: vertical; /* จัดเรียงข้อความแนวตั้ง */
            overflow: hidden;           /* ซ่อนข้อความที่เกิน */
            text-overflow: ellipsis;    /* เพิ่ม ... เมื่อข้อความเกิน */
            max-width: 100%;            /* ป้องกันขยายเกินขอบเขต */
            font-size: 18px;            /* กำหนดขนาดตัวอักษร */
            line-height: 1.5em;         /* ปรับระยะห่างบรรทัด */
            max-height: 3em;            /* (1.5em * 2) จำกัดสูงสุดที่ 2 บรรทัด */
          }
        }
        .card {
          display: flex;
          flex-direction: column;
          overflow: hidden;
          border-radius: 30px;
          width: 100%;
          /* max-width: 340px; */
          height: 100%;
          box-shadow: 0px 11px 30.2px 0px rgba(0, 0, 0, 0.15);
          .image {
            height: 240px;
            background-repeat: no-repeat;
            background-position: top;
            background-size: 100%;
          }
          .content {
            padding: 1.5rem;
            h6 {
              font-size: clamp(18px, 5vw, 25px);
              font-weight: 700;
              height: clamp(100px, 5vw, 68px);
              color: var(--green-3-color);
            }
            .description {
              margin-top: 20px;
              min-height: 140px;
              padding: 1rem 1.5rem;
              border-top-left-radius: 30px;
              border-top-right-radius: 30px;
              color: var(--base-color);
              font-size: clamp(14px, 5vw, 18px);
              background: linear-gradient(180deg, rgba(0, 197, 122, 0.15) 0%, rgba(0, 95, 59, 0) 100%);
            }
          }
        }
      }
    }
    .consult__specialist {
      position: relative;
      display: flex;
      margin-top: 8rem;
      height: 152px;
      gap: 2rem;
      align-items: center;
      padding: 0 2.5rem;
      border-radius: 50px;
      background: linear-gradient(90deg, #71aa99 0%, #004c49 78.96%);
      box-shadow: 5px 19px 45.7px 0px rgba(0, 0, 0, 0.25);
      .image {
        width: 333px;
        height: 50%;
        position: relative;
        img {
          position: absolute;
          max-width: 315px;
          width: 100%;
          bottom: 0;
          border-radius: 10px;
        }
      }
      .group {
        width: 100%;
        align-items: center;
        .description {
          flex: 1;
          h6 {
            margin-bottom: 0;
            font-size: clamp(18px, 5vw, 30px);
            font-weight: 700;
            color: #fafafa;
          }
          span {
            font-size: clamp(14px, 5vw, 20px);
            color: white;
          }
        }
      }
    }
    @media (max-width: 1199px) {
      & {
        padding: 1.5rem;
        .lists {
          gap: 1rem;
          .card__lists {
            .card {
              .content {
                padding: 1rem;
                h6 {
                  min-height: auto;
                }
              }
            }
          }
        }
        .consult__specialist {
          height: auto;
          gap: 1.5rem;
          border-radius: 30px;
          padding: 1.5rem 2rem;
        }
      }
    }
    @media (max-width: 1399px) {
      & {
        .lists {
          .header {
            text-align: start;
            max-width: 100%;
            width: 100%;
          }
        }
        .consult__specialist {
          margin-top: 3rem;
        }
      }
    }
  }
  
  /* Section Blog 1 */
  .blog {
    padding: 2rem;      
/*customize*/
margin-top:50px;
    .blog__content {
      display: flex;
      align-items: center;
      img {
        max-height: 500px;

      }
      /* .image {
        overflow: hidden;
        max-width: 890px;
        min-width: 590px;
        width: 100%;
        min-height: 610px;
        max-height: 610px;
        position: static;
        display: flex;
        align-items: center;
        img {
          width: 100%;
        }
      } */
      .content {
        color: var(--base-color);
        display: flex;
        flex-direction: column;
        gap: 2rem;
        .title {
          color: var(--green-3-color);
          font-weight: 700;
          font-size: clamp(32px, 5vw, 40px);
          margin-bottom: 0;
        }
        .sub__title {
          font-size: clamp(22px, 5vw, 30px);
        }
        .description {
          font-size: clamp(16px, 5vw, 20px);
        }
        .advantages__fibro__scan {
          h6 {
            font-size: clamp(18px, 5vw, 25px);
            color: var(--primary-color);
          }
          p {
            font-size: clamp(14px, 5vw, 18px);
          }
        }
      }
    }
    .content__tabs {
      max-width: 1440px;
      margin: auto;
      .nav-tabs.custom__tabs {
        white-space: normal;
        margin-top: 2rem;
      }
    }
    @media (max-width: 1199px) {
      & {
        padding: 1.5rem;
        .blog__content {
          img {
            width: 100%;
            height: auto;
          }
          /* .image {
            max-height: fit-content;
            min-height: fit-content;
            min-width: fit-content;
            img {
              position: static;
              width: 100%;
              height: auto;
            }
          } */
        }
      }
    }
  }
  /* Section Blog 2 */
  .custom__collapse {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    h6 {
      font-size: clamp(18px, 5vw, 25px);
      color: var(--primary-color);
      margin-bottom: 0;
    }
  }
  /* Form Send Inquiry */
  .send__inquiry {
    padding: 1.5rem;
    max-width: 1920px;
    margin: auto;
    min-height: 687px;
    .content {
      max-width: 516px;
      margin: auto;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 1rem;
      h6 {
        color: var(--primary-color);
        font-size: clamp(22px, 5vw, 35px);
        font-weight: 700;
        text-transform: uppercase;
      }
      p {
        color: var(--green-3-color);
        font-size: clamp(24px, 5vw, 40px);
        text-transform: uppercase;
      }
    }
    .box__form {
      padding: 1.25rem;
      /*border: rgba(0, 95, 59, 0.5) solid 1px;*/
      .form {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        border-radius: 30px;
        padding: 2rem;
        background: linear-gradient(180deg, rgba(0, 197, 122, 0.15) 0%, rgba(0, 95, 59, 0) 70%);
        .group {
          input {
            width: 100%;
          }
        }
        input,
        input::placeholder,
        select {
          background: transparent;
          color: var(--green-3-color);
          border-top-width: 0;
          border-left-width: 0;
          border-right-width: 0;
          border-bottom-width: 1px;
          border-color: rgba(0, 95, 59, 0.5);
          outline: none;
          font-size: clamp(16px, 5vw, 25px);
        }
        .btn {
          width: fit-content;
          padding: 0.25rem 3rem;
        }
      }
    }
  }
  /* Footer Second */
  .footer__second {
    padding: 1rem 2rem;
    font-size: clamp(14px, 5vw, 20px);
    background-color: var(--green-5-color);
    color: white;
    text-align: center;
    text-transform: uppercase;
  }
  /* Footer Main */
  .footer__main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 4rem;
    background-color: var(--green-3-color);
    color: white;
    img[alt="logo-white"] {
      height: 70px;
    }
  }
}

.btn {
  box-shadow: 0px 4px 11.3px 0px rgba(0, 0, 0, 0.2);
  display: flex;
  height: fit-content;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  font-size: clamp(14px, 5vw, 22px);
  color: white !important;
  border: none;
  img {
    max-width: 19px;
    max-height: 19px;
  }
  /*custom*/
  .chevron-right{
    display: none;
  }
  /*end custom*/

  /* img[alt="chevron-right"] {
    display: none;
  } */
  &:hover {
    scale: 0.95;
    color: white;
    transition-duration: 150ms;
    /* img[alt="chevron-right"] {
      display: block;
    } */
  }
  &:active {
    scale: 0.98;
    /* img[alt="chevron-right"] {
      display: block;
    } */
  }
  &.btn__primary {
    background: linear-gradient(90deg, #5ecfd7 0%, #00c57a 100%);
  }
}

.custom__tabs {
  gap: 0.5rem;
  flex-wrap: nowrap;
  /*overflow-x: auto;
  overflow-y: hidden;*/
  white-space: nowrap;    
  .nav-link {
    font-size: clamp(18px, 5vw, 20px);
    color: var(--green-3-color);
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    /*padding: 0.75rem 2.5rem;*/
    background-color: #e7e7e7;
    &.active {
      background-color: var(--primary-color);
      color: white;
      font-weight: 700;
    }
  }
  & ~ .tab-content {
    background-color: #fafafa;
    color: var(--base-color);
    padding: 1.75rem 3.5rem;
    border: 1px var(--green-3-color) solid;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
  }
  @media (max-width: 1199px) {
    & {
      .nav-link {
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
      }
      & ~ .tab-content {
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        padding: 1.5rem 1.75rem;
      }
    }
  }
}



/*custom*/
a{
  text-decoration:none !important;
}
/*end custom*/ 
