/* CSS สำหรับปุ่ม Show More และ Show Less */
.show-more-container,
.show-less-container {
    text-align: center;
    margin: 30px 0;
}

.show-more-btn,
.show-less-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.show-more-btn:hover,
.show-less-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Animation สำหรับการเปิด/ปิดรายการ */
.demo-cards-hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 0.5s ease;
}

.demo-cards-hidden[style*="display: block"] {
    opacity: 1;
    max-height: 5000px; /* ค่าที่มากพอสำหรับรายการทั้งหมด */
}

/* ไอคอนสำหรับปุ่ม */
.fas {
    font-size: 14px;
}

/* ปรับปรุงการเรียงตัวของ demo cards */
.demo-cards-visible, 
.demo-cards-hidden {
    display: flex;
    flex-direction: column;
    gap: 30px;
}