body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f7fa;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0B1F3A;
  color: white;
  padding: 15px 30px;
}

.logo {
  margin: 0;
}

nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: bold;
}

/* HERO SLIDER */
.slider {
  position: relative;
  height: 90vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.slide.active {
  opacity: 1;
}

/* BACKGROUND IMAGES */
.slide:nth-child(1) {
  background-image: url('https://images.unsplash.com/photo-1601584115197-04ecc0da31d7');
}

.slide:nth-child(2) {
  background-image: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d');
}

.slide:nth-child(3) {
  background-image: url('https://images.unsplash.com/photo-1603791440384-56cd371ee9a7');
}

/* HERO TEXT */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  width: 90%;
  max-width: 850px;
  margin: auto;
}

.hero-content h2 {
  font-size: 42px;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 18px;
}

.hero-content button {
  padding: 14px 28px;
  background: #FF7A00;
  border: none;
  color: white;
  cursor: pointer;
  margin-top: 10px;
  border-radius: 6px;
  font-size: 16px;
}

/* CATEGORIES */
.categories {
  text-align: center;
  padding: 50px 20px;
}

.cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  background: white;
  padding: 22px;
  width: 250px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
}

/* JOB LISTINGS */
.job-listings {
  text-align: center;
  padding: 50px 20px;
}

.job-card {
  background: white;
  margin: 20px auto;
  padding: 20px;
  width: 300px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
}

.job-card button {
  background: #FF7A00;
  border: none;
  color: white;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 6px;
}

/* POPUP FORM */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  overflow-y: auto;
  z-index: 999;
}

.popup-content {
  background: white;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  margin: 50px auto;
  border-radius: 10px;
  text-align: center;
  max-height: 85vh;
  overflow-y: auto;
}

.popup-content input,
.popup-content textarea,
.popup-content select {
  width: 95%;
  padding: 10px;
  margin: 6px 0;
  font-size: 16px;
}

.popup-content button {
  background: #FF7A00;
  border: none;
  color: white;
  padding: 12px;
  cursor: pointer;
  border-radius: 6px;
  width: 95%;
  font-size: 16px;
}

.close {
  float: right;
  cursor: pointer;
  font-size: 22px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {

  header {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  nav {
    margin-top: 10px;
  }

  nav a {
    display: inline-block;
    margin: 6px;
    font-size: 14px;
  }

  .slider {
    height: 420px;
  }

  .hero-content h2 {
    font-size: 26px;
  }

  .hero-content p {
    font-size: 15px;
  }

  .hero-content button {
    width: 90%;
    max-width: 260px;
    font-size: 15px;
  }

  .categories {
    padding: 30px 15px;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
    max-width: 330px;
  }

  .job-card {
    width: 90%;
  }

  .popup-content {
    width: 92%;
    margin: 25px auto;
    padding: 15px;
  }

  .popup-content input,
  .popup-content textarea,
  .popup-content select {
    width: 95%;
    font-size: 16px;
  }
}