.container {
  display: flex;
  padding: 3.5rem;
  gap: 2rem;
  background-color: ghostwhite;
}

.sidebar {
  width: 750px;
  background: white;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
}

/* Desktop: Show static sidebar */
.sidebar {
  display: block;
}

.filters details {
  margin-bottom: 1rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
}

.filters summary {
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #282735;
  margin-bottom: 12px;
}

.filters summary::after {
  content: '▾';
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.filters details[open] summary::after {
  transform: rotate(180deg);
}

.filters ul {
  list-style: none;
/*  padding-left: 1rem; */
  margin-top: 0.5rem;
}

.filters li {
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: #282735;
}

/* Top search bar */
.top-search-bar {
  display: flex;
  width: 100%;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.top-search-bar input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.top-search-bar button {
  padding: 0.75rem 1.5rem;
  background-color: #111;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

/* Results count */
.results-count {
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Post cards */
.post-row {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  margin-bottom: 1.5rem;
  background: white;
  border-radius: 10px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: inherit;
  gap: 1.5rem;
  transition: box-shadow 0.2s ease;
}

.post-row:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.post-icon img {
  width: 140px;
  height: 140px;
  object-fit: contain;
}

.post-content {
  flex: 1;
}

.meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.3rem;
}

.post-content h2 {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0.2rem 0 0.5rem;
}

.post-content h2 a{
    color:black;
}

a {
    text-decoration: none;
}

.post-content .excerpt {
  font-size: 0.9rem;
  color: #444;
}

.tags {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tags span {
  background: #EFF4FF;
  color: #003594;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 9999px;
}

/* Bookmark icon */
.bookmark {
  font-size: 1.25rem;
  color: #999;
  align-self: start;
}

/* Header section */
.page-header {
  background: #111;
  color: white;
  padding: 3.5rem;
  padding-bottom: 2rem;
}

.breadcrumb a {
  color: #aaa;
  font-size: 0.85rem;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Toggle buttons */
.toggle-buttons {
  margin-top: 1.2rem;
  display: inline-flex;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  border: 2px solid #e2e8f0;
}

.toggle-btn {
  all: unset;
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #111;
  background: white;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-btn.active {
  background: #1744da;
  color: white;
  font-weight: 600;
  margin: 3px;
  border-radius: 10px;
}

.toggle-btn:not(.active):hover {
  background-color: #f1f5f9;
}

.page-title {
  font-size: 2.4rem;
  font-family: 'EB GARAMOND', serif;
  font-weight: 600;
  margin-top: 1rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #333;
  flex-wrap: wrap;
  gap: 1rem;
}

.pagination .page-numbers {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.pagination .page-numbers a,
.pagination .page-numbers span {
  padding: 0.4rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  color: #111;
  font-weight: 500;
  font-size: 0.85rem;
  background: #f1f5f9;
}

.pagination .page-numbers .current {
  background-color: #1744da;
  color: white;
  font-weight: 600;
  border-color: transparent;
}

.pagination .page-numbers a:hover {
  background-color: #e2e8f0;
}

/* Showing dropdown section */
.pagination .showing {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination select {
  padding: 0.3rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.85rem;
}

::marker {
    content: none;
    visibility: hidden !important;
    display: none !important;
    }
    

.loader {
  width: 30px;
  height: 30px;
  border: 4px solid #ccc;
  border-top: 4px solid #1744da;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 10px auto;
  display: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ajax-results {
  margin-top: 1rem;
}

/* Floating Filter Button */
.filter-toggle-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1744da;
  color: white;
  padding: 0.75rem 1.2rem;
  border: none;
  border-radius: 30px;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 999;
}

/* Filter Popup Overlay */
.filter-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

/* Filter Popup Box */
.filter-popup {
  background: white;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 1.5rem;
  border-radius: 10px;
  position: relative;
}

/* Close Button */
.close-filter-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #333;
  cursor: pointer;
}

/* Hide sidebar on mobile */
@media screen and (max-width: 768px) {
  .sidebar {
    display: none;
  }
  .filter-toggle-btn {
    display: block;
  }
  .container {
    flex-direction: column;
    padding: 1.5rem;
  }
  .post-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .post-icon img {
    width: 100px;
    height: 100px;
  }
}





