/* ==========================================================================
   elTAHFIDH Archive & Search CSS
   ========================================================================== */

.archive-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, .85);
  max-width: 680px;
  margin: 10px auto 0;
}

.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 50px;
}
.post {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius, 14px);
  overflow: hidden;
  box-shadow: var(--shadow, 0 10px 30px rgba(16, 22, 79, .08));
}
.post__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef1f8;
}
.post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.post:hover .post__media img {
  transform: scale(1.04);
}
.post__body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.post__body time {
  font-size: 13px;
  color: var(--muted, #5b6179);
  margin-bottom: 8px;
  display: block;
}
.post__body h3 {
  font-size: 20px;
  margin: 0 0 12px;
  line-height: 1.35;
}
.post__body h3 a {
  color: var(--blue-900, #10164f);
  text-decoration: none;
}
.post__body h3 a:hover {
  color: var(--red, #e31e24);
}
.post__body p {
  color: var(--muted, #5b6179);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
}
.pagination .page-numbers,
.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e3e6f0;
  color: var(--blue-900, #10164f);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all .2s;
}
.pagination .page-numbers.current,
.nav-links .page-numbers.current {
  background: var(--red, #e31e24);
  border-color: var(--red, #e31e24);
  color: #fff;
}
.pagination .page-numbers:hover:not(.current),
.nav-links .page-numbers:hover:not(.current) {
  background: #f4f6fb;
  border-color: var(--blue-700, #1f2a8a);
}

.et-sidebar {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius, 14px);
  box-shadow: var(--shadow, 0 10px 30px rgba(16, 22, 79, .06));
}
.et-sidebar .widget {
  margin-bottom: 32px;
}
.et-sidebar .widget-title {
  font-size: 18px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red, #e31e24);
}
