@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* Swish Careers / Jobs stylesheet aligned with main Swish World Group theme */

* {
  box-sizing: border-box;
}

:root {
  --primary: #01A200;
  --primary-dark: #007A00;
  --primary-soft: #EFFFF0;

  --bg: #071009;
  --bg-soft: #0b160d;

  --surface: #ffffff;
  --surface-soft: #f7faf7;

  --text: #172018;
  --text-soft: #5f6b63;
  --text-light: rgba(255, 255, 255, 0.78);

  --border: #e4ece5;

  --danger-bg: #fff5f5;
  --danger-border: #fecaca;
  --danger-text: #991b1b;

  --success-bg: #ecfdf5;
  --success-border: #bbf7d0;
  --success-text: #166534;

  --featured-bg: #fef3c7;
  --featured-text: #92400e;

  --radius: 28px;
  --radius-sm: 12px;
  --radius-md: 18px;

  --shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 18px 45px rgba(0, 0, 0, 0.09);
  --shadow-green: 0 18px 45px rgba(1, 162, 0, 0.16);

  --container: 1120px;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--surface-soft);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.hidden {
  display: none !important;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(1, 162, 0, 0.94);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav a {
  color: white;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Hero */

.hero,
.job-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.28), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(135deg, #01A200 0%, #008B00 48%, #005F18 100%);
  color: white;
}

.hero {
  padding: 100px 0 82px;
}

.job-hero {
  padding: 56px 0 60px;
}

.hero::after,
.job-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 55%;
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(-3deg);
}

.hero .container,
.job-hero .container {
  position: relative;
  z-index: 2;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 360px);
  gap: 28px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.72);
}

.hero h1,
.job-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.hero-text,
.job-hero-summary {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.hero-panel-stat + .hero-panel-stat {
  margin-top: 20px;
}

.hero-panel-label {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.hero-panel strong {
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* Sections */

.jobs-section,
.job-detail-section,
.apply-section {
  padding: 54px 0 82px;
}

.section-header {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.section-subtext {
  margin: 0;
  color: var(--text-soft);
}

.jobs-tools {
  min-width: min(100%, 360px);
}

.search-input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 18px;
  font: inherit;
  font-size: 0.98rem;
  background: #fff;
  color: var(--text);
  outline: none;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  border-color: rgba(1, 162, 0, 0.5);
  box-shadow: 0 0 0 4px rgba(1, 162, 0, 0.1);
}

/* Status Cards */

.status-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  color: var(--text-soft);
}

.status-error {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-text);
}

.status-success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-text);
}

/* Job Cards */

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.job-card,
.content-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.job-card:hover {
  transform: translateY(-5px);
  border-color: rgba(1, 162, 0, 0.35);
  box-shadow: var(--shadow-md);
}

.job-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job-card-header h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.job-card-intro {
  margin: 10px 0 0;
  color: var(--text-soft);
}

.job-card-intro p:last-child,
.job-card-intro ul:last-child,
.job-card-intro ol:last-child,
.job-card-intro blockquote:last-child {
  margin-bottom: 0;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.job-badge,
.featured-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.badge-featured,
.featured-pill {
  background: var(--featured-bg);
  color: var(--featured-text);
}

.job-card-body {
  flex: 1;
}

.job-salary {
  margin: 0 0 10px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
}

.job-summary {
  margin: 0;
  color: var(--text-soft);
}

/* Buttons */

.job-actions,
.job-hero-actions,
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 30px rgba(1, 162, 0, 0.18);
}

.button-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-green);
}

.button-secondary {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(1, 162, 0, 0.45);
  color: var(--primary-dark);
}

.button-full {
  width: 100%;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: #071009;
}

.footer-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

/* Job Detail */

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.back-link:hover {
  color: #fff;
}

.job-hero-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.job-hero-meta {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
}

.job-hero-actions {
  margin-top: 26px;
}

.job-detail-layout,
.apply-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 360px);
  gap: 24px;
  align-items: start;
}

.job-main-content,
.job-sidebar,
.apply-main,
.apply-sidebar {
  display: block;
}

.content-card {
  margin-bottom: 22px;
}

.content-card h2,
.content-card h3 {
  margin-top: 0;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.rich-text {
  color: var(--text-soft);
}

.rich-text > :first-child {
  margin-top: 0;
}

.rich-text > :last-child {
  margin-bottom: 0;
}

.rich-text p {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--text-soft);
}

.rich-text ul,
.rich-text ol {
  margin: 0 0 16px 20px;
  padding: 0;
  color: var(--text-soft);
}

.rich-text li {
  margin-bottom: 8px;
}

.rich-text h2,
.rich-text h3,
.rich-text h4 {
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.3;
}

.rich-text a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: underline;
}

.rich-text blockquote {
  margin: 0 0 16px;
  padding: 20px;
  border-left: 5px solid var(--primary);
  background: var(--primary-soft);
  color: var(--text);
  border-radius: var(--radius-md);
}

/* Sidebar Summary */

.summary-list {
  margin: 0;
  padding: 0;
}

.summary-list div {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.summary-list div:last-child {
  border-bottom: 0;
}

.summary-list dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  margin-bottom: 6px;
  font-weight: 800;
}

.summary-list dd {
  margin: 0;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}

.sidebar-actions {
  margin-top: 20px;
}

/* Application Form */

.application-form h2 {
  margin-top: 0;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-field label {
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font: inherit;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(1, 162, 0, 0.5);
  box-shadow: 0 0 0 4px rgba(1, 162, 0, 0.1);
}

.form-field small {
  color: var(--text-soft);
  font-size: 0.86rem;
}

.form-actions .button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Success Page */

.success-page-wrap {
  max-width: 760px;
}

.success-card h1 {
  margin-top: 0;
  margin-bottom: 14px;
  letter-spacing: -0.05em;
}

.success-copy {
  color: var(--text-soft);
  margin-bottom: 24px;
}

/* Responsive */

@media (max-width: 960px) {
  .jobs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .job-detail-layout,
  .apply-layout,
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 82px 0 66px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-inner,
  .section-header,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .header-inner {
    padding: 14px 0;
  }

  .nav {
    flex-wrap: wrap;
  }

  .jobs-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .job-hero {
    padding: 68px 0 54px;
  }

  .hero h1,
  .job-hero h1 {
    font-size: 2.35rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .job-card,
  .content-card,
  .hero-panel {
    border-radius: 22px;
    padding: 22px;
  }
}