*{box-sizing:border-box;margin:0;padding:0}
:root{--ink:#111827;--muted:#667085;--bg:#f7f8fc;--card:#fff;--primary:#5b35f5;--primary-dark:#4523d5;--border:#e7e9ef;--green:#087f5b}
html{scroll-behavior:smooth}
body{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);line-height:1.5}
a{text-decoration:none;color:inherit}
button,input,select{font:inherit}
.container{width:min(1120px,92%);margin:auto}

/* Header */
.site-header{background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:20}
.nav{height:68px;display:flex;align-items:center;justify-content:space-between}
.logo{font-size:1.25rem;font-weight:900;letter-spacing:-.5px}.logo span{color:var(--primary)}
nav{display:flex;gap:28px;color:#4b5563;font-weight:600}
nav a:hover{color:var(--primary)}
.menu-btn{display:none;border:0;background:none;font-size:1.6rem}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #101d32 0%, #163653 60%, #2563a6 100%);
  color: #ffffff;
  padding: 88px 0;
}

.hero-content {
  display: flex;
  align-items: center;
  min-height: 320px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.hero .eyebrow {
  color: #2dd4bf;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -2.5px;
  max-width: 750px;
}

h1 span {
  color: #2dd4bf;
}

.hero-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e2eaf3;
  max-width: 650px;
  margin: 22px 0 30px;
}

.primary-btn {
  display: inline-block;
  background: #2dd4bf;
  color: #101d32;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.primary-btn:hover {
  background: #5eead4;
  transform: translateY(-2px);
}

.primary-btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

.ad-slot{min-height:90px;border:1px dashed #d3d7e2;color:#9aa1af;display:flex;align-items:center;justify-content:center;font-size:.68rem;letter-spacing:1px;margin-top:24px;margin-bottom:50px;background:#fafbfc}

/* Search */
section {
  padding-bottom: 55px;
}

.search-area {
  scroll-margin-top: 90px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.7px;
  color: #101d32;
}

.result-count {
  color: var(--muted);
  font-size: 0.9rem;
  padding-bottom: 5px;
}

.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(16, 29, 50, 0.06);
}

.filters input,
.filters select {
  width: 100%;
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid #dbe3ed;
  border-radius: 10px;
  background: #f8fafc;
  color: #101d32;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    background 0.2s ease;
}

.filters input::placeholder {
  color: #8491a3;
}

.filters input:focus,
.filters select:focus {
  background: #ffffff;
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.filters input:hover,
.filters select:hover {
  border-color: #9ccbc7;
}

/* ========================================
   SACareerHub — opportunity cards
   ======================================== */

.opportunity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.opportunity-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 280px;
  box-shadow: 0 4px 14px rgba(16, 29, 50, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.opportunity-card:hover {
  transform: translateY(-4px);
  border-color: #99e6dc;
  box-shadow: 0 12px 28px rgba(16, 29, 50, 0.10);
}

.opportunity-card h3 {
  color: #101d32;
  font-size: 1.12rem;
  font-weight: 750;
  line-height: 1.4;
  margin: 10px 0 7px;
}

.opportunity-card .company {
  color: #475569;
  font-size: 0.94rem;
  font-weight: 650;
  margin-bottom: 4px;
}

.opportunity-card .meta {
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.7;
  margin: 10px 0 14px;
}

.opportunity-card > p:not(.company):not(.meta):not(.closing-notice) {
  color: #475569;
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.opportunity-card .badge {
  background: #e0f2fe;
  color: #075985;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 750;
}

.opportunity-card .apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding: 12px 14px;
  border: 1px solid #101d32;
  border-radius: 10px;
  background: #101d32;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.opportunity-card .apply-btn:hover {
  background: #14b8a6;
  border-color: #14b8a6;
  color: #101d32;
}

.opportunity-card .apply-btn:focus-visible {
  outline: 3px solid #14b8a6;
  outline-offset: 3px;
}

.no-results {
  text-align: center;
  padding: 35px;
  color: #64748b;
}

.hidden {
  display: none;
}

/* Responsive card grid */
@media (max-width: 900px) {
  .opportunity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .opportunity-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .opportunity-card {
    min-height: 0;
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .opportunity-card,
  .opportunity-card .apply-btn {
    transition: none;
  }

  .opportunity-card:hover {
    transform: none;
  }
}

/* Categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 190px;
  text-align: left;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 20px;
  color: #101d32;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(16, 29, 50, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.category-card:hover {
  border-color: #14b8a6;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(16, 29, 50, 0.09);
}

.category-card:focus-visible {
  outline: 3px solid #14b8a6;
  outline-offset: 3px;
}

.category-card strong,
.category-card small {
  display: block;
}

.category-card strong {
  margin: 14px 0 7px;
  font-size: 1.05rem;
  line-height: 1.4;
  font-weight: 800;
  color: #101d32;
}

.category-card small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 0;
    padding: 20px;
  }
}

/* Tips */
.tips{background:#fff;border:1px solid var(--border);border-radius:18px;padding:28px;display:grid;grid-template-columns:1fr 1.4fr;gap:30px;margin-bottom:50px}
.tips ul{padding-left:20px;color:#475467}.tips li+li{margin-top:9px}

/* Footer */
footer{background:#111827;color:#bfc5d2;padding:35px 0 20px}
.footer-content{display:flex;justify-content:space-between;gap:30px}
footer .logo{color:#fff}footer p{margin-top:8px}
.footer-content>div:last-child{display:flex;gap:20px}
.footer-content a:hover{color:#fff}
.copyright{text-align:center;border-top:1px solid #293241;margin-top:25px;padding-top:20px;font-size:.78rem}

/* Mobile */
@media(max-width:800px){
  .menu-btn{display:block}
  nav{display:none;position:absolute;left:4%;right:4%;top:68px;background:white;border:1px solid var(--border);border-radius:12px;padding:15px;flex-direction:column;gap:15px;box-shadow:0 10px 25px #0001}
  nav.open{display:flex}
  .hero{padding:55px 0}.hero-content{min-height:300px}
  .filters{grid-template-columns:1fr}
  .opportunity-grid{grid-template-columns:1fr}
  .category-grid{grid-template-columns:1fr 1fr}
  .tips{grid-template-columns:1fr}
  .footer-content{flex-direction:column}
}
@media(max-width:430px){
  .category-grid{grid-template-columns:1fr}
  h1{letter-spacing:-1.5px}
}


/* Career Tips page: keep action buttons clear of surrounding text */
.career-intro .apply-btn,
.career-cta .apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: static;
  margin-top: 20px;
  line-height: 1.4;
  text-decoration: none;
}

/* Give the introduction and closing section enough breathing room */
.career-intro {
  padding-top: 40px;
  padding-bottom: 40px;
}

.career-cta {
  margin-top: 40px;
  padding: 32px 24px;
  text-align: center;
}

.career-intro > p:not(.eyebrow) {
  margin-bottom: 0;
}

.career-cta > p {
  margin-bottom: 0;
}


/* Opportunity card status badges */
.card-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.status-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.status-open {
  color: #166534;
  background: #dcfce7;
}

.status-closed {
  color: #991b1b;
  background: #fee2e2;
}

.status-unknown {
  color: #854d0e;
  background: #fef3c7;
}

.closing-notice {
  padding: 10px 12px;
  border-left: 3px solid #dc2626;
  background: #fef2f2;
  color: #7f1d1d;
  border-radius: 4px;
  font-size: 0.9rem;
}


/* ========================================
   SA Career Hub — Modern shared footer
   ======================================== */

.site-footer {
  margin-top: 60px;
  padding: 52px 0 0;
  background: #101d32;
  color: #d5deeb;
  border-top: 4px solid #14b8a6;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}

.footer-brand {
  max-width: 390px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 1.7rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.footer-logo span {
  color: #2dd4bf;
}

.footer-brand p {
  color: #b8c5d8;
  line-height: 1.8;
  margin: 0 0 18px;
}

.footer-tagline {
  display: inline-block;
  color: #5eead4;
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-links h3 {
  margin: 4px 0 10px;
  color: #ffffff;
  font-size: 1rem;
}

.footer-links a {
  color: #b8c5d8;
  text-decoration: none;
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #5eead4;
}

.footer-notice {
  padding: 20px 24px;
  border: 1px solid #31435d;
  border-left: 4px solid #14b8a6;
  border-radius: 10px;
  background: #172740;
  margin-bottom: 28px;
}

.footer-notice strong {
  display: block;
  color: #ffffff;
  margin-bottom: 6px;
}

.footer-notice p {
  margin: 0;
  color: #b8c5d8;
  line-height: 1.7;
  font-size: 0.92rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid #31435d;
}

.footer-bottom p {
  margin: 0;
  color: #9fb0c7;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #5eead4;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* Responsive footer layout */
@media (max-width: 760px) {
  .site-footer {
    margin-top: 40px;
    padding-top: 36px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .footer-notice {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Consistent SACareerHub branding */

.logo-hub {
  color: #14b8a6;
}

.footer-logo-hub {
  color: #2dd4bf;
}


/* ========================================
   SACareerHub — unified brand identity
   ======================================== */

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.8px;
  text-decoration: none;
  white-space: nowrap;
}

.logo {
  color: #101d32;
}

.footer-logo {
  color: #ffffff;
  margin-bottom: 16px;
}

.logo-icon {
  display: block;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.logo-text {
  display: inline-block;
  color: inherit;
}

.logo-career {
  color: inherit;
}

.logo-hub {
  color: #14b8a6;
}

.footer-logo .logo-hub {
  color: #2dd4bf;
}

.logo:hover,
.footer-logo:hover {
  text-decoration: none;
}

@media (max-width: 480px) {
  .logo,
  .footer-logo {
    gap: 7px;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
  }
}

/* Mobile layout safety fixes */
@media (max-width: 800px) {
  .container {
    width: 92%;
    max-width: 100%;
  }

  .nav {
    gap: 12px;
    min-width: 0;
  }

  .logo {
    min-width: 0;
    font-size: 1.15rem;
  }

  .logo-text {
    white-space: nowrap;
  }

  .menu-btn {
    flex-shrink: 0;
    padding: 6px;
  }

  .hero-content,
  .hero-content > div {
    min-width: 0;
    max-width: 100%;
  }

  .hero h1 {
    overflow-wrap: anywhere;
  }

  .hero .eyebrow,
  .hero-text {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 430px) {
  .hero {
    padding: 44px 0;
  }

  .hero-content {
    min-height: 0;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 2.8rem);
    letter-spacing: -1.5px;
  }

  .hero-text {
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero .primary-btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

