/* Page Header */
.page-header {
  padding: 8rem 5% 3rem;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.page-header-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding-bottom: 2rem;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: white;
}

.job-header-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.job-title-section h1 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
}

.job-meta-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.meta-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  color: white;
  font-size: 0.9rem;
}

.meta-badge svg {
  width: 16px;
  height: 16px;
}

.salary-preview {
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  min-width: 200px;
}

.salary-preview span {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.salary-preview h3 {
  font-size: 1.75rem;
  color: var(--primary);
  margin: 0.25rem 0;
}

.salary-preview p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Main Content */
.job-detail-container {
  max-width: 1200px;
  margin: -3rem auto 0;
  padding: 0 5% 4rem;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

/* Job Info */
.job-info {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.job-section {
  margin-bottom: 2.5rem;
}

.job-section:last-child {
  margin-bottom: 0;
}

.job-section h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.job-section h2 svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
}

.job-section p {
  color: var(--gray-700);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.job-section ul {
  list-style: none;
}

.job-section li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.job-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

/* Package Benefits */
.package-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgba(47, 98, 25, 0.05) 0%,
    rgba(47, 98, 25, 0.1) 100%
  );
  border-radius: 16px;
  border: 1px solid rgba(47, 98, 25, 0.15);
}

.package-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--gray-700);
}

.package-item svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  flex-shrink: 0;
}

/* Application Panel */
.application-panel {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.quick-apply-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
}

.quick-apply-header {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  padding: 1.5rem;
  color: white;
  text-align: center;
}

.quick-apply-header h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.quick-apply-header p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.quick-apply-form {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group label span {
  color: var(--primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  color: var(--gray-900);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 98, 25, 0.1);
}

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

.file-upload {
  border: 2px dashed var(--gray-200);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 10px;
  display: block;
}

.file-upload:hover {
  border-color: var(--primary);
  background: rgba(47, 98, 25, 0.02);
}

.file-upload svg {
  width: 32px;
  height: 32px;
  stroke: var(--gray-400);
  margin-bottom: 0.5rem;
}

.file-upload p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin: 0;
}

.file-upload span {
  font-size: 0.8rem;
  color: var(--gray-500);
  display: block;
}

.file-upload input {
  display: none;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 10px;
  background: var(--primary);
  color: white;
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.form-note {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 1rem;
  text-align: center;
}

/* Company Info Card */
.company-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.company-card h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.company-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.company-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.company-info-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
}

/* Similar Jobs */
.similar-jobs {
  margin-top: 4rem;
  padding: 0 5%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.similar-jobs h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.similar-jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.similar-job-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
}

.similar-job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.similar-job-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.similar-job-location {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.similar-job-salary {
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  color: var(--primary);
}

/* Responsive */
@media (max-width: 992px) {
  .job-detail-container {
    grid-template-columns: 1fr;
  }
  .application-panel {
    position: static;
  }
  .similar-jobs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .job-header-info {
    flex-direction: column;
  }
  .salary-preview {
    width: 100%;
  }
  .job-title-section h1 {
    font-size: 1.75rem;
  }
  .job-info {
    padding: 1.5rem;
  }
  .package-benefits {
    grid-template-columns: 1fr;
  }
  .similar-jobs-grid {
    grid-template-columns: 1fr;
  }
}
