/* ================================
   💻 تصميم جديد بالكامل لبطاقات الديسكتوب
   عمودين – احترافي – هوية كحلية
================================ */

/* الشبكة: عمودين فقط */
.jobs-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px !important;
  padding: 25px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

/* ================================
   البطاقة الجديدة
================================ */
.job-card {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #f8f9fb);
  border: 1px solid rgba(0, 11, 75, 0.15);
  border-radius: 18px;
  padding: 20px;
  min-height: 150px;
  position: relative;
  overflow: hidden;
  gap: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: .35s ease;
}

/* الخلفية المخططة */
.job-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(0, 11, 75, 0.05),
    rgba(0, 11, 75, 0.05) 1px,
    transparent 2px,
    transparent 5px
  );
  border-radius: 18px;
  pointer-events: none;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* ================================
   اللوقو
================================ */
.job-logo-box {
  width: 110px;
  height: 110px;
  background: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.08);
}

.job-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* ================================
   قسم منتصف البطاقة
================================ */
.job-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* عنوان الوظيفة */
.job-title {
  font-size: 18px;
  font-weight: 700;
  color: #000b4b;
  margin: 0;
  white-space: normal;
  line-height: 1.5;
}

/* التصنيف */
.job-category {
  background: rgba(0, 11, 75, 0.08);
  color: #000b4b;
  padding: 4px 8px;
  border-radius: 6px;
  width: fit-content;
  font-size: 12px;
}

/* الموقع */
.job-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #444;
}

.job-location i {
  color: #000b4b;
  font-size: 15px;
}

/* الشركة */
.job-company {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #000;
  font-size: 13px;
}

.job-company i {
  color: #000b4b;
}

/* ================================
   يسار البطاقة (الوقت + الزر)
================================ */
.job-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  width: 120px;
}

/* زر التقديم */
.apply-btn {
  background: linear-gradient(135deg, #070c3a, #0000ee);
  color: #fff;
  border-radius: 10px;
  padding: 10px 18px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: .3s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.22);
  opacity: 0.96;
}

/* وقت النشر */
.job-meta {
  font-size: 11px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 5px;
}

.job-meta i {
  color: #000b4b;
  font-size: 12px;
}

/* ================================
   الأنيميشن
================================ */
.fade-in, .animate, .job-card {
  opacity: 0;
  transform: translateY(45px) 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);
}

/* وقت النشر أعلى يسار البطاقة */
.job-time-box {
  position: absolute;
  top: 10px;
  left: 15px;
  background: rgba(0, 11, 75, 0.08);
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #000b4b;
  white-space: nowrap;
  z-index: 5;
}

.job-time-box i {
  font-size: 12px;
}

/* زر تفاصيل أكثر — يظهر أسفل يسار البطاقة */
.details-btn {
  position: absolute;
  bottom: 12px;
  left: 20px;
  background: linear-gradient(135deg, #070c3a, #0000ee);
  color: #fff;
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: .3s ease;
  z-index: 10;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.details-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.22);
  opacity: 0.96;
}

/* ================================
   التصنيفات
================================ */
.job-categories .cat-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #000b4b;
  margin-bottom: 20px;
}

/* الغلاف — يخلي السحب يمين يسار */
.categories-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 10px 0;
  scrollbar-width: thin;
}

/* شريط التمرير (كروم / سفاري) */
.categories-wrapper::-webkit-scrollbar {
  height: 6px;
}
.categories-wrapper::-webkit-scrollbar-thumb {
  background: rgba(0, 11, 75, 0.3);
  border-radius: 6px;
}
.categories-wrapper::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
}

/* البطاقات في صف واحد */
.categories-grid {
  display: inline-flex;
  gap: 15px;
  padding: 10px 10px;
}

/* بطاقة التصنيف */
.category-box {
  min-width: 180px;
  max-width: 180px;
  height: 65px;

  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(0, 11, 75, 0.18);
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #001b5b;

  position: relative;
  overflow: hidden;
  cursor: pointer;
  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;
}

.category-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* ===========================
   العنوان الرئيسي المتدرّج
=========================== */
.main-header {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 35px;
  padding: 10px;
}

.main-title {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(90deg, #000b4b, #002c85);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 4s infinite alternate ease-in-out;
  margin-bottom: 10px;
}

.hero-section .main-title,
.hero-section .main-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

@keyframes gradientMove {
  0% { background-position: 0%; }
  100% { background-position: 100%; }
}

.main-subtitle {
  font-size: 16px;
  color: #555;
  margin-bottom: 25px;
}

/* ===========================
   الأزرار
=========================== */
.main-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* زر رئيسي */
.btn-primary {
  background: linear-gradient(135deg, #070c3a, #0000ee);
  color: #fff;
  padding: 10px 22px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: .3s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.22);
  opacity: 0.96;
}

/* زر إطار */
.btn-outline {
  border: 2px solid #070c3a;
  color: #070c3a;
  padding: 9px 22px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  transition: .3s ease;
}

.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  opacity: 0.98;
}

/* ===========================
   خط فاصل أنيق
=========================== */
.section-divider {
  width: 90%;
  height: 1px;
  background: rgba(0,0,0,0.12);
  margin: 35px auto;
}

/* زر عرض جميع الوظائف */
.show-all-btn {
  background: linear-gradient(135deg, #070c3a, #0000ee);
  color: #fff;
  padding: 12px 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  transition: 0.3s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.show-all-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  opacity: 0.96;
}

/* ===========================
   Pagination
=========================== */

/* لون رقم الصفحة النشط */
.pagination a.active {
  background: linear-gradient(135deg, #070c3a, #0000ee) !important;
  color: #fff !important;
  border: none !important;
}

/* باقي الأرقام */
.pagination a {
  border: 1px solid #070c3a;
  color: #070c3a;
  border-radius: 8px;
  padding: 7px 12px;
  margin-right: 5px;
  font-size: 14px;
  transition: 0.2s ease;
  background: #fff;
}

.pagination a:hover {
  background: linear-gradient(135deg, #070c3a, #0000ee);
  color: #fff;
  border-color: transparent;
  opacity: 0.96;
}

.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;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.show-all-jobs-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  opacity: 0.96;
}
