/* Container for Search Form */
#ajax-search-form {
  display: flex;
  flex-wrap: nowrap;
  align-items: end;
  /* justify-content: center; */
  gap: 10px;
  /* padding: 20px 0; */
}

/* Radio Button Form */

.radio-group {

}

.radio-group label{
  margin: 10px;
}

.radio-group input{
  padding: 3px;
}

#search-analysis-category {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  align-content: end;
}

.col-50{
  display: flex;
  width: 48%;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 5px;
}

.align-end{
  align-content: end;
}

.full-width{}

.full-width span, .full-width input{
  width: 100%;
}

/* Sort-Filter */

#sort-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Container for date selector */

#ajax-date-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Dropdown (Category Selector) */
#search-category {
  padding: 14px;
  font-size: 14px;
  border-radius: 5px;
  background-color: #ffffff;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

#search-post-category {
  padding: 10px;
  font-size: 14px;
  border-radius: 5px;
  background-color: #ffffff;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

#input-search {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
}

#search-category:hover {
  background-color: #0073e6;
  color: #fff;
}

#search-analysis {
  padding: 14px;
  font-size: 14px;
  border-radius: 5px;
  background-color: #ffffff;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

#search-analysis:hover {
  background-color: #0073e6;
  color: #fff;
}

/* Input Field */
#search-query {
  flex: 1;
  min-width: 200px;
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 5px;
  outline: none;
  transition: all 0.3s ease;
}

#search-query:focus {
  border-color: #005bb5;
  box-shadow: 0 0 5px rgba(0, 115, 230, 0.5);
}

/* Search Button */
#search-button {
  padding: 10px 20px;
  font-size: 16px;
  color: white;
  background-color: #0073e6;
  border: 2px solid #0073e6;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#search-button:hover {
  background-color: #005bb5;
  border-color: #005bb5;
}

/* Search Results Container */
#search-results {
  margin-top: 20px;
  width: 100%;
  padding: 15px;
  font-size: 14px;
  color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
  #ajax-search-form {
    flex-direction: column;
    align-items: stretch;
  }

  #search-category,
  #search-query,
  #search-button {
    width: 100%;
  }
}

/* Spinner Animation */
#loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 115, 230, 0.3);
  border-top: 4px solid #0073e6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

/* Spinner Animation Keyframes */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#search-results .search-result {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
}

#search-results .search-result a {
  font-size: 18px;
  font-weight: bold;
  color: #0073aa;
  text-decoration: none;
}

#search-results .search-result a:hover {
  text-decoration: underline;
}

#search-results .search-result p {
  font-size: 14px;
  color: #555;
  margin-top: 10px;
}

.search-result {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-result a {
  flex-shrink: 0; /* Prevent image and title from shrinking */
  text-decoration: none;
  color: inherit;
}

.search-thumbnail {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.search-result-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.search-result h3 {
  font-size: 1.2em;
  margin: 0;
  color: #333;
}

.search-result p {
  margin: 8px 0 0;
  color: #666;
  font-size: 0.95em;
  line-height: 1.5;
}

.search-result:hover {
  background-color: #f1f1f1;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.search-result h3:hover {
  color: #0073e6;
  text-decoration: underline;
}

.search-date {
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}

.search-category {
  font-size: 14px;
  font-weight: bold;
  color: #0073aa;
  margin-bottom: 5px;
}

mark {
  background-color: yellow;
  color: black;
  padding: 0 3px;
  border-radius: 2px;
}

/* Container Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: 20px 0;
  padding: 10px;
}

/* Pagination Button */
.pagination-button {
  display: inline-block;
  padding: 8px 15px;
  font-size: 14px;
  color: #0073e6;
  border: 2px solid #0073e6;
  background-color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hover Effect */
.pagination-button:hover {
  background-color: #0073e6;
  color: white;
}

/* Disabled Button */
.pagination-button:disabled {
  background-color: #f0f0f0;
  color: #cccccc;
  border-color: #cccccc;
  cursor: not-allowed;
}

/* Active Page */
.pagination-button.active {
  background-color: #0073e6;
  color: white;
  border-color: #005bb5;
  pointer-events: none;
}

/* Previous and Next Buttons */
.prev-button,
.next-button {
  font-weight: bold;
}


/* Custom checkbox */

.checkbox{

}

.checkbox span{
  padding: 15px;
}