/* ==== HEADER AREA ==== */
.page-header {
  background: #111;
  color: white;
  padding: 3.5rem;
  padding-bottom: 2rem;
}

.page-title {
  font-size: 2.4rem;
  font-family: 'EB GARAMOND', serif;
  font-weight: 600;
  margin-top: 1rem;
}

.breadcrumb {
  margin-bottom: 1rem;
}
.breadcrumb a {
  color: #aaa;
  font-size: 0.85rem;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

.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;
}


/* ==== SEARCH BAR ==== */
.top-search-bar {
  display: flex;
  width: 100%;
  margin-bottom: 1.5rem;
  gap: 0.5rem;
}

.top-search-bar input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}

.top-search-bar button {
  padding: 0.75rem 1.5rem;
  background-color: #111;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

/* ==== FILTER SECTION (from last message) ==== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.filters > div {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  min-width: 250px;
  flex: 1 1 300px;
}

.filters h3 {
  font-weight: 600;
  font-size: 1rem;
  color: #282735;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.filters ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.filters li {
  font-size: 0.85rem;
  color: #282735;
  margin-bottom: 0.75rem;
}

.filters input[type="checkbox"] {
  margin-right: 0.5rem;
  vertical-align: middle;
}


/* ==== POST RESULTS ==== */

.results-count{
    font-weight: 500;
    margin-bottom: 1rem;
    font-weight: 500;
    margin-bottom: 2rem;
    margin-top: 30px;
    padding: 30px;
    border: solid;
    border-radius: 10px;
    border-color: lightgray;
    background-color: white;
}

.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;
  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;
}


/* ==== 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;
}

.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;
}


/* ==== LOADER ==== */
.loader {
  width: 30px;
  height: 30px;
  border: 4px solid #ccc;
  border-top: 4px solid #1744da;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
  display: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.floating-view-btn {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #1744da;
  color: white;
  padding: 0.8rem 1.8rem;
  padding-top: 8px;
  padding-bottom: 8px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-decoration: none;
  z-index: 999;
  transition: background 0.3s ease;
}

.floating-view-btn:hover {
  background: #0d2f9a;
}

html {
  scroll-behavior: smooth;
}

.filters {
  transition: opacity 0.3s ease;
}




/* ==== RESPONSIVE ADJUSTMENTS ==== */
@media screen and (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .filters {
    flex-direction: column;
  }

  .post-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .post-icon img {
    width: 100px;
    height: 100px;
  }
  
  .loader {
  width: 15px;
  height: 15px;
  }
  
  .floating-view-btn {
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 0.75rem;
  }
  
}
