
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #000000;
}

/* Career Container */
.career-container {
  margin: 40px auto;
  padding: 20px;
  background-color: #f4f4f4;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 1200px;
}
.no-jobs-message {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  margin: 40px auto;
  width: 90%;
  max-width: 1200px;
}

.career-container-div {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
}

.job-detail-item {
  font-size: 18px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 20px;
}

.apply-button {
  display: inline-block;
  background-color: #d32f2f;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease-in-out;
}

.apply-button:hover {
  background-color: #b71c1c;
}

.upload-resume {
  display: block;
  margin-top: 20px;
  padding: 10px;
  background-color: #f4f4f4;
  border: 2px dashed #d32f2f;
  color: #d32f2f;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s ease-in-out;
}

.upload-resume:hover {
  background-color: #ffe0e0;
}

.job-details-row {
  display: flex;
  justify-content: space-between;
}
.job-details-row p {
  margin: 0;
}
.job-view-button {
  background-color: #007bff;
  color: white;
  padding: 5px 10px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
}
.job-view-button:hover {
  background-color: #0056b3;
}


.job-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.job-card {
  border: 1px solid #000000;
  border-radius: 8px;
  padding: 20px;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: max-height 0.3s ease-out;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}

.job-title {
  color: #000000;
  font-size: 24px;
  margin-bottom: 10px;
}

.job-details-column {
  margin: 10px 0;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-highlight {
  font-weight: bold;
  color: #be0000;
}

.job-view-button {
  padding: 10px 20px;
  background-color: #be0000;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 20px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  align-self: flex-end;
}

.job-view-button:hover {
  background-color: #8e0000;
}

.job-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.job-card.expanded .job-details {
  max-height: 4000px;
  opacity: 1;
  margin-top: 20px;
  animation: expandHeight 0.3s ease forwards;
}
@keyframes expandHeight {
  from {
    height: 0px;
  }
  to {
    height: 100%; /* Adjust this value if you know the max height */
  }
}

.job-description{
  max-width: 100%;
  /* padding: 10px; */
  padding: 10px 0px;
  overflow: hidden;
}

.job-description h1,.job-description h2,.job-description h3,.job-description h4,.job-description h5{
  color: #be0000;
}


.action-controls {
  /* position: absolute;
  bottom: 20px;
  right: 20px; */
  display: flex;
  gap: 10px;
}

.action-controls a {
  padding: 10px 20px;
  background-color: #be0000;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

.action-controls a:hover {
  background-color: #8e0000;
}

.collapse-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #be0000;
  color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
}

.collapse-toggle:hover {
  background-color: #8e0000;
}
.job-card.expanded .collapse-toggle {
  transform: rotate(180deg);
}
.job-details-row .job-detail-item-container{
  display: flex;
  /* align-items: center; */
  gap: 10px;
  flex-wrap: wrap;
  max-width: 80%;
}
.job-detail-item{
  display: flex;
  align-items: center;
  gap: 2px;
}

@media screen and  (max-width:600px){
  .job-detail-item-container{
    gap: 10px !important;
    flex-direction: column;
    align-items: flex-start !important;
  }
  .job-detail-item-container .bar{
    display: none;
  }
  .job-detail-item{
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  padding: 50px;
  width: 100%;
  max-width: 800px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  gap: 20px;
}

span.close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 20px;
  color: #333333;
  cursor: pointer;
}

span.close:hover {
  color: #b91c1c;
}

.modal-right {
  width: 100%;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  max-height: 80dvh;
  overflow-y: auto;
  padding-right: 10px;
}

.form-row {
  display: flex;
  gap: 20px;
  width: 100%;
  flex-wrap: wrap;
}

.form-group {
  margin-bottom: 15px;
}
.form-group.wf-50{
  width: 48%;
}
.wf-100{
  width: 100%;
}

label {
  display: block;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333333;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea,
input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 14px;
}

textarea {
  resize: vertical;
}

input[type="file"] {
  padding: 5px;
}

button.btn-submit {
  background-color: #b91c1c;
  color: #ffffff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
}

button.btn-submit:hover {
  background-color: #9f1717;
}

#file-error {
  color: red;
  font-size: 12px;
  display: none;
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
  .modal-content {
    flex-direction: column;
    gap: 10px;
  }

  .modal-right {
    padding-left: 0;
  }

  .form-row {
    flex-direction: column;
  }

  .form-group {
    width: 100%;
  }
  .form-group.wf-50{
    width: 100%;
  }
}

/* Upload Label as Button */
.upload-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #fafafa;
  color: #9f1717;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  width: fit-content;
  border: 2px solid #9f1717; /* Border added */
}

.upload-label:hover {
  background-color: #f5f6f7;
  transform: scale(1.05);
}

input[type="file"] {
  display: none;
}

.upload-progress-icon {
  display: inline-block;
  position: relative;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  background-color: transparent;
  overflow: hidden;
}

.upload-progress-icon::before {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 8px;
  background-color: #fff;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.upload-progress-icon::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-right-color: transparent;
  border-radius: 50%;
  animation: progress-spin 1s linear infinite;
}
/* Style for upload instruction */
.upload-instruction {
  font-size: 12px;
  color: #666666;
  margin-left: 20px; /* To give space between file input and instruction */
  display: inline-block;
  vertical-align: top; /* Align to the right side */
}

.file-preview-text {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-top: 10px;
  margin-bottom: 10px;
  background-color: #f4f4f4;
  padding: 8px 12px;
  border-radius: 5px;
  border: 1px solid #ddd;
  word-wrap: break-word;
}



@keyframes progress-spin {
  from {
    transform: translateX(-50%) rotate(0deg);
  }
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

