body {
  background-color: #f9f9f9;
  color: #000;
}
.nav-item button {
  color: #000 !important;
}
.nav-item button:hover {
  color: #e2231b !important;
  text-decoration: underline;
}
.tab-content {
  margin-top: 10px;
  height: 100vh;
}
.filters-tab,
.favourites {
  background: #f7f8fa;
  font-size: 16px;
  font-family: dm-sans;
  max-height: calc(100vh - 50px); 
  overflow-y: auto;
}
.filters-tab a,
.favourites a {
  color: #000;
  text-decoration: none;
  margin-top: 5px;
  margin-bottom: 5px;
}
.filters-tab a:hover,
.favourites a:hover {
  color: #e2231b;
  text-decoration: underline;
}
.publication-item {
  font-size: 14px;
  font-weight: 500;
}
.publication-item h6 {
  font-style: bold !important;
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
  font-size: 16px;
  font-weight: 700;
  color: #e2231b !important;
}
.publication-item h5 {
  font-style: bold !important;
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
  font-size: 16px;
  font-weight: 700;
  color: #424242;
  text-align: center;
}
.publication-item h6 a {
  color: #e2231b !important;
}
.publication-item h6 a:hover {
  color: #e2231b !important;
  text-decoration: underline;
}
.link-blue {
  color: #6c6c6c;
  text-decoration: underline;
}
.link-blue:hover {
  color: #e2231b;
  text-decoration: underline;
}
.publication-container hr {
  border: 1px solid #000 !important;
}

.feature-image-container {
  width: 100%;
  height: 45vh;
  overflow: hidden;
  position: relative;
}

.comment-input,
.reply-input {
  padding: 1rem;
  width: 100%;
  margin-top: 10px;
}

.btn-post {
  background-color: #000 !important;
  color: #fff;
}

.btn-post:hover {
  color: #fff;
  background-color: #e2231b !important;
}

.btn-search {
  background-color: #000 !important;
  color: #fff;
}

.btn-search:hover {
  color: #fff;
  background-color: #e2231b !important;
}

.btn-cancel {
  background-color: #000 !important;
  color: #fff;
}

.btn-cancel:hover {
  color: #fff;
  background-color: #e2231b !important;
}

.remove-row {
  color: #fff;
  background-color: #000 !important;
}

.remove-row:hover {
  color: #fff;
  background-color: #e2231b !important;
}

.comments-section {
  transition: all 0.3s ease-in-out;
}

.comment-section {
  width: 100%;
  margin: 20px auto;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.comment-section h2 {
  margin-bottom: 20px;
  color: #333;
}

.comment {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.comment-header {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.comment-author {
  font-weight: bold;
  color: #000;
}

.comment-time {
  font-size: 12px;
  color: #999;
}

.comment-body {
  font-size: 15px;
  margin-bottom: 10px;
  color: #333;
}

.comment-actions {
  display: flex;
  gap: 10px;
}

.reply-btn,
.like-btn,
.post-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
}

.reply-btn:hover,
.like-btn:hover,
.post-btn:hover {
  background: #0056b3;
}

.replies {
  margin-left: 20px;
  border-left: 2px solid #e0e0e0;
  padding-left: 10px;
  margin-top: 10px;
}

.reply {
  margin-top: 10px;
}

.new-comment {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

textarea {
  width: 100%;
  height: 50px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: none;
  font-size: 14px;
}

.advanced-search-container {
  margin-top: 5rem;
  display: flex;
  margin: 20px;
  width: 100% !important;
}
.filters {
  width: 250px;
  /* background-color: #f8f9fa; */
  background-color: #424242;
  color: #fff;
  padding: 15px;
  border-right: 1px solid #ccc;
  height: 100%;
}
.filters h5 {
  margin-bottom: 15px;
  font-size: 20px !important;
  font-family: dm-sans !important;
  color: #fff;
}
.filters a {
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
  color: #fff;
}
.filters a:hover {
  background-color: red !important;
  color: #fff !important;
  text-decoration: underline !important;
}
.active-filter {
  border: none;
  color: #e2231b !important;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  transition-duration: 0.2s;
  cursor: pointer;
  height: 40px;
  margin-top: 10px;
  margin-bottom: 10px;
  /* margin-left: 10px; */
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  width: 160px;
}
.query-section {
  flex-grow: 1;
  padding: 20px;
  background-color: #ffffff;
  /* border: 1px solid #ccc; */
  border-radius: 5px;
}
.query-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.query-row select,
.query-row input {
  margin-right: 10px;
}
.query-row button {
  margin-left: 5px;
}
.btn-add-row {
  background-color: #e2231b !important;
  color: #fff;
}
.create-btn {
  background-color: #242424 !important;
  color: #fff;
  margin-left: 10px;
}
.create-btn:hover {
  color: #fff;
  background-color: #e2231b !important;
}
.search-results {
  list-style-type: none;
  padding-left: 0;
  position: absolute;
  width: 95%;
  margin-left: 4px;
  z-index: 1000;
  background-color: white;
  border: 1px solid #ddd;
  max-height: 300px;
  overflow-y: auto;
  display: none;
}
.search-results li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.fa-heart {
  cursor: pointer;
  color: gray;
  transition: color 0.3s ease;
}

.fa-heart.favorited {
  color: red;
}

.flash-message {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 14px;
  color: white;
}

.flash-message.success {
  background-color: #28a745;
}

.flash-message.warning {
  background-color: #ffc107;
  color: #212529;
}

.flash-message.error {
  background-color: #dc3545;
}

.pagination>.active>a, .pagination>.active>span, .pagination>.active>a:hover, .pagination>.active>span:hover, .pagination>.active>a:focus, .pagination>.active>span:focus
 {
    color: #fff !important;
    background-color: #242424 !important;
    border-color: #242424 !important;
}

.pagination>li>a, .pagination>li>span {
    color: #242424 !important;
}

#search_concept {
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23343a40" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M1.5 5h13l-6.5 6L1.5 5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  width: 120px !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.5rem;
}
.current-query-container {
  border: none !important;
  font-family: dm-sans !important;
  width: 100% !important;
}
.current-search-header {
  text-align: center;
  background-color: #fff;
  color: #000;
  border-radius: 8px 8px 0 0;
  font-family: dm-sans !important;
}
.current-search-header h5 {
  text-align: center !important;
  font-family: dm-sans !important;
  font-size: 15px;
}
.current-search-header i {
  font-size: 1.2rem;
}
.current-search-body {
  background-color: #f7f8fa !important;
}
.query-link {
  color: #e2231b !important;
}
.btn-clear-query {
  background-color: #000 !important;
  color: #fff;
}
.btn-clear-query:hover {
  color: #fff;
  background-color: #e2231b !important;
}

@media only screen and (min-width: 500px) and (max-width: 768px) {
  .current-query-container {
    max-width: 100% !important;
    margin: auto !important;
    margin-top: 1rem !important;
  }
}

@media only screen and (min-width: 769px) and (max-width: 992px) {
  .current-query-container {
    max-width: 100% !important;
    margin: auto;
    margin-top: 1rem !important;
  }
}

@media only screen and (min-width: 993px) and (max-width: 1199px) {
  .current-query-container {
    max-width: 262px !important;
    margin-top: 1rem !important;
    margin: auto;
  }
}

@media only screen and (min-width: 1200px) {
  .current-query-container {
    max-width: 100% !important;
    /* width: 602px !important; */
    margin: auto !important;
    margin-top: 1rem !important;
  }
}

