* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f5f5f5;
}
.job-description-list {
  padding: 20px;
  background-color: #f0f8ff;
  border-left: 4px solid #007bff;
  font-family: "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  max-width: 800px;
  margin: 20px auto;
  border-radius: 8px;
  list-style-position: inside;
}

.job-description-list li {
  margin-bottom: 10px;
  list-style-type: disc;
}

.highlight-blue {
  color: #007bff;
}

.job-req-list {
  padding: 20px;
  background-color: #fefefe;
  border-left: 4px solid #28a745;
  font-family: "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  max-width: 800px;
  margin: 20px auto;
  border-radius: 8px;
  list-style-position: inside;
}

.job-req-list li {
  margin-bottom: 10px;
  list-style-type: circle;
}

.highlight-blue {
  color: #007bff;
}

.job-benefits-list {
  padding: 20px;
  background-color: #f0fff4;
  border-left: 4px solid #007bff;
  font-family: "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  max-width: 800px;
  margin: 20px auto;
  border-radius: 8px;
  list-style-position: inside;
}

.job-benefits-list li {
  margin-bottom: 10px;
  list-style-type: square;
}

.highlight-blue {
  color: #007bff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

.job-header {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.job-title {
  color: #2c3e50;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.company-info {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.company-logo {
  width: 80px;
  height: 80px;
  margin-right: 20px;
  border-radius: 8px;
}

.job-meta {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7f8c8d;
}

.meta-item i {
  font-size: 1.2rem;
}

.deadline {
  color: #ff0000;
  font-weight: 500;
}

.job-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.main-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

h2 {
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3498db;
}

.section {
  margin-bottom: 30px;
}

ul {
  list-style: none;
  padding-left: 20px;
}

li {
  margin-bottom: 10px;
  position: relative;
}

li:before {
  content: "•";
  color: #3498db;
  position: absolute;
  left: -15px;
}

.apply-button {
  background-color: #3498db;
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s;
}

.apply-button:hover {
  background-color: #2980b9;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow-y: auto;
}

.modal-content {
  background-color: white;
  width: 600px;
  padding: 30px;
  border-radius: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .container {
    padding: 20px 15px;
  }
  .job-content {
    grid-template-columns: 1fr;
  }

  .job-title {
    font-size: 2rem;
  }

  .company-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .company-logo {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .job-meta {
    flex-direction: column;
    gap: 15px;
  }

  .modal-content {
    width: 90%;
    left: 5%;
    transform: translate(0, -50%);
    top: 50%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 15px 10px; /* Further reduce container padding for small screens */
  }

  .job-header {
    padding: 20px;
  }

  .job-title {
    font-size: 1.8rem; /* Adjust job title font size */
  }

  .company-info {
    align-items: center; /* Center company info items for small screens */
  }

  .company-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }

  .job-meta {
    gap: 10px; /* Further reduce gap in job meta */
  }

  .meta-item i {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.3rem; /* Adjust section title font size */
    margin-bottom: 15px;
    padding-bottom: 5px;
  }

  .main-content,
  .sidebar {
    padding: 20px;
  }

  ul {
    padding-left: 15px;
  }

  li {
    margin-bottom: 8px;
  }

  li:before {
    left: -10px;
  }

  .apply-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .modal-content {
    width: 95%; /* Make modal content even wider on very small screens */
    left: 2.5%;
    transform: translate(0, -50%);
    top: 50%;
    padding: 20px;
  }

  .form-group {
    margin-bottom: 15px;
  }

  label {
    margin-bottom: 5px;
    font-size: 0.9rem;
  }

  input,
  textarea {
    padding: 8px;
    font-size: 0.9rem;
  }
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 10px;
  margin: 10px auto;
  border-radius: 5px;
  text-align: center;
  max-width: 800px; /* Adjust as needed */
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 10px;
  margin: 10px auto;
  border-radius: 5px;
  text-align: center;
  max-width: 800px; /* Adjust as needed */
}
