@import url('https://fonts.googleapis.com/css2?family=Anuphan:wght@100..700&display=swap');

body{
    font-family: 'Anuphan', sans-serif;
    margin: 0;
    padding: 0;
}

/* Star Rating */
.star-rating { display:flex; flex-direction:row-reverse; justify-content:flex-end; }
.star-rating input { display:none; }
.star-rating label { font-size:1.5rem; color:#ccc; cursor:pointer; }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color:#f5a623; }


 /* 1. ปุ่มวงกลมแบบ Facebook Chat (Floating Action Button) */
  #ai-fab {
      position: fixed;
      bottom: 20px;
      right: 20px;
      width: 60px;
      height: 60px;
      background: linear-gradient(135deg, #0084ff, #00c6ff);
      border-radius: 50%;
      box-shadow: 0 4px 12px rgba(0, 132, 255, 0.4);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      transition: transform 0.2s, box-shadow 0.2s;
  }
  #ai-fab:hover {
      transform: scale(1.05);
      box-shadow: 0 6px 16px rgba(0, 132, 255, 0.5);
  }

  /* การตั้งค่าโลโก้ และเพิ่มเอฟเฟกต์ */
  #ai-fab svg {
      fill: white;
      width: 30px;
      height: 30px;
      /* สั่งให้เล่นอนิเมชั่นชื่อ aiPulsate วนซ้ำไปเรื่อยๆ */
      animation: aiPulsate 2s infinite ease-in-out; 
  }

  /* สร้างเอฟเฟกต์การเต้น/ขยายตัว พร้อมมีแสงเปล่งออกมา */
  @keyframes aiPulsate {
      0% { 
          transform: scale(1); 
          filter: drop-shadow(0 0 0px rgba(255,255,255,0));
      }
      50% { 
          transform: scale(1.2); /* ขยายใหญ่ขึ้นเล็กน้อย */
          filter: drop-shadow(0 0 6px rgba(255,255,255,0.8)); /* มีแสงเรืองแสงสีขาวรอบๆ โลโก้ */
      }
      100% { 
          transform: scale(1); 
          filter: drop-shadow(0 0 0px rgba(255,255,255,0));
      }
  }

  /* 2. กล่องแชท (ซ่อนไว้ก่อน) */
  #ai-summary-box {
      position: fixed;
      bottom: 90px;
      right: 20px;
      width: 320px;
      background-color: #ffffff;
      border-radius: 16px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.15);
      display: none; /* ซ่อนตอนเริ่มต้น */
      flex-direction: column;
      overflow: hidden;
      z-index: 9998;
      transform-origin: bottom right;
      animation: popUp 0.3s ease-out;
  }
  @keyframes popUp {
      from { opacity: 0; transform: scale(0.5); }
      to { opacity: 1; transform: scale(1); }
  }

  /* 3. ส่วนหัวกล่องแชท */
  .ai-header {
      background: linear-gradient(135deg, #0084ff, #00c6ff);
      color: white;
      padding: 15px;
      font-weight: bold;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-radius: 16px 16px 0 0;
  }
  .close-btn { 
      background: rgba(255,255,255,0.2); border: none; font-size: 14px; cursor: pointer; color: white; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  }
  .close-btn:hover { background: rgba(255,255,255,0.4); }

  /* 4. ส่วนเนื้อหาภายใน */
  .ai-body {
      padding: 15px;
      font-size: 14px;
      color: #333;
      min-height: 80px;
      max-height: 350px;
      overflow-y: auto;
  }

  /* 5. ปุ่มเริ่มต้นสรุป */
  .btn-summarize {
      background-color: #f0f2f5;
      border: none;
      padding: 10px;
      width: 100%;
      border-radius: 20px;
      font-weight: bold;
      cursor: pointer;
      transition: background 0.2s;
  }
  .btn-summarize:hover { background-color: #e4e6eb; }


  @media screen and (max-width: 768px) {
    #ai-fab {
        bottom: 100px; /* ให้ปุ่มวงกลมห่างจากขอบล่าง 100px */
    }
    #ai-summary-box {
        bottom: 170px; /* ขยับกล่องดึงขึ้นไปให้พ้นปุ่มวงกลม (100px + ขนาดปุ่ม 60px + ระยะห่าง 10px) */
        /* และปรับให้ความกว้างของกล่องพอดีกับหน้าจอมือถือมากขึ้น */
        right: 15px;
        left: 15px;
        width: auto; 
    }
  }

  /* ช่องค้นหา AI */
  .ai-search-container {
      display: flex;
      margin-top: 15px;
      border-top: 1px solid #eee;
      padding-top: 15px;
      gap: 8px;
  }

  #ai-search-input {
      flex: 1;
      padding: 10px;
      border: 1px solid #ddd;
      border-radius: 20px;
      outline: none;
      font-size: 13px;
       transition: border-color 0.2s;
  }

  #ai-search-input:focus {
      border-color: #0084ff;
  }
  #btn-search {
      background-color: #0084ff;
      color: white;
      border: none;
      padding: 0 15px;
      border-radius: 20px;
      cursor: pointer;
      font-weight: bold;
      transition: background 0.2s;
  }
  #btn-search:hover {
      background-color: #006bce;
  }
  #btn-search svg {
      width: 16px;
      height: 16px;
      fill: white;
      margin-top: 4px;
  }

  /* กล่องข้อความ Pop up บน Desktop (อยู่ด้านซ้ายของปุ่ม) */
  #ai-tooltip {
      position: fixed;
      bottom: 35px;
      right: 95px; /* ห่างจากปุ่ม */
      background-color: #ffffff;
      color: #0084ff;
      padding: 8px 16px;
      border-radius: 20px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      font-size: 14px;
      font-weight: bold;
      z-index: 9999;
      pointer-events: none; /* ไม่ให้กล่องขวางการคลิกเมาส์ */
      animation: bounceTooltip 2s infinite ease-in-out;
      transition: opacity 0.3s;
  }

  /* สร้างสามเหลี่ยมเล็กๆ เป็นหางชี้ไปที่ปุ่ม */
  #ai-tooltip::after {
      content: '';
      position: absolute;
      top: 50%;
      right: -6px;
      transform: translateY(-50%);
      border-width: 6px 0 6px 6px;
      border-style: solid;
      border-color: transparent transparent transparent #ffffff;
  }

  /* อนิเมชั่นขยับขึ้นลงเบาๆ บน Desktop */
  @keyframes bounceTooltip {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-5px); }
  }

  /* ปรับตำแหน่ง Pop up สำหรับหน้าจอมือถือ (อยู่ด้านขวาของปุ่ม) */
   @media screen and (max-width: 768px) {
      #ai-fab {
          bottom: 100px; /* ให้ปุ่มวงกลมห่างจากขอบล่าง 100px */
      }
      #ai-summary-box {
          bottom: 170px; /* ขยับกล่องดึงขึ้นไปให้พ้นปุ่มวงกลม (100px + ขนาดปุ่ม 60px + ระยะห่าง 10px) */
          /* และปรับให้ความกว้างของกล่องพอดีกับหน้าจอมือถือมากขึ้น */
          right: 15px;
          left: 15px;
          width: auto; 
      }

      #ai-tooltip {
        position: fixed;
        bottom: 100px;
        right: 95px; /* ห่างจากปุ่ม */
        background-color: #ffffff;
        color: #0084ff;
        padding: 8px 16px;
        border-radius: 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        font-size: 14px;
        font-weight: bold;
        z-index: 9999;
        pointer-events: none; /* ไม่ให้กล่องขวางการคลิกเมาส์ */
        animation: bounceTooltip 2s infinite ease-in-out;
        transition: opacity 0.3s;
    }
  }

  /* อนิเมชั่นขยับซ้ายขวาเบาๆ บนมือถือ */
  @keyframes bounceTooltipMobile {
      0%, 100% { transform: translate(0, -50%); }
      50% { transform: translate(5px, -50%); }
  }

/* พื้นหลังสีขาวทับทั้งหน้าจอ */

/*#overlay {   
  position: fixed;  
  top: 0px;   
  left: 0px;  
  background: #ccc;   
  width: 100%;   
  height: 100%;   
  opacity: 0.85;   
  filter: alpha(opacity=75);   
  -moz-opacity: .75;    
  background: #fff url(img/pic/loading.gif) 50% 50% no-repeat;
  z-index: 999999;
}*/

/* ซ่อน Scrollbar เพื่อความสวยงามในการพรีวิว */
  ::-webkit-scrollbar {
      width: 0px;
  }
  
  /* ตั้งค่าขนาดหน้าจอมือถือจำลอง */
  .mobile-container {
      width: 100%;
      max-width: 450px;
      min-height: 100vh;
  }

  /* จำกัดความกว้างของ navbar ให้อยู่ตรงกลางตาม container */
  .mobile-nav {
      max-width: 100%;
      margin: 0 auto;
      left: 0;
      right: 0;
      height: 52px;
      z-index: 1030;
  }



  /* เอฟเฟกต์ปุ่มและไอคอนตอนกด/Hover (Bootstrap 4 ไม่มี utility class เหล่านี้) */
  .nav-btn {
      cursor: pointer;
      transition: all 0.2s ease-in-out;
      background: none;
      border: none;
  }
  .nav-btn:hover { background-color: #f8f9fa; }
  .nav-icon { transition: all 0.2s; }
  .nav-btn:hover .nav-icon { transform: scale(1.1); }
  .nav-btn:active .nav-icon { transform: scale(0.95); }
  
  /* ตัวชี้บอกสถานะเมนู (ขีดสีฟ้าด้านบน) */
  .nav-indicator {
      height: 3px;
      transition: all 0.2s;
  }
  
  /* ขอบรูปโปรไฟล์ในเมนูที่ 4 */
  .nav-profile-border {
      border: 2px solid transparent;
      transition: all 0.2s;
  }
  .border-primary-custom { border-color: #007bff !important; }
  .bg-transparent-custom { background-color: transparent !important; }

  /* ปรับแต่ง Badge เล็กน้อย */
  .custom-badge {
      top: -4px;
      right: -6px;
      font-size: 10px;
      border: 2px solid white;
  }


.team-slider .owl-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -60px;
    text-align: center;
    align-items: center;
    width: 100%;

}
.team-slider button.owl-dot {
    width: 16px;
    height: 16px;
    display: inline-block;
    margin: 0 6px;
    text-align: center;
    border-radius: 50%;
    background-color: #ff0000;
}
.team-slider .owl-dot.active {
    background-color: coral;
}

/* สไตล์ปกติสำหรับมือถือ (แสดงเมนู) */
.mobile-menu .mobile-account .mobile-login {
  display: block;
}


/* เมื่อหน้าจอกว้างตั้งแต่ 913px ขึ้นไป ให้ซ่อนเมนู */
@media screen and (min-width: 913px) {
  .mobile-menu {
    display: none !important; 
  }
  .mobile-account {
    display: none !important; 
  }

  .mobile-login {
    display: none !important; 
  }

  #mobile-nav {
    display: none !important; 
  }


}

/* เมื่อหน้าจอกว้างตั้งแต่ 912px ลงไป ให้ซ่อน desktop */
@media screen and (max-width: 912px) {
  .desktop-account {
    display: none !important; 
  }
  .desktop-register {
    display: none !important; 
  }

  .desktop-login {
    display: none !important; 
  }
}


.btn-hover{
  background-color: #fff;
  color: #000;
}

.btn-hover:hover{
  background-color: rgb(8,46,35);
  border: 1px solid rgb(255,193,6);;
  color: #fff;
}

/*.carousel-inner .carousel-item {
  transition: -webkit-transform 2s ease;
  transition: transform 2s ease;
  transition: transform 2s ease, -webkit-transform 2s ease;
}*/

.img-zoom {
  overflow: hidden;
  padding: 15px 0 15px;
}

.zoom-in img {
 
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;

}

.zoom-in:hover img {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
  transition: transform .4s ease-in-out;
}


#team {
  padding: 30px 0;
}

.single-box {
  border: 1px solid #ddd;
  border-radius: 20px;
  overflow: hidden;
  background-color: #fff

}
.info-area {
  padding: 0 20px 45px;
}
.img-area {
  overflow: hidden;
  padding: 10px 0 10px;
}
.img-area img {
  margin: 0 auto;
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
  max-width: 320px
}
.single-box:hover img {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}
.info-area i {
  display: inline-block;
  color: #000;
  margin: 0px;
}
.info-area h4 {
  font-weight: 600
}
.info-area h6 {
  color: #082E23;
  margin: 10px 0 0;
  font-weight: 600
}
/*.info-area a {
  display: inline-block;
  margin: 25px 0 0;
  background-color: rgb(8,46,35);
  color: #fff;
  padding: 10px 35px;
  border-radius: 20px;
  text-decoration: none;
}*/

/*.move-animation {
  position: relative;
  -webkit-animation: move-animation 2s ease-in-out infinite;
  animation: move-animation 2s ease-in-out infinite;
}
@-webkit-keyframes move-animation {
  0% {
    top: 3px;
  }
  50% {
    top: -3px;
  }
  100% {
    top: 3px;
  }
}*/



h4{
  color: rgb(3,105,77);
}

.hover:hover{
  box-shadow: 2px 6px #888888;
}

.field-icon {
  float: right;
  margin-left: -25px;
  margin-top: -25px;
  position: relative;
  z-index: 2;
}

.image {
  width: 100%;
  height: 250px;
  position: relative;
  overflow: hidden;
  background-color: #000;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

./*zoom-in,
.zoom-out {
    &::after {
      content: "";
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      background: inherit;
      background-size: cover;
      transform-origin: center;
      transition: transform .4s ease-in-out;
    }
}*/

/*.zoom-in {
    &:focus,
    &:hover {
      &::after {
          transform: scale(1.1);
      }
    }
}

.zoom-out {
    &::after {
      transform: scale(1.2);
    }
  
    &:focus,
    &:hover {
      &::after {
          transform: scale(1);
      }
    }
}*/

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu a::after {
  transform: rotate(-90deg);
  position: absolute;
  right: 6px;
  top: .8em;
}

.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: .1rem;
  margin-right: .1rem;
}

.hero-bg-1 {
  position: absolute;
  left: 30px;
  top: 200px;
}

@media (max-width: 767px) {
  .hero-bg-1 {
    display: none;
  }
}

.hero-bg-2 {
  position: absolute;
  top: 50%;
  left: 20%;
}

@media (max-width: 767px) {
  .hero-bg-2 {
    display: none;
  }
}

.hero-bg-3 {
  position: absolute;
  bottom: 0%;
  left: 10%;
}

@media (max-width: 767px) {
  .hero-bg-3 {
    display: none;
  }
}

.hero-bg-4 {
  top: 210px;
  right: 40%;
  position: absolute;
}

@media (max-width: 767px) {
  .hero-bg-4 {
    display: none;
  }
}

.hero-bg-5 {
  position: absolute;
  top: 250px;
  right: 17%;
}

@media (max-width: 767px) {
  .hero-bg-5 {
    display: none;
  }
}

.hero-bg-6 {
  position: absolute;
  right: 10%;
  bottom: 20%;
}

@media (max-width: 767px) {
  .hero-bg-6 {
    display: none;
  }
}

.hero-bg-7 {
  position: absolute;
  left: 20%;
  bottom: -17%;
  z-index: 1;
}

@media (max-width: 767px) {
  .hero-bg-7 {
    display: none;
  }
}

.hero-bg-8 {
  position: absolute;
  bottom: -30%;
  right: 50%;
  z-index: 1;
}

@media (max-width: 767px) {
  .hero-bg-8 {
    display: none;
  }
}

.hero-bg-9 {
  position: absolute;
  top: 750px;
  right: 17%;
  z-index: 1;
}

@media (max-width: 767px) {
  .hero-bg-9 {
    display: none;
  }
}

.hero-bg-10 {
  position: absolute;
  top: 2550px;
  right: 37%;
  z-index: 999
}

@media (max-width: 767px) {
  .hero-bg-10 {
    display: none;
  }
}

.hero-bg-11 {
  position: absolute;
  top: 1650px;
  right: 21%;
  z-index: 1;
}

@media (max-width: 767px) {
  .hero-bg-11 {
    display: none;
  }
}

.hero-bg-12 {
  position: absolute;
  top: 2050px;
  right: 35%;
  z-index: 999
}

@media (max-width: 767px) {
  .hero-bg-12 {
    display: none;
  }
}

.hero-bg-13 {
  position: absolute;
  top: 1450px;
  right: 65%;
  z-index: 999
}

@media (max-width: 767px) {
  .hero-bg-13 {
    display: none;
  }
}

.hero-bg-14 {
  position: absolute;
  top: 2175px;
  right: 88%;
  z-index: 999
}

@media (max-width: 767px) {
  .hero-bg-14 {
    display: none;
  }
}

.btn-block{
	text-decoration:none;
}

.left-right-animation {
  animation: left_right 3s ease-in infinite alternate-reverse;
}

@-webkit-keyframes left_right {
  0% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
  100% {
    -webkit-transform: translateX(-20px);
            transform: translateX(-20px);
  }
}

@keyframes left_right {
  0% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
  100% {
    -webkit-transform: translateX(-20px);
            transform: translateX(-20px);
  }
}

.up-down-animation {
  animation: up_down 3s ease-in infinite alternate-reverse;
}

@-webkit-keyframes up_down {
  0% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  100% {
    -webkit-transform: translateY(-20px);
            transform: translateY(-20px);
  }
}

@keyframes up_down {
  0% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  100% {
    -webkit-transform: translateY(-20px);
            transform: translateY(-20px);
  }
}

.zindex-1 {
  z-index: 1;
}


