/* ============================
   📱 تصميم الجوال — نسخة محسّنة
   بنفس ترتيب الكمبيوتر
============================ */

/* البطاقة الأساسية */
.job-card {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 12px;
  background: #ffffff;
  border: 1px solid rgba(0, 11, 75, 0.18);
  border-radius: 16px;
  padding: 16px;
  overflow: hidden;
  min-height: 150px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.07);
}

/* الخلفية المخططة */
.job-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(0, 11, 75, 0.06),
    rgba(0, 11, 75, 0.06) 1px,
    transparent 2px,
    transparent 4px
  );
  border-radius: 16px;
  pointer-events: none;
}

/* --------------------------
   وقت النشر — أعلى يسار الجوال
--------------------------- */
.job-time-box {
  position: absolute;
  top: 10px;
  left: 12px;
  background: rgba(0, 11, 75, 0.08);
  padding: 3px 7px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #000b4b;
  white-space: nowrap;
  z-index: 5;
}

.job-time-box i {
  font-size: 12px;
}

/* --------------------------
   اللوقو
--------------------------- */
.job-logo-box {
  width: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.job-logo {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
}

/* --------------------------
   معلومات الوظيفة
--------------------------- */
.job-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 20px; /* عشان ما يلمس وقت النشر */
}

/* العنوان */
.job-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: #000b4b;
  line-height: 1.4;
}

/* التصنيف */
.job-category {
  background: rgba(0, 11, 75, 0.08);
  color: #000b4b;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 12px;
  width: fit-content;
}

/* الموقع */
.job-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #333;
}

.job-location i {
  color: #000b4b;
  font-size: 14px;
}

/* الشركة */
.job-company {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #000;
}

/* --------------------------
   إخفاء زر التقديم في الجوال
--------------------------- */
.apply-btn {
  display: none !important;
}

/* --------------------------
   شبكة الجوال
--------------------------- */
.jobs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 14px;
}

/* --------------------------
   الأنيميشن
--------------------------- */
.fade-in, .animate, .job-card {
  opacity: 0;
  transform: translateY(40px) scale(.96);
  filter: blur(2px);
  transition: opacity .7s ease, transform .7s ease, filter .7s ease;
}

.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* زر تفاصيل أكثر (مخفي للجوال مثل ما طلبت) */
.details-btn {
  display: none !important;
}

/* ===========================
   📱 تصميم الجوال — تصنيفات الوظائف
=========================== */

/* عنوان القسم */
.cat-title {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  color: #001b5b;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* الخط الفاصل */
.separator-line {
  width: 85%;
  height: 1px;
  background: rgba(0,0,0,0.15);
  margin: 10px auto 20px;
  border-radius: 50px;
}

/* سطر واحد — سحب يمين/يسار */
.categories-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 5px 0 18px;
  scrollbar-width: none;
}
.categories-wrapper::-webkit-scrollbar {
  display: none;
}

/* العناصر */
.categories-grid {
  display: inline-flex;
  gap: 10px;
  padding: 0 10px;
}

/* بطاقات التصنيفات */
.category-box {
  min-width: 150px;
  height: 60px;

  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(0, 11, 75, 0.20);
  box-shadow: 0 3px 9px rgba(0,0,0,0.07);

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #001b5b;

  position: relative;
  overflow: hidden;
  transition: .25s ease;
}

/* خلفية مخططة */
.category-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(0, 11, 75, 0.04),
    rgba(0, 11, 75, 0.04) 1px,
    transparent 3px,
    transparent 5px
  );
  border-radius: inherit;
  pointer-events: none;
}

/* تأثير الضغط */
.category-box:active {
  transform: scale(0.94);
}

/* ===========================
   نسخة الجوال — آخر الوظائف المنشورة
=========================== */

.latest-jobs h2 {
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  color: #001b5b;
  margin-bottom: 8px;
}

.latest-jobs p {
  text-align: center;
  font-size: 14px;
  color: #333;
  margin-bottom: 18px;
  padding: 0 15px;
}

.latest-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 35px;
}

.latest-buttons a {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

/* زر تواصل معنا (نسخة ثانية إن كنت تستخدمها) */
.btn-contact {
  background: linear-gradient(135deg, #070c3a, #0000ee);
  color: #fff;
}

/* زر المتجر (نسخة ثانية إن كنت تستخدمها) */
.btn-store {
  border: 2px solid #070c3a;
  color: #070c3a;
  background: #fff;
}

/* ====== عناوين الجوال ====== */
.main-header {
  text-align: center;
  padding: 25px 15px 10px;
}

.main-title {
  font-size: 22px;
  font-weight: 800;
  color: #000b4b;
  margin-bottom: 10px;
}

.main-subtitle {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 18px;
}

.hero-section .main-title,
.hero-section .main-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ====== أزرار الجوال ====== */
.main-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* زر تواصل معنا (المستخدم في الهيرو) */
.btn-primary {
  background: linear-gradient(135deg, #070c3a, #0000ee);
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: .3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  opacity: .96;
}

/* زر المتجر (Outline) */
.btn-outline {
  border: 2px solid #070c3a;
  color: #070c3a;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  background: #fff;
  transition: .3s ease;
}

.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  opacity: .98;
}

/* فاصل */
.section-divider {
  width: 90%;
  height: 1px;
  background: rgba(0,0,0,0.12);
  margin: 18px auto 10px;
}

/* عنوان تصنيفات الوظائف */
.cat-title-mobile {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: #000b4b;
  margin-bottom: 15px;
}

/* ===========================
   Pagination
=========================== */

.pagination-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 25px 0;
}

/* الأزرار */
.pag-btn {
  padding: 10px 15px;
  border: 2px solid #070c3a;
  color: #070c3a;
  font-weight: 700;
  border-radius: 15px;
  font-size: 16px;
  background: #fff;
  transition: .3s ease;
}

/* السابق / التالي بنفس التدرج */
.pag-btn.prev,
.pag-btn.next {
  background: linear-gradient(135deg, #070c3a, #0000ee);
  color: #fff;
  border: none;
}

/* الرقم النشط */
.pag-btn.active {
  background: linear-gradient(135deg, #070c3a, #0000ee);
  color: #fff;
  border: none;
}

/* Hover عام */
.pag-btn:hover {
  transform: translateY(-2px);
}

/* السابق يمين – التالي يسار */
.pag-btn.prev { order: 1; }
.pag-btn.next { order: 3; }

/* الأرقام */
.pag-btn:nth-child(2),
.pag-btn:nth-child(3),
.pag-btn:nth-child(4) {
  order: 2;
}

/* زر عرض جميع الوظائف */
.all-jobs-wrapper {
  text-align: center;
  margin-top: 15px;
}

/* ينزل المحتوى شوي */
.search-container {
  margin-bottom: 25px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* زر عرض جميع الوظائف (نسخة ثانية إذا تستخدمها) */
.show-all-jobs-btn {
  background: linear-gradient(135deg, #070c3a, #0000ee);
  color: #fff;
  padding: 14px 28px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  display: inline-block;
  transition: .3s ease;
}

.show-all-jobs-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  opacity: .96;
}

/* زر عرض جميع الوظائف (الأساسي الموجود في صفحتك) */
.show-all-btn {
  padding: 10px 18px;
  border: none;
  border-radius: 15px;
  background: linear-gradient(135deg, #070c3a, #0000ee);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: inline-block;
  transition: 0.3s ease;
}

.show-all-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  opacity: 0.95;
}
