
/* Card chung */
.bmc-csv-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;                        
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

/* Vùng ảnh – cố định tỷ lệ & chiều cao */
.bmc-csv-img {
  position: relative;
  width: 100%;
  padding-top: 62%;                      
  overflow: hidden;
}

.bmc-csv-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;                    
  display: block;
}

/* Body – dùng flex để text & nút căn đều */
.bmc-csv-body {
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;                       
}

/* header: icon + tên */
.bmc-csv-head {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.bmc-csv-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #00a36d0d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.bmc-csv-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bmc-csv-name {
  font-size: 20px;
  font-weight: 700;
  color: #008063;
  margin: 0;
}

.bmc-csv-text {
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
  flex: 1 1 auto;                      
}

/* phần nội dung – mặc định hiển thị khoảng 4 dòng */
.bmc-csv-more {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  max-height: 6.5em;                    
  transition: max-height 0.35s ease;
}

/* khi mở – cho text bung hết */
.bmc-csv-card.is-open .bmc-csv-more {
  -webkit-line-clamp: unset;
  max-height: 1000px;
}

/* nút Đọc tiếp / Thu gọn – luôn nằm dưới cùng body */
.bmc-csv-toggle {
  margin-top: 16px;
  align-self: flex-start;
  border-radius: 999px;
  border: 1px solid #00a36d;
  padding: 8px 20px;
  background: #ffffff;
  color: #008063;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.bmc-csv-toggle:hover {
  background: #00a36d0d;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.bmc-csv-toggle-icon {
  display: inline-block;
  transition: transform 0.2s ease;
}

.bmc-csv-card.is-open .bmc-csv-toggle-icon {
  transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 767.98px) {
  .bmc-csv-body {
    padding: 20px 18px 18px;
  }
  .bmc-csv-name {
    font-size: 18px;
  }
  .bmc-csv-img {
    padding-top: 70%;                   
  }
}
