.dropdowns {
    position: relative;
    display: inline-block;
}

.dropdown-contents {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    top: 30px;
    left: -100px;
    bottom: -100px;
    min-width: 1200px;
    min-height: 800px;
    /* box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2); */
    z-index: 10;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 1s ease, transform 0.5s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
        /* เริ่มต้นที่เลื่อนขึ้น */
    }

    to {
        opacity: 1;
        transform: translateY(0);
        /* สิ้นสุดที่ตำแหน่งปกติ */
    }
}



.dropdowns:hover .dropdown-contents {
    display: block;
    animation: fadeInDown 0.5s ease forwards;
    opacity: 1;
    transform: translateY(0);
}

/* ปรับขนาดตามหน้าจอ */
@media (max-width: 720px) {
    .dropdown-contents {
        left: -300px;
    }
}

.truncates {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 450px;

}

.stickys {
    position: sticky;
}

.mySlides {
    display: none
}

.lr {
    position: relative;
    /* ทำให้สามารถใช้ left ได้ */
    left: 0;
    transition: left 0.3s;
    /* เพิ่มการเปลี่ยนแปลงนุ่มนวล */
}

.lr:hover {
    left: 10px;
}

.square-image {
    width: auto;
    /* ขนาดความกว้างที่ต้องการ */
    height: 150px;
    /* ขนาดความสูงที่ต้องการให้เท่ากันเพื่อให้เป็นจัตุรัส */
    overflow: hidden;
    /* ซ่อนส่วนที่เกินออกมานอกกรอบ */
}

.square-image img {
    width: 100%;
    /* ทำให้รูปขยายเต็ม */
    height: 100%;
    object-fit: cover;
    /* ทำให้รูปครอบเต็มพื้นที่และครอบเฉพาะส่วนที่เกิน */
}

.image-container {
    position: relative;
    display: inline-block;
    width: 100%;
    /* ขนาดตามรูปภาพ */
}

.image-container img {
    width: 100%;
    height: auto;
}

.text-overlay {
    position: absolute;
    bottom: 0;
    /* ระยะห่างจากล่างของรูป */
    left: 50%;
    transform: translateX(-50%);
    color: rgb(255, 255, 255);
    font-size: 18px;
    /* ปรับขนาดฟอนต์ตามต้องการ */
    background-color: rgba(95, 144, 250, 0.61);
    /* พื้นหลังโปร่งแสง */
    padding: 2px;
    border-radius: 2px;

}

.text-overlays {
    position: absolute;
    bottom: 0;
    left: 30px;
    transform: translateX(-50%);
    padding: 2px;
    border-radius: 2px;


}

.dot {
    border: none;
    border-top: 1px dotted #000;
    /* เส้นจุด */
    margin: 20px 0;
    /* ระยะห่างด้านบนและล่าง */
}

.vr::before {
    content: '';
    display: block;
    width: 1px;
    height: 30px;
    background-color: rgba(180, 178, 178, 0.603);
    /* สีของเส้น */
    margin: 0 10px;
}

.toggle-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #3498db;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.toggle-btn.active {
    background-color: #e74c3c;
    transform: rotate(135deg);
}

.toggle-btn:hover {
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

.circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #3498db;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    line-height: 50px;
    text-decoration: none;
    position: absolute;
    bottom: 80px;
    opacity: 0;
    transform: scale(0) translateY(0);
    transition: all 0.4s ease-out, transform 0.3s ease-in-out;
}

.circle i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: white;
}

.circle.circle-1 {
    bottom: 10px;
    /* background-color: #2ecc71; */
}

.circle.circle-2 {
    bottom: 10px;
    /* background-color: #9b59b6; */
}

.circle.active {
    opacity: 1;
    transform: scale(1) translateY(-100px);
}

.circle.circle-2.active {
    transform: scale(1) translateY(-160px);
}

.hidden {
    display: none;
}

.fs-13 {
    font-size: 6px;
}

.badgess {
    display: inline-block;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    background-color: red;
    border-radius: 12px;
    top: -5px;
}

.line {
    position: relative;
    /* text-decoration: line-through; */
    display: inline-block;

}

.line::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 40%;
    height: 1.5px;
    background-color: red;
}