/* documents.css */

.main-content-documents {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.sidebar-documents {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  height: fit-content;
}

.sidebar-documents .sidebar-title {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  border-right: 3px solid #e67e22;
  padding-right: 10px;
}

.sidebar-documents .filter-group {
  display: flex;
  flex-direction: column;
}

.sidebar-documents .category-link {
  display: block;
  padding: 0.7rem 1rem;
  margin-bottom: 0.5rem;
  background-color: #f7f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s, border-color 0.3s;
}

.sidebar-documents .category-link:hover {
  background-color: #e0e0e0;
}

.sidebar-documents .category-link.active {
  background-color: #2c3e50;
  color: #fff;
  border-color: #2c3e50;
}

.documents-section {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.documents-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.document-item {
  display: flex;
  align-items: flex-start;
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}

.document-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.document-thumbnail {
  width: 150px;
  height: 150px;
  border-radius: 6px;
  object-fit: cover;
  margin-left: 2rem;
}

.document-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.document-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
}

.document-author {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 0.8rem;
}

.document-description {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1rem;
}

.document-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: auto;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
  background-color: #2c3e50;
  color: #fff;
}

.read-more-btn:hover {
  background-color: #34495e;
}

.no-results {
  text-align: center;
  font-size: 1.2rem;
  color: #777;
  margin-top: 2rem;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 0.5rem;
}

.page-link {
  display: block;
  padding: 0.7rem 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  color: #333;
  transition: background-color 0.3s, color 0.3s;
}

.page-link:hover {
  background-color: #f39c12;
  color: #fff;
}

.page-link.active {
  background-color: #2c3e50;
  color: #fff;
  border-color: #2c3e50;
  pointer-events: none;
}
