/* ============================
   TamDat – Expandable Content
   ============================ */

.tamdat-desc-wrapper {
    position: relative;
    margin-bottom: 20px;
}

/* Nội dung */
.tamdat-desc-content {
    max-height: 320px;
    overflow: hidden;
    transition: max-height 0.4s ease;
    position: relative;
}

/* Khi mở */
.tamdat-desc-wrapper.is-expanded .tamdat-desc-content {
    max-height: none;
}

/* Gradient mờ dưới */
.tamdat-desc-content::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff);
    pointer-events: none;
}

.tamdat-desc-wrapper.is-expanded .tamdat-desc-content::after {
    display: none;
}

/* Khu vực nút */
.tamdat-desc-toggle {
    text-align: center;
    margin-top: -5px;
}

/* Button */
.tamdat-btn {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    color: var(--primary-color, #016efe);
    padding: 6px 22px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tamdat-btn:hover {
    background-color: var(--primary-color, #016efe);
    color: #ffffff;
}

/* Ẩn nút Thu gọn mặc định */
.tamdat-btn-less {
    display: none;
}

/* Khi mở */
.tamdat-desc-wrapper.is-expanded .tamdat-btn-more {
    display: none;
}

.tamdat-desc-wrapper.is-expanded .tamdat-btn-less {
    display: inline-block;
}
