body {
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
}

/* ------ Header and Nav Bar ------------- */

header {
  background: #2f2640;
  color: white;
  padding: 1rem 2rem;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

header h1 {
  font-family: Montserrat;
  font-size: 1.5rem;
  margin: 0;
}

nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.3s;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ------ Main --------------------------- */

main {
  padding: 20px;
}
form input, form textarea {
  width: 100%;
  max-width: 400px;
  margin-bottom: 10px;
}
button {
  padding: 6px 12px;
  cursor: pointer;
}
pre {
  background: #e5e7eb;
  padding: 8px;
  white-space: pre-wrap;
}

/* Job Cards Grid Layout */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.job-card {
  background: white;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.job-card:hover {
  border-color: #3498db;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
  transform: translateY(-2px);
}

.job-card h3 {
  margin: 0 0 1rem 0;
  color: #2c3e50;
  font-size: 1.3rem;
}

.job-card h3 a {
  color: #2c3e50;
  text-decoration: none;
}

.job-card h3 a:hover {
  color: #3498db;
}

.job-details {
  flex-grow: 1;
  margin-bottom: 1rem;
}

.job-detail-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
}

.job-detail-item:last-child {
  border-bottom: none;
}

.job-detail-item strong {
  color: #2c3e50;
}

.view-details-btn {
  display: inline-block;
  background: #3498db;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s;
  margin-top: auto;
}

.view-details-btn:hover {
  background: #2980b9;
  text-decoration: none;
}

.no-jobs {
  text-align: center;
  color: #7f8c8d;
  font-size: 1.1rem;
  padding: 3rem;
  background: #f8f9fa;
  border-radius: 8px;
}

/* Job Detail Page */

.job-detail-page {
  max-width: 800px;
}

.job-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.info-item {
  color: #555;
}

.info-item strong {
  display: block;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.job-description {
  margin: 2rem 0;
}

.job-description h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.job-description p {
  color: #555;
  line-height: 1.8;
}

.success-message {
  text-align: center;
  max-width: 600px;
  margin: 3rem auto;
  padding: 2rem;
  background: #d4edda;
  border: 2px solid #28a745;
  border-radius: 8px;
}

.success-message h2 {
  color: #155724;
  border: none;
  padding: 0;
  margin-bottom: 1rem;
}

.success-message p {
  color: #155724;
  margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .jobs-grid {
    grid-template-columns: 1fr;
  }
  
  .job-info-grid {
    grid-template-columns: 1fr;
  }
}
