/* ===================== CSS VARIABLES ===================== */
.jobs-page {
  /* Colors - Base */
  --color-black:          #000000;
  --color-gray:           #707070;
  --color-white:          #FEFEFE;

  /* Colors - Backgrounds */
  --color-bg-light:       #F6F6F6;
  --color-bg-lighter:     #ECEFF8;
  --color-bg-lightest:    #EBEEF8;
  --color-bg-alt:         #E4E8F2;
  --color-bg-alt2:        #DEE9F4;
  --color-bg-alt3:        #D1E0F0;

  /* Colors - Brand */
  --color-primary:        #5b388c;
  --color-primary-dark:   #172026;
  --color-primary-alt:    #315B8A;
  --color-secondary:      #7956a1;
  --color-secondary-alt:  #7956a1;

  /* Colors - Accent */
  --color-orange:         #FBAB32;
  --color-orange-alt:     #F7AE1A;
  --color-red:            #B3342E;
  --color-danger:         #dc3545;
  --color-success:        #22c55e;
  /* Colors - Black with Opacity */
  --color-black-8:        rgba(0, 0, 0, 0.08);
  --color-black-16:       rgba(0, 0, 0, 0.16);
  --color-black-20:       rgba(0, 0, 0, 0.20);
  --color-black-25:       rgba(0, 0, 0, 0.25);
  --color-black-50:       rgba(0, 0, 0, 0.50);
  --color-black-60:       rgba(0, 0, 0, 0.60);
  --color-black-75:       rgba(0, 0, 0, 0.75);
  --color-black-81:       rgba(0, 0, 0, 0.81);
  --color-black-96:       rgba(0, 0, 0, 0.96);

  /* Typography */
  --font-size-13:         13px;
  --font-size-14:         14px;
  --font-size-15:         15px;
  --font-size-25:         25px;
  --font-size-30:         30px;
  --font-weight-normal:   400;
  --font-weight-medium:   500;
  --font-weight-600:      600;
  --line-height-25:       22px;

  /* Gradients */
  --gradient-primary:     linear-gradient(135deg, #5b388c, #7956a1);
  --gradient-primary-alt: linear-gradient(280.65deg, #5b388c 42.09%, #7956a1 68.6%);
}


/* ===================== LAYOUT ===================== */
.jobs-page .job-container { padding: 5rem 0; }

.jobs-page .job-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.jobs-page .col-sidebar {
  width: 25%;
  padding: 0 12px;
  margin-top: 2rem;
}

.jobs-page .col-main {
  width: 75%;
  padding: 15px 12px;
}


/* ===================== FILTER BOX ===================== */
.jobs-page .filter-box { margin-bottom: 14px; }

.jobs-page .filter-box label {
  display: block;
  font-size: var(--font-size-13);
  font-weight: var(--font-weight-medium);
  color: var(--color-black-75);
  margin-bottom: 5px;
  padding-right: 2px;
}

.jobs-page .filter-box select,
.jobs-page .filter-box input[type="text"] {
  width: 100%;
  font-size: var(--font-size-14);
  padding: 11px 14px;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  background: var(--color-white);
  box-shadow: 0px 3px 6px var(--color-black-16);
  color: var(--color-black);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23707070' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  cursor: pointer;
}

.jobs-page .filter-box input[type="text"] {
  background-image: none;
  cursor: text;
}

.jobs-page .filter-box select:focus,
.jobs-page .filter-box input[type="text"]:focus {
  border-color: var(--color-secondary);
  box-shadow: 0px 3px 8px var(--color-black-16);
}

.jobs-page .filter-box select:hover,
.jobs-page .filter-box input[type="text"]:hover {
  border-color: var(--color-secondary-alt);
}

[dir="ltr"] .jobs-page .filter-box select {
  background-position: right 12px center;
}


/* ===================== MOBILE FILTER TOGGLE ===================== */
.jobs-page .filter-toggle-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid #e9ecef;
  background: var(--color-white);
  border-radius: 6px;
  font-size: var(--font-size-14);
  cursor: pointer;
  box-shadow: 0px 3px 6px var(--color-black-16);
  margin-top: 4rem;
}

.jobs-page .filters-collapse { display: block; }


/* ===================== HEADER BAR ===================== */
.jobs-page .jobs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 12px;
}

.jobs-page .jobs-header h4 {
  font-weight: var(--font-weight-600);
  font-size: 1.1rem;
  margin: 0;
}

.jobs-page .search-bar input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  font-size: var(--font-size-14);
  box-shadow: 0px 3px 6px var(--color-black-16);
  outline: none;
  transition: border-color 0.2s;
}

.jobs-page .search-bar input:focus { border-color: var(--color-secondary); }


/* ===================== JOB CARD ===================== */
.jobs-page .job-card {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 28px 35px;
  margin-bottom: 20px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  background: var(--color-white);
  user-select: none;
}

.jobs-page .job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 6px 12px var(--color-black-20);
}

.jobs-page .job-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
  color: var(--color-black);
}

.jobs-page .job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: var(--font-size-14);
  color: var(--color-black-60);
  margin-bottom: 10px;
}

.jobs-page .job-meta span { display: flex; align-items: center; gap: 5px; }
.jobs-page .job-meta i { color: var(--color-black); font-size: var(--font-size-14); }

.jobs-page .job-desc {
  font-size: var(--font-size-14);
  color: var(--color-black-75);
  line-height: var(--line-height-25);
  margin-bottom: 15px;
}

.jobs-page .job-card.is-full {
  /* opacity: 0.9; */
    /* background-color: var(--color-black-8); */
    /* filter: grayscale(0.1); */
    transition: all 0.2s;
    /* pointer-events: none;
    cursor: default; */
    /* background: linear-gradient(to right, #c3c3c3, #c3c3c3); */
    color: #FEFEFE;
    border: none;
    border-radius: 6px;
    font-size: var(--font-size-14);
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    /* opacity: .5; */
    /* cursor: not-allowed; */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.jobs-page .job-card.is-full * { pointer-events: none;    display: flex;
    gap: 5px;
    align-items: center;
 }


/* ===================== META BADGE ===================== */
.meta-badge {
 background: #e9ecef;
    color: #5b388c;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.675rem;
  font-weight: 500;
  display: inline-block;
}


/* ===================== JOB STATUS BADGE ===================== */
.job-status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 2;
}

[dir="ltr"] .job-status-badge {
  right: 12px;
  left: 87%;
}

.job-status-badge.completed { background: #959595; }
.job-status-badge.available { background: var(--color-success);display: flex;
    gap: 5px;
    align-items: center }


/* ===================== RESET BUTTON ===================== */
.btn-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-danger);
  background-color: transparent;
  border: 1px solid var(--color-danger);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-reset:hover {
  background-color: var(--color-danger);
  color: #fff;
}

.btn-reset:active { transform: scale(0.97); }

.btn-reset i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.btn-reset:hover i { transform: rotate(180deg); }


/* ===================== OVERLAY ===================== */
.job-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 999;
}

.job-overlay.active { display: block; }


/* ===================== OFFCANVAS (CENTER MODAL) ===================== */
/*
 * Note: The variables below intentionally override the page-level brand colors
 * to give the offcanvas modal its own blue theme.
 */
.job-offcanvas {
  position: fixed;
  top: 55%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -60%) scale(0.95);
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  height: auto;
  background: #FEFEFE;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border-radius: 12px;

  /* Scoped overrides for the modal's blue theme */
  --color-black:       #000000;
  --color-gray:        #707070;
  --color-white:       #FEFEFE;
  --color-bg-light:    #F6F6F6;
  --border-color:      #e9ecef;
  --color-primary:     #2A507A;
  --color-primary-dark:#172026;
  --color-secondary:   #548FCC;
  --color-black-60:    rgba(0, 0, 0, 0.60);
  --color-black-75:    rgba(0, 0, 0, 0.75);
  --font-size-13:      13px;
  --font-size-14:      14px;
  --font-weight-600:   600;
}

.job-offcanvas.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: all;
}

[dir="ltr"] .job-offcanvas {
  left: 50%;
  right: auto;
  transform: translate(-50%, -60%) scale(0.95);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

[dir="ltr"] .job-offcanvas.open {
  transform: translate(-50%, -50%) scale(1);
}


/* ===================== OFFCANVAS INNER ===================== */
.job-offcanvas .offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #e9ecef;
  flex-shrink: 0;
}

.job-offcanvas .offcanvas-title {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--color-black);
}

.job-offcanvas .btn-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--color-black-60);
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
  line-height: 1;
}

.job-offcanvas .btn-close:hover { background: var(--color-bg-light); }

.job-offcanvas .offcanvas-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 24px;
  border-bottom: 1px solid #e9ecef;
  flex-shrink: 0;
}

.job-offcanvas .offcanvas-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  max-height: calc(85vh - 130px);
}

.job-offcanvas .custom-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: linear-gradient(to right, #5b388c, #7956a1);
  color: #FEFEFE;
  border: none;
  border-radius: 6px;
  font-size: var(--font-size-14);
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.job-offcanvas .custom-btn:hover { background: linear-gradient(to left, #5b388c, #7956a1); }

.job-offcanvas .two-col   { display: flex; gap: 24px; flex-wrap: wrap; }
.job-offcanvas .col-desc  { flex: 2; min-width: 0; }
.job-offcanvas .col-aside { flex: 1; min-width: 200px; }

.job-offcanvas .badge-secondary {
  display: inline-block;
  background: var(--color-gray);
  color: var(--color-white);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: var(--font-size-13);
  margin-bottom: 8px;
}

.job-offcanvas .offcanvas-body h4 { font-weight: bold; margin: 4px 0; color: var(--color-black); }

.job-offcanvas .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--color-black-60);
  font-size: var(--font-size-14);
  margin-bottom: 10px;
  margin-top: 5px;
}

.job-offcanvas .meta-row span { display: flex; align-items: center; gap: 6px; }

.job-offcanvas .offcanvas-body h5  { font-weight: bold; margin: 18px 0 8px; color: var(--color-black); }
.job-offcanvas .offcanvas-body p   { font-size: var(--font-size-14); line-height: 1.7; color: var(--color-black-75); }
.job-offcanvas .offcanvas-body ul  { padding-right: 20px; }
.job-offcanvas .offcanvas-body ul li { font-size: var(--font-size-14); margin-bottom: 6px; color: var(--color-black-75); }

.job-offcanvas .skills-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.job-offcanvas .skill-badge {
  background: linear-gradient(to right, #5b388c, #7956a1);
  color: var(--color-white);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: var(--font-size-13);
}

.job-offcanvas .quick-info {
  background: var(--color-bg-light);
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 18px;
  font-size: var(--font-size-14);
  line-height: 2;
}

.job-offcanvas .quick-info p { display: flex; align-items: center; gap: 8px; color: var(--color-black-75); margin: 0; }
.job-offcanvas .quick-info i { color: #5b388c; width: 16px; text-align: center; }


/* ===================== SHARE MODAL ===================== */
.share-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.share-modal-glass {
  position: relative;
  width: 90%;
  max-width: 560px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
  padding: 30px;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.glass-content {
  position: relative;
  z-index: 2;
}

.glass-reflections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.1) 100%);
  z-index: 1;
  pointer-events: none;
}

.share-modal-glass .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.share-modal-glass .modal-header h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.close-glass-modal {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-glass-modal:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.share-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.share-card {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.share-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.share-card-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.share-card-inner i    { font-size: 22px; }
.share-card-inner span { display: none; }

.share-url {
  display: flex;
  gap: 8px;
}

.share-url input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 13px;
  outline: none;
  direction: ltr;
  text-align: right;
}
[dir='ltr'] .share-url input {
    text-align: left
}
[dir='ltr'] .xmodal-table th{
  text-align: left
}
.flatpickr-current-month {
  font-size: 1rem !important
}
.flatpickr-current-month .numInputWrapper {
    width: 7ch !important;
    width: 7ch\0;
    display: inline-block;
}
.share-url input::placeholder { color: rgba(255, 255, 255, 0.6); }

.share-url button {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.share-url button:hover { background: rgba(255, 255, 255, 0.35); }


/* ===================== APPLY PAGE ===================== */
.apply-page {
  min-height: 100vh;
  background-color: #f8f9fa;
}

.apply-show-section {
  margin-top: 4.75rem !important;
  padding-top: 1rem !important;
  margin-bottom: 4.75rem !important;
}

.job-info-card {
  background: linear-gradient(135deg, #5b388c, #7956a1);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.job-info-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.job-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.apply-job-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.job-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.job-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  opacity: 0.9;
}

.job-meta-list span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.application-form-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.5rem;
}

.form-subtitle {
  color: #6c757d;
  margin-bottom: 2rem;
}

.form-field-group { margin-bottom: 1.5rem; }

.form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
  display: block;
}

.required-star { color: var(--color-danger); }

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: #5b388c;
  outline: none;
  box-shadow: 0 0 0 3px rgba(91, 56, 140, 0.1);
}

.form-input.is-invalid,
.form-textarea.is-invalid,
.form-select.is-invalid { border-color: var(--color-danger); }

.invalid-feedback {
  display: block;
  color: var(--color-danger);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  display: block;
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

.field-hint {
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.field-error {
  display: none;
  font-size: 0.8rem;
  color: var(--color-danger, #dc3545);
  margin-top: 0.35rem;
  align-items: center;
  gap: 0.3rem;
}
.field-error.show { display: flex; }

.form-input.f-invalid,
.form-textarea.f-invalid,
.form-select.f-invalid,
.checkbox-group.f-invalid,
.radio-group.f-invalid {
  border-color: var(--color-danger, #dc3545);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-input.f-valid,
.form-textarea.f-valid,
.form-select.f-valid {
  border-color: #198754;
  box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.08);
}

/* intl-tel-input v19 overrides */
.iti {
  width: 100%;
  position: relative;
}
.iti * { box-sizing: border-box; }

/* القائمة المنسدلة */
.iti__dropdown-content {
  direction: rtl;
}

/* زر الدولة المختارة — يمين الحقل (RTL) */
.iti__selected-country {
  border-radius: 0 8px 8px 0;
  padding: 0 10px;
  border-left: 1px solid #dee2e6;
  border-right: none;
  background: #f8f9fa;
  min-width: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* حقل الإدخال — padding يمين للزر */
.iti--show-selected-dial-code input[type="tel"],
.iti input[type="tel"] {
  padding-right: 90px !important;
  padding-left: 0.75rem !important;
  text-align: right;
}

/* حاوية القائمة المنسدلة */
.iti__dropdown-content {
  border-radius: 10px;
  border: 1px solid #dee2e6;
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  overflow: hidden;
  background: #fff;
  z-index: 99999;
  min-width: 260px;
}

/* حقل البحث */
.iti__search-input {
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-bottom: 1px solid #dee2e6;
  font-size: 0.875rem;
  outline: none;
  background: #f8f9fa;
  text-align: start;
}
.iti__search-input:focus {
  background: #fff;
  border-bottom-color: #5b388c;
}

/* قائمة الدول */
.iti__country-list {
  max-height: 230px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #dee2e6 transparent;
}
.iti__country-list::-webkit-scrollbar { width: 5px; }
.iti__country-list::-webkit-scrollbar-thumb { background: #dee2e6; border-radius: 4px; }

/* عنصر الدولة */
.iti__country {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  text-align: start;
}
.iti__country:hover,
.iti__country.iti__highlight { background: #f3eeff; }
.iti__country-name { flex: 1; }
.iti__dial-code { color: #6c757d; font-size: 0.8rem; direction: ltr; }

/* فاصل الدول المفضلة */
.iti__divider { border-top: 1px solid #dee2e6; margin: 4px 0; }

/* حالة الخطأ */
.iti:has(.f-invalid) .iti__selected-country {
  border-color: var(--color-danger, #dc3545);
  background: #fff5f5;
}
/* حالة الصحة */
.iti:has(.f-valid) .iti__selected-country {
  border-color: #198754;
  background: #f0fff4;
}
.iti--allow-dropdown input.iti__tel-input, .iti--allow-dropdown input.iti__tel-input[type=tel], .iti--allow-dropdown input.iti__tel-input[type=text], .iti--show-selected-dial-code input.iti__tel-input, .iti--show-selected-dial-code input.iti__tel-input[type=tel], .iti--show-selected-dial-code input.iti__tel-input[type=text] {
    padding-right: 12px !important;
    padding-left: 52px;
    margin-left: 0;
}

[dir='ltr'] .iti--show-selected-dial-code input[type="tel"], .iti input[type="tel"] {
    padding-right: 90px !important;
    padding-left: 5.75rem !important;
    text-align: left;
}
[dir=rtl] .iti--allow-dropdown .iti__flag-container, [dir=rtl] .iti--show-selected-dial-code .iti__flag-container {
    left: 0;
    right: auto;
}
.iti__flag-container{
    padding:0px !important;
}
.iti--inline-dropdown .iti__dropdown-content {
    position: absolute;
    z-index: 2;
    /* margin-top: 3px; */
    margin-right: -1px;
    border: 1px solid #ccc;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, .2);
    left: 1px;
}
.file-upload-wrapper { position: relative; }
[dir=rtl] .iti__arrow {
    margin-left: 5px !important;
    margin-right: 0 !important;
    order: -1 !important;
}
[dir='rtl'] .iti__flag {

    order: 4 !important;

}
[dir=rtl] .iti--show-selected-dial-code.iti--show-flags .iti__selected-dial-code {
    margin-left: 3px !important;
    margin-right: -1px !important;
    order: 1 !important;
        direction: ltr !important;
}
.file-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 0.875rem;
}

.file-size {
  color: #6c757d;
  font-size: 0.75rem;
}

.remove-file-btn {
  background: none;
  border: none;
  color: var(--color-danger);
  cursor: pointer;
  margin-right: auto;
  padding: 0 0.25rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #5b388c, #7956a1);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(91, 56, 140, 0.3);
  color: #fff;
}

.btn-secondary { background: #6c757d; color: #fff; }
.btn-secondary:hover { background: #5a6268; color: #fff; }

.form-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.checkbox-group label,
.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-weight: normal;
  cursor: pointer;
}

/* Note: overrides the grouped declaration above with select-specific styling */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 10px 40px 10px 12px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5.5 7l4.5 5 4.5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: left 10px center;
  background-size: 16px;
}

[dir="ltr"] .form-select     { background-position: right 10px center; }
[dir="ltr"] .fa-chevron-left { transform: scaleX(-1); }


/* ===================== JOB DETAIL PAGE ===================== */
.job-detail-page { min-height: 100vh; }

.job-show-section {
  margin-top: 4.75rem !important;
  padding-bottom: 4rem !important;
}

.job-detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.job-main-col    { flex: 2; min-width: 0; }
.job-sidebar-col { flex: 1; min-width: 260px; }

.job-main-col h4 { font-size: 1.55rem; }

/* Quick Info */
.quick-info {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin-bottom: 12px;
}

.quick-info p {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.quick-info i {
  width: 1.25rem;
  color: #5b388c;
}

/* Badges */
.job-badge {
  background: #e9ecef;
  color: #5b388c;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-block;
}

.skill-badge {
  background: rgba(91, 56, 140, 0.1);
  color: #5b388c;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 8px;
}

/* Actions */
.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.custom-btn {
  background: linear-gradient(280.65deg, #5b388c 42.09%, #7956a1 68.6%);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1.05rem;
  font-weight: 500;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.custom-btn:hover {
  background: linear-gradient(280.65deg, #7956a1 42.09%, #5b388c 68.6%);
  color: #fff;
}

/* Meta */
.job-meta {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  margin-top: 12px;
  margin-bottom: 1.5rem;
}

.job-meta span {
  background: #e9ecef;
  color: #5b388c;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.775rem;
  font-weight: 500;
  display: inline-block;
}

/* Content */
.job-detail-content { font-size: 13px; }

.job-detail-content ul {
  padding-right: 1.5rem;
  margin-bottom: 1rem;
}

.job-detail-content li { margin-bottom: 0.5rem; }

.skills-list { margin-top: 12px; }

#applicationForm {
    overflow: visible !important;
}
.application-form-card,
.form-field-group,
.job-container,
.container {
    overflow: visible !important;
}


/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
  .jobs-page .col-sidebar { width: 100%; }
  .jobs-page .col-main    { width: 100%; }
}

@media (max-width: 768px) {
  .jobs-page .job-container                  { padding: 0; }
  .jobs-page .job-card                       { padding: 18px 20px; margin-bottom: 28px; }
  .jobs-page .job-title                      { font-size: 16px; }
  .jobs-page .filter-toggle-btn              { display: flex; margin-top: 6rem; }
  .jobs-page .filters-collapse               { display: none; }
  .jobs-page .filters-collapse.open          { display: block; }
  .jobs-page .jobs-header                    { flex-direction: column; align-items: flex-start; }

  .job-status-badge {
    top: 3px;
    left: 4px;
    font-size: 0.62rem;
    padding: 3px 14px;
  }
   .jobs-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .jobs-header .search-bar {
    max-width: 100% !important;
    width: 100%;
  }

  .jobs-header .search-bar input {
    width: 100%;
  }

  [dir="ltr"] .job-status-badge {
    right: 4px;
    left: 71%;
  }

  /* .job-offcanvas { width: 100%; max-width: 100%; } */
  .job-offcanvas .offcanvas-header           { padding: 14px 16px; }
  .job-offcanvas .offcanvas-title            { font-size: 1rem; }
  .job-offcanvas .offcanvas-body             { padding: 16px; }
  .job-offcanvas .two-col                    { flex-direction: column; gap: 16px; }
  .job-offcanvas .col-desc                   { order: 1; }
  .job-offcanvas .col-aside                  { order: 2; min-width: unset; width: 100%; }
  .job-offcanvas .meta-row                   { flex-direction: column; gap: 8px; }
  .job-offcanvas .offcanvas-actions          { gap: 8px; padding: 12px 16px; }
  .job-offcanvas .custom-btn                 { flex: 1 1 calc(50% - 4px); justify-content: center; font-size: 12px; padding: 8px 10px; }
  .job-offcanvas .skills-wrap                { gap: 6px; }
  .job-offcanvas .skill-badge                { font-size: 12px; padding: 5px 10px; }
  .job-offcanvas .quick-info                 { padding: 14px; }

  .form-actions                              { flex-direction: column; }
  .form-actions .btn                         { width: 100%; justify-content: center; }
  .job-title, .form-title                    { font-size: 1rem; }

  .job-detail-row { flex-direction: column; }
  .job-main-col h4 { font-size: 1.05rem; }
}

@media (max-width: 576px) {
  .share-modal-glass         { padding: 20px 16px; border-radius: 16px; }
  .share-modal-glass .modal-header h3 { font-size: 16px; }
  .share-grid                { gap: 9px; }
  .share-card                { width: 48px; height: 48px; }
  .share-card-inner i        { font-size: 18px; }
  .share-url input           { font-size: 11px; padding: 8px 10px; }
  .share-url button          { padding: 8px 12px; }
}

@media (max-width: 480px) {
  /* .share-card         { height: 75px; } */
  .share-card-inner i { font-size: 22px; }
}


