/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
      font-family: 'Open Sans', sans-serif;
    }

    /* Body Styling */
    body {
      background-color: #FFFFFF;
      color: #363838;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    /* Header (Top Ribbon with Background Image) */
    header {
      position: relative;
      overflow: hidden;
    }

.header-background {
  background-image: url('../Images/Section_01_Background.png');
  background-size: cover;
  background-position: center;
  padding: 20px 20px;
  position: relative;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Space between the logo and navigation */
  padding: 20px;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px; /* Add spacing between links */
}

.nav-links a {
  font-size: 1.2rem;
  color: #ffffff; /* White text for links */
  text-decoration: none; /* Remove underline */
  font-weight: bold; /* Make it bold for consistency */
}

.nav-links a:hover {
  color: #c0c0c0; /* Slightly dimmed color on hover */
  text-decoration: underline; /* Add underline on hover */
}

.logo {
  width: 120px;
  margin-right: 20px;
}

header h1 {
  color: #FFFFFF;
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 5px;
}

/* Content Area */
.content-area {
  flex: 1;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Back Button */
.back-button {
  display: inline-block;
  color: #FFFFFF;
  background-color: #0A3F29;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Ribbon between Back Button and Title */
.ribbon-separator {
  display: inline-block;
  width: 5px;
  height: 20px;
  background-color: #DDB671;
  margin: 0 15px;
  vertical-align: middle;
}

/* Details Layout */
.job-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* Summary Box */
.summary-box {
  background-color: #FAF4E0;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 25px;
  width: 30%;
}

.summary-box h3 {
  color: #0A3F29;
  margin-bottom: 15px;
}

.summary-box p {
  color: #363838;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

/* Job Description */
.job-details {
  background-color: #FFFFFF;
  padding: 25px; /* Slight increase for a more comfortable look */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 600px; /* Add max-width to keep text from spanning too wide */
  width: 100%;
  margin: 0 auto; /* Center the description box */
  border: 2px solid #E5E2DD; /* Light border for definition */
  background-color: #F9F9F9; /* Light background for better contrast */
  font-size: 0.9rem; /* Keep font size readable */
}

/* Job Title and Description Styling */
.job-details h2 {
  color: #0A3F29;
  font-size: 2rem;
  margin-bottom: 15px; /* Increased for a cleaner look */
  font-weight: bold;
}

.job-details p {
  color: #363838;
  margin-bottom: 10px;
  line-height: 1.6; /* Improved readability */
}

/* Apply Section */
.apply-section {
  margin-top: 30px;
  text-align: left;
}

/* Apply Button Styling */
.apply-now {
  background-color: #0A3F29;
  color: #FFFFFF;
  padding: 15px; /* Increased for a more tactile button */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1rem;
  width: 100%; /* Full width for mobile friendliness */
  margin-top: 20px;
}

.apply-now:hover {
  background-color: #085a1f;
}

/* Application Form Styling */
.application-form {
  margin-top: 20px;
  padding: 20px;
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.application-form h2 {
  color: #0A3F29;
  font-weight: bold;
  margin-bottom: 15px;
}

.application-form label {
  display: block;
  margin: 10px 0 5px;
}

.application-form input[type="text"],
.application-form input[type="email"],
.application-form input[type="tel"],
.application-form input[type="file"] {
  width: 100%;
  padding: 10px; /* Slight increase for better usability */
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.application-form button {
  background-color: #0A3F29;
  color: #FFFFFF;
  padding: 15px; /* Larger padding for better touch */
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 1rem;
  text-align: center;
  width: 100%; /* Full width for consistency */
}

.application-form button:hover {
  background-color: #085a1f;
}

/* Success Message Styling */
#success-message {
  padding: 15px;
  background-color: #DFF0D8;
  color: #3C763D;
  border-radius: 5px;
  text-align: center;
}

/* Responsive Styles for Mobile Devices */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .logo {
    width: 150px;
  }

  header h1 {
    font-size: 2rem;
    text-align: center;
  }

  /* Content Area Adjustments */
  .content-area {
    padding: 20px;
    max-width: 100%;
  }

  /* Job Layout Adjustments */
  .job-layout {
    flex-direction: column; /* Stack job summary and details vertically */
    gap: 10px; /* Smaller gap for better mobile readability */
  }

  .summary-box {
    margin-bottom: 30px;
    padding: 15px; /* Reduce padding for smaller screens */
    border: 2px solid #E5E2DD; /* Light border */
    width: calc(100% - 20px); /* Adjust width for smaller screens */
    margin: 0 auto 30px auto; /* Center and add spacing */
  }

  .job-details {
    max-width: 100%;
    margin-bottom: 30px; /* Add space at bottom */
  }

  .back-button {
    width: 100%; /* Full width for mobile */
    text-align: center;
    padding: 12px;
  }

  /* Application Form Adjustments */
  .application-form {
    padding: 15px; /* Reduce padding */
  }

  .application-form input[type="text"],
  .application-form input[type="email"],
  .application-form input[type="tel"],
  .application-form input[type="file"] {
    width: 100%; /* Ensure full width */
    padding: 10px; /* Keep padding user-friendly */
  }

  /* Hide the ribbon separator for mobile */
  .ribbon-separator {
    display: none;
  }
}
