/* 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;
  flex-wrap: wrap;
}

.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;
}

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

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

.job-header h2 {
  font-size: 2rem;
  color: #1c3b57;
  font-weight: 700;
}

.filter-btn {
  padding: 8px 16px;
  font-size: 14px;
  background: #005a9e;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.filter-btn:hover {
  background-color: #004b85;
}

.job-card {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #d0eaea;
  border-left: 6px solid #1c3b57;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 18px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.job-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.job-card img {
  width: 65px;
  height: 65px;
  object-fit: contain;
  margin-right: 20px;
}

.job-info {
  display: flex;
  flex-direction: column;
}

.job-info h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #222;
}

.job-info p {
  margin: 2px 0;
  font-size: 0.95rem;
  color: #555;
}

.posted-time {
  font-size: 0.85rem;
  color: #777;
  margin-top: 4px;
}

.job-logo {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 15px;
  flex-shrink: 0;
}

/* Job Filter Section */
.job-filter {
  margin: 20px 0;
  padding: 15px 20px;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
}

.job-filter label {
  font-weight: 600;
}

.job-filter select {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  background-color: white;
  min-width: 150px;
  transition: border-color 0.2s;
}

.job-filter select:focus {
  border-color: #1c3b57;
  outline: none;
}

/* Footer */
.footer {
  background-color: #2a3f54;
  color: #ecf0f1;
  padding: 50px 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 Design */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 15px;
  }

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

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

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

  .job-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .job-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .job-card img {
    margin-bottom: 10px;
  }

  .job-filter {
    flex-direction: column;
    gap: 10px;
  }
}
