.jobs-section {
  padding: 80px 0;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.job-filters {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 9px 28px;
  background: var(--secondary-900);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  color: var(--tertiary-900);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--white);
  color: var(--secondary-900);
  border-color: var(--secondary-900);
  box-shadow: inset 0 0 0 2px var(--white);
}

.jobs-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}

.job-card {
  padding: 30px 32px;
  background: #ffffff;
  border: 1px solid rgba(5, 75, 171, 0.15);
  border-radius: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.job-card:hover {
  border-color: rgba(5, 75, 171, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(5, 75, 171, 0.08);
}

.job-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.job-card-left {
  flex: 1;
  min-width: 0;
}

.job-card-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.job-expand-btn {
  background: none;
  border: none;
  color: var(--primary-900);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.job-expand-btn:hover {
  background: rgba(5, 75, 171, 0.08);
  transform: scale(1.1);
}

.job-expand-btn.expanded {
  transform: rotate(180deg);
}

.job-card-details {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(5, 75, 171, 0.1);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.job-section {
  margin-bottom: 28px;
}

.job-section h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 14px;
}

.job-card-footer {
  margin-top: 20px;
  display: flex;
  justify-content: flex-start;
}

.job-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 8px;
  color: var(--primary-900);
  line-height: 1.25;
}

.job-description {
  color: var(--primary-900);
  line-height: 1.6;
  margin-bottom: 18px;
  font-size: 15px;
  padding: 0;
  white-space: normal;
  overflow: visible;
}
.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.job-tag {
  padding: 7px 14px;
  background: var(--primary-900);
  color: #ffffff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  justify-content: center;
  align-items: center;
  text-align: center;
  display: flex;
}

.job-tags-top {
  margin-top: 8px;
  margin-bottom: 12px;
}

.job-desc-line {
  margin: 6px 0;
  color: var(--primary-900);
  text-align: left;
}

.job-bullets {
  margin: 8px 0 0 18px;
  padding: 0;
  color: var(--primary-900);
}

.job-bullets li {
  margin: 6px 0;
  line-height: 1.6;
}

.apply-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary-900);
  color: white;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid var(--primary-900);
  white-space: nowrap;
}

.apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.benefit-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  flex-direction: column;
  border-radius: 16px;
  background: rgba(5, 75, 171, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(230, 81, 0, 0.3);
  box-shadow: 0 10px 30px rgba(51, 51, 51, 0.15);
}

/* Job image */
.job-image-wrap {
  width: 72px;
  height: 72px;
  margin-bottom: 10px;
  border-radius: 12px;
  overflow: hidden;
}

.job-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.cta-section {
  padding: 100px 24px;
  text-align: center;
}

.cta-section h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 24px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-section p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
}


.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 24px;
  padding: 40px;
  max-width: 700px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--primary-900);
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.application-form h2 {
  font-size: 32px;
  margin-bottom: 12px;
  background: var(--primary-900);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.application-form .job-info {
  color: var(--primary-900);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--primary-900);
}

.form-group label.required::after {
  content: " *";
  color: #ff4444;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--primary-900);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #fb8a02;
  background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input[type="file"] {
  padding: 10px;
}

.form-group small {
  display: block;
  margin-top: 6px;
  color: var(--primary-900);
  font-size: 13px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.form-actions button {
  flex: 1;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn {
  background: var(--primary-900);
  color: white;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cancel-btn {
  background: var(--primary-900);
  color: white;
}

.cancel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.loading-spinner {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.7);
}

.loading-spinner::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 217, 255, 0.2);
  border-top-color: #fb8a02;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-top: 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1024px) {
  .job-card {
    padding: 24px;
  }
}

@media (max-width: 768px) {

  .job-card-right {
    width: 100%;
    justify-content: flex-start;
  }
}

.no-jobs {
  text-align: center;
  padding: 60px 24px;
  color: rgba(255, 255, 255, 0.5);
}
