/* Hero Section with Video */
.hero {
  position: relative;
  height: 80vh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; /* يحافظ على نسبة العرض للطول */
}

.hero-overlay {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  padding-top: 25vh;
  background: rgba(0,0,0,0.4);
}

.hero-overlay h1 {
  font-size: 50px;
  margin-bottom: 10px;
  font-weight: bold;
}

.hero-overlay p {
  font-size: 22px;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  margin: 10px;
  padding: 12px 25px;
  background-color: teal;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #006666;
}

/* Why Choose Section */
.why-choose {
  background-color: teal;
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.why-choose h2 {
  font-size: 32px;
  margin-bottom: 40px;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.feature {
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 20px;
  width: 300px;
}

.feature .icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.feature h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.feature p {
  font-size: 16px;
}

/* Featured Jobs */
.featured-jobs {
  max-width: 1200px;
  margin: 50px auto;
  text-align: center;
}

.job-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.job-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  width: 300px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.job-card h3 {
  color: teal;
  margin-bottom: 10px;
}

.job-card p {
  color: #555;
  margin-bottom: 15px;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
  .hero {
    height: 60vh; /* أقل ارتفاع للموبايل */
  }

  .hero-video {
    object-fit: contain; /* يخلي الفيديو يظهر كامل بدون تمدد */
    background-color: black; /* يضيف خلفية سوداء حوالين الفيديو */
  }

  .hero-overlay {
    padding-top: 15vh; /* يقلل المسافة فوق النص */
  }

  .hero-overlay h1 {
    font-size: 28px;
  }

  .hero-overlay p {
    font-size: 16px;
  }

  .btn {
    padding: 10px 18px;
    font-size: 14px;
  }

  .features {
    flex-direction: column;
    align-items: center;
  }

  .job-cards {
    flex-direction: column;
    align-items: center;
  }
}
