/* =========================
   RESET & BASE
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f6f8;
  color: #222;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================
   HEADER
========================= */
.main-header {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #007acc;
  box-shadow: 0 4px 6px rgba(0, 122, 204, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  height: 50px;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.15));
}

.view-site {
  font-weight: 700;
  color: #00264d;
  text-decoration: none;
  font-size: 1.1rem;
  border: 2px solid transparent;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.view-site:hover,
.view-site:focus-visible {
  color: #004a99;
  border-color: #004a99;
  outline-offset: 2px;
}

/* =========================
   BANNER
========================= */
.banner {
  background: #fff;
  padding: 4rem 1rem 3rem;
  border-bottom: 1px solid #e0e0e0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 3rem;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
}
.banner h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #002366;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.banner p {
  font-size: 1.25rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
}

/* =========================
   FILTERS
========================= */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 1rem 2rem;
  background: #fff;
  border-bottom: 1px solid #eaeaea;
  max-width: 900px;
  margin: 0 auto 2rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}
.filters select,
.filters input {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1.5px solid #ccc;
  font-size: 1.05rem;
  min-width: 200px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.filters select:focus,
.filters input:focus {
  border-color: #007acc;
  outline: none;
  box-shadow: 0 0 6px #007acc66;
}

/* =========================
   JOB SECTION
========================= */
.job-section {
  padding: 0 1rem 4rem;
  max-width: 1000px;
  margin: 0 auto;
  flex-grow: 1;
}
.section-title {
  font-size: 2rem;
  color: #002366;
  margin-bottom: 2.5rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =========================
   JOB GRID + CARDS
========================= */
.job-list {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.job-card {
  background: #fff;
  padding: 1.8rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
  opacity: 0;
  transform: translateY(25px);
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.job-card.visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.job-card:hover,
.job-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.15);
}

/* =========================
   META, TITLE, TAGS
========================= */
.job-meta {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0.8rem;
}

.job-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #004a99;
  text-decoration: none;
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
}
.job-title:hover,
.job-title:focus-visible {
  color: #002366;
  text-decoration: underline;
  outline-offset: 2px;
}

.job-tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #444;
}
.job-tags span {
  background: #e0e7ff;
  color: #002366;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  font-weight: 600;
  user-select: none;
  transition: background-color 0.3s ease;
}
.job-tags span:hover,
.job-tags span:focus-visible {
  background-color: #aac8ff;
}

/* =========================
   NO RESULTS + PAGINATION
========================= */
.no-results {
  text-align: center;
  font-size: 1.25rem;
  color: #777;
  background: #fff;
  padding: 2rem;
  border: 2px dashed #ccc;
  border-radius: 10px;
  max-width: 600px;
  margin: 3rem auto 0;
}

.pagination-wrapper {
  text-align: center;
  margin-top: 3rem;
}
.load-more {
  padding: 0.85rem 2rem;
  font-size: 1.1rem;
  background: #004a99;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(0, 74, 153, 0.4);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.load-more:hover,
.load-more:focus-visible {
  background: #003366;
  box-shadow: 0 8px 18px rgba(0, 51, 102, 0.7);
}
.load-more:disabled {
  background: #aaa;
  cursor: not-allowed;
  box-shadow: none;
}

/* =========================
   FOOTER
========================= */
.footer {
  text-align: center;
  padding: 2.5rem 1rem;
  background: #002366;
  color: #eee;
  font-size: 1rem;
  user-select: none;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
}
.footer img {
  height: 60px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

/* =========================
   RESPONSIVE FIXES
========================= */
@media (max-width: 600px) {
  .banner h1 {
    font-size: 2rem;
  }

  .filters select,
  .filters input {
    min-width: 140px;
    font-size: 1rem;
  }

  .job-title {
    font-size: 1.2rem;
  }

  .job-card {
    padding: 1.3rem 1.5rem;
  }
}
