/* Global Styling */
body {
  margin: 0;
  font-family: "Oswald", sans-serif;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url('https://www.redactedsociety.com/socials/RS_Website_Background.png');
  background-position: center;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html, body {
  /* Ensure no browser default margins */
  margin: 0;
  padding: 0;
}

.content-wrapper {
  flex: 1;
  text-align: center; /* Centers the content inside */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centers content vertically */
  align-items: center;     /* Centers content horizontally */
}

/* Centered Header */
.centered-header {
  text-align: center; /* Centers the header content */
  margin-top: 100px;  /* Adjusts the space at the top */
}

.centered-header h1 {
  font-family: 'Oswald', sans-serif;
  color: white;
  font-size: 48px;
  margin: 0; /* Prevents default margins */
}

/* Jobs Section */
.jobs-section {
  padding: 60px 20px;
  text-align: center; /* Centers the section title */
}

.section-title {
  font-size: 36px;
  font-family: 'Oswald', sans-serif;
  color: white;
  margin-bottom: 30px;
}

.job-listing {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Job Card */
.job-card {
  background-color: #203354;
  padding: 20px;
  border-radius: 8px;
  width: 600px; /* Increase width to allow more space */
  color: white;
  text-align: left;
}

.job-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  margin-bottom: 10px;
}

.job-card p, .job-responsibilities, .job-requirements, .job-preferred {
  font-family: 'Oswald', sans-serif;
  margin-bottom: 10px;
  line-height: 1.5;
}

.job-responsibilities, .job-requirements, .job-preferred {
  list-style-type: disc;
  padding-left: 20px;
}

.apply-button {
  display: block;
  background-color: #035aa6;
  color: white;
  padding: 10px;
  text-align: center;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  font-family: 'Oswald', sans-serif;
}

.apply-button:hover {
  background-color: #006db6;
}

/* Form Container Styling */
.form-container {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.form-container form {
    background-color: #203354;
    padding: 40px;
    border-radius: 8px;
    width: 500px;
    color: white;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.close-btn:hover {
    color: red;
}

.form-container label {
    display: block;
    margin-bottom: 10px;
    font-family: 'Oswald', sans-serif;
}

.form-container input, .form-container textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
}

.form-container button[type="submit"] {
    background-color: #035aa6;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.form-container button[type="submit"]:hover {
    background-color: #006db6;
}


/* Sponsors Section */
.sponsors {
  text-align: center;
  padding: 40px 0;
}

.sponsors p {
  color: white;
  font-family: 'Oswald', sans-serif;
}

/* Footer */
.footer {
  background: #111;
  font-size: 14px;
  text-align: center;
  color: white;
  font-family: 'Oswald', sans-serif;
  margin-top: auto;
}

/* Style for the form container */
#application-form-container {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* General form element styles */
#application-form-container input[type="text"],
#application-form-container input[type="email"],
#application-form-container input[type="date"],
#application-form-container textarea,
#application-form-container select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Oswald', sans-serif;
    box-sizing: border-box;
}

/* Label styles */
#application-form-container label {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    display: block;
    margin-bottom: 5px;
    font-family: 'Oswald', sans-serif;
}

/* Button styling */
#application-form-container .apply-button {
    background-color: #ffa500;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Oswald', sans-serif;
    transition: background-color 0.3s ease;
}

#application-form-container .apply-button:hover {
    background-color: #e69500;
}

/* Textarea specific styles */
#application-form-container textarea {
    resize: vertical;
    height: 100px;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    #application-form-container {
        width: 90%;
    }

    #application-form-container .apply-button {
        width: 100%;
        padding: 15px;
    }
}
