/* Bộ lọc Tabs */
.wt-cong-trinh-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.wt-cong-trinh-tab {
  background-color: #f3f4f6;
  color: #111827;
  border: 1px solid #e5e7eb;
  padding: 8px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 15px;
}

.wt-cong-trinh-tab:hover {
  background-color: #e5e7eb;
  border-color: transparent;
}

.wt-cong-trinh-tab.active {
  background-color: #0b1a2a; /* Màu tối giống thiết kế */
  color: #ffffff;
  border-color: #0b1a2a;
}

/* Grid Layout */
.wt-cong-trinh-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

/* Card Công trình */
.wt-cong-trinh-card {
  border-radius: 8px;
  overflow: hidden;
  background-color: #0b1a2a; /* Màu nền tối của nội dung thẻ */
  color: #ffffff;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.wt-cong-trinh-image {
  width: 100%;
  height: 340px; /* Chiều cao cố định giống ảnh 591x340 */
  overflow: hidden;
}

.wt-cong-trinh-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wt-cong-trinh-content {
  padding: 24px;
  flex-grow: 1;
}

.wt-cong-trinh-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 16px;
  text-transform: uppercase;
}

/* Các trường meta */
.wt-cong-trinh-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.wt-meta-row {
  display: flex;
}

.wt-meta-label {
  font-weight: 700;
  width: 140px;
  flex-shrink: 0;
  color: #ffffff;
}

.wt-meta-value {
  color: #e2e8f0;
}

/* Nút hiển thị thêm */
.wt-cong-trinh-loadmore-wrap {
  text-align: center;
  margin-top: 24px;
}

.wt-cong-trinh-loadmore-btn {
  background-color: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
  padding: 10px 32px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.wt-cong-trinh-loadmore-btn:hover {
  background-color: #f3f4f6;
}

.wt-cong-trinh-not-found {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px;
  font-style: italic;
  color: #6b7280;
}

@media (max-width: 768px) {
  .wt-cong-trinh-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .wt-cong-trinh-tab {
    padding: 8px 4px;
    text-align: center;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .wt-cong-trinh-grid {
    grid-template-columns: 1fr;
  }

  .wt-cong-trinh-image {
    height: auto;
  }

  .wt-cong-trinh-image img {
    height: auto;
  }
}
