/*
 Theme Name:   Soledad Child Theme
 Description:  Soledad Child Theme - Made by PenciDesign
 Template:     soledad
*/

/* 1. استيراد وتطبيق خط Cairo */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600&display=swap');
html, body, .sc-card, .sc-card * {
  font-family: 'Cairo', sans-serif !important;
}

/* 2. إخفاء الهيدر ومسار التنقل على الرئيسية */
body.home .penci-page-header,
body.home .penci-breadcrumb,
body.home .entry-header {
  display: none !important;
}

/* 3. ضبط حجم الخط الأساسي */
html { font-size: 18px; }
body { font-size: 18px; line-height: 1.5; }

/* 4. شبكة البطاقات: عمودين على الكمبيوتر */
.sc-cards-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 20px;
  padding: 10px 0;
}

/* 5. تصميم البطاقة أفقية مستطيلة */
.sc-card {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-sizing: border-box;
  transition: box-shadow .2s ease;
}
.sc-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 6. شعار الموقع على اليسار */
.sc-card-logo {
  order: 1;
  flex: 0 0 60px;
  margin-right: 16px;
  background: #fafafa;
  border-radius: 4px;
  overflow: hidden;
}
.sc-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 7. محتوى البطاقة (العنوان + التفاصيل + الميتا + زر) */
.sc-card-text {
  order: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: right;
  gap: 8px;
}
/* عنوان المقال */
.sc-card-text h3 {
  margin: 0;
  font-size: 16px !important;
  line-height: 1.3;
  color: #2c3e50;
}

/* صفّ التفاصيل (دوام/دولة/جنس) */
.sc-card-text .sc-details {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sc-card-text .sc-job-type,
.sc-card-text .sc-job-location,
.sc-card-text .sc-job-gender {
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
}
.sc-card-text .sc-job-type     { background: #2e7d32; }
.sc-card-text .sc-job-location { background: #ff5722; }
.sc-card-text .sc-job-gender   { background: #1976d2; }

/* صفّ الوقت والمشاهدات */
.sc-card-text .sc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #666;
}
.sc-card-text .sc-time::before  { content: "\1F552"; margin-right: 2px; }
.sc-card-text .sc-views::before { content: "\1F441"; margin-right: 2px; }

/* 8. زر “تقدّم الآن” على اليمين */
.sc-card-text .sc-apply-btn {
  order: 3;                       /* يظهر بعد التفاصيل */
  align-self: flex-start;         /* يحافظ على جهة اليمين */
  margin-left: auto;
  font-size: 14px !important;
  padding: 6px 12px !important;
  background-color: #ff5722;
  color: #fff !important;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background-color .2s ease;
}
.sc-card-text .sc-apply-btn:hover {
  background-color: #e64a19;
}

/* 9. إخفاء أي زرّ قديم */
.sc-card-left {
  display: none !important;
}

/* 10. زرّ “المزيد من الوظائف” مركزي */
.sc-more-wrapper {
  display: grid;
  grid-column: 1 / -1;
  padding: 20px 0;
}
.sc-more-wrapper .sc-more-btn {
  margin: 0 auto;
  padding: 8px 16px;
  background-color: #ff5722;
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color .2s ease;
}
.sc-more-wrapper .sc-more-btn:hover {
  background-color: #e64a19;
}

/* 11. استجابة الجوال: عمود واحد ومستطيلة */
@media (max-width: 767px) {
  .sc-cards-grid {
    grid-template-columns: 1fr !important;
  }
  .sc-card {
    flex-direction: column !important;
    align-items: stretch;
    padding: 12px;
    gap: 12px;
  }
  /* الشعار */
  .sc-card-logo {
    order: 1;
    margin: 0 auto 8px;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
  }
  /* العنوان والتفاصيل */
  .sc-card-text {
    order: 2;
  }
  .sc-card-text h3 {
    font-size: 16px;
  }
  .sc-card-text .sc-details,
  .sc-card-text .sc-meta {
    gap: 6px;
  }
  /* زر التقدم */
  .sc-card-text .sc-apply-btn {
    order: 3;
    margin: 8px auto 0;
  }
}
/* إخفاء الصورة البارزة في صفحة المفرد */
.single-post .penci-single-thumb,
.single-post .post-featured-image {
  display: none !important;
}
/* إخفاء الـ Breadcrumb في صفحة المفرد */
.penci-breadcrumb,
.penci-page-header .penci-breadcrumb,
body.single-post .penci-breadcrumb {
  display: none !important;
}
/* على صفحات المقال المفردة فقط: أخفِ شبكة البطاقات بأكملها */
.single-post .sc-cards-grid,
.single-post .sc-more-wrapper {
  display: none !important;
}
/* أخفي العنوان الثاني تحت الشعار فقط */
.sc-single-job-header h1 {
  display: none !important;
}
/*ــ تنسيق مربعات الهيدر ــ*/
.sc-single-details .tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin: 4px 4px;
}
.sc-single-details .job-type     { background: #2e7d32; }
.sc-single-details .job-location { background: #ff5722; }
.sc-single-details .job-gender   { background: #1976d2; }
.sc-single-details .job-time     { background: #555; }
.sc-single-details .job-views    { background: #777; }
/* ── 1. إخفاء الصورة المصغرة في قسم "وظائف ذات صلة" أو "Related Posts" ── */
.single .penci-related-post .penci-image-holder,
.single .penci-related-post .penci-thumb {
  display: none !important;
}

/* ── 2. جعل العنوان يصطف مع شعار الموقع ── */
.single .penci-related-post .entry-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── 3. إضافة شعار الموقع كعنصر قبل عنوان المقال ── */
.single .penci-related-post .entry-header .entry-title::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 40px;
  height: 40px;
  margin-right: 8px;
  background-image: url("https://wazayfi.com/wp-content/uploads/2025/07/وظائفي.png");
  background-size: contain;
  background-repeat: no-repeat;
}
.single .penci-single-related-posts img,
.single .penci-single-related-posts .penci-thumb,
.single .penci-single-related-posts .penci-post-image,
.single .penci-related-posts img,
.single .penci-related-posts .penci-thumb,
.single .penci-related-posts .penci-post-image {
  display: none !important;
}

/* ────────────────────────────────────────────────────────────
   اخفاء جميع الصور في Related Posts (وظائف ذات صلة)
──────────────────────────────────────────────────────────── */
.single .penci-related-posts,
.single .penci-single-related-posts {
  /* تأكدنا من استهداف القسم كله */
}

.single .penci-related-posts img,
.single .penci-single-related-posts img,
.single .penci-related-posts figure,
.single .penci-single-related-posts figure,
.single .penci-related-posts .penci-post-image,
.single .penci-single-related-posts .penci-post-image,
.single .penci-related-posts .penci-thumb,
.single .penci-single-related-posts .penci-thumb {
  display: none !important;
}

/* نجبر العنصر على أن يصطف كشعار + عنوان فقط */
.single .penci-related-posts .penci-grid-item,
.single .penci-single-related-posts .penci-grid-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 10px 0; /* مسافة عمودية بدل المساحة الكبيرة */
  border-bottom: 1px solid #eee;
}

/* إضافة شعار "وظائفي" قبل العنوان */
.single .penci-related-posts .penci-grid-item .entry-header::before,
.single .penci-single-related-posts .penci-grid-item .entry-header::before {
  content: "";
  flex: 0 0 40px;
  height: 40px;
  background-image: url("https://wazayfi.com/wp-content/uploads/2025/07/وظائفي.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-left: 12px; /* لأن الصفحة عربية يمين لليسار */
}

/* تنسيق العنوان */
.single .penci-related-posts .penci-grid-item .entry-title,
.single .penci-single-related-posts .penci-grid-item .entry-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}
/* إذا ظهر الـ Loop الافتراضي تحت البطاقات */
.archive .entry-content, 
.archive .post {
  display: none;
}
/* ─── إخفاء جميع أوصاف الأرشيف/التصنيف ─── */
.penci-category-description,
.penci-archive-description,
.archive-description,
.category-description,
.term-description {
  display: none !important;
}