        body {
            font-family: 'Barlow', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            background-color: #f8f8f8;
        }

        .carousel-container {
		width: 100%;
    	height: 100%;
		overflow: hidden;
		position: relative;
		margin: 0 auto;
		max-width: 100%;
		}

    .carousel-slides {
        display: flex;
        transition: transform 0.5s ease;
        height: 100%;
    }

    .carousel-slide {
        flex-shrink: 0;
        width: 100%;
        height: 100%;
        position: relative;
        overflow: hidden;
        max-width: 100%;
        z-index: 0;
    }

    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        max-height: 100%;
    }
    @media (max-width: 768px) {
    .carousel-slide img {
        max-width: 100%;
        height: 180px;
        margin: 0 auto;
        object-fit: cover;
        object-position: center;
    }
    }
    @media (max-width: 768px) {
    .carousel-container {
        width: 100%;
        height: 20vh;
        overflow: hidden;
        position: relative;
        margin: 0 auto;
		max-width: 100%;
        }
    }
        .carousel-buttons {
            position: absolute;
            top: 50%;
            width: 100%;
            display: flex;
            justify-content: space-between;
            transform: translateY(-50%);
            padding: 0 10px;
            box-sizing: border-box;
        }

        .carousel-buttons button {
            background-color: rgba(0, 0, 0, 0.5);
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            border-radius: 50%;
            width: 40px;
            height: 40px;
        }

       .carousel-dots {
  position: absolute;
  bottom: 15px;  /* ระยะจากขอบล่างของรูป */
  width: 100%;
  text-align: center;
  pointer-events: auto;
  user-select: none;
  z-index: 10;
}

.carousel-dots .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: 1px solid #fff;
}

.carousel-dots .dot.active {
  background-color: rgba(242, 0, 0, 0.9);
  border-color: #fff;
}
.qr-code-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 16px; 
  justify-content: center;
  max-width: 100%;
  margin: 0 auto;
}

.qr-code-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.qr-code-item img {
  width: 120px;     
  height: auto;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.qr-code-item img:hover {
  transform: scale(1.05);
  cursor: pointer;
}

.container.custom-narrow {
    padding-left: 10px !important;
    padding-right: 10px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    max-width: 100% !important;
}

.news-carousel-container,
.qrproductcatalogue,
.qrproductcatalogue01 {
    width: 100%;
    height: 55vh;
    overflow-y: auto;
    padding: 10px;
    border-radius: 12px;
    border: 3px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    /* ลบ margin-left และ margin-top */
}


.news-carousel-slides {

    width: 100%;
}

.news-slide {
    display: none;
    height: 100%;
}

.news-slide.active {
    display: block;
}

.news-slide-img {
    width: 100%;
    height: 40vh;
    object-fit: cover;
    border-radius: 8px;
}

.news-carousel-prev,
.news-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 1.5rem;
    padding: 5px 12px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: background-color 0.2s;
}
.news-carousel-prev:hover,
.news-carousel-next:hover {
    background-color: rgba(255, 0, 0, 0.6);
    color: white;
}

.news-carousel-prev {
    left: 10px;
}
.news-carousel-next {
    right: 10px;
}

.news-dots {
    margin-top: 10px;
}

.news-dot {
    display: inline-block;
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background-color: gray;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}
.news-dot.active {
    background-color: red;
}

 .product-slide {
    display: none;
    transition: opacity 0.5s ease-in-out;
  }
.product-slide.active {
    display: block;
}
.product-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.product-dot.active {
    background-color: #007bff;
}


.swal2-popup.swal-news-detail-popup {
    width: 90% !important;
    max-width: 90vw !important; 
    font-family: 'Kanit', sans-serif; 
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px;
}

.swal2-popup.swal-news-detail-popup .swal2-title {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

/* สไตล์สำหรับรูปภาพข่าวหลัก */
.swal2-popup.swal-news-detail-popup .swal2-image {
    max-width: 80% !important; /* ใช้ 80% ของ SweetAlert popup */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    margin-bottom: 25px; /* เพิ่มระยะห่างด้านล่าง */
    object-fit: contain; /* ให้รูปภาพแสดงครบไม่โดนตัด */
}

/* สไตล์สำหรับเนื้อหาข่าว */
.swal2-popup.swal-news-detail-popup .swal2-html-container p {
    color: #34495e;
    margin-bottom: 1px; /* เพิ่มระยะห่างด้านล่าง */
}

.swal2-popup.swal-news-detail-popup .swal2-html-container strong {
    color: #1a2c3a; /* สีเข้มขึ้นสำหรับข้อความตัวหนา */
}

/* สไตล์สำหรับ container ของรูปภาพรายละเอียด (หลายรูป) */
.swal2-popup.swal-news-detail-popup .news-detail-images-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* เพิ่มช่องว่างระหว่างรูปภาพ */
    margin-top: 25px;
    padding: 10px;
    border: 1px solid #ecf0f1; /* เพิ่มเส้นขอบบางๆ */
    border-radius: 8px;
    background-color: #fcfcfc;
}

/* สไตล์สำหรับรูปภาพรายละเอียดแต่ละรูป */
.swal2-popup.swal-news-detail-popup .news-detail-images-container img {
    width: 180px; /* กำหนดความกว้างคงที่ (ปรับได้) */
    height: 120px; /* กำหนดความสูงคงที่ (ปรับได้) */
    object-fit: cover; /* ทำให้รูปภาพเต็มพื้นที่โดยไม่เสียสัดส่วน */
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out; /* เพิ่ม animation ตอน hover */
}

.swal2-popup.swal-news-detail-popup .news-detail-images-container img:hover {
    transform: scale(1.05); /* ขยายเล็กน้อยเมื่อเมาส์ชี้ */
}

/* สไตล์สำหรับปุ่มปิด */
.swal2-popup.swal-news-detail-popup .swal2-confirm {
    background-color: #3498db !important; /* สีฟ้า */
    color: white !important;
    border-radius: 8px !important;
    font-size: 1.1em !important;
    padding: 10px 25px !important;
    margin-top: 25px !important;
    transition: background-color 0.3s ease;
}

.swal2-popup.swal-news-detail-popup .swal2-confirm:hover {
    background-color: #2980b9 !important; /* สีเข้มขึ้นเมื่อ hover */
}

/* สไตล์สำหรับข้อความ "ไม่มีรูปภาพเพิ่มเติม" */
.swal2-popup.swal-news-detail-popup .swal2-html-container p:has(+ .news-detail-images-container) {
    text-align: center;
    font-style: italic;
    color: #7f8c8d;
}

/* --- การปรับแต่งสำหรับหน้าจอขนาดเล็ก (Responsive) --- */
@media (max-width: 768px) {
    .swal2-popup.swal-news-detail-popup {
        width: 95vw !important; /* กว้างเกือบเต็มจอสำหรับมือถือ */
        padding: 20px;
    }

    .swal2-popup.swal-news-detail-popup .swal2-title {
        font-size: 1.5em;
    }

    .swal2-popup.swal-news-detail-popup .swal2-image {
        max-width: 90% !important;
    }

    .swal2-popup.swal-news-detail-popup .swal2-html-container p {
        font-size: 1em;
    }

    .swal2-popup.swal-news-detail-popup .news-detail-images-container img {
        width: 100px; /* ลดขนาดรูปภาพรายละเอียดสำหรับมือถือ */
        height: 70px;
    }
}

.product-slide-img {
    width: 100%;
    height: 40vh;
    object-fit: cover;
    border-radius: 8px;
}
 .AWARD-slide {
    display: none;
    transition: opacity 0.5s ease-in-out;
  }
.AWARD-slide.active {
    display: block;
}
.AWARD-slide-img {
    width: 100%;
    height: 40vh;
    object-fit: cover;
    border-radius: 8px;
}
.AWARD-dot {
    display: inline-block;
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background-color: gray;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}
.AWARD-dot.active {
    background-color: red;
}
.AWARD-dots {
    margin-top: 10px;
}