/* Hero with gradient - connects to main */
.hero {
  background: 
    radial-gradient(ellipse at 30% 0%, rgba(247, 147, 30, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 20%, rgba(99, 102, 241, 0.35) 0%, transparent 55%),
    var(--bg-primary) !important;
  padding-bottom: 60px !important;
  margin-bottom: 0 !important;
}

[data-theme="light"] .hero {
  background: 
    radial-gradient(ellipse at 30% 0%, rgba(247, 147, 30, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 20%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
    var(--bg-primary) !important;
}

/* Main content wrapper - ONE unified background for ALL sections */
main {
  background: 
    radial-gradient(ellipse at 15% 5%, rgba(247, 147, 30, 0.3) 0%, transparent 35%),
    radial-gradient(ellipse at 85% 15%, rgba(99, 102, 241, 0.25) 0%, transparent 35%),
    radial-gradient(ellipse at 25% 45%, rgba(99, 102, 241, 0.2) 0%, transparent 30%),
    radial-gradient(ellipse at 75% 55%, rgba(247, 147, 30, 0.25) 0%, transparent 35%),
    radial-gradient(ellipse at 50% 85%, rgba(99, 102, 241, 0.2) 0%, transparent 30%),
    var(--bg-primary) !important;
  position: relative;
}

[data-theme="light"] main {
  background: 
    radial-gradient(ellipse at 15% 5%, rgba(247, 147, 30, 0.18) 0%, transparent 35%),
    radial-gradient(ellipse at 85% 15%, rgba(99, 102, 241, 0.15) 0%, transparent 35%),
    radial-gradient(ellipse at 25% 45%, rgba(99, 102, 241, 0.12) 0%, transparent 30%),
    radial-gradient(ellipse at 75% 55%, rgba(247, 147, 30, 0.15) 0%, transparent 35%),
    radial-gradient(ellipse at 50% 85%, rgba(99, 102, 241, 0.12) 0%, transparent 30%),
    var(--bg-primary) !important;
}

/* ALL sections transparent - unified look */
#open-positions,
#why-join {
  background: transparent !important;
  padding-top: 50px;
  padding-bottom: 50px;
  margin: 0;
  border: none;
  box-shadow: none;
}

/* Slightly more spacing on desktop */
@media (min-width: 768px) {
  #open-positions,
  #why-join {
    padding-top: 70px;
    padding-bottom: 70px;
  }
}

/* Job Cards Grid */
.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 28px;
  height: 100%;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

[data-theme="light"] .job-card {
  background: var(--bg-card);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.job-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(247, 147, 30, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Hover effects only on desktop */
@media (min-width: 768px) {
  .job-card {
    transition: all 0.4s ease;
  }
}

.job-card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(247, 147, 30, 0.1);
  border-color: rgba(247, 147, 30, 0.3);
}

.job-card:hover::after {
  opacity: 1;
}

[data-theme="light"] .job-card:hover {
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.15),
    0 0 20px rgba(247, 147, 30, 0.1);
}

.job-card:hover .job-arrow {
  opacity: 1;
  transform: translateX(0);
}

.job-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-icon i {
  font-size: 1.5rem;
  color: var(--bg-primary);
  transition: transform 0.3s ease;
}

.job-card:hover .job-icon {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(247, 147, 30, 0.3);
}

.job-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.job-summary {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-secondary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--muted);
}

.job-tag i {
  color: var(--primary);
  font-size: 0.7rem;
}

.job-arrow {
  position: absolute;
  bottom: 28px;
  right: 28px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.job-arrow i {
  color: var(--bg-primary);
  font-size: 0.9rem;
}

.rtl .job-arrow {
  inset-inline-end: auto; /* logical property بدلاً من right */
  inset-inline-start: 28px; /* logical property بدلاً من left */
}

.rtl .job-arrow i {
  transform: rotate(180deg);
}

/* No Jobs Message */
.no-jobs-message {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-secondary);
  border: 1px dashed var(--border-color);
  border-radius: 20px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.no-jobs-message > i {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-jobs-message h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.no-jobs-message p {
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 24px;
}


.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  border-radius: 0 0 2px 2px;
}

.benefit-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(247, 147, 30, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Hover effects only on desktop */
@media (min-width: 768px) {
  .benefit-card {
    transition: all 0.4s ease;
  }
}

.benefit-card:hover {
  transform: translateY(-6px);
  border-color: rgba(247, 147, 30, 0.3);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(247, 147, 30, 0.1);
}

.benefit-card:hover::before {
  transform: scaleX(1);
}

.benefit-card:hover::after {
  opacity: 1;
}

[data-theme="light"] .benefit-card {
  background: var(--bg-card);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .benefit-card:hover {
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.15),
    0 0 20px rgba(247, 147, 30, 0.1);
}

.benefit-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.benefit-card:hover i {
  transform: scale(1.1);
  color: var(--primary);
}

.benefit-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.benefit-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Modal Styles */
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .modal-content {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 24px 28px;
}

.modal-title-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.modal-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-icon i {
  font-size: 1.3rem;
  color: var(--bg-primary);
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.modal-meta span {
  font-size: 0.85rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.modal-meta span i {
  color: var(--primary);
  font-size: 0.75rem;
}

.modal-body {
  padding: 28px;
}

.job-section {
  margin-bottom: 24px;
}

.job-section:last-child {
  margin-bottom: 0;
}

.job-section h6 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.job-section p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.job-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.job-section ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.job-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.rtl .job-section ul li {
  padding-left: 0;
  padding-right: 20px;
}

.rtl .job-section ul li::before {
  left: auto;
  right: 0;
}

/* RTL Modal Header */

.rtl .modal-header .btn-close {
  margin: 0;
  margin-right: auto;
}

.rtl .modal-title-wrapper {
  text-align: right;
}

.rtl .modal-footer {
  justify-content: flex-start;
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 20px 28px;
  justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
  .job-card {
    padding: 24px;
  }

  .job-arrow {
    display: none;
  }

  .benefit-card {
    padding: 24px;
  }

  .benefit-card i {
    font-size: 2rem;
  }

  .modal-header {
    padding: 20px;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-title-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}