:root {
  --wp-emerald: #198754;
}

html, body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.wp-hero {
  background: radial-gradient(1000px 220px at 15% 0%, rgba(25, 135, 84, 0.14), transparent 55%),
    radial-gradient(900px 240px at 90% 10%, rgba(13, 110, 253, 0.12), transparent 60%),
    #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.wp-post-card {
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.wp-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
}

.wp-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}

.wp-img-wrap {
  height: 220px;
  background: #f1f5f9;
  overflow: hidden;
}
.wp-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wp-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.01));
}

.wp-english-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  min-height: calc(1.5em * 4);
}

.wp-arabic {
  font-family: 'Scheherazade New', serif;
  font-size: 22px;
  line-height: 1.9;
  direction: rtl;
  text-align: right;
}

.wp-rtl {
  direction: rtl;
  text-align: right;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Homepage/Search JS pagination */
#pagination nav {
  display: inline-block;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

#pagination .pagination {
  gap: 6px;
}

#pagination .page-item .page-link {
  border: 0;
  border-radius: 10px;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  background: transparent;
  font-weight: 600;
  line-height: 1;
  transition: all 0.15s ease;
}

#pagination .page-item .page-link:hover {
  background: rgba(25, 135, 84, 0.12);
  color: #0f5132;
}

#pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #198754, #157347);
  color: #fff;
  box-shadow: 0 8px 18px rgba(25, 135, 84, 0.30);
}

#pagination .page-item.disabled .page-link {
  color: #94a3b8;
  background: #f8fafc;
  opacity: 1;
}

#pagination .page-item:not(.disabled):not(.active) .page-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.18);
}

@media (max-width: 576px) {
  .wp-card-actions {
    grid-template-columns: 1fr;
  }

  #pagination nav {
    width: 100%;
    padding: 6px;
  }

  #pagination .pagination {
    justify-content: center;
    gap: 4px;
  }

  #pagination .page-item .page-link {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 0.92rem;
  }
}
