/* ================== LAYOUT CHÍNH ================== */
.project-container {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.project-container .main-content {
  flex: 1 1 72%;
}

.project-container .sidebar {
  flex: 1 1 25%;
  box-sizing: border-box;
  background: #fff;
}

@media (max-width: 768px) {
  .project-container {
    flex-direction: column;
  }
  .project-container .main-content,
  .project-container .sidebar {
    flex: 1 1 100%;
  }
}

/* ================== TÌM KIẾM DỰ ÁN ================== */
.search-container {
  margin-bottom: 30px;
  background-color: #f9f9f9;
  border: 2px solid #30a753;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
}

.search-container form {
  flex: 1;
  display: flex;
  height: 44px;
  margin: 0;
}

.search-container .search-icon {
  padding: 0 12px;
  display: flex;
  align-items: center;
}

.search-container .search-icon svg {
  fill: #30a753;
}

#search-input {
  flex: 1;
  padding: 0 15px;
  border: none;
  font-size: 14px;
  height: 100%;
  background-color: transparent;
  outline: none;
}

#category-filter {
  width: 180px;
  padding: 0 15px;
  border: none;
  border-left: 1px solid #ddd;
  background-color: #f9f9f9;
  font-size: 14px;
  height: 100%;
  appearance: none;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L0 3h12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px;
  padding-right: 30px;
}

#news-search-button.search-btn {
  padding: 0 20px;
  background-color: #30a753;
  color: white;
  border: none;
  font-size: 14px;
  font-weight: 500;
  height: 100%;
  white-space: nowrap;
  border-radius: 0;
}

.search-icon-button {
  display: none;
}

@media (max-width: 768px) {
  .search-container {
    padding: 10px;
    display: block;
    border: 2px solid #30a753;
    border-radius: 8px;
    background-color: #f9f9f9;
  }

  .search-container form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: auto;
  }

  .search-container .search-icon {
    display: none;
  }

  #search-input {
    height: 44px;
    padding: 12px 12px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 100%;
  }

  .bottom-row {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  #category-filter {
    flex: 1;
    height: 44px;
    font-size: 14px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L0 3h12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px;
    padding-right: 30px;
    width: auto;
  }

  .search-icon-button {
    display: flex;
    width: 56px;
    height: 44px;
    background-color: #30a753;
    border: none;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
  }

  .search-icon-button svg {
    width: 24px;
    height: 24px;
    fill: #fff;
  }

  #news-search-button.search-btn {
    display: none;
  }
}

/* ================== GRID DỰ ÁN ================== */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

/* ================== CARD DỰ ÁN ================== */
.project-card {
  flex: 0 0 32%;
  max-width: 33.3333%;
  padding: 0 10px;
  box-sizing: border-box;
  margin: 0 0 5px 5px;
  border: 2px dotted #30a753;
  border-radius: 12px;
  padding: 15px;
  background: #f9f9f9;
  text-align: center;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

@media (max-width: 1024px) {
  .project-card {
    flex: 0 0 48%;
    max-width: 48%;
  }
}

@media (max-width: 768px) {
  .project-card {
    flex: 0 0 100%;
    max-width: 97.5%;
  }
}

.project-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin-bottom: 10px;
  border-radius: 6px;
  background-color: #e8f9f0;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-info h3 {
  font-size: 15px;
  margin-bottom: 5px;
  color: #222;
  font-weight: 600;
}

.project-info p {
  font-size: 14px;
  color: #444;
  margin: 3px 0;
}

/* ================== SIDEBAR BỘ LỌC ================== */
.filters-container {
  font-size: 14px;
}

.filter-section {
  margin-bottom: 25px;
}

.filter-section h3 {
  background-color: #30a753;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px 6px 0 0;
  margin: 0;
  font-size: 15px;
}

.filter-list {
  padding: 10px 12px;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-top: none;
  list-style: none;
  margin: 0;
}

.filter-list li {
  margin-bottom: 6px;
}

.filter-item {
  display: inline-block;
  padding: 4px 8px;
  text-decoration: none;
  color: #333;
  border-radius: 4px;
  transition: 0.3s;
}

.filter-item:hover,
.filter-item.active {
  background: #30a753;
  color: #fff;
}

.filter-item.filter-parent {
  font-weight: bold;
}

/* ================== PHÂN TRANG ================== */
.pagination a.active,
.pagination a:hover {
  background-color: #30a753;
  color: white;
  border-color: #30a753;
}

.section2-title {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  color: #4285f4;
}

.taxonomy-pagination a {
  padding: 7px 15px;
  margin: 0 2px;
  border: 1px solid #c7c7c7;
}

.taxonomy-pagination a:hover,
span.page-numbers.current {
  display: inline-block;
  background: #30a753;
  color: #fff;
  padding: 7px 15px;
  min-width: 40px;
  text-align: center;
}

/* ================== TOGGLE DANH MỤC CHA/CON ================== */
.filter-item.has-children {
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-item .toggle-icon {
  margin-left: 6px;
  font-size: 11px;
  color: #30a753;
}

.sub-categories {
  list-style: none;
  padding-left: 15px;
  margin: 0;
}

.sub-categories .filter-item {
  font-weight: normal;
  padding-left: 10px;
}

.sub-categories li::marker {
  content: none;
}

.sub-categories li {
  list-style: none;
  margin: 5px 0;
}
