/* =========================================================================
   YEHEMAK — صفحات الأخبار (القسم + التفاصيل)
   تكملة لـ site.css — تعتمد على نفس متغيّرات الثيم.
   ========================================================================= */

/* تخطيط عمودين: محتوى + شريط جانبي */
.yh-layout {
  display: grid;
  /* الحسبة: المحتوى = عرض الـ container (أقصاه 1240) − الشريط (300 = عرض .yh-aside بالظبط) − الفراغ (20)
     → الاتنين مالين الـ container، فحافتهم على نفس خط اللوجو والبحث. minmax(0,…): محتوى طويل ما يوسّعش العمود. */
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
}

/* ----- ترويسة قسم: شريط + عنوان + خط + رابط ----- */
.yh-sec-head { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.yh-sec-head--lg { margin: 34px 0 20px; }
.yh-sec-head__bar { width: 5px; height: 24px; background: var(--accent); border-radius: 3px; }
.yh-sec-head--lg .yh-sec-head__bar { height: 26px; }
.yh-sec-head__title {
  margin: 0;
  font-family: 'Markazi Text', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--headline);
}
.yh-sec-head--lg .yh-sec-head__title { font-size: 27px; }
.yh-sec-head__line { flex: 1; height: 1px; background: var(--border); }
.yh-sec-head__all {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ----- الهيرو ----- */
.yh-hero {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  height: 390px;
  background: #0f2342;
}
.yh-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; background-size: cover; background-position: center; opacity: .95; }
.yh-hero__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,18,38,.95), rgba(8,18,38,.2) 58%, rgba(8,18,38,.05)); }
.yh-hero__body { position: absolute; bottom: 0; right: 0; left: 0; padding: 34px; }
.yh-hero__title { font-family: 'Markazi Text', serif; font-size: 37px; font-weight: 700; line-height: 1.3; margin: 14px 0 8px; color: #fff; }
.yh-hero__excerpt { margin: 0; font-size: 15px; color: #dbe4f0; max-width: 78%; line-height: 1.7; }
.yh-hero__meta { margin-top: 13px; font-size: 13px; color: #aebfd6; display: inline-flex; gap: 7px; align-items: center; }

.yh-chip { background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; padding: 5px 13px; border-radius: 5px; display: inline-block; }
.yh-chip--sm { font-size: 11px; padding: 3px 10px; border-radius: 4px; }

/* ----- شبكات ----- */
.yh-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }

/* بطاقة الهايلايت (صورة بخلفية + عنوان) */
.yh-mini {
  position: relative; display: block; border-radius: 12px; overflow: hidden; height: 190px; background: #0f2342;
}
.yh-mini__img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .9; }
.yh-mini__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,18,38,.95), rgba(8,18,38,.12) 72%); }
.yh-mini__body { position: absolute; bottom: 0; right: 0; left: 0; padding: 16px; }
.yh-mini__title { margin: 9px 0 0; font-family: 'Markazi Text', serif; font-size: 19px; font-weight: 600; line-height: 1.45; color: #fff; }

/* ----- بطاقة خبر (تعمل grid و rows) ----- */
.yh-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.yh-cards.is-rows { display: flex; flex-direction: column; gap: 10px; }

.yh-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
}
.yh-card__media { position: relative; height: 168px; background-color: var(--surface-2); background-size: cover; background-position: center; flex-shrink: 0; }
.yh-card__cat { position: absolute; top: 12px; right: 12px; }
.yh-card__cat-inline { display: none; align-self: flex-start; }   /* يظهر في وضع الصفوف فقط */
.yh-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.yh-card__title { margin: 0; font-family: 'Markazi Text', serif; font-size: 22px; font-weight: 600; line-height: 1.4; color: var(--text); }
.yh-card__excerpt { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.7; flex: 1; }
.yh-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; font-size: 13px; color: var(--muted-2); }
.yh-card__time { display: inline-flex; gap: 6px; align-items: center; }
.yh-card__more { color: var(--accent-text); font-weight: 600; display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }

/* وضع القائمة (صفوف): الصورة جانبية + التصنيف داخل الجسم (كما في التصميم) */
.yh-cards.is-rows .yh-card { flex-direction: row; border-radius: 14px; }
.yh-cards.is-rows .yh-card__media { width: 250px; height: auto; min-height: 162px; }
.yh-cards.is-rows .yh-card__cat { display: none; }
.yh-cards.is-rows .yh-card__cat-inline { display: inline-block; }
.yh-cards.is-rows .yh-card__title { font-size: 24px; }
.yh-cards.is-rows .yh-card__excerpt { line-height: 1.75; }
.yh-cards.is-rows .yh-card__body { padding: 10px 10px; }

/* ----- مبدّل العرض (شبكة/قائمة) ----- */
.yh-switch { display: flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 4px; }
.yh-switch__btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 30px; border-radius: 6px; border: none; cursor: pointer;
  background: transparent; color: var(--muted-2); transition: all .15s;
}
.yh-switch__btn.is-active { background: var(--accent); color: #fff; }

.yh-section { margin-top: 40px; }

/* ----- قائمة مدمجة بصور مصغّرة (قسم اقتصاد وأسواق) ----- */
.yh-list { border: 1px solid var(--card-border); border-radius: 12px; overflow: hidden; background: var(--card); }
.yh-list__item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
}
.yh-list__item:last-child { border-bottom: none; }
.yh-list__img {
  width: 92px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 8px;
  background-color: var(--surface-2);
  background-size: cover;
  background-position: center;
}
.yh-list__title { margin: 0; font-family: 'Markazi Text', serif; font-size: 20px; font-weight: 600; line-height: 1.45; color: var(--text); transition: color .15s ease; }
.yh-list__item:hover .yh-list__title { color: var(--accent-text); }
.yh-list__meta { display: flex; gap: 10px; align-items: center; margin-top: 7px; font-size: 12px; color: var(--muted-2); }

/* ----- الشريط الجانبي ----- */
.yh-aside{     max-width: 300px; }
.yh-aside > * + * { margin-top: 10px; }
.yh-widget { border: 1px solid var(--card-border); border-radius: 12px; overflow: hidden; background: var(--card); }
.yh-widget__head {
  background: var(--nav); color: #fff; padding: 10px 10px;
  font-family: 'Markazi Text', serif; font-size: 21px; font-weight: 600;
  display: flex; align-items: center; gap: 9px;
}
.yh-rank { display: flex; gap: 10px; padding: 7px 7px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.yh-rank:last-child { border-bottom: none; }
.yh-rank__n { font-family: 'Readex Pro', sans-serif; font-size: 24px; font-weight: 700; color: var(--accent-text); line-height: 1; min-width: 22px; text-align: center; flex-shrink: 0; }
/* صورة مصغّرة بدل الرقم (ودجت آخر الأخبار / أخبار قسم في الشريط الجانبي) */
/* صورة مصغّرة بمقاس ثابت 112×84 (محجوز من أول لحظة) والصورة بتملاه (cover) — لازقة فوق جنب أول سطر،
   فلو الخط اتحمّل متأخر وسطور العنوان اتغيّرت الصورة ما تتحركش. */
.yh-rank--thumb { align-items: flex-start; }
.yh-rank__img { display: block; flex: 0 0 112px; width: 112px; height: 84px; border-radius: 8px; overflow: hidden; background: var(--border); }
.yh-rank__img img { display: block; width: 112px; height: 84px; object-fit: cover; }
.yh-rank__title { font-size: 15px; font-weight: 500; color: var(--text); line-height: 1.5; }
.yh-rank__time { font-size: 12px; color: var(--muted-2); margin-top: 6px; display: inline-flex; gap: 5px; align-items: center; }

.yh-fb { padding: 22px; text-align: center; }
.yh-fb__circle { width: 60px; height: 60px; border-radius: 50%; background: #1877f2; color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.yh-fb__name { font-weight: 700; font-size: 17px; color: var(--text); }
.yh-fb__count { font-size: 13px; color: var(--muted-2); margin: 4px 0 14px; }
.yh-fb__btn { background: #1877f2; color: #fff; font-weight: 600; padding: 11px; border-radius: 8px; font-size: 14px; }

.yh-newsletter { background: linear-gradient(135deg, var(--accent), #f59a2e); border-radius: 12px; padding: 24px; color: #fff; }
.yh-newsletter__title { font-family: 'Markazi Text', serif; font-size: 22px; font-weight: 700; }
.yh-newsletter__p { font-size: 13px; opacity: .95; margin: 7px 0 15px; line-height: 1.6; }
.yh-newsletter__field { background: rgba(255,255,255,.96); border-radius: 8px; padding: 12px 15px; font-size: 13px; color: #9aa6ba; margin-bottom: 10px; }
.yh-newsletter__btn { background: #13294b; color: #fff; text-align: center; font-weight: 600; padding: 12px; border-radius: 8px; font-size: 14px; }

/* =========================== صفحة التفاصيل =========================== */
.yh-article { background: var(--card); border: 1px solid var(--card-border); border-radius: 10px; padding: 10px; min-width: 0; }
.yh-bc { font-size: 13px; color: var(--muted-2); margin-bottom: 10px; min-width: 0; overflow: hidden; }
.yh-bc a { color: var(--accent-text); font-weight: 600; }
.yh-bc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; }
.yh-bc__item { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.yh-bc__item + .yh-bc__item::before { content: "‹"; color: var(--muted-2); padding: 0 2px; }
.yh-article__title { font-family: 'Markazi Text', serif; font-size: 39px; font-weight: 700; line-height: 1.35; color: var(--headline); margin: 10px 0 10px; }
.yh-article__deck { font-size: 18px; color: var(--muted); line-height: 1.8; margin: 0; }

.yh-byline { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 5px 0; margin: 22px 0; flex-wrap: wrap; gap: 12px; }
.yh-byline__who { display: flex; align-items: center; gap: 12px; }
.yh-byline__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--nav); color: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.yh-byline__avatar img { width: 100%; height: 100%; object-fit: cover; }
.yh-byline__name { font-weight: 700; font-size: 15px; color: var(--text); }
.yh-byline__date { font-size: 13px; color: var(--muted-2); }
.yh-byline__date--mod { font-size: 12px; margin-top: 2px; }
.yh-share { display: flex; gap: 9px; }
.yh-share__btn { width: 36px; height: 36px; border-radius: 8px; color: #fff; display: flex; align-items: center; justify-content: center; }

.yh-article__video { margin: 8px 0 4px; }
.yh-article__video iframe { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; }
/* صورة الخبر:
   • العادي (كبيرة): عرض العمود كله بنسبتها الحقيقية (1200×800 تفضل 3:2) — من غير قص ولا رمادي على الجناب.
     aspect-ratio: auto 16/9 = يحجز 16:9 قبل التحميل (ما تهزّش الصفحة) وبعدها ياخد نسبة الصورة نفسها.
   • is-small (صغيرة — الـ JS في صفحة الخبر بيحطها لو الصورة أضيق من 60% من العمود): مربع 16:9 رمادي
     والصورة بمقاسها الأصلي في النص بدل ما تتمط. */
.yh-article__img {
    border-radius: 12px; overflow: hidden;
    background-color: var(--surface-2);
}
.yh-article__img img {
    display: block;
    width: 100%; height: auto;
    aspect-ratio: auto 16 / 9;
}
.yh-article__img.is-small {
    aspect-ratio: 16 / 9;
    display: flex; align-items: center; justify-content: center;
}
.yh-article__img.is-small img {
    width: auto; height: auto; max-width: 100%; max-height: 100%;
    aspect-ratio: auto;
}
.yh-article__body { margin-top: 26px; }
.yh-article__body p { font-size: 18px; line-height: 2.1; color: var(--text); margin: 0 0 22px; }
.yh-article__body img { max-width: 100%; height: auto; border-radius: 10px; margin: 10px 0; }

/* جداول داخل متن الخبر (مواعيد الصلاة / الطقس / أي جدول من المحرر) */
.yh-article__body h3 { font-family: 'Markazi Text', serif; font-size: 23px; font-weight: 700; color: var(--headline); margin: 26px 0 10px; }
.yh-article__body table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 22px; font-size: 16px; text-align: center; font-variant-numeric: tabular-nums; background: var(--card); border: 1px solid #d5dce6; border-radius: 10px; overflow: hidden; }
.yh-article__body thead th { background: var(--headline); color: #fff; font-weight: 700; padding: 10px 8px; border-inline-start: 1px solid rgba(255,255,255,.14); }
.yh-article__body thead th:first-child { border-inline-start: 0; }
.yh-article__body tbody td { padding: 10px 8px; border-top: 1px solid #d5dce6; border-inline-start: 1px solid #d5dce6; color: var(--text); font-weight: 600; }
.yh-article__body tbody td:first-child { border-inline-start: 0; font-weight: 800; color: var(--headline); }
.yh-article__body tbody tr:nth-child(even) td { background: #f5f7fa; }
@media (max-width: 640px) {
  .yh-article__body table { font-size: 14px; display: block; overflow-x: auto; white-space: nowrap; }
  .yh-article__body thead th, .yh-article__body tbody td { padding: 8px 6px; }
}

/* «اقرأ أيضًا» داخل المتن — رابط داخلي لخبر متعلّق */
.yh-article__body .yh-readalso {
  border-inline-start: 4px solid var(--accent);
  background: var(--surface-2);
  padding: 12px 16px; margin: 22px 0; border-radius: 8px;
  font-size: 17px; line-height: 1.7;
}
.yh-article__body .yh-readalso strong { color: var(--accent-text); margin-inline-end: 6px; }
.yh-article__body .yh-readalso a { color: var(--accent-text); font-weight: 700; text-decoration: none; }
.yh-article__body .yh-readalso a:hover { text-decoration: underline; }

/* روابط التاجات داخل المتن (auto-link) */
.yh-article__body .yh-tag-inline { color: var(--accent-text); font-weight: 600; text-decoration: none; border-bottom: 1px dotted var(--accent); }
.yh-article__body .yh-tag-inline:hover { border-bottom-style: solid; }

/* لينكات داخل متن الخبر (يدوية من المحرر) — لازم تبان كلينكات لأن الستايل العام a { color:inherit } */
.yh-article__body a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.yh-article__body a:hover { text-decoration-thickness: 2px; }

/* ===================== صفحة كل الأخبار (/social) ===================== */
.yh-social-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}
.yh-social-main { min-width: 0; }

/* فيد البوستات — عمود واحد (تايم لاين) */
.yh-social-feed { display: flex; flex-direction: column; gap: 16px; }

/* كارت البوست: هيدر → عنوان → صورة → أزرار */
.yh-social-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
}
.yh-social-card__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px 8px; }
.yh-social-card__avatar {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%;
  background: var(--surface-2); color: var(--accent-text);
  display: flex; align-items: center; justify-content: center;
}
.yh-social-card__ident { display: flex; flex-direction: column; line-height: 1.3; }
.yh-social-card__source { font-weight: 700; font-size: 14px; color: var(--text); }
.yh-social-card__cat { color: var(--accent-text); font-weight: 600; }
.yh-social-card__time { font-size: 12px; color: var(--muted-2); }

.yh-social-card__title-link { display: block; text-decoration: none; padding: 0 16px 10px; }
.yh-social-card__title {
  margin: 0;
  font-family: 'Markazi Text', serif;
  font-size: 24px; font-weight: 600; line-height: 1.45; color: var(--text);
  transition: color .15s ease;
}
.yh-social-card__title-link:hover .yh-social-card__title { color: var(--accent-text); }

/* نفس صفحة الخبر: المربع 16:9 ثابت، والصورة scale-down — الصغيرة في النص على الرمادي بدل ما تتمط */
.yh-social-card__media {
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--surface-2);
}
.yh-social-card__media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}

.yh-social-card__actions { display: flex; align-items: stretch; border-top: 1px solid var(--border); }
.yh-social-card__act {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 4px; font-size: 13px; font-weight: 600;
  color: var(--muted-2); text-decoration: none; transition: background .15s, color .15s;
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.yh-social-card__act:hover { background: var(--surface-2); color: var(--accent-text); }
.yh-social-card__act + .yh-social-card__act { border-inline-start: 1px solid var(--border); }
.yh-social-card__act.is-voted { color: var(--accent-text); }
.yh-social-card__act.is-locked { pointer-events: none; }
.yh-social-card__count { font-weight: 700; font-size: 12px; min-width: 12px; }

/* أعمدة جانبية مثبّتة (sticky) + بوكس إعلان */
/* تحت المنيو الثابتة (ارتفاعها ~52px) + مسافة */
.yh-social-side { align-self: start; position: sticky; top: 68px; }
.yh-social-side > * + * { margin-top: 12px; }
.yh-adbox {
  width: 300px; max-width: 100%; height: 250px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--card-border); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-2); font-size: 13px;
}
.yh-adbox--tall { height: 600px; }

/* ريسبونسيف: نخفي الجوانب تدريجيًا */
@media (max-width: 1100px) {
  .yh-social-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .yh-social-side--left { display: none; }
}
@media (max-width: 860px) {
  .yh-social-grid { grid-template-columns: 1fr; }
  .yh-social-side { display: none; }
}

/* معرض صور الخبر */
.yh-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.yh-gallery__img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; display: block; }
@media (max-width: 720px) { .yh-gallery { grid-template-columns: 1fr 1fr; } }

.yh-related-card { border: 1px solid var(--card-border); border-radius: 12px; overflow: hidden; background: var(--card); display: block; }
.yh-related-card__img { height: 165px; width: 100%; background-color: var(--surface-2); background-size: cover; background-position: center; }
.yh-related-card__body { padding: 10px 10px 10px; }
.yh-related-card__cat { color: var(--accent-text); font-size: 12px; font-weight: 700; }
.yh-related-card__title { font-family: 'Markazi Text', serif; font-size: 18px; font-weight: 600; line-height: 1.45; margin: 7px 0 0; color: var(--text); }

/* =========================== FEATURED MOSAIC (أعلى صفحة القسم) =========================== */
.yh-feat { margin-bottom: 32px; }
.yh-feat__top { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; }
.yh-feat__side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }

.yh-hero--feat { height: auto; min-height: 436px; border-radius: 14px; }
.yh-hero--feat .yh-hero__title { font-size: 34px; line-height: 1.35; }
.yh-hero--feat .yh-hero__excerpt { max-width: 88%; }

.yh-feat__side .yh-mini { height: auto; min-height: 210px; border-radius: 14px; }
.yh-feat__side .yh-mini__title { font-size: 20px; }

.yh-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }

.yh-fcard { border: 1px solid var(--card-border); border-radius: 12px; overflow: hidden; background: var(--card); display: block; }
.yh-fcard__img { position: relative; height: 124px; background-color: var(--surface-2); background-size: cover; background-position: center; }
.yh-fcard__cat { position: absolute; top: 10px; right: 10px; background: rgba(15, 35, 66, .92); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 4px; }
.yh-fcard__body { padding: 13px 14px 15px; }
.yh-fcard__title { margin: 0; font-family: 'Markazi Text', serif; font-size: 18px; font-weight: 600; line-height: 1.45; color: var(--text); }
.yh-fcard__time { font-size: 12px; color: var(--muted-2); margin-top: 8px; display: inline-flex; gap: 5px; align-items: center; }

/* ----- بطاقة صغيرة (قسم فن وثقافة، ٣ أعمدة) ----- */
.yh-cul-card { border: 1px solid var(--card-border); border-radius: 12px; overflow: hidden; background: var(--card); display: block; }
.yh-cul-card__img { height: 150px; background-color: var(--surface-2); background-size: cover; background-position: center; }
.yh-cul-card__body { padding: 14px 15px 16px; }
.yh-cul-card__cat { color: var(--accent-text); font-size: 12px; font-weight: 700; }
.yh-cul-card__title { margin: 8px 0 0; font-family: 'Markazi Text', serif; font-size: 18px; font-weight: 600; line-height: 1.45; color: var(--text); }
.yh-cul-card__time { font-size: 12px; color: var(--muted-2); margin-top: 8px; display: inline-flex; gap: 5px; align-items: center; }

/* =========================== وسوم الخبر (chips) =========================== */
.yh-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.yh-tag {
  background: var(--tag-bg);
  border: 1px solid var(--border);
  color: var(--text-light);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 15px;
  transition: border-color .15s ease, color .15s ease;
}
.yh-tag:hover { border-color: var(--accent); text-decoration: underline; }

/* زرّ «اقرأ الخبر من مصدره» (خبر خارجي) */
.yh-source-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--nav);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 10px;
}
.yh-source-link:hover { background: var(--accent); }

/* عرض الخبر الخارجي داخل iframe */
.yh-iframe-wrap { background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; overflow: hidden; }
.yh-iframe { width: 100%; height: 85vh; border: 0; display: block; background: #fff; }

/* =========================== مصدر الخبر (صفحة التفاصيل) =========================== */
.yh-source {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 20px; margin-top: 26px;
}
.yh-source__who { display: flex; align-items: center; gap: 13px; }
.yh-source__icon { width: 44px; height: 44px; border-radius: 10px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.yh-source__label { font-size: 12px; color: var(--muted-2); font-weight: 600; }
.yh-source__name { font-size: 17px; font-weight: 700; color: var(--headline); }
.yh-source__btn { display: inline-flex; align-items: center; gap: 7px; background: var(--nav); color: #fff; font-size: 13px; font-weight: 600; padding: 10px 18px; border-radius: 9px; }

/* =========================== الشريط الجانبي: آراء وكتّاب =========================== */
.yh-opinion { padding: 15px 16px; border-bottom: 1px solid var(--border); }
.yh-opinion:last-child { border-bottom: none; }
.yh-opinion__title { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.55; }
.yh-opinion__who { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.yh-opinion__avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); color: var(--accent-text); display: flex; align-items: center; justify-content: center; }
.yh-opinion__name { font-size: 13px; color: var(--accent-text); font-weight: 600; }

/* =========================== صفحة «آخر الأخبار» (feed) =========================== */
.yh-feed { display: flex; flex-direction: column; gap: 5px; }

.yh-feed-card { display: flex; background: var(--card); border: 1px solid var(--card-border); border-radius: 10px; overflow: hidden; }
.yh-feed-card__media {
  display: block;
  width: 240px;
  flex-shrink: 0;
  min-height: 172px;
  background-color: var(--surface-2);
  background-size: cover;
  background-position: center;
  position: relative;
}
.yh-feed-card__cat { position: absolute; top: 12px; right: 12px; }
.yh-feed-card__body { padding: 7px 10px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.yh-feed-card__meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.yh-feed-card__source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--headline);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 7px;
  border-radius: 30px;
}
.yh-feed-card__time { font-size: 12px; color: var(--muted-2); display: inline-flex; gap: 5px; align-items: center; }
.yh-feed-card__title { margin: 0; font-family: 'Markazi Text', serif; font-size: 22px; font-weight: 600; line-height: 1.4; color: var(--text); }
.yh-feed-card__title a { color: inherit; transition: color .15s ease; }
.yh-feed-card__title a:hover { color: var(--accent-text); }
.yh-feed-card__excerpt { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.75; flex: 1; }
.yh-feed-card__more { align-self: flex-start; color: var(--accent-text); font-weight: 600; font-size: 13px; display: inline-flex; gap: 5px; align-items: center; }

.yh-loadmore {
  width: 100%;
  margin: 14px 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--card);
  border: 1.5px solid var(--accent);
  color: var(--accent-text);
  font-family: 'Tajawal', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.yh-loadmore:hover { background: var(--accent); color: #fff; }
.yh-loadmore:disabled { opacity: .6; cursor: default; }

@media (max-width: 720px) {
  .yh-feed-card { /*flex-direction: column;*/ }
  .yh-feed-card__media { width: 140px;  min-height: 130px;    }
 .yh-feed-card .yh-feed-card__excerpt { display:none;}
}

/* =========================== صفحة البحث =========================== */
.yh-search-page { max-width: 820px; margin: 0 auto; }

.yh-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1.5px solid var(--accent);
  border-radius: 14px;
  padding: 6px 18px 6px 8px;
}
.yh-search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  color: var(--text);
  padding: 11px 0;
}

.yh-search-count { margin: 18px 2px 22px; font-size: 14px; color: var(--muted); }
.yh-search-count span { color: var(--accent-text); font-weight: 700; }

/* بطاقة نتيجة البحث (نسخة أصغر من كارت الـ feed) */
.yh-feed-card--sm .yh-feed-card__media { width: 180px; min-height: 140px; }
.yh-feed-card--sm .yh-feed-card__body { padding: 16px 18px; }
.yh-feed-card--sm .yh-feed-card__title { font-size: 22px; }

.yh-noresults {
  text-align: center;
  padding: 50px 20px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
}
.yh-noresults svg { margin: 0 auto 14px; display: block; }
.yh-noresults__title { font-family: 'Markazi Text', serif; font-size: 22px; font-weight: 600; color: var(--headline); }
.yh-noresults__sub { font-size: 14px; color: var(--muted); margin-top: 7px; }

/* =========================== صفحات ثابتة (اتصل بنا / الخصوصية) =========================== */
.yh-page--md { max-width: 980px; margin: 0 auto; }
.yh-page--sm { max-width: 820px; margin: 0 auto; }

.yh-page-head { display: flex; align-items: center; gap: 12px; margin: 0 0 10px;background: var(--topbar); border-radius: 3px; border-start-start-radius: 0; border-end-start-radius: 0;transition: all .5s ease-in-out; }
.yh-page-head__bar { width: 5px; height: 35px; background: var(--accent); border-radius: 3px; transition: all .5s ease-in-out;}
.yh-page-head__title { margin: 0; font-family: 'Markazi Text', serif; font-size: 30px; font-weight: 700; color: var(--text-light); }
.yh-page-sub { margin: 0 17px 26px; font-size: 15px; color: var(--text-light); line-height: 1.7; }
.yh-page-sub--meta { font-size: 13px; color: var(--muted-2); }

.yh-page-head:hover { background: var(--accent);  }
.yh-page-head:hover .yh-page-head__bar { width: 5px; height: 35px; background: var(--topbar); border-radius: 3px; }


/* ----- نموذج اتصل بنا ----- */
.yh-contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; }
.yh-form-card { background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; padding: 26px; }
.yh-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.yh-field { margin-top: 16px; }
.yh-field:first-child, .yh-form-row .yh-field { margin-top: 0; }
.yh-field__label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.yh-input, .yh-textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 9px;
  padding: 12px 14px;
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
}
.yh-input:focus, .yh-textarea:focus { border-color: var(--accent); }
.yh-textarea { resize: vertical; min-height: 120px; }
.yh-btn-primary {
  margin-top: 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 28px;
  font-family: 'Tajawal', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.yh-val { color: #e23; font-size: 12px; margin-top: 5px; display: block; }
.yh-alert-ok {
  background: rgba(37, 211, 102, .12);
  border: 1px solid #25d366;
  color: #1a8f48;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}

.yh-info-col { display: flex; flex-direction: column; gap: 16px; }
.yh-info-card { background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; padding: 22px; display: flex; gap: 14px; align-items: flex-start; }
.yh-info-card__icon { width: 42px; height: 42px; border-radius: 10px; background: var(--surface-2); color: var(--accent-text); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.yh-info-card__label { font-weight: 700; font-size: 15px; color: var(--headline); margin-bottom: 4px; }
.yh-info-card__val { font-size: 14px; color: var(--muted); line-height: 1.6; }
.yh-contact-social { display: flex; gap: 10px; }
.yh-contact-social a { flex: 1; height: 44px; border-radius: 10px; color: #fff; display: flex; align-items: center; justify-content: center; }

/* ----- صفحة الخصوصية ----- */
.yh-doc-card { background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; padding: 34px; }
.yh-doc-sec { margin-bottom: 26px; }
.yh-doc-sec:last-child { margin-bottom: 0; }
.yh-doc-sec__h { margin: 0 0 10px; font-family: 'Markazi Text', serif; font-size: 23px; font-weight: 700; color: var(--headline); display: flex; align-items: center; gap: 10px; }
.yh-doc-sec__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; flex-shrink: 0; }
.yh-doc-sec__p { margin: 0; font-size: 16px; line-height: 2; color: var(--text); }

/* =========================== RESPONSIVE =========================== */
@media (max-width: 980px) {
  .yh-layout { grid-template-columns: minmax(0, 1fr); }
  /* عمود واحد: الشريط الجانبي نازل تحت المحتوى → ياخد العرض كله بدل 300px على جنب */
  .yh-aside { max-width: 100%; }
}
@media (max-width: 720px) {
  .yh-contact { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .yh-feat__top { grid-template-columns: 1fr; }
  .yh-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {

    .yh-aside{max-width: 100%;}
  .yh-grid-3, .yh-cards { grid-template-columns: 1fr; }
  .yh-cards.is-rows .yh-card { flex-direction: column; }
  .yh-cards.is-rows .yh-card__media { width: 100%; min-height: 168px; }
  .yh-hero { height: 300px; }
  .yh-hero__title { font-size: 28px; }
  .yh-hero__excerpt { max-width: 100%; }
  .yh-hero--feat .yh-hero__title { font-size: 28px; }
  .yh-article {  }
  .yh-article__title { font-size: 30px; }
  .yh-article__img { }
 
  .yh-feed-card__title {font-size: 18px; }
  .yh-chip  {font-size: 10px; }
}

/* ----- صفحة 404 ----- */
.yh-404 { text-align: center; padding: 60px 20px 70px; }
.yh-404__code {
  font-family: 'Readex Pro', sans-serif;
  font-size: 130px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-text);
  letter-spacing: 4px;
}
.yh-404__title {
  margin: 14px 0 0;
  font-family: 'Markazi Text', serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--headline);
}
.yh-404__text {
  margin: 12px auto 0;
  max-width: 460px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}
.yh-404__actions {
  margin-top: 26px;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.yh-404__actions .yh-btn-primary { margin-top: 0; }
.yh-404__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  transition: color .15s ease;
}
.yh-404__link:hover { color: var(--accent-text); }

@media (max-width: 640px) {
  .yh-404__code { font-size: 96px; }
  .yh-404__title { font-size: 28px; }
}

/* ===== صفحات مواعيد الصلاة بالمحافظات ===== */
.yh-prayer .yh-doc-card { margin-bottom: 16px; }
.yh-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.yh-tabs__item {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--card-border); background: var(--card); color: var(--text);
  font-weight: 700; font-size: 15px; transition: all .2s;
}
.yh-tabs__item:hover { border-color: var(--accent); color: var(--accent-text); }
.yh-tabs__item.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.yh-prayer__date { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-weight: 700; color: var(--headline); font-size: 17px; margin-bottom: 14px; }
.yh-prayer__hijri { color: var(--muted); font-weight: 600; }
.yh-prayer__empty { color: var(--muted); text-align: center; padding: 20px 0; }

.yh-prayer__next {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  background: color-mix(in srgb, var(--accent) 10%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 35%, #fff);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 16px;
}
.yh-prayer__next-label { color: var(--muted); font-size: 14px; }
.yh-prayer__next-name { font-weight: 800; font-size: 20px; color: var(--headline); }
.yh-prayer__next-time { font-weight: 800; font-size: 20px; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.yh-prayer__next-count { margin-inline-start: auto; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }

.yh-prayer__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 18px; }
.yh-prayer__cell {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 6px; border-radius: 12px; border: 1px solid var(--card-border); background: #fafbfc;
}
.yh-prayer__cell.is-next { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, #fff); }
.yh-prayer__cell-name { font-size: 14px; color: var(--muted); font-weight: 700; }
.yh-prayer__cell-time { font-size: 20px; font-weight: 800; color: var(--headline); font-variant-numeric: tabular-nums; }

.yh-prayer__month .yh-doc-sec__h { margin-bottom: 14px; }
.yh-prayer__table-wrap { overflow-x: auto; }
.yh-prayer__table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: center; font-variant-numeric: tabular-nums; }
.yh-prayer__table th { background: #f4f6f9; color: var(--muted); font-weight: 700; padding: 9px 6px; border-bottom: 1px solid var(--card-border); }
.yh-prayer__table td { padding: 8px 6px; border-bottom: 1px solid var(--card-border); color: var(--text); }
.yh-prayer__table tr.is-today td { background: color-mix(in srgb, var(--accent) 10%, #fff); font-weight: 800; }
.yh-prayer__others a { margin-inline-end: 10px; }

@media (max-width: 640px) {
  .yh-prayer__grid { grid-template-columns: repeat(3, 1fr); }
  .yh-prayer__cell-time { font-size: 17px; }
  .yh-prayer__next-count { margin-inline-start: 0; width: 100%; }
}
