/* css/careers.css */

/* Brand Colors */
:root {
  --d3f-blue: #0D407F;
  --d3f-green: #2C9A3D;
}

/* Careers Hero Banner (using hero1.png) */
.careers-hero {
  position: relative;
  background: url("../images/hero1.png") no-repeat center center/cover;
  color: #fff;
  padding: 120px 0;
  text-align: center;
}
.careers-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Overlay for text readability */
  z-index: 1;
}
.careers-hero .container {
  position: relative;
  z-index: 2;
}
.careers-hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}
.careers-hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Openings Section */
.openings-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  text-align: center;
}
.openings-section h2 {
  font-size: 2.5rem;
  color: var(--d3f-blue);
  margin-bottom: 20px;
}
.openings-section p {
  color: #333;
  margin-bottom: 40px;
  max-width: 800px;
  margin: 0 auto 40px;
}
.openings-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}
.opening {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: left;
  transition: transform 0.3s ease;
}
.opening:hover {
  transform: translateY(-5px);
}
.opening h3 {
  font-size: 1.4rem;
  color: var(--d3f-blue);
  margin-bottom: 10px;
}
.opening ul {
  list-style: disc inside;
  color: #666;
  line-height: 1.5;
}

/* Application Form Section */
.application-section {
  padding: 60px 0;
  text-align: center;
}
.application-section h2 {
  font-size: 2.5rem;
  color: var(--d3f-blue);
  margin-bottom: 20px;
}
.application-section p {
  color: #333;
  margin-bottom: 40px;
  max-width: 800px;
  margin: 0 auto;
}

/* Success Message */
.application-success {
  background: #dff0d8;
  border: 1px solid #d6e9c6;
  padding: 20px;
  border-radius: 4px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.application-success h3 {
  color: var(--d3f-blue);
  margin-bottom: 10px;
}

/* Application Form */
.application-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}
.form-group label span {
  color: red; /* For required fields */
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--d3f-green);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  cursor: pointer;
}
.btn:hover {
  background-color: #249435;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .openings-list {
    grid-template-columns: 1fr 1fr; /* 2 columns on smaller screens */
  }
}
@media (max-width: 768px) {
  .careers-hero h1 {
    font-size: 2.5rem;
  }
  .careers-hero p {
    font-size: 1.1rem;
  }
  .openings-list {
    grid-template-columns: 1fr; /* 1 column on mobile */
  }
  .application-section h2 {
    font-size: 2rem;
  }
}
