/* Container Layout */
.job {
  color: #ffffff;
  padding: 2rem;
  font-family: 'Inter', sans-serif;
}

.job-container {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch; /* memastikan kedua kolom sejajar tingginya */
}

/* Left: Main Job Info */
.job-main {
  flex: 2;
}

.job-main, .job-sidebar {
  display: flex;
  flex-direction: column;
}

.job-banner {
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.job-banner {
  height: 300px;
}

.job-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.job-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
  color: #aaa;
  margin-bottom: 1rem;
}

.job-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  background-color: rgba(26, 27, 83, 0.05);
  border: 1px solid #111f3a;
  padding: 1rem;
  border-radius: 8px;
}

.job-insights div {
  font-size: 0.95rem;
}

.job-insights i {
  margin-right: 8px;
  color: #888;
}

.job-description h2, .job-description h3 {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  color: #ffffff;
}

.job-description p, .job-description ul {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ccc;
}

.job-description ul {
  padding-left: 1.5rem;
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.job-item {
  align-items: center;
  justify-items: center;
  display: flex;
  justify-content: space-between;
  padding: 12px 12px;
  background-color: black;
  border-radius: 6px;
  transition: background-color 0.2s;
  line-height: 1;
  text-decoration: none;
}

.job-item:hover {
  background-color: #1f1f1f;
  cursor: pointer;
}

.job-title, .job-dept {
  font-size: 20px;
}

.job-title {
  padding-top: 3%;
  padding-bottom: 1%;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

#main-job-title{
  font-size: 40px;
}

.job-dept {
  color: #78acff;
  font-size: 10px;
}

/* Right: Sidebar */
.job-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Apply Box */
.apply-box {
  padding: 1.5rem;
  border-radius: 8px;
  background-color: rgba(26, 27, 83, 0.05);
  border: 1px solid #111f3a;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* ini untuk vertikal */
  text-align: center;
}

.apply-box p {
  margin-bottom: 1rem;
}

.apply-btn {
  background: linear-gradient(135deg, #4f8dfd, #2b6df6);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 999px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(47, 101, 255, 0.3);
    cursor: pointer;
    position: relative;
    z-index: 10;
    text-decoration: none; /* Tambahkan ini */
}

.apply-btn:hover {
    background: linear-gradient(135deg, #2b6df6, #4f8dfd); /* warna gradasi dibalik */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(47, 101, 255, 0.4);
}

/* Company Card */
.company-card {
  padding: 1.5rem;
  border-radius: 8px;
  background-color: rgba(26, 27, 83, 0.05);
  border: 1px solid #111f3a;
}

.company-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.company-info img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.company-info p {
  font-size: 0.95rem;
}

.tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tab {
  flex: 1;
  padding: 0.5rem;
  background: #1f2235;
  border: none;
  color: #aaa;
  font-size: 0.9rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.tab.active, .tab:hover {
  background: #2b2f46;
  color: #fff;
}

.related-jobs {
  list-style: none;
  padding-left: 0;
}

.related-jobs li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #25283c;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
}

.related-jobs span {
  color: #78acff;
  font-size: 0.8rem;
}

ul.checklist {
  padding-left: 0; /* Buang padding bawaan */
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
  font-size: 1rem;
}

.checklist li i {
  color: #78acff;
  position: absolute;
  left: 0;
  top: 18%;
}

/* Modal background */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  background-color: rgba(9, 10, 17, 0.671);
  border: 1px solid #111f3a;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  padding: 20px;
  color: #f1f1f1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.3s ease-in-out;
  box-sizing: border-box;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #ddd;
}

.close-modal {
  font-size: 24px;
  cursor: pointer;
  color: #aaa;
  transition: color 0.3s;
}

.close-modal:hover {
  color: #fff;
}

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.form-row.full-width {
  flex-direction: column;
  width: 100%;
}

.form-row input,
.form-row textarea {
  flex: 1;
  background-color: rgba(10, 11, 19, 0.973);
  border: 1px solid #111f3a;
  border-radius: 8px;
  padding: 10px;
  color: #f1f1f1;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
}

.form-row input:focus,
.form-row textarea:focus {
  border: 1px solid #3662bb;
  background: #0b0f18;
}

.modal-content input[type="file"] {
  display: none;
}

.file-upload-label {
  display: inline-block;
  background: linear-gradient(135deg, #4f8dfd, #2b6df6);
  color: #fff;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload-label:hover {
  background: linear-gradient(135deg, #2b6df6, #4f8dfd);
}

.file-name {
  margin-top: 8px;
  font-size: 0.9em;
  color: #bbb;
}

.submit-btn {
  background: linear-gradient(135deg, #4f8dfd, #2b6df6);
  border: none;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #2b6df6, #4f8dfd); /* warna gradasi dibalik */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(47, 101, 255, 0.4);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

#company-size, #company-founded, #company-location, #company-phone, #company-email{color: #78acff;}


/* Popup overlay background */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Popup content box */
.popup-content {
  background: #fff;
  padding: 30px 25px;
  border-radius: 10px;
  max-width: 350px;
  width: 90%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Popup text */
.popup-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #333;
}

/* Close button */
.popup-close-btn {
  background-color: #007bff;
  border: none;
  color: white;
  padding: 10px 22px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.popup-close-btn:hover {
  background-color: #0056b3;
}

/* Responsive */
@media (max-width: 1024px) {
  .job-container {
    flex-direction: column;
  }

  .job-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .apply-box, .company-card {
    flex: 1;
  }
}

@media (max-width: 600px) {
  .job-insights {
    grid-template-columns: 1fr;
  }

  .job-meta {
    flex-direction: column;
  }

  .tab {
    font-size: 0.8rem;
    padding: 0.4rem;
  }
}
