/* =========================================
   وظائف السعودية اليوم - الصفحة الرئيسية
   تصميم مستقل ومتجاوب مع الهاتف
========================================= */

.home-page {
  margin: 0;
  background: #f7faf8;
  color: #183b30;
  font-family: Tahoma, Arial, sans-serif;
}

.home-page * {
  box-sizing: border-box;
}

/* ===== الهيدر ===== */

.home-page .site-header {
  width: 100%;
  min-height: 88px;
  margin: 0;
  padding: 10px max(4%, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #e5eee8;
  box-shadow: 0 3px 14px rgba(20,65,45,.04);
}

.home-page .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #123b32;
  text-decoration: none;
}

.home-page .brand-logo {
  display: block;
  width: 66px;
  height: 62px;
  flex: 0 0 auto;
  object-fit: contain;
}

.home-page .brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-page .brand-text strong {
  color: #123b32;
  font-size: 22px;
  font-weight: 900;
}

.home-page .brand-text em {
  color: #087f5b;
  font-style: normal;
}

.home-page .brand-text small {
  color: #718278;
  font-size: 12px;
}

.home-page .main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-page .main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 23px;
  border-radius: 30px;
  background: #eaf5ee;
  color: #08764f;
  font-weight: 800;
  text-decoration: none;
  transition: .2s;
}

.home-page .main-nav a:hover {
  background: #087f5b;
  color: #fff;
}

/* ===== مساحة الصفحة ===== */

.home-page .home-main {
  width: min(1180px, 94%);
  margin: 30px auto 55px;
}

/* ===== البانر ===== */

.home-page .hero-reference {
  position: relative;
  isolation: isolate;
  display: grid;
  direction: ltr;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 34px;
  min-height: 440px;
  margin: 0;
  padding: 30px 34px;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(115deg,#dcefe2 0%,#edf6ef 52%,#e3f1e7 100%);
  box-shadow: 0 9px 28px rgba(22,75,48,.06);
}

.home-page .hero-art {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 0;
  background: transparent;
}

.home-page .hero-banner-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 390px;
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.home-page .hero-copy {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  max-width: 540px;
  justify-self: center;
  padding: 15px 5px;
  direction: rtl;
  text-align: right;
}

.home-page .hero-kicker {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 30px;
  background: #087f5b;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.home-page .hero-copy h1 {
  margin: 18px 0 10px;
  color: #123b32;
  font-size: clamp(32px,3.5vw,46px);
  font-weight: 900;
  line-height: 1.5;
}

.home-page .hero-copy h1 span {
  color: #087f5b;
}

.home-page .hero-copy p {
  margin: 0 0 20px;
  color: #526e5e;
  font-size: 15px;
  line-height: 1.9;
}

/* ===== البحث ===== */

.home-page .hero-search {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 59px;
  margin: 18px 0 12px;
  padding: 0 15px;
  border: 1px solid #d5e5da;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(20,65,45,.05);
}

.home-page .search-symbol {
  flex: 0 0 auto;
  color: #087f5b;
  font-size: 28px;
  line-height: 1;
}

.home-page .hero-search input {
  width: 100%;
  min-width: 0;
  min-height: 55px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: #183b30;
  font: inherit;
  font-size: 14px;
}

.home-page .hero-search input:focus {
  border: 0;
  outline: 0;
  box-shadow: none;
}

/* ===== الفلاتر ===== */

.home-page .hero-controls {
  display: grid;
  grid-template-columns: 105px 1fr 1fr;
  direction: ltr;
  gap: 9px;
  width: 100%;
}

.home-page .hero-controls select {
  width: 100%;
  min-width: 0;
  min-height: 47px;
  margin: 0;
  padding: 8px 10px;
  direction: rtl;
  border: 1px solid #d5e5da;
  border-radius: 9px;
  background: #fff;
  color: #345b49;
  font: inherit;
  font-size: 12px;
}

.home-page .hero-search-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 90px;
  min-height: 47px;
  padding: 0 15px;
  border: 0;
  border-radius: 9px;
  background: #087f5b;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.home-page .hero-search-button:hover {
  background: #066747;
}

/* ===== أحدث الوظائف ===== */

.home-page .jobs-section {
  margin-top: 46px;
}

.home-page .section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.home-page .section-heading h2 {
  margin: 0;
  color: #08764f;
  font-size: 28px;
  font-weight: 900;
}

.home-page .heading-line {
  width: min(16%,140px);
  height: 2px;
  background: linear-gradient(90deg,transparent,#14845d);
}

.home-page .heading-icon {
  color: #087f5b;
  font-size: 25px;
}

.home-page .grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
}

.home-page .job-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 280px;
  margin: 0;
  padding: 21px;
  border: 1px solid #e1ebe5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(20,65,45,.05);
  transition: transform .2s,box-shadow .2s;
}

.home-page .job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 27px rgba(20,65,45,.1);
}

.home-page .job-card h3 {
  margin: 2px 0;
  color: #174b36;
  font-size: 19px;
  line-height: 1.6;
}

.home-page .job-company {
  margin: 0;
  color: #087f5b;
  font-weight: 800;
}

.home-page .job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-page .job-meta span {
  padding: 7px 10px;
  border-radius: 8px;
  background: #eff7f2;
  color: #456653;
  font-size: 12px;
}

.home-page .job-description {
  margin: 0;
  color: #687b70;
  font-size: 13px;
  line-height: 1.8;
}

.home-page .job-card .job-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding: 11px 15px;
  border-radius: 30px;
  background: #087f5b;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.home-page .job-card .job-button:hover {
  background: #075b43;
}

.home-page #empty {
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 23px;
  border: 1px solid #e0ebe4;
  border-radius: 13px;
  background: #fff;
  color: #718278;
  font-size: 13px;
  text-align: center;
}

/* ===== التذييل ===== */

.home-page .site-footer {
  position: relative;
  width: 100%;
  margin: 55px 0 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #064b36;
  color: #fff;
}

.home-page .footer-skyline {
  min-height: 65px;
  padding: 0;
  background: linear-gradient(to top,#064b36 0 30%,#087653 30% 100%);
  color: #c1dfcc;
  font-size: 0;
}

.home-page .footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  width: min(1180px,92%);
  margin: auto;
  padding: 25px 0;
}

.home-page .footer-content > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.home-page .footer-content strong {
  color: #fff;
  font-size: 17px;
}

.home-page .footer-content small,
.home-page .footer-content p {
  margin: 0;
  color: #d1e5d8;
  font-size: 13px;
}

.home-page .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
}

.home-page .footer-links a {
  color: #fff;
  font-size: 13px;
  text-decoration: none;
}

.home-page .footer-links a:hover {
  text-decoration: underline;
}

/* ===== الأجهزة اللوحية ===== */

@media (min-width:601px) and (max-width:900px) {
  .home-page .site-header {
    padding-right: 3%;
    padding-left: 3%;
  }

  .home-page .home-main {
    width: 94%;
    margin-top: 24px;
  }

  .home-page .hero-reference {
    min-height: 370px;
    gap: 18px;
    padding: 24px 20px;
  }

  .home-page .hero-banner-image {
    max-height: 330px;
  }

  .home-page .hero-copy h1 {
    font-size: 31px;
  }

  .home-page .hero-copy p {
    font-size: 13px;
  }

  .home-page .hero-controls {
    grid-template-columns: 1fr 1fr;
  }

  .home-page .hero-search-button {
    grid-column: 1 / -1;
  }

  .home-page .grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

/* ===== الهواتف ===== */

@media (max-width:600px) {
  .home-page .site-header {
    min-height: 68px;
    padding: 7px 12px;
    gap: 6px;
  }

  .home-page .brand {
    gap: 7px;
  }

  .home-page .brand-logo {
    width: 43px;
    height: 43px;
  }

  .home-page .brand-text strong {
    font-size: 14px;
  }

  .home-page .brand-text small {
    font-size: 9px;
  }

  .home-page .main-nav a {
    padding: 8px 12px;
    font-size: 11px;
  }

  .home-page .home-main {
    width: 100%;
    margin: 0 auto 30px;
  }

  .home-page .hero-reference {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    min-height: 0;
    padding: 0 14px 22px;
    border-radius: 0 0 22px 22px;
    overflow: hidden;
    background: linear-gradient(145deg,#dcefe2,#f0f7f1 65%,#d9ecdf);
  }

  .home-page .hero-art {
    order: -1;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .home-page .hero-banner-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
  }

  .home-page .hero-copy {
    order: 1;
    width: 100%;
    max-width: none;
    padding: 14px 2px 0;
    text-align: right;
  }

  .home-page .hero-kicker {
    padding: 6px 12px;
    font-size: 11px;
  }

  .home-page .hero-copy h1 {
    margin: 12px 0 7px;
    font-size: 27px;
    line-height: 1.45;
  }

  .home-page .hero-copy p {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.8;
  }

  .home-page .hero-search {
    width: 100%;
    min-height: 51px;
    margin: 12px 0 9px;
    padding: 0 12px;
    border-radius: 11px;
  }

  .home-page .hero-search input {
    min-height: 47px;
    font-size: 13px;
  }

  .home-page .search-symbol {
    font-size: 24px;
  }

  .home-page .hero-controls {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .home-page .hero-controls select {
    min-height: 44px;
    padding: 7px;
    font-size: 12px;
  }

  .home-page .hero-search-button {
    grid-column: 1 / -1;
    min-height: 46px;
    width: 100%;
  }

  .home-page .jobs-section {
    margin: 28px 14px 0;
  }

  .home-page .section-heading {
    gap: 8px;
    margin-bottom: 17px;
  }

  .home-page .section-heading h2 {
    font-size: 22px;
    white-space: nowrap;
  }

  .home-page .heading-line {
    width: 12%;
  }

  .home-page .heading-icon {
    font-size: 20px;
  }

  .home-page .grid {
    grid-template-columns: minmax(0,1fr);
    gap: 13px;
  }

  .home-page .job-card {
    width: 100%;
    min-height: 0;
    padding: 17px;
    gap: 10px;
  }

  .home-page .job-card h3 {
    font-size: 18px;
  }

  .home-page .site-footer {
    margin-top: 35px;
  }

  .home-page .footer-skyline {
    min-height: 48px;
  }

  .home-page .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 92%;
    padding: 20px 0;
    text-align: center;
  }

  .home-page .footer-links {
    justify-content: center;
    gap: 12px;
  }
}



/* ===== التنسيق الموحد للبانر والصورة والمحتوى ===== */

.home-page .hero-reference {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  isolation: isolate;
  border: 0 !important;
  border-radius: 22px !important;
  background: #eaf4ed !important;
}

.home-page .hero-reference .hero-art {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.home-page .hero-reference .hero-banner-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.home-page .hero-reference::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to left,
    rgba(242, 250, 245, .98) 0%,
    rgba(242, 250, 245, .94) 40%,
    rgba(242, 250, 245, .65) 56%,
    rgba(242, 250, 245, .08) 76%,
    transparent 100%
  );
}

.home-page .hero-reference .hero-copy {
  position: absolute !important;
  z-index: 2 !important;
  top: 50% !important;
  right: 3% !important;
  left: auto !important;
  transform: translateY(-50%) !important;
  width: 43% !important;
  max-width: 540px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 18px !important;
  box-sizing: border-box !important;
  direction: rtl !important;
  text-align: right !important;
}

.home-page .hero-reference .hero-kicker {
  display: inline-block !important;
  margin: 0 0 8px !important;
  padding: 7px 13px !important;
  border-radius: 30px !important;
  background: #087f5b !important;
  color: #fff !important;
  font-size: clamp(11px, 1.2vw, 14px) !important;
  font-weight: 800 !important;
}

.home-page .hero-reference .hero-copy h1 {
  margin: 7px 0 !important;
  color: #123b32 !important;
  font-size: clamp(24px, 3vw, 40px) !important;
  line-height: 1.45 !important;
}

.home-page .hero-reference .hero-copy h1 span {
  color: #087f5b !important;
}

.home-page .hero-reference .hero-copy p {
  margin: 5px 0 12px !important;
  color: #526e5e !important;
  font-size: clamp(12px, 1.2vw, 15px) !important;
  line-height: 1.8 !important;
}

.home-page .hero-reference .hero-search {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 48px !important;
  margin: 10px 0 !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
  border: 1px solid #d5e5da !important;
  border-radius: 10px !important;
  background: #fff !important;
}

.home-page .hero-reference .hero-search input {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  font-size: 13px !important;
}

.home-page .hero-reference .hero-controls {
  display: grid !important;
  grid-template-columns: 105px 1fr 1fr !important;
  gap: 7px !important;
  width: 100% !important;
  direction: ltr !important;
}

.home-page .hero-reference .hero-controls select,
.home-page .hero-reference .hero-controls button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 6px 8px !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}

.home-page .hero-reference .hero-controls select {
  direction: rtl !important;
  background: #fff !important;
}

.home-page .hero-reference .hero-search-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  background: #087f5b !important;
  color: #fff !important;
  font-weight: 800 !important;
}

/* ===== نسخة الهاتف ===== */

@media (max-width: 600px) {
  .home-page .hero-reference {
    width: 100% !important;
    height: 420px !important;
    min-height: 420px !important;
    aspect-ratio: auto !important;
    border-radius: 0 0 18px 18px !important;
    background: #eaf4ed !important;
  }

  .home-page .hero-reference .hero-art {
    inset: 0 !important;
    height: 100% !important;
  }

  .home-page .hero-reference .hero-banner-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  .home-page .hero-reference::after {
    background: linear-gradient(
      to left,
      rgba(242, 250, 245, .98) 0%,
      rgba(242, 250, 245, .94) 43%,
      rgba(242, 250, 245, .58) 62%,
      rgba(242, 250, 245, .04) 86%
    ) !important;
  }

  .home-page .hero-reference .hero-copy {
    top: 50% !important;
    right: 2% !important;
    width: 57% !important;
    max-width: 57% !important;
    padding: 10px 7px !important;
    transform: translateY(-50%) !important;
  }

  .home-page .hero-reference .hero-kicker {
    margin-bottom: 6px !important;
    padding: 5px 8px !important;
    font-size: 9px !important;
    line-height: 1.7 !important;
  }

  .home-page .hero-reference .hero-copy h1 {
    margin: 5px 0 !important;
    font-size: 17px !important;
    line-height: 1.55 !important;
  }

  .home-page .hero-reference .hero-copy p {
    margin: 4px 0 8px !important;
    font-size: 10px !important;
    line-height: 1.7 !important;
  }

  .home-page .hero-reference .hero-search {
    min-height: 36px !important;
    margin: 7px 0 !important;
    padding: 0 7px !important;
    border-radius: 8px !important;
  }

  .home-page .hero-reference .hero-search input {
    min-height: 33px !important;
    font-size: 10px !important;
  }

  .home-page .hero-reference .search-symbol {
    font-size: 20px !important;
  }

  .home-page .hero-reference .hero-controls {
    grid-template-columns: 1fr 1fr !important;
    gap: 5px !important;
  }

  .home-page .hero-reference .hero-controls button {
    grid-column: 1 / -1 !important;
    min-height: 34px !important;
    font-size: 11px !important;
  }

  .home-page .hero-reference .hero-controls select {
    min-height: 32px !important;
    font-size: 9px !important;
    padding: 4px !important;
  }
}

@media (max-width: 380px) {
  .home-page .hero-reference {
    height: 440px !important;
    min-height: 440px !important;
  }

  .home-page .hero-reference .hero-copy {
    width: 59% !important;
    max-width: 59% !important;
    right: 1% !important;
  }

  .home-page .hero-reference .hero-copy h1 {
    font-size: 16px !important;
  }
}

/* ===== ضبط ارتفاع البانر حسب حجم الصورة ===== */
@media (max-width: 600px) {
  .home-page .hero-reference {
    height: clamp(270px, 75vw, 360px) !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
  }

  .home-page .hero-reference .hero-art {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .home-page .hero-reference .hero-banner-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  .home-page .hero-reference .hero-copy {
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
}

/* ===== تحسين تناسق النص والبحث مع صورة البانر ===== */
@media (max-width: 600px) {
  .home-page .hero-reference .hero-copy {
    right: 2% !important;
    left: auto !important;
    width: 49% !important;
    max-width: 49% !important;
    padding: 6px 4px !important;
    text-align: right !important;
  }

  .home-page .hero-reference .hero-kicker {
    padding: 4px 7px !important;
    margin-bottom: 5px !important;
    font-size: 8px !important;
  }

  .home-page .hero-reference .hero-copy h1 {
    margin: 5px 0 !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  .home-page .hero-reference .hero-copy p {
    margin: 4px 0 7px !important;
    font-size: 9px !important;
    line-height: 1.6 !important;
  }

  .home-page .hero-reference .hero-search {
    min-height: 34px !important;
    margin: 6px 0 !important;
    padding: 0 6px !important;
  }

  .home-page .hero-reference .hero-search input {
    min-height: 31px !important;
    font-size: 9px !important;
  }

  .home-page .hero-reference .hero-controls {
    grid-template-columns: 1fr 1fr !important;
    gap: 4px !important;
  }

  .home-page .hero-reference .hero-controls select {
    min-height: 29px !important;
    padding: 3px !important;
    font-size: 8px !important;
  }

  .home-page .hero-reference .hero-controls button {
    min-height: 31px !important;
    font-size: 10px !important;
  }
}

/* ===== ألوان عناصر البحث المتناسقة مع صورة البانر ===== */
.home-page .hero-reference .hero-search {
  background: rgba(242, 250, 245, .94) !important;
  border: 1px solid #b9d9c7 !important;
  box-shadow: 0 4px 12px rgba(8, 100, 69, .08) !important;
  backdrop-filter: blur(5px);
}

.home-page .hero-reference .hero-search input {
  background: transparent !important;
  color: #164d39 !important;
}

.home-page .hero-reference .hero-search input::placeholder {
  color: #718c7c !important;
}

.home-page .hero-reference .search-symbol {
  color: #087f5b !important;
}

.home-page .hero-reference .hero-controls select {
  background: rgba(237, 248, 240, .96) !important;
  color: #245a43 !important;
  border: 1px solid #b9d9c7 !important;
  box-shadow: 0 3px 9px rgba(8, 100, 69, .07) !important;
}

.home-page .hero-reference .hero-controls button {
  background: linear-gradient(135deg, #159568, #076747) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  box-shadow: 0 4px 12px rgba(5, 100, 66, .2) !important;
}

/* ===== الهوية البصرية المطابقة لحقول الصورة المرجعية ===== */

.home-page .hero-reference .hero-copy {
  width: 53% !important;
  max-width: 560px !important;
}

.home-page .hero-reference .hero-kicker {
  background: #087f50 !important;
  color: #fff !important;
  border-radius: 30px !important;
  font-weight: 800 !important;
}

.home-page .hero-reference .hero-copy h1 {
  color: #092f32 !important;
  font-weight: 900 !important;
}

.home-page .hero-reference .hero-copy h1 span {
  color: #087f50 !important;
}

.home-page .hero-reference .hero-copy p {
  color: #183f42 !important;
  font-weight: 600 !important;
}

/* حقل البحث الأبيض */
.home-page .hero-reference .hero-search {
  background: #fff !important;
  border: 1px solid #e0e9e5 !important;
  border-radius: 11px !important;
  box-shadow: 0 3px 12px rgba(15, 57, 43, .09) !important;
}

.home-page .hero-reference .hero-search input {
  background: #fff !important;
  color: #173e37 !important;
}

.home-page .hero-reference .hero-search input::placeholder {
  color: #71817b !important;
}

.home-page .hero-reference .search-symbol {
  color: #087f50 !important;
}

/* قوائم المدينة ونوع العمل */
.home-page .hero-reference .hero-controls select {
  background-color: #fff !important;
  color: #173e37 !important;
  border: 1px solid #e0e9e5 !important;
  border-radius: 10px !important;
  box-shadow: 0 3px 10px rgba(15, 57, 43, .07) !important;
  font-weight: 700 !important;
}

/* زر البحث */
.home-page .hero-reference .hero-controls button {
  background: #087b50 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 10px rgba(8, 123, 80, .18) !important;
  font-weight: 900 !important;
}

@media (max-width: 600px) {
  .home-page .hero-reference .hero-copy {
    width: 55% !important;
    max-width: 55% !important;
    right: 2% !important;
    padding: 7px 5px !important;
  }

  .home-page .hero-reference .hero-kicker {
    font-size: 9px !important;
    padding: 5px 7px !important;
  }

  .home-page .hero-reference .hero-copy h1 {
    font-size: 16px !important;
    line-height: 1.45 !important;
  }

  .home-page .hero-reference .hero-copy p {
    font-size: 10px !important;
    line-height: 1.6 !important;
  }

  .home-page .hero-reference .hero-search {
    min-height: 35px !important;
    background: #fff !important;
    margin: 6px 0 !important;
  }

  .home-page .hero-reference .hero-search input {
    min-height: 33px !important;
    font-size: 10px !important;
  }

  .home-page .hero-reference .hero-controls select {
    min-height: 30px !important;
    font-size: 9px !important;
    padding: 4px 5px !important;
  }

  .home-page .hero-reference .hero-controls button {
    min-height: 33px !important;
    font-size: 11px !important;
  }
}


/* ===== البانر الجديد: صورة نظيفة ومحتوى فوق يمين الصورة ===== */

.home-page .hero-reference {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  aspect-ratio: 992 / 532 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  background: transparent !important;
}

.home-page .hero-reference::after {
  content: none !important;
  background: none !important;
}

.home-page .hero-reference .hero-art {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  z-index: 1 !important;
}

.home-page .hero-reference .hero-banner-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
}

.home-page .hero-reference .hero-copy {
  position: absolute !important;
  z-index: 3 !important;
  top: 50% !important;
  right: 2% !important;
  left: auto !important;
  transform: translateY(-50%) !important;
  width: 43% !important;
  max-width: 540px !important;
  margin: 0 !important;
  padding: 10px !important;
  direction: rtl !important;
  text-align: right !important;
  background: transparent !important;
}

.home-page .hero-reference .hero-kicker {
  display: block !important;
  margin-bottom: 7px !important;
  color: #286b4c !important;
  font-size: clamp(10px, 1.15vw, 14px) !important;
  font-weight: 800 !important;
}

.home-page .hero-reference .hero-copy h1 {
  margin: 0 0 8px !important;
  color: #173e32 !important;
  font-size: clamp(23px, 3vw, 39px) !important;
  line-height: 1.35 !important;
  font-weight: 900 !important;
}

.home-page .hero-reference .hero-copy h1 span {
  color: #27834e !important;
}

.home-page .hero-reference .hero-copy p {
  margin: 0 0 12px !important;
  color: #385b4b !important;
  font-size: clamp(11px, 1.2vw, 15px) !important;
  line-height: 1.7 !important;
}

.home-page .hero-reference .hero-search {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 43px !important;
  margin-bottom: 9px !important;
  padding: 0 10px !important;
  border: 1px solid #e0e9e2 !important;
  border-radius: 11px !important;
  background: #fff !important;
  box-shadow: 0 3px 12px rgba(27, 72, 48, .10) !important;
}

.home-page .hero-reference .hero-search input {
  width: 100% !important;
  min-width: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #173e32 !important;
  font-size: 13px !important;
}

.home-page .hero-reference .search-symbol {
  color: #27834e !important;
}

.home-page .hero-reference .hero-controls {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}

.home-page .hero-reference .hero-controls select {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 39px !important;
  padding: 5px 8px !important;
  border: 1px solid #e0e9e2 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #254b39 !important;
  font-size: 12px !important;
  box-shadow: 0 2px 8px rgba(27, 72, 48, .08) !important;
}

.home-page .hero-reference .hero-search-button {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  min-height: 40px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #23784a !important;
  color: #fff !important;
  font-weight: 800 !important;
}

/* الهاتف */
@media (max-width: 600px) {
  .home-page .hero-reference {
    aspect-ratio: auto !important;
    height: clamp(260px, 78vw, 300px) !important;
    border-radius: 13px !important;
  }

  .home-page .hero-reference .hero-art {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .home-page .hero-reference .hero-banner-image {
    width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
    object-fit: contain !important;
  }

  .home-page .hero-reference .hero-copy {
    right: 2% !important;
    width: 47% !important;
    max-width: none !important;
    padding: 5px !important;
  }

  .home-page .hero-reference .hero-kicker {
    margin-bottom: 4px !important;
    font-size: 9px !important;
    line-height: 1.5 !important;
  }

  .home-page .hero-reference .hero-copy h1 {
    margin-bottom: 5px !important;
    font-size: clamp(16px, 4.5vw, 19px) !important;
    line-height: 1.4 !important;
  }

  .home-page .hero-reference .hero-copy p {
    margin-bottom: 7px !important;
    font-size: 10px !important;
    line-height: 1.5 !important;
  }

  .home-page .hero-reference .hero-search {
    min-height: 35px !important;
    margin-bottom: 6px !important;
    padding: 0 6px !important;
  }

  .home-page .hero-reference .hero-search input {
    font-size: 10px !important;
  }

  .home-page .hero-reference .hero-controls {
    gap: 5px !important;
  }

  .home-page .hero-reference .hero-controls select {
    min-height: 31px !important;
    padding: 3px !important;
    font-size: 9px !important;
  }

  .home-page .hero-reference .hero-search-button {
    min-height: 33px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 380px) {
  .home-page .hero-reference .hero-copy {
    width: 49% !important;
  }

  .home-page .hero-reference .hero-copy h1 {
    font-size: 15px !important;
  }
}

/* ===== مربعات بحث احترافية وواضحة ===== */

.home-page .hero-reference .hero-kicker {
  display: inline-block !important;
  padding: 6px 12px !important;
  border: 1px solid #d6e9dc !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  color: #187447 !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 7px rgba(20, 70, 43, .08) !important;
}

.home-page .hero-reference .hero-search {
  min-height: 46px !important;
  padding: 0 12px !important;
  border: 1.5px solid #c9ded0 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 4px 13px rgba(20, 65, 40, .14) !important;
  transition: border-color .2s, box-shadow .2s !important;
}

.home-page .hero-reference .hero-search:focus-within {
  border-color: #23834e !important;
  box-shadow: 0 0 0 3px rgba(35, 131, 78, .13) !important;
}

.home-page .hero-reference .hero-search input {
  color: #173e32 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.home-page .hero-reference .hero-search input::placeholder {
  color: #788b80 !important;
  opacity: 1 !important;
}

.home-page .hero-reference .search-symbol {
  color: #19834d !important;
  font-size: 20px !important;
  font-weight: 800 !important;
}

.home-page .hero-reference .hero-controls {
  gap: 8px !important;
}

.home-page .hero-reference .hero-controls select {
  min-height: 42px !important;
  padding: 0 9px !important;
  border: 1.5px solid #c9ded0 !important;
  border-radius: 11px !important;
  background-color: #ffffff !important;
  color: #244b38 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 10px rgba(20, 65, 40, .12) !important;
  outline: none !important;
}

.home-page .hero-reference .hero-controls select:focus {
  border-color: #23834e !important;
  box-shadow: 0 0 0 3px rgba(35, 131, 78, .13) !important;
}

.home-page .hero-reference .hero-search-button {
  min-height: 43px !important;
  border-radius: 11px !important;
  background: #147747 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  box-shadow: 0 4px 11px rgba(20, 100, 60, .20) !important;
}

@media (max-width: 600px) {
  .home-page .hero-reference .hero-kicker {
    padding: 4px 7px !important;
    margin-bottom: 5px !important;
    font-size: 9px !important;
  }

  .home-page .hero-reference .hero-search {
    min-height: 39px !important;
    padding: 0 8px !important;
    margin-bottom: 7px !important;
    border-width: 1.5px !important;
    border-radius: 10px !important;
  }

  .home-page .hero-reference .hero-search input {
    font-size: 10px !important;
  }

  .home-page .hero-reference .hero-controls {
    gap: 6px !important;
  }

  .home-page .hero-reference .hero-controls select {
    min-height: 35px !important;
    padding: 0 5px !important;
    border-radius: 9px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
  }

  .home-page .hero-reference .hero-search-button {
    min-height: 36px !important;
    border-radius: 9px !important;
    font-size: 12px !important;
  }
}


/* ===== الهوية الفاخرة - وظائف السعودية اليوم ===== */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;600;700;800;900&display=swap');

.home-page .hero-reference,
.home-page .hero-reference * {
  font-family: 'Tajawal', sans-serif !important;
}

.home-page .hero-reference .hero-kicker {
  display: inline-flex !important;
  align-items: center !important;
  padding: 6px 13px !important;
  border: 1px solid rgba(190, 157, 91, .45) !important;
  border-radius: 30px !important;
  background: rgba(255,255,255,.94) !important;
  color: #80632e !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .1px !important;
  box-shadow: 0 3px 12px rgba(55, 48, 28, .07) !important;
}

.home-page .hero-reference .hero-copy h1 {
  color: #173d32 !important;
  font-weight: 900 !important;
  letter-spacing: -.5px !important;
  line-height: 1.4 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.3) !important;
}

.home-page .hero-reference .hero-copy h1 span {
  color: #a17b39 !important;
}

.home-page .hero-reference .hero-copy p {
  color: #526b5d !important;
  font-weight: 500 !important;
  line-height: 1.8 !important;
}

.home-page .hero-reference .hero-search {
  position: relative !important;
  min-height: 50px !important;
  padding: 0 14px !important;
  border: 1px solid #d9e3d9 !important;
  border-radius: 15px !important;
  background: #fff !important;
  box-shadow:
    0 7px 20px rgba(25, 61, 42, .10),
    inset 0 1px 0 #fff !important;
}

.home-page .hero-reference .search-symbol {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 29px !important;
  height: 29px !important;
  flex-shrink: 0 !important;
  margin-left: 8px !important;
  border-radius: 50% !important;
  background: #edf5ee !important;
  color: #26764b !important;
  font-size: 19px !important;
}

.home-page .hero-reference .hero-search input {
  color: #193e30 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.home-page .hero-reference .hero-search input::placeholder {
  color: #89988e !important;
}

.home-page .hero-reference .hero-controls {
  gap: 9px !important;
}

.home-page .hero-reference .hero-controls select {
  min-height: 45px !important;
  padding: 0 12px !important;
  border: 1px solid #d8e3d9 !important;
  border-radius: 13px !important;
  background-color: #fff !important;
  color: #284b39 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  box-shadow: 0 5px 15px rgba(25, 61, 42, .08) !important;
}

.home-page .hero-reference .hero-controls select:focus {
  border-color: #a17b39 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(161,123,57,.13) !important;
}

.home-page .hero-reference .hero-search-button {
  min-height: 46px !important;
  border: 1px solid #1b6341 !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg, #24764b, #145638) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  letter-spacing: .2px !important;
  box-shadow: 0 6px 16px rgba(20, 86, 56, .22) !important;
  transition: transform .2s ease, box-shadow .2s ease !important;
}

.home-page .hero-reference .hero-search-button:active {
  transform: translateY(1px) !important;
  box-shadow: 0 3px 8px rgba(20, 86, 56, .18) !important;
}

/* ضبط التصميم على الهاتف */
@media (max-width: 600px) {
  .home-page .hero-reference .hero-kicker {
    padding: 4px 7px !important;
    font-size: 9px !important;
    border-radius: 20px !important;
  }

  .home-page .hero-reference .hero-copy h1 {
    font-size: clamp(16px, 4.5vw, 19px) !important;
    line-height: 1.45 !important;
  }

  .home-page .hero-reference .hero-copy p {
    font-size: 10px !important;
    line-height: 1.6 !important;
  }

  .home-page .hero-reference .hero-search {
    min-height: 38px !important;
    padding: 0 7px !important;
    border-radius: 10px !important;
  }

  .home-page .hero-reference .search-symbol {
    width: 23px !important;
    height: 23px !important;
    margin-left: 5px !important;
    font-size: 15px !important;
  }

  .home-page .hero-reference .hero-search input {
    font-size: 10px !important;
  }

  .home-page .hero-reference .hero-controls {
    gap: 5px !important;
  }

  .home-page .hero-reference .hero-controls select {
    min-height: 34px !important;
    padding: 0 5px !important;
    border-radius: 9px !important;
    font-size: 10px !important;
  }

  .home-page .hero-reference .hero-search-button {
    min-height: 35px !important;
    border-radius: 9px !important;
    font-size: 12px !important;
  }
}

/* ===== ضبط فاخر مستوحى من الصورة المرجعية ===== */

.home-page .hero-reference .hero-copy,
.home-page .hero-reference .hero-copy * {
  font-family: 'Tajawal', sans-serif !important;
}

.home-page .hero-reference .hero-copy {
  width: 43% !important;
  right: 2% !important;
  padding: 8px !important;
}

.home-page .hero-reference .hero-kicker {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: #23764a !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.home-page .hero-reference .hero-copy h1 {
  color: #173e32 !important;
  font-size: clamp(27px, 3.2vw, 40px) !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
}

.home-page .hero-reference .hero-copy h1 span {
  color: #23834e !important;
}

.home-page .hero-reference .hero-copy p {
  color: #536b5d !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.home-page .hero-reference .hero-search {
  min-height: 48px !important;
  border: 1px solid #e1e9e3 !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(20, 60, 40, .12) !important;
}

.home-page .hero-reference .hero-search input {
  font-size: 13px !important;
  font-weight: 600 !important;
}

.home-page .hero-reference .hero-controls select {
  min-height: 43px !important;
  border: 1px solid #dce7df !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: #254b38 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.home-page .hero-reference .hero-search-button {
  min-height: 43px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: #147747 !important;
  box-shadow: 0 4px 12px rgba(20, 90, 55, .18) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

@media (max-width: 600px) {
  .home-page .hero-reference .hero-copy {
    width: 49% !important;
    right: 1.5% !important;
    padding: 4px !important;
  }

  .home-page .hero-reference .hero-kicker {
    font-size: 9px !important;
    line-height: 1.5 !important;
    margin-bottom: 4px !important;
  }

  .home-page .hero-reference .hero-copy h1 {
    font-size: clamp(17px, 4.8vw, 20px) !important;
    line-height: 1.4 !important;
    margin-bottom: 5px !important;
  }

  .home-page .hero-reference .hero-copy p {
    font-size: 10px !important;
    line-height: 1.55 !important;
    margin-bottom: 7px !important;
  }

  .home-page .hero-reference .hero-search {
    min-height: 39px !important;
    margin-bottom: 7px !important;
    padding: 0 7px !important;
    border-radius: 10px !important;
  }

  .home-page .hero-reference .hero-search input {
    font-size: 10px !important;
  }

  .home-page .hero-reference .hero-controls {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }

  .home-page .hero-reference .hero-controls select {
    min-height: 35px !important;
    padding: 0 5px !important;
    font-size: 10px !important;
    border-radius: 9px !important;
  }

  .home-page .hero-reference .hero-search-button {
    min-height: 36px !important;
    font-size: 12px !important;
    border-radius: 9px !important;
  }
}


/* تحسين الخطوط وحقول البحث على الهاتف */
@media (max-width: 600px) {
  .hero-reference .hero-copy {
    font-family: 'Tajawal', sans-serif;
  }

  .hero-reference .hero-kicker {
    font-size: 9px;
    font-weight: 700;
    line-height: 1.6;
  }

  .hero-reference .hero-copy h1 {
    font-family: 'Tajawal', sans-serif;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.45;
    letter-spacing: 0;
  }

  .hero-reference .hero-copy p {
    font-size: 10px;
    font-weight: 500;
    line-height: 1.7;
  }

  .hero-reference .hero-search {
    min-height: 44px;
    border-radius: 13px;
  }

  .hero-reference .hero-search input {
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    font-weight: 600;
  }

  .hero-reference .hero-controls select {
    min-height: 36px;
    font-family: 'Tajawal', sans-serif;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
  }

  .hero-reference .hero-search-button {
    min-height: 36px;
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    font-weight: 800;
    border-radius: 11px;
  }
}

/* ضبط احترافي وهادئ لمحتوى البانر على الهاتف */
@media (max-width: 600px) {
  .hero-reference .hero-copy {
    gap: 0;
  }

  .hero-reference .hero-kicker {
    font-size: 8px;
    font-weight: 700;
    margin-bottom: 3px;
  }

  .hero-reference .hero-copy h1 {
    font-size: 16px;
    line-height: 1.4;
    margin: 3px 0 5px;
    font-weight: 800;
  }

  .hero-reference .hero-copy p {
    font-size: 9px;
    line-height: 1.5;
    margin: 0 0 7px;
  }

  .hero-reference .hero-search {
    min-height: 34px;
    height: 34px;
    border: 1px solid #e2eae5;
    border-radius: 8px;
    box-shadow: 0 2px 7px rgba(20, 70, 45, .06);
    margin-bottom: 5px;
    overflow: hidden;
  }

  .hero-reference .hero-search input {
    font-size: 10px;
    font-weight: 500;
    padding: 0 8px;
  }

  .hero-reference .hero-controls {
    gap: 5px;
  }

  .hero-reference .hero-controls select {
    min-height: 29px;
    height: 29px;
    font-size: 9px;
    border: 1px solid #e2eae5;
    border-radius: 7px;
    padding: 0 5px;
    box-shadow: none;
  }

  .hero-reference .hero-search-button {
    min-height: 29px;
    height: 29px;
    font-size: 10px;
    border-radius: 7px;
    box-shadow: none;
  }
}

/* ===== تحسين التصميم النهائي لبطاقات الوظائف ===== */

.home-page .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.home-page .job-card {
  position: relative;
  min-height: 0;
  padding: 19px;
  gap: 13px;
  border: 1px solid #e3eee7;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(24, 70, 48, .055);
  transition: transform .2s ease, box-shadow .2s ease;
}

.home-page .job-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 23px rgba(24, 70, 48, .10);
}

.home-page .job-card-top {
  justify-content: space-between;
  align-items: center;
  gap: 7px;
}

.home-page .job-label {
  padding: 5px 10px;
  border-radius: 7px;
  background: #eaf6ef;
  color: #08784f;
  font-size: 11px;
  font-weight: 800;
}

.home-page .job-type {
  padding: 5px 9px;
  border: 1px solid #e5eee8;
  border-radius: 7px;
  background: #fafcfb;
  color: #64766b;
  font-size: 11px;
}

.home-page .job-card h3 {
  margin: 3px 0 0;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 800;
}

.home-page .job-company {
  font-size: 14px;
}

.home-page .job-meta {
  gap: 7px;
}

.home-page .job-meta span {
  padding: 6px 9px;
  border: 1px solid #edf3ef;
  border-radius: 7px;
  background: #f5faf7;
  color: #486454;
  font-size: 11px;
}

.home-page .job-description {
  color: #687b70;
  font-size: 12px;
  line-height: 1.9;
}

.home-page .job-deadline {
  padding: 7px 10px;
  border-radius: 7px;
  background: #fff9ed;
  color: #886536;
  font-size: 11px;
}

.home-page .job-card .job-button {
  min-height: 42px;
  margin-top: auto;
  padding: 9px 13px;
  border-radius: 9px;
  background: #08784f;
  font-size: 13px;
  transition: background .2s ease;
}

.home-page .job-card .job-button:hover {
  background: #075b40;
}

@media (max-width: 900px) {
  .home-page .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }
}

@media (max-width: 600px) {
  .home-page .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-page .job-card {
    padding: 16px;
    gap: 11px;
    border-radius: 13px;
  }

  .home-page .job-card h3 {
    font-size: 17px;
  }

  .home-page .job-card .job-button {
    min-height: 40px;
  }
}

/* ===== تحسين البطاقة - الخطوة الأولى ===== */
.home-page .job-card h3 {
  color: #174c37;
  font-weight: 850;
  letter-spacing: -.2px;
}

.home-page .job-company {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #536e60;
  font-weight: 700;
}

.home-page .job-company::before {
  content: "▣";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  border-radius: 7px;
  background: #eaf6ef;
  color: #08784f;
  font-size: 13px;
}

/* ===== تحسين معلومات الوظيفة - الخطوة الثانية ===== */
.home-page .job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-page .job-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border: 1px solid #e1eee6;
  border-radius: 9px;
  background: #f2f8f4;
  color: #38634d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

/* معلومات الراتب وتاريخ النشر */
.home-page .job-extra-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.home-page .job-extra-meta span {
  display: inline-flex;
  align-items: center;
  padding: 7px 9px;
  border-radius: 8px;
  background: #f8faf8;
  border: 1px solid #e9efe9;
  color: #63776a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
}

/* الصورة الرمزية الموحدة للشركات */
.home-page .job-company::before {
  content: "▦";
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 11px;
  background: linear-gradient(145deg, #e5f5eb, #f1faf4);
  border: 1px solid #dcefe2;
  color: #08784f;
  font-size: 19px;
  font-weight: 900;
}


/* ===== ترقيم صفحات الوظائف ===== */
.home-page .jobs-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px auto 12px;
  direction: rtl;
}

.home-page .jobs-pagination[hidden] {
  display: none !important;
}

.home-page .jobs-pagination button {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dcebe1;
  border-radius: 10px;
  background: #fff;
  color: #08784f;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.home-page .jobs-pagination button[aria-current="page"] {
  background: #08784f;
  border-color: #08784f;
  color: #fff;
}

.home-page .jobs-pagination button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.home-page .jobs-pagination button:not(:disabled):not([aria-current="page"]):hover {
  background: #eaf6ef;
}

.home-page .jobs-pagination .page-dots {
  color: #718477;
  font-weight: 800;
  padding: 0 3px;
}

@media (max-width: 480px) {
  .home-page .jobs-pagination {
    gap: 5px;
  }

  .home-page .jobs-pagination button {
    min-width: 35px;
    height: 37px;
    padding: 0 8px;
    font-size: 12px;
  }
}


/* روابط صفحات أنواع العمل */
.job-categories {
  width: min(1100px, calc(100% - 32px));
  margin: 22px auto 32px;
}

.job-categories .section-heading {
  margin-bottom: 16px;
}

.job-category-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.job-category-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 14px;
  border: 1px solid #dcefe2;
  border-radius: 14px;
  background: #fff;
  color: #08784f;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .04);
  transition: .2s ease;
}

.job-category-link:hover {
  background: #edf8f1;
  border-color: #a9d8ba;
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .job-category-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* إصلاح إخفاء رسالة عدم وجود الوظائف */
.home-page #empty[hidden] {
  display: none !important;
}

/* أيقونات معلومات الوظائف الاحترافية */
.home-page .job-meta span,
.home-page .job-extra-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.home-page .info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: #08784f;
}
.home-page .info-icon svg,
.job-detail-page .info-icon svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* إصلاح الأيقونات داخل بطاقات الوظائف */
.home-page .job-meta span .info-icon,
.home-page .job-extra-meta span .info-icon {
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #08784f !important;
  line-height: 0 !important;
}
.home-page .info-icon svg {
  width: 16px;
  height: 16px;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ===== شريط أحدث الوظائف ===== */
.home-page .jobs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 18px;
  padding: 13px 15px;
  direction: rtl;
  background: #fff;
  border: 1px solid #e5ece7;
  border-radius: 13px;
  box-shadow: 0 3px 12px rgba(25, 65, 43, .05);
}

.home-page .jobs-count {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  color: #52665a;
  font-size: 13px;
}

.home-page .jobs-count strong {
  color: #147747;
  font-size: 19px;
  font-weight: 900;
}

.home-page .jobs-count small {
  color: #89958d;
  font-size: 11px;
}

.home-page .jobs-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-page .jobs-sort {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #52665a;
  font-size: 12px;
  font-weight: 700;
}

.home-page .jobs-sort select {
  min-height: 35px;
  padding: 4px 8px;
  border: 1px solid #dce7df;
  border-radius: 8px;
  background: #fff;
  color: #245a43;
  font: inherit;
  font-size: 12px;
}

.home-page #jobs-filter-toggle {
  min-height: 35px;
  padding: 5px 14px;
  border: 0;
  border-radius: 8px;
  background: #147747;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.home-page #jobs-filter-toggle:active {
  transform: scale(.97);
}

@media (max-width: 480px) {
  .home-page .jobs-toolbar {
    padding: 11px;
    gap: 9px;
  }

  .home-page .jobs-count {
    font-size: 11px;
  }

  .home-page .jobs-count strong {
    font-size: 17px;
  }

  .home-page .jobs-toolbar-actions {
    gap: 7px;
  }
}
