@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root {
  --primary: #01A200;
  --primary-dark: #009000;
  --text: #222;
  --background: #ffffff;
  --section-bg: #f8f8f8;
  --card-bg: #ffffff;
  --border: #e2e2e2;
}

/* =========================
   RESET & BASE
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================
   LAYOUT
========================= */

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

main {
  max-width: 1100px;
  margin: auto;
  padding: 60px 20px;
}

/* =========================
   HEADER (CAREERS)
========================= */

.site-header {
  width: 100%;
}

/* Top navigation */
.top-nav {
  background: var(--primary);
}

.nav-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  font-size: 1.4em;
  font-weight: 600;
  color: white;
}

.logo:hover {
  opacity: 0.85;
}

nav ul.menu {
  list-style: none;
  display: flex;
  gap: 18px;
}

nav ul.menu li a {
  color: white;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
}

nav ul.menu li a:hover,
nav ul.menu li a.active {
  background: rgba(255, 255, 255, 0.18);
}

/* Hero */
.careers-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 90px 20px 80px;
  text-align: center;
}

.careers-hero h1 {
  font-size: 2.6em;
  font-weight: 600;
  margin-bottom: 14px;
}

.careers-hero p {
  font-size: 1.15em;
  opacity: 0.95;
  max-width: 720px;
  margin: auto;
}

/* =========================
   CAREERS SECTIONS
========================= */

.careers-intro,
.careers-values,
.careers-jobs,
.careers-equal {
  margin-bottom: 80px;
}

.careers-intro h2,
.careers-values h2,
.careers-jobs h2,
.careers-equal h2 {
  font-size: 1.8em;
  margin-bottom: 18px;
}

.careers-intro p,
.careers-equal p {
  max-width: 900px;
  font-size: 1em;
  margin-bottom: 15px;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.value-card {
  background: var(--section-bg);
  padding: 28px;
  border-radius: 14px;
}

.value-card h3 {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: var(--primary);
}

/* =========================
   CAREERS LIST PAGE
========================= */

.careers-page-header {
  margin-bottom: 50px;
}

.careers-page-header h1 {
  font-size: 2.2em;
  font-weight: 600;
  margin-bottom: 12px;
}

.careers-page-header p {
  max-width: 850px;
  font-size: 1em;
  opacity: 0.9;
}

/* Jobs list spacing override (reuse cards) */
.careers-jobs-list #jobs {
  margin-top: 30px;
}

/* =========================
   JOB LISTINGS
========================= */

.careers-jobs .section-subtitle {
  margin-bottom: 30px;
  font-size: 1em;
  opacity: 0.85;
}

#jobs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.job-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  transition: box-shadow 0.3s, transform 0.2s;
}

.job-card:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
}

.job-card h3 {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}

.job-card p {
  font-size: 0.95em;
  margin-bottom: 12px;
}

/* =========================
   JOB DETAIL
========================= */

#job h1 {
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 12px;
}

#job h3 {
  font-size: 1.3em;
  margin: 30px 0 10px;
  color: var(--primary);
}

#job p,
#job div {
  font-size: 0.95em;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Apply button */
.apply-btn {
  display: inline-block;
  margin-top: 35px;
  padding: 14px 26px;
  background: var(--primary);
  color: white;
  font-weight: 600;
  border-radius: 10px;
  transition: background 0.3s;
}

.apply-btn:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

/* =========================
   JOB DETAIL PAGE
========================= */

.job-header {
  margin-bottom: 50px;
}

.job-header h1 {
  font-size: 2.2em;
  font-weight: 600;
  margin-bottom: 10px;
}

.job-meta {
  font-size: 1em;
  opacity: 0.85;
}

/* Layout */
.job-content {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 50px;
}

.job-section {
  margin-bottom: 40px;
}

.job-section h3 {
  font-size: 1.3em;
  margin-bottom: 12px;
  color: var(--primary);
}

.job-section div {
  font-size: 0.95em;
  line-height: 1.7;
}

/* Sidebar */
.job-sidebar {
  position: relative;
}

.apply-box {
  background: var(--section-bg);
  padding: 28px;
  border-radius: 16px;
  position: sticky;
  top: 40px;
}

.apply-box p {
  margin-bottom: 15px;
  font-size: 0.95em;
}

.apply-note {
  margin-top: 15px;
  font-size: 0.85em;
  opacity: 0.75;
}

/* Responsive */
@media (max-width: 900px) {
  .job-content {
    grid-template-columns: 1fr;
  }

  .job-sidebar {
    margin-top: 30px;
  }

  .apply-box {
    position: static;
  }
}

/* =========================
   FORMS
========================= */

form {
  background: var(--section-bg);
  padding: 40px;
  border-radius: 16px;
  max-width: 720px;
}

form input,
form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95em;
}

form textarea {
  min-height: 150px;
  resize: vertical;
}

form label {
  display: block;
  font-size: 0.9em;
  margin-bottom: 15px;
}

form input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

button {
  background: var(--primary);
  color: white;
  padding: 14px 26px;
  font-size: 0.95em;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

button:hover {
  background: var(--primary-dark);
}

/* Messages */
#msg {
  margin-top: 15px;
  font-size: 0.95em;
}

/* =========================
   FOOTER
========================= */

footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 22px;
  font-size: 0.85em;
}

/* =========================
   UTILITIES
========================= */

.loading,
.empty {
  text-align: center;
  padding: 40px;
  font-size: 1em;
  opacity: 0.75;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  .nav-flex {
    flex-direction: column;
    gap: 12px;
  }

  .careers-hero h1 {
    font-size: 2.1em;
  }

  .careers-hero p {
    font-size: 1em;
  }

  main {
    padding: 45px 15px;
  }

  form {
    padding: 28px;
  }
}
