/* تكامل قالب ووردبريس — تاكسي جابر الأحمد */

/* شريط الإدارة */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* عناصر مخفية لقارئات الشاشة */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff;
  clip: auto;
  clip-path: none;
  color: var(--night);
  display: block;
  font-size: 0.9rem;
  height: auto;
  inset-inline-start: 1rem;
  padding: 0.8rem 1.2rem;
  top: 1rem;
  width: auto;
  z-index: 100000;
}

/* شعار مخصص */
.brand__custom { max-height: 56px; width: auto; display: block; }
.brand--footer .brand__custom { max-height: 64px; }

/* القوائم */
.nav .menu-item { position: relative; }
.nav .current-menu-item > a,
.nav .current-menu-ancestor > a,
.mobile-nav .current-menu-item > a {
  color: #fff;
  background: var(--night);
}
.nav .current-menu-item > a::after { opacity: 1; transform: scaleX(1); }
.mobile-nav .menu-item { list-style: none; }
.footer__links .menu-item { list-style: none; }
.footer__links ul { list-style: none; margin: 0; padding: 0; }

/* المحتوى */
.entry > * + *,
.post__content > * + * { margin-top: 1.15rem; }
.entry img,
.post__content img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}
.entry h2,
.post__content h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.5;
  margin-top: 2.2rem;
}
.entry h3,
.post__content h3 { font-size: 1.25rem; margin-top: 1.8rem; }
.entry ul,
.entry ol,
.post__content ul,
.post__content ol { padding-inline-start: 1.4rem; }
.entry li + li,
.post__content li + li { margin-top: 0.4rem; }
.entry a,
.post__content a { color: #b07b00; text-decoration: underline; text-underline-offset: 3px; }
.entry a:hover,
.post__content a:hover { color: var(--night); }
.entry blockquote,
.post__content blockquote {
  margin: 1.8rem 0;
  padding: 1.2rem 1.6rem;
  border-inline-start: 4px solid var(--yellow);
  background: #fff8e1;
  border-radius: 12px;
  font-weight: 500;
}
.entry table,
.post__content table { width: 100%; border-collapse: collapse; }
.entry th,
.entry td,
.post__content th,
.post__content td { border: 1px solid #e5e0d2; padding: 0.6rem 0.8rem; text-align: start; }
.entry th,
.post__content th { background: #f7f3e6; }

/* مكونات ووردبريس */
.wp-block-image img { border-radius: 18px; }
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--yellow);
  color: var(--night);
  font-weight: 800;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  text-decoration: none;
}
.wp-block-button__link:hover { background: var(--yellow-deep, #e9a900); color: var(--night); }
.wp-block-quote { border-inline-start-color: var(--yellow); }
.wp-block-table table { border-collapse: collapse; }
.wp-block-separator { border-color: #e5e0d2; }

/* ترقيم الصفحات */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.nav-links .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.8rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e7e1d1;
  color: var(--night);
  font-weight: 700;
  text-decoration: none;
}
.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
  background: var(--night);
  border-color: var(--night);
  color: #fff;
}

/* البحث */
.search-form {
  display: flex;
  gap: 0.6rem;
  max-width: 560px;
  margin-inline: auto;
}
.search-form label { flex: 1; }
.search-form input[type="search"] {
  width: 100%;
  height: 52px;
  border: 1px solid #e0d9c6;
  border-radius: 14px;
  padding: 0 1rem;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
}
.search-form .search-submit {
  height: 52px;
  border: 0;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--night);
  font-family: inherit;
  font-weight: 800;
  padding: 0 1.4rem;
  cursor: pointer;
}

/* التعليقات */
.comments-area { margin-top: 3rem; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 1rem 0; border-bottom: 1px solid #eee7d8; }
.comment-meta { font-size: 0.85rem; color: #6b7280; }

/* الجداول المتجاوبة */
.wp-block-table { overflow-x: auto; }

/* الصور البارزة في البطاقات */
.card__media img { aspect-ratio: 4 / 3; object-fit: cover; }
