/* line */

     .line-button {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background-color: #00b900;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    z-index: 1000;
    font-size: 2rem;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0; /* ซ่อนไว้ก่อน */
    pointer-events: none; /* ไม่ให้คลิกได้ตอนซ่อน */
}

.line-button.show {
    opacity: 1;
    pointer-events: auto;
}

.line-button:hover {
    transform: scale(1.1);
    box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .line-button {
        bottom: 100px; /* ปรับระยะห่างจากขอบล่าง */
        right: 30px; /* ปรับระยะห่างจากขอบขวา */
        width: 45px; /* ปรับขนาดปุ่ม */
        height: 45px; /* ปรับขนาดปุ่ม */
        font-size: 1.8rem; /* ปรับขนาดไอคอน */
        box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15); /* ลดความเข้มของเงา */
    }
}

/* line end */

/* ปุ่ม Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.back-to-top:hover {
    background-color: #084298;
    transform: scale(1.1);
}

/* แสดงปุ่มเมื่อ scroll ลงมา */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.footer-list li a {
  color: inherit;         /* ใช้สีเดียวกับข้อความรอบข้าง */
  text-decoration: none;  /* ไม่ขีดเส้นใต้ */
}

.footer-list li a:visited {
  color: inherit;         /* ป้องกันสีม่วง */
}


  .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
  }

  #prev { left: 10px; }
  #next { right: 10px; }

  .carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
  }

  .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
  }

  .carousel-heading {
    font-size: 28px;
    margin-top: 20px;
    color: #ba9361;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
  }

  .carousel-description {
    color: rgb(53, 52, 52);
    max-width: 900px;
    margin: auto;
    padding: 10px 20px;
  }

  @media screen and (max-width: 768px) {
    .slide-image {
      width: 100vw;
      aspect-ratio: 16 / 9;
    }
  }

/* 360 */
.responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
 }
 
 .elementor embed, .elementor iframe, .elementor object, .elementor video {
  max-width: 100%;
  width: 100%;
  margin: 0;
  line-height: 1;
  border: none;
 }
