:root {
  --jobs-navy: #0c2f4f;
  --jobs-teal: #0f766e;
  --jobs-teal-dark: #115e59;
  --jobs-teal-soft: #e8f5f2;
  --jobs-amber: #f59e0b;
  --jobs-ink: #172633;
  --jobs-muted: #607080;
  --jobs-line: #dce5e8;
  --jobs-surface: #ffffff;
  --jobs-bg: #f3f7f7;
  --jobs-danger: #a93030;
  --jobs-radius: 14px;
  --jobs-shadow: 0 12px 30px rgba(12, 47, 79, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--jobs-ink);
  background: var(--jobs-bg);
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.55;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  justify-content: center;
  padding: 15px 20px;
  color: #fff;
  background: var(--jobs-navy);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
  text-decoration: none;
}

.logo-link img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.site-brand-title {
  display: block;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.logo-link p {
  margin: 3px 0 0;
  font-size: 0.87rem;
}

.custom-global-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  background: var(--jobs-teal);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.13);
}

.custom-nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
}

.custom-nav-links a {
  padding: 14px 12px;
  color: #fff;
  font-size: 0.92rem;
  text-decoration: none;
}

.custom-nav-links a:hover,
.custom-nav-links a:focus-visible,
.custom-nav-links .custom-link-active {
  background: var(--jobs-teal-dark);
}

.custom-menu-icon {
  display: none;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 1.7rem;
  cursor: pointer;
}

.admissions-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  padding: 13px 20px;
  color: var(--jobs-navy);
  background: #eef8f6;
  border-bottom: 1px solid #cfe3df;
  text-align: center;
  font-size: 0.92rem;
}

.apply-btn,
.footer-apply {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 8px;
  color: #fff;
  background: var(--jobs-teal);
  font-weight: 600;
  text-decoration: none;
}

.apply-btn:hover,
.apply-btn:focus-visible,
.footer-apply:hover,
.footer-apply:focus-visible {
  background: var(--jobs-teal-dark);
}

.jobs-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 2100px);
  margin: 0 auto;
}

.jobs-main {
  width: min(100%, 1140px);
  min-width: 0;
  margin: 0 auto;
  padding: 36px 20px 64px;
}

.jobs-hero {
  margin-bottom: 24px;
  padding: clamp(24px, 4vw, 38px);
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(135deg, var(--jobs-navy), var(--jobs-teal));
  box-shadow: var(--jobs-shadow);
}

.jobs-eyebrow {
  margin: 0 0 7px;
  color: #bcece3;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.jobs-hero h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  line-height: 1.16;
}

.jobs-intro {
  max-width: 760px;
  margin: 14px 0 0;
  color: #e9fbf7;
}

.jobs-disclaimer {
  max-width: 900px;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: #d5ebe7;
  font-size: 0.78rem;
}

.jobs-controls {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--jobs-line);
  border-radius: var(--jobs-radius);
  background: var(--jobs-surface);
  box-shadow: 0 8px 24px rgba(12, 47, 79, 0.05);
}

.filter-field {
  grid-column: span 3;
}

.filter-field--search {
  grid-column: span 6;
}

.filter-field label {
  display: block;
  margin-bottom: 5px;
  color: #3f5160;
  font-size: 0.76rem;
  font-weight: 600;
}

.filter-field input,
.filter-field select {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #bac9cf;
  border-radius: 9px;
  color: var(--jobs-ink);
  background: #fff;
}

.filter-field input:focus,
.filter-field select:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  border-color: var(--jobs-teal);
}

.clear-filters {
  grid-column: span 3;
  align-self: end;
  min-height: 44px;
  border: 1px solid #b8c8ce;
  border-radius: 9px;
  color: var(--jobs-navy);
  background: #f8fbfb;
  font-weight: 600;
  cursor: pointer;
}

.clear-filters:hover,
.clear-filters:focus-visible {
  border-color: var(--jobs-teal);
  background: var(--jobs-teal-soft);
}

.jobs-summary {
  display: flex;
  align-items: center;
  min-height: 48px;
}

.jobs-summary p {
  margin: 0;
  color: var(--jobs-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.jobs-state {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  border: 1px dashed #b8c9ce;
  border-radius: var(--jobs-radius);
  color: var(--jobs-muted);
  background: #fff;
  text-align: center;
}

.jobs-state[hidden] {
  display: none;
}

.jobs-state h2 {
  margin: 0;
  color: var(--jobs-navy);
  font-size: 1.1rem;
}

.jobs-state p {
  margin: 0;
}

.loading-spinner {
  width: 34px;
  height: 34px;
  border: 4px solid #d8e5e5;
  border-top-color: var(--jobs-teal);
  border-radius: 50%;
  animation: jobs-spin 0.8s linear infinite;
}

@keyframes jobs-spin {
  to { transform: rotate(360deg); }
}

.retry-button,
.empty-clear-button {
  margin-top: 7px;
  padding: 9px 16px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--jobs-teal);
  font-weight: 600;
  cursor: pointer;
}

.jobs-list {
  display: grid;
  gap: 16px;
}

.job-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.job-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 19px;
  border: 1px solid var(--jobs-line);
  border-top: 4px solid var(--jobs-teal);
  border-radius: var(--jobs-radius);
  background: var(--jobs-surface);
  box-shadow: 0 8px 22px rgba(12, 47, 79, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 28px rgba(12, 47, 79, 0.1);
}

.job-card h2 {
  margin: 0 0 13px;
  color: var(--jobs-navy);
  font-size: 1.08rem;
  line-height: 1.35;
}

.job-meta {
  display: grid;
  gap: 9px;
  margin: 0;
}

.job-meta-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 0.84rem;
}

.job-meta-row dt {
  color: var(--jobs-muted);
  font-weight: 600;
}

.job-meta-row dd {
  min-width: 0;
  margin: 0;
  color: var(--jobs-ink);
  overflow-wrap: anywhere;
}

.contact-content {
  display: grid;
  gap: 5px;
}

.contact-part {
  display: block;
}

.contact-content a {
  color: var(--jobs-teal-dark);
  font-weight: 500;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.contact-details summary {
  width: fit-content;
  color: var(--jobs-teal-dark);
  font-weight: 600;
  cursor: pointer;
}

.contact-details[open] summary {
  margin-bottom: 8px;
}

.in-content-ad {
  min-height: 100px;
  margin: 2px 0;
  padding: 8px;
  overflow: hidden;
  border: 1px dashed #c5d1d5;
  border-radius: 12px;
  background: #edf2f3;
  text-align: center;
}

.ad-label {
  display: block;
  margin-bottom: 4px;
  color: #7a888f;
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.adsbygoogle {
  display: block;
  width: 100%;
  min-height: 90px;
}

.ad-rail {
  display: none;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: 26px;
}

.load-more-button {
  min-width: 210px;
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--jobs-navy);
  font-weight: 600;
  cursor: pointer;
}

.load-more-button:hover,
.load-more-button:focus-visible {
  background: var(--jobs-teal-dark);
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #25d366;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.24);
  text-decoration: none;
}

.whatsapp-float svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.site-footer {
  padding: 54px 20px 20px;
  color: #d1d5db;
  background: #0c223f;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 34px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 36px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.08rem;
}

.site-footer p,
.site-footer ul {
  margin: 0;
  color: #aeb9c6;
  font-size: 0.86rem;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: #d1d5db;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fbbf24;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 0.86rem;
}

.footer-apply {
  color: #102945 !important;
  background: var(--jobs-amber);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  text-align: center;
  font-size: 0.78rem;
}

@media (max-width: 992px) {
  .custom-global-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 8px 15px;
  }

  .custom-menu-icon {
    display: block;
  }

  .custom-nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 8px;
  }

  .custom-nav-links.custom-menu-open {
    display: flex;
  }

  .custom-nav-links a {
    padding: 11px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .filter-field--search {
    grid-column: span 12;
  }

  .filter-field,
  .clear-filters {
    grid-column: span 6;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: 12px 15px;
  }

  .logo-link {
    gap: 10px;
  }

  .logo-link img {
    width: 54px;
    height: 54px;
  }

  .logo-link p {
    font-size: 0.72rem;
  }

  .jobs-main {
    padding: 22px 13px 48px;
  }

  .jobs-hero {
    border-radius: 15px;
  }

  .jobs-controls {
    padding: 14px;
  }

  .filter-field,
  .filter-field--search,
  .clear-filters {
    grid-column: 1 / -1;
  }

  .job-group {
    grid-template-columns: 1fr;
  }

  .job-card {
    padding: 16px;
  }

  .job-meta-row {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .admissions-notice {
    flex-direction: column;
  }
}

@media (min-width: 1600px) {
  .jobs-page-layout {
    grid-template-columns: minmax(180px, 230px) minmax(800px, 1120px) minmax(180px, 230px);
    justify-content: center;
    gap: 22px;
    padding: 0 18px;
  }

  .ad-rail {
    position: sticky;
    top: 78px;
    display: block;
    align-self: start;
    min-height: 500px;
    margin-top: 36px;
    padding: 8px;
    overflow: hidden;
    border: 1px dashed #c7d3d6;
    border-radius: 12px;
    background: #edf2f3;
    text-align: center;
  }

  .ad-rail .adsbygoogle {
    min-height: 470px;
  }

  .in-content-ad {
    min-height: 110px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
