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

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

/* ================= NAV LINKS ================== */

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links span {
  color: rgba(255, 255, 255, .45);
  font-weight: 400;
}

.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-links a:hover,
.nav-links a:focus-visible {
  text-decoration: none;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}

.desktop-links {
  display: flex;
}

.mobile-menu {
  display: none;
}

/* ================= NAVBAR ================= */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #1d3557;
  color: white;
}

/* LEFT */
.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  object-fit: contain;
}

.title {
  font-weight: bold;
  font-size: 14px;
}

.subtitle {
  font-size: 10px;
  line-height: 1.3;
}

.user-name {
  cursor: pointer;
  font-weight: bold;
}

/* DROPDOWN */
.dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 30px;
  background: white;
  color: black;
  border: 1px solid #e5eef5;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .18);
  overflow: hidden;
  min-width: 160px;
  z-index: 999;
}

.dropdown a {
  display: block;
  padding: 11px 14px;
  text-decoration: none;
  color: #1d3557;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s ease, color .2s ease;
}

.dropdown a:hover,
.dropdown a:focus-visible {
  background: #eaf4fb;
  color: #0b4ea2;
  outline: none;
}

.show {
  display: block;
}

/* USER SECTION */
.user-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* BURGER ICON */
.burger {
  font-size: 20px;
  cursor: pointer;
  user-select: none;
}

/* make dropdown align better */
.nav-right {
  position: relative;
}

/* optional hover effect */
.burger:hover {
  opacity: 0.7;
}

.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: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.vacancy-card p,
.vacancy-card h3 {
  overflow-wrap: anywhere;
}

.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;
}

.vacancy-card .vacancy-deadline {
  margin: 0 0 12px;
  color: #1d3557;
  line-height: 1.5;
}

.vacancy-deadline time {
  font-weight: 600;
}

/* Match the inline labels in the vacancy details. */
.job-summary-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
  cursor: pointer;
}

.job-summary-toggle[hidden] {
  display: none;
}

.job-summary-toggle span {
  color: #1d5d85;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.job-summary-toggle svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  color: #1d5d85;
}

.job-summary-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.job-summary-toggle:focus-visible {
  outline: 2px solid #457b9d;
  outline-offset: 2px;
}

@media screen and (max-width: 768px) {
  .job-summary-toggle:not([hidden]) + .job-summary > b {
    display: none;
  }
}

@media print {
  .vacancy-card .job-summary-toggle {
    display: none;
  }

  .vacancy-card .job-summary[hidden] {
    display: block;
  }
}

.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-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  background: #1d3557;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
  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 APPLICANTS BUTTON ================= */

.view-applicants-btn {
  width: 100%;

  margin-top: 10px;

  height: 45px;

  color: #161616;

  border-radius: 8px;

  padding: 10px 25px;

  font-family: Arial, Helvetica, sans-serif;

  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::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;
}

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

  60% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

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

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

/* Pointer hover effects stay on devices with a mouse or trackpad. */
@media (hover: hover) and (pointer: fine) {
  .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);
  }

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

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

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

.view-btn:focus-visible,
.apply-btn:focus-visible {
  outline: 3px solid #457b9d;
  outline-offset: 3px;
}

.navbar .nav-right .nav-links a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ================= 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: 44px; height: 44px; flex-basis: 44px; }
  .dole-footer .footer-info-button {
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
    font-size: 13px;
  }
  .dole-footer .footer-copyright { font-size: 12px; }
}

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

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

.nav-right .nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  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, 0.15);
  transform: translateY(-1px);
  outline: none;
}

.no-vacancy {
  width: 100%;
  max-width: 700px;
  margin: 60px auto;
  padding: 32px 24px;
  box-sizing: border-box;

  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .08);

  text-align: center;
}

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

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

.title-group {
  min-width: 0;
}

.title,
.subtitle {
  overflow-wrap: break-word;
}

.nav-right {
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .nav-left {
    flex: 1;
    gap: 8px;
  }

  .nav-right {
    width: auto;
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .nav-right .nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
  }

  .logo {
    width: 28px;
    height: 28px;
  }

  .title {
    font-size: 14px;
    line-height: 1.4;
  }

  .subtitle {
    font-size: 11px;
    line-height: 1.4;
  }

  .vacancy-card {
    padding: 16px;
  }

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

  .vacancy-card p {
    font-size: 16px;
    line-height: 1.6;
  }

  .view-btn,
  .apply-btn {
    width: 100%;
    font-size: 16px;
  }
}

/* Honor the device's preference for less visual motion. */
@media (prefers-reduced-motion: reduce) {
  .navbar .nav-right .nav-links a,
  .vacancy-card .view-btn,
  .vacancy-card .apply-btn,
  .vacancy-card .apply-btn .icon,
  .dole-footer .footer-social a,
  .dole-footer .footer-info-button {
    transition: none;
  }

  .vacancy-card .apply-btn::before {
    animation: none;
  }

  .navbar .nav-right .nav-links a,
  .vacancy-card .apply-btn,
  .vacancy-card .apply-btn .icon {
    transform: none;
  }
}
