/* === ROOT VARIABLES === */
:root {
  --primary-color: #214486;
  --secondary-color: #007bff;
  --light-bg: #f4f7fc;
  --header-bg: #fef9d0;
  --hover-bg: #f0f8ff;
}
 table { width: 100%; border-collapse: collapse; }
    th, td { border: 1px solid #dee2e6; padding: 8px; vertical-align: middle; }
    th { background-color: #f8f9fa; }
    .btn-sm { padding: 2px 8px; font-size: 0.8rem; }
/* === GENERAL STYLES === */
body {
  font-family: Arial, sans-serif;
  background-color: var(--light-bg);
  padding-top: 5px;
}

.container {
  max-width: 1200px;
}

/* === PRESERVED ORIGINAL HEADER === */
.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  color: var(--primary-color);
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 0.25rem 0.25rem 0 0;
  margin-bottom: .5rem;
  gap: 1.5rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1325px;
  margin-left: auto;
  margin-right: auto;
  border-bottom: 5px solid var(--primary-color);
}

.header-logo {
  height: 100px;
  width: auto;
  flex-shrink: 0;
}

.header-text {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.header-line {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  font-size: 0.9rem;
  white-space: nowrap;
}

.header-line.large {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.header-line.italic {
  font-style: italic;
  font-weight: 400;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  color: #d1d9ff;
  white-space: normal;
}

/* === MAIN CONTENT STYLING === */
.vacancy-status h4 {
  text-align: center;
  margin: 1rem 0;
  color: var(--primary-color);
  font-weight: bold;
}

.postcode-container-wrapper {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.postcode-card, .postcode-header-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  height: 60px;
  font-size: 1rem;
}

.postcode-card {
  background-color: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.postcode-card:hover {
  background-color: var(--hover-bg);
  font-weight: bold;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.postcode-header-card {
  background-color: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 10;
  font-weight: bold;
}

.postcode-column {
  flex: 1;
  text-align: center;
  font-size: 0.9rem;
}

/* === NAVBAR AND INSTRUCTION === */
.instruction-scroll-wrapper {
  width: 100%;
  height: 40px;
  overflow: hidden;
  background-color: #f8f9fa;
  position: relative;
}

.instruction-content {
  display: inline-block;
  white-space: nowrap;
  padding: 5px 10px;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.nav-tabs .nav-link {
  border-radius: 5px;
  margin-right: 5px;
  padding: 8px 15px;
}

.nav-tabs .nav-link.active {
  background-color: var(--secondary-color);
  color: white;
}

/* === FOOTER === */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

/* === MEDIA QUERY === */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }

  .header-logo {
    height: 60px;
  }
}

