/* ================= BODY ================= */

body {
  margin: 0;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  background: linear-gradient(to bottom, #a8dadc, #f1faee);
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-actions {
  width: 100%;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  /* 👈 THIS CENTERS IT */
}

.post-btn {
  border-color: #457b9d;
  background: #457b9d;
  border-radius: 0.9em;
  cursor: pointer;
  padding: 0.8em 1.2em 0.8em 1em;
  transition: all ease-in-out 0.2s;
  font-size: 16px;
}

.post-btn span {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
}

.post-btn:hover {
  background: #1d3557;
  border-color: #457b9d;
}

.vacancy-container {
  width: 100%;
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vacancy-card {
  background: #f1faee;
  padding: 16px;
  box-sizing: border-box;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  word-break: break-word;
  overflow: hidden;
}

.vacancy-card h3 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 12px 0;
}

.vacancy-card p {
  margin: 8px 0;
  line-height: 1.55;
  font-size: 15px;
}

.card-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 10px;
}

/* ================= DELETE BUTTON ================= */

.delete-btn {
  width: 150px;

  height: 50px;

  cursor: pointer;

  display: flex;

  align-items: center;

  position: relative;

  overflow: hidden;

  background: #e63946;

  border: none;

  border-radius: 8px;

  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
}

.delete-btn,
.delete-btn span {
  transition: 200ms;
}

.delete-btn .text {
  transform: translateX(22px);

  color: white;

  font-weight: bold;
}

.delete-btn .icon {
  position: absolute;

  right: 0;

  height: 50px;

  width: 40px;

  border-left: 1px solid #c41b1b;

  display: flex;

  align-items: center;

  justify-content: center;

  transition: 200ms;
}

.delete-btn svg {
  width: 15px;

  fill: #fff;
}

.delete-btn:hover {
  background: #ff3636;
}

.delete-btn:hover .text {
  color: transparent;
}

.delete-btn:hover .icon {
  width: 150px;

  border-left: none;
}

.delete-btn:active .icon svg {
  transform: scale(0.8);
}

/* ================= VIEW DETAILS BUTTON ================= */

.view-btn {
  width: 100%;
  margin-top: 10px;
  height: 50px;
  color: #f1faee;
  border-radius: 8px;
  padding: 10px 25px;
  font-weight: 600;
  background: #1d3557;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  box-shadow:
    inset 2px 2px 2px 0 rgba(255, 255, 255, 0.5),
    7px 7px 20px 0 rgba(0, 0, 0, 0.1),
    4px 4px 5px 0 rgba(0, 0, 0, 0.1);
  outline: none;
  font-size: 14px;
}

.view-btn:hover {
  box-shadow:
    4px 4px 6px 0 rgba(255, 255, 255, 0.5),
    -4px -4px 6px 0 rgba(116, 125, 136, 0.5),
    inset -4px -4px 6px 0 rgba(255, 255, 255, 0.2),
    inset 4px 4px 6px 0 rgba(0, 0, 0, 0.4);
}

/* ================= VIEW APPLICANTS BUTTON ================= */

.view-applicants-btn {
  width: 100%;
  margin-top: 10px;
  height: 45px;
  color: #161616;
  border-radius: 8px;
  padding: 10px 25px;
  font-weight: 600;
  background: #457b9d;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow:
    inset 2px 2px 2px 0 rgba(255, 255, 255, 0.8),
    7px 7px 20px 0 rgba(0, 0, 0, 0.08),
    4px 4px 5px 0 rgba(0, 0, 0, 0.05);
  font-size: 15px;
}

.view-applicants-btn:hover {
  background: #457b9d;

  box-shadow:
    4px 4px 6px 0 rgba(255, 255, 255, 0.8),
    -4px -4px 6px 0 rgba(116, 125, 136, 0.15),
    inset -4px -4px 6px 0 rgba(255, 255, 255, 0.5),
    inset 4px 4px 6px 0 rgba(0, 0, 0, 0.08);
}

.apply-btn {
  position: relative;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  padding: 15px;
  background: #457b9d;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  color: #fff;
  font-weight: bold;
  border: 3px solid #ffffff4d;
  outline: none;
  overflow: hidden;
  font-size: 14px;
  width: 100%;
  margin-top: 10px;
}

.apply-btn:hover {
  background: #1d3557;
  transform: scale(1.03);
  border-color: #fff9;
}

.apply-btn::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 100%;
  background-image: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 30%,
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0) 70%);
  top: 0;
  left: -100px;
  opacity: 0.6;
}

.apply-btn:hover::before {
  animation: shine 1.5s ease-out infinite;
}

@keyframes shine {
  0% {
    left: -100px;
  }

  60% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

.apply-btn .icon {
  width: 24px;
  height: 24px;
  transition: 0.3s;
}

.apply-btn:hover .icon {
  transform: translateX(4px);
}

.disabled-btn {
  background: #ccc !important;
  cursor: not-allowed;
}

/* ================= FOOTER ================= */

.footer.dole-footer {
  margin-top: auto;
  padding: 15px 24px 12px;
  border-top: 1px solid #ddd;
  background: #f5f5f5;
  color: #555;
  font-family: Calibri, Arial, sans-serif;
  font-size: 13px;
  text-align: left;
}

.dole-footer .dole-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.dole-footer .footer-main,
.dole-footer .footer-bottom,
.dole-footer .footer-heading,
.dole-footer .footer-social,
.dole-footer .footer-nav {
  display: flex;
  align-items: center;
}

.dole-footer .footer-main,
.dole-footer .footer-bottom {
  justify-content: space-between;
  gap: 16px;
}

.dole-footer .footer-identity { min-width: 0; }

.dole-footer .footer-heading {
  flex-wrap: wrap;
  gap: 8px 10px;
}

.dole-footer .footer-heading strong {
  color: #333;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.dole-footer .footer-version {
  padding: 3px 8px;
  border-radius: 20px;
  background: #e8f1f8;
  color: #1d5d85;
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
}

.dole-footer .footer-credit {
  display: block;
  margin-top: 5px;
  color: #555;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
}

.dole-footer .footer-credit strong { color: #1d3557; font-weight: 700; }

.dole-footer .footer-social { flex-shrink: 0; gap: 8px; }

.dole-footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  box-sizing: border-box;
  border: 1px solid #cbdce8;
  border-radius: 8px;
  background: #fff;
  color: #1d5d85;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.dole-footer .footer-social a:hover,
.dole-footer .footer-social a:focus-visible {
  background: #e8f1f8;
  border-color: #457b9d;
  color: #0b4ea2;
}

.dole-footer .footer-contact-icon {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: inherit;
  pointer-events: none;
}

.dole-footer .footer-bottom {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #ddd;
}

.dole-footer .footer-copyright {
  flex: 1;
  min-width: 0;
  color: #777;
  font-size: 11px;
  line-height: 1.5;
}

.dole-footer .footer-nav { flex-wrap: wrap; flex-shrink: 0; gap: 4px 18px; }

.dole-footer .footer-info-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 32px;
  margin: 0;
  padding: 4px 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #52677d;
  font: inherit;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: none;
  transform: none;
  cursor: pointer;
}

.dole-footer .footer-info-button:hover,
.dole-footer .footer-info-button:focus-visible {
  background: transparent;
  color: #0b4ea2;
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none;
  transform: none;
}

.dole-footer .footer-social a:focus-visible,
.dole-footer .footer-info-button:focus-visible {
  outline: 2px solid #457b9d;
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .footer.dole-footer { padding: 16px; }
  .dole-footer .footer-main,
  .dole-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .dole-footer .footer-nav { gap: 4px 14px; }
  .dole-footer .footer-social a { width: 40px; height: 40px; flex-basis: 40px; }
}

/* ================= VACANCY DIVIDER ================= */

.vacancy-divider {
  border: none;
  border-top: 1px solid #dcdcdc;
  margin: 15px 0;
}

.nav-right .nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.nav-right .nav-links a:hover,
.nav-right .nav-links a:focus-visible {
  text-decoration: none;
  background: rgba(255, 255, 255, .14);
  transform: translateY(-1px);
  outline: none;
}

.no-vacancy {
  width: 100%;
  max-width: 700px;
  margin: 80px auto;
  padding: 40px;
  text-align: center;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.no-vacancy h2 {
  color: #003366;
  margin-bottom: 10px;
}

.no-vacancy p {
  color: #666;
  font-size: 16px;
}

/* ================= APPLICATION SUCCESS MODAL ================= */

.success-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 100000;
}

.success-modal-content {
  width: 90%;
  max-width: 400px;
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.success-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #198754;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 36px;
  font-weight: bold;
}

.success-modal-content h2 {
  color: #1D3557;
  margin: 0 0 12px;
}

.success-modal-content p {
  color: #555;
  line-height: 1.5;
  margin-bottom: 25px;
}

#successOkBtn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: #457B9D;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s;
}

#successOkBtn:hover {
  background: #1D3557;
}

@media (max-width: 768px) {
  .vacancy-container {
    padding: 0 8px;
  }

  .vacancy-card {
    padding: 14px;
  }

  .vacancy-card h3 {
    font-size: 20px;
  }

  .vacancy-card p {
    font-size: 14px;
  }

  .view-btn,
  .apply-btn {
    height: 48px;

    font-size: 13px;
  }

}
