/* Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  background-color: #ffffff;
  padding: 1rem 2rem;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2f855a;
}

header nav a {
  margin-left: 1.5rem;
  font-size: 0.95rem;
  color: #666;
  transition: color 0.2s ease;
}

header nav a:hover {
  color: #2f855a;
}

.hero {
  position: relative;
  width: 100%;
  height: 60vh;
  /* Use real teff field photo for landing page hero */
  background: url('hero_teff.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

.hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Jobs Section */
.jobs {
  padding: 3rem 1rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.jobs h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #2f855a;
}

.job-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.job-card {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.job-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #2f855a;
}

.job-card p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #555;
}


/* Deadline styles */
.job-card .deadline {
  font-style: italic;
  color: #e53e3e; /* red to highlight application deadline */
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

/* Style for deadline text inside apply instructions */
.apply-instructions .deadline {
  color: #e53e3e;
  font-weight: 600;
}

.job-card .button {
  align-self: start;
  padding: 0.5rem 1rem;
  background-color: #2f855a;
  color: #fff;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.job-card .button:hover {
  background-color: #276749;
}

/* Job Detail Pages */
.job-header {
  position: relative;
  height: 40vh;
  background: url('hero_teff.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.job-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.job-header .header-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.job-header h1 {
  font-size: 2rem;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.job-header span {
  font-size: 0.9rem;
  color: #ddd;
}

.job-content {
  padding: 2rem 1rem;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.job-content h2 {
  font-size: 1.5rem;
  color: #2f855a;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.job-content h3 {
  font-size: 1.2rem;
  color: #276749;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

.job-content p {
  margin-bottom: 1rem;
  font-size: 0.97rem;
  line-height: 1.5;
}

.job-content ul {
  margin-left: 1.2rem;
  margin-bottom: 1rem;
}

.job-content li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.apply-instructions {
  background-color: #f6f8f6;
  border-left: 4px solid #2f855a;
  padding: 1rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

footer {
  margin-top: auto;
  background-color: #2f855a;
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .job-header h1 {
    font-size: 1.6rem;
  }
}

/* About Section */
.about-section {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.about-section .about-text {
  flex: 1 1 380px;
}

.about-section .about-text h2 {
  font-size: 2rem;
  color: #2f855a;
  margin-bottom: 0.75rem;
}

.about-section .about-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 1rem;
}

.about-section .about-image {
  flex: 1 1 280px;
  text-align: center;
}

.about-section .about-image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}