/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
}

/* Navbar */
.navbar {
  background-color: #2a3f54;
  padding: 15px 30px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo .logo-icon {
  display: flex;
  align-items: center;
  color: #ecf0f1;
  font-weight: 700;
  font-size: 1.7rem;
  cursor: default;
  user-select: none;
}

.logo-icon img {
  width: 45px;
  height: 45px;
  margin-right: 12px;
  object-fit: contain;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-menu li a {
  color: #ecf0f1;
  text-decoration: none;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px;
  transition: background-color 0.25s ease;
}

.nav-menu li a:hover,
.nav-menu li a:focus {
  background-color: #3d5a7c;
  outline: none;
}

.nav-menu li input.search {
  padding: 7px 12px;
  border-radius: 8px;
  border: none;
  width: 200px;
  font-size: 1rem;
  transition: box-shadow 0.3s ease;
}

.nav-menu li input.search:focus {
  outline: none;
  box-shadow: 0 0 8px #2980b9;
}

.nav-buttons a.signbutton {
  background-color: #ecf0f1;
  color: #2a3f54;
  padding: 8px 22px;
  border-radius: 25px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
}

.nav-buttons a.signbutton:hover,
.nav-buttons a.signbutton:focus {
  background-color: #2980b9;
  color: white;
  outline: none;
}

/* Slider background and overlay */
.slider-bg {
  position: relative;
  background: url('./imgs/slider-bg.jpg') center center/cover no-repeat;
  height: 100vh;
  /* full viewport height */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 1s ease-in-out;
}

.text-overlay {
  background-color: rgba(0, 0, 0, 0.45);
  color: white;
  padding: 33px 60px;
  border-radius: 10px;
  max-width: 720px;
  text-align: center;
  user-select: none;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 25px;
  line-height: 1.5;
}

.explorejob-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #2980b9;
  color: white;
  font-weight: 700;
  padding: 12px 28px;
  font-size: 1.1rem;
  border-radius: 30px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none;
}

.explorejob-button:hover,
.explorejob-button:focus {
  background-color: #1c5980;
  outline: none;
}

.svgIcon {
  fill: white;
  width: 1.3em;
  height: 1.3em;
}

/* Available Jobs Section */
.available-jobs {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
}

.available-jobs h2 {
  font-size: 2.6rem;
  margin-bottom: 35px;
  color: #2a3f54;
  font-weight: 700;
  text-align: center;
  user-select: none;
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}

.job-card {
  background-color: rgb(205, 235, 233);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #2a3f54;
  padding: 20px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
}

.job-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
}

.job-card h3 {

  margin-bottom: 8px;
  font-weight: 700;

  font-size: 1.4rem;

  text-align: center;
  min-height: 3.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.job-card p {
  font-size: 1.22rem;
  margin-bottom: 5px;
}

.job-card:hover,
.job-card:focus {
  box-shadow: 0 12px 30px rgba(41, 128, 185, 0.35);
  transform: translateY(-6px);
  outline: none;
}

/* Footer */
.footer {
  background-color: #2a3f54;
  color: #ecf0f1;
  padding: 40px 20px;
  margin-top: 70px;
  user-select: none;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1 1 280px;
}

.footer-section h4 {
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer-section p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.footer-section img {
  border-radius: 4px;
}

.footer-section a {
  color: #ecf0f1;
  text-decoration: none;
}

.footer-section a:hover,
.footer-section a:focus {
  text-decoration: underline;
  outline: none;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 15px;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  .slider-bg {
    height: 280px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .available-jobs {
    padding: 0 15px;
  }

  .footer-container {
    flex-direction: column;
    gap: 25px;
  }
}